|
|
You are viewing the most recent 25 entries.
7th September 2008
oneagain @ 10:39am: Harvest Festival today in East Boston featuring ENSMB and the Silkworms
 Weather and company permitting, I will be going today: http://www.thesilkworms.org/I called a few minutes ago and as of then, they had not canceled yet due to weather...not a bad idea to check before you go, though.
kynn @ 7:03am: Today's Twitter Posts
 I recently posted these to my twitter:
Via LoudTwitter.
quezz @ 9:52am: In case you thought Canada was a safe haven...
http://www.nytimes.com/aponline/world/AP-Canada-Election.html?_r=1&partner=rssnyt&emc=rss&oref=sloginNorway. Let's see about Norway.
Current Mood:  anxious
fuzcat @ 9:45am:
 Waitingin in emergancy room. Fun fun fun! I droped a bottle on my foot last night. I figured it would be better by today. I was wrong.
tcb @ 9:20am: Rock Band tonight, anyone?
 We finally got the PS3 to match our copy of Rock Band that we bought in February. Anyone interested in playing some Rock Band tonight? I only have one guitar at the moment, but more is always better when rocking out. I'm thinking 6ish..
the_barticus @ 5:32am: IMG_3526
 Stupid cute animals. They know when they are having their picture taken so it can be used to find them a new home. It is a finely honed defense mechinism.
choirsoftheeye @ 8:06am:
 While you may be able to make up the picture in dorianx's journal, you unfortunately can't make this shit up. Watch the youtube video in the link and get angry!
nezumiko @ 1:29am: A mantra
 I am filled with lightness, trust, surety, happiness, and faith. I am pure and whole, as my maker created me. My way will open before me as I approach each turning in my path. I am made for, and create, abundance and joy. I am deeply loved, and always have been.
nezumiko @ 12:46am: A prayer
 Holy one, free me from bitterness, suspicion, fear, anger and despair. Lift the stain from my heart. Help me to know my true purpose, to make right choices, to be a good person, to be a good friend. Take away my harmful thoughts. Let me not be petty, but generous. Not passive, but straight forward. Not hasty, but deliberate. Not fragile, but sturdy. Not demanding, but understanding. Let me not lose sight of your presence in my life. Let me experience your love through the love of others. Let me experience your love even when I am alone. Heal my relationships, I can't do it on my own. Heal my heart, I can’t do it on my own. Heal, oh God, my connection with you.
