Selectively Extracting Files or Directories from a Tarball File

If you use Tarball or Gzip file archives for storing your data, occasionally you may need to extract only a few select files or directories, rather than the entire archive file’s contents. Many people waste time, CPU, and drive space extracting the entire archive only to get access to a few of the contents, then to discard the rest of the data.

Why should one wait on files to extract that will just be deleted immediately after, without being used? Thanks to the great minds behind the tar application for Unix and Linux; we have been privileged with a solution. A little-known time saving tip is that extracting only specified directories or files from a tar gzip file is possible. Continue Reading

Escaping forced IFRAME ads from your Webhost with JavaScript

Are you irritated by those forced advertisements placed through IFRAMEs on your free web space from your host? In this guide, I will show you how to escape the IFRAMEs used when masking / redirecting to your destination address.

These ads are displayed at the top of a forced IFRAME , with the main content being forwarded to the clients destination, all while remaining nested inside the parent frame so as to keep the main ad in the main frame on display through out the user’s entire browsing session.

Using the following JavaScript will help you get your content forwarded first, and then exit the forced ad’s by reloading itself without the IFRAME, thus no more IFRAME advertisements. Continue Reading

Create a symbolic link in Linux to a file or a directory path

You wish you didn’t have to copy files and folders twice on your Linux web server, and consistently have to come up with a way to keep the duplicate files or directories synchronized?

A symbolic link in Linux or Unix is a virtual pointer to another directory or file. It acts in all ways as if it were the original file or folder. A symlink will appear in any directory listing (ls -al), and will indicate the original directory or file. All child directories of a symlink directory will inherit the symbolic link’s directory path when accessed through the symlink. Any changes made to the symbolically linked file or directory, will occur in the original actual file or directory, as the symbolic link just points straight to it. Continue Reading

Using Twitme plugin for wordpress? What the author didn’t tell you about your privacy.

If you are a WordPress user and you use the plug-in “Twitme” to automatically post any new blog entries to your WordPress account, then there is something you need to know.

It is unwritten law that if you are going to collect someone’s personal information through an application, or web application that you will notify them accordingly.

Unfortunately, not everyone follows this unwritten law, which is now standard and considered a moral obligation of website, and application authors and publishers. Here we take a look at one good example of this standard being ignored from a popular plug-in for WordPress, “Twitme”. Continue Reading

Recursively chmod permissions of only files in linux

So, you want to change the Linux permissions of all files in a directory and all sub directories, but not affect the permissions of the folders?

This simple guide will show you how to do a recursive chmod changing only the permissions of files, while leaving the permissions for all directories untouched.

The recursive chmod-files-only syntax:

The following shell command will chmod all files only (and ignore the directories) setting the permissions to 644. Continue Reading