generating ssh keys on windows

In order to do some testing on a Windows machine, I needed to interface with Github/Bitbucket and wanted to use SSH to pull my code from the online repos. To do that, I first needed to create ssh keys. I found puttygen is the easiest way to do this. But make sure you: save the public and private keys in a directory under c:\users\ (or wherever your home directory is) save the private key as id_rsa when you save the private key use the Conversion option in the toolbar and choose Export OpenSSH…Read more …

spacing problems with embedded gists

Just installed the 'Embed GitHub Gist' plugin to Wordpress and while it makes embedding gists super easy, I found out that its CSS doesn't mesh well with the theme I'm using on this site. What ended up happening is that the line numbers were spaced out more than the code, so it made it look like there was a bunch of empty white space at the end of the code. To resolve this, you just have to add a line to your theme's CSS file (because the plugin's CSS is dynamically generated): .gist…Read more …

debugging the Javascript Quick-Start Guide for Evernote SDK

Turned out to be a few relatively simple bugs, but together they caused enough of a hiccup that I was left scratching my head for a bit. So if anyone else out there finds themselves in the same boat, hopefully these tips will help. I was interested in checking out Evernote's API and decided to start with their Javascript tutorial. It turns out that they left out a few things in their writeup: In the original gist of index.html that's in the tutorial, there's a missing bracket ('>'): <input type="submit" value="Login" onClick="app.loginWithEvernote()"</input> should…Read more …

google analytics “tracking not installed” messages

It took me ages to figure out, but it turns out that my own browser settings were causing me to keep getting the "Tracking Not Installed" messages. Other people have mentioned AdBlock being the culprit, but in my case it was the Ghostery extension, which I have installed on all of my browsers. Oops. Whitelisting my websites solved the problem - now when I go to test the tracking code on my own browser, I get "Tracking Installed" for my sites.Read more …

geoclue2 python example

Next step was to get libchamplain working so that the location data can be shown on a map. That turned out to be pretty easy. I found the easiest way was to do a git clone of their current repository. Doing that also meant that I could look at some of the example code, especially the python bindings they have with that library. git clone git://git.gnome.org/libchamplain ./autogen.sh ./configure make sudo make install I found launcher-gtk.py particularly helpful in understanding how the map drawing works. If you prefer to just install the binaries, then…Read more …