Ahmed Fouad Blog

Personal Blog
  • About
  • About
  • Twitter Feed
RSS
There are currently no widgets assigned to the left-sidebar, place some!

Once you add widgets to this sidebar, this default information will go away.

Widgets can be added by going to your dashboard (wp-admin) -> Appearance -> Widgets, drag a widget you want to see into one of the appropriate sidebars.
Nov16

Egypt Mobile numbers code changes in Mac Address Book ????? ????? ???????? ???? ??? ?????

by Laplace on November 16th, 2011 at 5:15 PM
Posted In: Apple, Misc

Here is a an Apple Script to modify your address book entries to adjust the new mobile codes in Egypt (Without 150, 151, 152 codes).
Just open AppleScript, paste the script below and run it, it will print a list of numbers to be modified for checking (old number : new number pair). To modify the Address Book, remove comment on line marked (R) and comment the two lines marked (C) and run. Enjoy. [Note: this is a modified version of the script listed here https://discussions.apple.com/thread/1696591?start=0&tstart=0]

You can get a text file with the script here

–Script Begin
tell application “Address Book”
set nm to {} as list
repeat with p in (get people)
repeat with n in (get p’s phones)
set m to my edit1(get n’s value)
if n’s value ? m then
copy (n’s value & ” : ” & m) to end of nm — (C)Comment to modify the address book
–set n’s value to m –(R)Uncomment to modify the address book
end if
end repeat
end repeat
return nm — (C)Comment to modify the address book
end tell

on edit1(n)
set m to prefix(n, 100, 10)
if m ? n then return m
set m to prefix(n, 106, 16)
if m ? n then return m
set m to prefix(n, 109, 19)
if m ? n then return m
set m to prefix(n, 122, 12)
if m ? n then return m
set m to prefix(n, 128, 18)
if m ? n then return m
set m to prefix(n, 127, 17)
if m ? n then return m
set m to prefix(n, 111, 11)
if m ? n then return m
set m to prefix(n, 114, 14)
return m
end edit1

on prefix(n, p, rr)
(*
string or number n : source number
string or number p : prefix number to add
list rr : string of target number
return string : modified number (country code part is kept unchanged)
*)
script o
property _onlyWithCountryCode : false — true for processing only numbers with country code; false otherwise
property countrycodepart : {“+20″, “0020″, “0″} — list of country code parts

– (1) decompose number into country code part (=n1) and the domestic part (=n2)
set n to n as string — for safety
set nlen to count n
set n1 to “”
repeat with q in my countrycodepart
set q to q’s contents
if n starts with q then
repeat with i from (count q) + 1 to nlen
if n’s character i is not in {space, tab} then exit repeat
end repeat
set n1 to n’s text 1 thru (i – 1)
set n2 to n’s text i thru -1
exit repeat
end if
end repeat

if n1 = “” then
if _onlyWithCountryCode then return n — leave the number without country code
set n2 to n
end if

– (2) extract digits for n2 (=n2d) and check its length
set n2d to “”
repeat with x in n2
if x is in “0123456789″ then set n2d to n2d & x
end repeat

if (count n2d) is not 9 then return n — leave the number whose domestic part is not of 9 digits

– (3) modify the domestic part according to kk and re-compose the number
set kk to rr as string
set n3 to n2′s text ((count kk) + 1) thru -1
if n2d starts with kk then return n1 & p & n3
return n
end script
considering case
tell o to run
end considering
end prefix
–Script End

└ Tags: Apple, AppleScript, Egypt, Etisalat, Mobinil, Vodafone
 Comment 
Jun16

Microsoft Windows ThinPC

by Laplace on June 16th, 2011 at 1:05 AM
Posted In: Microsoft

Microsoft is releasing a lighter and locked down version of Windows 7 and calling it Windows ThinPC (or WinTPC), it will target the thin clients domain by converting any PC to a thin client, it will be available for download in SA 1st of June 2011. I’m expecting a whole new line of thin clients probably running on Atom processors hitting the market and reviving the thin clients along with virtualization.

└ Tags: Microsoft, Thin PC, Windows, WindowsTPC
 Comment 
Jun12

iOS 5 beta contacts issue

by Laplace on June 12th, 2011 at 10:29 AM
Posted In: Apple

A couple of colleges in my team lost their contacts while installing iOS 5 beta, and it looks like a comon issue for those who don’t sync their contacts with address book or a server, it seems like for some reason after installing iOS 5 and restoring a backup with iTunes 10.5 the contacts don’t make it.
The solution is simple, when you restore your backup, just disable iCloud on the initial install screen, then you can enable it later.

3 Comments
Jun10

New features in iOS 5, not so commonly talked about

by Laplace on June 10th, 2011 at 10:40 PM
Posted In: Uncategorized

I’ve found few new features in iOS 5 very handy, I’ll skip the common ones that everyone is talking about, just mention a coouple:

1- Background Sync: you no longer see the locked screen with swipe to cancel button, only a rotating wheel on the upper left corner while syncing, so you still can use your device. It works fine on iPad 2, but on iPhone 4 it slows the device that it’s almost unusable.

2- Multiple Apps installing at the same time, I noticed that when installing/updating multiple apps it’s installing 2 at a time on iPad 2.

3- Alarm repeat count, so for messages you don’t have to hear the alert twice.

I’m still playing around with the devices, although the beta version is very unstable but I’ll be using it vor daily work to know more about it.

 Comment 
Jun10

No FaceTime for the Middle East on iOS 5 beta

by Laplace on June 10th, 2011 at 10:34 PM
Posted In: Apple

Just downloaded iOS beta 5 on my iPad 2  from Arab Computers in Saudi Arabia and my Duo iPhone 4, both have no FaceTime still. Also the iMessage application doesn’t list few Arab countries when setting it up.

└ Tags: Apple, FaceTime, iOS 5, iPad, iPhone, Middle East, Saudi Arabia
 Comment 
  • Page 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5
  • »
There are currently no widgets assigned to the right-sidebar, place some!

Once you add widgets to this sidebar, this default information will go away.

This theme also uses the WordPress 3.0 Menu system. You probably see the default stuff you have in the menubar. Go to Appearance -> Menu in the wp-admin (dashboard) and create a new menu.

Recommended Plugins

  1. Viper's Video Quicktags
  2. Audio Player
  3. Theme Companion

©2010-2011 Ahmed Fouad Blog | Powered by WordPress with Easel | Subscribe: RSS | Back to Top ↑