Archive for the ‘bash’ Category

LaTeX/bash Calendar

Monday, February 18th, 2008

Problem How do I create a manageable calendar that:

  • Is on paper, because I’m cool
  • Has my weekly schedule, so I don’t rewrite my schedule every week
  • Has customizable daily schedule
  • Has space for general todo lists
  • Has space for regular todo lists, e.g. research and course commitments
  • Is cool

Weekly calendar jpeg preview

Briefly LaTeX/Python Planner post makes it easier to generate this. Go read it instead. Use bash to generate the dates; and use latex command definitions to insert weekly schedule. A list of reminders (TODO list with due dates) is maintained at the beginning of the file; when the date appears on the planner, the task appears on the calendar. Monthly schedules don’t recur — each monthly due-date is added iindividually in the TODO list. A three-month calendar a la published calendars is printed on every planning page.

The P/K/M/N are symbols for my commitments B-) and, needless to say, are customizable.

(more…)

wavplay on Linux

Monday, November 19th, 2007

Problem MATLAB on linux doesn’t have wavplay.

Solution Write sound signal as wav file on disk, and play it using some other program. Better still, write a script that tracks a wav file on disk and plays it whenever it changes. waverunner.sh does just that, and wavplay.m writes wav files on disk just like windows wavplay does.

(more…)

random terminal

Monday, November 12th, 2007

Problem I got a funky background, but I need a terminal that lets me work while letting it show. Preferably minimal.

Briefly A bash script, requiring: aterm (compiled with transparency and shading), showrgb (installed with X?)

Solution A bash script “ranterm.sh” gets me a terminal which can be translucent/opaque with a high contrast pair of foreground and background colors which are different each time a new terminal is opened.
(more…)

Review Mania

Wednesday, November 7th, 2007

Problem: I want to download movie reviews that give me reason to live. All reviews by A.O. Scott along with the N4 Times photo accompanying the review, preferably in its original formatting. Why? Maybe make it a makeshift book, because N4 Times decided to publish inglorious reviews (1000 best movies?) that list actors and scenes rather than making sense of the movie. I want Scott’s reviews.

Briefly: Use wget to get the world. Script requiring bash, wget, free account with n4 times.
(more…)

Tiled Printing

Wednesday, November 7th, 2007

Problem: Given

  • A big image of size H×W
  • Printer that prints to maximum size h×w
  • h<H and/or w<W

How do you get a tiled print? Preferably on Linux/free software.

Briefly: Script jpegtile.sh

Requires: Linux/Cygwin, bash, ImageMagick (convert, identify)
(more…)