Mr. Softwarepants

 
Python/Django/.NET/C#/Database project? Hire me.
9
Jul
2009

Perforce Question

Let's say I'm submitting to Perforce, and I use "revert if unchanged" to avoid spamming the changelists.

How do I prevent P4 from creating a zombie named changelist if the submit ends up empty because all files were the same as in the depot?

Update:
    # Get the file into the default changelist
    p4_out_add = p4.modify(files=[xml_path])
    print "Add",p4_out_add
    
    # Take the file out of the changelist if it hasn't changed
    p4_out_revert = p4.revert(files=[xml_path], unchangedOnly=True)
    print "Revert",p4_out_revert
    
    # Only submit if the file is still in the list
    opened = p4.opened(files=[xml_path])
    print "Opened",opened
    if opened:
        p4_out_submit = p4.submit(files=[xml_path], description="TODO")
        print p4_out_submit
http://weblogs.asp.net/fbouma/archive/2009/07/09/the-firefox-3-5-fiasco.aspx#7143969 (Comment from "A Mac user")

Dude, you're complaining about the font when the line width is too long and the line height is too small?

That's obviously a blog that the author only ever sees through the editing interface (and possibly an RSS reader), and not the actual page.

Update: http://lab.arc90.com/experiments/readability/

TextMate

PROTIP: If you're using TextMate with Project+, and clicking into TextMate causes a several second delay every time, go into the Project+ config and make sure you don't have any unwanted VCS badges enabled.
4
Jul
2009
http://www.cnn.com/2009/POLITICS/07/04/alaska.parnell.palin/index.html

Lt. Gov. Sean Parnell: "I am high as a kite."
1
Jul
2009
http://www.pragprog.com/magazines

So if this is free, and "on the web"... why bother with the PDF step? It's not like the layout and typography is anything to write home about anyway.

Impedance

I'm taking a DB schema that's back-formed from an XML representation and trying to get it into Django, so content can be edited and served back out as XML documents.

There's a certain amount...satisfaction that's missing from this exercise, since the objects being edited are ultimately more "document like" than relational. I suspect some amount of proxy models or abstract inheritance will be needed.

I would say "hopefully the schema itself is pretty stable", but I think it's early enough here that it's not, which will mean "fun" database migration work in the future.

There's got to be a better solution for this... but what?
30
Jun
2009
The Pirate Bay going legit? I don't understand. How will I be able to pirate new Mad Men & Venture Bros. episodes?
29
Jun
2009
Had to add a product to my cart on Amazon to see the price... wow, a full $1.50 off the normal $99.99 price. Lame.
28
Jun
2009

Blueberry Garden

I tried Blueberry Garden last weekend and I have to say, I didn't get it.

There were good bits of presentation and production, sure, but the amount of "game" involved could fill a thimble. Which would be OK, except that there's not much else to fill the gap.

To be crass, it should not have been a $5 Steam purchase; it should have been a pre-production demo released alongside an "actual thing", as a bonus feature.

To add insult to injury, when you beat the game and get the designer's notebook URL, the drawings posted there are far, far more interesting than anything that appeared in the game. An underwater calliope would have made up for a lot of "so that's it, then".
26
Jun
2009
http://www.forbes.com/part_forbes/2009/0713/internet-video-games-multiplayer-gaming-gold-mine.html

(I work at a Gazillion studio.)
25
Jun
2009
https://developer.mozilla.org/en/Building_an_Extension

the ID of the extension. This is a value you come up with to identify your extension in email address format (note that it should not be your email). Make it unique. You could also use a GUID. NOTE: This parameter MUST be in the format of an email address, although it does NOT have to be a valid email address. (example.example.example)


Wow, way to describe the expected contents of that field, guys. Unique email! Or a GUID! But an email! Except not a valid email!
24
Jun
2009

Fallout 3 DLC

I haven't tried any of the Fallout 3 DLC yet. I keep thinking I ought to, and then I keep not doing it.

The main story quest in Fallout 3 is just so bad. Maybe the story isn't bad per se, but the super-linear, totally scripted, forced choices main quest just don't mesh at all with the rest of the game, which is a reasonably decent exploratory dungeon crawler.

So, ironically?, I should probably be all for the DLC, since it gives you more stuff to explore, more weapons to get, more people to kill, etc.

Except that none of that really seems to matter. Once you're a 20th level bad-ass, you're a 20th level bad-ass. Sure, Broken Steel cranks up the level cap, but it also has to crank up the difficulty to give you something to do with all those extra levels.

And it's not like in a Diablo 2 style game where most dungeons regenerate and you can always play through them again in hopes of a better random drop. There's no extra "+1s" to hope for; once you have the best stuff you have the best stuff, and there's no real extra reward along that vector to hope for.

So, am I missing something by not getting in on some hot DLC action?
Morethanseven: Ant for Web Developers I and II

Ugh. For these things, a simple 1-or-2 line shell script would suffice.
Alertbox: Stop Password Masking

Welllll, sure when I'm at home or on a mobile device with small viewing angle, I don't really need a masked password. But if I'm not at home... say, at work (not that I don't trust my coworkers) I don't really want my passwords plain-text visible to random passers-by.
23
Jun
2009
Got some fixes and new things deployed at work today. I was going to add "thus rendering the week not a total loss", but hell, it's only Tuesday yet, so there's plenty of week left to go.

The build server (CruiseControl) is still freaking out. Apparently it things that failing a build means run that build again after the waiting timeout, instead of, say, waiting for a check-in to P4 that is within the set of monitors paths.

Which means that I need to either reconfigure it, try some other build server, or throw up my hands and let the QA team's manual tests be the only tests.

None of these choices are very palatable, but I'm considering taking a look at Hudson instead.

Famous last words, perhaps, but how hard can it be to write that subset of a "build server" that I actually need on a project?

I tried BuildBot and "didn't get it"; the fact that it is distributed front-and-center is great for those projects that need that, but was a big impediment to getting something up quick and easy just to try out.
22
Jun
2009
Adobe UI Gripes: Alien Skin Bokeh
Jesus H. Christ, this makes me embarrassed to be a programmer, to be in the same field as people who do shit like this.
Was there anything at work I didn't screw up today? I mean, I didn't bring down any production servers, but neither the build, database, or QA servers were cooperating with me today.

Kinda feeling like something needs to be burned to the ground, then the ground salted; probably the build scripts.
Is there any real advantage over an "XBox360 Elite" vs the normal + HDMI cable? A "$100 advantage", that is. I mean, other than being BLACK instead of WHITE.
21
Jun
2009
Classic Game of the Week Ultima VII: The Black Gate

I absolutely could not get into this game, even out of the first town, because of my damn party members complaining about being hungry. Fuck, guys, aren't you adults? How did you get this far in life without being able feed yourself?

It was different in, say, Ultima 4, where you also had to buy food for your party, since U4 had a much, much more abstracted view of the world. Your party members didn't talk after joining, for instance.

Having to buy food, while carrying a tradition forward from previous games, is just a weird, un-fun sop to reality by the '90s. Which is a shame, because apparently the actual game part of the game was fun?

(Do the modern U7 engines let you turn off food, by any chance?)
19
Jun
2009
I wrote some code this week that wasn't completely shitty, so that's something.
Back
 
View my:
Reads
Links
Photos
Website
LinkedIn
Last.fm
GM scripts
Twits
Google Code
GitHub
Wiki

Back

The Piehead News
(C) 2003-2008
Adam Vandenberg