Zobar's Journal
My Podcast Link
05/31/2006 20:44 #37332
all is quiet once againThe paper this week is an enormous 96 pages, as it is our Summer Guide. In retrospect, this was a terrible issue for me to decide to expand our multimedia offerings . Certain unnamed (e:peeps) may be pleased to know that our music editor considers Gnarls Barkley's St. Elsewhere to be 'the first must-have album to pump on the car stereo this summer,' and I have come to agree. My column is on autopilot this week, having been submitted by an anonymous former staffer.
Now that all is once again quiet at 40 Hartford, it is time to ...change ...my ...journal music? Yes!
This is Gator Tango from the Wild Things soundtrack, composed and performed by George S Clinton, who is joined by guitarist Greg Camp of Smash Mouth, and bassist Mark Sandman and saxophonist Dana Colley of Morphine. gather:0770627001149120625
- Z
05/28/2006 12:28 #37331
craziesCategory: hate mail
What's happening, man? My name is MC Moses, and I was calling in response to the article in the Artvoice, and what I was wondering is why on earth would you people put an article about some poseur by the name of MC Sick? That motherfucker be acting like he's from the Bronx, and he be from Long Island. I don't know if you motherfuckers have a clue, but there's a major difference between being from Long Island and being from the Bronx, you know what I'm saying? I mean, I'm from Brooklyn, and I've got all these DJs that throw down fat beats, and I didn't see or hear anything about my name in that article, and I'm pissed off, so you better call my DJ back [phone number omitted]. You better call him back and straighten this out, because there ain't no way you guys are going to print an article about Buffalo hip-hop and not include my motherfucking name, know what I'm saying? Because I get down, I get funky, and I get motherfucking live, alright? So you motherfuckers need to recognize that what I do is motherfucking cut, alright? So call my motherfucking DJ back, because I'm pissed off and we need to straighten this shit out, you know what I'm saying?
'Letters,' v5n17 in response to 'This Is Buffalo Hip-Hop,' v5n16 .
I see Bruce Jackson is writing the same things, over and over and over now, and week after week. And of course, a nice little touch: bring back the Peace Bridge. He's like a two-issue person. If you could pass that along to Doctor, Mister, whatever, Shithole Jackson, tell him to kill himself, because he's clearly no use in this world. And, you know, your paper is shit. It's not even worth being free. You're not the Beast. The Beast is amusing. Yours is annoying. The Buffalo Current made me wince, and thankfully that died. Maybe your paper will die. Maybe you will all kill yourselves. The Buffalo News is not much better. I'd be willing to raise money to send him back to Guatemala. I'll sell t-shirts, pass that along to him. Nick Beat- was that his name at UB? Yeah, Nick Beat. OK, your paper is shit. It's absolute shit. You just run every issue into the ground. Oh, and by the way, the Elmwood Avenue hotel- why don't you point out that you have lots at stake in it? That's why you're in favor. Otherwise, you're opposed to everything, development... I hope somebody builds a Walgreen's right on top of your heads, and smothers you and kills you. A big old Walgreen's. And a Rite-Aid, and a Wal-Mart, and an airport, and kills you because you're useless. Your paper is shit. You sell casinos advertising, yet you rail against it. How about Ralph Wilson? Those are OK. I think all the money for the Bills goes to Michigan, Detroit, doesn't it? Sabres money goes to Rochester, to Golisano. And the Bisons? I think the Riches hang out in Florida. That don't matter, does it? Because you're pretty much whores. You sell out to the highest-- 'End of messages.'
'Letters,' v5n19 in response, perhaps, to 'Sweet Nothings: When "Dead Deals" Are Better Than "Done Deals,' v5n10 , part of Bruce Jackson's interminable Casino Chronicles series.
- Z
05/28/2006 09:05 #37330
feels likeUsually when I go to a party of people I haven't met I just kind of hang out in the corner and quietly eat all the nachoes. But since I've been following all of your lives, loves, and recipes online for the last couple months, I felt it much easier to talk to people.
- Z
it was nice meeting you and dragonlady! glad you guys came. get ready for the pool party coming up this summer!
05/27/2006 22:11 #37329
yo05/26/2006 18:19 #37328
call meCategory: javascript
OK, so now that I'm talking to the nerds, here's some neat Javascript voodoo. I really like monkeying around with runtimes, and one reason that I like Python so much is that it lets you do all kinds of perverse things to the runtime with some very elegant effects. One thing it lets you do is define "callable" objects - objects that you can call like any plain old function. Classes, eg, are callable; this invokes the constructor and returns a new instance of the class. This maintains a similar syntax to other languages, except it's cleaner:
myInstance = MyClass() # python
var myInstance = new MyClass(); // Javascript
MyClass* myInstance = new MyClass(); // C++
MyClass* myInstance = [[[MyClass alloc] init] autorelease]; // Objective-C
This also makes for very elegant RPC calls. You can, eg, create a callable instance that you can use like a regular function, but takes care of all the grotty marshalling and connection management behind the scenes. Once you set it up, you can use the instance like any other function:
import xmlrpclib
server = xmlrpclib.ServerProxy('http://time.xmlrpc.com/RPC2')
print server.currentTime.getCurrentTime()
I'm writing a Javascript XML-RPC client library for work and I really wanted to be able to do something that elegant, like:
getCurrentTime = XMLRPCMethod('http://time.xmlrpc.com/RPC2', 'currentTime.getCurrentTime');
alert(getCurrentTime());
But in Javascript, you can only call things that are actual functions. However, since functions are first-class objects, you can bind your own attributes to them like any other object. You can access them from inside the body of the function by using the special variable arguments.callee:
function Greeter(yourName) {
var result = function(timeOfDay) {
alert('Good ' + timeOfDay + ', ' + arguments.callee.yourName);
};
result.yourName = yourName;
return result;
}
greetZ = Greeter('Zobar');
greetP = Greeter('Paul');
greetZ('afternoon'); // 'Good afternoon, Zobar'
greetZ('evening'); // 'Good evening, Zobar'
greetP('evening'); // 'Good evening, Paul'
When I figured this out it blew my mind, and while I doubt its day-to-day practicality, I thought it's a handy tool for Javascripters to have. I also plan to make the XML-RPC library public, once I clean it up a bit, test it in MSIE, and finish the documentation.
- Z
In the past, I've tried to design complex OO stuff in JavaScript, spent a lot of time doing it, had it not work, and wished that netscape had instead made python the standard language of web page scripting.
Considering the number of people who are having success with OO javascript, perhaps I should try things again and give the language one last chance to redeem itself.
I responded to this again on my journal (e:paul), 4370 so that I could include larger code samples. It includes some objects instantiation inside of prototypes.
I responded to this on my journal (e:paul,4369) because the response was too long to fit in a comment. I also added the new [box] style for displaying code.
That's certainly possible. Much has been made of the rivalry between us [at least by the Beast], and I don't think a single issue goes by without them mentioning how awful they think we are. For our part, we believe our readership [270,000] speaks for itself.
On the other hand, calling people up and leaving crabby messages isn't really their MO. They would much prefer to pull an elaborate prank. Then they'd have something to write about, and they wouldn't have to [God forbid] leave the office.
- Z
I wonder if any of those letters you are receiving are from the Beast?