Delicious Links - 19 links - tips, google, music, code, blogging

Weekly Links

This is my weekly collection of the best stuff I saw on the Internet. They’re saved on delicious and stumbleupon and cross-posted to Twitter and Tumblr as they happen and then collected together for my blog on Internet Duct Tape.

Subscribe to Internet Duct Tape using RSS or using email.

This Week at Internet Duct Tape

Internet Duct Tape is my blog where I talk about software, technology, blogging and other geeky subjects.

This Week at IDT Labs

IDT Labs is where I announce new software tools I’m working on.

  • [TUMBLR] Regular Post Digest of the Last X Days
    • Build a list of the last X regular posts from your Tumblr account in the past Y days. Useful for doing weekly digest posts with Yahoo Pipe Cleaner
  • [TUMBLR] Delete your Tumblr with TumblrCleanr 0.0.1
    • There’s one Tumblr feature that’s missing: how do you delete your Tumblr? At some point you might want to destroy all traces of your tumblr (privacy concerns, or you want to use it for something else) and there isn’t an option to do that — other than click the delete button on every…

This Week at Ruby, eh?

Ruby, eh? is where I blog/tumble about the Ruby programming language.

  • Rake RDocTask with all of the options stubbed out
    • http://pastie.caboo.se/159372  Rake::RDocTask.new(:rdoc) do |rd| # rd.external # run the rdoc process as an external shell # rd.main = “name” # ‘name’ will be the initial page displayed # rd.rdoc_dir = “html” # set the output directory # rd.rdoc_file = [] # List of files…
  • Rake: Recursively parse a list of all the requires from a source file
    • There’s probably an easier way to do this. http://pastie.caboo.se/159362  # Recursively parse a list of all the requires from a source file def local_requires(source) results = [] File.open(source,’r').each_line do |line| if line =~ /require ['"]([^'"]+)['"]/…
  • I Can Has RSS?I’ve switched to FeedBurner for RSS support . And set up full feeds, thanks to Alex . (I had no idea that they were turned off!)
  • Bulk updating Gem sourcegem install allison Bulk updating Gem source index for: http://gems.rubyforge.org I swear to god that rubyforge is actually a humongous peer to peer network made up from stealing our bandwidth when we do a gem install.
  • Rake Tip: force tasks to run based on operating systemhttp://pastie.caboo.se/158812 task :windows_only do raise “Must be run from Windows, not #{RUBY_PLATFORM}” unless RUBY_PLATFORM =~ /mswin/ end task :linux_only do raise “Must be run from Linux, not #{RUBY_PLATFORM}” unless RUBY_PLATFORM =~ /linux/ end
  • Rake TipBAD: s.gsub(/.rb$/,’.exe’) GOOD:  File.basename(s).ext(‘exe’)
  • Rails: how to delete ActiveRecords to a recycling bin
    • The contenders: acts_as_paranoid - 2005-09-17  Creates a delete_at column and overrides finders to ignore columns with deleted_at set. Last release was 2005-12-20, about 1600 downloads. Around ~100 blog mentions. This guy is using it instead of acts_as_trashable   Reported not working on…
  • validates_presence_of and validates_length_of
    • Pick one : validates_presence_of :snausages validates_length_of :snausages, :maximum => 3 OR validates_length_of :snausages, :maximum => 3, :allow_nil => true I broke my app because of not including allow_nil grep validates_length_of app/models/*.rb | grep -v allow_nil // engtech  …

Tags: , , , , ,

One Trackback

  1. By Twitter Airlines « Changing Way on March 02, 2008 at

    [...] be missing a core - and maybe the most important - feature of Twitter: No spam or trolls. Thanks to engtech for the link. Russell is right that this feature is remarkable, given that Twitter has a million [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*