Add border to images from command line using montage.

2008-11-20 1 min read Linux Photo

Adding a border to the images from command line is quite simple. But if you have couple of images in a directory that you want to add border to then it may become quite painful 🙂

So what is the solution. You can simply use a one liner to do the job for you.

for i in *.jpg; do montage -geometry 720×576 -background black -quality 100 $i conv-$i; done

Scratch — Programming for kids

2008-10-13 1 min read Uncategorized

Scratch <a href="http://scratch.mit.edu/about">website.

Description from their site:

Scratch is a new programming language that makes it easy to create your own interactive stories, animations, games, music, and art — and share your creations on the web.

Scratch is designed to help young people (ages 8 and up) develop 21st century learning skills. As they create Scratch projects, young people learn important mathematical and computational ideas, while also gaining a deeper understanding of the process of design.

Continue reading

Linux awk command

2008-09-15 2 min read Linux

Have you ever had a column-oriented text file, similar to a spreadsheet, but the columns weren't in the order you wanted? For instance, suppose you
had the following information in a file named "checkbook.orig":

COST         DATE            BALANCE
10.00         040198           1000.00
20.00         040298             980.00
30.00         040298             950.00

    The information is good, but you'd prefer to have the DATE column first, followed by the COST information in the second column, and the BALANCE column third.

Continue reading
Newer posts