Development


📖 Posts | 📎 Development | 🔖 wordpress

Make the WordPress visual editor content look more like the finished output

Content in the visual post editor (TinyMCE) in WordPress doesn’t look that much like the finished article by default. Thankfully WordPress includes a style sheet that we can use to make things better.

Enterprise System Design and Accessibility

It isn’t just web pages that are required to meet accessibility standards and laws. All applications have to. This short article is a reminder to application designers and builders regarding the standards and legal obligations they have to meet.


📖 Posts | 📎 Development, Diigo | 🔖 bookmarklet, javascript

Diigo Bookmarks 05/12/2011

Jash: JavaScript Shell <p class="diigo-description"> &#8220;Jash is a DHTML-based window that gives you command-line JavaScript access to the current browser window. With this console you can quickly debug scripts, manipulate the DOM, view the current page&#8217;s objects, functions, and variables, execute arbitrary Javascript, enter new CSS (in IE, Firefox, Opera, and Safari), and much more.&#8221; &#8211; A useful tool to execute JavaScript, make live (temporary) CSS changes to a page, discover the page structure, etc.


📖 Posts | 📎 Blogging, Development | 🔖 development, wordpress

Bug in WordPress 3.0 Custom Post Types

Well this one threw me! I was trying out the new custom post types in WordPress 3.0 RC1 and could not work out why mine wasn’t working even when I copied an example from the web and only changed a few things. It turns out that there is a limitation in the naming of post types – they cannot have a name longer than 20 characters! If you use more than 20 characters, the “Publish” button becomes “Submit for Review” and if you submit, you get the dreaded: Are you sure you want to do this?


📖 Posts | 📎 Development, Microsoft, Windows | 🔖 maps, office, vba

Nearest Postcode Search in Microsoft Excel

I need to find a load of addresses by proximity to a postcode. I have the addresses in a Microsoft Access database. 1. Download Paul Jenkins’s UK Postcode csv and import into Access as a table 2. Create a query on your own table adding the following calculated field: <pre>PCregion: Trim( Left( [My Table]![Postcode], InStr( [My Table]![Postcode], &#8221; &#8221; ) ) )</pre> Create a second query that joins the above query to the imported postcode table.


📖 Posts | 📎 Development, Windows | 🔖 bash, batch, cygwin, scripting

Cygwin BASH function to open the latest version of a document

One handy function I’ve added to .bashrc (so it is always available) under Cygwin (the LINUX command environment for Windows) works out the current working version of a document. It assumes that you keep copies that have a version number or date in the file name that will sort correctly. # Opens the latest version of a file using the Windows default application Assumes that you have a range of files that can be identified using some for of prefix and that the last part of the file contains a version number or date that sorts in the correct order e.


📖 Posts | 📎 Development, Software, Windows | 🔖 vista, win7

Running Komodo Edit Open Source Code Editor Under Windows 7

The open source version of Komodo’s code editor and development environment Komodo Edit is a great tool for development. I use it for PHP, HTML, JavaScript and more. However, I haven’t done any serious coding for a while so I haven’t needed to run it under Windows 7 even though I had it installed. When I did, I was disapointed to find it behaving very poorly. It wouldn’t resize properly without messing up the screen.

Copy and Paste to OneNote (AutoHotKey script)

After yesterdays OneNote tool post, I thought I’d do another while I think about it. Another annoyance of OneNote is it’s lack of control over pasting information from the clipboard. I’ve raised a suggestion with MS to improve this; you can see my comment in the newsgroup. To ease things a little if you need to copy and paste lots of stuff to OneNote, here is an AutoHotKey script to help.

Setting list item gaps in Microsoft OneNote (AutoHotKey script)

Although I like Microsoft OneNote and use it continuously, it does have a few failings. One of these is the inability to set the default styles and layout for text. In particular, when you create a new paragraph or list entry in OneNote, the default – non-changeable – setting is to have no white space between the paragraphs. This is very poor design and makes more than a small amount of text quite unreadable.


📖 Posts | 📎 Development, Linux | 🔖 backup, bash, batch, scripting

Shell script to Back up critical files (using RSYNC)

Following up from my article on backing up USB drives, this recipe backs up the critical files on my desktop to remote storage (a NAS device on my network). Note that PC2 is the desktop to be backed up, SLUG1 (192.168.1.2) is the NAS device and USER1 is the user id doing the backup. #!/bin/bash # Backup Key PC2 files to Slug1 # Sync 2007 picture folders ##rsync -rl /home/user1/pictures/2007/ [email protected]