This file contains 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
# -*- coding: utf-8 -*- | |
from base64 import b64decode, b64encode | |
import hashlib | |
f = 'users.csv' | |
d = open(f).read() | |
d = d.decode('utf16') | |
username = raw_input('your ars username: ') |
This file contains 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
sql = "SELECT %(column)s FROM %(table)s" % { | |
'column': 'blah', | |
'table': 'mytable', | |
} |
This file contains 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
var D = Class.create(true); | |
D.namespace({ | |
meta: { | |
page: { | |
number: 0, | |
type: "other" | |
}, | |
user: { | |
loggedIn: false | |
}, |
This file contains 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
[arstechnica@hq js]$ grep -i individual site.js | |
[arstechnica@hq js]$ grep -i 'individual' site.js | |
[arstechnica@hq js]$ grep -i 'individual' site.js | |
[arstechnica@hq js]$ grep -i 'individual' site.js | |
[arstechnica@hq js]$ grep -i 'individual' site.js <--- Started the template re-building | |
if(com.arstechnica.common.body.hasClass('individual')) { <--- line appears! yay! | |
[arstechnica@hq js]$ grep -i 'individual' site.js | |
if(com.arstechnica.common.body.hasClass('individual')) { | |
[arstechnica@hq js]$ grep -i 'individual' site.js | |
if(com.arstechnica.common.body.hasClass('individual')) { |
This file contains 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
<div class="news-item-figure CenteredImage"> <!-- You can change centered image to ImageLeft/Right if you want --> | |
<div class="news-item-figure-image"> | |
<img src="http://arstechnica.com/cdn/columbine.jpg"/> | |
</div> | |
<div class="news-item-figure-caption"> | |
<div class="news-item-figure-caption-text">The catalyst behind society's disapproval of aggression: school shootings like Columbine in 1990s.</div> | |
</div> | |
</div> |
This file contains 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
<div class="news-item-figure ImageLeft" style="width:310px;"> | |
<table> | |
<thead> | |
<tr> | |
<th> | |
<em>The BBook of Geek: The Only Geek Humor Book You'll Ever Need</em> | |
</th> | |
</tr> | |
</thead> | |
<tbody> |
This file contains 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
(ars-django-project)[master][~/src/ars-django-project/arstechnica] ./manage.py syncdb | |
Traceback (most recent call last): | |
File "./manage.py", line 11, in <module> | |
execute_manager(settings) | |
File "/Users/clintecker/.virtualenvs/ars-django-project/lib/python2.5/site-packages/django/core/management/__init__.py", line 340, in execute_manager | |
utility.execute() | |
File "/Users/clintecker/.virtualenvs/ars-django-project/lib/python2.5/site-packages/django/core/management/__init__.py", line 295, in execute | |
self.fetch_command(subcommand).run_from_argv(self.argv) | |
File "/Users/clintecker/.virtualenvs/ars-django-project/lib/python2.5/site-packages/django/core/management/base.py", line 192, in run_from_argv | |
self.execute(*args, **options.__dict__) |
This file contains 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
>>> from xml.sax.saxutils import XMLGenerator | |
import xml # directory /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xml | |
import xml # from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xml/__init__.py | |
# can't create /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xml/__init__.pyc | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
ImportError: No module named sax.saxutils | |
>>> |
This file contains 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
<div class="CenteredImage"> | |
<object id="flashObj" width="640" height="521" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,47,0"><param name="movie" value="http://c.brightcove.com/services/viewer/federated_f9/4975783001?isVid=1&publisherID=184253309" /><param name="bgcolor" value="#FFFFFF" /><param name="flashVars" value="videoId=20833205001&playerID=4975783001&domain=embed&" /><param name="base" value="http://admin.brightcove.com" /><param name="seamlesstabbing" value="false" /><param name="allowFullScreen" value="true" /><param name="swLiveConnect" value="true" /><param name="allowScriptAccess" value="always" /><embed src="http://c.brightcove.com/services/viewer/federated_f9/4975783001?isVid=1&publisherID=184253309" bgcolor="#FFFFFF" flashVars="videoId=20833205001&playerID=4975783001&domain=embed&" base="http://admin.brightcove.com" name="flashObj" width="640" height="521" seamlesstabbing="false" type="application |
This file contains 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
[master][~/src/ars-technica-mt-bits] ./tools/run-periodic-tasks -v -d --sleep 1 | |
TheSchwartz::work_once got job of class 'MT::Worker::Publish', priority 10 | |
Working on MT::Worker::Publish ... | |
Publishing /Users/clintecker/src/ars-technica-mt-bits/published/telecom/news/2009/04/congress-wants-new-probe-for-p2p-file-sharing-snafus.ars, priority 10 | |
Deep recursion on subroutine "MT::Builder::build" at lib/MT/Template/ContextHandlers.pm line 4606. | |
Deep recursion on subroutine "MT::Template::Context::_hdlr_get_var" at lib/MT/Builder.pm line 396. | |
Deep recursion on subroutine "MT::Template::Context::var" at lib/MT/Template/ContextHandlers.pm line 3446. | |
Deep recursion on anonymous subroutine at lib/MT/Template/Context.pm line 171. | |
perl(54528) malloc: *** mmap(size=16777216) failed (error code=12) | |
*** error: can't allocate region |
OlderNewer