Author Archive
Boiled brandy aka Kuvana rakija
Wednesday, November 3, 2010 12:27 No CommentsKuvana Rakija which exact translation would be ‘boiled brandy’. 1 spoon sugar 200ml brandy 100ml water – Dissolve sugar – Add brandy (sljiva) – Dilute with water – Wait until boils – Put on fire – Enjoy *add clove for aroma
Move WordPress to a new domain / location
Tuesday, May 25, 2010 0:25 No CommentsHow to move WordPress to a new location in few steps. – move files, addapt .htaccess, wp-config.php if needed - backup database – run the following queries (replace old_url.tld, new_url.tld with actual data) UPDATE wp_options SET option_value = replace(option_value, ‘http://www.old_url.tld’, ‘http://www.new_url.tld’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’; UPDATE wp_posts SET guid = replace(guid, [...]
Qmail – Enable/Disable ClamAV
Monday, April 19, 2010 13:16 No CommentsThe ClamAV scanning feature can be disabled in the qmail’s simcontrol configuration file. This will not disable the clamav daemon but will disable active scanning. edit: /var/qmail/control/simcontrol there should be text like this: :clam=yes,spam=yes,spam_passthru=yes,attach=.vbs:.lnk:.scr:.wsh:.hta:.pif what we need to do is to replace clam=yes with clam=no. If you don’t have this text insert it. Next we [...]
qmail & vpopmail – how to add domains and users
Thursday, April 15, 2010 16:42 No CommentsUsing vpopmail you can easily add domains and users to your qmail configuration. To add a domain: $ vadddomain domainname.tld To remove a domain and all its mailboxes: $ vdeldomain domainname.tld To add a user mailbox on domainname.tld: $ vadduser [email protected] userpassword To remove a mailbox on domainname.tld: $ vdeluser [email protected]: You can find more [...]
MySQL – Get the Top N of a Group
Friday, March 26, 2010 11:43 No CommentsGetting Top N of a group would be very easy if there just wasn’t that ‘LIMIT & IN/ALL/ANY/SOME subquery’ restriction. But there’s always some way around. Thx to Jon Armstrong from A little Noise for the code hint. MYSQL table ‘measurements’ | Id | Freq | Level | DateM ## Gets the last 2 measurements [...]
Linux- Recursively change permissions on files or directories only
Thursday, March 25, 2010 22:33 No CommentsIf you wondered how to change permissions recursively on files or folders only, here is the how to using the find command. Change permissions recursively to directories only: find /path/to/folder -type d -exec chmod 0755 {} \; Change permissions recursively to files only: find /path/to/folder -type f -exec chmod [...]
Apache .htaccess – Allow / Deny access from certain IPs
Tuesday, March 2, 2010 0:02 No CommentsIf your website is under contruction and you want to allow access just to certain IP numbers, placing the following code in the .htaccess file, in the website root directory, you can block access to everyone except the IP numbers you specify. order deny,allow deny from all allow from 76.33.193.98 allow from 84.23.122.204 allow from 93.34.133.203 [...]
The Fabulous Logic Analyzer – Problems during port initialization
Wednesday, February 10, 2010 21:02 1 Comment“TFLA-01 is a simple logic analyzer for the PC. This one consists of a simple schematic which is attached on the PCs parallel port (a real parallel port is highly recommended, not a USB adapter) and which can analyse H and L levels of 8 inputs. On the PC, there’s running a graphical program which [...]
Expand a Flash movie in height and width by 100%
Tuesday, February 9, 2010 22:00 No CommentsTo expand a flash movie (.swf) by 100% you have to set its height and width to 100%. But that’s not enough. The parent container the movie is sitting in needs to be 100% w/h too. By default all DIVs are 100% wide but they don’t expand 100% in height. To accomplish this set the [...]
My Garmin Forerunner 305 doesn’t power on – It’s just DEAD! The Solutions.
Monday, January 18, 2010 14:51 81 CommentsIf you experienced the same problem as I did and your Garmin Forerunner 305 just doesn’t turn on then try one of the steps i describe below to bring it back to life. Beside not responding to any buttons the computer doesnt recognize it either when connected through the USB interface. I’ll present you with [...]