Process memory usage

September 4th, 2006

Here are some tips about getting/controlling the memory usage of a given process… Current memory usage You can use GetProcessMemoryInfo() API function to get the current memory usage (in bytes), peak usage, number of bytes in pagefile currently used by a process, and so on. Add Windows to your uses clause and use something like […]

Continue Reading...

wsCryptoPad text editor

September 2nd, 2006

This is more of a proof-of-concept that I created, but still pretty neat – it’s a text editor that stores the text in it’s own exe-file, compresses that text and optionally encrypts it. And it’s just 93 KB in size and doesn’t require installation! Useful for… storing passwords, maybe 🙂 Source code is available, so […]

Continue Reading...

Generating text as a Markov chain

September 1st, 2006

Some words have a tendency to appear in certain contexts. For example, “jumps” is likely to be followed by “over”, but “cabagge” is probably not going to appear there. It is possible to analyze a text and determine how often words appear in specific contexts. These statistics can then be used for various purposes.

This method is useful for various tasks in natural language processing, but the fun part is you can use it to generate a random text that appears to be meaningful, and that’s what I’m going to do 🙂

Continue Reading...