jbsegal @ 3:49am: It's been a day.
 Starting out as a very bad one, as part of the long - and can stop ANY TIME NOW - snit of the universe, and moving on to one that - while I'm still very sad for hammercock and her family - I'm feeling more balanced than I have been for a while. I don't know how long it will last, but it's good for now. (I more than sort of wish I wasn't sleeping alone tonight, but I'm in much better shape to handle it now than I would've been a 2pm today. Many thanks to roozle and sunspiral for hosting, and for many of the attendees for all the many hugs, snuggles, smooches, and even {gasp} conversations today. I needed them all. Perhaps even thanks to the weather for giving the party a very different dynamic than usual, which served to help settle me in to a fixed place for extended periods, making all of the above much easier to get. Please, everyone, stay as well as you possibly can, and love one another while you're doing it.
Current Mood:  tired
Current Music: The dehumid--- I mean AC.
tyellas @ 7:19pm: Let's Go For A Walk
 Such a gorgeous day. Who wants to stay inside? If you are inside, here's picspammage from a walk I took today: ( Read more... )
rednikki @ 12:07am: Tweets for Today
 Automatically shipped by LoudTwitter
beetiger @ 3:01am:
 I can't sleep. I was just all wiggling in bed and waking my partner up. But I have a meeting in 5 hours I should really be awake for. Bleh.
lyonesse @ 2:14am: mission report!
 showed up for a half-hour of mrc. painted things military grey :) showed up for mission (after missing pharmacy closing, boo). signed up for navi! signed up for medibag! nine pilots total (incl. 2 maggots). nominally 3sp day but 3sp isn't into that sort of thing. but i wore plaid (over a swimsuit). signed up for curbburner, but bane thunderwolf wanted to ride it; i tried and failed to ride anger, made adequate progress on circuspeanut. and it was pouring rain! we rode out, i walked halfway down the big downhill on circuspeanut (cursing coaster brakes the entire way). hooted at 3sp's house. went to bank for earth credits. went to bar, which one pilot declared "too lame", so we rode a couple miles to another bar. went in and dripped all over the floor. tried out the "babelfish" (sayagain's hearing aid) and discovered in my ears it translates everything into wookiee. other pilots deemed this bar acceptable. continued to drip on floor throughout. drank vodka. piloted home via a long slow uphill. am probably too quick and thoughtless to be good navi yet; still pleased as punch to have been navi at all ;) nine pilots left, nine pilots returned, one maggot was knighted with the light saber and a lot of laughter. (my second maggot to make pilot! congratulations, bootycall!!! :) there was no mechanical for the funk this time, but there was much with the singing and the hooting and the general mania. and this is what i came for, after all. :)
Current Mood:  cold, wet, and delighted
cks_techblog @ 5:02am: Why your main program should be importable
http://utcc.utoronto.ca/~cks/space/blog/python/ImportableMain Why your main program should be importable
When I first started coding in Python, I didn't know what I was doing.
So I structured my Python programs the way I would write Bourne shell
scripts or Perl programs, writing functions as necessary and useful
but otherwise putting all of the logic and code in the program's file
outside of functions (in what I now call 'module scope').
This is a perfectly rational structure for Python programs, and even
works; my programs ran fine and were perfectly functional. But it was
also a bad mistake, as I slowly discovered later; what you really want
to do is put all of your code in functions (and then start one with
magic).
The problem that makes it a mistake is that a program written this way
cannot be imported as if it was just another Python module; if you
try, the program's code immediately starts running and explosive things
start happening. There are at least two reasons why this is unfortunate:
- various useful tools like pychecker
rely on
importing your code in order to pick through it. This is
arguably a mistake on pychecker's part and they should be using a
more robust mechanism, but it's how they work right now, so if you want
to use them (and pychecker is usually quite useful) you have to live
with it.
(Discovering pychecker and trying to use it on my programs was how
I began to realize the mistake I'd made.)
- being able to
import your main program gives you a handy method of
testing bits of it from an interactive interpreter.
To make this really work you need to code your program so that it
calls sys.exit() as little as possible. If a function runs into
a fatal error it should not do the usual 'call die() with an
error message' thing; instead, it should raise an exception. Only
the very top of the program should catch those exceptions and
wind up calling sys.exit().
(And if you don't like phase tracking, catching and
wrapping exceptions can give you a nice method to add context to the
error message that you'll wind up reporting.)
I'm sure that this is strongly suggested somewhere in the Python
documentation and the smart people were aware of it from the
start, but I missed it (to my regret with those early programs).
Oh yes, the magic you need to make your top level function start
running when your program is actually run (instead of being imported)
is:
if __name__ == "__main__":
... run code here ...
At the module scope, __name__ is normally the name of your module
(well, the name it is being imported by). When Python is running your
code because it has been directly handed to the interpreter, Python sets
the name to "__main__" instead.
Sidebar: my current program structure
The program structure that I have wound up adopting for my own
programs looks something like this:
import sys
def process(...):
.....
def main(args):
.....
try:
process(...)
except EnvironmentError, e:
die("OS problem: "+str(e))
except MyError, e:
die(str(e))
....
if __name__ == "__main__":
main(sys.argv[1:])
The main() function parses the arguments, loads configuration files,
and so on, and then calls process() with whatever arguments are
appropriate for the program; process() actually starts to do work. To
put it one way, main() does all the stuff that only has to be done
when the program is being run as an actual program.
bethletnet @ 12:29am: This is my job
http://bethlet.net/archives/2008/09/this-is-my-job.html It really does feel this way sometimes...
st_rev @ 12:50am: Good Morning!
 Hello! How are you?
6th September 2008
kenjari @ 11:44pm:
 This evening I went to Great Scott (a bar in Allston) to see local band Logan 5 and the Runners. Two of the members are co-workers of mine. I had never heard them before, but went because of the personal connection. They were very good, solid playing, good songs. Their sound is pretty straight-ahead alternative rock, with a bit of glam-rock. The keyboardist also plays trumpet, which is pretty cool. They have a CD coming out in January, and I'm looking forward to it. There's always a lot of good energy in a live rock performance, but the high volumes tend to wash out the musical details for me, so when I get the CD I'll be able to hear a lot more of what's going on in the music.
Current Mood:  sleepy
7th September 2008
dorianx @ 12:05am:
Ladies and Gentlemen, I give you the Grand Old Party's Grand Old Vice Presidential Nominee:  
6th September 2008
buymeaclue @ 9:51pm: king oak: the short and the long
 On Tuesday, could someone please remind me to retrieve my tent from the trailer? Thank you! # matociquala got me a tropical storm for my birthday. It's very nice. Sorry to the rest of you who are enjoying it less... # Some you win, some you. Uh. Win. Redux? The short version: Tucker and I won our division (Beginner Novice Rider B) today at King Oak. Finished on our dressage score--a 32.1, which had us in second--and moved up to first after the pair in front of us had a little trouble on the cross-country. Best dressage test we've ever done. Stadium a little hairy, but not too bad. Cross-country was made of awesome. My horse? Still a genius. Thinks he's the coolest thing on four legs. Is right. I, uh, may be biased. Slightly. ( The long version! )
tcb @ 11:46pm: Cool site of the day
 Want to know where the total solar eclipses are for the next 12 years? NASA and Google will tell you..(The US doesn't get one until 2017)
sxxk1ttn, posting in
dot_poly_snark @ 10:58pm: oh, well in that case
dude, you were "involved" with her for less than a year, were "engaged" and weren't even banging "yet"?put on your big boy panties and get over it. don't even get me started on why would you even think you saying "no" and meaning it would have been a feasible option anyway, especially under such circumstances
Powered by LiveJournal.com
|