About
Contact
Archives

wordpress

When I upgraded to Snow Leopard, the permalinks (clean URL’s) on my local WordPress setup stopped working.

Instead of getting:

http://localhost/my-nice-permalink/

I would get:

http://localhost/?p=555

I was too busy then and couldn’t care less so I left it alone. Now I’m working on my blogs again and it sucks not to have permalinks working. So I did a little Google search and it turns out it wasn’t rocket science to have this turned on.

So now I’m going to show you how to enable mod_rewrite on Snow Leopard.

  1. Open /etc/apache2/users/<username>.conf
  2. replace <username> with your Mac username

  3. Then change this:
  4. <Directory "/Users/<username>/Sites/">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    

    to this:

    <Directory "/Users/<username>/Sites/">
        Options Indexes MultiViews FollowSymlinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    
  5. Restart Apache under System Preferences » Sharing » Web Sharing

And you’re good to go. mod_rewrite is now enabled and your permalinks will work.

php memory_limit

2009.02.23.23.21

for weeks i’ve been going crazy cuz techfresh.net’s auto backup wouldn’t work.  the subdomains were fine, and all my other blogs would backup regularly, just not techfresh.net.

another problem was that techfresh.net’s archive page would never finish loading.  in other words it’s constantly cut off.

http://www.techfresh.net/archives/

and yet another problem, i couldn’t export techfresh.net’s database from phpmyadmin.  it would return a zero sized file.  so i’m left with mysqldump, which is a big hassle.

headache headache headache.

days of headache.

weeks of headache.

worrying.  that.  something.  bad.  would.  happen.  and.  i.  wouldn’t.  have.  backups.  oh God!!

then..  a little epiphany.

php memory_limit

*doh*

how stupid have i been?  techfresh.net’s database is like 45mb and the memory limit was 32mb.  doh doh doh!!

so i increased it to 64mb, restarted plesk and voila!

and the archives are showing fine now too!  :)

hope this little folly will find its way to help somebody else in the future.

wordpress 2.6

2008.07.15.18.49

tracking changes, post anywhere, turbo speeds and theme previews, what more can you ask? oh and word count, image captions, drag and drop galleries, somebody stop me already!!!

Catching Up

2007.04.19.20.56

I’m finally caught up with WordPress 2.1.3 but WordPress 2.2 is just around the corner.  Ok maybe I’m not so caught up since I still have a few blogs to upgrade but it feels good to be caught up here at the very least.

There, enough geek talk.

Now as far as work’s concerned I’m still waaaaay behind schedule.  So I guess I’m not caught up at all.

K2 Sweetness

2006.05.12.01.38

K2 is looking sweet. I’m going to redesign this blog based on K2 and I’m going back to a clean white background. Expect a reboot soon! :D

Reformatting wp_title()

2006.04.30.13.54

As you all know WordPress generate its pages with matching titles according to the page contents. It uses the wp_title() tag to accomplish this simple task.

Now in search of a better way to boost our pages for search engine optimization, I decided that the original format that comes with WordPress is a little obsolete:

< ?php bloginfo('name'); ?> < ?php if ( is_single() ) { ?> » Blog Archive < ?php } ?> < ?php wp_title(); ?>

This prints the blog’s name first, then adds the words “Blog Archive” and finally prints the most crucial part of the equation, the post title.

I decided to print the post title first, so that Google would have the keywords in it indexed first, not last. So here’s what I did:

< ?php wp_title(''); ?>< ?php if ( is_home() ) { } else { ?> - < ?php } ?>< ?php bloginfo('name'); ?>

It’s not rocket science but I believe this will help boost your SEO as Google will find your permalinks and WordPress generated pages with its title first instead of your blog name.

PS: This won’t affect your front page as it doesn’t have any post titles on it.

WordPress FeedBurner Plugin

2006.02.13.22.15

Upon finding the genius that is Steve Smith and his brilliant WordPress FeedBurner Plugin I found out that after redirecting all my feeds to FeedBurner I actually have 20 readers rather than 3.  It’s kind of encouraging really, and this is the first day again in months when I’m posting two posts in one day.  I hope my readership will pick up again, I promise I’ll try to be more interesting!  ;)

Emerge Beta

2005.12.01.22.22

I like the beginning of a new month. Many good things happen, like money in the bank, less work to deal with and a chance to start over. It’s a good time to try something new, since it’s been a little over a year since I made any major updates around here. So I present you Emerge Beta – my secret project for the last six months (on and off), home designed and hand coded* in much toil surviving both depression and dementia. Ok enough crap. Here it is folks. I chose the name Emerge because this end of the year marks a giant leap in life for me. I’m quitting my job in three weeks and moving on to full blogging and webdesign starting January 2006. It’s time I emerge from my dark past and step into my new future.

The design is tested in Firefox, Safari and IE. It’s in beta because I’m not quite done yet. It’ll probably be in beta for good since I plan to keep working on it until it’s time for a new design. If you catch any bugs please drop me a note.

So, what do you guys think?

*XHTML+CSS based on Kubrick by Michael Heilemann – badly beaten and hacked

Day 25 of my caffeine detox.

I surprise myself sometimes, didn’t think I’d make it this far. There’s been a few major changes in my life lately, those happening online and offline under the radars. jermexpress.com is sitting on a spanking new server, and it’s now hosted by our very own digitalSURGERY.net. We will be launching a small WordPress hosting service in the following weeks. On the personal level, I’ve been sleeping better lately. I dream less and I only wake up once or twice in the middle of the night, instead of the usual 5-10x as cause of nightmarish dreams. I’m OK financially for once. No I’m not rich yet but I can relax and not think about tomorrow (but not the next day after) if I wanted to.

I just watched Supergirl. It’s amazing how people made movies in the past without the technology we have now. Helen Slater was a babe, too bad she’s old and wrinkled now, or probably dead; who knows. I know Mr. Reeves is gone, I guess it’s time for a new breed of superheros now.

Superbloggers.

I know people with 20+ blogs, when the hell do they sleep? I’m suffering the consequences of my youthful wisdom, or lack thereof. Sleeping 10 hours can finally feel good, like paying off old debts. Waking up is like being chased around by collectors. It’s a scary life out there.

That’s why people stay online, that’s why people blog.

WordPress 1.5.2

2005.08.23.12.50

I failed to mention the public release of WordPress 1.5.2 from last week.

This set of improvements and security fixes is in line with our commitment to maintaining an extremely stable 1.5 series. In addition to fixing a number of bugs and adding requested enhancements for plugin authors, this release also addresses all of the security issues that have been circulating the past few days.

If you use WordPress you should consider upgrading as soon as possible.