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 […] Continue Reading…
2 Comments
| Miscellany
| Permalink
Posted by Jānis Elsts
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 🙂 […] Continue Reading…
1 Comment
| Desktop Apps
| Permalink
Posted by Jānis Elsts
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…
6 Comments
| Web Development
| Permalink
Posted by Jānis Elsts