I am known for being an lazy ass, one of the ways of coping with this horrible disease is automating any repetitive task that takes more that 5 minutes of work. So, in my free time, when I’m not dreaming of eating cake on a magical dessert island, I …
I’ve been a Wordpress user and developer for a long long time but lately this nagging idea kept crawling in the back of my head, why not switch my website to a statically generated one? Well, a 3 hour train journey and a lot of boredom finally pushed me …
As you might have noticed, one of the key usability features that we were missing on Iconfinder was the ability to display so called “flash messages.” Flash messages are one-time notification messages shown to the user after processing a form or handling other types of user input, so the user …
I recently had to set up a Vagrant project where all the configuration files for services like nginx, supervisor, mysql where symlinks pointing to files residing on the Vagrant synced folder . This turned out to be a bit of a problem, when the Vagrant box boots, one of the last …
Move fast and break things is one of the founding mantras of Facebook and I think it defines a company culture that can apply to almost any technology startup. It is a culture who’s principles embody, promote and encourage communication, constant and fast iterations, tight feedback loop between the …
One of the problems that I find annoying in puppet is that you can’t easily obtain the IP address of a specific network interface. Let’s say that you want to define a class or type to which you wish to pass a interface name and use it’s …
I haven’t even started yet and I can already hear you muttering over there, “What the hell is this Vagrant thing and why should I care?”. Well, Vagrant is a wrapper around VirtualBox , the virtualization software, that can create homogeneous development environments automatically without any effort from the developer …
To tell you the story of my string of bad luck and my first week of internship in Copenhagen, I’ll first have to start with my last week. It was Saturday, the day before I had to leave for Copenhagen, I was there minding my own business, when my …
I moved to Denmark, from my home country Romania, exactly two years ago to the day with just a small suitcase and a backpack. In them I had a hand-full of clothes, a few personal belongings and my laptop. During the past couple of years things started to accumulate, I …
Puppet expects the user’s password to be encrypted in the format the local system expects, for most modern Unix-like systems (Linux, * BSD , Solaris, etc.) this format is a salted SHA1 password hash. To generate a password hash to use with puppet manifest files you can use the mkpasswd utility …
Testing CSS print media queries is really difficult but a new featured was introduced in Google Chrome in December that allows you to apply different CSS media types like handheld, print, screen and so on. Open Developer Tools in Google Chrome by clicking the menu icon at the top-right of …
Setting up the developing enviroment Note: I’m assuming you have a .deb based distribution and a AVR STK600 board with a ATmega2560 microcontroller that you are programming using an USB cable. Installing the software We need to install the following programs and their dependencies: gcc-avr: The GNU C compiler …
These are some sort of notes to myself, this list will be constantly updated. Sort directories by size (human readable size): 1 # du --max-depth = 1 -h | sort -hr Set tabsize to 4 in vim: 1 : set tabstop = 4 Show failed login attempts on your machine: 1 # lastb -F Print the …
If you’re performing memory intensive operations such as building workspace on big projects, Eclipse will throw this error when it runs out of memory: An internal error occurred during: “Building workspace”. GC overhead limit exceeded In order to fix it, you need to increase the memory allocation for Eclipse …
If you want to reinstall a server or a desktop and want to install the same packages after reinstalling the operating system you can easily do that with dpkg. First we need to backup the list of packages to a file and after reinstalling the operating system, in this example …
An useful thing to do is to have lock the screen when you close the laptop lid so you don’t have to wait for the timeout but in Ubuntu 11.10 this feature was disabled. Note: This bug has been fixed in Ubuntu 12.04 Precise Pangolin. To have …
If you need to password protect a folder using nginx here’s how. In this example we’re gonna password protect the /admin folder, trying to access the admin directory will prompt the user with a basic authentication dialog, and will be challenged against the created password file. Edit your …
Netbeans no longer comes with Tomcat bundled so if you want to deploy your application to an Tomcat server you need to manually register an external server. Note: This article is old no longer and this is not true anymore, Tomcat is now bundled with Netbeans so the steps in …
If you’re like me and you forgot your wordpress password and don’t have email setup on your system there are alternative ways to set a new password rather then sending and email. Pick a particular method depending on what type of access you have to your website/hosting …
After much slacking around and ignoring this blog I decided to give it another spin and bring it back to life. It will be mostly technical articles about Linux, system administration and network administration. 1 2 root@crappy:/# echo 'Hello, World!' Hello, World!