Better Ruby.
I hear a lot of people calling themselves a “lead” developer in Toronto, because they know the require gem function in ruby. If you want to be ‘lead' at least sound like this guy!
Anyways the script was a dirty hack, and turned out to be pretty linear in what it does. It can clearly be improved significantly with parallel connections (see image, on bandwidth in and bandwidth out network graphs being “peaky”).
Here’s a case where the difference between an hour completion and 15 minutes wasn’t worth the 3 minutes of code implementation. If that makes any sense…. It’s the hackers’ trade-off. Human effort-time is far more expensive than human wait-time.
Happy Hacking.
https://gist.github.com/D3MZ/6135445
http://www.youtube.com/watch?v=1CdOEs2NR30&feature=youtube_gdata_player
http://www.youtube.com/watch?v=_5_8PJS21cU&feature=youtube_gdata_player
http://www.youtube.com/watch?v=iN7j-V_Xr70&feature=youtube_gdata_player
http://www.youtube.com/watch?v=uj3NXHpM4p8&feature=youtube_gdata_player
http://www.youtube.com/watch?v=f-jfzthjmks&feature=youtube_gdata_player
http://www.youtube.com/watch?v=DKEQ0cQFgpA&feature=youtube_gdata_player
http://www.youtube.com/watch?v=JtfZcIl0nog&feature=youtube_gdata_player
http://www.youtube.com/watch?v=R3SbGtzJAWw&feature=youtube_gdata_player
http://www.youtube.com/watch?v=fa94XP6z4-w&feature=youtube_gdata_player
http://www.youtube.com/watch?v=jjLdAjrwwxU&feature=youtube_gdata_player
http://www.youtube.com/watch?v=wiws4a4_m-g&feature=youtube_gdata_player
http://www.youtube.com/watch?v=Gk1Aqmzi8ZA&feature=youtube_gdata_player
http://www.youtube.com/watch?v=Tvg4wbLqAWI&feature=youtube_gdata_player
http://www.youtube.com/watch?v=RghXsgFIx5M&feature=youtube_gdata_player
http://www.youtube.com/watch?v=7Z-9CiAIXPk&feature=youtube_gdata_player
http://www.youtube.com/watch?v=uzG_mBmMfkU&feature=youtube_gdata_player
http://www.youtube.com/watch?v=mjNKg7AO5P0&feature=youtube_gdata_player
http://www.youtube.com/watch?v=JvzKgUSjc1Q&feature=youtube_gdata_player
http://www.youtube.com/watch?v=NwFvwlvEbDs&feature=youtube_gdata_player
http://www.youtube.com/watch?v=E89h0w-YJiA&feature=youtube_gdata_player
http://www.youtube.com/watch?v=bjYrK5UyPzE&feature=youtube_gdata_player
http://www.youtube.com/watch?v=4qM7YrJVWxo&feature=youtube_gdata_player
http://www.youtube.com/watch?v=H_cFJRmfVn4&feature=youtube_gdata_player
http://www.youtube.com/watch?v=i0NZVLb6if0&feature=youtube_gdata_player
http://www.youtube.com/watch?v=TlksWvqHdT0&feature=youtube_gdata_player
http://www.youtube.com/watch?v=SrRTAYINB0g&feature=youtube_gdata_player
http://www.youtube.com/watch?v=iIVnTkDEyuA&feature=youtube_gdata_player
http://www.youtube.com/watch?v=Fm7GoSkEXWE&feature=youtube_gdata_player
http://www.youtube.com/watch?v=NfjV_ouobmQ&feature=youtube_gdata_player
http://www.youtube.com/watch?v=EYnn1mwVNfg&feature=youtube_gdata_player
http://www.youtube.com/watch?v=f1x7BFwfbiA&feature=youtube_gdata_player
http://www.youtube.com/watch?v=H7KwiSo_6RY&feature=youtube_gdata_player
http://www.youtube.com/watch?v=pkjbcfSIwt0&feature=youtube_gdata_player
http://www.youtube.com/watch?v=WZ0UvuMART8&feature=youtube_gdata_player
http://www.youtube.com/watch?v=NCUx9YIlo7s&feature=youtube_gdata_player
http://www.youtube.com/watch?v=isVWkPzcv_M&feature=youtube_gdata_player
http://www.youtube.com/watch?v=zy19CEdG5PI&feature=youtube_gdata_player
http://www.youtube.com/watch?v=xT2v-fuiNHg&feature=youtube_gdata_player
http://www.youtube.com/watch?v=fzCjA61iaKo&feature=youtube_gdata_player
http://www.youtube.com/watch?v=k8xImvXhb8c&feature=youtube_gdata_player
http://www.youtube.com/watch?v=p4BJ0On_Y5w&feature=youtube_gdata_player
http://www.youtube.com/watch?v=-tRxhAr6U3k&feature=youtube_gdata_player
http://www.youtube.com/watch?v=P_NiQx2jndw&feature=youtube_gdata_player
http://www.youtube.com/watch?v=1KikIHc4iwc&feature=youtube_gdata_player
http://www.youtube.com/watch?v=Tk3iTzQekNQ&feature=youtube_gdata_player
http://www.youtube.com/watch?v=ptqzE_3frmY&feature=youtube_gdata_player
http://www.youtube.com/watch?v=MoWbhxGYu-M&feature=youtube_gdata_player
http://www.youtube.com/watch?v=ILLkKMR90WE&feature=youtube_gdata_player
http://www.youtube.com/watch?v=62FR_b46iZQ&feature=youtube_gdata_player
http://www.youtube.com/watch?v=-_uweCLv86w&feature=youtube_gdata_player
http://www.youtube.com/watch?v=k1_zA7iklTQ&feature=youtube_gdata_player
http://www.youtube.com/watch?v=ouoUQCTMNSo&feature=youtube_gdata_player
http://www.youtube.com/watch?v=dnA6IRlK0h8&feature=youtube_gdata_player
http://www.youtube.com/watch?v=xoZcxLW7X78&feature=youtube_gdata_player
http://www.youtube.com/watch?v=2UZfAG0WbSM&feature=youtube_gdata_player
http://www.youtube.com/watch?v=7mAMWl0T9Pk&feature=youtube_gdata_player
http://www.youtube.com/watch?v=QMdM-gkSOLU&feature=youtube_gdata_player
http://www.youtube.com/watch?v=lE-Im2xWbO0&feature=youtube_gdata_player
http://www.youtube.com/watch?v=sa6Qh2ud7Jc&feature=youtube_gdata_player
http://www.youtube.com/watch?v=8W1a9cfxVys&feature=youtube_gdata_player
http://www.youtube.com/watch?v=BRuIWoRpFD4&feature=youtube_gdata_player
http://www.youtube.com/watch?v=g2zg3ocQsrQ&feature=youtube_gdata_player
http://www.youtube.com/watch?v=SJISwba0_7s&feature=youtube_gdata_player
http://www.youtube.com/watch?v=KPDEOsn3Kq0&feature=youtube_gdata_player
http://www.youtube.com/watch?v=W1MjCFZR_cI&feature=youtube_gdata_player
http://www.youtube.com/watch?v=uKaroO4kpwA&feature=youtube_gdata_player
http://www.youtube.com/watch?v=i5D0PtlZd-I&feature=youtube_gdata_player
http://www.youtube.com/watch?v=9fWh82a3cEY&feature=youtube_gdata_player
http://www.youtube.com/watch?v=o3hJp6e0USE&feature=youtube_gdata_player
http://www.youtube.com/watch?v=ALEfIhC_pUE&feature=youtube_gdata_player
http://www.youtube.com/watch?v=JfoyccnaFBc&feature=youtube_gdata_player
http://www.youtube.com/watch?v=MGj2_uL7FZ0&feature=youtube_gdata_player
http://www.youtube.com/watch?v=V2FzbjswA7k&feature=youtube_gdata_player
http://www.youtube.com/watch?v=yETed97sRx4&feature=youtube_gdata_player
http://www.youtube.com/watch?v=xERlQikCroo&feature=youtube_gdata_player
http://www.youtube.com/watch?v=smTQQWIolLk&feature=youtube_gdata_player
http://www.youtube.com/watch?v=T18J6UIYYvo&feature=youtube_gdata_player
http://www.youtube.com/watch?v=t6je-Nl7P58&feature=youtube_gdata_player
http://www.youtube.com/watch?v=f1Pd6dodrJ4&feature=youtube_gdata_player
http://www.youtube.com/watch?v=D1IqT1KzEak&feature=youtube_gdata_player
http://www.youtube.com/watch?v=Ve_X7ObyqDs&feature=youtube_gdata_player
http://www.youtube.com/watch?v=mJczhkHwulo&feature=youtube_gdata_player
http://www.youtube.com/watch?v=s9cDUulFhsI&feature=youtube_gdata_player
http://www.youtube.com/watch?v=Ztf3-mmL27w&feature=youtube_gdata_player
http://www.youtube.com/watch?v=NH6HPBGnoLs&feature=youtube_gdata_player
http://www.youtube.com/watch?v=UFuF_Oe2LNg&feature=youtube_gdata_player
http://www.youtube.com/watch?v=db9SCG2YBVg&feature=youtube_gdata_player
http://www.youtube.com/watch?v=3quwYIPqvaQ&feature=youtube_gdata_player
http://www.youtube.com/watch?v=L-0oM16YPmY&feature=youtube_gdata_player
http://www.youtube.com/watch?v=cWTng9-l8QE&feature=youtube_gdata_player
http://www.youtube.com/watch?v=Ry3l73hJlwM&feature=youtube_gdata_player
http://www.youtube.com/watch?v=i7ulTbHyUw4&feature=youtube_gdata_player
http://www.youtube.com/watch?v=nxxzGM-7rBo&feature=youtube_gdata_player
http://www.youtube.com/watch?v=E8g8fMQmwlg&feature=youtube_gdata_player
http://www.youtube.com/watch?v=pBreTc6xZMQ&feature=youtube_gdata_player
http://www.youtube.com/watch?v=rUSA_OA5tW8&feature=youtube_gdata_player
http://www.youtube.com/watch?v=1bRwNvie-68&feature=youtube_gdata_player
http://www.youtube.com/watch?v=NuX1r81kMQM&feature=youtube_gdata_player
http://www.youtube.com/watch?v=fegjbe4KZf8&feature=youtube_gdata_player
http://www.youtube.com/watch?v=SWBKlSWXShQ&feature=youtube_gdata_player
http://www.youtube.com/watch?v=g4Bx7FAHwz8&feature=youtube_gdata_player
http://www.youtube.com/watch?v=Tx8jWbUJ37o&feature=youtube_gdata_player
http://www.youtube.com/watch?v=j_ohg6E_Un4&feature=youtube_gdata_player
http://www.youtube.com/watch?v=2701wV3Ua54&feature=youtube_gdata_player
http://www.youtube.com/watch?v=AuX5yGw1TLc&feature=youtube_gdata_player
http://www.youtube.com/watch?v=C–qvxMRbiU&feature=youtube_gdata_player
http://www.youtube.com/watch?v=lybj90P29mQ&feature=youtube_gdata_player
http://www.youtube.com/watch?v=Er1T417L5kY&feature=youtube_gdata_player
http://www.youtube.com/watch?v=CEtn-vMMJx4&feature=youtube_gdata_player
http://www.youtube.com/watch?v=b6fY1fkldUo&feature=youtube_gdata_player
http://www.youtube.com/watch?v=8tboh2qwZPc&feature=youtube_gdata_player
http://www.youtube.com/watch?v=Ra2kPUVTp6A&feature=youtube_gdata_player
http://www.youtube.com/watch?v=dtFhXHhYadI&feature=youtube_gdata_player
http://www.youtube.com/watch?v=95jFg2P_Tdg&feature=youtube_gdata_player
http://www.youtube.com/watch?v=lxnDhMxy5t0&feature=youtube_gdata_player
http://www.youtube.com/watch?v=JyzYa5jPg4k&feature=youtube_gdata_player
http://www.youtube.com/watch?v=JBF0gAOZ0ks&feature=youtube_gdata_player
http://www.youtube.com/watch?v=oIW-KRYrrpk&feature=youtube_gdata_player
http://www.youtube.com/watch?v=9TnUrXMClyw&feature=youtube_gdata_player
http://www.youtube.com/watch?v=WGtia27kKzA&feature=youtube_gdata_player
http://www.youtube.com/watch?v=CUuCDNfS_4A&feature=youtube_gdata_player