The Philips Hue became available last week. It’s a system of LED lamps that support a wide range of colors and brightness, and allows complete remote control from the Hue mobile application, or the Philips Hue website. With the starter kit you’ll receive a Hue bridge, three lamps with an E27 socket, and it’s extremely easy to set up!
Philips have said they’ll eventually release a developer kit, which would allow anybody with a computer to control their lights without using the app supplied by Philips. Personally, I don’t want to wait for that…
Read more of “Reverse-engineering the Philips Hue”…
I’ve always loved the Spotify service. I love it so much that I find no need to pirate music anymore, and I’ve been a paying customer for nearly a year. Me being me, that’s nothing short of an amazing acomplishement.
Spotify also has a developer API, libspotify, written in C. Thing is, Ruby is a much nicer language to use than C, so what to do?
Read more of “Hallon, delicious Ruby bindings for libspotify”…
Half a year ago, I was working on bindings for a C library known as libspotify. As you might know, writing C extensions for Ruby is really easy, but this particular case was not.
libspotify relies heavily on user-provided callbacks for event handling. These callbacks are sometimes executed in their own thread, and those threads are not allowed to call the Ruby API.
Now, how do you handle these callbacks if you cannot call Ruby code from within them? I’d like to tell you the answer to this question.
Read more of “Asynchronous callbacks in Ruby C extensions”…
Ruby MRI threads suck! You should use JRuby for REAL concurrency and leave those pitiful green-threaded people in the dust… NO! If you think this is true, kindly relocate yourself to dunce’s corner and listen.
(or skip to the code)
Read more of “Quick and simple Ruby thread pool”…
I usually don’t write about myself, and pretty much never ever of dreams. Today, however, I’ll make an exception because I must write this down somewhere I won’t lose it.
Read more of “Four layers of dreaming in a single power nap”…
The Nordic Ruby guys recently wrote a blog post about adding their banners to your site. I liked the idea, but the provided banners did not fit anywhere into my site design. Even if I consider myself aestethically handicapped (I avoid any kind of graphics design), I had to overcome this minor speed bump somehow.
So I hacked away at it. First I had a CSS only implementation, then switched to an image version because of font rendering issues with windows (meh…) but finally settled with the version I have now:
Keep in mind I don’t do anything for cross-browser compatibility. Users of old and inferior browsers will not be getting any bling bling from me.
I idle a lot in the #ruby IRC channel on Freenode (and #ruby-lang). Today, a rather peculiar question was asked by somebody I will hereon call Frank…
Read more of “Parallell remote execution with net/ssh in Ruby”…
Some days it will be hard keeping motivation up and procrastination will be a common resort. A Seinfeld Calendar is what some have used to keep their brains focused, and here’s my twist of it.
Read more of “Something you want to do, and something you ought to do.”…
I’ve been very happy since I moved my blog to GitHub pages, but I just found my first annoyance.
Read more of “GitHub pages and time formats”…
Har nu fixat en RSS-feed (som körs på samma motor som resten av siten). Har du en någorlunda modern webbläsare bör du se en RSS-ikon i ditt adressfält. Google Chrome på Mac kräver dock ett tillägg för detta: https://chrome.google.com/extensions/detail/nlbjncdgjeocebhnmkbbbdekmmmcbfjd
Vad detta betyder är att man nu kan prenumerera på min blogg via en RSS-läsare, så att man blir notifierad så fort det finns nya inlägg!
Jag citerade ett par sjungande hajar på vägen hem från taidon, vilket ledde till att Elins syster (Ylva) tittade på mig underligt. Av den här anledningen fick jag då för mig att leta upp den igen. Hade lite svårt att slita mig så jag tittade igenom lite fler:
Av 21 stycken hittade jag bara fem som jag tyckte var värda att nämna. Mycket nöje. :)
Det var min flickvän som fick mig till Dreamhack första gången. Förra gången hade vi rätt kul, och spenderade upp emot fem timmar att gå runt och undersöka allting som fanns på plats. Det här året var dock inte lika händelserikt som de tidigare…
Read more of “Nördsafari!”…
Jag skrev för ett litet tag sedan att jag skulle flytta min blogg. Idag hade jag lite tråkigt — och Elins dator — så jag fixade det allra minsta som behövdes för att migrera över.
Read more of “Nu har jag flyttat!”…
Idag regnade det. Inte storm, men det blåste som tusan och duggregnet stod som spön i backen. Naturligtvis betyder detta att folk tar med sig paraply när de ska ut och gå, man vill ju inte bli blöt. So far so good.
Read more of “Människor med paraply”…
Fullpackade bussar och kramande medpassagerare. Alla som åker i kollektivtrafiken verkar ha ett starkt behov av att gnida sig mot varandra…
Read more of “Bussjuckare”…
Har tränat kampsport en stor del av mitt liv. Jag var väldigt seriös när jag var liten, men i tonåren började jag bli mindre intresserad av att avancera och mer intresserad av att bara träna för träningens skull. Nu, när jag och min flickvän är nyinflyttade (nåja) i Göteborg så börjar jag få träningsabstinens.
Read more of “Kampsport i Göteborg”…