Thursday, February 28, 2013

MTE Explains: How CRON Can Automate Your Tasks And Make Your Life Easier

MTE Explains: How CRON Can Automate Your Tasks And Make Your Life Easier

cron-clockCron is a daemon that executes scheduled commands for Linux. You can use Cron to schedule and automate jobs in Linux, saving you from having to do them manually.

Note: Cron is available in most *NIX system, including Mac OS X. In this article, we will be discussing from the Linux perspective.

How does cron work?

Put simply, cron scans your computer for text files and executes the commands inside them at regular intervals. Cron does not execute just any text files, only the ones located in a specific location on your hard drive. These text files are called “crontabs”.

A crontab is a text file with a list of commands that will automatically r un at specific times. These commands are referred to as cron jobs. The cron daemon executes the cron jobs within the crontab and handles the scheduling, all in the background.

There is a root crontab for tasks that require administrative privileges. Each user also has their own crontab file so that they each may run their own personal set of tasks, and these tasks will run regardless of whether or not that user is logged in.

Cron searches the area located at /var/spool/cron/. This location is where crontabs are stored. If I open this file using a general text editor, this is what is displayed.

cron-kate

Note the warning not to edit this file manually. You can edit it directly inside the terminal, but there are also specific applications for editing crontabs. GNOME users may be inter ested in checking out Gnome Schedule. KDE users can check out the KDE Task Scheduler.

Viewing a crontab

If you want to manually view your crontabs, here are some basic commands.

To display a crontab:

To remove a crontab:

To edit a crontab:

When you edit a crontab within a terminal for the first time, cron will ask you to select an editor. It points out which editor it believes to be the easiest, which is probably nano. To change this in the future, type:

It then opens a blank crontab from the templates directory. Anything saved in this file will be executed as the user.

Reading a cron job

A cron job can be broken down as follows:

Minute: 0 â€" 59
Hour: 0 â€" 23 (0 = midnight)
Day: 1 â€" 31
Month: 1 â€" 12
Weekday: 0 â€" 6 (0 = Sunday)
Command: Command to execute

A * means to execute at every interval.

Take a look at this command:

04 07 * * 6 /usr/bin/sbin/backup.sh

In the above example, I am running /usr/bin/sbin/backup.sh every Saturday at 7:04 AM regardless of the month or date.

The image below provides an sample cron job and a look at the appropriate syntax:

cron-syntax-sheet

Final Thoughts

Even if you have never opened up a crontab before, your computer likely has cron jobs already operati ng in the background. Cron makes it easy for a distribution to check for updates at regularly scheduled intervals or to know when to back up files. Regardless of which application you use to create and edit future cron jobs, the syntax inside a crontab remains the same.

With these tools at your disposal, you can automate tasks with cron and can set your music to begin playing at specific times of the day, have your email refreshed before you sit down at your computer each morning, tell your computer to shut down at a specific time every night, or nearly any other single task you are accustomed to doing by hand.

Understanding The Differences Between the Various Audio File Formats (and Which One Is The Most Suitable for You)

Understanding The Differences Between the Various Audio File Formats (and Which One Is The Most Suitable for You)

audioformats-iconYou probably know which are the most used audio formats across the Web, but do you know the differences between them, or how are they produced? And have you ever thought on which format is more suitable for your needs?

The differences between Analog and Digitial sound

Even though man has the ability and the means to record sound, that record will never be an exact representation of the original sound.

The following image shows the waveform for analog and digital sound wave. As can be seen, the analog sound wave (1) is rather different from the digital one (2).

audioformats-wave

The analog waveform is continuous and have successive crests and troughs that represent highs and lows of our voice whereas a digital waveform is like a barchart where the highs and lows are represented as number. The quality of a digital sound wave is often linked to its “sampling” rate. CD has a quality of 44100 samples per second (44.1 KHz), which is a quite good representation for our ears.

Lossless vs Lossy

There are two different kinds of digital audio file formats â€" the lossless and the lossy. As the name suggests, the lossless file is made without any losses relatively to the original tracks. For example, when you rip an audio CD to your hard drive in lossless format, the files you get are the exact same tracks contained within the CD. However, if you select the lossy format, some information that is unnecessary for the listener, such as sounds that we cannot hear, are discarded.

Lossless formats include WAVs, FLACs, AIFF, and Apple Lossless. Inside this group, the first two are probably the better-knowns.

Inside the lossy formats, other than the popular MP3, we still have WMA, AAC, MP2 and OGG. The main difference between these formats is the multiple encodings technology used.

