rolling

Best way to read in a rolling log file in .NET?

Hi folks, i need to read in a rolling log file in .NET 3.5sp1. I'm wondering what's the best way to do this? The file can get really big. An idea i had was to Open File Read file to last read line (in the first case, it was 0) Read all remaining lines Close stream and remember the last line number read. Wait a bit. Rinse/repeat. i'm...

Fast implementation of Rolling hash

I need a Rolling hash to search for patterns in a file. (I am trying to use the rabin-Karp string search algorithm). I understand how a good hash works and how a good rolling hash should work but I am unable to figure out how to efficiently implement the 'divide' (or inverse multiplication) when rolling the hash. I also read rsync uses ...

iPhone rolling page (maps application style)

Hi all, how I can implement a "rolling page" effect like the one in iPhone maps application? (The effect when the user tap the lower right button in the page here: http://artbeatme.files.wordpress.com/2009/05/bixi_map_1.png) ...

How do I pipe the stdout of a program in DOS to a daily rolling logfile?

I've got a DOS program kicked off by a cmd script that dumps a lot of data I'd like to track in a log file. I can easily pipe it to a file - but I need a rolling logfile. Is there an easy way to pipe the output to a program that will generate a daily rolling logfile? (ie a new file is created for each day) ...

log4net not rolling properly on 2003 server

I am using Rolling file appender with rolling style Size, it rolls fine on my XP box and one 2003 server. But its behaving wieredly on on other 2003 boxes, ie while rolling it truncates the file. ...

Ball rolling sound effect

I am working on a Labyrinth style app for iPhone using Chipmunk and openAL. I got everything working except the ball rolling sound. What I have tried is playing a small sound for each update in the ball's position so that the overall effect sounds like the ball is rolling. Based on advice on this forum I tired using velocity of the ball ...