Thursday, August 25, 2011

Retrieve Mac OS Version Programmatically

Hey,

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];

Thanks,

Monday, July 11, 2011

How to fully Uninstall Xcode

// Esalamo 3alikom ..

Hey,

    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
Thanks,

Saturday, April 30, 2011

Solution for spoolsv.exe CPU Usage

Hey,

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

Hey,

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 .. twitter.com ...


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 ?!!! :):) |( ^_^ )|

Wednesday, December 8, 2010

Try Blogger Using Zemanta :) , It may deserve!

// Esalamo 3alikom ..

I was a long time ago since my last blog post, so I feel now the same feeling of my first post ...! The feeling of " Many Ideas that U have " and " few wards that U remember to say .. " !!

But now it differs a lot between the experience, courage , background knowledge that U gain with years and the study ,,,

I prefer in this post to list some topics that I intend to talk about _( Inshaa Allah)
A green version of http://commons.wikimedia.or...Image via Wikipedia
  1. Computer Science
  2. Islam , Islamic Topics
  3. Daily-Events in my life.


About what makes me love to blog again is " Testing :) ". I just try to make a " HelloWorld! " blog post Using Zemanta, to see what It may provide me based on its semantic content analysis that It is doing on what I type while writing the post. Begad tell now " elii hwa delwa2tii " it is wonderful tool for blogging and It is deserve to be used.
Image representing Zemanta as depicted in Crun...Image via CrunchBase

Provide blog tags ( extraction and semantic suggestions ) , external Links to key words in your post , Images related to post topic, Related articles links .. more and more.

According to me I will Use it_ it seems to be for a long time :) and I will talk about the algorithms and technologies that Zemanta uses for doing this later isA.

I'd like if all my friends interact with comments and Ideas in the comment area and I do not administrate them to leave all saying what they feel.

Next Post will be_(inshaa Allah) about Difference about being Student and the professional life as Computer Engineer ...

( Aw3a 2eedak mn 3ala elRomot Control msh hate2dar te3'ayar El-Blog ) ....

Regards
Enhanced by Zemanta

Thursday, May 20, 2010

Trial For Reliable Love :)

// esalamo 3alikom ...

actually I can't stop laughing after seeing it ,especially as I implemented reliable Multi hop UDP in Adhoc networks for all yesterday

Image reference here

Monday, May 3, 2010

Google Code Jam 2010

// Elsalamo 3alkiom ..


Google is holding each year a competition for Algorithms that tests the ability of the programmer to solve hard problems , started from 2008. This is totally online contest , has three rounds, after a Qualification exam .. as I will describe as following:


24 hr Qualification Round: just to test that u are a Geek Programmer :D or Not ..

First Round:
.. and it is separated into three sub-Rounds , as u can enter them all if u wish, but you are required to just pass any one of them.
Second Round: Online Round 2
Third Round: Online Round 3 ,, for sure :)




This three rounds is done as filtration process as u have to pass first round to go to the second , and so on.

Each Round has its criteria and facility level as in the first u just has to pass , by solving two problems of the three problems in the sub-round*, and the top-scoring 1000 finalists from each sub-round, totaling 3000 skilled programmers, will advance to Round 2.
and about Round 2 ,3

The top 3000 participants from Online Round 1 will participate in Online Round 2.
The top 500 participants from Online Round 2 will participate in Online Round 3.


From Agile Thinking


and U can find more on the Google Code Jam Site, and more on the contest rules here