Author Archive

Redmine Drafts Plugin

Monday, November 8, 2010 22:11 No Comments

Jean Barth wrote a nice plugin for Redmine that saves drafts while you are writing issues. Many times people write some long text and then hit the wrong button, the browser crashes and they loose the data. The Drafts plugin saves the data periodically and it can be retrieved if the worst happens. Redmine Discussion [...]

This was posted under category: Web Tags: , , , , ,

How to install Redmine on Bluehost

Saturday, November 6, 2010 18:22 No Comments

How to install Redmine on BlueHost under a subdomain.  Redmine is a popular project management software based on RubyOnRails. BlueHost is a shared hosting provider but allows you to use SSH access to your account. To enable SSH open a support ticket and send them a scan of your ID. I will give you rough [...]

This was posted under category: Unix/Linux, Web Tags: , , , , , ,

WordPress running on IIS and ugly permalinks starting with index.php

Wednesday, November 3, 2010 12:27 No Comments

You may have experienced when running WordPress on IIS that the permalinks have that ugly index.php included. Pretty way: www.mysite.com/2010/11/mypost IIS way: www.mysite.com/index.php/2010/11/mypost By tweaking the .htaccess and using some rewrite rules this can be fixed. (ISAPI_Rewrite required)

This was posted under category: Web, Wordpress Tags: , , , , , , , ,

Boiled brandy aka Kuvana rakija

Wednesday, November 3, 2010 12:27 No Comments

Kuvana 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

This was posted under category: Food & Drink Tags: ,

Move WordPress to a new domain / location

Tuesday, May 25, 2010 0:25 No Comments

How 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, [...]

This was posted under category: Wordpress Tags: , , , ,

Qmail – Enable/Disable ClamAV

Monday, April 19, 2010 13:16 No Comments

The 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 [...]

This was posted under category: Unix/Linux Tags: , , , , ,

qmail & vpopmail – how to add domains and users

Thursday, April 15, 2010 16:42 No Comments

Using 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 username@domainname.tld  userpassword To remove a mailbox on domainname.tld: $ vdeluser username@domainnaime.tld: You can find more [...]

This was posted under category: Unix/Linux Tags: , , , , , , ,

MySQL – Get the Top N of a Group

Friday, March 26, 2010 11:43 No Comments

Getting 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 [...]

This was posted under category: Database Tags: , , , , , , , ,

Linux- Recursively change permissions on files or directories only

Thursday, March 25, 2010 22:33 No Comments

If 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 [...]

This was posted under category: Unix/Linux Tags: , , , , , , ,

Apache .htaccess – Allow / Deny access from certain IPs

Tuesday, March 2, 2010 0:02 No Comments

If  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 [...]

This was posted under category: Unix/Linux, Web Tags: , , , , , ,