I have been planning to add an “About” page to this site for about four years. Everybody who’s anybody has an “About” page. People who visit and know not what a blog is must wonder what this site is “About”. I just never seem to get around to it. I have no idea what this… Read more »
Posts Tagged: code
Timeline WordPress Plugin
This domain of mine has had stuff on it for a long, long time — before WordPress or MovableType or even Blogger. The original davidgagne.net is, sadly, lost forever. Some pieces of it have been kicking around on my various hard drives and FTP locations for a decade now. One file that I could never… Read more »
How-To: WordPress Tags
Tags! They’re everywhere! It seems like every site on the ‘net is adding tagging now. Tag clouds — ridiculous, pointless, and annoying — are not the reason. Tagging is a good way to get into Technorati and a good way to get more traffic to your site. It’s a nifty way to organize your posts… Read more »
Disable WordPress File Upload
Although I can appreciate that it’s a really nifty feature, I am likely never going to use the built-in File Upload feature in WordPress. What has bugged me is that it’s in an IFRAME in the Write Post panel; I think it slows the page load. I was trying to get rid of it, but… Read more »
LIMIT and OFFSET in MS SQL Server
How to Hack MySQL Paging Functionality into Microsoft SQL Server Web developers using PHP and MySQL have a crucial piece of functionality that classic ASP developers working with Microsoft SQL Server don’t. It’s pagination. Using MySQL’s LIMIT and OFFSET commands you can very easily add pagination to recordsets that you want to display on web… Read more »
DropCaps, Amazon Tags for WordPress
I have finally updated two of my WordPress hack tutorials so that they are compliant with v. 2.04. The first one — DropCaps — allows you to put that nifty “dropcap” into a post. This post begins with a dropcap I. The second one — Amazon Tags — adds two new buttons to your editing… Read more »
MySQL Triggers Tutorial
Jon is one of my developers at work. He recently started a WordPress blog called Rusty Razor Blade. I’m guessing that most of what he’ll be posting is going to be fairly technical stuff about MySQL, LAMP, AJAX, and JSON. So far his first really interesting post is a MySQL Triggers Tutorial. It’s actually a… Read more »
Link Droppings
Just a bunch of random thoughts I’ve been meaning to post … It took me for-freaking-ever to recognize that it’s Matt Dillon doing the voiceover on the Pontiac Torrent commercials. It took me five minutes to find and download Struggle, by Ringside — the music from the commercial. I snagged a couple of their other… Read more »
WordPress Plugin: A Modern Major-General
I understand equations, both the simple and quadratical. So I figured I should share with you. Download my Pirates of Penzance “Modern Major-General” random-lyric generator and you, too, will be able to tell at sight a Mauser rifle from a javelin. Add the function moderngeneral() where you want to print the lyric. I have mine… Read more »
Protect Images with .htaccess
A few thousand of my hits every day are coming from some little geeks using an old web cam shot of my buddy’s as their avatar in forums. It’s quite funny, because I think they think that they’re actually linking to a different image. It’s pretty annoying, so I implemented scriptygoddess’ code to protect images… Read more »
WordPress Mod: DropCaps
The chances of me ever using the WordPress str QuickTag are pretty slim, so I replaced it with a drop-capper. (The T in this paragraph should appear as a dropcap for you if you’re using a browser that handles CSS properly.) Pretty nifty, I think. Want to do it?
WordPress Mod: Amazon QuickTags
I wanted to add nifty little Amazon links to my posting window … so I did. Grab my zipped version of quicktags.js and you can, too. This is the javascript file that builds the row of buttons above your posting window (e.g. str, em, del, etc.) My version adds two buttons: one for quick-linking to… Read more »