Drag and Drop Uploading – Worth the upgrade just for that

WordPress Drag and Drop Uploads

WordPress drag and drop uploader

Sure, I know there was more to the upgrade than just this; but the drag and drop uploading in the latest WordPress is an outstanding addition.

Instead of having to browse through folders looking for the right file, it’s just a quick drag from Windows explorer to your browser. Yeah, I guess you’re still looking through folders. But it seems a lot easier.

And this is one of those things that I’m sure is browser dependent. Works great it Chrome. No clue about others.

Posted in Blogging | Tagged | Leave a comment

WordPress script not working from the command line

Spent most of yesterday working on a script that interfaces with WordPress to update posts as it runs. It wasn’t a big part of the script, but it was the part that caused the most frustration.

When I was testing locally, I was running the script through a web browser and everything worked perfectly. But ultimately this script needed to run through cron, and when I tried to run through the command line nothing happened.

I was able to trace it to something WordPress related because the script would work up until I included the wp-load.php file. And then it just stopped.

Turns out it was a very simple fix. WordPress needed $_SERVER['HTTP_HOST'] set, and it’s not from the command line. Adding $_SERVER['HTTP_HOST'] = ‘example.com’ to the line above the wp-load.php include fixed it so the script ran.

This was on a network enabled version of WordPress, so that might make a difference.

Now I just need to figure out how to work around the WordPress include changing the timezone from CST to GMT, so if there are any suggestions on that…

Posted in Blogging, Programming | Tagged , , | Leave a comment

Yikes, tow-truck getting pulled off the road

Posted in Videos | Tagged | Leave a comment

Wacom Intuos 5, or how I’m glad I waited

Wacom Intuos 5 Tablet


Last week I was just about to pull the trigger and order the bluetooth Wacom Intuos 4 tablet that I’ve been wanting for a while when I noticed two things. One, the tablet that I had added to my cart at Amazon showed as unavailable. And two, after finding a different vendor that did have them in stock, the price had dropped like a stone.

When electronics do that it’s usually because a new version is coming out, and that’s what it meant here. A little searching brought me to the Wacom Intuos 5 tablet. And I’m glad I waited!

Biggest “oh Wow!” for me is multitouch. The tablet acts like a giant track pad and supports multitouch. Don’t know that it’s enough for me to ditch the trackball, but I can see myself reaching for the trackball a lot less.

The 5 also sports an option wireless adapter instead of a separate medium sized wireless like the Intuos 4 line. And as it works out, the wireless medium tablet is the one I was planning on getting.

So now it’s just a matter of pulling the trigger and finally replacing the terrible cheap Adesso tablet that I’ve been using.

Posted in Computers & Internet | Tagged , | Leave a comment

Weekly Tweets for 2012-03-31

  • @unklar big tweetdeck bug. Shutdown while they fix it – see @lifehacker #
  • Any easy way to get @Evernote to save screenshot somewhere other than desktop? Other than copy paste into image editor, and save from there? #
Posted in Tweets | Leave a comment

Series Tag WordPress Plugin

Just finished a new WordPress and am now just waiting for the WP plugin people to create the SVN folder for it it’s up and ready for download.

It’s called Series Tag and adds a short code that will display a list of all posts with a specific tag. I wrote it because I want to do a series of posts here and figured tagging them all with the same tag and having WordPress take care of building the links would be easier than doing it manually.

Quick, and boring, screen shot

Continue reading

Posted in Blogging | Tagged , , | 1 Comment

Quick update to Link Footnotes plugin

Just committed a quick update to my Link Footnotes WordPress plugin. The only addition was a new setting that allows you to set the target attribute for the footnote links created.

Screenshot of the Link Footnote options

There are 3 options.

Default On
If you want footnotes on by default on all of your posts, check the box. If you want them off by default, then clear the checkbox.

If there aren’t any external links the footnotes won’t show, so you likely can leave this checked and not worry about an empty list on posts that don’t have external links.

Heading
HTML inserted before displaying the links.

Link Target
New option that allows you to insert a target attribute into the links that are created. Defaults to nothing which leaves out the target. Anything else will insert the attribute. Most likely use would be to use _blank to have the links open in a new window.

And there are also two custom fields that you can put on an individual post to control whether the footnotes show.

lf_on – If you have Default On turned off, setting this meta field will turn on the footnotes for an individual post.

lf_off – If Default On is set, this will turn off footnotes for an individual post.

Both meta fields can have any value, as long as there’s a value. lf_off will take priority over lf_on if both are set.

Download
You can get the updated plugin from the WordPress plugin library or through the WordPress admin.

Posted in Blogging | Tagged , , , | Leave a comment

Adding WordPress templates to NetBeans

If you’ve written more than a couple of WordPress plugins odds are good you’ve copied and pasted the plugin sample readme.txt file into your project. Just sat down to start on my 7th plugin and figured there had to be a better way than Googling for the template, opening it, copying, and pasting.

NetBeans makes it pretty easy though by creating a template.

Continue reading

Posted in Blogging | Tagged , , , | Leave a comment

When is the right time to ditch a website?

Several years ago I registered a domain name, reliti.com, that sounded like one of those cool web 2.0 type domain names. Originally I wanted to create my own content management system, but as I started down that road I decided that I would rather make plugins and themes on top of WordPress instead. That way I wouldn’t have to worry about users, database classes, and all of that. Basically, I didn’t have to do the boring stuff.

So that’s what Reliti became. A home for the handful of WordPress plugins that I’ve kicked out. But it never got any real traffic. The plugins were downloaded from WordPress.org, but my site never saw much action.

A couple weeks ago I decided that I would just merge anything from the Reliti site onto this one. So a few quick commits at WordPress.org to change the plugin urls and a 301 redirect and anything Reliti now comes here. Most of the traffic is bounced to a landing post that’s a couple posts down the list from this one.

What’s odd is that the landing page has had more hits since the switch than the entire Reliti site did in the past month.

Not sure if it was the right time to ditch one site and merge it with this one, or if it was even the right thing to do at all. If nothing else though, I’m finding that it’s easier to keep up with one less website. Only downside I’ve come across so far is that any comments left on Reliti aren’t easy to move over here. May need to work on that one…

Posted in Blogging | Tagged , , | Leave a comment

Pocket Reference for RegEx

O'Reilly Regular Expressions Pocket Reference

Not that it happens often, but every now and then I actually clean off my desk. It’s one of those things that I sort of know intuitively that I work much better with clean desk.

This book on regular expressions, one of the Pocket Guide series by O’Reilly, is one that tends to always be on my desk though no matter how clean I get it. Heck, it’s even pretty much set to permanently open to the PHP section because that’s what I use most often.

I don’t have many books that get as much use as this one. It’s even getting to a point where I may have to replace it. The binding is just about to pop.

Posted in Programming | Tagged , , | Leave a comment