Joined November 2012
·

Alex Cristea

Creative Software Engineer at Thinslices
·
Iasi, Romania
·
·
·

Posted to MySQL: Using IF in a WHERE clause over 1 year ago

Thank's for noticing that! :)

Posted to Rails-like dates in Objective-C over 1 year ago

SexyDates indeed!

Posted to Beautifying PHP If Else Statements over 1 year ago

Here's another way to write conditional statements:

<?PHP
    if(empty($value)):
        echo 'This value is empty';
    else:
        handleValue($value);
    endif;
?>

This is also available with other statements like for, foreach or while.
They are very useful when you have to combine php with html in the same files.

Posted to Personal Web over 1 year ago

Very nice design, but unfortunately on my 13'' screen is very hard to read the content.

Add export EDITOR='sublime -w'</code> to .bash_profile</code>, in your home directory, so that the sublime is the default editor for all terminal sessions.

If the file doen't exist than you can create it: sublime -w .bash_profile</code>, but remember to be in your home directory cd ~/</code>.

Posted to 960 Grid System over 1 year ago

I personally use Twitter Bootstrap.

It's a very flexible and highly customisable css framework, written in less</code>, and allows you to use variables and functions in your stylesheets to write more reusable components .

It also includes a grid system, but when it comes to grids and aligments the CSS3 box flex</code> proprieties are more powerful and flexible.

Here's a great article on html5rocks.com

Or you could use the Appearance protocol :
UINavigationBar *appearance =[UINavigationBar appearance]; [appearance setBackgroundImage:[UIImage imageNamed:@"NavigationImage.png"] forBarMetrics:UIBarMetricsDefault]; </code>

This way you can customise your navigation bar in -viewDidLoad</code> method, or in ApplicationDelegate.m</code> or even better you could create a theme system that allows you to easily maintain your design and reuse it in other applications.

Great article. Is nice to know that CSS got finally awesome!!

Very helpful tip :)
Thank you!

Posted to Xcode Locating Areas of Interest over 1 year ago

You can use FIXME: in a comment if you want to mark a section of code which you now that has to be fix.

// FIXME: change the way this algorithm work
Achievements
250 Karma
44,181 Total ProTip Views