tag:blogger.com,1999:blog-119111102024-03-07T07:45:21.754+02:004JYes, this is my blog. I will sometimes dump stuff here - use it or don't use it :)Nicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.comBlogger222125tag:blogger.com,1999:blog-11911110.post-81970284318942348872011-05-24T19:03:00.000+02:002011-05-24T19:03:49.057+02:00Google's new data center in FinlandNicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-73435057048153655942010-09-12T17:17:00.000+02:002010-09-12T17:20:29.565+02:00Easier way to get PHP 5.2 on CentOS 5xGot this from the CentOS Wiki:Step 1: Create the file /etc/yum.repos.d/CentOS-Testing.repo with the following contents:# CentOS-Testing:# !!!! CAUTION !!!!# This repository is a proving grounds for packages on their way to CentOSPlus and CentOS Extras.# They may or may not replace core CentOS packages, and are not guaranteed to function properly.# These packages build and install, but are waitingNicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com1tag:blogger.com,1999:blog-11911110.post-32421545754568187462010-09-09T05:28:00.000+02:002010-09-09T05:29:54.960+02:00Credit Scores - how do they workGot this and it's very interesting...Nicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-14005199771575946962010-08-27T05:38:00.000+02:002010-08-27T05:38:02.263+02:00Google's acquisitions in one graphicResearch by Scores.orgNicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-89497538262264749532010-03-17T09:40:00.000+02:002010-03-17T09:40:40.703+02:00Robotic Surgery Also read this article...Nicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-88934531648281791332010-03-10T06:49:00.000+02:002010-03-10T06:49:13.947+02:00Are you obsessed with your cellphone?Via: Cell PhonesNicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-44741265245460744022010-02-26T13:56:00.000+02:002010-02-26T13:56:11.621+02:00Rubik MadnessNicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-69638565995691082442010-02-19T05:51:00.000+02:002010-02-19T05:52:18.072+02:00Amazing Lego RoboticsFirst, solving the Rubik's CubeThen, solving SudokuNicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-85756088271688924562010-01-29T06:08:00.000+02:002010-01-29T06:11:18.214+02:00Some Vim stuffStumbled upon this blog where I read about this vim tags plugin.Really cool :-)Image source: http://vim-taglist.sourceforge.net/Nicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-17250960981508906932010-01-20T23:14:00.000+02:002010-01-20T23:28:34.837+02:00Electricity MonitorSo 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 Nicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-91260563966799165692010-01-15T10:53:00.000+02:002010-01-15T10:54:03.351+02:00Class and def scope in pythonI added some notes on my Google page for those interested.Nicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-84349115578974496442010-01-07T19:49:00.000+02:002010-01-07T19:51:48.304+02:00Windows 7 "god mode"Here is a Video from cnet.com that show a really neat trick...Original article available from cnet.comNicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-29103345726432118852009-12-30T16:31:00.000+02:002009-12-30T16:33:51.331+02:00Editing the hosts file in Windows 7Ok - 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, Nicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-65181385726590956052009-12-27T22:17:00.000+02:002009-12-27T22:18:29.510+02:00Random Speedtest - all is still well in ADSL land !Nicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-41670791999198184472009-12-23T06:56:00.000+02:002009-12-23T07:18:39.133+02:00Python: Convert datetime to unix secondsA quick solution:$ pythonPython 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)[GCC 4.3.3] on linux2Type "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" +%s1261540800For a practical implementation, see http://sites.google.com/siteNicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-78105371526008196332009-12-09T12:44:00.000+02:002009-12-09T13:00:07.890+02:00Getting started with screen (quickly)Screen is a wonderful tool.I use different configuration files for different scenarios, for example I regularly work on a set of database servers and I like to group them in a config file (for example ~/screen-dbservers).The top part of the config files contain the following:hardstatus alwayslastlinehardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%Nicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-2353755269678746292009-12-09T07:03:00.000+02:002009-12-09T07:05:52.254+02:00My fav font for the terminalBeen working on gnome-terminal with the "Inconsolata" font for some time now - really cool!On Ubuntu, just "sudo apt-get install ttf-inconsolata" and then in gnome-terminal change the default profile (or another profile if you wish) to this font. Mine is set at "Inconsolata Medium 12".Nicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-46743976571674618242009-11-11T06:34:00.000+02:002009-11-11T06:52:04.206+02:00Ubuntu: Convert a VMWare image for use in VirtualBoxThis is a very short summary of how I did my conversion. Perhaps it can be useful to some one else.Preparation1. Follow instructions from the VirtualBox site to add the Ubuntu repositories. Also add the GPG key as per instructions on the same page.2. Run the following command:$ sudo apt-get update$ sudo apt-get install qemu virtualbox-3.0 dkmsConversionI had my vmware disk image split in 2GB Nicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-22310998346073326892009-10-20T06:38:00.000+02:002009-10-20T06:39:18.247+02:00Got a macJust got a second hand eMac - and I already love it! First order of business: mounting ISO images. Found this top from osxdaily.com:$ hdiutil mount sample.isoI suppose this is in a terminal - will check tonight :-)Nicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-74263702401651021002009-09-22T22:10:00.000+02:002009-09-22T22:11:34.637+02:00WOW - Facebook and Twitter for free...FNB Connect now has a special for their ADSL users: surf Facebook and Twitter for free every day from 19:00 to 23:00. Cool :-)Nicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-75331922991450779682009-08-31T13:09:00.000+02:002009-08-31T13:11:18.601+02:00Amazing stuff...Here's an interesting product called "d3o" that provide amazing impact protection.Some movies:First, the official d3o movie:And here's a Discovery channel clip:Can't wait to play with it myself :-)Nicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-65663731451306068402009-08-28T13:53:00.000+02:002009-08-28T13:54:01.768+02:00The story of the Seacom cableFound this video on the SEACOM site. Interesting background.Nicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-49131645372308134842009-08-18T21:23:00.000+02:002009-08-18T21:24:47.200+02:00FNB Connect Speed TestAh... This is how ADSL should be :-)Nicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-74831291984073295332009-08-17T18:32:00.000+02:002009-08-17T18:36:16.235+02:00Disrict 9 Trailer and some related infoTrailerAnd here is a look at two other short clips:"Alive in Joburg" on which District 9 was based:And"Tetra Vaal":Nicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com0tag:blogger.com,1999:blog-11911110.post-45530045874670098912009-08-06T08:21:00.001+02:002009-08-06T08:23:41.895+02:00[Perl] Check if DB table existsBuilding on the script of yesterday, I have created a subroutine that will create a table if it doesn't exist. It also uses a DB connect retry for up to an hour in cases where the DB is not available.The input arg's of the sub:The table nameThe table create definitionHere is the script:sub CheckTables { my( $tblname, $tbldef ) = @_; # Connect to DB my $cont = 0; my $Nicohttp://www.blogger.com/profile/07164337094354168207noreply@blogger.com1