General Tutorials, Tips & Tricks

Shell Script to Rename & Move files in Unix

Problem Statement: I have few files in source directory. I have to move them to another destination directory. The source directory have *.txt files that needs to be moved to destination directory. The destination filename should be *.txt.backup.So how to accomplish the above task in Unix Shell Script?Well the solution is simple:cd source/ for file in *.txt do mv "${file}" ../destination/"${file}.backup"Run a loop for each ...

Microkernel Architecture Pattern & Applying it to Software Systems

Microkernel Architecture Pattern & Applying it to Software Systems
Architectural Patterns always been interesting from designer perspective. MVC, Pipe’n’filter, Layered,3-tier, n-tier, etc. But one very basic architectural concept coming from Civil engineers in practice.‘’Have common building block with minimal facility as a base, with modular and customizable components to suit customers need will provide flexibility to whole town /architectural planning and also help to save cost for designer ’’Same concept is ...

How to Track External Links using Google Analytics?

How to Track External Links using Google Analytics?
Google Analytics allows you to track how often viewers on your website click particular links on your website. Links to internal pages are automatically tracked, however you must add JavaScript code to links that point to pages outside of your own website (Exit Links) in order to track them.There are couple of ways you can track ...

Free Design Patterns Reference card for you!

Free Design Patterns Reference card for you!
Design Patterns are always wonderful for one who can perceived them as an tool to create generic solution to commonly occurring problems, let it be then software architecture, development issue or just coding work around.With plethora of resources and material available online about software design patterns, it's always a GoF Patterns book serves as bible. However it is not prudent every time ...

SEO for Bloggers by Google’s own Matt Cutts!

SEO for Bloggers by Google's own Matt Cutts!
Matt Cutts is the head of the webspam team at Google where he specializes in search engine optimization (SEO) issues. He is known in the webmaster and SEO community for applying Google’s Quality Guidelines.Matt was at WordCamp San Francisco 2009 talking about search engine optimization forum "Straight from Google: What You Need ...

Save Webserver Space by turning off Image Thumbnails in WordPress

Save Webserver Space by turning off Image Thumbnails in Wordpress
If you are using wordpress as your blogging system you know that everytime you publish a post with an image, Wordpress creates two thumbnails and store them in the web server. These thumbnails are useful for photo galleries where smaller image will be displayed have a link to original image. These thumbnails are useful if you displaying some photo gallery but otherwise it just eat ...

Generate Random Number in UNIX Shell Script

Generate Random Number in UNIX Shell Script
RANDOM is a peculiar shell variable, but useful nonetheless. Peculiar because its value changes each time it is referenced (yes, this is by design).As you may have already guessed, RANDOM is a random number generator. The number generated is an integer between 0 and 32767, and can come in handy when writing shell scripts. ...

Unlock your iPhone 3GS in 4 simple steps

Unlock your iPhone 3GS in 4 simple steps
Soon after the iPhone 3GS was launched, it was jailbreaked by a 19 year old hacker George Hotz. Jailbreaking and unlocking are two entirely different things. Jailbreaking is simply hack that lets you install unapproved third-party applications on your iPhone. Unlocking, on the other hand, is a hack that lets you use your iPhone ...

Compile your code online using Codepad.org

Compile your code online using Codepad.org
While surfing through the web, I encounter this wonderful website codepad.org, that can be used to compile/interpret and share code snippets online. A number of language/script option is available which can be used to compile your code online.I started with writing a simple Hello World C program.#include main() { printf("Hello World"); }...

20 very useful Eclipse IDE Shortcuts for Developers

20 very useful Eclipse IDE Shortcuts for Developers
Eclipse have been my favorite Java IDE since I started coding in Java. Shortcuts makes life very easy when you are working with any IDE. Eclipse also comes with lot of shortcuts that makes like of a developer easy.Following are few shortcuts of my choice.Ctrl + Shift + O : Organize imports Ctrl + / : ...
Page 2 of 512345