Skip to content

Instantly share code, notes, and snippets.

View rtyler's full-sized avatar

R. Tyler Croy rtyler

View GitHub Profile
LongCompileTest done with _verifytype.c
>>> LongCompileTest (1000000 iterations)
% cumulative self
time seconds seconds name
86.00 31.35 28.80 Template.py:341:compile
4.97 1.66 1.66 Template.py:128:valOrDefault
3.44 32.50 1.15 Performance.py:158:performanceSample
2.96 33.49 0.99 Performance.py:91:runTest
1.39 0.46 0.46 Template.py:333:_getCompilerClass
tyler@starfruit:~> sudo easy_install -U cheetah
Searching for cheetah
Reading http://pypi.python.org/simple/cheetah/
Reading http://www.CheetahTemplate.org/
Reading http://sourceforge.net/project/showfiles.php?group_id=28961
Best match: Cheetah 2.2.1
Downloading http://sourceforge.net/projects/cheetahtemplate/files/Cheetah/Cheetah-2.2.1.tar.gz
error: Unexpected HTML page found at http://sourceforge.net/projects/cheetahtemplate/files/Cheetah/Cheetah-2.2.1.tar.gz
tyler@starfruit:~>
13:40 < mzz> for python I just used the python.org one, but activestate python should've worked too
13:40 < rtyler> I'm but merely a caveman lawyer, your modern technologies scare me
13:41 < mzz> then I navigated the maze that is sourceforge to get the mingw automated installer and ran that, just clicking "next" like a madman
13:41 < mzz> then I removed the 'posix' check from Cheetah's SetupConfig.py
13:41 < rtyler> right
13:41 < rtyler> schweet, this might be easier than I hoped
13:41 < mzz> added c:\mingw\bin to %PATH%, ran c:\python25\python setup.py build_ext -fi --compiler=mingw32
13:42 < mzz> python 2.6 works too, I didn't try any others
13:42 < mzz> well, 2.5 compiled, 2.6 compiled and ran
13:42 < mzz> I'm assuming 2.5 would run too, but checking that would involve typing
#!/usr/bin/env python
import doctest
import sys
import unittest
from optparse import OptionParser
from util import context
from qa.rc import startup
import xmlrunner
<?xml version="1.0"?>
<project name="Urlencode" default="mvc" basedir=".">
<property name="debug" value="true" overwrite="false" />
<property name="project.name" value="Urlencode"/>
<property name="project.version" value="1.0.0"/>
<property name="library" value="Urlencode.dll"/>
<tstamp property="build.date" pattern="yyyyMMdd" verbose="true" />
<!-- These are being definde for posterity's sake, as they may change in the future -->
@rtyler
rtyler / foo.build.xml
Created August 24, 2009 07:00
Basic NAnt script for working with an ASP.NET MVC project with Mono
<?xml version="1.0"?>
<project name="MySite" default="mvc" basedir=".">
<property name="debug" value="true" overwrite="false" />
<property name="project.version" value="1.0.0"/>
<property name="library" value="MySite.dll"/>
<property name="test_library" value="MySite.Tests.dll"/>
<tstamp property="build.date" pattern="yyyyMMdd" verbose="true" />
<!-- These are being definde for posterity's sake, as they may change in the future -->
commit 7d43105ff76e4904a40d37049bf276ecab27a500
Author: R. Tyler Ballance <[email protected]>
Date: Wed Jul 22 14:33:30 2009 -0700
Add the custom strings for 'ready for QA' and 'pushed live'
diff --git a/lang/strings_english.txt b/lang/strings_english.txt
index 68081e6..ad48ac2 100644
--- a/lang/strings_english.txt
+++ b/lang/strings_english.txt
"Executor #0 for PyUnit Flexo Loopback 1 : executing topfriends-viral_comms #14" Id=66 RUNNABLE
at hudson.plugins.jabber.im.IMPublisher.getPreviousBuild(IMPublisher.java:230)
at hudson.plugins.jabber.im.IMPublisher.perform(IMPublisher.java:184)
at hudson.tasks.BuildStepMonitor.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild.perform(AbstractBuild.java:480)
at hudson.model.AbstractBuild.performAllBuildStep(AbstractBuild.java:466)
at hudson.model.AbstractBuild.performAllBuildStep(AbstractBuild.java:454)
at hudson.model.Build.post2(Build.java:146)
at hudson.model.AbstractBuild.post(AbstractBuild.java:438)
at hudson.model.Run.run(Run.java:1129)
Archive: rhino.jar
Length Date Time Name
-------- ---- ---- ----
0 12-03-08 18:03 META-INF/
197 12-03-08 18:03 META-INF/MANIFEST.MF
0 12-03-08 18:02 org/
0 12-03-08 18:02 org/mozilla/
0 12-03-08 18:02 org/mozilla/classfile/
0 12-03-08 18:03 org/mozilla/javascript/
0 12-03-08 18:02 org/mozilla/javascript/debug/
#!/usr/bin/env python
import feedparser
import pynotify
import time
BASE_TITLE = 'Hudson Update!'
TIMEOUT = 3000
def success(job, build):
n = pynotify.Notification(BASE_TITLE,