September 2011
1 post
2 tags
Perl Weekly: A Free, Weekly Perl Email Newsletter
I will like to introduce you to Perl Weekly:
A free, once a week e-mail round-up of hand-picked news and articles about Perl.
Perl Weekly is managed by Gabor Szabo of Perl Training Israel.
Perl Weekly will help you keep up to date with the latest happenings in the Perl community from around the world. It features news about conferences and workshops so that you do not miss one. Articles...
August 2009
1 post
1 tag
svn: Directory .svn containing working copy admin...
While working with Subversion, I removed a directory (specifically .sass-cache/) after placing it under version control without knowledge. Subversion failed to commit. I had to forcefully remove the already removed file to proceed.
svn remove --force .sass-cache/
May 2009
1 post
1 tag
SSH Hosts
Why should ssh shell.example.com -p 2345 -l example be used when you can use ssh shell?
Create $HOME/.ssh/config file if it does not already exist. Populate it with the following data:
Host shell
User example
Hostname shell.example.com
Port 2345
That is it! You can now just ssh shell.
December 2008
3 posts
Finding the latest linux kernel version
I always like to run the latest linux kernel. I found that I kept checking http://kernel.org/ at regular intervals. Thus this script was born: latest_kernel.pl.
WWW::Rapidshare::Free
Just released WWW::Rapidshare::Free Perl module for all free users of Rapidshare. Check out the example/ directory for a sample script. You can expect a GUI soon!
Christmas Tree
perl -MAcme::POE::Tree -e 'Acme::POE::Tree->new()->run()'
November 2008
2 posts
Checking External (WAN) IP
You can use:
curl whatismyip.org
wget -qO - whatismyip.org
There are many other ways too.
3 tags
General Purpose Bit Flag not being set
This is an unreported bug in the Archive::Zip Perl module. This means that the level of compression will not be stored in the archives that are created, which may cause trouble with some extractors while inflating. PKWARE’s application note on the .Zip file format states that these flags should be set.
Please see: Update on General Purpose Bit Flag bug and Archive::Zip does not set General...
October 2008
3 posts
2 tags
Bash Completion
Bash completion is a very good feature in Bash. We are able to complete
filenames, just by pressing TAB. I had downloaded a YouTube video
related to Tsar Bomba. Since YouTube videos are Flash Video files (.flv), I was
not able to complete their filenames by pressing TAB in the terminal
when trying to invoke mplayer.
A quick inspection of /etc/bash_completion solved the problem.
In mplayer(1)...
4 tags
.Zip parser code
The local subversion repository of zip_parser has been migrated to Google
Code using svnsync. Have to add support
for Zip64 and encrypted archives soon.
3 tags
.Zip Parser
The .Zip file parser has been completed. I will host the code soon, and
probably convert it into a Perl module for analysing different types of .Zip
files created by different software.
September 2008
8 posts
5 tags
Introduction to LVM2
This is a very basic introduction to LVM2 - Logical Volume Manager version 2.
In computer storage, logical volume management or LVM is a method of allocating
space on mass storage devices that is more flexible than conventional
partitioning schemes. In particular, a volume manager can concatenate, stripe
together or otherwise combine partitions into larger virtual ones that can be
...
3 tags
Redirecting output to a file with sudo
Sometimes, we may need to redirect output to a file owned by root ( or another user ) to which we have permission via sudo.
[alanhaggai@archer ~]$ sudo touch test
[alanhaggai@archer ~]$ stat test
File: `test'
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: fe00h/65024d Inode: 281248 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: (...
3 tags
rm: cannot remove `file': Stale NFS file handle
After some cp -auv action and a SIGINT (Ctrl + C), I was not able to remove some files. They all resulted in the above error, though it was not a NFS related error. A fsck on the respective partition corrected it and I was able to remove the files.
1 tag
Flock post
This is a post from the Flock Browser.
3 tags
Learn Kernel Command Using Linux System Calls
Linux system calls — we use them every day. But do you know how a system
call is performed from user-space to the kernel? Explore the Linux system
call interface (SCI), learn how to add new system calls and discover
utilities related to the SCI.In this article, I explore the Linux SCI,
demonstrate adding a system call to the 2.6.20 kernel.
Read more
1 tag
Convert tabs to spaces in Vim
Add the following to either ~/.vimrc, /etc/vimrc or /etc/vim/vimrc:</p>:
set tabstop=4 " The width of a TAB is set to 4.
" Still it is a \t. It is just that
" vim will interpret it to be having
" a width of 4.
set shiftwidth=4 " Intents will have a width of 4
set softtabstop=4 " Sets the number of columns for a...
2 tags
Setting up TV tuner card in GNU/Linux
This post is an account of how I got my
PixelView PlayTV Pro tuner card
to work in GNU/Linux (Arch Linux). It shall work for bt848, bt878 or Fusion 878A
chip based cards. I hope it may be of help to all.
Kernel version: 2.6.26.5
I had to compile the kernel atleast thrice to get it right. Everytime, I missed
the menu where I was to select the tuner as well as the card. This was because
I was...
2 tags
How to close Konqueror tabs by middle clicking?
Open the file: ~/.kde/share/config/konquerorrc. Under [FMSettings], add:
MouseMiddleClickClosesTab=true
December 2007
1 post
3 tags
Newbie’s introduction to GNU/Linux
First of all, I am happy that you have chosen to get freed from the
closed-source world. Welcome to this new world which lives on and around it’s
friendly community. Let me give you a short introduction before we move on to
the real transition:
What makes GNU/Linux (yes, the operating system is named: GNU/Linux and it is
the kernel that is named Linux) interesting and a strong operating...
May 2007
1 post
Testing
The test post is working fine :)