Slackware Linux 13.37 RC 3.1415926535897932384626433832

2011-04-02 1 min read Linux Uncategorized

Slackware released the next version a few days back and guess the complete name : Slackware Linux 13.37 RC 3.1415926535897932384626433832. You must be crazy to tell the complete version to anyone.

Development Release: Slackware Linux 13.37 RC 3.1415926535897932384626433832 More fun with Slackware’s version numbers as Patrick Volkerding announces the latest release candidate for the upcoming Slackware Linux 13.37: +ACI-There have been quite a few changes so we will have one more release candidate: Slackware 13.37 RC 3.14159265358979323846264338327950288419716. Very close now+ACE But we’ll likely hold out for….

Continue reading

sakura – Reaaly good terminal with very few dependencies.

2011-03-30 1 min read Fedora Uncategorized

I was searching for something in the Fedora repos and found a really good terminal, sakura. Its very much like Gnome-terminal. I did not find much difference other than using less memory.

To install:

  <td>
    <div class="text codecolorer">
      sudo yum install sakura
    </div>
  </td>
</tr>
1

and the details of the package:

Name        : sakura
Arch : i686
Version     : 2.3.8
Release     : 1.fc14
Size        : 137 k
Repo        : installed
From repo   : fedora
Summary     : Terminal emulator based on GTK and VTE
URL : http://pleyades.net/david/sakura.php
License     : GPLv2
Description : Sakura is a terminal emulator based on GTK and VTE. It’s a terminal emulator
with few dependencies, so you don’t need a full GNOME desktop installed to
have a decent terminal emulator.
Enhanced by Zemanta

Ranking of the most frequently used commands

2011-01-31 2 min read Linux Uncategorized

Lets take a quick look at how to get the most frequently used commands on you shell. So what we need to do is this:

  <td>
    <div class="text codecolorer">
      history | awk '{print $2}' | awk 'BEGIN {FS="|"}{print $1}' | sort | uniq -c | sort -n | tail | sort -nr
    </div>
  </td>
</tr>
1

So, how did we arrive at this and will this always work? No it might not always work. A typical example is where HISTTIMEFORMAT variable is set. In that case, if you check history, you will see that after the number column we have time and date in the specified format, in which case, you will get wrong information from the above command. Anyways, forgetting these special cases, lets go to how we got this command:

Continue reading

fork a new process in perl

2011-01-27 1 min read Uncategorized

I was doing something today and found that I require to fork a new process in perl. Now I had never done this earlier, so I did not know how to do this.

First some background :

I was doing some program very similar to http server, where the script accepts some input through a socket and then processes the same. In doing so I was seeing that the script was taking some time in processing the input and thus was not processing the second request until the first one was completed. Simple solution, fork the process.

Continue reading
Older posts Newer posts