0

Vim for Perl Developers

Posted by sanjay on 11:07 AM

Blog of Leonid Mamchenkov » Vim for Perl developers

Ok .. I'm not technically a perl developer. But then technically, I'm neither a developer not  a sofware engineer.. Let's leave that part out for now. Leonid has some pretty good VIM tips on this page.

I didn't notice it on this page, but one tip from me is to use gf to open the file under which the cursor is present. Makes sense? No? Try it ... and it will :)


technorati tags:


0

Opening parent folder with vim

Posted by sanjay on 9:07 AM

How do you open the directory listing for the folder which contains the current file?

Simple :vi %:p:h

But I keep forgetting it .. that's why it's here!

technorati tags:


0

Getting started with ksh

Posted by sanjay on 11:06 AM
LUG@GT :: Articles :: Using the Korn Shell

I am a regular bash (3.0) user. But sometimes, I come across systems where bash is not installed and the only "modern" shell that I have access to is ksh. Initially, I tried to get along with just the basics, doing everything manually, but now I am at a point where I need to learn a few more ksh tricks. I found the article at this URL good to jumpstart my ksh experience.

technorati tags:,


0

Ghost busting with dtrace.

Posted by sanjay on 10:48 AM

 Ghost Busting

While looking up some information about debugging on Solaris 10, I came across this presentation by  Christoper Beal, on using dtrace. I'll call it an introduction to dtrace. I don't need it right now, but seems like it will be really useful. I'm going to get my hands dirty with this, as soon as I can.


technorati tags:, ,


0

Mumbai Navigator

Posted by sanjay on 10:43 AM

Mumbai Navigator

Getting around Mumbai should no longer be a pain!...

technorati tags:


0

Inline Skating

Posted by sanjay on 12:50 AM
How to Stop on Inline Skates - Inline Skate Stopping Tutorials

 I've just started learning inline skating and like most beginners am worried about how to stop. This URL seems to have some decent info on the subject... Now, two more things left to do..Study these techniques and PRACTICE them!!

technorati tags:,


0

Flock...

Posted by sanjay on 9:25 PM

Just when I discovered Performancing, I saw a post on Slashdot about Flock. Is it a coincidence? Probably, but I'm going to try using both and see which one I prefer... Well, an idea just struck me  " Use Performancing with Flock"


That way I can try both without having to switch back and forth!.. Brilliant!! You might see me posting some more :)


technorati tags:


0

Intalling fonts on Linux .. quick and dirty way

Posted by sanjay on 1:25 AM
Quick and dirty steps to install fonts.. I keep forgetting the Yo Linux link. So I thought I'd put the steps down here and then link to the main page, so tthat I can do this quickly or correctly or both:)





  • create a ~/.fonts directory


  • copy your fonts into this directory


  • fc-list | grep font name to verify fonts are available


  • /usr/bin/font-cache to update the cache


  • chmod 644 *.ttf


  • ttmkfdir > fonts.scale

  • Create index of X font files in directory: /usr/X11R6/bin/mkfontdir
    (Red Hat 7.0: package freetype, 7.3+: package xorg-x11-font-utils)

  • Add font directory to the xfs config file: /etc/X11/fs/config

    catalogue = comma-separated-list-of-font-directories

  • Update font-config cache: /usr/bin/fc-cache


  • /usr/sbin/chkfontpath --add /font-directory-path


  • xset fp rehash


  • service xfs restart
    (or: /etc/init.d/xfs restart)

  • Restart X:


    • init 3


    • init 5


Refer to YoLinux for all details

0

Performancing for Firefox

Posted by sanjay on 11:55 PM
Just visited Performancing website. They have a pretty cool blogging tool for Firefox. You can just hit F8 and start blogging... Looks like something I should try. Would definitely make me blog more!

Any thoughts?

0

Ubuntu build environment for custom packages

Posted by sanjay on 12:37 PM
While compiling/installing custom packages, you need a dev enviornment. The easiest way to do this with Ubuntu is


sudo apt-get install linux-headers-`uname-r`
sudo apt-get install build-essential
sudo apt-get install shareutils

gets you the development package so that you are ready to go

If you really want the source

sudo apt-get install linux-source-2.6.x

will get you the source

3

LVM mount with Ubuntu upgrade

Posted by sanjay on 11:30 PM

Yesterday, I updated .. Ok, attempted to update my Ubuntu 5 system to Ubuntu 6. Everything seemed to go alright, until I had to reboot. Suddenly my system was hosed...Well, I could surely go to the backup copy I had, right? Nopes.. was taking a risk after reading about the smoothness of the Ubuntu dist-upgrade procedure.. Ouch.. that skipped back-up does hurt.

Anyway, today, I booted with the Live Ubuntu 6.06 disc and tried hard to get to my data on my logical volume. I remembered my disk looked like this before the upgrade

/boot 250 MB ext3 /dev/sda1
/ 65 GB reiserfs /dev/sda5 (LVM)

Yes, I now know that it is a BAD idea, but you learn by mistakes. Anyway, just that knowledge was useful. After a lot of reading up on lvm*, pv*, etc.. I am able to access my data with the following commands

sudo pvscan
PV /dev/sda5 VG Ubuntu lvm2 [x.y GB/0 free]

# load device module
modprobe dm-mod

#change logical volumes to active
sudo vgchange -a y

#create mount point
sudo mkdir /mnt/newroot

#list devices for VG ubuntu
sudo ls /dev/Ubuntu
root swap_1

# I want to mount root -- that's where my data is
# remember that it is reiserfs
# I just realized that I also had a swap partition under my logical volume!
sudo mount -t reiserfs /dev/Ubuntu/root /mnt/newroot/

cd /mnt/newroot
cd my_data_dir
ls -al

Wow!! everything is here .. back it up ... fast!! :)





Copyright © 2009 Note my web All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive.