January 2007

You are currently browsing the monthly archive for January 2007.

via  Greg’s Cool [insert clever name] of the Day:

Rick Brewster’s blog : Paint.NET 3.0—Final Release now available!

I like Paint.net. It’s slim and stable and free. It’s for Windows only, but the “.NET” in the name probably gave that away, yeah?

Get it at getpaint.net

Daily Links

Loading TinyMCE on the fly

Let’s say you have a textarea that is called into a page dynamically, say with an AJAX loaded chunk of HTML with a textarea in it. If you want that textarea to have TinyMCE applied to it, you need to call a script. This was a fun one to think through and debug, and it speaks well of TinyMCE’s design that this method is available.

Tags:

Goatee taken over

The goatee is being strangled by what’s now clearly a beard.

I need a shave, and a haircut.

Two bits!

It’s been a good week professionally so far.

I dislike commuting, but it’s not bad when one has great audio to listen to. I’ve been listening to a course from Stanford on The Historical Jesus which is absolutely fascinating. (iTunes). The professor is Thomas Sheehan and he provides a historical context to biblical writing which has my neurons firing big time. Beautiful mythology, beautiful history.

Speaking of time—it’s time to get going y’all.

And hey, lp, you’re doing great. Xo.

Daily Links

Trailing commas in an array OK in PHP

I was editing some code today and saw what looked like an error to me, but nothing was broken on the code I was looking at it, so I was prompted to look it up. And indeed, in PHP:

“Having a trailing comma after the last defined array entry, while unusual, is a valid syntax.”

So sayeth the documentation for PHP: array
If it says it in there, it must be true.
So this is legal php:

$my_array = array(‘foo’,’bar’,’bat’,);

... which, as I said, looks so bizarre to me.

Tags:

That’s a lot of posts.

This is mostly a test.

I’m glad to be back up.

Wordpress 2.1 is actually pretty cool! I like the interface changes. Bummed it’s still kicking it old skool with regards to Atom.

I think what I did was do the upgrade before all files had finished uploading to the server, so a step got missed on the upgrade and blammo.

On February 19th, I’ll have been doing this for six years. Not too shabby, and sort of fun.
I’m getting tired, another busy day tomorrow. Stay tuned.

Daily Links

Display a Brace in Smarty Code

The “literal” tag should do it:

{literal}
{works}
{/literal}

Smarty info.

(By the way, yes, the blog is still screwed up. I’m busy. Gimme a break. I was up till one last night working on it and no joy. Yuck. This is what I get for a rushed upgrade.)

Tags:

I can see the posts in the database, but something went wonky on the upgrade and everything before the upgrade is invisible.

Woe is me till I find the time to fix it.

Please stand by.

I’m asking about it on the wp support forum.

Update: And we’re back. The way I fixed it: running this SQL:

“update [my database prefix here]_posts set post_type=’post’ where post_parent=0;”

My theme is not really 2.1 compatible, so I had to do some other hacking as well. When I had everything displaying on the home page, ALL BLOG POSTS were displaying. That’s too many posts. I’m just glad nothing was lost.

Kids, don’t rush your software upgrades right before bedtime. It’s the wrong thing to do.

Wilford Brimley

« Older entries § Newer entries »