Skip to main content
 

Wordpress Plugin Settings Chaos

I wish all Wordpress Plugins had their settings in ONE menu, and all entries in this Plugin Settings menu MUST be named identically to the plugin.

Not "broken links" plugin with settings -> permalinks -> "link checker" because I will never find it.

Time for a wordpress plugin settings corrector plugin

 

Why MySQL does not start

The other day I was provided with a new Ubuntu server with a large data drive. It seemed a good idea to move (among other things) the mysql data folder onto this drive.

[code language="bash"]

sudo mv /var/lib /var/media/lib
sudo ln -s /var/media/lib /var

[/code]

However when trying to start MySQL it will no longer start:

[code language="bash"]

service mysql start
start: Unable to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory

[/code]

The whole reason I did use a symbolic link was to avoid issues like this. What to do? It turns out AppArmor does not allow mysql to read out of the new /var/media/lib location, as noted in the my.conf file:

[code language="bash"]

# * IMPORTANT
# If you make changes to these settings and your system uses apparmor, you may
# also need to also adjust /etc/apparmor.d/usr.sbin.mysqld.

[/code]

Simply open the mentioned file, duplicate the /var/lib/mysql lines and correct the path to the new locations. Restart AppArmor (or reboot) and Mysql can be started. Verify this by running:

[code language="bash"]
ps -ef | grep mysql
[/code]

 

 

Mail On Update - WordPress Plugin

Sends an E-Mail to one or multiple E-Mail Addresses if new versions of plugins are available. My patch got accepted which adds an option for a single notification per plugin change instead one per 12 hours.

via WordPress › Mail On Update « WordPress Plugins

 

Star Wars: The Greedy Republic

Buying the game today for  £50-£65 from Origin will not only give you a holographic dancer (!) and allow you to change the color of your lightsaber (!), but also get you early access, before everyone else! How early is this access that you pay a £30 premium for?

Precise dates will be revealed at a later time.

Via http://www.swtor.com/preorder/faq">Preorder FAQs | Star Wars: The Old Republic. It's time to find another hobby.

 

WebPutty: Simple, fast, and powerful CSS editing and hosting.

Really interesting project for online frontend design. You will need to have an existing site live, but from then on WebPutty will speed up making amendments significantly.

via WebPutty: Simple, fast, and powerful CSS editing and hosting.

 

Host Editor 7 - Hassle free host editing for Win7-XP

I was fedup with the poor experience of editing my host file, which is often needed when developing websites. So I quickly created an AutoHotkey script for the purpose.

15:03:50 - me: anyone knows a host editor app that works under windows 7
15:04:51 - me: fed up trying to first find the hosts file, then not being able to save because I again forgot to run notepad with admin privileges.

Download @ Host Editor 7 - Hassle free host editing for Win7-XP - DonationCoder.com.

 

Rupert Murdoch facing BSkyB defeat as parties unite in call to drop takeover

Rupert Murdoch will today face the humiliation of the Commons issuing a unanimous all-party call for his scandal-ridden News Corporation to withdraw its £8bn bid for BSkyB, the great commercial prize he has been pursuing to cement his dominance of the British media landscape.

In an extraordinary volte-face, David Cameron will disown the media tycoon by leading his party through the lobbies to urge him to drop the bid. Murdoch can defy parliament and press ahead with the bid, prompting a Competition Commission inquiry, but he risks finding himself ostracised by a political class that once scrambled to bend to his wishes.

I'm sure it has nothing to do with MPs no longer wishing to be associated with a news organisation that might give them certain favours. I still have yet to find a convincing argument on BSkyB being related to the phone hacking scandal. Until then there must be other, presently unknown, reasons for this change in direction.

via The Guardian.

 

WindowsPager

WindowsPager: One of the more accomplished virtual desktop solutions that work well with Windows 7

 

WorkFlowy - Organize your brain.

WorkFlowy - Organize your brain.: Great way to organise and outline information

 

iPhone Home Screen

iPhone Home Screen July 2011It's always fun to discover new apps, and a good way to see which apps are used most is to look at the first home screen. So here's mine, where is yours?

The apps you can see are (apart from the built in Apple ones):

  1. Captio - Send yourself a quick note with just one tap.
  2. Simplenote - An easy way  to keep notes, lists, ideas, and more.
  3. Action Lists - Getting Things Done made easy.
  4. moneyStrands - Personal finance software.
  5. UK & ROI - navFree navigation software.
  6. http://wfco.de/iphone/ShoppingList">ShoppingList - The shopping tool for your iPhone or iPod touch.
  7. Dropbox - Bring your photos, docs, and videos anywhere and share them easily.
  8. Due - The missing reminder app fit for your homescreen (multiple alarms)
  9. http://vemedio.com:80/products/instacast">Instacast - Instant access to podcast subscriptions, stream or download episodes wirelessly, follow show notes and enjoy audio and video podcasts on-the-go.
  10. Tiny Tower - Tower people management game

 

Ubisoft "extremely limited" by PS3, 360

We think that the next generation of consoles won't have these limits any more. Games might have more realistic graphics and more on-screen, but what's the value of making something more realistic and better animated if you have poor AI?

