Blogs

A very chilling Executive Action on Donald Trump's first day in office

A crazy thing has happened to the U.S., reality TV star Donald J Trump has been elected President. He brought within him into power a litany of people who are hell-bent on Conservative causes - pretty much all the Cabinet Secretary's are people who'd previously promised to destroy the agencies they were appointed to lead, for example.

Putin's Russia gains three friendly heads of state in last week's elections

landscape-1450461032-putin-index.jpgWe're all shocked, astonished, etc, that Donald Trump won the 2016 US Presidential Elections. The prospect of Donald Trump as US President goes completely against the grain, and is not what'd been expected, but at the same time we shouldn't be surprised. It did happen, and we must look for an effective way to deal with this fact, including fighting strongly against all the crazy stuff that we know is coming.

Examiner.com writers can save their work using this screen-scraper script written for the purpose

I've been writing for Examiner.com for over 7 years, and with the news that they're going to shut down I needed to retrieve over 540 articles to repost them on my own website. Lesson learned - it's better to own your own platform than to write for someone elses platform. Anyway, the result is a Node.js script I'm calling articlescraper. The purpose is to traverse an index page that might be split over multiple pages, then extract the articles from the pages linked from the index.

Drupal Book node hierarchy went missing, necessitating database patching and a couple scripts to help

Twice now I've had the Book hierarchy on a Drupal 6 site go bonkers. The first time was on this very site, back in 2009, while this site was being converted from Drupal 5 to Drupal 6 (it's now on Drupal 7). The /book page simply became empty, and I managed to fix the book hierarchy with some database twiddling. That was over six years ago and I'd since converted this site to Drupal 7. I have another site still running Drupal 6, and the same problem (empty /book page) just happened on that site.

Ensuring your Wordpress filter affects text generated by a shortcode

wordpress-logo-stacked-rgb.pngSuppose you've developed a Wordpress plugin to expand a shortcode. That's easy enough, the Shortcodes API is straightforward enough and it's pretty simple to do.

Ensuring custom post types show up on Wordpress categories & tags archive pages

wordpress-logo-stacked-rgb.pngThe default behaviors built into Wordpress drive me batty sometimes, because they've made certain assumptions that aren't always right. One of these are that the built-in Categories and Tags taxonomies are somehow special. In particular if you create a custom post type, then associate that post type with either Categories and Tags, the category or tag archive pages won't show posts for your custom post type.

Embed an Amazon aStore on Wordpress with a functional URL that accepts ASIN etc arguments

wordpress-logo-stacked-rgb.pngThrough the Amazon affiliate program you can create what's called an Amazon aStore - which is a functional "store" filled with products you specify from the Amazon website, that then earn you affiliate commissions. You curate the products shown on your store, and presumably that'll be what makes your store more valuable is the effort you take to select appropriate products for your audience.

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.

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.

Pages

Subscribe to RSS - blogs