Archive for August, 2005
Creating a Star Rater using CSS Aug 30 2005
This is a really good article about how to create a star rating system where you mouse over the stars to register your vote and they light up using only CSS. Flippin sweet! (5 stars, heh.) 🙂
Creating a Star Rater using CSS
But! Before we get into the action, I know I like to see a working example first, so here, check this out.
svn keyword Id expansion Aug 28 2005
svn propset svn:keywords "Id" * will set the Id property to expand in your source code on everything. Coupled with a little
find action and you’ve got a whomper of a property setting command.
Subversion has the ability to substitute keywords%u2014pieces of useful, dynamic information about a versioned file%u2014into the contents of the file itself. Keywords generally describe information about the last time the file was known to be modified. Because this information changes each time the file changes, and more importantly, just after the file changes, it is a hassle for any process except the version control system to keep the data completely up-to-date. Left to human authors, the information would inevitably grow stale.
For example, say you have a document in which you would like to display the last date on which it was modified. You could burden every author of that document to, just before committing their changes, also tweak the part of the document that describes when it was last changed. But sooner or later, someone would forget to do that. Instead simply ask Subversion to perform keyword substitution on the LastChangedDate keyword. You control where the keyword is inserted into your document by placing a keyword anchor at the desired location in the file. This anchor is just a string of text formatted as $KeywordName$.
All keywords are case-sensitive where they appear as anchors in files: you must use the correct capitalization in order for the keyword to be expanded. You should consider the value of the svn:keywords property to be case-sensitive too%u2014certain keyword names will be recognized regardless of case, but this behaviour is deprecated.
Subversion defines the list of keywords available for substitution. That list contains the following five keywords, some of which have aliases that you can also use:
Having this problem or one like it?
WordPress database error: [Can't open file: 'wp_stattraq.MYI'. (errno: 145)]
In case you’re wondering how to fix this situation, just go to your MySQL control panel (in my case, a cPanel), click on MySQL then on the Repair button next to the database’s name. Has worked like a charm for me on a number of sites where the database had gotten corrupted.
The Hype Machine – Today’s Blog Music Aug 27 2005
Archives of mp3s mentioned on mp3 blogs. Pretty sweet! 🙂
What is the world listening to today?
Click a link on the right to hear music posted today on dozens of blogs! Listen using Winamp, our Flash player, or any other player that supports podcasts or m3u playlists.
Want iPodLinux running on your 4th generation iPod, iPod photo, or iPod mini, but hate doing all the steps manually?
Well now you can get games, videos, gameboy games, Doom, text input, and much more all on your iPod!
Thank you for the simple installer that actually works! 🙂
Zarius-One Aug 25 2005
My cool friend Chris’ site. Though, he should really get WordPress installed already.
There is no spoon.
So… I THOUGHT I had found this via Boing Boing, but then, looked again, no dice. So, finally tracked it down, was driving me crazy. Not sure if they posted it and it got disappeared or what. Anyways, download, give it a listen, I find myself listening to it twice each time.
Listen to the Mexican Institute of Sound remix of Bagels and Bongos Cha Cha No. 29
(IMS, or Instituto Mexicano del Sonido (Mexican Institute of Sound), is Camilo Lara, a Mexico City based electronic musician, DJ, and EMI Mexico’s VP. of Marketing. For the past decade, Lara has been at the forefront of Mexican alternative music and a pioneer in bringing the music to worldwide audiences He has remixed artists such as Placebo, Babasonicos, Marco Antonio Solis, and Le Hammond Inferno, and has just released his debut album of Latin American sound collage, Mejico Maxico (Love Monk/Discos Buenos).
Wednesday workout Aug 25 2005
Shorter workout today, ~45 minutes. 6 miles on the bicycle, arm curls, crunches, some running and walking.
Listened to an interesting podcast from the BlogHer 2005 sessions entitled How to get Naked, talking about personal identity blogs.
Applescript to automate process of recording Real Player .ram to .mp3 on Mac OS X and putting into iTunes (for Christian Science Bible Lesson podcast) Aug 23 2005
You may recall that I had shared instructions before about how to record the weekly Christian Science Bible Lesson using Real Player, Audio Recorder and Soundflower.
Well, after one more time of forgetting to hit the Audio Recorder Stop button after the Real Player was finished streaming the file, ending up with a 37 minute long recording, comprising approximately 9 minutes of silence at the end, I decided to finally do something about it. This application is the result of that frustration.
This application still requires that you have Soundflower, Real Player and Audio Recorder correctly installed. Click on the link above if you don’t have them yet. Once you’ve installed them, you can download and run the scripts below to automatically record this week’s lesson.
This script automates the previously manual process of:
- Change System Preferences > Sound > Input and Output to Soundflower (2ch)
- Open Real Player
- Open Audio Recorder
- Open Bible Lesson URL in Real Player
- Click Record button in Audio Recorder
- Click Stop button in Audio Recorder after the file finishes (~28:31)
- Drag timestamped .mp3 file into iTunes
- Quit Real Player
- Quit Audio Recorder
- Change Sound Preferences back to something that I can actually listen to
- Delete original .mp3 file
- Get info on file in iTunes
- Add Artist, Composer, Title, Album, Genre and Comments
- Optionally play in iTunes
This script automates ALL of that. So, without further ado, here it is to download, use and modify if you wish, licensed under Creative Commons. Open Source, free for you to take, modify and use as you like, as long as it is not for commercial uses and you give attribution to me as the original author. Thanks!
Download the script
There are two versions of the script in the .dmg file. The Quiet Version simply has all dialogs turned off. It runs the script without prompting you for any input. It is particularly suited to using with a cron script (example:
open Bible_Lesson_to_MP3_Recorder_Script_1.6_quiet.app). The other one has fancy dialog scripts to walk you through the process, also have bonus voice promts. Weeeeee!
The final results of both versions are the same: A 28:50 long mp3 recording sitting in your iTunes, waiting to be listned to and added to your iPod the next time you sync.
Thanks to all the Applescripters on the net who helped me figure things out, particularly how to talk to Real Player using the
window 0 identifier.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License.
Feel free to add any suggestions or comments below.
AppleScript source code:
Feel free to add any suggestions or comments below.