I struggled a bit this afternoon getting Datamapper’s dm-is-remixable plug-in as there aren’t too many posts out there and some are out of date. Hopefully this quick overview will spare you my pain
Many sites allow you to comment on blog posts, images, videos, status, etc. having one comments table with post_id, image_id, etc. [...]
In a Sinatra application you can use the ‘before’ filter to run something before every each event.
before do
puts “I will run all the time…”
end
Here’s a module that will allow you to run code only before certain routes:
module Sinatra
module BeforeOnlyFilter
def before_only(routes, &block)
before [...]
After downloading and installing Netbeans 6.9 I launched the app. It bounced a couple of times in my dock as dreams of exciting new features danced in my head. Then… nothing, well not quite nothing, I received a message informing me that:
“Java 6 Standard Edition or newer required. Cannot run on older versions of Java [...]
April 17, 2010 – 12:52 pm
Dear Leader Jobs,
I am sorry I wrote my last post. I’ve spent a couple of weeks with an Android Phone (Nexus One) and to paraphrase Llyod Bentsen “Android, I know the iPhone and you sir are no iPhone”. It’s not that Android is unusable, it’s just rough around the edges. Most of the tasks I [...]
Update: It seems apple has approved Flex/Flash based apps made with OpenPlug’s ELIPS Studio have been approved. So Apple is just targeting Adobe. Don’t know if that makes it better or worse?
Apple has been doing some crazy stuff lately. I went with an iPhone over an Android phone because of my investment in Apple hardware [...]
February 11, 2010 – 12:28 pm
OpenPlug just released the latest beta version of their ELIPS Studio, which adds Android support. Currently ELIPS Studio is Windows only but in a month they will add OS X support, yay!
The latest version of ELIPS Studio has just been released. It brings the ability for developers to create native mobile apps in ActionScript and [...]
February 5, 2010 – 12:16 pm
Lee Brimelow caught some major heat this week from the Apple f-boys and the open source zealots over his post on the iPad’s lack of Flash. The biggest complaints against flash seem to be CPU usage spikes and/or annoying animation. Not to worry HTML5 has both those covered
Try it for yourself, my macbook [...]
I came up with this solution when I had to compile over 100 fonts into SWF files for a recent project. Doing this by hand would have been madness so I wrote a ruby script and a shell script to automate the process.
Step 1: Setup
The directory structure I used was as follows.
convert.rb (the ruby script)
compile.sh [...]
November 25, 2008 – 11:41 pm
I won’t be dropping my beloved Flex anytime soon but it’s nice to know if you must do JavaScript (and let’s be honest Flex isn’t always the best tool) you can at least use a familiar framework.
Check out PureMVC for JavaScript.
November 25, 2008 – 11:17 pm
It’s my first post in months*, so it must be worth it right?
Rails Inside has the details on Paperclip as an alternative file upload/association plugin, I’ve tried them all and paperclip covers all your file upload bases.
*I’ve been busy with Fatherhood 101 and my new job as a Flex Dev at Captial Group (the largest [...]