Skip to content

Instantly share code, notes, and snippets.

$ rvm info | grep gem:
gem: "/Users/bill/.rvm/gems/ruby-1.8.7-p302"
gem: "/Users/bill/.rvm/rubies/ruby-1.8.7-p302/bin/gem"
$ ls .rvm/gems/ruby-1.8.7-p302/gems/ | grep yard
yard-0.6.1/
yard-0.6.4/
$ irb
ruby-1.8.7-p302 > require 'yard'
Google Public DN ####### 21.89
UltraDNS-2 ######### 29.21
OpenDNS-2 ########## 32.04
Level 3/GTEI-2 ########## 33.47
DynGuide ########## 33.82
Level 3/GTEI-3 ########### 36.14
Level3-R2 ############# 45.35
DataPoint Intern ############### 50.55
Internal 192-168 ################################# 116.30
SYS-10.99.99.52 ################################### 121.29
/* ed: line 126-143 of enum.c */
/*
* call-seq:
* enum.count -> int
* enum.count(item) -> int
* enum.count {| obj | block } -> int
*
* Returns the number of items in <i>enum</i>, where #size is called
* if it responds to it, otherwise the items are counted through
* enumeration. If an argument is given, counts the number of items
http://www.darnet.ru/humor/pics/new/%C7%D5%D3%C5%CE%C9%C3%D9/gusenici.htm
diff -r d171fde9e454 serve.py
--- a/serve.py Tue Mar 01 22:40:55 2011 +0100
+++ b/serve.py Wed Mar 30 19:56:46 2011 -0400
@@ -52,6 +52,11 @@
app = cherrypy.tree.mount(webapp, '/', os.path.join(self.conf_path, "app.cfg"))
self.make_rotate_logs(app)
+ #let's make sure that our temp dir exists
+ tmppath = app.config['/']['tools.sessions.storage_path']
+ if not os.path.exists(tmppath):

Covore live API: message kinds

  • message
  • message-delete
  • topic
  • topic-delete
  • topic-rename
  • login
  • logout
[translation:ERROR] Error:
[translation:ERROR] Traceback (most recent call last):
[translation:ERROR] File "translate.py", line 306, in main
[translation:ERROR] drv.proceed(goals)
[translation:ERROR] File "/Users/bill/code/git-pypy/pypy/translator/driver.py", line 809, in proceed
[translation:ERROR] return self._execute(goals, task_skip = self._maybe_skip())
[translation:ERROR] File "/Users/bill/code/git-pypy/pypy/translator/tool/taskengine.py", line 116, in _execute
[translation:ERROR] res = self._do(goal, taskcallable, *args, **kwds)
[translation:ERROR] File "/Users/bill/code/git-pypy/pypy/translator/driver.py", line 286, in _do
[translation:ERROR] res = func()
$ git remote show upstream
* remote upstream
Fetch URL: http://github.com/philc/vimium.git
Push URL: http://github.com/philc/vimium.git
HEAD branch: master
Remote branches:
bookmarks tracked
filter-hints tracked
master tracked
Local ref configured for 'git push':
/* This is from http://code.google.com/p/concurrentlinkedhashmap/wiki/BloomFilter, I just copied it here so I can link to a line of it */
import static java.lang.Long.bitCount;
import static java.lang.Long.toBinaryString;
import static java.lang.Math.abs;
import static java.lang.Math.ceil;
import static java.lang.Math.exp;
import static java.lang.Math.log;
import static java.lang.Math.max;
import static java.lang.Math.pow;
Mar, 10 2011
Vanity Fair reporter freak-out
Vanity Fair had an article about Stuxnet. Here’s some background information on
this creative piece of embarrassment.
Vanity Fair’s writer Michael Joseph Gross visited us last year. I agreed to
spend two days with him as I thought it could be helpful to spread the message
about the threat posed by Stuxnet-inspired malware well behind technical
publications. On his request, I explained Gross in detail what control systems