July 2010
M T W T F S S
« Jun    
 1234
567891011
12131415161718
19202122232425
262728293031  

Categories

Meta

oculusd 0.15

By Bart | July 26, 2010

Looks like churning out releases is a thing you do between two beers. It kind of is. I implemented the action and event APIs. It is now possible for plugins to register an action (a predefined function) to an event. The library will then take care of handling it, based on the registered event and action (which can be defined at runtime, which is the whole point). This opens the road to a complete implementation of a real world Oculus Network. With monitors, alarms, events and actions, it is possible to create anything from process-monitors to disk space checkers.

Anyway, here is oculusd 0.15.

Topics: Oculus | Geen reacties »

Eindelijk … getrouwd!

By Bart | July 25, 2010

Okee, getrouwd waren we op 5 september 2009 al. Officieel zelfs, voor de (grieks-orthodoxe) kerk en voor de (Griekse) wet. Maar dan ben je er nog niet. Aangezien we vlak voor ons trouwen huwelijkse voorwaarden hebben opgesteld in Nederland, bij een Nederlandse notaris, moesten die nog wel ingeschreven worden in het huwelijksgoederenregister in Den Haag. En daar begint dan de verwarring: wat moeten we met onze trouwakte in Nederland doen om alles in kannen en kruiken te krijgen?

Een zoektocht op internet volgt. Mensen die trouwen in het buitenland en wonen in Nederland. Mensen die getrouwd zijn met mensen buiten de EU en erbinnen. Er blijkt een “bijzondere burgerlijke stand” te zijn in Den Haag, waar alles geregistreerd kan worden (ja, kán, lees maar verder). Maar niemand die ons kon vertellen waar we moesten registreren om de huwelijkse voorwaarden geldig te maken.

Dus, zijn we begonnen met het begin: een apostillestempel. Die hadden we eigenlijk meteen na de 5e moeten halen, maar waren we vergeten. De Griekse autoriteiten zijn in deze wat ingewikkelder dan de Nederlandse, maar het was duidelijk wat we nodig hadden. Niet echt problemen dus. Dan, stap 2: de vertaling. Zoek op internet een beëdigde vertaler, stuur een kopie van je akte en zoek hem op om de boel officieel te maken. De originele akte moet namelijk aan de vertaling gehecht worden, met stempels en al. Dit hele zootje hebben we vervolgens bij de GBA (Gemeentelijke Basis Administratie) binnengegooid. Resultaat: we zijn voor de gemeente officieel getrouwd (als in “Burgerlijke staat: getrouwd” op een uittreksel).

En toen werd het spannend. Na een kort gesprek met de notaris echter, bleek dat alles te zijn. Hij registreert het huwelijkse voorwaarden contract in Den Haag en klaar. Einde. Sloes. Er is niet meer nodig. En dat is maar goed ook.

“Maar wat is die Bijzondere Burgerlijke Stand in Dan Haag dan?”,  hoor ik je denken. Wel, daar kun je je akte registreren, zodat je niet naar het buitenland hoeft voor een trouwakte. Waarvoor je die dan ook nodig zou hebben. Als wij dus een trouwakte nodig hebben, moeten we daarvoor naar Loutraki en de boel weer laten apostilleren en vertalen. Vooralsnog hebben we besloten dit niet te doen, aangezien het inschrijven in Den Haag nogal ingewikkeld is, er is namelijk een trouwakte nodig (met apostille en vertaling), maar ook een geboorteakte van beide partners (ééntje dus met apostille en vertaling). En dat alles mag niet ouder zijn dan 6 maanden. Ik weet niet eens of het bureaucratechnisch mogelijk is.

Conclusie: om je buitenlands huwelijk (binnen de EU in ieder geval) te registreren in Nederland, is een trouwakte met apostille en vertaling voldoende. En dat kun je dan gewoon in je eigen gemeente doen. Dan ben je officieel getrouwd voor de Nederlandse wet. En voor de belasting (maar waarschijnlijk was je al fiscaal partner). En voor het huwelijksgoederenregister in Den Haag, als je huwelijkse voorwaarden hebt opgesteld.