There is still another thing to consider: whether the format has a variable (VBR) or constant bitrate (CBR). Some formats have variable bitrates, since they use higher bitrates for complex segments of the file, and lower for the other segments. VBR formats have a better quality-to-space ratio, compared to CBR ones. Even inside each format, there are different kinds of bitrates. For example, MP3 is usually found in V0 (~245 kbps), V2 (~190 kbps) and 320 kbps.

The Size Issue

If you have noticed, FLAC files are usually much bigger than the MP3 ones (usually ab out 10 times bigger). This is because their bitrate is higher. “Bitrate” is the amount of information processed per second whenever you play a file. So, the higher the bitrate, the higher amount of information will be processed and the better sound quality will be presented (the same happens for images and photos). In this case, a sound file created with a higher bitrate (such as FLAC) will be bigger in size than a sound file with lower bitrate (such as MP3).

audioformats-size

In the above image, I compare 2 folders from my music collection: the first is a FLAC album, the second is an MP3 (128 kbps), and they have, respectively, 14 and 13 songs plus the album cover. As you can see, the FLAC album is much bigger in size than the MP3 one. Lossless formats such as FLAC give a better music quality, but they take u p much more space than the lossy ones.

Which audio format is suitable for you?

There are many factors that can affect which format you should choose for your music:

  • If you have plenty of storage space, be it offline or online, you will want to go for the lossless format (such as FLAC).
  • If you are an iPhone, iPod or Mac user and you purchase your music from iTunes, you are mostly stuck with AAC.
  • If you purchase music from Amazon or any other source, you will be mainly dealing with MP3.
  • WMA is a proprietary format by Microsoft. It is usually smaller in size (than MP3), but not well supported in other platforms.

For MP3, the 320 kbps files are really the better ones, but again a regular person won’t tell the difference between those and the V0 ones. A regular V0 album with about 15 songs is about 65 MB in size, so I personally believe that V0 (VBR, if possible) really is the best quality-to-space ratio option for yo ur music collection.

Is this article helpful? Let us know in the comment.

Cool Websites and Tools [February 27th 2013]

Cool Websites and Tools [February 27th 2013]

Check out some of the latest MakeUseOf discoveries. Most of the listed websites are FREE or come with a decent free account option. If you want to have similar cool website round-ups delivered to your daily email, subscribe here.

Add Your Website Here!

My image Chroma â€" Web developers and graphic designers often experiment with different shades of the same color. One way to get different shades of the same color would be to add different quantities of black and / or white into the color to make it darker or brighter. But a far easier approach would be to use a helpful tool called Chroma. Read more: Chroma: An App That Shows You All Shades Of Colors [Chrome]

These are just half of the websites that we discovered in the last couple of days. If you want us to send you daily round-ups of all cool websites we come across, leave your email here. Or follow us via RSS feed.

Using Gestures to Quickly Launch Apps on Android

Using Gestures to Quickly Launch Apps on Android

android-gesture-introTo open apps in Android, the typical way is to go to the app drawer and select the app you want to run. This may not be an efficient method. Using gestures to quickly launch your favorite app is perhaps one of the better way to be productive.

Some apps have gesture options. Browsers, searches and even apps that call and text can all be activated through gestures on Android. Trigger is one of the newer apps to the Google Play Store, but is really making some waves. While other apps are geared towards a specific task (e.g. dialling o r searching), Trigger is all about launching Android apps and actions. The free version of Trigger will let you make up to six gesture actions so it is a good way to try it out before you buy it.

Using Trigger

Using Trigger is not difficult. Right after you have installed it, you can start to add apps or other actions.

android-gesture-basic-actions

Starting out with the tabs across the top, you have six different parts of the phone or tablet you can control by gestures. Start by taking a look through all of the different options to get a feel for what you might want to have easier access to. Remember, the free version only lets you set up six differen t gestures. Most of the time you need fast access to an app or a setting, so that’s where we will be focusing.

android-gesture-tabs

With the Apps tab opn, you will see a fairly empty screen. To add an app, press the “+” at the top right. When you do, you will see a scrollable list of your apps and a spot to draw the gesture. Adding gestures to settings or other options is done the same way.

android-gesture-app-selection

In this tutorial, I’m setting up a gesture for Dropbox. The gesture needs to be a single motion. So drawing an “=” or multiple letters will not work.

android-gesture-dropbox

Once you have the gesture decided on, you will be asked to test it out. If the gesture is difficult to repeat with ease every time, you may want to try a different gesture.

android-gesture-test

