This script, once run in a bash shell,
will give you two new useful commands: dos2unix and
unix2dos, to convert between the different end-of-line conventions. They
take a file name as argument and output the converted file to standard
out. The script can easily be adapted for other shells because it's
basically just a call to perl.
The settitle script allows you to change the
title of your current terminal. On Red Hat boxes, you may have to
unset PROMPT_COMMAND to avoid having the title reset to your current
working directory immediately afterwards.
I have added some features to the great image gallery program bbgallery.
My changes bring bbgallery to
version 1.2.2 and they add the following features over 1.2.0 (the
latest official version):
new in 1.2.2 (11/2003):
- bbgallery on an empty directory doesn't crash
- installs to /opt/bbgallery
new in 1.2.1 (9/2003):
- new template: "modern" (and modern_fancy)
- rotate.sh can now rotate several images (f.ex. with rotate.sh IMG_2*.jpg)
- caption is the file name, NOT the short description
- added fields for template: PREV3_THUMB, ..., NEXT3_THUMB
- bbgallery does not create a gallery for ".." anymore, even if a
.bbmeta file exists there
- index.txt in the gallery directory is copied into the gallery
page if it exists (for gallery intro text)
- metalink is now off by default (that's the only sensible default
because there is no way for the user to disable metalink)
- a meta-gallery with 2 galleries now displays them on one row
instead of two rows when the column count is greater than 1.
- added IMG_DSC_SHORT to image page template
- put IMG_DSC_SHORT in the index page template, too
- added UNOFFICIAL to index, template to indicate non-canon
versions of bbgallery
- restored basic EXIF functionality (Date/Time at bottom of
picture) in image template via IMG_DATETIME using jhead if present
- Hovering above a picture in the index page gives the short description
- If jhead is not found, the Date/Time is simply not shown
- compatibility: bbgallery 1.2 now reads .bbmeta files from 1.1,
and the .bbmeta format was changed so that bbgallery 1.1 can read
them, too. This allows a version 1.2 meta-gallery to contain
old-style galleries, and also an old (1.1) meta-gallery containing
new (1.2) galleries.
- Removed fixed height from the default gallery so that neither
"portrait" pictures nor captions overlap with the bottom navigation
bar
- Restored short descriptions and accesskeys for oldstyle and
monochrome templates
So what are you waiting for?
download it (37k)!
The older version (1.1.2) is also available - it has fewer features
but is also easier to set up because it has fewer dependencies.
Bbgallery uses perl and works in Linux. It may also work with perl for
windows, I haven't tried it.
To get more reasonnable keyboard shortcuts under bash, get inspiration
from my inputrc (updated 5/30/03). For more information see man bash and man readline (or info rluser).
The following bash script will provide a color bash prompt which
displays the previous command's error code, but only if an error
occured.
errorPrompt.bash screenshot
To use this script, type ". errorPrompt.bash". You can add
this command to your .bashrc to make it a default.
To disable it you must unset PROMPT_COMMAND and set PS1 back
to the value you want, for example export PS1="\w$ ".
This (now pretty old) patch will modify the Intruder Lite 0.1.2 game source so that it will
compile on a SuSE system (or at least it worked for me).
jp-suse-lite-patch.tgz (2.3k)
lite-0.1.2.tar.gz
(source code from the intruder web site)
UT Programming Club
UT has some of the best programming talent around. In the programming
team we help you bring out your talent and prepare for various
competitive events. This is worth it - consider for example that last
year's programming team went to Hawaii for the ACM World
Finals.
See the Programming Club's home page
for more information, or contact me.
Here are some links that might be of interest.
Software
- Doxygen - A
Free documentation generator (akin to JavaDoc) for C++
- Together - An interesting CASE tool that draws UML schemas as you code, or produces code from your UML schemas. Oriented toward Java and unfortunately not free.
- Borland Kylix -
cross-platform rapid application development. They provid a free
version for open-source software writers.
- Borland JBuilder4
is available for free on their web site. It's a fully functional,
multi-platform IDE for Java.
- Freebuilder, on the
other hand, is an open-source Java IDE. It has less features but
it's "more free" and you can look at the source.
- KDevelop is a free C++
IDE, complete with code completion and GUI editor! Source
available. Amazing. Oh, and it runs on Linux.
- Mozilla is an open-source
effort based on the Netscape browser. Very interesting. If you are
using Mozilla you should also investigate Moz's custom
keywords (see my take on it).
- Dot/Graphwiz
a free graphing software from AT&T Labs.
- BeanShell, a free
interactive environment for Java.
- fastmail.fm - Simply the best
web-based mail out there, with no tagline and good IMAP support. Beats
hotmail and yahoo mail hands down.
- VNC - Virtual
Network Computing from AT&T: remote control your Windows, Mac or Linux machine!
Great software.
- The Matrix Template
Library, a very nice C++ matrix library available for free.
- Jabber, the open instant
messaging solution
- The
demoroniser: removes "smart quotes" from not-quite-standard HTML.
- Open-source PalmOS
software at freshmeat and
PalmOpenSource.com.
- PDF
Creator: create a PDF file from any application in windows.
- I wish all javascript were unobtrusive.
- The Java Game Toolkit helps
you write java games. The nice thing about it is that it has higher-level
functions in addition to things like sound or graphics.
Reading
Misc.
[JP Martin]
[contact information]