Juha Palomäki
Projects
-
Recent Posts
Categories
Category Archives: Misc
Replacing multiple occurences of character in bash
I wanted to replace multiple occurrences of underscore with single in one bash shell script. With regular expressions this is pretty simple, but by default they are not available directly in bash (using awk, sed and other tools would have … Continue reading
Posted in Misc
D-Link routers and ZoneEdit dynamic dns
Some D-Link models support updating selected dynamic dns services. The support is however limited and it seems to be that for example you can’t configure it to push updates to ZoneEdit. A simple workaround is to use the D-Link provided … Continue reading
Posted in Misc
Install latest MongoDB in Ubuntu
The MongoDB version available from the default Ubuntu/Debian repositories can be fairly old. Luckily it is easy to get a newer version directly from 10gen repository Source: http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages
Posted in Misc
Ubuntu quick firewall configuration
Quick instructions for enabling firewall on Ubuntu using Uncomplicated Firewall (ufw). The resulting rules are quite obvious. Incoming traffic is denied, except for ssh, http and https (these refer to /etc/services) and outgoing is allowed. These policies do not affect … Continue reading
Posted in Misc
MongoDB as service on Windows
Quick install script for installing mongodb a service on Windows. Further instructions are available in official MongoDB docs. Download appropriate version: http://www.mongodb.org/downloads extract to your folder of choice, startup cmd.exe as Administrator and change to the MongDB folder. If you … Continue reading
Posted in Misc
Refresh DHCP IP address in Ubuntu
Simple steps for getting new IP address via DHCP on Ubuntu (tested on Ubuntu 11.10, running under vmware with bridged network) # Release existing sudo dhclient -r # Get new sudo dhclient # Restart networking sudo /etc/init.d/networking stop sudo /etc/init.d/networking … Continue reading
Posted in Misc
Using Dropbox to sync Sublime Text settings across Windows computers
Sublime Text stores settings and packages in %APPDATA%\Sublime Text 2 folder by default. Quick search did not reveal any way of forcing it use some other location. In order to sync the settings by using Dropbox, the files should obviously … Continue reading
Posted in Misc
The user specified as a definer does not exist when using LOCK TABLES
Encountered annoying MySQL problem when trying to dump database from a backup server. MySQL kept complaining about The user specified as a definer (‘myuser’@’%’) does not exist when using LOCK TABLES when I ran mysqldump. The database had been originally … Continue reading
Posted in Misc
Logging to Loggly from JBoss 5.1.0
Loggly is a fairly new cloud base log management service. You can think about it as lightweight and hosted version of Splunk. I find it pretty interesting, especially because it provides pay-as-go licensing model which I believe suits better to … Continue reading
Posted in Misc
Work 2.0
Think about how the cloud changed the way startups were run when we went from 20th centure Web 1.0 to Web 2.0. During the dot-com boom it was all amount of money and big hardware. Success started with $1M set … Continue reading
Posted in Misc