Install git on linux

On December 9, 2009, in CentOS, Fedora, LAMP, Linux, Tips, Tricks, by Sandeep Verma

Hits: 256  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 [...]

Tagged with:  

Resize YouTube Video

On December 8, 2009, in LAMP, by Sandeep Verma

Hits: 484  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=”http://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=”http://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 [...]

Linux Command Line

On December 8, 2009, in LAMP, by Sandeep Verma

Hits: 130  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

On December 4, 2009, in CakePHP, LAMP, Oscommerce, PHP, Tips, Tricks, by Sandeep Verma

Hits: 125  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’, ”); [...]

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...