When you have a few apps and settings added to Trigger, you can start to use it. You may have noticed the floating blue teardrop shape on your screen. This is how you open the Trigger screen to draw the gesture. You can also set up apps to be activated by dragging this little icon in a direction. To hide and show this icon, go to the notification bar and tap the Trigger Toggle tab.

android-g   esture-trigger-icon

Now that the HOW part is all done, let’s take a look at what you can really do with Trigger.

Uses for Gestures

As I mentioned earlier, the most common things most people are interested in having fast access to are apps and settings. Here are some possible uses:

  • Toggle Google Voice call settings.
  • Opening the compose window for a SMS to a specific person.
  • Dialling a specific contact.
  • Turn WiFi on or off.
  • Toggle Bluetooth on or off.
  • Start Google Maps with a predetermined location entered.
  • Open any app on your phone or tablet.
  • Go to a bookmark in your browser.
  • Create a shortcut to something stored in Google Drive.
  • Open a feed in Google Reader.

As you can see, there are a lot of possible uses and what I listed here is a really sma ll portion of all the choices.

Final words

Whatever the reason you are getting into using gestures, Trigger is one of the most full-featured gesture launchers I have come across. If you are using some gestures in Dolphin HD or another browser and like how handy they are, Trigger would be a great addition to your phone or tablet.

How are you using gestures on Android?

Wednesday, February 27, 2013

Is There Room for Ubuntu and Firefox in Smartphone Market?

Is There Room for Ubuntu and Firefox in Smartphone Market?

FirefoxOS-Logo2While Google and Apple have been battling it out to decide who will grab the lion’s share of the smartphone market, some new guys on the block have decided to throw their hats into the ring. Users pick up the battle, arguing whether Android or iOS is the best smartphone operating system, but they aren’t the only contenders anymore, with Ubuntu and Firefox poised to enter the market. And they’re not alone. Tizen wants a piece of the action as well.

Previously Windows Phone jumped into the game with a lot of fanfare, but they really haven’t made a dent in the market controlled by Google’s Android OS and Apple’s iOS. Despite this, Ubuntu and Firefox, as well as Tizen, have recently announced plans to join the crowded smartphone and mobile operating system market.

Mozilla has been successful with its Firefox browser, competing against Google Chrome and Apple’s Safari, and now they are ready to jump into the mobile game as well. They have plans to release Firefox OS sometime this year. Ubuntu has had its own success as a desktop operating system for Linux computers, and now they, too, want to jump into the mobile OS market with Ubuntu Touch. Tizen has no immediate plans to be released in the US, but with backers such as Samsung and Sprint Nextel Corp. a member of the Tizen Association, it makes you wonder how long it will be before Tizen-enabled phones are in the States.

mobile-phones

< p>Image credit: Mobile Phones Old and New

The burning question is, of course, what will happen in this market. What will happen to Android and Apple? Will they continue to control the mobile OS market or will they give up some of their dominance to the overcrowded market?

Android has been gaining momentum on Apple recently, but maybe the newbies coming in will hurt their trend. For a long time, the fight has been Apple vs. the other guys, and that goes all the way back to desktop computers, as well as mobile phones and tablets. With three more joining “the other guys,” does that boost Apple’s rank and take away some of Android’s share?

It’s a good guess that Apple isn’t too worried right now, despite the mess that their stocks have become with unhappy investors. It seems far more likely that Android users will fall from the ranks to try the services of the Ubuntu and Firefox OS rather than Apple users, and if Tizen is released in the US, that’s only going to complicate things even more. It will still be Apple vs. the other guys, and the other guys will be splitting that share five ways.

What do you think?

Is There Room for Ubuntu and Firefox in Smartphone Market?

Is There Room for Ubuntu and Firefox in Smartphone Market?

FirefoxOS-Logo2While Google and Apple have been battling it out to decide who will grab the lion’s share of the smartphone market, some new guys on the block have decided to throw their hats into the ring. Users pick up the battle, arguing whether Android or iOS is the best smartphone operating system, but they aren’t the only contenders anymore, with Ubuntu and Firefox poised to enter the market. And they’re not alone. Tizen wants a piece of the action as well.

Previously Windows Phone jumped into the game with a lot of fanfare, but they really haven’t made a dent in the market controlled by Google’s Android OS and Apple’s iOS. Despite this, Ubuntu and Firefox, as well as Tizen, have recently announced plans to join the crowded smartphone and mobile operating system market.

