Rails 2.3.8 Deprecation Warning

By Darian Shimy, May 25, 2010 4:00 pm

If you happen to come across the following deprecation warning:

DEPRECATION WARNING: Giving :session_key to SessionStore is deprecated, please use :key instead. (called from new at /Users/dshimy/.rvm/gems/ruby-1.8.7-p249/gems/actionpack-2.3.8/lib/action_controller/middleware_stack.rb:72)

Take a look at your config/environment.rb file for the following:

config.action_controller.session = {
    :secret_key    => '_sample_session',
    :secret        => '00000000000000000000'
}

and change it to:

config.action_controller.session = {
    :key    => '_sample_session',
    :secret => '00000000000000000000'
}

My DSL is not that slow

By Darian Shimy, March 29, 2010 10:24 am

I went to download a file and saw the following estimated download times:

Although, DSL and Cable providers have been adding higher speeds to their offerings, isn’t it time to lump them together into ‘broadband.’

Can we ditch the Fax Machine yet?

By Darian Shimy, March 29, 2010 10:19 am

I recently needed to fax a document to Apple regarding the iPhone.  Here is the comment I added to the fax cover page:

You requested information to be sent via an obsolete technology.  Although a fax machine may look nice next to your mom’s 8-track collection, you really should consider using technologies that were developed after the mid-1970’s.  Just a thought.

Realtime Log Visualization

By Darian Shimy, December 10, 2009 2:00 pm

Erlend Simonsen put out a program called gltail that creates a graphical representation of your log files.

Screen shot 2009-12-10 at 2.04.53 PM

I saw this a long time ago, but last night I finally started playing with it. It works quite well. I needed to make a small change to support an SSH gateway which you can get here: http://github.com/dshimy/gltail.  On OS X, getting started was simple:

$ git clone git://github.com/dshimy/gltail.git
$ sudo gem install ruby-opengl file-tail

If you want the dots to bump each other, you need to install the Chipmunk physics library:

$ cd vendor/Chipmunk-4.1.0/ruby
$ ruby extconf.rb
$ sudo make install

Beyond that, tweak the configuration file and enjoy.

New Twitter Account

By Darian Shimy, October 26, 2009 2:53 pm

So as I mentioned earlier, I no longer show up in Twitter results.  I tried to get it fixed, but it’s not worth my time anymore.  I created another Twitter account with the same username.  The old account was renamed.  So if you were remotely interested in the minutia of what I was doing, you will need to re-follow me.

http://twitter.com/dshimy

I am still not in the results, but I heard it might take a while for new accounts to find their way.

Update: I’ve made it to search!

I’m Banned from Twitter Search

By Darian Shimy, October 22, 2009 12:22 am

twitter_logo_headerBeing in the Social Media Monitoring space, I often need to test certain functionality with Twitter Search.  For my account, this is very difficult.  For some reason, none of my tweets ever show up in Twitter Search.  Have I been blacklisted?  I know twitter search doesn’t access all tweets, but I figured it would have seen one of mine.

Well, I am not alone.  Twitter has a help desk article on the subject here.  I tried to create a ticket, but it looks like they were hiding the link.  No worries, Rails apps have easy to guess URLS, http://help.twitter.com/requests/new.

Submitted a ticket, we’ll see if anything comes from it.

pubsubhubbub Support

By Darian Shimy, October 21, 2009 3:04 pm

pubsubhubbub_logoJust added support for pubsubhubbub with a Wordpress Plugin.  Interested to see if my posts will appear in Google Reader any faster.  Probably not, but it can’t get much slower.  Which hubs are you using?

Amazon Knows Sexy

By Darian Shimy, October 18, 2009 10:24 am

I came across this product on Amazon.com under their sexy costumes.

amazon-sexy

Uh, yeah!

ReadWrite Real-Time Web Summit

By Darian Shimy, October 10, 2009 9:43 pm

This Thursday I’ll be at the ReadWrite Real-Time Web Summit in Mountain View, CA.  If anyone else is planning on attending, let me know.

SQL Logging to script/console

By Darian Shimy, October 10, 2009 9:37 pm

When running a Rails console session, a true time saver is directing the ActiveRecord logs to STDOUT instead of the log file.  This is easily accomplished adding the following to your ~/.irbrc file:

if rails_env = ENV['RAILS_ENV']
  # Called after the irb session is initialized and Rails has
  # been loaded (props: Mike Clark).
  IRB.conf[:IRB_RC] = Proc.new do
    ActiveRecord::Base.logger = Logger.new(STDOUT)
    ActiveRecord::Base.instance_eval { alias :[] :find }
  end
end

If someone knows the original author of these lines, let me know and I’ll give them proper attribution.

Panorama Theme by Themocracy