Content-Type: text/html; charset=ISO-8859-1 CrookedBush.com :: Jan 2005

Online

Subscribe to Feed


Top
RemoteComputer
Perl Scripts




Archives


Feed



Other






 

Sat, 29 Jan 2005

Jan 29, 2005, 22:19 [home/perl_scripts]
Chord Transposer Script

I wrote a new program this morning/this evening that transposes guitar chords automatically. You paste in a chart, then choose the half-steps to transpose by. Choose whether you prefer “sharps” or “flats” or “easy” to name chords, and press the button. Voila! The song is automatically transposed and ready for you to use.

The logic for transposing a song is suprisingly complicated. I had to go through the chart a line at a time, looking for lines that had only chords and chord symbols. My assumption: every chord will start with a captital letter between A and G, or a slash (for bass notation). Or a bracket ( to indicate a special chord— or other special characters I use in transcriptions (|,[:,:], etc).

When I find a line with only chord symbols, I convert all the chords to numbers, one through twelve. Then I do the transposition math on them, before converting them back to letters (sharps or flats— depending on your preference).

Maybe sounds easy in English, but try telling a computer to do it. winking

The reason for this script is to integrate it into ServiceBuilder. Then worship leaders can change the keys for the songs if they wish, and we don’t have to change what’s in the database. The next step is to rewrite the program in Visual Basic. Fun fun fun!

~Jason



[this date] [0 comments]
[technorati] [permalink] [feed]

post edit delete move redate


Thu, 27 Jan 2005

Jan 27, 2005, 09:41 [home/perl_scripts]
Spiffy New Counter

I wrote a new script last night, called CounterMail.

Not all web hosts allow server side includes, and many do not provide statistical information about your visitors. You’d like to know who is visiting your page, what route they’re taking through your site, what browser they are using, and what time they were there? Maybe you want to know the sites which are linking to you and which links are generating the most traffic.

Now this is all possible, even with limited CGI access. If you can run basic Perl scripts, and have access to SendMail on this server, CounterMail can retrieve the information from your visitors, and email it to you. You get to choose when the email comes; every visit, after 10 visits, 50 visits, or any number of visits— it doesn’t matter.

Want to show a counter on your page? This script can be called using SSI, to show a simple count of unique visitors. A visitor won’t be counted twice, even if the counter is placed on all your pages.

Call it with an img tag, and add the string /blank.gif to the end of the script to display a one pixel gif. Or, call it with a Server Side Include to show the visitor count.

This is a brand new script, so try it out and let me know what you think. I decided to try using it on ServiceBuilder.net. Cool!

~Jason



[this date] [0 comments]
[technorati] [permalink] [feed]

post edit delete move redate


Wed, 26 Jan 2005

Jan 26, 2005, 11:36 [home/perl_scripts/FileCABINET]
FileCABINET with RSS Feed and Froogle Feed

I added two new features to FileCABINET lastnight and this morning.

FileCABINET is the database script which shows the various programs I have for sale at Intelliscript.net. It allows users to search the database, purchase and make payments with an integrated shopping cart; it generates XML PAD files for software download sites, and lots more.

The two added features are RSS Sydnication and an automated Froogle feed.

RSS (Really Simple Sydnication) allows you to license your content to other sites. It also allows people to subscribe to your content if they want to keep tabs on what’s going on without visiting your site everyday. They can add the ‘feed’ to their newsreader, and this reader will automatically show you when there is new content to view.

FileCABINET lets each script have its own feed (in case someone is interested in subscribing to late-breaking information on any particular script. It also generates a summary RSS feed covering all of the scripts.

Froogle is Google’s integrated shopping search engine. Google asks you to monthly upload a text file containing certain information about your products for sale. Now FileCABINET will generate this file automatically so it’s always an up-to-date reflection of correct prices and information about the scripts.

FileCABINET has only sold one copy— not exactly stellar compared to a script like Auto FollowUp or Crossword (a Scrabble-style game). But it’s becoming one of the most time-saving and efficient programs I’ve written.

~Jason



[this date] [0 comments]
[technorati] [permalink] [feed]

post edit delete move redate


Sat, 22 Jan 2005

Jan 22, 2005, 22:24 [home/perl_scripts/crossword]
Crossword Calculates Points

Well, you’re not going to believe this, but Crossword, my Scrabble-style Perl script, now calculates points automatically on every play!

I’d love to take the credit, but alas, it wasn’t me. A fellow user and programmer— and I guess Scrabble lover— did the real work, and integrated the points subroutines! Pretty impressive.

So it’s not online yet, but will be soon, when I get my act together! Stay tuned.

~Jason



[this date] [0 comments]
[technorati] [permalink] [feed]

post edit delete move redate


Sat, 08 Jan 2005

Jan 08, 2005, 11:59 [home/perl_scripts]
Petition

Thanks to a new user of the petition script, www.PayPalSucks.com, I’ve put some energy and development into it. If you’re using this script, you might want to download the update.

~Jason

(p.s. I use PayPal, and think it’s great, so don’t send me hate email)



[this date] [2 comments]
[technorati] [permalink] [feed]

post edit delete move redate