Microsoft play my game, Apple do the same?
[OSX-SHELL] Get Memory Informations
A simple python script to get your RAM status faster on MAC OSx.
[PHP] A custom ENUM
PHP has not enum, but there is a simple way to simulate it, using Class in php5.
I like to use this structure:
[Objective-C] Get UIWebView html page size
A trick to get size and apply resize or other effects on your view.
Set your UIWebView delegate and create finishLoad method.
After that, using javascript, get document.height of your view and do what you want.
[Objective-C] Add image on UIAlertView/UIActionSheet buttons
A beautiful tricks to add simple images on every place you want using UNICODE characters!
Have you never tried this code?
[Chrome] Plugin to check accents on domains
What’s new?
ICANN decided to implement a new class of top-level domains, assignable to countries and independent regions.
the domain names may be any desirable string of characters, symbols, or glyphs in the language-specific, non-Latin alphabet or script of the applicant’s language, within certain guidelines to assure sufficient visual uniqueness.
[ObjectiveC] Variable arguments list
From Apple Q&A QA1405, an easy way to call a method with variable parameters nil-terminated,
like
[code lang=”java” autolinks=”false” collapse=”false” firstline=”1″ gutter=”true” htmlscript=”false” light=”false” padlinenumbers=”false” smarttabs=”true” tabsize=”4″ toolbar=”false”][NSMutableArray arrayWithObjects…, nil][/code]
[Xcode] Trailing whitespaces
XCode trick
You want to remove the whitespaces at the end of the rows in your code?
XCode – Search project whitespaces
You want to remove the whitespaces at the end of the rows in your code?
Push CMD+SHIFT+F to open global search, select from the Icon “Show find options” and select “Regular Expression“:
[ \t]+$
Here the result:
enjoy cleaning!
[Objective-C] Modal view in Navigation and TabBar controller projects
A simple way to show in your project a view that is ever modal (with opacity view on background), like the UIAlertView, in fact it is UIAlertView that we use, subclassing it!
Read More