In a continuing saga of laughable marketing failure Microsofts Windows Phone 7 ad campaign seems to tell us that their phones best feature is its lack of engagement. Although I haven’t used windows phone 7 and know noone who has I can’t help but think that this strategy may be a reaction to its inability to engage.
This storm opened up on me on the way to last Thursday’s new york ruby meetup
secrets of the software conference pros
Have you ever been at a development conference and been struck by the developers command of the command line. Not to say that they are all snake oil and high equity mortgage salesman but most of them use a bit of *nix illusion.
The trick to pulling this of is to record your bash session with something like the script or ttyrec commands. If your on debian or ubuntu you likely still have scriptreplay available to you.
record your session
script -t 2> tutorial.timing -a tutorial.session
execute what you you want to show off
exit the session
replay
scriptreplay tutorial.timing tutorial.session
if your not on debian you need to build ttyrec
git clone git@github.com:mjording/ttyrec.git
cd ttyrec
make
If you don’t have the directory setup (from macports or another unix add on)
/usr/bin/sudo /bin/mkdir -p /usr/local/bin /usr/bin/sudo /usr/sbin/chown root:wheel /usr/local /usr/local/bin /usr/bin/sudo /bin/chmod 0755 /usr/local /usr/local/bin
Otherwise copy the binary in and make some shortcuts
copy ttyrec, ttyplay and ttytime to /usr/local/bin /usr/bin/sudo /bin/cp -i ~/Desktop/ttyrec-1.0.8/ttyrec /usr/local/bin /usr/bin/sudo /bin/cp -i ~/Desktop/ttyrec-1.0.8/ttyplay /usr/local/bin /usr/bin/sudo /bin/cp -i ~/Desktop/ttyrec-1.0.8/ttytime /usr/local/bin
Now you can record your session to a file via
ttyrec -a tutorial.session
and play it back with
ttyplay tutorial.session
ttyrec also has advanced features that allow you to adjust playback speed.
rails 3 generators hand-rolled edition
Annoyed that rails 3 did none of the radical change of guard changes to default options? I know i was. Luckily its trivial to make right.
You can follow along by creating a new rails 3 application
rails new hand-rolled
At the end of the config/application.rb file add replacements
config.generators do |g|
g.orm :active_record
g.template_engine :erb
g.test_framework :rspec, :fixture => true
g.fixture_replacement :machinist
end
better yet you can now build a rails app passing templates for any manner of change you want to make by default.
generators = «-GENERATORS
config.generators do |g|
g.test_framework :rspec, :fixture => true, :views => false
g.integration_tool :rspec, :fixture => true, :views => true
end
The template file is passed to the rails new action and the generators are replaced. Match this up with the ease of generating your own generators package it up in a gem and you can create a set of rails application generators that suit your preferences while maintaining flexibility of context.