2010-01-29
Some Vim stuff
Stumbled upon this blog where I read about this vim tags plugin.
Really cool :-)

Image source: http://vim-taglist.sourceforge.net/
Really cool :-)

Image source: http://vim-taglist.sourceforge.net/
Labels: vim
2010-01-20
Electricity Monitor
So I got my E2 Electricity Monitor the other day and hooked it up. The actual work took less then 5 minutes (although it took me 2 days to find some time to go buy bateries - 3x AA and 3x AAA bateries are required).
So I've collected data for a little over 24 hours now and here is a first look at the results:



As you can see, pretty easy to understand. It does however not tell the whole story...
The mobile unit is very handy in that you can easily cary it around to measure specific appliance electricity usage. The monitor receives data every 6 seconds so when you switch on or off an appliance you will quickly see the watts climb or drop and the difference is obviously the the amount of watts that particular appliance draws.
On the graph you see a spike of around 2.7KWh but the truth is that at peak I measured about 4.7KWh with the geyser running and a kettle boiling water (a likely scenario). Also note that I can manually switch my geyser on with the new control unit I had installed with the solar geyser.
The average peak however is much lower, since it measures consumption over the hour and the kettle (as an example) boils water within 5 minutes.
Still, knowing what I know now I have come to the following short term conclusions:
So I've collected data for a little over 24 hours now and here is a first look at the results:



As you can see, pretty easy to understand. It does however not tell the whole story...
The mobile unit is very handy in that you can easily cary it around to measure specific appliance electricity usage. The monitor receives data every 6 seconds so when you switch on or off an appliance you will quickly see the watts climb or drop and the difference is obviously the the amount of watts that particular appliance draws.
On the graph you see a spike of around 2.7KWh but the truth is that at peak I measured about 4.7KWh with the geyser running and a kettle boiling water (a likely scenario). Also note that I can manually switch my geyser on with the new control unit I had installed with the solar geyser.
The average peak however is much lower, since it measures consumption over the hour and the kettle (as an example) boils water within 5 minutes.
Still, knowing what I know now I have come to the following short term conclusions:
- My true electricity usage peak is around 5 KWh (max) - this will help me a lot when deciding on a pure solar energy solution later in the year. I first have to get more data, especially during winter, before I can accurately size a solar solution.
- Over the next couple of days I can learn what a typical "work day" and a typical week-end looks like. This will allow me to budget more accurately for my actual electricity consumption
- I think this will go a long way to settle disputes with the municipality - but that remains to be seen :-)
- I can also now look at ways to save electricity, but without waiting for the end of the month's electricity bill - the results should be available within a day or two.
2010-01-15
Class and def scope in python
2010-01-07
Windows 7 "god mode"
Here is a Video from cnet.com that show a really neat trick...
Original article available from cnet.com
Original article available from cnet.com
2009-12-30
Editing the hosts file in Windows 7
Ok - so I haven't used Windows in a while. So I couldn't find the damn hosts file in the new version of Windows...
Well, aparently I'm not the only one and a quick google turned up several helpful sites.
In a nutshell: Click Start – search for “Notepad“, right-click and select “Run as Administrator“. This should launch notepad with elevated privileges. Now, open the host file from the File menu, edit and save. (copied from windowsreference.com)
I still prefer "sudo vim /etc/hosts" :-)
Well, aparently I'm not the only one and a quick google turned up several helpful sites.
In a nutshell: Click Start – search for “Notepad“, right-click and select “Run as Administrator“. This should launch notepad with elevated privileges. Now, open the host file from the File menu, edit and save. (copied from windowsreference.com)
I still prefer "sudo vim /etc/hosts" :-)
Labels: windows
2009-12-27
Random Speedtest - all is still well in ADSL land !
2009-12-23
Python: Convert datetime to unix seconds
A quick solution:
For a practical implementation, see http://sites.google.com/site/pythonbits/Home/date-and-time-comparison
$ python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
>>> tt = datetime.datetime( 2009, 12, 23, 6, 0, 0 )
>>> print int( tt.strftime('%s') )
1261540800
>>>
$ date --date="2009-12-23 06:00:00" +%s
1261540800
For a practical implementation, see http://sites.google.com/site/pythonbits/Home/date-and-time-comparison
Labels: python
