Hacked.

Dec 27

THIS IS STILL ONGOING! Resolved.

So, somehow someone was able to gain enough access to my hosting system that they were able to change read-only .htaccess files in my account. I’m not sure if that was something caused by elevated permissions on my shared server or if someone was able to exploit my content management system. (WordPress) It seems like it make have been the latter as the “infection” ceased when I upgraded WordPress and deleted the cache. It is possible the infection could have been via an exploit in the caching subsystem. I’ll have to look into it further some other time. See update below.

This is what the “infection” looks like. The malicious code prepends and appends some stuff to your .htaccess files in all folders in the user’s home dir where an .htaccess already exists. It does not seem to attempt to create new .htaccess files. more…

 

Updated Adium Spotify Xtra

Nov 08

I have made some improvements to the Adium Spotify Now Playing Xtra.

I added a fast-fail when the application isn’t running. If for some reason any errors occur the script will return an empty string. I also added the HTTP link to the current track. You can find my version of the plugin linked via a comment on the Adium Xtras page.

Download Now.

 

My Custom Demandware UX Studio Icon for OSX

Oct 04

I am so super impressed with Demandware at this point. I haven’t seen much but I like how everything fits together. The only thing that didn’t fit – on my Mac at least – was the icon for the IDE. (A plugin library on top of Eclipse) So I remedied that situation:

Demandware Logo Inspired Icon for Demandware UX Studio

My Demandware logo inspired icon for Demandware UX Studio

Now to set the app’s icon in the two places that matter. more…

 

Complex Default Values with Rails 3

Sep 05

I needed an extensible way to default values for new models in Rails 3.0.5 so I went Googling. I ended up finding a great question on StackOverflow. (of course) So I got started with the help of the answers on that question.

I first tried the before_create callback but soon realized that it only fires when you save a new record. I needed the model (A) to auto-generate associated models (B) when a new instance of the model (A) is created. So the correct filter for that is after_initialize. I called my callback method set_default_values() and used it on my abstract super class (A) and the classes (C,etc) that inherit from it. more…

 

Updated Classic ASP TextMate Bundle

Aug 16

I downloaded this TextMate bundle a while ago for ASP — so I could have code coloring. However I’ve found that I really need the symbols to be correctly identified. So I updated the bundle to include public & private methods of classes in the list of symbols. I also added a permanent redirect snippet. (I have to write these frequently since mod_rewrite isn’t available to me)

Download my version of the bundle.

Note: The original bundle is available on the MacroMates bundles for the 1.0.2 release page. It was created by Rich Barton and based on the work of Justin French, Sune Foldager and Allan Odgaard on the PHP scripting dictionary.