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 »
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:

But when I 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
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!
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!
Posted on : 17-10-2008 | By : Japh
I’ve always been interested in Linux as an operating system, but found too many reasons to go back to Windows. Linux was just a fun, geeky thing to play around with, but not really viable for everyday use. Read the rest of this entry »