Monday, May 31, 2010

EMAILProtect: Secure e-mail addresses in Wordpress

I wrote a plugin for Wordpress which secures e-mail addresses from being found by spam spiders (and other crawlers).

The plugin rewrites e.g. "something@something.com" to a JavaScript. The script displays a clickable link for the user, but the original string is hidden from "non-JavaScript crawlers".

Instead of updating the actual script here - and on other sites - will I only be using the Wordpress SVN.

I will, however, be answering questions and taking suggestions through the comments.

Wordpress plugin site:
http://wordpress.org/extend/plugins/emailprotect/

Fun fact #1: In less than one week on Wordpress, EMAILProtect was downloaded more than 1000 times.

Wednesday, May 5, 2010

Display hidden files in Finder

You may have been in the situation where you want to display hidden files in Finder. I've found that necessary when I want to edit system files e.g. ".htaccess" .

There's a bunch of applications and script to do this but what I've noticed is that everyone of these are unnecessarily advanced.

What I did is that I developed a _simple_ AppleScript application which you execute to display hidden files and when/if you want to hide them you just execute it again.

set currentStatus to (do shell script "defaults read com.apple.Finder AppleShowAllFiles")

if currentStatus is "YES" then
do shell script "defaults write com.apple.Finder AppleShowAllFiles NO"
else
do shell script "defaults write com.apple.Finder AppleShowAllFiles YES"
end if

do shell script "KillAll Finder"


Download file
Mirror site #1
Mirror site #2