You have succeeded in life when all you really want is only what you really need.

Find Out More

NetBeans tips

NetBeans is a really great tool that can help on the rapid development of Java Web Applications or Java Desktop Applications, with a great community and many fans (mostly Java Developers). This article discusses upon a specific flow that I have found, that seems to be a bug inherited from...


A great tool called ‘Regular Expressions’

The simplest way to use regular expressions is when we search for a single word. For this article , we'll use the command line tool called 'egrep' (egrep is available for many systems, like DOS, Windows, MacOS and Unix) So let's say that we have a file called article1.txt like...


Perl tips

- Variable Interpolation This is a classic between many programming languages. When we use a double quoted string, for every variable that we put inside the string , we get variable's value as part of the output when we execute our script. For example : #!/usr/bin/perl #script1 use 5.012; my...


Mac OS Lion 10.7.2 memory problems

As I was working using firefox I noticed the appearance of the well known 'beach ball' that shows that the operating system is struggling to acquire resources. Immediately I ran Activity Monitor to see what is going on. Here is the table with the processes that I've got after running...


Custom sorting in python

A classic way in python to sort a list is by using the sort() function. For example if we have a list >>> x = [3, 8, 4, 2, 9] ...we can use sort() like this... >>> x.sort() >>> x [2, 3, 4, 8, 9]   As you can see...

Command Line

Executing our first script

Today we'll see how to run our first program from the command line. First we should be in our home directory. To do that type : > echo $HOME In my case, executing this command has the following result: /Users/myUserName   Now we must select a directory for the script...