Here is a tiny Wordpress hack that I wrote for myself that some other mac users out there might like to use.
This hack will take the file created by Kung-Tunes and parse it. Just add this to your my-hacks.php.
function display_tunes() {
$fp=fopen("trackinfo.txt","r");
$track=fgets($fp,1024);
echo "$track";
fclose($fp);
}Pretty easy really. Make sure to change the name of the file being called if it isn't trackinfo.txt.
Here is a handy dandy plugin file for WordPress 1.2+
I really don't consider this a breaking of my no-blogging vow since this is the way that I release hacks for Wordpress.
By popular demand I am releasing the hack I wrote to copyright your Wordpress powered blog with a Creative Commons License. Download the .zip file over here.
Now there will be directions in the zip file, but per usual I will list here the funtion that you need to include in your my-hacks.php file:
function the_copyright() {
global $tableoptions, $tablecopyright;
$query = ("SELECT option_value FROM $tableoptions WHERE option_name = 'copyright_option'");
$result = mysql_query($query);
while ($data = mysql_fetch_row($result)) {
$copyvalue = stripslashes("$data[0]\n
"); }
$query2 = ("SELECT copyright FROM wp_copyright WHERE option_value = '$copyvalue'");
$result2 = mysql_query($query2);
while ($data2 = mysql_fetch_row($result2)) {
echo stripslashes("$data2[0]
\n"); }
}That is it for that hack. Oh and one thing that I left out was that you need to have a .gif file named somerights.gif in the root level of your site. You can use the one I have here, or you can use one of your own making.
Yeah, I had some... bumps along the redesign track, and decided to put this design back up with a few edits.
I will still be working on things behind the scenes, and hope to have a shiny new design ready to go shortly. What is funny to me is that I started this whole redesign on the eve of the lenten season. This is especially funny since I will be taking a sebaticle from blogging during lent; which makes the work I am doing on the site a little silly; at least for me.
You see this is why I invited others to join the ranks here in the first place. I have been blogging or journaling... however you want to title it, off and on since 1998. That is a long time. This site only has content from 2002 on, but I have linked before to a journal I kept somewhat sporadically in 2000. Unfortunately I have lost all the content from before that, but the fact remains that at times this gets difficult, even tiring to do; add to that the demanding schedule of work, wife and Church and you see why having other authors is a good thing.
So I will be on sebaticle from February 23rd to April 12, at least from blogging; I might venture out to comment here and there but that will be all. I am taking this time to dedicate myself more fully to the Life of the Church and to growing as a Husband and Saint in Training. My wife and I will use this time to become stronger spiritually, and to just simply be together; the television will be resting through this period as well.
I wish you all well and enjoy the other voices here as they take the helm and explore uncharted waters for Sillyness.
Oh it is soooo on now.
Checking the web this morning I came across this great article about the music revolution that Apple has sparked with thier new app GarageBand.
The article is going really well until I get to this quote, from a pompous a$$ named Kim Cascone:
Musician and writer Kim Cascone said GarageBand is perfectly good for learning how music is put together, but doubted anything very good could be created with it.
"GarageBand is snoozeware for the iPod generation who think that music comes in a small white-and-chrome can and only need be served lukewarm for public consumption"
I am here to say that while this is not Pro Tools (which I have used) GarageBand is an incredibly powerful, easy to use app that will allow hundreds, if not thousands of musicians to bring thier music to people. So this is what I am going to do, I am going to produce an entire album of music, using nothing but GarageBand and any interfaces I need, and then release it on the iTunes Music Store.
I get very tired of pompous jerks who are way too full of themselves and thier own inflated since of self worth. Time for a little wake up call. I hope you guys are with me, and help me out on this ride.
Yeah, I am announcing the alpha test of my application Develop.
This is a plain-jane Code editor that I built mainly for myself. I have used BBedit exclusively for the past 4 years, and find it to be an incredibly well rounded and powerful code editor. Unfortunately it has lagged behind in the areas that are important to me; they have been adding features that I am sure are great for you perlmongers out there, but not me.
In my opinion any code editor that runs on Panther, should really have WebKit built in so that you can preview your code in realtime via this incredibly powerful and flexible peice of technology. As of this publishing I have not found one, so I thought that I would just write it.
So that was 5 days ago, and today I have a pretty impressive little app here. It has rudimentary syntax coloring built in, as well as some nifty shortcut key combos to insert various HTML entities and such. There is really too much to cover here, so my advice would be to download the alpha and give it a go, I mean it only weighs in at 244 kb, seriously.
So there you go, please take Develop for a test drive, and let me know what you think; good, bad and ugly. You will find an email addy in the readme file that accompanies the app. Screenshots to follow.
Here you go to get it: Develop.