Quantcast
Channel: Super Nerdy Cool » Hardware
Browsing all 20 articles
Browse latest View live

applying a patch

See this. I always forget: <pre class="src src-sh"><span style="color: #b0c4de;">cd</span> /my/source ## apply patch -p1 < /path/to/patch ## undo patch -R < /path/to/file

View Article



xpdf binary doesn’t work in Ubuntu 11.04 (Natty) + Fix

After upgrading, I get a “segmentation fault” error. Had to build xpdf from source following this to fix it.

View Article

sshfs doesn’t forward X + conflict with “ControlMaster auto”

I use sshfs to mount remote directories on my laptop to access files as if they are stored locally. I love it. I also use the ControlMaster feature of OpenSSH to reuse an existing ssh connection when...

View Article

Add a printer on the command line – cups-pdf example

Suppose you need to add a printer to a computer on the command line, e.g., a server that you access via a terminal. This post outlines how to use some basic commands from the CUPS system. I will...

View Article

Google CloudPrint on Linux

Google CloudPrint allows users to print to the cloud from devices such as your mobile phone. That is, you can print documents and pictures from your phone to printers you have access to (e.g., at home)...

View Article


LaTeX or MathML on the web via MathJax

I recently discovered GmailTeX, a plugin (implemented via javascript) that displays LaTeX markup in my emails viewed through my web-based gmail account. SIDE NOTE: I implement it conkeror by creating a...

View Article

SSH-encrypted proxy for Android or when connected to a public wifi

This post describes how one can set up an ssh-encrypted proxy for browsing the web when connected to a public wifi. This post describes how to do so with an Android device. The gist is to have your...

View Article

Watch a folder or file with inotify-tools

I recently needed to watch a folder for a file. I stumbled on this post and discovered inotify-tools. Using it, I can write a bash script to watch a folder for files, and do things when certain events...

View Article


Non-LaTeX presentations using org-mode – S5 and HTML5 slides

I recently had frustrations with presentations written using MS Powerpoint; I’m not even going to mention KeyNote as it is only available on a Mac. LibreOffice is my WYSIWYG editor on my Linux machine...

View Article


embed anything on a site easily

This post describes Embedly, a wordpress plugin that allows for the embedding of content from many content providers online using the oEmbed protocol. Will definitely come in handy for me.

View Article

Natbib reference sheet for citations

I use natbib in conjunction with BibTeX for LaTeX documents to facilitate the citing of articles in text. This reference is quite useful in illustrating all the features of natbib in a concise matter...

View Article

Byobu, an enhanced screen

I use screen on a daily basis. I recently discovered byobu, an enhanced add-on for screen that makes it even more customizable. A screencast can be found here. After reading some descriptions of byobu...

View Article

Google Voice on a telephone without a server

I already discussed how one can make use of Google Voice with Asterisk – the possibilities are limitless. However, all this requires a server running Asterisk. I recently explored how one can explore...

View Article


Version control and collaborating with LaTeX files

This post finally pushed me to explore ways to version control and collaborate with others using LaTeX files. I’m assuming the collaborators also use LaTeX, which is rare in itself when your primary...

View Article

Modify spacings in listing (itemize/enumerate) environments for LaTeX Beamer

I don’t usually worry about display options in LaTeX since it does a good job most of the time. However, when I write presentations using LaTeX Beamer, I make use of the itemize and enumerate...

View Article


Determining number of nodes or cores available in an SGE Queue

To determine the status of a queue in SGE, one can issue the command qstat -g c to get such information like number of CPU available and the current CPU and memory load. However, this information can...

View Article

serialize or turn a large parallel R job into smaller chunks for use with SGE

I use the snow package in R with OpenMPI and SGE quite often for my simulation studies; I’ve outlined how this can be done in the past. The ease of these methods make it so simple for me to just...

View Article


Convert a string to emacs regexp

Suppose you want to convert a string (e.g., “\^{}”) to an emacs regexp representation. Then do evaluate the lisp code: (regexp-quote "\^{}"), which would yield \\\^{}. Remember, you can evaluate elisp...

View Article

Some custom emacs keybindings for LaTeX to assist in the writing process

Here are some habits I think will assist in the writing of LaTeX documents: Always encapsulate your superscripts and subscripts with curly braces, even if they consist only of 1 characters. For...

View Article

Ignore errors when executing a command in emacs with condition-case

Suppose you want to execute a command in your emacs init file, but this command sometimes return an error. For example, you ask emacs to open a file for you, but the file doesn’t exist. When an error...

View Article
Browsing all 20 articles
Browse latest View live




Latest Images