Getting out to get back in

I have a server box I look after that is buried deep inside a private network, behind the most restrictive of firewalls, which normally means I have to physically visit the site to perform any maintenance. To be able to do my work all I would need is an SSH connection. I have previously read about using HTTP proxies pointed at HTTPS ports to SSH out of restricted networks, but what about back in....

February 25, 2007 · Nigel Sim

Four things which would make my Linux wonderful

1. Presentation controller for my bluetooth phone In fact this already exists, in many forms apparently. The trick for me was to get it working. If I was to derive it from scratch I would have made a simple, mappable Java app for the phone, and would have written a Python app for the server. In fact this already exists in Xbtrc. The trick for me however, was to get the phone to find the computer....

January 18, 2007 · Nigel Sim

Roof colours impact on temperature

These are some preliminary results for roof colour tests I am conducting. The setup is 8 equal sized pieces of roofing material, some painted with different coloured roof paints. They were left out in full 12noon summer sun (Lat 19 south), and the temperature of the under side of the material was measured after 30 minutes exposure. Results follow: White Colour Bond 48C Painted white Zincalume 45C 2 coats painted white Zincalume 43C 2 coats painted white Colour Bond 45C Black painted Zincalume 70C Silver painted Zincalume 63C Gold painted Zincalume 60C Unpainted Zincalume 50C I’m going to conduct this again soon, with an 8 channel data logger, so more precise results can be presented....

November 29, 2006 · Nigel Sim

Personal flash video player

With this handy little util, flash video player, and ffmpeg to do the conversion it is easy to embed videos in your website, without having to use a video sharing site like youtube. This is of great importance to intranets, and protected sources. Why run the flash route? Easy, it’s the only working, embedded video player in Linux. ffmpeg -i **infile** -t flv -ar 44100 **outfile**.flv Just a note, you seem to have to have the whole thing on a webserver for it to work....

October 16, 2006 · Nigel Sim

Quick survey of useful Drupal 4.7 modules

All these modules are related to blogging, and information gathering, rather than social networking, or any of the other roles Drupal fulfills. Related Links The related links module allow you to specify external links which relate to the entry. It also, automatically extracts links from the body. These links can be displayed in a Related Links block, as well as those related by topic in the Related Topics block. The use of a multiline textarea to store the extra links, in HTML markup is a bit of a drawback....

October 4, 2006 · Nigel Sim

Java HTML Table parser

I put together this class for scraping HTML tables. It supports nested tables. At some stage I’ll put this up in SVN along with it’s test cases. import java.io.IOException; import java.io.Reader; import java.util.ArrayList; import java.util.Stack; import javax.swing.text.MutableAttributeSet; import javax.swing.text.html.HTML; import javax.swing.text.html.HTMLEditorKit; import javax.swing.text.html.HTML.Tag; import javax.swing.text.html.parser.ParserDelegator; import org.apache.log4j.Logger; public class TableParser extends ArrayList { static Logger logger = Logger.getLogger(TableParser.class); Stack s = new Stack(); /** * Process this reader. * @param f * @throws IOException */ public void parse(Reader f) throws IOException { this....

September 28, 2006 · Nigel Sim

SolarLibrary released

Well, after 2 days of development and testing, I’ve just released SolarLibrary 0.1. Along with this is a new, bug fix version of SolarCategories, which mainly deals with UI issues born out of never using my own interface :). So, SolarLibrary allows you to store and categories (with multiple categories) links, text, and files. The files are stored in a secure download behind SolarGroups authorization. I haven’t really tested this system on a wide range of people yet, but if nothing else, it offers a good example of what SolarGroups and SolarCategories are meant to do....

July 5, 2006 · Nigel Sim

Working on SolarLibrary

I’ve just started cutting new code for SolarLibrary, which is supost to be a partially structed, categorised repository for different types of data, built as a Mambo component. The reason for doing this is for my purposes, I want links, text, files extra to all share the same category space, and be accessable through the same brower view. This is very Drupalesk. But at the moment drupal also doesn’t fit this bill, and I don’t really like the module architecture, which I am quite fond of the Mambo architecture....

July 3, 2006 · Nigel Sim

Retrofitting hybrid car technology

After having driven a hybrid car for the first time I was curious if it would be possible to retrofit this kind of technology to an existing vehicle. Basically an electric drive which connects into the crank, or there abouts, which can assist when the engine is under load. Surprisingly there isn’t that many products on the market, with the exception of this: Electrocharger / Retrofit Hybrid :: Sigma Automotive...

July 2, 2006 · Nigel Sim

Date sweep

On more than one occasion I've needed to iterate over all dates between two dates, and although the code and concept are trivial it does normally take up 20 minutes to find the exact classes to use, simply because it is a long time between uses. So here's the snippet, more for my own reference, but it will probably be useful to others too. from datetime import date, timedelta step = timedelta(1) # one day at a time start = date(2005,1,1) end = date....

May 17, 2006 · Nigel Sim