Let's Kill Davros! Or, a review of Doctor Who S09E01, the Magicians Apprentice

p032kxgr.jpgIf someone pointed out to you a little boy, as innocent as could be, and you knew that boy would grow up to create the most evil the universe ever saw, would you kill that little boy and prevent that evil? Yes or No. And what would either answer make you to be? If you're The Doctor, and you're suddenly in the middle of a horridly crazy war that looked like World War I trench warfare but had biplanes shooting laser canons, and you met a scared little boy who was about to die, what would you do?

Using PHP DOMDocument in Wordpress content filter, instead of regexp

wordpress-logo-stacked-rgb.pngIt's been said that solving a software coding problem by adding a regexp (regular expression) you now have two problems. Basically, regular expressions are a cool idea that's really hard to get right, and then really hard to maintain because it's really easy to forget why you concocted that specific regular expression. It's better to not use regexp's, for code maintainability if nothing else, and find other ways to manipulate text.

How to stop your facebook page from posting tweets to twitter

Automated postings to social media accounts - Facebook, Twitter, etc - are a great way to build your presence, and let your audience know what you're doing. Over the years preferred services have come and gone which automate cross posting to social media accounts. Where a few years we would have instructed Facebook to autopost to twitter, we might want to do that in a different way now. For example, I'm finding the dlvr.it service to be much better and offer better control over the format of postings.

Node.js 4.0.0 is out - quick tip for use while testing compatibility

nodejs-dark.pngNode.js v 4.0.0 was just released. This is a long-awaited release representing the healing of the schism in the Node.js community created when the io.js project forked Node.js. That had been done over a disagreement about the policies and maintainership of Node.js. Joyent had been in control of the project (because Ryan Dahl had been employed by Joyent) and not all in the community liked the decisions made by Joyent.

Updating custom Wordpress plugins made simple with WP Pusher

wordpress-logo-stacked-rgb.pngWhat if you've developed a custom Wordpress plugin which you don't want to submit to the Wordpress.org team? The Wordpress dashboard makes it easy to administer plugins, receive notifications about plugin updates, and make those updates. It's just a few clicks of the mouse and the plugin is updated. But, if that plugin is not hosted on Wordpress.org suddenly the administration process is much harder.

How to duplicate a Wordpress site so you can break things without breaking the live site

wordpress-logo-stacked-rgb.pngOne principle of proper software development or website administration is to avoid showing bugs to the end user. When developing software we make test releases, that are used for testing, and which are expected to have bugs and to break horribly. We don't tell our users to use that software because we haven't determined if it's safe, or not, for "production use".

Avoid false spam decisions by Gmail's spam filters, stop losing critical emails in the spam folder

Gmail has done us all a great service by developing an excellent spam filter. I used to get hundreds of spam emails a day, and switching to Gmail reduced the spam rate to a few per week. No longer am I buried by spam. Of course the cost for this is to regularly visit the spam folder and see if Gmail accidentally marked any as spam (a.k.a. false positive for spam). Usually there's only a few and it's easy to click the "Not Spam" button to retrieve those emails back into the regular inbox.

The difference between Node.js require, and Wordpress plugins or Drupal modules

nodejs-dark.pngSomeone experienced with using Wordpress, or Drupal, to build websites are accustomed to "plugins" or "modules". Both are software modules which extend the functionality of Wordpress or Drupal websites, giving more features to the system than what's available out of the box.

Create hierarchical navigation for custom post types in Wordpress with PODS

wordpress-logo-stacked-rgb.pngOn my Wordpress site I want to create "documentation" areas with a cluster of pages organized as a hierarchy, with an index to those pages showing as a sidebar. Many think of doing this for "Product Documentation", but I simply want to organize notes and additional material related to some books that I'm writing. Just as a book is organized by chapters and subsections, I want to hierarchically organize these pages.

Where should you put routes in an Express/Node.js web application for simple easy coding enjoyment?

nodejs-dark.pngThe Express.js app framework for Node.js is a pretty cool system that makes it easy to implement web apps and even REST API's. But the Express team doesn't give you any guidance on structuring the application code. They give you an API and it's up to you to decide how or even if you structure the model-view-controller paradigm or any other paradigm you wish to use.


Subscribe to Front page feed