Wednesday, October 30, 2013

My Checklist - Flat and elegant, developed just with html and css

Here is a png with the psd image and the html code.
 (Because I use just a text-editor on this blog, some css properties are replaced automatically)

The html and the css:


Pretty simple, right?

If you need the code, go here.

Tuesday, October 29, 2013

Just Do Something!

Sometimes, you don't reach your goals no matter how hard you try, but having goals, whether big or small, is important. It gives you a sense of meaning and purpose, points you in the direction you want to go and gets you interested.

You don’t need to do everything right now. But you can do something.

Monday, October 28, 2013

Why didn't I know this before?! MySQL & PHP

Hm, I just realized that MySQL’s REPLACE() is PHP’s STR_REPLACE(). It is more quicker than doing same job in php. Why didn't I know this before?!

The PHP function that I used was str_replace(). If you aren't familiar with the function, here's what it does:

$string = '28/10/2013';
$result = str_replace('_', '-', $string);  //becomes 28-10-2013

In MySQL, this is:
UPDATE `table_name` SET `data` = REPLACE( data, '/', '-' )

Using MySQL's function allows me to fix the problem once and it is faster for a big database.

Again, Why didn't I know this before?!