Archive for the ‘Development’ Category

Testing code

Friday, November 14th, 2008

Принципите на тестера: Тестерите не ходят на работа, за да завързват приятелства. Вярваме в Бог, всичко останало го тестваме. Тестерите не чупят софтуера - той вече е счупен, когато пристига при тях. Тестерите винаги отиват в рая - те вече са получили своята част от ада тук. Ние не създаваме проблеми, просто откриваме вашите. Това са ...

seesaw gem configuration

Monday, November 10th, 2008

I cant find good examples and help in Internet for seesaw gem. Maybe it is used only by very experirienced rails persons. I will publish my configurations in case they are helpfull to some one. guda@guda-desktop:~/system3/config$ cat seesaw.yml --- restart_cmd: sudo kill -HUP `cat /usr/local/nginx/logs/nginx.pid` config_symlink: http_cluster/cluster.conf mongrel_config_path: /home/mongrel/system3/current/config/mongrel_cluster.yml config_path: /home/mongrel/system3/current/config config_files: all: cluster_all.conf ...

Installing notes for Rails on Debian/Ubunto

Thursday, November 6th, 2008

Debian Etch with backports Add this line in sources.list to get rails > 1.8.5 in rails etch deb http://www.backports.org/debian etch-backports main contrib non-free # deb ftp://ftp.nz.debian.org/backports etch-backports main contrib non-free apt-get install debian-backports-keyring aptitude update # some ruby stuff aptitude install -t etch-backports ruby1.8-dev libmysqlclient15off libmysqlclient15-dev mysql-common mysql-client libmysql-ruby1.8 # some system utils/libs aptitude install apt-utils build-essential mysql-server mysql-common ...

Postgres vs MySQL

Wednesday, October 29th, 2008

http://mysqldatabaseadministration.blogspot.com/2007_01_01_archive.html

My Solr notebook

Monday, October 27th, 2008

Lets start with some documentation: http://lucene.apache.org/java/2_4_0/queryparsersyntax.html http://wiki.apache.org/solr/SolrQuerySyntax How to select all documents which have id field: id:[* TO *] WRONG! It is very stupid to do this. better way is to use _val_:id This way you say just: Give me the values of the id field check the following to links for the functions syntax http://wiki.apache.org/solr/FunctionQuery#head-b95a68b4fb63ccddb65365418fe2094ac211f932 And guess what. if ...

links

Saturday, October 18th, 2008

iptables configuration script firewall - http://tje.ssllink.net/firewall/ test driven development website: http://www.testdriven.com/modules/news/

strace - why I havent discovered this tool earliear!

Friday, October 17th, 2008

This blog here describes some very usefull usages of strace: http://www.hokstad.com/5-simple-ways-to-troubleshoot-using-strace.html Find out which config files a program reads on startup strace php 2>&1 | grep php.ini Why does this program not open my file? strace -e open,access 2>&1 | grep your-filename What is that process doing RIGHT NOW? strace -p 15427 What is taking time? strace -c -p ...

Cool websites on Internet

Monday, September 15th, 2008

http://www.artofadambetts.com/weblog/?cat=7 Orignal idea Nice graphics Perfect scroll in the middle (check the mouse scroller) Some desktop wallpapers Photoshop tutorials

Chunks for the String method.

Wednesday, September 10th, 2008

If you want to generate some sort of chunks from a large strings you can use the following method. You give as a param an array of arrays, each array is pointing with % the start position of the chunk and the last position. class String def String.random_alphanumeric(size=16) ...

Dagens PS and PS Spy

Sunday, September 7th, 2008

We have launched the website PS Spy. It is a news monitoring website. The website is written using Ruby on Rails, MySQL and Python code and a little bit Java on some key parts. I am very pround of the webhunter and the accuracy with which we find and deliver news. Maybe ...