Programming things
Cooking progress 28-01-07
by rullzer on Jan.28, 2007, under Cook
I just finished adding the 11th revision of my personal recipe program cook. Still not ready for a release but I am getting closer. Thanks to my buddy Sander it now is no longer possible to add the items in the QListView/QTreeView. Updating a recipe no longer loses focus on a recipe (that was a real bitch). So for the upcoming week (besides school/work, which just has to be done) my main goal is to get the ingredients working. After that I will take a look at QWidgetMapper, which is supposed to make my life easier but at the moment I do not need it. So that is just bonus
O I also changed 2 QLineEdits to QComboBoxes which does make my life easier.
I was told that the link i posted provided an empty tarball. I will have a look at viewvc for that but i also decided i will keep a archive here: rullzer.com/cook. So if you want the latest release grab the latest tarball.
A tribute to Kate
by rullzer on Jan.28, 2007, under Programming things
Since I am a KDE user i prefer to use a lot of KDE programs. However for editing code I always uses vi. That was until last week. When a buddy of mine, Sander, and me were coding. We both do not like huge IDE’s like Eclipse and KDevelop. They are just way to huge and take up all my ram (1.5GB at the moment so that is not really an argument). But is is an argument when I say i like lightweighted application, and well I do. So about Kate. It allows me to edit multiple files, auto-indentation and so on and so forth. Now I know vi has all that to. But right now I think Kate looks better.
If you not raised with vim-keybindings (yes i actually know someone that is) and you like lightweighted texteditors. Take a look at Kate.
cooking program
by rullzer on Jan.27, 2007, under Cook
The ones of you that have been watching my subversion repository might have noticed my my cooking program. It is far from finished. But i decided to keep you all up to date trough this. It is a program written in Qt 4.2. And uses sqlite3 to store its data. Now the main concept is easy. I like to cook. Not that I am standing hours in the kitchen every day but I like creating someting that other people can actually eat
Now i do not like to write my recipes on a piece of paper, which always gets lost, ah well I’m just lazy and i like my things to be digital (to geek or not to geek, that’s the question).
The program has very limited functions now. For example you can’t add the ingredients yet. But that will come soon (else the whole point of the program is useless). Anyway for a v0.01a grab the tarball.
The adventure of a new pc….
by rullzer on Jan.13, 2007, under Annoying things, Hardware, Programming things
Right now the I am coping back the documents etc to the PC of my in laws. But let me tell you about the adventure that i had to go trough to get to this stage.
It started all Thursday. All the components arrived and I began to put it all together. But when i was connecting the cables I ran into the first problem. The 24-pin cable was to short!! What the fuck is that about? I mean i admit it is a tight case, but damn. Would those 10 cm of extra cable really be that much of a problem? Anyway so Friday i had to get myself an extension cable. So after i finally got the extension cable I could get back here and plug in everything else.
Then the second thing came. I realized that the firmware of the motherboard was outdated. And that if I would just install windows ( believe me I tried to make them switch to linux ) the transfer mode of the Optical drives would be set to PIO instead of DMA. And that (thanks to our good friend bill) I will not be able to change that. How do I know that? Because my dad has the same motherboard. So now is my question why! O Why can’t MSI just get it right at once. Or ship theire motherboards with a more recenter version of the firmware. This one was more than a year old. Ah well. So I had to drive back to my place to get a floppy with the new firmware. After that i was ready to go and install windows.
I know windows says that they are a userfriendly OS etc. But why is it then that the start of installing the OS is not even a little bit graphical? I mean with many linux distros i can just choose to use a GUI to partition my hard disk. But in windows. No way. Now not that I don’t get the partitioner I am just wondering why doesn’t MS does something about that?
Ah well now it is time for some breakfast.
Programming style
by rullzer on Nov.24, 2006, under Programming things
So i spent my afternoon trying to figure out the program from our friends at GNU: indent. And well i have to say i like it! A bunch of settings and a huge man page. But it is worth it. From now i will run indent on everypiece of code I have to read just so i can read it! For those interested my flags:
-bad -bap -bbb -bbo -br -brs -bs -cbi0 -cdb -cdwa -ce -ci0 -cli2 -cs -i2 -fc1 -fca -hnl -l78 -lc78 -pcs -pi2 -ppi0 -pmt -nbfda -npsl -saf -sai -saw -sc -npsl -sob -ts2 -nut
I need to tweak a little bit here and there but overall it works like a charm. So go and find out your own flags so from now on you do not have to get used to someone’s weird indenting style if he/she asks you to take a look at the code.
No more…
by rullzer on Nov.18, 2006, under Apache vhost
well not for now.
The vhost module won’t compile on my amd64 box. And well since that is the only box in the house running appache i can’t test it for now. So a module writen in C won’t happen i geuss… At least nog for now…
sorry
Break trough in apache vhosts!
by rullzer on Nov.13, 2006, under Apache vhost, Seeds
As you might know vhosting in apache is a pain in my ass! especially when it comes to more than 3. Since everytime i add a new one i have to restart apache. First of all. what is that :S i mean seriously. That is not the way to go. Now i can live with it that i have to do this for each domain.tld but i want to create subdomains. Now that is an interesting thing. Since my dns has a database backend i can just add subdomains into it. (nice!
) But i need to restart appache to make it all work.
Ah what am i talking about? You can all read this on in previous posts. However there i just could not figure out how to set the default vhost settings. Such as
AllowOverride All
order allow,deny
allow from all
since well that is the basics for me. But i think i got it now. However it needs some testing but i just wanted to share this with you
You might be hearing a lot from me soon. When I’m rich and famous!
p.s. what has this to do with the seeds? Well it could be a really nice feature!
Webstore…
by rullzer on Nov.09, 2006, under Programming things
Damn it appears to be more work than i had calculated before. Well i have to be fair it is not that much work i just don’t to that much… Cakephp really makes my life easier. I’m planning to finish this website this weekend so i can throw myself at other stuff. (like the vhost module???) Ah well. Thats all for now folks
Still no progress
by rullzer on Nov.02, 2006, under Apache vhost
So i worked a little on the Apache vhost. And damn. That is a bitch!! After trying to work my way torugh the API it still is not working at all! I’m of course talking about the logging and vhost things. The other part works like a charm. Maybe i should write an angry e-mail to the appache people
O a few days ago someone asked me if i could add caching. And well the answer is no! Since we want it to be as dynamically as possible. We want to be able to change things on the fly in the database and see direct results when we have committed. That is the whole point of this. Also i do not think it is needed that much anyway. Since it is just 1 table we check. With right indexes it should be no problem for to find a row in a fraction of a second.
Why!!!
by rullzer on Oct.06, 2006, under Apache vhost
Damn this module is really getting on my nerves. Its my own code and still not working like i want it to work!! It because those appache files are well lets say the API is not that well commented. I still do not know which module function to call with what paramters to log to a specific file. Same goes for the default .htaccess settings in you apache configs.
Maybe the new apr will help me a little bit more. However it is not yet marked stable on gentoo and i’m not in a hurry. So no need to rush things.