April 18, 2013

Install mongoDB on 64bit Debian (Squeeze)

Sometime the most obvious thing turns out to be the most complicated one. Here’s my small journey to get mongoDB running on one 64bit Debian server. Like any other reasonable person I started from the manual. Everything worked as they said it would and for some time I was quite happy with it. But at some point for whatever reason I peaked into /var/log/mongodb/mongodb.log. ***** SERVER RESTARTED ***** Wed Dec 12 17:34:37 warning: 32-bit servers don't have journaling enabled by default. Read more

March 28, 2013

USB drive extremely slow in Ubuntu

After I got my ybercool home media server ready it was time to start using it properly. Which, for a sad reason, also meant that I had to occasionally copy some of my media to USB stick, to enjoy it also on my bedroom TV which is not connected to the network. At some point I noticed that moving 1.4GB data from server hard drive to usb flash drive took like an hour. Read more

March 13, 2013

How to make your MP4 video play on Xbox 360

There are some known limitations on Xbox 360 to play mp4 video. First of all you should update your Xbox, so if it’s not yet in the network you have to get it there. Once you’re confident that your box is up to date you can start looking into MP4 and it’s issues with Xbox. Some say that Xbox has the following special needs: Xbox can play H.264 MP4 video, but only up to 10 Mbps with resolutions of 1920*1080, 30 frames per second. Read more

March 12, 2013

How to resize FAT partition in Linux without losing data

I have a small external hard drive that had three partitions on it. One I created for TimeMachine backups, one for keeping movies and one that I was not aware of. It had a boot flag so I suspect it was created by TimeMachine itself. So once I got a bigger HD just for TimeMachine I no longer needed the allocated 100GB on that older drive. Getting rid of it however without losing data seemed a bit too complicated in Mac OS X. Read more

December 17, 2012

Can not select Airport Express remote speakers

I have a first generation Airport Express which works flawlessly with iPad and iPhone. But when I try to select remote speakers from iTunes it deselects the tickbox as soon as I click on it. Usually osx restart helps, but it only lasts until I switch network or loose connectivity to wifi. Expressively inconvenient I have to say. I’m not alone, but it doesn’t mean that there is a straightforward answer out there. Read more

November 2, 2012

Never ever buy a movie from iTunes

Now this is getting ridiculous. When you buy a movie from iTunes you cannot watch this on your external screen. Yes, seriously. You can not plug in your second monitor, or your 1000$ 30" Apple Cinema Display, drag your iTunes window to that screen and hit play. It just won’t work. And apparently it’s due to a thing called High-bandwidth Digital Content Protection (HDCP). Something fancy that Apple added to all Macbook and Macbook Pro’s made after 2008. Read more

October 26, 2012

How to install matplotlib on Mac OS X Lion

I was struggeling with installation of matplotlib on Mac OS X Lion. While trying to pip install matplotlib I saw a lot of bad stuff like src/ft2font.h:16:22: error: ft2build.h: No such file or directory src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME> ... lipo: can't open input file: /var/tmp//ccuS7mkF.out (No such file or directory) error: command 'llvm-gcc-4.2' failed with exit status 1 It seemed that that issue was caused by REQUIRED DEPENDENCIES numpy: 1. Read more

October 17, 2012

Python easter eggs

I found some interesting easter eggs from python (2.7) recently. Try the following: from __future__ import braces import this import antigravity Do you know more?

August 30, 2012

PUT versus POST in RESTful API

I’m designing an API. And obviously first question I had was: what’s the real difference between PUT and POST? Someone is always wrong in the internet. And there are a lot of opinions out there. But I think the most simple and clear on comes from stackoverflow: PUT implies putting a resource - completely replacing whatever is available at the given URL with a different thing. By definition, a PUT is idempotent. Read more

August 22, 2012

Procrastinate more

I’ve had a wallpaper by goodfuckingdesignadvice for a while now (next to “Always ask for more fucking money”). But it’s usually hidden behind soundcloud, beatport, djtechools, facebook and all the other nice pages that I’m interested in. And for years I’ve been trying to find ways how to procrastinate less, do more and actually feel that I’ve accomplished something by the end of the day. I’ve tried inbox zero, Pomodoro, keeping my Skype and Twitter client closed, but eventually I still find myself wondering around places where I definitelly should not be. Read more

Powered by Hugo & Kiss.