Logs | Page 4 of 8

These logs are random snippets of information that have been useful to me in the past. Hopefully they help you too!


Encrypting files with gpg

Encrypt a file with gpg -c <file>. Decrypt with gpg <file>. Be sure to delete the un-encrypted file after encryption. shred it, perhaps.

Fix slow wifi in Thinkpad

In order to solve the problem of a slow wireless connection on Thinkpads running Ubuntu 12.04 (and possibly later versions as well), disable the N-mode (IEEE...

Find headers required by a cpp file

In order to find out which headers each .cpp file requires, perform a g++ -MM file.cpp. This lists out the dependencies for converting file.cpp into an objec...

Changing or adding fonts to Matplotlib

When trying to change fonts in matplotlib, you might run into an error that says that the font or the font family was not found. To fix this, you need to act...

Rhythmbox stop after current track

I was trying to find a method to get Rhythmbox to stop after the current track. I found a plugin that does this, but it is old, and the manual installation d...

Fixing cycling through tabs in irefox

Firefox doesnt change tabs with Ctrl+PgUp or Ctrl+PgDn when you are focused on a text input field. To fix this, install the “free control” add-on.

Thesis fonts

Check out some choices on fonts for a thesis: http://www.khirevich.com/latex/font/. They use Bitstream Charter for the main body text and Computer Modern for...

Generating RSA keys

In order to create a pair of RSA keys, use ssh-keygen -t rsa -C "user@host". The -C option is optional, but can be used to put your email address into the key.

glibc version

You can find out your glibc version by running ldd --version. You can also do a locate libc.so.6 and then execute the shared library like a program. This act...

Removing lines in matplotlib

To remove lines the object oriented way in matplotlib (using axes, etc.) take a look at my tuner program for an example. Alternatively, look at the fitzhugh-...

Non-blocking input in python

Use the select module in python for non-blocking input. Look at my tuner program for an example of its usage.

IPython-like completion in bash

To get ipython-like command completion in bash, i.e. to make it so that bash will only search the subset of history that starts with letters you have already...

C++ template functions and header files

“The implementation of a non-specialized template must be visible to a translation unit that uses it. The compiler must be able to see the implementation in ...