Mozilla has been successful with its Firefox browser, competing against Google Chrome and Apple’s Safari, and now they are ready to jump into the mobile game as well. They have plans to release Firefox OS sometime this year. Ubuntu has had its own success as a desktop operating system for Linux computers, and now they, too, want to jump into the mobile OS market with Ubuntu Touch. Tizen has no immediate plans to be released in the US, but with backers such as Samsung and Sprint Nextel Corp. a member of the Tizen Association, it makes you wonder how long it will be before Tizen-enabled phones are in the States.

mobile-phones

< p>Image credit: Mobile Phones Old and New

The burning question is, of course, what will happen in this market. What will happen to Android and Apple? Will they continue to control the mobile OS market or will they give up some of their dominance to the overcrowded market?

Android has been gaining momentum on Apple recently, but maybe the newbies coming in will hurt their trend. For a long time, the fight has been Apple vs. the other guys, and that goes all the way back to desktop computers, as well as mobile phones and tablets. With three more joining “the other guys,” does that boost Apple’s rank and take away some of Android’s share?

It’s a good guess that Apple isn’t too worried right now, despite the mess that their stocks have become with unhappy investors. It seems far more likely that Android users will fall from the ranks to try the services of the Ubuntu and Firefox OS rather than Apple users, and if Tizen is released in the US, that’s only going to complicate things even more. It will still be Apple vs. the other guys, and the other guys will be splitting that share five ways.

What do you think?

How To Get More Traffic On a Single Post – 5 Simple Ways!

How To Get More Traffic On a Single Post â€" 5 Simple Ways!

There may be a lot of posts claiming you to earn more traffic but then those posts mostly have alien ideas and solutions, simple ways, wanted results is what this post is all about. You can’t find refuge from this word, Marketing, in all conventional and non-conventional businesses today. Here are some simple ways after reading which you’ll get to know how easy it is to get more traffic on a Single post without investing more money/time into writing further stuff.

How To Get More Traffic On a Single Post

How To Get More Traffic On a Single Post

1. Social Bookmark It

Today Top Social Bookmarking sites gain millions of traffic each day, you might not be so optimistic but some drops in the rain even can get you dozens of visitors. Top Social Bookmarking sites :Twitter, StumbleUpon, Digg, SlashDot, Reddit are few of top such sites.

2. Post Comments Intelligently

You might have learned from the internet to post comments randomly at all sites belonging to your niche and earn more traffic, this idea is wrong, we are going to explain you how to comment intelligently ?

Step 1 : Open Your Favorite Search Engine (In my case Google.com)

Step 2 : Use your Article’s Title as Problem/troubleshooting Statement
Example : if title is : Learn to JailBreak iPhone 5
Search : How to jailbreak iPhone 5 easily/simply

Step 3 : Open all those sites, where this title is posted as a question

Step 4 : Scroll down and post your comment giving your site link, always remember to write
description of your link, also always remember to sign-in and post so users to that site believe its a
trust-worthy link.

Step 5 : See individual comments of your other people asking for support, assist them and give
them a link to your site, this will give you 100% Loyal Visitors for next time

3. Multiply your Page-views

If you have, lets suppose, 5 posts on iPhone 5, we would advise you to create such a situation that you have a link (at least one) in all of the posts, this will create a link-cycle and will indeed, move traffic from one of your post to another, This would help you in following ways :

  • Create a strong keyword for your site :  As Much keyword you link around posts, as much it will give weight-age is top Keyword for your site.
  • Revolve Traffic: I’ve already informed above that how this will happen.
  • Visitors realization : Visitors will realize that this website has Great posts on an XYZ Topic

4. Answers Questions Online

Visit Global Answer Websites, where people from around the globe put their questions, go there, search the questions for which you have the answer, sign-in (this is a must to prove credibility) and post your answer and link. Some of top Answer Sites are , Yahoo Answers, Wiki Answers, Answers.com, Answerbag.com

Result :
A few hundreds of visitors will visit the page in days/weeks/months/ to come giving you 100% purpose based traffic.If the website doesn’t allow links posting, do the following :

URL : www.tipsotricks.com/iphone

Post is as :  tipsotricks(dot)com(Hash)iphone

5. Encourage Visitors to like your Post

If a visitor likes your post, your visitor-ship can be multiplied very easily, ask how, If a visitor has 200 facebook friends, he visits your site, likes you, the like comes in his News Feed, even if a few friends manage to visit the site from the feed and further liking it, it can do wonders for you and earn you more traffic

So, hoping these tips get you to earn more traffic on your site and if you know few more trick to increase traffic do share with us in comments.

Check Out These Related Articles Too:

//PART 2