Lately i’ve been tinkering around with the idea of recreating my blog in a more handcrafted way (ruby on rails) as opposed to the current implementation using WordPress. Don’t get me wrong WordPress is awesome. It has many years and millions of websites as a testament of it’s awesomeness behind it. But i guess my [...]
Don’t ask me how the sed magic works, but it does. Taken from here. Running this: mysql -u<USER> -p<PASSWORD> <DATABASE> -B -e “select * from videos_video;” | sed ‘s/\t/”,”/g;s/^/”/;s/$/”/;s/\n//g’ will produce something like this: “id”,”title”,”url” “1″,”video 1″,”http://youtube(…)” “2″,”video 2″,”http://youtube(…)” “3″,”video 3″,”http://youtube(…)” Just pipe it to a .csv file and you’re done
I think most of them work on both Snow Leopard and Lion. Not sure about previous versions. Just type the ones you want to activate/deactivate on the command line and have fun. # Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs) defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 # Enable the [...]
This is just a self reminder on how to disable and enable spotlight in Snow Leopard and Lion. Open a terminal and type: To enable: sudo mdutil -a -i on To disable: sudo mdutil -a -i off In system preferences you can control which drives and/or folders are not to be indexed.
If you are developing in Swing and using hibernate you might – at some point in time – run into this exception: org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session What happened, you might ask? Well, turns out that when you close the session that created a given [...]
After buying my shiny new ipad2 I, like most other tablet enthusiasts, devoted a fair amount of time in search of the coolest and most useful apps to install. The major problem in most results that google returns is that they all mention the same list: twitter, IMO.im, friendly, dropbox, etc. (for a list of [...]
So here’s the deal: I had planned to purchase a honeycomb-based tablet as my sabbatical leave of absence going away present to myself. I was carefully considering all the pros and cons of both the Motorola Xoom and the new 10″ Samsung Galaxy Tab. Between the two of them discovered the latter has a better [...]
While reading my morning web comics, i noticed this error in wulffmorgenthaler: Guru meditation error. Apparently this is the default way the Varnish HTTP cache shows errors and – as it turns out – it comes from the old Commodore Amiga times. It’s always refreshing to find more developers with a sense of humor
The problem For a while now, i have been searching for a way to stream videos from my living room’s Mac Mini to my other Macs across the house. Especially to my laptop (or in the future to my tablet) when i’m laying in bed. Yes, i know i’m lazy, but one has to take [...]
If you’re trying the new developer preview version of OSX (10.7 – Lion) and find that the default sound output (headphones) is misbehaving, there is a quick fix for it. According to OSX developers, if you go into the Audio MIDI Setup (under /Applications/Utilities) and change the output format from 2ch-16bit to 2ch-32bit (like in [...]
Application markets and stores are all the rage these days. Let’s see, there’s the apple store, the android market, Microsoft’s app store, Nokia’s OVI store, and probably a gazillion more. It’s like if you don’t have one, you don’t really exist. Well, now the eclipse IDE has got one as well. You can get plugins [...]
I don’t get all the fuss about Apple no longer shipping java with OSX. Windows never did. Linux does not. So what? Actually, with Lion, they will make it extremely easy to install anyways. According to early reports about the developer preview release, when a user tries to run a java application (or install one), [...]
Now this is what i call the future coming to us: Stuff previously only seen in movies coming to the real world. LG has demo’ed a transparent multi touch display. Can i have one?
As a part of my Ruby learning process, i decided to write something to retrieve the full list of brands that Coca Cola currently owns from their website. The list is split across multiple pages, but with some Ruby magic and a nice library called Hpricot to traverse the HTML it was 5 minutes of [...]
One of the biggest pains of any developer is maintaing the source code. Especially if you – like me – have a gazillion pet projects that need to be updated whenever you come up with “cool idea #20000″ for one of them. Version control systems like Mercurial are awesome, but they are only part of [...]
After reading a post in PCPro.co.uk, about the dual core ARM phone that can run both Android and Ubuntu at the same time, i can’t help being excited about the possibilities that the near future holds for us, mobile-wise. I’m pretty sure that – at some point in time – we will not need laptops [...]
Just some notes i might update while going through the procedure. To start with, gem might complain that bundler requires a higher version. Something like this might happen, when you run “sudo gem install rails”: ERROR: Error installing bundler: bundler requires RubyGems version >= 1.3.6 ERROR: Error installing bundler: bundler requires RubyGems version [...]
Recently i had to fill one of those client/customer satisfaction surveys. Endless pages of “how well do you grade feature X” questions that frustrate you beyond the point of killing yourself and your colleagues. And that got me thinking: how about a simple form that asks “Are you happy? Yes/No”? If you answer “yes”, case [...]
I could not figure out why the hell Safari 5 was running so slow in my personal mac, when compared with the one i use for work. Until i read some nice tips on the subject, namely this one article. To make the story short: I had installed (a long long time ago) a couple [...]
Being able to play games without having a remote sounds awesome, but it’s not without its perils. To prove it, here’s a video of a Kinect session that went wrong. You can see this one and a few more on CrunchGear’s original article. I’m pretty sure we are going to see a lot more of [...]