Category Archives: Tools

Secure copy files between hosts

Description: Use scp (secure copy) to copy data between different servers, from local or remote hosts. Solution: Syntax for secure copying is easy, you just need to provide the source and destination of the file/folder. Depending where you are copying to … Continue reading

Posted in Linux, Tools | Tagged , , , , | Leave a comment

Create symlink

Description: A symlink (or symbolik) link allows creating an alias for a file or folder in a different folder with a different name. This can come in handy for accessing special folders in the structure that don’t need to be … Continue reading

Posted in Linux, Tools | Tagged , , , | Leave a comment

Install compass and sass on linux machine with Ruby

Description: Compass offers a highly simplified way of writing style sheets. Basically users can create sass files, that can share style information, and then compile this using Compass into regular old-fashioned CSS files. Unfortunately Sass requires Gem which is a … Continue reading

Posted in Linux, Tools | Tagged , , , , | Leave a comment

Basic Git branch operations: create, update, delete

Description: Basic Git version control operations regarding branches. Solution: Create branch: >git checkout -b branches/new_branch Fetch changes: >git fetch Update branch/branches: >git pull >git pull origin branches/new_branch Delete branch: >git branch -D branches/new_branch

Posted in Best practices, Tools, Version control | Tagged , , , , , | 1 Comment

Send e-mail with Undisclosed Recipients

Description: For privacy purposes, it’s often required to send a mass e-mail message without wanting one recipient to know about the identities of the others. Solution: The field “BCC”, representing a “blind carbon copy” can be used to have privacy … Continue reading

Posted in Best practices, Tools | Tagged , , , , | Leave a comment

301 and 302 redirect, differences and implementation

Description: Is there any difference between 301 and 301 redirects ? Solution: Practically, there is limited difference between the two. To be precise, 301 redirect signals a permanent move of the page, while 302 reffers to a temporary move. This … Continue reading

Posted in Best practices, PhP, Script, Tools | Tagged , , , | Leave a comment

Add characters at the end of each line in Notepad ++

Description: Add a comma (,), period(.) or any other character at the end of each row in Notepad ++, from a column of elements. Solution: Addign a character in any position of a column in Notepad ++ is very easy. … Continue reading

Posted in Best practices, Tools | Tagged , , | Leave a comment

Rewrite links with htaccess

Description: Rewrite or redirect links insite a web application. Solution: Redirection is simple using htaccess. Just create a file named .htaccess in the root of your web project and with some basic rules and regular expressions, all calls to your … Continue reading

Posted in System, Tools | Tagged , | 7 Comments

Get current and past month with Zend Date

Description: Return current and previous months in Zend Framework, considering passing into a new year as well. Solution: Zend Framework, through Zend_Date() offers a quick solution for this problem. With the get() function we can return any part of the current date, and with … Continue reading

Posted in PhP, Tools, Zend Framework | Tagged , | 1 Comment