This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## FAIL | |
| ## Attempting to iterate (chunkily) over 2000 records and instantiating 1 single object per iteration | |
| ## All of the below bloat to > 200MB on rails 2.3.x | |
| # iterates in chunks of 10 | |
| User.find_each(:batch_size => 10) do |user| | |
| date = user.posts.find(:first).created_at | |
| end | |
| # iterates in chunks of 100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "Deployanatoring teh codez!" | |
| ssh linode-deploy ' | |
| cd /data/alonetone/current; | |
| if [[ $(git diff) > "" ]]; | |
| then | |
| echo "WARNING: local changes on server, exiting!"; | |
| exit 0; | |
| fi; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.addEvent('click:relay(a)', function(event, link) { | |
| console.log('stopped event'); | |
| event.stop(); | |
| (function() { | |
| console.log('sending google trackEvent'); | |
| var pageTracker = _gat._getTracker('UA-241978-7'); | |
| pageTracker._trackEvent('external', link.get('href')); | |
| window.open(link.get('href')); | |
| }).delay(100); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Option 6b — Tabular (modified to remove numbering) | |
| =============================================================================================== | |
| = ERROR: Cannot print the DSL for a module as no module name was given. | |
| =============================================================================================== | |
| BACKTRACE | |
| Function Line Source | |
| ——————————————————————————————————————————————————————————————————————————————————————————————— | |
| main() 76 /usr/local/bin/bdsm | |
| extension_action() 152 /usr/local/bdsm/modules/bash/extensions/dsl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ~rtomayko/.screenrc | |
| # ------------------------------------------------------------------- | |
| # Settings | |
| # ------------------------------------------------------------------- | |
| crlf off # No Microsoft linebreaks | |
| startup_message off # bypass GPL notice (we're aware) | |
| defscrollback 15000 # big scrollback | |
| shell bash # don't start login shells | |
| shelltitle "" # no title by default - set in PS1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
| # defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
| module Player | |
| describe MovieList, "with optional description" do | |
| it "is pending example, so that you can write ones quickly" | |
| it "is already working example that we want to suspend from failing temporarily" do | |
| pending("working on another feature that temporarily breaks this one") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Amateur comes from the Latin root meaning “to love.” The conventional interpretation is that the amateur pursues his calling out of love, while the pro does it for money. Not the way I see it. In my view, the amateur does not love the game enough. If he did, he would not pursue it as a sideline, distinct from his “real” vocation. The professional loves it so much he dedicates his life to it. He commits full-time. That’s what I mean when I say turning pro. Resistance hates it when we turn pro. | |
| The artist committing himself to his calling has volunteered for hell: a diet of isolation, rejection, self-doubt, despair, ridicule, contempt, and humiliation. | |
| The amateur, on the other hand, overidentifies with his avocation, his artistic aspiration. He defines himself by it. He is a musician, a painter, a playwright. Resistance loves this. Resistance knows that the amateur composer will never write his symphony because he is overly invested in its success and overterrified of its failure. The amateur takes it so ser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [sudara@ramen:~/Sites/bach/scripts(master)]$ ./note_count.rb | |
| BWV772-JohnSankey.mid | |
| 508 notes | |
| BWV773-JohnSankey.mid | |
| 737 notes | |
| BWV774-JohnSankey.mid | |
| 557 notes | |
| BWV775-JohnSankey.mid | |
| 591 notes | |
| BWV776-JohnSankey.mid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| There is still so much unexplored territory. The western world's idea of what a concert should be is limited and homogenous. We go to see a single rock artist play through a CD of tunes, the selections more or less preset and expected. We go to a classical concert, note for note the music is played from the score. With jazz we hear the same standards and riffs from the same masters on repeat, the vocabulary more or less codified decades ago. | |
| I love live music. I love my favorite bands. I love jazz and I love classical music. And electronic music of all varieties. | |
| But where is the evolution? Am I alone in wanting a musical event that might possibly transverse multiple genres without decaying into second rate imitation, cheesy homages or tangents that the audience endures because the artist is certain to please the crowd again after the detour? | |
| We live in a world where at the snap of a finger we can listen to music falling anywhere on both a horizontal axis (cross-genre, cross-tradition/language) and vertic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ ab -n100 -c3 -t 10 http://localhost/ | |
| This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
| Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
| Licensed to The Apache Software Foundation, http://www.apache.org/ | |
| Benchmarking localhost (be patient) | |
| Finished 116 requests | |
| Server Software: Apache/2.2.22 |