Broadcom Wireless Internet Setup

So I have had this issue where my wireless card would one day suddenly disappear. I had a wireless usb so I used that for a month or so and finally I decided that I would just reinstall and see if that fixed it. It did like magic but then …

more ...

Forward and Back Buttons

For what ever reason perhaps just nostalgia possibly because I happen to use them more than expected, I have forward and back links on my website. The buttons are JavaScript powered and I have had "noscript" tags warning users of their lack of functionality since I added the links years …

more ...

Watermarking with Image Magick

I decided to try and start signing my pictures.

composite -watermark 15% -gravity southeast sign-1.png $i $i;

It needs more tweaking but that will do for now.

To convert all files in a directory:

for i in *.JPG; do
        echo -e "$i... \c";
        composite -watermark 15% -gravity southeast sign-1 …
more ...


pygments

Pygments is a python based syntax highlighter.

Examples:

pygmentize -f html -l python -O full -o file.py.html  file.py

pygmentize -l latex -O full -o resume.tex.html resume.tex
more ...

Lost Partition Table

Step 1: Losing the Data

We will start this post off with a tip...

Never ever ever re-install a distribution when you are tired.

Long story short, I was re-installing Ubuntu at way to early in the morning and clicked "Erase Entire disk" about 2 seconds later I panicked and …

more ...


indent

Indent is an program that can reformat C code for you.

Today, someone emailed me their strangely formatted code and I decided before I even looked at it that I would run it through "indent." After looking through the man page for the "correct" flags, I settled on a style …

more ...


MLA in latex

I wish that I had know about latex back in high school when I was writing my MLA styled papers. For example the following template could be used to make a MLA paper for the user really simply.

\documentclass[12pt,letterpaper]{article}
\usepackage{ifpdf}
\usepackage{mla}
\begin{document}
\begin{mla …
more ...