via Ubisoft "extremely limited" by PS3, 360 News - - Page 1 | Eurogamer.net.

They might think they want better AI, but once the Xbox 4 and PS4 are out they will be back competing on graphics and violence.

 

Using mysqldump to generate database backups

When administrating a database server, you will definitely have to put a backup solution into place. I normally run mysqldump on the database and save it to a file. However when the database server has several dozens or more databases, setting up a process for each instance quickly becomes unwieldy.

Instead, I wrote a batch file to automatically create SQL backups by quering all databases. Simply set up a scheduled task to run it at the desired interval.

Contents of dumper.bat:

[sourcecode language="plain"]
@echo off
mkdir dumps
mysql -N < list_dbs.sql > dbs_list.txt
for /F "tokens=*" %%A in (dbs_list.txt) do ping localhost -n 2 > nul & echo dumping %%A & mysqldump --add-drop-database --database %%A > dumps\%%A.sql
[/sourcecode]

Contents of list_dbs.sql:

[sourcecode language="sql"]
SHOW DATABASES;
[/sourcecode]

I have noticed that the database server becomes quite highly utilized even with the the pause between dumping each database, so as with all solutions please test it in your environment first before implementing if this is an issue for you.

 

A Blank Favicon

Sometimes you just need a favicon to stifle angry apache logs.

via http://blankfavicon.com:80/">A Blank Favicon.

 

Reminder Bear

You know how every now and then you want to revisit a page in a while to see what's changed? Perhaps review if something has been added to a discussion? Maybe you're waiting for a beta to open or you have posted to a forum that doesn't have topic notification (or it is a regular website).

Simply click the reminder bear bookmark and customize when you want to get an email reminding you off the page. It's like a disposable bookmark, and lets you get on with more important things. I find it very liberating, try it out yourself.

 

 

Replace all copies of a file under Linux

Today, after making a change to a php file, I had to update all copies of this file with the changes. The following command will update all files with the same name. Note that this will only work as expected if the name is unique. A theoretically better way to do it would be to find all files with a certain hash.

Anyways, here's the linux shell command. First copy the updated file into the current directory (/tmp for example):

find /target_path/ -iname "some_file.php" -exec cp new_file.php '{}' \;

 

Smart Podcast Playlist

Create a smart playlist with all unplayed podcasts. By using this playlist you no longer have to find the next podcast on your iPhone whilst driving back home. Make sure that you include the smart playlist on the Podcast tab of your iPhone, iPad or iPod Touch.

Update:
Although this seemed a great solution in theory, there are some issues with this approach in practice. As diskspace on the iPhone is at a premium you will have to limit the amount of podcast data stored on your device. However, because there is not an option to keep 1 unplayed episode per podcast in the smart playlist editor you have to set the amount of diskspace used. When you have several podcasts and some are updated more frequently then others you will end up for some podcasts not being on your device and others that are continuously listened to. Therefore I opted for http://vemedio.com:80/products/instacast">InstaCast which caches 1 episode per podcast and comes with continuous playback in its latest update.

 

Bard 0.3.0.3 Released

Updated again (version 0.3.0.3) - I have fixed all known bugs.

Changes since 0.3.0.0:

  • instructions updated
  • Fixed problems remembering what directory we're working on.
  • Fix: now lists samples with mixed case or uppercase extensions
  • Removed tray icon
  • Menu item to AudioLibraryFolders now works correctly
  • Resizing now works as expected
  • Remember windows position and size between sessions

Download the latest version

 

Bard 0.3 Released

Bard uses move/copy operations to quickly organise your audio files into favourite folders. You can specify an 'unlimited' amount of folders which can all be used to sort audio to with one click. Other basic file operations such as renaming, deletion of audio is also supported.

In the resources folder you will find a small utility to create a basic audio library structure for you.

Changes:

0.3:
*  Added Prefix option to prefix selected files with name of a samplepack for example.
*  misc fixes
*  Enable .aiff samples
*  rewrote buttonmatching code - fixes bug where folders starting with spaces are no longer created
*  Better error checking on files that have been removed, deleted or renamed outwith the program.
*  Fixed hotkeys which got broken
*  Shift click a destination button to open the location in explorer!
*  Updated readme.txt and added tips.txt which are shown randomly in the statusbar
*  Right click rename file(s)

Download the latest version

 

Hide Trackbacks - Hide ping- and trackbacks from your comments

Introducing Hide Trackbacks - You can have the benefits of track/ping backs (know when someone writes about posts) whilst keeping the comments clean and uncluttered.

After enabling the plugin, trackbacks and pingbacks are no longer shown on your posts and the comment count is updated correctly to reflect this. You can still access them via the admin panel. NOTE: Although the plugin officially requires WordPress 3.1.2 it might very well work on older WordPress versions (if it does please let me know).
Derived from original code created by  Honey Singh (used with permission of the author).

Installation is simple:

  1. Upload the `hide-trackbacks` directory to `/wp-content/plugins/`.
  2. Activate the plugin through the 'Plugins' menu in WordPress.

Download link and information:
Wordpress.org Hide Trackbacks