Don Gilbert's Hub

Code, Caffeine and Clients.

Remove Duplicate “Open With” Items From Finder

1
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user & killall Finder

NO MORE DUPLICATES!!!

JHtml::asset()

@mbabker discovered a hidden gem in JHtml that allows you to allow the assets in your extensions (css|js|images) to be easily overridden without having to do all the checking yourself. No need to rehash his whole post - just check up on it here.

I wrote this companion method to go along with his discovery, because I found it not to easy to try to recall the proper argument ordering to make this work right. This probably won’t be included in Joomla core, but feel free to use it in your next extension if you so desire.

Switching to Octopress

My WordPress site has been hacked one too many times, and I’m a little tired of it. So, starting today, I’m creating this dev blog in Octopress instead, and hosting it on GitHub. Should make things run a lot smoother, and I shouldn’t have to worry about it getting hacked any longer.

Send SMS Alerts via PHP

RSForm!Pro allows for some pretty advanced routing, mappings, and script access via the joomla admin panel. It’s probably the best Joomla! form builder out there as of right now. It’s almost on the same level as Gravity Forms for WordPress.

Anyways - recently I had to set up text message alerts for admins when there is a submission. Rather than building an integration with a service like twilio or something, I just came up with this rather simple little snippet.

Recursive File Hashing in PHP

A little background: I developed this to create a drop-in hash file that will work with WordPress Exploit Scanner. As a developer, I periodically update to the latest nightly builds, and needed something to check the integrity of the system post upgrade, and to make sure that what I got was the real deal.