svn

September 20th, 2011 by usage | 0 | Full Post

Subversion  is  a  version  control  system, which allows you to keep old versions of files and directories (usually source code), keep a log of who, when, and why changes occurred, etc., like CVS, RCS or SCCS.   Subversion  keeps  a single  copy  of the master sources.  This copy is called the source “repository”; it contains all […]

Audacity

September 12th, 2011 by usage | 0 | Full Post

Audacity : How to speed up a song or a podcast Import an .mp3 file Select all (CTRL+A) Go to Effect > Change Tempo choose 60% and then OK Export : File > Export > type something.mp3   Demo Link: http://www.youtube.com/watch?v=C-jLaw7XVoU

WinSCP

September 12th, 2011 by usage | 0 | Full Post

  How to fix WinSCP scp: /some/file: set times: Operation not permitted error Tools :: Preferences :: Common Options :: Preserve Timestamp uncheck Preserve Timestamp   Demo Link: http://www.youtube.com/watch?v=xYz0FENYrqg  

Internet Explorer

September 10th, 2011 by usage | 0 | Full Post

How to reset settings in Internet Explorer Screencast/Demo Link (better quality): http://www.youtube.com/watch?v=tGk33zx7oao

mklink

August 15th, 2011 by usage | 0 | Full Post

Creates a symbolic link. MKLINK [[/D] | [/H] | [/J]] Link Target /D      Creates a directory symbolic link.  Default is a file symbolic link. /H      Creates a hard link instead of a symbolic link. /J      Creates a Directory Junction. Link    specifies the new symbolic link name. Target  specifies the path (relative or absolute) that the […]

iframe

July 22nd, 2011 by usage | 0 | Full Post

Here is how to include a remote content using iframe <iframe src=”http://yourdomain.com/file.php” style=”overflow: hidden; width: 100%; height: 375px;border: none;” marginheight=”0″ align=”top” scrolling=”No” frameborder=”0″ hspace=”0″ vspace=”0″>Cannot load frame. Please send us an email instead. The email is: info@use-the-same-domain</iframe>

git

July 21st, 2011 by usage | 0 | Full Post

shows a nicely coloured diff git diff –ignore-space-at-eol –color

How to trim recursively in PHP

April 28th, 2011 by usage | 0 | Full Post

How to recursively trim in PHP <?php // Usage: echo Our_Util_String::trim(‘test’); /** * Util string functions. * * @author Svetoslav Marinov <svetoslavm@gmail.com> * @copyright Svetoslav Marinov <svetoslavm@gmail.com> & others * @version 1.0 */ class Our_Util_String { /** * Recursive Trimmer :) * http://php.net/manual/en/function.trim.php * * @param mixed $arr * @param string $charlist * @return mixed […]

jquery

April 27th, 2011 by usage | 0 | Full Post

How to set focus on first visible input box <script type=”text/javascript”> jQuery(document).ready(function($) { $(“input:text:visible:first”).focus(); }) </script> If you have embed code the code below selects the text when the user clicks on the textarea. Also the text area is readonly so the user can’t accidentally delete or cut fewer characters. <script type=”text/javascript”> jQuery(document).ready(function($) { $(“.embed_code”).click(function() […]

Zend Framework: Logout User

April 27th, 2011 by usage | 0 | Full Post

This snippet shows how to login i.e. clear the session of the logged user.