Tumgik
muhammadhassan · 11 years
Link
This post is part of a series in which LinkedIn Influencers share their secrets to being more productive. See all their #productivityhacks here.Every day you walk into the office expecting to get
0 notes
muhammadhassan · 11 years
Photo
Tumblr media
0 notes
muhammadhassan · 11 years
Link
0 notes
muhammadhassan · 11 years
Link
0 notes
muhammadhassan · 11 years
Text
Verbal Expressions
I have always hated Regular Expressions and avoided to use it in favor of writing longer code that is just 10x readable (and not much slower).
Now after I have seen Verbal Expressions will surely start using it Insha' Allah, specially that it is ported to many languages (including Objective-c)
Kudos to Mahmoud Khaled for finding this.
0 notes
muhammadhassan · 11 years
Photo
Tumblr media
0 notes
muhammadhassan · 11 years
Quote
There are only two hard things in Computer Science: cache invalidation and naming things
Phil Karlton
0 notes
muhammadhassan · 11 years
Text
للرجال فقط ... ياترى انت مسيطر ولا هى إلى مسيطره
عايز تعرف انت مسيطر ولا لأ
تعالى معايا
.
.
.
شوف نفسك قبل رمضان وبعده لو لقيت ان لسه فى معاصى ماسبتهاش وانك لسه مش مبتصلى فى المسجد -وبتسيب ٢٧ ضعف للثواب يروحوا منك - يبقى الشياطين هى إلى مسيطره عليك حتى وهى مربوطه ومتكتفه 
ازاى الكلام ده؟
 قال رسول الله (إذا كان أول ليلة في شهر رمضان صُفِّدت الشياطين ومَرَدَة الجن ، وغلقت أبواب النار فلم يُفتح منها باب ، وفتحت أبواب الجنة فلم يغلق منها باب ، وينادي منادٍ : يا باغي الخير أقبل، ويا باغي الشر أقصر . ولله عُتقاء من النار وذلك كل ليلة ) . حسنه الألباني في صحيح الجامع .
  يعنى الشياطين متكفته ومنادى الخير ينادى 
ما الذى يمنعك من الخير؟
طب الحل ايه؟
ازاى اسيطر؟
بسيطه: حصن نفسك من الشيطان - قول اعوذ بالله من الشيطان الرجيم واقرأ ايه الكرسى واتوضا 
{اللهُ لاَ إِلَهَ إِلاَّ هُوَ الْحَيُّ الْقَيُّومُ لاَ تَأْخُذُهُ سِنَةٌ وَلاَ نَوْمٌ لَّهُ مَا فِي السَّمَاوَاتِ وَمَا فِي الأَرْضِ مَن ذَا الَّذِي يَشْفَعُ عِنْدَهُ إِلاَّ بِإِذْنِهِ يَعْلَمُ مَا بَيْنَ أَيْدِيهِمْ وَمَا خَلْفَهُمْ وَلاَ يُحِيطُونَ بِشَيْءٍ مِّنْ عِلْمِهِ إِلاَّ بِمَا شَاء وَسِعَ كُرْسِيُّهُ السَّمَاوَاتِ وَالأَرْضَ وَلاَ يَؤُودُهُ حِفْظُهُمَا وَهُوَ الْعَلِيُّ الْعَظِيمُ}
طيب انت كده ضحكت عليا انا كنت فاكرك حتقولى ازاى اسيطر على الجماعه فى البيت؟
لأ ماهو انت لو بعيد عن المعاصى وقريب من ربنا ومن طاعته انت اكيد حتسيطر على كل حاجه وحتكون فى معيه الله
 قال رسول الله صلى الله عليه وسلم "من صلى الصبح في جماعة فهو في ذمة الله تعالى"  اى فى ضمان الله - رواه مسلم
قال بعض الصالحين : " إني لأجد أثر معصيتي في خلق دابتي وزوجتي ".
  اشوفك بعد ما تسيطر : )
