stuff...

  • Increase font size
  • Default font size
  • Decrease font size
Home Software Linux
Linux

Which device should I use on grub?

E-mail Print PDF

Hi,

I recently wrote a simple program that parses a linux-device string and returns another string translated on how grub use it. That is, given a /dev/disk -partition string returns a string that it's grub-readable.

For instance, if you call the program with /dev/sda3, the program will print out (hd0,2).

Most users get confused at the beggining with linux and grub on how grub uses 0s and /dev uses letters and numbers. So, this is a simple, very simple program that make the job for those users (and for free!).

Last Updated on Monday, 25 January 2010 01:29
 

Adding functionality to GQview

E-mail Print PDF
User Rating: / 1
PoorBest 

I feel good using gqview. I like its simplicity and the smoothness it have. Also, you can add some macro functions to expand program's functionality.

I used to resize pictures by opening the gimp when seeing them through gqview. If you have only one or two pictures maybe you could live with that. But, if you need to resize maybe 10 or more, you could just add a macro to gqview to do it almost automatically.

For this macro I based my idea on the 'convert' program that imagemagick package has.

This is the macro itself (for 50%):

test -d Resize || mkdir Resize && convert %p -resize 50% %p_small_50.jpg

Last Updated on Monday, 25 January 2010 01:29
 



polls