X11 remote display
There’s no shortage of tutorials on how to use X11′s remote display facilities. On modern, properly configured systems, all you need to do is to use the -X or -Y option to ssh, and the magic is all...
View ArticleCygWin terminal colors
Many of the default ANSI colors used by the CygWin terminal are almost unreadable. For example, the blue that is used for directories in a file listing is pretty dark and hard to read on a black...
View ArticleWindows proxy control script
Here’s a simple script that lets you toggle on or off your internet proxy in Windows. Save it to a file called Proxy.vbs on your desktop and double-click the file to execute the script. As shown below,...
View ArticleThe Android IPC system
The information below comes from a number of sources, including my own experiments with the Android IPC and some disparate internet sources. The overall architecture of the Android IPC system is shown...
View ArticleSmart backup for your GMail account
There are a number of solutions out there that allow you to back up your Google mail, but all of them have some significant shortcomings. That’s pretty surprising given the popularity of GMail. BaGoMa...
View ArticleHow to make wpa_cli talk to wpa_supplicant in Ubuntu
On a stock Ubuntu 11.04 distribution, wpa_cli can not talk to wpa_supplicant. Regardless of the options used, wpa_cli will always report: Could not connect to wpa_supplicant - re-trying That’s because...
View ArticleGit Quick Reference Card
Git has a lot of commands. Well over 100 of them. Most of the times you only use a handful of them, but if you’re a power-user, every once in a while you’re looking for that elusive command that you...
View ArticleEditing GEDCOM files with vim
GEDCOM files sometimes have no indentation. That makes it difficult to read or edit them with a text editor. Using the following simple instructions, you can auto-indent the file so that it is more...
View ArticleUsing Android IPC binders from native code
This is a follow-up (with actual code examples) to a post I wrote a while ago on how to use the Android IPC system from native C++ code. The code is hosted on GitHub at Android IPC binder demo. A...
View ArticleGit – deleting the current branch is denied
Here’s a solution if you ever get the following error when trying to delete the master branch in a remote repository: remote: error: By default, deleting the current branch is denied, because the next...
View ArticleFrom Acceleration to Displacement
Recently I was trying to double integrate a sinusoidal acceleration (ex: a frog leaping forward) and was a bit puzzled at first why double integrating the \(\sin(t)\) wave resulted in no displacement...
View ArticleFrom Acceleration to Displacement (part 2)
In a previous post I showed how to analytically double integrate (or rather repeat integrate) a \(\sin\) wave to arrive at displacement or position. Here I’ll make it a little more generic, by...
View ArticleTig Quick Reference Card
Simple reference card for tig, the text-mode interface for git. This Tig Quick Reference Card shows all the key bindings supported by tig version 0.17. Page 1 Page 2 The reference card is available as...
View ArticleTemperature sensor: TMP36, DHT22, and 10K Thermistor
Here’s a quick comparison of 3 different “low cost” temperature sensors: TMP36 at $2. 10K Precision Epoxy Thermistor – 3950 NTC at $4. DHT22 at $12.50. This one also contains a humidity sensor, so...
View ArticleDigiKam 4.10 on Ubuntu 14.04
These are the steps I found are required to install DigiKam v4.10 on Ubuntu. In my case I ran into problems with libavcodec (ffmpeg/libav) and issues stemming from the ffmpeg project fork. YMMV. First...
View ArticleMonitoring files with vim
It turns out that monitoring a file with vim is harder than it should be. Scripts such as Tail-Bundle and WatchForChanges rely on vim’s CursorHold events which only trigger once. Unlike tail -f, they...
View ArticleVim Syntax Highlighting for Firewall Logs
Firewall logs are verbose, and utterly boring to look at. It’s hard to pick out the important parts, like what the IP or destination port was. If you use vim/gvim to view the logs, there’s a syntax...
View ArticleImport Tellico books into Calibre
I used to maintain my dead-tree book collection in Alexandria. When that stopped being developed I switched to Tellico. Tellico however doesn’t have a simple way of retrieving cover images, so recently...
View ArticleUS Patent: Low power management of multiple sensor integrated chip architecture
Abstract A method, device, system, or article of manufacture is provided for low-power management of multiple sensor chip architecture. In one embodiment, a method comprises, at a computing device...
View ArticleUS Patent: Phone call management based on presence of nearby people
Abstract A phone call is made from an initiator phone to a receiver phone. The receiver phone determines how many people are near the receiver phone, and generates a response based on how many people...
View Article