Teamcity status macro for Trac

I had a need to print the build status of our teamcity server in trac. After researching various solutions, I figured a trac macro would best fit. It was a surprisingly simple solution so I figured I would share it here.

I created a file called “TeamCityStatus.py” and placed it into my trac/plugins folder.

from urllib import urlopen
from trac.wiki.macros import WikiMacroBase

class TeamCityStatusMacro(WikiMacroBase):
“”"Inserts the current build status into the wiki page.”"”

def expand_macro(self, formatter, name, args):
res=urlopen(‘example.org/teamcity/externalStatus.html?withCss=true’).read()
return res

Obviously change the URL open line to match your teamcity installed location.

Then inside any wiki page on your trac site, just place the macro command “[[TeamCityStatus]]”. You should be good to go!

Posted in internet, programming, tech | Tagged , , , | 1 Comment

Oldest object ever observed


Occurring only 630 million years after the Big Bang, GRB 090423 detonated so early that astronomers had no direct evidence that anything explodable even existed back then. The faint infrared afterglow of GRB 090423 was recovered by large ground telescopes within minutes of being discovered. The afterglow is circled in the above picture taken by the large Gemini North Telescope in Hawaii, USA

Craziness.

Posted in science, space | Tagged , , | Leave a comment

f my life…

I’ve found a new pass time.

http://www.fmylife.com/

“Today, my friend drove me me to catch the 8 pm train. Running late, we screeched into the parking lot at 7:57, stopped the car in a ‘no stop’ zone. I said goodbye to my friend, sprinted to my train and barely made it. Then, with the train in motion, I noticed my friend’s car keys in my hand. FML”

Other people’s misery somehow always makes you feel better.

Posted in culture, internet, jaded, life, stoopid | Leave a comment

Pepper the Attack cat

Finally got around to posting this. It’s a bit on a long side as I tried to make the video fit the song. If I knew what I was doing, I would have shortened the song.

Posted in funny, personal, philly | Tagged , , | 1 Comment

quote for the day

…on the planet Earth, man had always assumed that he was more intelligent than dolphins because he had achieved so much–the wheel, New York, wars and so on–while all the dolphins had ever done was muck about in the water having a good time. But conversely, the dolphins had always believed that they were far more intelligent than man–for precisely the same reasons.

Douglas Adams

Posted in life, personal | Tagged , | Leave a comment

As the polls close…

“I find I’m so excited, I can barely sit still or hold a thought in my head. I think it is the excitement only a free man can feel, a free man at the start of a long journey whose conclusion is uncertain. I hope I can make it across the border. I hope to see my friend, and shake his hand. I hope the Pacific is as blue as it has been in my dreams. I hope.”

- Red, “The Shawshank Redemption”

A bit late I know, but even now, reading this, it gets me. I can’t take credit though, I found this quote used in this context here.

Posted in government, life, world | Tagged | Leave a comment