Block DiggBar in Wordpress Plugin

April 10th, 2009  |  Published in Wordpress, Wordpress Plugins  |  Comments

I wrote this plugin in protest to the newly introduced DiggBar.

Simply install this plugin on your Wordpress blog and people trying to a blog post through the DiggBar will be block and this message will be displayed:

The DiggBar is blocked on this blog. Read why.

Download

Download from the Wordpress Plugin Directory.

Source repository at GitHub.

Credits

It uses code by John Gruber.

tinyurl bash script

January 28th, 2009  |  Published in Mac  |  Comments

Here is a simple bash script I wrote based on Wesley Tanaka’s script, which in turn was based on code from Firefox TinyUrl Creator.

It creates a tinyurl, echos the result, then puts it on the clipboard.

!/bin/sh

tinyurl creator – places tinyurl on Mac OS X clipboard

Usage: ./tinyurl http://www.google.com

Credits: Based on this script: http://wtanaka.com/node/7750

URL=$(wget -q -O – -U “Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.8) Gecko/20071008 Firefox/2.0.0.8″ –header=”Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,/;q=0.1″ –header=”Accept-Language: en” –header=”Accept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7″ –referer=”http://tinyurl.com/” –header=”Content-Type: application/x-www-form-urlencoded” –post-data=”url=$” http://tinyurl.com/create.php | sed -n ’s/.(http:\/\/tinyurl.com\/[a-z0-9][a-z0-9]).*/\1/p’ | uniq) echo $URL | tr -d “\n” | pbcopy echo $URL

Upgraded to OS X 10.5.6 and Mail.app keeps crashing / hanging

December 16th, 2008  |  Published in Mac  |  Comments

After restarting Mail.app many times I tried disabling all my Mail.app plugins (simply rename the /Users/yourusername/Library/Mail/Bundles to something else). After disabling them one by one I figured out it was GPGMail.

Just throwing this out there in cash anyone else experiences this problem.

UPDATE: An updated version of GPGMail has been released.

Wordpress Notifier Now Compatible with Bad Behaviour

December 14th, 2008  |  Published in Wordpress Notifier  |  Comments

I have just released Wordpress Notifier 0.4. It fixes a problem with incompatibility with the Bad Behavior plugin.

Wordpress Notifier was doing nothing wrong. It is just that Bad Behavior is very aggressive in blocking web clients. Any web client with “Wordpress” in its user agent name is blocked. I had to change the user agent to “wpnotifier” instead of “Wordpress Notifier”.

A bit thanks goes to Mathew for identifying the problem and helping me debug it.

Wordpress Notifier for Mac Released!

December 11th, 2008  |  Published in Wordpress Notifier  |  Comments

Well, yes, it had been released before in anticipation of the original release date, but today is the day I am celebrating shipping it. Wordpress 2.7 is out and for all those who do not use the development versions (99.999% of you), Wordpress Notifier now works!

Please leave me any feedback.

I have already had an offer to translate it into French. If anyone want to translate it into another language please contact me.

Wordpress Quick Reply Template Plugin

December 5th, 2008  |  Published in Wordpress, Wordpress Plugins  |  Comments

The quick reply feature introduced in Wordpress 2.7 is great but it lacks the ability to set the default test of a reply.

This plugin allows you to automatically set the text of a comment reply. For example if your reply template is:

%FIRST_NAME%, 

and the comment authors name is:

Paul William

Then the default text in a reply would be:

Paul,

It is that simple.

Screenshots

Click to expand.

Picture 14.png

Picture 15.png

Download

Download from the Wordpress Plugin Directory.

Source repository at GitHub.

Wordpress GitHub Gist Shortcode Plugin

December 2nd, 2008  |  Published in Wordpress, Wordpress Plugins  |  1 Comment

This simple Wordpress plugin allows you to embed a GitHub Gist by inserting a shortcode into your post or page instead of entering HTML.

It is very simple to use. After activating the plugin you can embed a Gist, for example Gist 30957, into you page or post by entering the following text:

will be replaced with an embedded Gist:

Simple!

One problem with gists is that a search engine spiders (and users with javascript disabled) will not see your code in a blog entry. This plugin allows you to get around this by including text, such as content of the gist inside the shortcode. The text is wrapped inside these tags:

<noscript><code class="gist"><pre>

You would use it like this:

[gist id=30948]
puts hello_world_test;
i = 0
5.times do
    i = i + 1
    puts i
end

Download

Wordpress Plugin Directory.

GitHub source repository.

Changelog

0.2 Added ability to include text inside gist shortcode.

0.1 Initial Release

Credits

The geniuses at GitHub

Wordpress 2.7 delayed till early December

November 30th, 2008  |  Published in Wordpress Notifier  |  No comments yet

It looks like WP 2.7 has been delayed again until early December. Still due to IE6 issues.

Picture 17-6 alicam

Looks like I launched Wordpress Notifier early :( I expected it to be announced at Wordcamp Australia today.

Need help porting Wordpress Notifier to PPC

November 30th, 2008  |  Published in Wordpress Notifier  |  No comments yet

Update: I have got it running on PPC and Tiger (OS X 10.4). I would still appreciate help testing Wordpress Notifier on PPC 10.5.

Hi, I need someone running Leopard on a PPC machine to help me make Wordpress Notifier work on the PPC platform.

Any offer to help would be welcome, a mac developer’s help would be even better,

Thanks.

Picture 16-8
I wish it was that easy ;)

Wordpress Notifier Released

November 30th, 2008  |  Published in Wordpress Notifier  |  No comments yet

I have finally released my latest software project. Wordpress Notifier alerts you when new unapproved comments are posted on a Wordpress blog. It uses the new Wordpress 2.7 comment API.

Picture 9-21

This blog will be used to discuss the application and I will be posting any news relating to it here.

More on the freeware application at WordpressNotifier.com