Sunday, September 19, 2010

Nspluginwrapper Adobe Flash

Nspluginwrapper is a tool that allows you to run 32bit plugins in a 64bit browser. Nspluginwrapper is useful for running Adobe Flash till either Adobe decides to realease a 64bit linux plugin again or one of the alternatives (see lightspark, and gnash) has full support.

Nspluginwrapper should NOT be ran as root.

To see a list of currently loaded plugins:

nspluginwrapper -l
To automatically load all 32bit plugins:
nspluginwrapper -v -a -i
To automatically unload all 32bit plugins:
nspluginwrapper -v -a -r
Alternatively, you could just use a 32bit browser, but where is the fun in that!

Sunday, September 12, 2010

Custom CSS for Code

A long time has pasted since I last did anything related to web development. I'm using a pre built template but I wanted to add my own style for code snippets and commands. Here is what I used:
#code{
background-color: #555555;
border: 1px dashed #999999;
padding: 5px;
overflow: auto;
font-size: 11px;
margin: 10px}
Once you have your css you can use <div> apply your style to your text:
<div id="code">This is code</div>

Saturday, September 11, 2010

Add course to Forerunner 305 with gpsbabel

Using gpsbabel 1.4.1 use the following command:
gpsbabel -i gpx -f somefile.gpx -t -o garmin -F usb:
This comes in handy when using a tool such as mapmyrun to create a course and then uploading it to the Forerunner 305.