String and Array Creation

2010-04-28 0 min read Learning Linux Perl
\"Perl\"
Image via Wikipedia

<img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/perl-one-liners.jpg" alt="Perl One Liners" align="bottom" />This is the fourth part of a nine-part article on famous <a class="zem_slink freebase/en/perl" title="Perl" rel="homepage" href="http://www.perl.org/">Perl one-liners. In this part I will create various one-liners for string and array creation. See <a href="http://www.catonmat.net/blog/perl-one-liners-explained-part-one/">part one for introduction of the series.

Famous Perl one-liners is my attempt to create “perl1line.txt” that is similar to “<a href="http://www.catonmat.net/blog/awk-one-liners-explained-part-one/">awk1line.txt” and “<a href="http://www.catonmat.net/blog/sed-one-liners-explained-part-one/">sed1line.txt” that have been so popular among Awk and Sed programmers.

Continue reading

Upgrade to Fedora 13 from your existing version using yum.

2010-04-21 1 min read Fedora Uncategorized

Well. this time it seems to be very simple :

yum –releasever=13 upgrade

update 22/April/2010:
The key file will not be there so there are two options for you in this case:

  1. Install the following rpms from the downloaded rpms with &#8221;yum –nogpg localinstall&#8221;
    a) fedora-release
    b) fedora-release-notes
  2. Run the whole upgrade with –nogpg option.

Issue observed after the upgrade:
The new kernel was not added in the grub menu and I had to manually add the below entry in the <a class="zem_slink freebase/en/gnu_grub" title="GNU GRUB" rel="homepage" href="http://www.gnu.org/software/grub/">menu.lst file:

Continue reading

Liquid rescale and remove objects from the images.

2010-04-12 1 min read Fedora Photo

Ever wanted to remove some unwanted object from an image. Wonder how many thinkgs you have to do, clone and delete and what not:)

There is a simpler way, just paint it in foreground color. Does that sound ridiculous, not any more with Liquid Rescale. First install the plugin for liquid rescale for gimp.

yum install gimp-lqr-plugin

Now, just follow simple instructions below:

  1. in the menu, choose Layer and then Liquid Rescale
  2. click on the New button in the Discard features section on the right: a new layer will be created
  3. put the plugin window on one side of the screen without closing it, and go back to work on the gimp main windows
  4. choose the paint tool and paint over the area you wish to remove
  5. go back to the plugin window
  6. click the Refresh button at the bottom: you should see your discard mask appear in the preview
  7. optionally, in the Mode box on the left choose Lqr + scale back or Lqr + Lqr back
  8. click the Auto size button at the bottom of the Discard features section (optionally choose the scaling direction in the box at the side of the button before clicking it).
  9. click OK

Could it get any simpler.

Continue reading

Linux Advocacy and cool things to do with Linux.

2010-04-12 2 min read Linux

I have heard a lot of Linux advocacy and read probably a couple of artilcles also on them but they lack one thing : the end user perspective. Linux is great no doubt, but there are far too many things to confuse people at all levels. For example, if you do a google search for which distro is good for me, you will find different sites giving you different results. So, whats my point?

Continue reading

Linux Shell Scripting Tutorial – A Beginner\’s handbook

2010-04-11 0 min read Bash Learning Linux
\"Tux,
Image via Wikipedia

<a class="zem_slink freebase/en/unix_shell" title="Unix shell" rel="wikipedia" href="http://en.wikipedia.org/wiki/Unix_shell">Linux Shell Scripting Tutorial – A Beginner&#8217;s handbook —

This book is for students and Linux System Administrators. It provides the skills to read, write, and debug <a title="Linux" href="http://bash.cyberciti.biz/guide/Linux">Linux <a class="zem_slink freebase/en/shell_script" title="Shell script" rel="wikipedia" href="http://en.wikipedia.org/wiki/Shell_script">shell scripts using <a title="Bash" href="http://bash.cyberciti.biz/guide/Bash">bash <a title="Shell" href="http://bash.cyberciti.biz/guide/Shell">shell. The book begins by describing <a title="Linux" href="http://bash.cyberciti.biz/guide/Linux">Linux and simple scripts to automate frequently executed commands and continues by describing conditional logic, <a class="zem_slink freebase/en/interactivity" title="Interactivity" rel="wikipedia" href="http://en.wikipedia.org/wiki/Interactivity">user interaction, loops, menus, traps, and functions. Finally, book covers various sys admin related scripts such as making a backup, using <a class="zem_slink freebase/guid/9202a8c04000641f80000000045c9c5b" title="Cron" rel="wikipedia" href="http://en.wikipedia.org/wiki/Cron">cron jobs, writing interactive tools, web based tools, remote login, ftp and database backup related scripts. This book is intended for Linux <a class="zem_slink freebase/en/system_administrator" title="System administrator" rel="wikipedia" href="http://en.wikipedia.org/wiki/System_administrator">system administrators or students who have mastered the basics of a Linux Operating System. You should be able to:

Continue reading
Older posts Newer posts