Counting the number of items in a line

This short script was used to count the number of pipes in a line. I wanted to have 9 per line so the Dokuwiki table would be displayed properly, so this script let me know which lines were busted.

# Purpose: 
#     Get number of pipes per line. The first line should be what you 
#     want the others to match
 
import re
import os
import sys
 
game_collection_file = sys.path[0] + os.sep + 'game_collection_dokuwiki_list.txt'
game_collection_fh = open(game_collection_file)
 
rexp = re.compile(r"\|")
 
count = 0
for line in game_collection_fh:
    count += 1
    match = rexp.findall(line)
    if len(match) != 9:
        #print "Number of pipes on line %s: %s " % (count, len(match))
        print "line %s: %s " % (count, len(match))
Posted in General, Note-to-self, Programming, Tips | Tagged , | Leave a comment

Synclosure 0.2 (stable) released!

As announced here, Synclosure 0.2 has been released.

This release incorporates a collection of minor changes to improve application feedback and improve handling of feed errors.

Please try the release, provide feedback and let others know of Synclosure if you find it useful.

Ways to interact with the project:

Posted in General, Programming, Software | Tagged , , | Leave a comment

Getting closer to 0.2

Synclosure

I worked on a few annoying bugs (#39, #40) I introduced in r24 and opened up a Twitter account for the project.

Next is more work on the Inno Setup installer files and then documentation. Yay.

Any graphics artists willing to contribute a logo, icon or avatar for the project?

Posted in Programming | Tagged , , | Leave a comment

Synclosure lives, again!

As mentioned previously, the Synclosure project has been revived and is hosted at http://projects.whyaskwhy.org/.

After a coding/project management binge, I’ve incorporated nearly all of my modifications from the last few years into Synclosure’s trunk. I’m not done, not by a long shot, but I want to go ahead and open the site up to get feedback.

As of now, the site is live. Please feel free to provide (constructive) feedback, I welcome it.

Posted in General, Programming | Tagged | Leave a comment

Delays and stuff

I’ve been a lot busier this week than I should have been. Stayed over at work trying to fix stuff, spent three days trying to get the color fixed on an Acer S211HLbd monitor and finally gave up and RMA’d it today. Very disappointing.

The good news is another Planar 1910M is on it’s way. The bad news is I wasted all of that time trying to tweak it when I should have known from the start it was a lost cause.

Oh well, live and learn I guess.

In other news, I haven’t opened up projects.whyaskwhy.org to the Internet at large yet. Maybe tomorrow, but most likely next week. I’ll try to stay more focused this time.

Posted in General | Tagged , , | Leave a comment