Thursday, August 25, 2011

Retrieve Mac OS Version Programmatically


It may be a needed thing to check the version of the Client device that your program is running on it, as It may help you to implement a custom Task for the new OS only

Here are the code I found for this, 

#import <CoreServices/CoreServices.h>

  SInt32 major, minor, bugfix;
  Gestalt(gestaltSystemVersionMajor, &major);
  Gestalt(gestaltSystemVersionMinor, &minor);
  Gestalt(gestaltSystemVersionBugFix, &bugfix);

  NSString *systemVersion = [NSString stringWithFormat:@"%d.%d.%d",major, minor, bugfix];


Monday, July 11, 2011

How to fully Uninstall Xcode

// Esalamo 3alikom ..


    Starting from Xcode 4 and later, crash reports and hangs will happen very frequent in Ur Xcode ...It may be very heavy on ur machine also , and Feels that Ur Mac becomes Like a very old man that push a large thing ...

, So in some case u will need to uninstall Xcode and re-install a new fresh copy In ur Machine ..and to do this

U will need that command, Paste it in ur Terminal

                 sudo /Developer/Library/uninstall-devtools -mode=all

Saturday, April 30, 2011

Solution for spoolsv.exe CPU Usage


Here I present a solution that  works with me in the problem of the more that 50% usage ration that was taken by spoolsv.exe process in windows OS ( XP SP2 Edition ).

Actually I was a nightmare because it was not a virus, and It is authenticated background process for Microsoft windows.

Disabling it was not a solution for my problem

Look, If I disable it It also disables

  1. The ability of printing.
  2. Opening the browsers.
  3. In some time the Playing of Online Videos.. In general "FLV" Players.
  4. Opening most of text Editors "Notepad++, MS Office"
Or Even If you let it running..
  1. At least 50% of CPU is busy.
  2. Slow performance
  3. Disable of Hibernate and Sleeping of OS ..
  4. The device fan is Always high loaded.
  5. The device get warmed ...
Upon this night mare I Will list the solution that works for me ...
  1. Open Ur Control Panel
  2. Select "Administrative Tools"
  3. Select "Services"
  4. Right Click On the "Printer Spooler" service.
  5. stop this Service
  6. Go To "System32" Folder :: Usually C:/WINDOWS/system32/spool/PRINTERS
  7. Delete all files In this Folder
  8. Go back to "Step 4"
  9. Re-run the Service again ...
It is Done! Congratulations ....

Monday, April 18, 2011

Working In Social Offline Mode


In these days, while the social networks websites has continuously new feeds because of our friends' enormous activities. I find myself always out of concentration, even in my real social life. One of the most reasons of this, is that the one has to interrupt what he/she was doing to check his/her wall and reply on the comments., Or always spends long times in these sites without doing something useful.

,so I prefer in such situation to take a rest of this sites, see what will happen in my life different.As I think that the cost of interruption is more than the gain of entertainment, like our Arabic wisdom quote

"الباب اللىَ يجيلك منه الريح , سده و استريح"

,but I will not lie , each time I go to the URL Address to type a website ,, my fingers go to type " face... " , "twitter ..." ... I feel that my hands will eat me in order to go to these sites ... so I will not desolate myself, Lets Go .

Face,,,face ..facebook ,,face face facebookk,,,, twitter twiiterrere .. twitter .. twitter ,, yammer yammer yammer yammer facebook facebook ,, face book ,, facebook facebook yammer yammer twitter .. ...

I feel better Now :D :D ... I feel that I am crazy or even addicted ....

oh, I would not forget to tell U some quotes that I read yesterday and also in need to tell about, but It was too late decision _ From Now No face or twitter ....

- Practice make prefect.
- Hard working gives u more than what it takes.
- Egypt will be better #Jan25
- Blogging Again #Blogger #Google

,, I am feel more better now ... really try it ..

The problem now that I will not share this post ,,, what can I do now about this ?!!! :):) |( ^_^ )|