Archive for November, 2008

David Heinemeier Hansson

No Comments »



Favorite wallpaper

No Comments »

My favorite wallpaper


Zend Framework Soap server

3 Comments »

Thanks for great explanation Viktorai Agejevai

Server class has function:

/**
* @desc Get Product info by product_id
* @param int $product_id
* @return array
*/
public function getProduct($product_id)
{
	$result = array(
		"product_id"=>$product_id,
		"title"=>'Product Title'
		);
	return $result;
}

Client get response:


	
	  product_id
	  2
	
	
	  title
	  Product Title
	

I want this response to be like this:


	
2
		
	

How do i do that ?


Simple SVN checkout using PHP

2 Comments »
	 $username = "username";
	 $password = "password";
	 $repository = "http://google-web-toolkit.googlecode.com/svn/trunk/";
	 $destination = 'your/full/path';

	 $checkout = "svn export --force --username $username --password $password $repository $destination";
	 $result = _exec($checkout);

	function _exec($cmd)
	{
	    if (substr(php_uname(), 0, 7) == "Windows") {
	        pclose(popen("start /B ". $cmd, "r"));
	    } else {
	        exec($cmd . " > /dev/null &");
	    }
	}

Sorry assembla, moving out

No Comments »

I was and I am still very happy with assembla.com. All the tools you provide are the all you ever need while managing project. But for my needs, it was too much. I just need svn hosting, so sorry moving out to svn.xp-dev.com They promised stay for free for a long time. We’ll see.


Quote

No Comments »

“If you have to ask, you can’t afford it.”


Rasmus Lerdorf quotes

No Comments »

I really liked all the quotes on wiki Rasmus Lerdorf ever told. Best of all is :

There are people who actually like programming. I don’t understand why they like programming.