Projects

Release: khtmld v0.3.8

It has been a while, since I've updated this project. Finally I've got some time to improve the code for the config parser. The improvement fixes the problem described in this comment.

There current release v0.3.8 can be found at the khtmld project page or on https://sourceforge.net/projects/khtmld/.

Process on khtmld

You may have noticed some problems with my khtmld project. It took me sometime to re-write the whole buffer processing function. I have also added a new feature, which allows you to communicate with khtmld through a socket.

Allover the code is now much more readable and the old function to read and process the buffer has been split up into 3 new ones:

  • void fill_buffer(int fd)
    Handles the file descriptor and reads and process the input it also stores the buffer into argline, which than gets parsed by parseArgument
  • void processArgument(char *argline)
    The passed argline gets split into two arguments arg1 the URL and arg2 the image filename. These variables getting passed to call_khtml2png2.
  • int call_khtml2png2(char *url, *img)
    This one executes khtml2png with all parameters, the one stored in your ~/.khtmldrc and the two arguments passed to this function. It than hopefully creates your screenshot.

I am not done yet and I need to implement TCP Wrapper to increase the security while using the socket communication feature. But so far local tests without khtml2png and TCP Wrapper worked fine. I don't want to rush with this release, otherwise it could lead to a disaster like the last time, where the whole buffer processing was a real mess!

Happy Halloween

I am not into Halloween, but it couldn't hurt to wish you a good one. The neighbors children put a piece of paper with a little bat on it into my moms briefcase. So if my mom want to allow the hordes of children to do play 'Trick or Treat', she'll have to put up this little bat at the door. In the past some stupid children played really bad jokes to people who don't gave treats. The threw old eggs at the house wall for example. So the idea of the little-bat came up.

And now something completely different

Sometimes I do have really stupid ideas, useless or simply stupid. While thinking about instant messenger and features I miss at all of them, I suddenly thought about fuse. Yap, a IM made with fuse, stupid, huh? But could be quite funny to do:

echo "Hi" >/mnt/icq/12345678/msg

or to:

cp myself_reflectionpr0n.jpg /mnt/icq/12345678/

As you may noticed, the 12345678 would be a UIN or a maybe a nick.

But the best feature would be a daemon like IM. Just imagine you configuring X and need to restart you X server more than once. It could be really annoying for people seeing you leaving and reconnecting every minute. It would be just like a IRC bouncer. May be there is already an IM doing this, if somebody know please let me know.

khtmld 0.3.5 released

After a long struggle with khtmld, I finally managed to fix this damn bug. The new read_fifo() should now be running fine. Tested the function by running a loop cating a bookmark file, with around 280 links, 1000 time. No segmentation faults occured.
The download can be found at my wiki or sourceforge.

Link wiki: khtmld
Link sourceforge: https://sourceforge.net/projects/khtmld/

khtmld bug located

During the last days I've been searching for a critical bug in khtmld. I need to completly rewrite this function. After dozen of modifications the code of this function got a bit confusing.
While waiting for an update, watch Binky.

tags/projects.txt · Last modified: 2007/09/28 23:22 by jpk
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0