Roy Tang

Programmer, engineer, scientist, critic, gamer, dreamer, and kid-at-heart.

Blog Notes Photos Links Archives About Now

All entries tagged wordpress.

You can subscribe to an RSS feed of this list.

Nov 2018

Posted by under post at / Tags: #hugo #wordpress #Meta #Tech Life #changelog / Syndicated: twitter / 0 / 1764 words

Jun 2016

Some time ago, one of my many intrepid followers pointed out that this blog tested poorly on web page performance according to this Speed Testing Tool. Now, I’m of the opinion that for a personal blog such as this, web performance isn’t really a mission-critical sort of thing, but as a software developer who has often had to work hard to optimize the web applications we delivered to our clients, it kind of became a matter of pride :pUnacceptable!

read more (889 words)

Posted by under post at / Tags: #wordpress #Software Development / Syndicated: twitter / 0 / 889 words

Dec 2008

$pee = preg_replace( '|<p>|', "$1<p>", $pee );

This regular expression is from the Wordpress source code (formatting.php, wpautop function); I’m not sure what it does, can anyone help?

Actually I’m trying to port this function to Python…if anyone knows of an existing port already, that would be much better as I’m really bad with regex.

Nov 2008

I’ve been busy at work so fell a bit behind with Django. Last night I worked on a WordPress importer, so that I could migrate posts from my current blog(s) into the Django-powered blog that I’m coding. I’m using BeautifulSoup to parse the WordPress export file and insert them as Django objects. Since I was running the script repeatedly, I had to figure out how to easily run it from the command line, without having to run it from inside manage.

read more (232 words)

Jul 2008

New WordPress Theme -- Thematic

Changed to Thematic  zroytang : yung current na wordpress theme ko parang ang crowded (Anonymous) : baka it's the font... or less ugn spacing zroytang : papagalitan mo ko pag pinalitan ko e zroytang : haha (Anonymous) : haha hindi naman a (Anonymous) : sabihin ko lang na you're fickle like a girl (Anonymous) : haha zroytang : tsk! (Anonymous) : it's nice to be female.

read more (131 words)

Posted by under post at / Tags: #wordpress #Meta #changelog / 0 / 131 words

Jun 2008

May 2008

Creating a WordPress Template Part 3

Part 1. Part 2. Moonglove Winnower template is currently live on Roy on Magic. I made several color and formatting changes since the last update. Relatively easy due to the stylesheet. I also had to scrap the CSS hack for implementing equal height columns, it was causing problems with anchors in the URL. I went with a 1-pixel high background image instead. Currently most of the PHP logic/heavy lifting is done in sidebar.

read more (253 words)

Posted by under post at / Tags: #wordpress #Software Development / 0 / 253 words

Part 1 of this series is




Creating a WordPress template is harder than I thought. Luckily I’m modifying the default template instead of starting from scratch. The one I’m creating is rather simple but after spending almost 8 hours on it so far, I’m still far away from completing it. I’m guessing the more complicated layouts take more than two weeks of full-time work.

Here’s my current WIP:



Changes since the last part:

read more (650 words)

Posted by under post at / Tags: #wordpress #Software Development / 0 / 650 words

Apr 2008

  1. Web design has never been one of my strong points, and it’s something I’d like to improve on.

  2. The Roy on Magic blog has been using the default WordPress Template since forever, and I’ve been trying to find a good WP Template that fits the “Magic the Gathering” theme.

Put the above points together, and I have a new personal project. Just for fun, I’ll log my progress here.

read more (914 words)

Posted by under post at / Tags: #wordpress #Software Development / 0 / 914 words

Feb 2008

MTG Autocard WordPress Plugin

I had been planning to do this for a while: it’s my first WordPress Plugin! Over at Roy on Magic, I often have to write out decklists and such, so I wanted to have an autocard feature similar to the one used at MTGSalvation. After a quick five-minute search I couldn’t figure out how they did it, so I just wrote the plugin myself. Actual effort was around 3.5 hours, most of it struggling with PHP and Regular Expressions.

read more (93 words)

Posted by under post at / Tags: #wordpress #Software Development / 2 / 93 words

May 2006

Mar 2006

Apr 2005

Free WordPress Hosting

Wordpress host – free blog I’ve wanted to try WordPress for a while now, but not having easy access to a PHP-enabled server of my own, I haven’t had the chance. Blogsome is a new, free service that provides WordPress for blogging. I signed up, and was still available (nothing there, don’t bother looking) Am I going to leave blogger? I don’t know, really, I’m already pretty comfortable with it already, and moving to WordPress means learning a while new templating language (I know it would take all of an hour to get it down, but still… inertia).

read more (262 words)

Posted by under post at / Tags: #wordpress #Meta / Imported from roywantsmeat / Syndicated: blogger / 0 / 262 words