Monthly Archives: March 2010
Hi,
thanks to a post on infosertec.com i get noticed this distro and i wanted to test it for a little to see how it works
(the review after the break,sorry for the screens, i tested it in a virtual machine
)
Related Post
Hi,
some new tips about subversion
if you need to update a web directory after someone make a commit just follow this guide: http://subversion.apache.org/faq.html#website-auto-update
i wanted to post this why it take me some time to figure out that a simple bash script don’t going to work and even if it worked with some tricks, i always getting a merge and not an update of the repository
some thing that the faq don’t mention is how to compile the program, if you are a newbie and don’t know how to do it, just run this command
gcc your_file_name.c -o your_binary_name
i hope it helps
Regards.
Shadow.
Related Post
Hi,
recently i changed how a REST API sent the info from xml to JSON, that mean that now the arrays was converted into objects after the json_decode(). don’t was too much problem till i see that my smarty templates don’t worked anymore
the change of each file don’t was an option and the convert from objects to arrays is wasting resources in nothing, so i made a hack in the smarty main class
basically in the file Smarty_Compiler.php at line numero 1203 i added this if():
if(is_object($from)){
$output .= “\$_from = $from;”;
$output .= “foreach(\$_from as $key_part=>$item){“;
}else{
and in the else, you wrap all the other code to parse arrays
now the foreach will parse objects and arrays
i hope it helps.
Regards,
Shadow.






