Skip to content

Instantly share code, notes, and snippets.

View etrepum's full-sized avatar
😎
Currently retired

Bob Ippolito etrepum

😎
Currently retired
View GitHub Profile
Traceback (most recent call last):
File "/mochi/opt/app-env/py27-ticket16883/lib/python2.7/site-packages/Blogofile-0.7.0-py2.7.egg/blogofile/writer.py", line 147, in template_render
return template.render(**attrs)
File "/mochi/opt/app-env/py27-ticket16883/lib/python2.7/site-packages/Mako-0.3.5-py2.7.egg/mako/template.py", line 189, in render
return runtime._render(self, self.callable_, args, data)
File "/mochi/opt/app-env/py27-ticket16883/lib/python2.7/site-packages/Mako-0.3.5-py2.7.egg/mako/runtime.py", line 403, in _render
_render_context(template, callable_, context, *args, **_kwargs_for_callable(callable_, data))
File "/mochi/opt/app-env/py27-ticket16883/lib/python2.7/site-packages/Mako-0.3.5-py2.7.egg/mako/runtime.py", line 434, in _render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/mochi/opt/app-env/py27-ticket16883/lib/python2.7/site-packages/Mako-0.3.5-py2.7.egg/mako/runtime.py", line 457, in _exec_template
[Timer] Timings:
[Timer] annotate --- 1007.2 s
[Timer] rtype_lltype --- 530.8 s
[Timer] pyjitpl_lltype --- 607.4 s
[Timer] backendopt_lltype --- 203.2 s
[Timer] stackcheckinsertion_lltype --- 66.0 s
[Timer] database_c --- 9.3 s
[Timer] ===========================================
[Timer] Total: --- 2424.0 s
[translation:ERROR] Error:
diff -r 8f177a7e05f5 pypy/rpython/memory/gc/env.py
--- a/pypy/rpython/memory/gc/env.py Tue Mar 15 14:10:00 2011 -0400
+++ b/pypy/rpython/memory/gc/env.py Tue Mar 15 14:41:48 2011 -0400
@@ -99,8 +99,9 @@
def get_total_memory():
return get_total_memory_linux2('/proc/meminfo')
-#elif sys.platform == 'darwin':
-# ...
+elif sys.platform == 'darwin':
(py27-ticket16883)[bob@ba pypy]$ python pytest.py pypy/translator/c/gcc/test/
============================= test session starts ==============================
platform darwin -- Python 2.7.1 -- pytest-2.0.3.dev1
pytest-2.0.3.dev1 from /Users/bob/src/pypy/pytest.pyc
collected 253 items
pypy/translator/c/gcc/test/test_asmgcroot.py ....................................................ssssssssssssssssssssssssssssssssssssssssssssssssssssEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE................................................s.
pypy/translator/c/gcc/test/test_thread.py ...
pypy/translator/c/gcc/test/test_trackgcroot.py ............................................
diff -r a688b3d51be2 pypy/translator/platform/posix.py
--- a/pypy/translator/platform/posix.py Tue Mar 15 15:05:44 2011 -0400
+++ b/pypy/translator/platform/posix.py Tue Mar 15 18:28:27 2011 -0400
@@ -139,6 +139,7 @@
('CFLAGS', cflags),
('CFLAGSEXTRA', list(eci.compile_extra)),
('LDFLAGS', linkflags),
+ ('LDFLAGS_LINK', list(self.link_flags)),
('LDFLAGSEXTRA', list(eci.link_extra)),
('CC', self.cc),
@etrepum
etrepum / gist:1038423
Created June 21, 2011 17:45
Reference Mochi gateway
#!/usr/bin/env python
from urllib import quote
import hashlib
from twisted.internet import reactor
from twisted.web import server, resource
CROSSDOMAIN_XML = """<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
@etrepum
etrepum / gist:1189868
Created September 2, 2011 20:45
twisted unicode hatred
>>> buffer(u'fuck you', 0, 10)[:]
'f\x00u\x00c\x00k\x00 \x00'
>>> from cStringIO import StringIO
>>> sio = StringIO(); sio.write(u'fuck you'); sio.getvalue()
'fuck you'
@etrepum
etrepum / BinarySortableSerDe.py
Created November 5, 2011 00:14
# Implementation of BinarySortableSerDe for Python
# Implementation of BinarySortableSerDe for Python
from struct import pack, unpack, unpack_from
from itertools import izip
class Schema(object):
def __init__(self, name):
self.name = name
def __repr__(self):
return self.name
@etrepum
etrepum / gist:1468046
Created December 12, 2011 16:10
Broken Facebook JS (line 70?)
if(typeof deconcept=="undefined")var deconcept={};if(typeof deconcept.util=="undefined")deconcept.util={};if(typeof deconcept.SWFObjectUtil=="undefined")deconcept.SWFObjectUtil={};deconcept.SWFObject=function(h,d,j,c,i,a,f,l,g,b){if(!document.getElementById)return;this.DETECT_KEY=b?b:'detectflash';this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params={};this.variables={};this.attributes=[];this.fallback_html='';this.fallback_js_fcn=function(){};if(h)this.setAttribute('swf',h);if(d)this.setAttribute('id',d);if(j)this.setAttribute('width',j);if(c)this.setAttribute('height',c);this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(i){if(!(i instanceof Array))i=[i];var k;i.each(function(n){k=new deconcept.PlayerVersion(n.toString().split('.'));if(k.major==this.installedVer.major){this.setAttribute('version',k);return;}else if(!this.getAttribute('version')||k.major<this.getAttribute('version').major)this.setAttribute('version',k);}.bind(this));}if(!window.opera&&document.all&&thi
@etrepum
etrepum / gist:1627358
Created January 17, 2012 16:30
table_increment/3
table_increment(Table, Key, Value) ->
try
ets:update_counter(Table, Key, Value)
catch
error:badarg ->
ets:insert_new(Table, {Key, 0}),
ets:update_counter(Table, Key, Value)
end.