Free online photo editor

Pixlr is a free online photo editor. Fix, adjust and filter your images. Manage your images in your browser! Get creative images with the free online photo editor and fix with the image express (crop, resize, rotate, flip etc)! Jump in and get going within 2 seconds! Source: http://www.pixlr.com/editor/ http://www.pixlr.com/express/

Create TCPDF PHP Fonts

TCPDF supports TrueTypeUnicode (UTF-8 Unicode), OpenTypeUnicode, TrueType, OpenType, Type1, CID-0 and Core (standard) fonts. You will find font creation utility at fonts/utils of TCPDF… copy desired font to fonts/utils/svnlabs.ttf * For TrueTypeUnicode # cd /var/www/html/tcpdf/fonts/utils # ttf2ufm -a -F svnlabs.ttf # php -q makefont.php svnlabs.ttf svnlabs.ufm * For embedded fonts to tcpdf PDF file.. copy … Read more

Exclude folders from zip – tar

TAR – Tape Archive  (application/x-tar) A common archive format used on Unix-like systems. Generally used in conjunction with compressors such as gzip, bzip2, compress or xz to create .tar.gz, .tar.bz2, .tar.Z or tar.xz files. # tar -cvvf foo.tar foo/ –exclude=”/home/svnlabs” # tar -cvzpP –file=/home/backup.tar.gz –exclude={/dev/*,/proc/*,/sys/*,/tmp/*} / tar work with directory “/” except for /dev, /proc, … Read more

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

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