Learnings for Week 22 2010

  • grep -rl ‘structure_dump’ . to recursivly search through a folder for the given string. mvim `grep..` to open them up.
  • alias ls=‘ls -GF’ so that ls is colored in all consoles.
  • nvarchar in SQLServer takes a limit from 0 to 4000 OR the keyword MAX. MAX != 4000, it is actually much larger.
  • When using Rails and the JDBC adapter queries SQLServer for nvarchar columns it gets the value back for limit, which when created with MAX is much larger than a limit you can use. This comes up when trying to create the database from schema.rb (testing).
  • Phocus gem to temporarily focus some tests, ignoring all others, even across test classes.
  • Harmony provides a simple DSL to execute javascript + DOM code within ruby.
  • Holy Grail execute browser-less, console-based, javascript + DOM code right from within your Rails test suite.
Posted June 15, 2010

Comments

comments powered by Disqus