Topics: My Big Fat Greek Wedding | Geen reacties »

oculusd 0.14

By Bart | July 22, 2010

Nothing on TV, so another release. Basically a small change, I implemented the save/load of alarms. So, when oculusd is restarted, the alarms are persistent. The ID numbers of the alarms may change, so plugins should not really rely on them.

Get oculusd 0.14 here.

Topics: Geekstuff, Oculus | Geen reacties »

oculusd 0.13

By Bart | July 20, 2010

Yay! It is here. After a month or two of quietness, another release of oculus, the easy server monitor. I implemented the alarm features in a alarm plugin. The following commands are added: ALLS (ALarm LiSt), ALST (ALarm SeT) and ALRM (ALarm ReMove). The alarm framework is not done yet, because alarms do not survive a daemon restart. But, as Linus already said: release early and release often. So here goes.

I also added a little change to the command line parsing. When a sentence is quoted by double qoutes, it takes that whole sentence as a single string. This is useful mostly to plugin writers, as they are able now to fetch a ‘message’ from the commandline. The alarm framework uses it, so that’s why I implemented it.

More info on the oculusd page.

Want to download it? Get oculusd 0.13 here.

Topics: Geekstuff, Oculus | Geen reacties »

Lekker klussen

By Bart | July 17, 2010

Het begin is er.

Topics: Opinie | Geen reacties »

Oculusd 0.13

By Bart | July 16, 2010

Work has started on oculusd 0.13. I set up the alarm framework and starting thinking on how to implement events on monitors. Alarms will be implemented in a plugin, so you can choose to use them or not. Because alarms need to stay ‘alive’ between reboots and application restarts (of course, oculusd will never crash), I also had to set up a ‘runtime dir’, for now it is only defaulted and no config possible. I think the default (HOME/.oculusd) is pretty sane, so this shouldn’t be a problem.

0.13 is not done yet, so no corresponding freshmeat release, but it won’t be long until it will be released.

Topics: Geekstuff, Oculus | Geen reacties »

Ook lekker met dit mooie weer

By Bart | July 4, 2010

Topics: Opinie | 1 Reactie »

Programming the RS-485 bus for RS-232 programmers

By Bart | July 2, 2010

I am working on a project that uses the RS-485 bus to poll some info from slaves. Because I have quite some experience with RS-232 I’d reckon this a no-brainer. However, my system didn’t work. On the RS-232 bus, with a 232/485 converter, no problems. But, with the slaves connected directly to the device‘s 485 port, I received a lot of noise in the reception of my data.

So, back to the drawing board and most importantly, get more information! A little research on the internet learned me (or actually, made me realise) that I am using a two-wire bus, which implies I cannot send and receive at the same time. My code enables the receiver all the time, so it seems I am re-reading what I am sending. However, all information I found online either caters to generic serial programming using the RS-232 port or on RS-485 hardware and wiring. Some talk a little on the electrical properties, but nowhere did I find a programming example on how to do the half-duplex right. Result: this blog post.

Well, I blew up some main components (bad power supply) and have to wait for new ones. This post will continue. …

Update (2010-07-13): apparently, using a Variac (which connects the net-mains to one of the output leads) is not a smart idea when connecting sensitive electronics. Replaced the board and the power supply, and everything works now. I had a few slient times before and after sending, but they don’t seem to make any difference (it also works without them). I guess the device’s firmware/UART takes care of that.

Topics: Geekstuff | 2 Reacties »

Journalistiek in 2010

By Bart | July 1, 2010

Een tijd geleden zat ik eens te denken om een willekeurig kontverhaal in te sturen naar nujij.nl of iets dergelijks. “De koningin rookt stiekem wiet” of zoiets onbenulligs. Kijken hoe ver een dergelijk meme de wereld zou overreizen. Natuurlijk zou de zaak ‘onderbouwd’ worden met een aantal serieuze sites, experts en anonieme bronnen. Ik heb genoeg .nl domeinen om het echt te laten lijken.