0 notes
muhammadhassan · 11 years
Quote
It's not done until it ships
Steve Jobs.
0 notes
muhammadhassan · 11 years
Text
Apple, Slowly but Surely...
It's Apple again, moves slowly but surely. 
Apple, a company admired by many people around the world. I will not talk much about its success but I talk about something I noticed in the way it pushes new technology and features.
I noticed that Apple slowly pushes new features and it continues to enhance them step by step to surely result in a better implementation over other ordinary solutions, which ultimately lets Apple overbeat its competitors.
Sounds not clear, lets take some examples:
1. iOS Multitasking:
The first iPhone generation was release in June 2007, It was running iOS 1.x which did not support any kind of multitasking (almost). Only one app could be run at a time. This fact continued to exist till iOS 4.0 was released 3 years later (2010). For these 3 years the iPhone have been showing competency with other smart phones through its unique UI/UX, long lasting battery and other powerful features. During those years multitasking have been a weak point for the iPhone. Apply was not concerned with just pushing dozens of features, Apple was much concerned about the quality. It could have pushed multitasking since iOS 1.0 like other competitors (For ex: Android and even Symbian OS had years multitasking before iOS).
But Apple don't want its device performance or battery to get affected. It wanted to keep its edge in what it is better in (which is user friendly UI and amazing hardware experience). The results is that iOS 4.0 had mutlitasking that is much usable to the user and the iPhone battery lasts for days comparable to Android devices which barely last for one day of similar usage.  Apple have implemented multitasking with some limitation to allow only important features/apps to run in the background. And apps that have nothing to do are just put to sleep and waked up again (in the same state) when user needs them. That way the processor (and battery) is not drained.
It did not stop there, 3 years laters again, iOS 7 now (2013) have smart multitasking, the iOS learns when the user likes to use his/her apps and can update the app content before the user launch them.  which give a much better user experience that other systems can't offers currently.
2. Automatic Reference Counting (ARC) 
ARC is another example of how Apple goes slowly but surely for handling memory.
Years ago, most iOS apps and Mac OS X was built using objective-c which used release-retain memory management pattern. This required that developer send retain message (call retain) to each object that's being used and send a release message it when he is done with that object, so object gets freed from memory when no one is retaining it.
Of course this was an overhead for developers, specially for those who were coming from the Java world where garabage collection is a builtin feature that comes for free. But when we look at release-retain pattern, we find that it is much better than automated garbage collectors (gc).
In Java world you don't know when the gc will start to clean the memory. Suddenly while you run a Java program you find it hanging for a few seconds and then you say, oh gc must be running now.
In release-retain memory management, objects are freed just when they are not needed not when the gc decides. So you get free memory much sooner than gc and the app does not hang everywhile.
The only problem with release-retain was the overhead required by the developer to maintain release/retain calls approperly.
This was finally solved in 2011 when Apple introduced Automatic Reference Counting (ARC) which handles sending release/retains messages automatically. Actually ARC is done on the compiler level so it does not affect runtime performance as the gc does.
Now the developer have the luxury of using gc (almost) and the app is much faster and better in memory than gc apps which translates into better UX, battery usages and better Apple...
  Do you have other examples that makes Apple "Slowely but shorely"? add them as a comment below.
Have a mobile idea and wanna convert to a real app? We will be happy to give a free quotation.
1 note · View note
muhammadhassan · 11 years
Text
iPhone 6 or 5S, How it will be ...
Millions of people are waiting for the new iPhone 6 (or 5S) and many speculations have been there. Some are waiting for a bigger iPhone some are waiting for something else.
Personally I have a strong feeling that Apple will release 2 iPhones, the first will most properly be like the current iPhone 5 but with more colors to choose from (not just white and black) and this will fit seamlessly with the new colorful iOS 7.
I also guess that a mini version will be released in that same way and for the same reasons Apple released the iPad mini. I guess it will have the same resolution as the classic iPhone (320x480) and a cheaper price than iPhone.
Do you have your own guesses, add them as a comment below : )
0 notes
muhammadhassan · 12 years
Text
PhoneGap, Apple Rejections & UI/UX Guidelines
http://www.tricedesigns.com/2012/10/03/phonegap-apple-rejections-uiux-guidelines/
0 notes
muhammadhassan · 12 years
Text
Hints For Setting "Real" Targets For Your Company
Setting targets for your company is very important, it leverages the morale of people at the company. The happens when targets are set and when they are met as well.
Before setting your targets you need to be able to measure them. Or more precisely you need to have your own set of KPIs. In general, targets needs to be SMART (Specific, Measurable,Achievable,Realistic,Time Bound). In this blog I will provide you with hints on setting sales targets(revenue KPI):
  First you have to analyze your last year KPIs and look for peak times sales and off-peak sales for each month, then plan how to better control off-peak times, making good sales at them and plan for the best use of peak times. 
