Monthly Archives: March 2011

Styling Emacs Scrollbar in Ubuntu

Emacs uses GTK by default in Ubuntu. In your ~/.emacs file, there should be no (scroll-bar-mode nil). Then add the following to ~/.gtkrc-2.0 style “contrast”    { GtkScrollbar::has_forward_stepper  = 0 GtkScrollbar::has_backward_stepper = 0 bg[NORMAL]   = “red” bg[PRELIGHT] = “dark red” bg[ACTIVE] = … Continue reading

Posted in Linux | Tagged , , | Leave a comment

Interesting Graph Theory Terms

The following is a few of the more unique graph theory terms which I have misused in the past. A giant component is a connected subgraph that contains a majority of the entire graph’s nodes The order of the graph is … Continue reading

Posted in Data Structures and Algorithms | Tagged , , | Leave a comment

Bash Script to Determine Terrorist Threat Level

I’ve really been immersing myself into the world of Bash scripting lately. There is an incredible amount of productivity-increasing scripts available online, and I have already written several of my own that make my programming life just a little easier. That … Continue reading

Posted in Linux, Programming | Tagged , , | Leave a comment

PHP IDE: Avoiding Emacs

I love Emacs. I consider this a problem, because while it’s an exceptionally powerful and productive environment for a programmer, I feel like it’s a tool that has a good chance of being left in the dust of quickly developing … Continue reading

Posted in Programming, Web Development | Tagged , , , , , , , , | 3 Comments

Flatten Directory Structure in Linux

Move all the files with extension pdf in the directory tree starting at the current location as root to directory bla. find . -type f -name “*.pdf” -exec mv {} bla \; So for example it would find ./path/to/image/lex.pdf and … Continue reading

Posted in Linux | Tagged , , | 3 Comments

Prevent Figures from Floating Outside Sections in LaTeX

LaTeX floats a figure for you as if it was a rotting raft in the middle of a stormy ocean. Most folks learn to tame this beast of burden, but I find that there are times when I need my … Continue reading

Posted in Programming, Tools | Tagged , , , , | 5 Comments

To Do List Management

There’s a ton of apps / methods out there to keep your to-do list(s) organized. I’m a big fan of free web-based services. Remember the Milk is the one I’ve used for the past 2-3 years. But I just came … Continue reading

Posted in Tools | Tagged , , , , | Leave a comment

Where’s Waldo: Finding False Anomalies

Observed anomalies in the data lead to discoveries, but you have to be absolutely sure the anomalies are genuine, reproducible, etc. I had a very interesting result this morning (in the form of a plot) that turned out to be … Continue reading

Posted in Programming | Tagged , , , , | Leave a comment