Install MP4Box

MP4Box is a multimedia package used for  conversion, splitting, hinting, dumping and others. zlib is a software library used for data compression. zlib was written by Jean-Loup Gailly and Mark Adler and is an abstraction of the DEFLATE compression algorithm used in their gzip file compression program. Source: http://sourceforge.net/projects/gpac/files/ Download latest “gpac-0.4.5.tar.gz” & “gpac_extra_libs-0.4.5.tar.gz” from … Read more

Install git on linux

Git is a free distributed revision control, or software source code management project with an emphasis on being fast. Git was initially designed and developed by Linus Torvalds for Linux kernel development. Every Git working directory is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a … Read more

Resize YouTube Video

Here is the code how to resize youtube video embed code, even this code will work to non-youtube embed videos….. <?php $embed = ‘<object width=”425″ height=”344″><param name=”movie” value=”https://www.youtube.com/v/jWDmG3JnNLE&hl=en_US&fs=1&”></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”https://www.youtube.com/v/jWDmG3JnNLE&hl=en_US&fs=1&” type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”425″ height=”344″></embed></object>’; //$alt = preg_match_all(‘/(width|height)=(“[^”]*”)/i’, $embed, $matches); $embed = preg_replace(‘/(width)=(“[^”]*”)/i’, ‘width=”200″‘, $embed); $embed = preg_replace(‘/(height)=(“[^”]*”)/i’, ‘height=”200″‘, $embed); echo $embed; … Read more

Linux Command Line

http://www.commandlinefu.com/commands/browse http://blog.commandlinekungfu.com/ http://www.shell-fu.org/ http://www.cyberciti.biz/ http://thecommandline.net/ http://cheat.errtheblog.com/ http://getfirebug.com/commandline.html http://xmlstar.sourceforge.net/ http://linuxcommand.org/ http://commandline.org.uk/ http://commandline.net/home.asp http://www.linuxguide.it/linux_commands_line_en.htm http://michaelminn.com/linux/command_line/ http://www.linuxclues.com/ http://www.go2linux.org/ http://www.yolinux.com/ http://www.linuxjournal.com/ http://www.linuxconfig.org/ http://www.linux.com/ http://www.howtoforge.com/ http://www.ehow.com/ http://www.yolinux.com/TUTORIALS/LinuxTutorialSysAdmin.html http://linuxsysadminblog.com/ http://librenix.com/

Trim and remove empty key & value in php array

Here is the PHP function that will remove empty key => value in PHP array… function array_trim($sv) { $s = 0; $svn = null; $c = count($sv); for($i = 0; $i < $c; $i++) { if($sv[$i] != “”){ $svn[$s++] = trim($sv[$i]); } } return $svn; } $svarray = array(‘   ‘, ‘svlinux’, ‘svnlabs’, ‘lamp’, ”); $svarray … Read more

Accessing a Resource in Java

Accessing a Resource in Java A resource is data(audio, vedio, image, text etc.) that  a program needs to access. Before accessing a resource by a Java program, the resorce is located on the underlying file system. Now, locating a resource on file system inside your project might be tricky for you. There are following ways … Read more

Install JAVA Tomcat on Linux

Installation of Java Login to server as root # cd /opt Download jdk 6 linux rpm bin package from sun (Java SE Development Kit (JDK)) http://java.sun.com/javase/downloads/index.jsp http://java.sun.com/javase/downloads/widget/jdk6.jsp # chmod 777 jdk-6u17-linux-i586-rpm.bin # ./jdk-6u17-linux-i586-rpm.bin Follow the onscreen instructions to complete jdk installation…. press space ….. press yes….. and Enter Now we will find JDK folder at … Read more

CakePHP in svnlabs

CakePHP is the rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. It follows design patterns like MVC and ORM, CakePHP reduces development costs and helps developers write less code. Features of CakePHP: – Extremely Simple. – Active, Friendly Community. – Flexible License. – Clean IP – Best … Read more

wsdl in php

We can use nusoap and pear library to invoke web service … there are some command line tools to consume services and generate/validate wsdl ….. 1. wsdl (call method at CLI) # wsdl WSDL_URL METHOD 2. soapUI create wsdl project and use web services 3. wsdl2php wsdl2php convert service methods as the class like structure … Read more

Install DimDim on CentOS 5.3 (Final)

Dimdim is a software company that provides a web-based platform (Webinar) for real-time, rich-media collaboration and meetings. Dimdim provides free web conferencing service where users can share desktops, show slides, collaborate, chat, talk and broadcast via webcam. Dimdim Web Meeting Server Version:4.5 ReadMe ( 32 bit Operation System Only ) Created : 16/10/2008 Last updated … Read more