Estimate how much sales can you make per month or even per week based on your previous history. Decide how much money you want to make next year? 
Ask your self, Can the market support my growth rate?
Plan for recruiting sales reps and forecast how that will increase your sales based on revenue per rep in the last year. 
Do "best case", "worst case" and "most likely case" analysis and use the "most likely case" to set your sales targets. But it's also worth taking the time to come up with realistic numbers for the two extremes (best and worst cases).  
Divide out target responsibilities if you work as a team. Make sure everyone has a set of individual targets, figures or key performance indicators so they know exactly what they are and when they're expected by. Ensure you agree this with them in advance so both sides feel it's achievable and realistic.
Monitor targets with your team monthly.
Remember that the secret to fuel fast growth is focusing on creating a company culture that puts sales at its very heart. Your company should keep sales targets realistic and achievable so its reps can reach their goals and stay motivated, and it celebrates strong performance. And at the last minute of the celebration it sets the metaphorical bar higher.
Make sure you have a "why" statement for the targets that's what derives you to achieve that goal (it's not alway about money).
You can even find more tips here  
  And as a Bonus you can read Marketing tips
0 notes
muhammadhassan · 12 years
Text
Hibernate in Mac OS X (Lion)
Lion have a great feature called "System Resume on Start" which saves each application state before shutdown and restores it when starting up again this saves you time from reopening your applications again in the same state but what if you just want Windows-PC-Like Hibernate, is that possible?
Yes it is, just run the command: 
sudo pmset hibernatemode 25
and choose sleep from Apple window, this will make the system to write all memory content to disk and shutdown completely, next time when you press the power button it will load memory content again from disk and you have you system exactly as you left it all of this in just a minute or two which is much faster than reopening all your applications again.
Cons:
It take a minute or two depending on how much RAM you have and the speed of you disk drive. During that time the power light flashes till it completely shutdown.
If you just want to make normal sleep you will have to restore the above command to its default by running this command (if you have a desktop just replace 3 with 0)
sudo pmset hibernatemode 3
Reference: http://www.axoniclabs.com/DeepSleep/
0 notes
muhammadhassan · 12 years
Text
الله نور السماوات والأرض
اللَّهُ نُورُ السَّمَاوَاتِ وَالْأَرْضِ ۚ مَثَلُ نُورِهِ كَمِشْكَاةٍ فِيهَا مِصْبَاحٌ ۖ الْمِصْبَاحُ فِي زُجَاجَةٍ ۖ الزُّجَاجَةُ كَأَنَّهَا كَوْكَبٌ دُرِّيٌّ يُوقَدُ مِن شَجَرَةٍ مُّبَارَكَةٍ زَيْتُونَةٍ لَّا شَرْقِيَّةٍ وَلَا غَرْبِيَّةٍ يَكَادُ زَيْتُهَا يُضِيءُ وَلَوْ لَمْ تَمْسَسْهُ نَارٌ ۚ نُّورٌ عَلَىٰ نُورٍ ۗ يَهْدِي اللَّهُ لِنُورِهِ مَن يَشَاءُ ۚ وَيَضْرِبُ اللَّهُ الْأَمْثَالَ لِلنَّاسِ ۗ وَاللَّهُ بِكُلِّ شَيْءٍ عَلِيمٌ (35) (النور)
" اللَّهُ نُورُ السَّمَاوَاتِ وَالْأَرْضِ " الحسي والمعنوي. وذلك أنه تعالى بذاته, نور, وحجابه نور, الذي لو كشفه, لأحرقت سبحات وجهه, ما انتهى إليه بصره من خلقه. وبه استنار العرش, والكرسي, والشمس, والقمر والنور, وبه استنارت الجنة. وكذلك المعنوي, يرجع إلى الله, فكتابه نور, وشرعه نور, والإيمان والمعرفة في قلوب رسله وعباده المؤمنين, نور. فلولا نوره تعالى, لتراكمت الظلمات, ولهذا, كل محل, يفقد نوره فثم الظلمة والحصر " مَثَلُ نُورِهِ " الذي يهدي إليه, وهو نور الإيمان والقرآن في قلوب المؤمنين. " كَمِشْكَاةٍ " أي: كوة " فِيهَا مِصْبَاحٌ " لأن الكوة, تجمع نور المصباح بحيث لا يتفرق. ذلك " الْمِصْبَاحُ فِي زُجَاجَةٍ الزُّجَاجَةُ " من صفاتها وبهائها " كَأَنَّهَا كَوْكَبٌ دُرِّيٌّ " أي: مضيء إضاءة الدر. " يُوقَدُ " ذلك المصباح, الذي في تلك الزجاجة الدرية " مِنْ شَجَرَةٍ مُبَارَكَةٍ زَيْتُونَةٍ " أي: بوقد من زيت الزيتون الذي ناره, من أنور ما يكون. " لَا شَرْقِيَّةٍ " فقط, فلا تصيبها الشمس, آخر النهار. " وَلَا غَرْبِيَّةٍ " فقط, فلا تصيبها الشمس, أول النهار. وإذا انتفى عنها الأمران, كانت متوسطة من الأرض. كزيتون الشام تصيبه الشمس أول النهار وآخره, فيحسن ويطيب, ويكون أصفى لزيتها, ولهذا قال: " يَكَادُ زَيْتُهَا " من صفائه " يُضِيءُ وَلَوْ لَمْ تَمْسَسْهُ نَارٌ " فإذا مسته النار, أضاء إضاءة بليغة " نُورٌ عَلَى نُورٍ " أي: نور النار, ونور الزيت. ووجه هذا المثل, الذي ضربه الله, وتطبيقه على حالة المؤمن, ونور الله في قلبه, أن فطرته التي فطر عليها, بمنزلة الزيت الصافي. ففطرته صافية, مستعدة للتعاليم الإلهية, والعمل المشروع. فإذا وصل إليه العلم والإيمان, اشتعل ذلك النور في قلبه, بمنزلة إشعال النار, فتيلة ذلك المصباح, وهو صافي القلب, من سوء القصد, وسوء الفهم عن الله. إذا وصل إليه الإيمان, أضاء إضاءة عظيمة, لصفائه من الكدورات. وذلك بمنزلة صفاء الزجاجة الدرية, فيجتمع له, نور الفطرة, ونور الإيمان, ونور العلم, وصفاء المعرفة, نور على نوره. ولما كان هذا من نور الله تعالى, وليس كل أحد يصلح له ذلك قال: " يَهْدِي اللَّهُ لِنُورِهِ مَنْ يَشَاءُ " ممن يعلم زكاءه وطهارته, وأنه يزكى معه, وينمى. " وَيَضْرِبُ اللَّهُ الْأَمْثَالَ لِلنَّاسِ " ليعقلوا عنه, ويفهموا, لطفا منه بهم, وإحسانا إليهم وليتضح الحق من الباطل, فإن الأمثال تقرب المعاني المعقولة من المحسوسة, فيعلمها العباد علما واضحا. " وَاللَّهُ بِكُلِّ شَيْءٍ عَلِيمٌ " فعلمه محيط بجميع الأشياء. فلتعلموا أن ضربه الأمثال, ضرب من يعلم حقائق الأشياء وتفاصيلها وأنها مصلحة للعباد. فليكن اشتغالكم بتدبرها وتعقلها, لا بالاعتراض عليها, ولا بمعارضتها فإنه يعلم, وأنتم لا تعلمون. ولما كان نور الإيمان والقرآن أكثر وقوع أسبابه في المساجد, ذكرها منوها بها فقال: " فِي بُيُوتٍ أَذِنَ اللَّهُ " إلى " بِغَيْرِ حِسَابٍ " .
تفسير السعدي - سورة النور
0 notes
muhammadhassan · 12 years
Text
Waiting for iPhone mini...
I have a strong feeling that Apple will release iPhone mini on 2013 or later in that same way and for the same reasons they released iPad mini.
I guess it will have the same resolution as the classic iPhone (320x480) and a cheeper price than iPhone. And when they release it, I will "most" properly buy it ISA. Till that date I will continue to use my Nokia X2 phone ...
0 notes
muhammadhassan · 12 years
Text
ماذا لو الرئيس كح
تخيل الخبر الآتى وماذا سيكون ردود افعال البعض
عاجل : الرئيس مرسي كح ..
احدهم يقول : شوفت .. شوفت .. الرئيس بيتف علينا اهو ..
قنوات الفلول بصوت واحد : هو كح بعد ما استأذن من المرشد وخيرت الشاطر
العلمانين الهولوكستين والتيار الشعبي الفكسان : بيكح .. ههههههههههههههه ههههه هو فيه رئيس بيكح .. بجد حاجة تكسف ..
ودي المعارضة المصرية .
0 notes