Posts Tagged ‘Code
Javascript Ninja!
Thank you, John Resig. Because of you, I’m learning about Javascript the way Andy Gadiel taught me HTML. In the days before server-side scripting, I learned my first bits of HTML largely by viewing the source of Andy Gadiel’s Phish page (which, for some reason, remains largely unchanged since ~1997). By reading Gadiel’s HTML, I [...]
Behind the Scenes at OSNews
I just started putting together a series of articles I will be publishing on OSNews. I’ve only roughly sketched it out, but in short, it’s going to discuss how OSNews works, how the PHP is structured, why we made certain architectural decisions, why we don’t use tried-and-true CMSes like WordPress, Slash, or Joomla!, and how, [...]
Flip 3.0.1
I never expected to release another version of my old weblog project Flip, but while searching my own name in a new search engine, I came upon several vulnerability reports for Flip 3.0. I’ve known about them for awhile now, but having dropped Flip in favor of another project (which I’ve since abandoned, for [...]
Posting Your Latest Tweet in Wordpress
Although I posted yesterday how to add your latest tweet to Wordpress without a plugin, I made several changes to the script before I posted it to make it more “generic” and re-usable. Since I’ve changed it quite a bit, I decided to repost it. This new script also autolinks @usernames and #hash tags.
Directions [...]
How to Add Latest Tweet to Wordpress (Without a Plugin)
I decided to add my latest “tweet” from Twitter to the sidebar of my Wordpress blog. Rather than use yet another plugin that adds yet another hook – and there are many that do this with lots of code, I decided to use a homegrown solution, dependant only on PHP4+ and cURL (most webhosts [...]
Wordpress “Press This” 404 Problem
WordPress › Support » Press This 404 issue.
“Press This” hasn’t worked for me for ages. I am so happy to have it back!
Sorting a Multi-Dimensional Array with PHP
Every so often I find myself with a multidimensional array that I want to sort by a value in a sub-array. I have an array that might look like this:
//an array of some songs I like
$songs = array(
‘1′ => array(’artist’=>’The Smashing Pumpkins’, ’songname’=>’Soma’),
‘2′ => array(’artist’=>’The Decemberists’, ’songname’=>’The Island’),
‘3′ => array(’artist’=>’Fleetwood Mac’, ’songname’ =>’Second-hand [...]
firsttube.com Upgraded To Wordpress 2.7
So far, one problem, two gripes. My problem is that I can’t seem to get posts with dots in the slug title to work right, even though I once solved this problem before. What’s worse is that it won’t fetch those posts anymore, which really sucks.
Onto my gripes. I can’t get inline replying/threading to work. [...]
Using the abbr tag
Kroc Camen, long time OSNews reader and frequent IM buddy of mine, has an interesting piece examining the use of the <abbr> HTML tag. Kroc is one of those people who is very serious about the presentation and efficiency of his code, a trait I do not share, at least in practice, at least, to [...]
My First Plugin
I recognize that I’ve been a little wordy about WordPress lately – no pun intended – but I’m afraid that it’s really interesting to me, and probably will be for the next few days. So, if you’re growing weary of the WordPress related posts, I’m sorry.
Today I took my first stab at [...]


