i started coding in grails

May 16th, 2007 by admin | Permalink

i started coding in grails in the last days.
for the start i must say, every webframework seems to be the same, and every webframework seems to be different.

one thing i am missing is that the scaffolding is not that clear then it is in ruby on rails.
in ruby i can define my table in the database and the generated html is in the same order like the db.
there is no sort in grails or i am not understanding it.

one great thing is the services section. you can put functionality into services and they are completely ready for transactions. so if the script breaks, all the datas are getting roled back. great stuff!

more to come…

little performance tuning for qmail + vpopmail

May 10th, 2007 by admin | Permalink

i use qmail in combination with vpopmail from inter7 on my servers.

the most start scripts for qmail use tcpserver and tcpserver uses recursive dns for every request.
so if there is a lot of traffic or spam or whatever, tcpserver sometime takes to long to resolv these ip addresses and no more connections are able to be opened in that time.
the resultion is to set the params like this:

tcpserver -H

the -H means don’t resolve the ip.

!map:HashWithIndifferentAccess

April 23rd, 2007 by admin | Permalink

i got some errors on my ruby on rails project, when i tried to get strings from two different hashes.

it catched all the data, but it added always !map:HashWithIndifferentAccess in front of my data.

i solved that by doing a little trick.

comment.title = params[:title]

and changed it so use only the data from the hash i want to use

comment.title = params[:title][:thefieldiwanttouse].to_s

simscan with clamd & spamassassin

April 22nd, 2007 by admin | Permalink

i use simscan to scan every mail on one of my mailservers.
i don’t often restart my servers, so sometime i get the following error in my smtp log file.

2007-04-20 12:11:13.004232500 connect(): No such file or directory

most of the time this happens when clamd or spamassassin is not started. normally this should happen on the restart.

in my case
clamd &
solved the issue.

%d bloggers like this: