Sarah Mei's blog
Is it possible in Jasmine to spy on a getter such as
myObject[key]? We want to know when local storage is accessed.
No. Jasmine's spyOn only works with functions, and in JavaScript getters are not implemented as functions.
Local storage has a functionally equivalent getValue function, which you can spy on, but the spy is not triggered when you access the value via [].
Interesting:
On unicorn, the random number generator is seeded before the fork. So if you are depending on a set of unicorns to generate different random numbers, you need to reseed the random number generator manually after the fork.
If you want to make absolutely sure you aren't generating any queries in your Rails views, try no_querying_views - which explodes if your query comes from view code.
Other ways to track down inefficient queries that folks have successfully used: bullet and query_reviewer
Skype 5 beta is out for Mac, which allows group video chat. Everyone must be on the beta for it to work.
Help:
We made a branch in git called "--track" by accident, and now we can't get rid of it. git thinks it's a command-line argument, even when it's in quotes.
Here's the command what did it:
$ git checkout -b --track origin/actual_branch_name Branch --track set up to track remote branch refs/remotes/origin/actual_branch_name. Switched to a new branch "--track"
Consensus: kill it through RubyMine or gitX. There is also a way through the command line:
$ git branch -d -- --track
...but make sure you get the dashes in all the right places.
Interesting:
reset after tail - sometimes, if your PS1 has colors (or square brackets, or ... ?) you can lose your Terminal after tailing a file. To get it back, type
reset, which should work even if you can't see it echoing. You may need an extra return before it.The Giants seem to have won! There's a parade tomorrow, right in front of the office. If you're coming for the tech talk, leave extra time as streets will be closed and they're expecting a crowd.
