Leaving Wordpress I've been using Wordpress for this blog since circa 2006 I believe, but as I mentioned in an earlier blog post that I was not 100% happy with using Wordpress for this blog. I have a few issues with Wordpress, none of them a major dealbreaker, but collectively enough to make me consider something else: the new Gutenberg editor set to become standard in 5.0 was in my experience, very clunky and kinda annoying the code structure of Wordpress is very deep and complex, sometimes making it difficult for me to make changes I want. I can usually
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 :p I also ran the site through Google PageSpeed Insights. The results were mostly the same, but the Google site gave me
$pee = preg_replace( '|
", $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.
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.py shell. After some searching, I found that what I needed to do was set an environment variable DJANGO_SETTINGS_FILE to
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.. if magpaka-fickle ako, i've an excuse (Anonymous) : if magsungit ako, i've an excuse din (Anonymous) : if i get irrational, meron ulit excuse zroytang : and you can make sexist remarks freely! (Anonymous)
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.php while most of the formatting stuff is handled in the stylesheet. Since I'm copying from an existing template and not creating one from scratch, I didn't actually
Part 1 of this series is here. 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:
Web design has never been one of my strong points, and it's something I'd like to improve on. 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.
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. :p Details and download are at http://roytang.pbworks.com/w/page/7977432/MTG-Autocard-WP. Hopefully someone else will find it useful. Update Jan 2021: Since the wiki link
🔗 WordPress - USB via delicious
Wordpress on a stick
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 roy.blogsome.com 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). I'm