Tracking memory usage

3

Posted on : 06-02-2009 | By : Japh

Recently I received a warning from my host that I was WAY over my memory limit. I had some long running processes going, and a few cron scripts that altogether were using about 220mb out of my 120mb of allowed memory usage… oops!

Anyway, there’s currently no way from my control panel to see how memory I’m currently using, I have to run a command from a terminal, and certainly no way to tell usage over time. So, after looking at a thread my hosting provider pointed me to, I decided to have a play with the Google Charts API!
Read the rest of this entry »

The new theme (debugged!)

3

Posted on : 20-01-2009 | By : Japh

Ok, so I’ve been looking around for a new look and feel for my blog.  I found this FREEmium theme for WordPress, and I fell in love.  Sure, it’s not 100% perfect, but it’ll do til I can do something for myself.

Anyway, after installing it and sitting back to think “ah, that looks better!”, I browsed to another page on my site and… whoops!  All pages and posts other than the home page itself had an odd quirk…

When I was logged in to WordPress everything looked fine:

Blog Post - Logged In

But when I logged out…

Blog Post - Logged Out

I was devastated… my near-perfect theme was ruined.  Then I remembered, I know PHP, all is not lost!  :)

So, after digging around, I finally worked out how to fix it!

In the comments.php file, the following lines:

</form>
</div>
 
<?php endif; // If registration required and not logged in ?>
 
<?php endif; // if you delete this the sky will fall on your head ?>
</div>

Should be:

</form>
 
<?php endif; // If registration required and not logged in ?>
</div>
 
<?php endif; // if you delete this the sky will fall on your head ?>
</div>

That’s it! Sorted! Hope that helped someone else :)

Burned my feed

0

Posted on : 20-01-2009 | By : Japh

Just a quick update to let you know I’ve switched my feed over to feedburner, which will hopefully just have worked transparently for you. If you notice any issues though, please let me know!

Also, I will hopefully be releasing the code for The Grey Album in the next week or so :)

I’m in the process of giving my blog a new look too… please bare with me while I iron out the kinks!

APIs and The Grey Album

1

Posted on : 07-01-2009 | By : Japh

Lately I’ve been playing around with a few different APIs. Getting the hang of using them and seeing what they can do. I’ve had a brief play with both the Flickr and Twitter APIs, and they’re both actually very user-friendly yet powerful.

I decided to build a simple photo album script using mostly PHP and jQuery to do the tricky parts, and the SimplePie library for actually importing the photo stream. I’ve called it The Grey Album, and though I probably wouldn’t call it a complete and comprehensive script, it seems to do the job. Any feedback is most welcome!

Must-have iPhone apps

0

Posted on : 06-09-2008 | By : Japh

Ok, this is a little off-topic, but now that I’ve had my iPhone for a few weeks and have gotten past the initial excitement and installation (and eventual removal) of all the show-off apps, I have a good collection of useful ones  :)  (and maybe still a few show-off ones…  ;) ) The list is as follows:

  • Cannon Challenge (ok, so the first item on my list being a game isn’t promising, but I’m going in alphabetical order!)
  • Currency
  • Facebook (obviously not such a must-have if you’re not on Facebook… but who’s not these days?  :P)
  • Flashlight
  • FTP On The Go (not free) Read the rest of this entry »