Wat blijkt? Het hoeft helemaal niet. De huidige serieuze media, en dan bedoel ik degene die er hun centen mee verdienen, doen het zelf al. Het AD maakte pas nog deze blunder.

En niet alleen in SBS6-hartvannederland-neuzelnieuws minnend Nederland, ook in Groot-Brittanie gebeurt het. Zelfs op een professionelere manier; ook officiele figuren en redacteuren gaan erin mee. Ongelooflijk eigenlijk.

Het toont maar weer aan dat veel informatie niet altijd goede informatie hoeft te zijn. Wees dus kritisch en geloof niet alles wat je leest. Ook niet in het AD.

Topics: Opinie | Geen reacties »

Another round of crapware.

By Bart | June 23, 2010

Don’t get me wrong. I like automatic updates. They keep my systems running, updated and relatively bug-free. I think automatic updates are a Good Thing. But there are also (as always) Bad Implementations. Nokia’s phone updater is one. This is a short transcript of what happened, a play in 5 scenes.

Scene 1: the start

N900: *ping* I want to update my Meamo 5 firmware, please tap here.

Me: *tap*

N900: I am sorry, I have to be connected with a nonstandard USB-cable to Nokia Software Updater Software to update my software.

Me looks for cable, finding out I lost it, look for it in Nokia shop, it goes for 25 euros. Too much. Luckily this shop had it for 4,45. Order, wait two days.

Scene 2: first try

Me boots up Windows Vista and connects N900 to the PC.

Me: *tap update*

N900: I am sorry, I have to be connected with a USB-cable to Nokia Software Updater Software (NSUS) to update my software.

Me: *start NSUS*

NSUS: I am sorry, I have to update the Nokia Software Updater Software before I can update the software on your phone.

Me: *click OK*

NSUS: Okay, downloading 35 MByte and updating the Nokia Software Updater.

NSUS: Please restart your PC before I can continue.

Me: *restart*

Scene 3: first reboot

Me: *start NSUS*

NSUS: Please connect your phone and click continue

Me: *connect and click*

NSUS: I cannot find your phone.

Me: *try again*

NSUS: I cannot find your phone.

Me: Hmm. Maybe this gazillionth Windows update is needed before anything works again…

Scene 4: second reboot

Me: *start NSUS*

NSUS: Please connect your phone and click continue

Me: *connect and click*

NSUS: Hey, an N900! Shall I delete everything and update, or do you want a backup?

Me: *make backup and try again*

NSUS: Okay, downloading firmware!

NSUS: Ow, I didn’t tell you, Nokia hosts the update site on a C64. Soooo, that 20MBit/s cable internet connection you have? Pretty useless.

Windows Vista: No, no, that’s me. I decided you need to install some updates and to do so, I disconnected your network connection.

Scene 5: third reboot

(repeat steps from 2nd reboot)

Windows Vista: No, no, that’s me. I decided you need to install some updates and to do so, I disconnected your network connection.

Me: Screw it, I’ll use a fysical cable to connect my comupter to the internet and disable the WLAN.

Windows Vista: Hahaa, I still keep nagging you with weird popups about network connections and do my hard disk gymnastics!

NSUS: Don’t worry, I’ll continue downloading the firmware. With speed this time.

NSUS: Updating … 50%…. failed!

Me: Try again

NSUS: Updating … 100%… success!

N900: *boot*

N900: Welcome to your N900. For your convenience I removed all you installed applications and desktop settings. I also forgot all my WLAN connections.

Me: …

NSUS: No. Putting the backup back doesn’t fix that.

N900: But installing the app is all that is needed. Settings seem to exist still.

N900: And you can browse in portrait mode now!

Topics: Geekstuff, Opinie | Geen reacties »


« Voorgaande Artikelen