How cool is this? Get it.
Category Archives: Software
Creative Commons License
I’ve been following the Creative Commons for a while now, and finally it recently came online. I browsed the site a bit, read through the featured profile of the Rice guy, but didn’t really do anything. Today I decided to choose a license to put all of the original content of this website under, and you’ll find the details at the bottom of every page. This means the photos, scripts, text, everything is available under this license. So enjoy!
Proper nth Endings for Numbers
I’ve added a script that I wrote a while back to overcome a fairly simple problem I was running in to. It’s nothing spectacular, but it works pretty darn well. In other news, I’m as sick as a dog. Earlier today I was feeling moderately okay, thinking maybe I could take a nap and skirt whatever this is, but it doesn’t look like that is going to happen. Any get-better-quicker suggestions would be welcome.
Updated
I finally updated to the official .61 Cafélog release, and I couldn’t be happier. I was using the CVS version for a while, but I was inconsistent in updating it so some files were older and some were bleeding edge. The posting interface has improved quite a bit, especially in terms of making the pingback and trackback features easy to use. I was also pleasantly surprised to see that my smart quotes for PHP script is included by default and can be turned on in the config file. Speaking of which, I have a new version ready that is much faster then the current one, and this is actually the second day it’s been on this site. I’m going to test it a bit more just to make sure nothing slipped by, and then I’m going to release the Movable Type version at the same time. Oh that reminds me of my new favorite feature of b2: you can “filter” nearly everything through any number of functions. How cool?
Escapade
Oh yummy, another server-side language, this one claiming to be faster than both PHP and Perl. Perhaps, but does it do anything?
Macromedia Contribute
Macromedia has announced Contribute, which they look to be positioning as an editor for the mases. Everyone who has attempted to architect a client editable web page runs in to this problem early on. Either you just have them put in raw text, and maybe do a little fancy formatting to make it readable, or you invent your own “simplified” markup language, like many bulletin boards offer, or finally you just try and teach them HTML and hope that a missing end tag doesn’t turn your entire design into a link, or some other catastrophe. Taking a more robust approach to this problem are the editors which take HTML in a text field and put a WYSIWYG editor on top of this. Internet Exploder has a version of this integrated, but it gives such ugly code that it has been known to break mirrors. Mozilla (the meat behind the new Netscape) has a much more promising version which generates better code, but still has a lot of bugs to be worked out; I know because this is the solution I used for a recent client. There are also products like Editize which are quite nice.
It looks like Macromedia is trying to target the medium to large website developers who are tired of doing trivial updates and the managers who don’t want to go through said developers whenever they want to change text of some sort. Let’s say that this is implemented throughout an entire company, is that a good thing? I would say that just because everyone can have a voice on the company website, doesn’t mean they should. Also I’m suspicious of any product that says it’s “easy as Word.” The pricing point of this product and more importantly how it interfaces with the server will ultimately tell if this product is going to be the next big thing, a product as big as its vision.
Geeky Night
While browsing around two things have caught my interest. The first is a great collection of tips in PHP that has some extremely nice code in it. My only objection to anything he has is when he discusses $PATH_INFO, and gives the example:
<location "/products">
ForceType application/x-httpd-php
</location>
This is a hassle because it forces you to have a file with no extension, which under most operating systems doesn’t use the same handler as .php files, and it adds a needless step. Why does it seem that no one knows you can have a file called products.php and use multiviews to access it just like you would above?
The other thing I ran into is a pretty neat little class called ezSQL that I think I’m going to use for a project I’m doing. I found out about it through an article called PHP and Working with Databases (for the Lazy Sod), which couldn’t have a better title, especially if targeting people like me. Interesting things to check out if you’re into that sort of thing.
Of course all this browsing was down to entertain me while I was trying to install Gentoo Linux, the most promising distro I’ve seen in a while. I wasn’t able to get it to work on either my desktop or laptop but I haven’t given up hope yet. If I run in to a roadblock however the problem is that I have rehearsals on Wednesdays now and wouldn’t be able to make it up to HLUG where maybe Mat could take a look at it. Worst comes to worst I’ll go to SuSE or something.
All this and I still need to clean up that mail script to send to Mike. Long day!
Of course now all this LDAP stuff is distracting me. I already use IMAP for getting to all my email so having a universally accessible contact list is quite attractive. We’ll see how that goes . . .
PHP Goodness All Around
Michael has some very cool stuff going on at his site. If you use Cafélog or just like seeing wicked PHP code, check it out. I can’t believe I just said wicked. If I get any free time tonight I’m going to look at the regex stuff he’s doing and see what’s going on with it. Not to mention the redesign, which I think is quite groovy.
PHP at Yahoo!
It’s just beautiful. Too often I see PHP dismissed for other more ‘mature’ languages, so having a little website with more than 1.5 billion pageviews a day and some of the smartest engineers on the web decide to use it is quite heartening.
Tired
I took a long rest earlier because I had a terrible migraine. Why am I so tired now? Too tired to read, too tired to talk, and too tired to work on the code I wanted to get to this evening. I think it’s time to try that sleep thing out again.
Font for Code Editing
I’ve been looking for a nice monospaced font to replace Courier New in my code editing programs. Several people suggested Andale Mono, so I decided to check it out. Unfortunately, I don’t have it on any of my machine, so I decided to hit up Google to see where it would be available. I went on a goose chase through MyFonts that led me to a dead end when I saw that Andale Mono was part of Microsoft’s TrueType core fonts for the web, which were available for free, but now aren’t offered for download from Microsoft. However, it looks like the original license the fonts were released under is broad enough to allow third parties to continue to offer the fonts for download, which led me to the Core Fonts Sourceforge project which on their download page had exactly what I needed. Ahhhhh.
However my search is far from over, in the larger sense. Andale Mono is working out great so far, but I’m not sure if I like the feel of it yet, and so I’m going to test out some commercial fonts to see if any of them suit me better. I’ll post the final decision once I make it.
Let It Be
This site looks different in different browsers; that should be a given. All I can do is offer the HTML up to the world and let people take it from there. Now I do some testing in different browsers mostly because I use a number of browsers normally, however on this site I write the code for the code itself, not with the presentation quirks of any particular browser in mind. That said, I think the overall design looks better in Mozilla than it does in Internet Explorer, which is funny because IE is what I used the entire time I was putting this site together, even though I coded some things into the CSS I knew IE didn’t support (yet). Speaking of which, is anyone else perturbed that with IE6’s service pack they didn’t fix any of the CSS bugs? I guess they’re doing all they can to keep up with security venerabilities. Back to the topic, if you haven’t tried this site out with Moz or one of its derivatives yet, give it a run, if just to see what things are intended to look like, and will look like whenever IE gets the act together. The reason this all comes up is I’m bopping so much to this Daoist groove that it is really painful to go back to commercial projects where I spend thrice as much time tweaking things in 5 different browsers on half as many platforms then I do on the actual design, which is not right. Now it’s a skill like any other, and I consider myself pretty good at it, but I hate it. It’s not what the web is about.
Topstyle 3
I’m still on my eternal search for the perfect editor I’ve come across Topstyle 3 again. Topstyle has always been my favorite CSS editor by far, but I’m not sure how it would work for other things. It is from the creator of Homesite, which has been my favorite editor thus far. What has really caught my eye is the 3.1 beta includes PHP syntax highlighting, which might be the killer feature for me. Like I’ve said before, I actually really like the PHP editing in Dreamweaver, but I hate the rest of the junk that comes with using that program. I might just end up using what I do on the server, GNU/Emacs in PHP mode. Or even better yet, Pico :). Does anyone have any favorite editors? I probably spend the most time with PHP code, but I like a robust HTML editor, and long walks on the beach. Will I ever be happy?
Share the Scripty Love
There’s a new feature on the scripts section of the site where if you’re using a particular script or code snippet you can post your site. It’s stark empty now, so please try it out! It’s called “Celebrity Endorsements” :).
ieSpell
ieSpell is a must have for people like me who are severely crippled by years of spell-check conditioning. I’m generally a pretty good speller, but there are some words I just alway mess up, and in formats such as this I usually don’t proofread anything too closely. ieSpell adds spell checking to all text boxes in Internet Explorer, so basically you have an web-application–independent way of checking your blog entries, forum posts, anything. Though some excellent web apps like b2/cafélog have spell checking built-in, I find this is much faster. Also I appreciate the ability to define my own custom dictionary for words that I use often and have it accessible across websites. Best of all, it’s only free dollars.
Google Toolbar
The Google Toolbar is always one of the first things I install when I work on a new computer because it is simply one of those tools that is so elegant, well done, and useful that you can’t imagine how you functioned without it. Unfortunately it is only available from Google for Windows users running Internet Explorer version 5 or over. You can use it straight “out of the box” and be quite happy, but I tweak it a little to make it fit my experience best. If you click on the Google graphic it will bring up a menu where you can select “toolbar options.” This is where they hide the good stuff.
Once you’re in there it actually loads a page that lets you customize your toolbar experience. The first thing I do is change the search box size to wide, because I’m running at 1600×1200 and have plenty of screen real estate, I also uncheck the box that keeps a search history because I don’t like the dropdown box, and I also seldom search for the same thing twice. Next I kill the descriptive text for all the buttons; they’re pretty well designed and even if you haven’t used the toolbar before you can figure out what they mean in a few minutes. The text also takes up too much space. Then I add the “I’m Feeling Lucky” button, because that’s just fun :). I add the voting buttons, which adds two buttons that let you vote up or down for whatever page you’re browsing. I don’t know if that actually makes any difference to anything, but I’m all about spreading Google karma to good pages so I use them anyway when I find something nice. Finally if you go into “experimental features” you’ll see an option to suppress the onUnload javascript event, which I think is annoying and also kills a few popup ads. Isn’t that cool?
One of the more useful features of the toolbar is that it lets you type things into the search box and then search for those terms within the current page, even if it hasn’t been indexed by Google. This can be a huge help on big pages that I know have the information I need, but it could be buried anywhere. I can just jump right to the spot on the page that has the information I need. It’s functionally identical to the “Find (on this page)” function under the Edit menu, but much easier to use. Optionally using the highly button you can also highlight your chosen terms on the page, which works just like if you look at something in Google’s cache and it highlights the terms you searched for. If you ever look for stuff on the web and you meet the system requirements, you should get this. It’s going to be an invaluable tool in helping me rebuild my computer.
New Lines to Paragraphs PHP
Don’t you hate it when you read a blog or web page where there aren’t proper paragraphs, just one huge one (or none at all) with a million <br /> tags, no semantic meaning at all. Also no opportunity to implement typographic styling using CSS concerning indents or paragraph spacing, much like is done on this site (but you won’t see it without Mozilla or a similarly standards compliant browser).
Well it’s not really the fault of the person, often it’s a symptom of the publishing system. Most don’t go beyond simply converting line breaks into a break tag. Just like curly quotes, the system should take care of it. So I wrote a little function which allows you to format your text into paragraphs using only the enter key. I’ve already put this on a couple for my client’s sites where I was using straight nl2br and I’m very happy with the result. Check it out and let me know what you think.
Best Blogging Software?
I used a neat tool to compare the features of b2/cafelog and Movable Type. As someone who currently uses b2, used to use Movable Type, and deals with MT on a daily basis, I don’t think I could say which was “better,” they’re just different. I think MT has a more robust archiving system with nicer URLs, but with b2 I can post to the blog with email, which has got to be one of the coolest features I’ve ever heard of. In terms of hackability, which I mean in the best way, I like how everything is updated live without having to rebuild anything, but of course that has a trade-off in speed. It really comes down to personal preference and experience. If Michel stopped developing b2 tomorrow, I would still use it because it just does everything I want it to do, plus I have a pretty good familiarity with the code, which helps a lot. Of course just knowing about something helps, for instance Kathy just switched to pMachine, which until she talked about it I hadn’t even heard of. I think what we need is a good google fight.
Since I wrote this I began developing my own software, WordPress, which runs this site and what I believe (having surveyed everything out there) to be the best blogging software available.
Regex to the Rescue
Just had to update a site of more than three hundred static pages. I’ve done it once before using FTP and some simple find/replace dialogs, and it took me hours and hours. This change was significantly more complex than the last global one I had to make, but instead of even attempting it the old way, I decided to write a smart Perl script to apply the changes to all the files. The whole thing took about 20 minutes, saving me mind-numbing hours of work and the client hundreds of dollars. It’s the first time I’ve used Perl for much beyond the simplest things, and I must say it’s pretty handy. Pretty darn handy indeed.
Now With Resin
I spent a good part of tonight getting Resin running and tweaked for Andrew, who’s currently working for Comics.com, I believe on the Daily Dilbert. How cool is that? Anyway he’s finally moving Jazz Houston away from his current host over to me. The java stuff is groovy, now it’s just a matter of moving the database.
Now that Resin is installed, I must say that I couldn’t be happier with the current tech on the server. Apache 1.3.17 sits happily and never complains, PHP Accelerator helps PHP even ridiculously faster than it already is, MySQL 4.04 is really amazing despite the questionable version number and the silly name they picked for the dolphin, mod_gzip saves me bandwidth (used 123 GB last month), and now accessing my mail through IMAP, I couldn’t be happier. Life is good. If you made it this far, you’ll probably be interested to know that HPUG is tomorrow at 1 PM. We’re going to have a bluetooth extravaganza!