Microsoft Windows 8 Preview Video

Jun 02
2011

The giant of Redmond has just released the first official video of how Windows 8 GUI will look like

Enjoy the video and post comments on this page!!

Parsing JSON data with PHP

May 19
2011

Json (JavaScript Object Notation) is an open standard ,derived from Javascript language, to exchange data between web applications in a human readable form.
Data served in Json format aren’t ready to use by a PHP script, so we need to convert the string into an array that PHP can handle.

The json_decode function help us doing the job, without it we should have parse data with regular expressions. Before we start using this function we need to know if the Json module is enabled in our PHP installation. There are two (probably more) ways to accomplish that, running one of the following functions (in a php file by webserver, or directly by shell):

  • looking for the json module in to the page generated by
    phpinfo();

  • or just checking the response of this command:
     var_dump(function_exists("json_encode")); 

If we have a positive response (mmmmm i doubt) we can start using the json_decode, otherwise the installation and activation of the json.so module il required.
Packages required: php-pear, php-devel, gcc, make.
Installation example on a Centos 5 server:

yum install php-pear php-devel gcc make

(in my case php-devel was auto-installed like a php-pear dependency)

Then run the following commands (or corresponding one into other distros) to update your php, install json, enabling it into php and finally restarting the webserver:

yum update "*php*"
pecl install json
cd /etc/php.d/
echo “extension=json.so” >> json.ini
service httpd restart

Handbrake 0.9.5 CLI for Centos 5

May 19
2011

Handbrake 0.9.5 is out and I’m going to post a new tutorial to install the CLI version on Centos 5. I found the following steps at Julian’s Corner, site to wich I attribute the work.

1) Install the Extra Packages for Enterprise Linux (EPEL) RPM Repository (32-bit version):

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

or 64-bit version:

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

2) Install required packages to build a binary file:

yum install libtool jam rpmdevtools bzip2-devel \
zlib-devel subversion git yasm-devel yasm \
intltool gcc-c++ make

3)Install a newer version of autoconf without overwriting the original one; just put it into a different location:

wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.61.tar.bz2
tar xjf autoconf-2.61.tar.bz2
cd autoconf-2.61
./configure --prefix=/opt/autoconf
make
make install
cd ..

(/opt path is intended for optional software packages)

4) Download Handbrake source code and extract all files into a folder:

wget http://handbrake.fr/rotation.php?file=HandBrake-0.9.5.tar.bz2
tar jxf HandBrake-0.9.5.tar.bz2

5) Finally, build the program:

cd HandBrake-0.9.5
export PATH=/opt/autoconf/bin:$PATH
./configure --disable-gtk
cd build
make

Handbrake 0.9.4 CLI for CentOS 5

Sep 22
2010

Tanks to Fredrik Rambris we can install Handbrake 0.9.4 CLI into our CentOS 5 using the RPM below.

HandBrake-cli-0.9.4-1el5.x86_64.rpm (4.8MiB)

If you don’t know how to install, follow these steps:

cd /tmp
wget http://fredrik.rambris.com/files/HandBrake-cli-0.9.4-1el5.x86_64.rpm
rpm -ivh HandBrake-cli-0.9.4-1el5.x86_64.rpm

Then run this command for syntax.

HandBrakeCLI --help

PS3 High-Def Snap-on Screen

Sep 21
2010

We haven’t had a chance to take Hori’s HD LCD Monitor 3 for the Playstation 3 for a full test run yet, but I wanted to give you a look at this high-def video monitor in action.

As I mention in the video, the HD LCD Monitor 3 hit Japan in May of this year, but it doesn’t hit the U.S. until the end of this week. The 11.6-inch widescreen LCD monitor supports a 720p picture, includes built-in speakers, plugs for headphones and other external composite inputs.

The drawbacks we see with this set-up, at least initially, are that it only works well with the PS3 Slim and it will set you back $250. Yikes! But it is tiny, form-fitting and HD.

via Kotaku.com

The Game – You’re screwed man

Sep 19
2010

Only the picture can explain the game.

The Game

Just for the records again… you’ve lost. And me too.

Zooey Deschanel, what else?

Sep 19
2010

Probably one of the most beautiful girls around.

Click on the image to show tons of photos about her, or click here to know something about her filmography.Enjoy.

Not everyone can fulgurate!

Sep 17
2010

fulgurator

WTF?!?!?!?! o_O

Julius made a miracle… and decided to keep it long far away from the huge companies that could use it for shit!
IMHO is possible to create something like this with just a projector and a little software (maybe written in processing www.processing.org )…

What do you think about? o_O

Red Dead Redemption: Liars and Cheats Pack Trailer

Sep 17
2010

Need need need, I think I’ve found a game for the newt winter season!

C&H – Internet slangz1!!11

Sep 16
2010

Cyanide & Happiness about the internet slang – Amazing.


Cyanide & Happiness @ Explosm.net

One word – ZOMG