Daniel Gafitescu Freelance web developer focused on open source solutions

23Jun/130

PHP 5.5 First Look

A short title from Lynda.com about the new features of the Php 5.5 done by Jon Peck

The title will cover :

- installing the Php 5.5 on a VirtualBox machine

- generators using the yield operator

- dereferencing
Ex:
echo "abcd"[2] ==> b

- finally keyword on the try/catch statement for cleanup operations

- password hashing using the functions  password_hash , password_verify & password_get_info

- Opcache  included by default, previously knows as commercial Zend Optimizer +

- usage of list in foreach statement

- check if a function return empty result using empty function and not throw an error

- normalizing a bunch of different functions like boolval , pack & unpack

- what has been removed/deprecated on the latest Php version

Filed under: Programming No Comments
23Jun/130

Cassis

I short visit to Cassis, France.

Filed under: Travel No Comments
16Jun/130

Avignon

Yesterday I went to Avignon.
The city it's known for being the "City of Popes" and in 2000 was European City of Culture.

Here is a playlist of short videos I took with my camera "on the run" mainly from The Popes's Palace & Avignon Bridge which are part of Unesco World Heritage

Tagged as: No Comments
3Jun/130

Laravel: Code Bright


Just finish reading Laravel: Code Bright , or better say what has been written so far since it's on going process and I had found it as an excellent start if you want to learn Laravel4.
Dayle Rees has written before "Code Happy" which was an online book that you can order the print from https://leanpub.com but this one it's on Leanpub exclusive.
So if you are on the working with Laravel4 in my opinion it's a must read.

Filed under: Books No Comments
1Jun/130

Laravel4 snippets

1. Web server configuration

For Apache , Nginx & lighttpd

https://github.com/daylerees/laravel-website-configs

 

2. Optional route parameter

 

Route::get('/country/{country_name?}',function($country_name="Romania")
{ 
 return "Returning info from  {$country_name} ."; 
});

So when the url will be

 /country - I will display

Returning info from Romania

 /country/USA - I will display

Returning info from USA

3. Multiple filters

You can call multiple filter using the | pile line.


Route::get('/safe',array(
	'before' => 'auth|is_allowed', function()
  	 return View::make('gold'); }
));