Search Results: "rui"

6 December 2005

John Goerzen: Speaking of criticizing universities in blogs...

While I'm on the subject, Wichita State University is apparently giving personal information about me to military recruiters. I've received numerous calls, from at least two different branches of the military. Some of them know nothing but my name and home phone number. Others appear to know my age, and still others how close I am to graduation and that I'm taking evening classes. WSU never informed me that they would be sharing this information with the military. I am quite troubled that they do so without my informed consent, and I will be letting them know this.

3 December 2005

Aigars Mahinovs: After reading the Final Debconf5 report I suddenly...

After reading the Final Debconf5 report I suddenly saw how this report shows all of us how much blood, sweat, tears and ruined stomachs has really been put into organising the best Debconf ever (so far at least). A lot of Debian Developers were present at Debconf5, even more Debian developers, Debian users and other free software users gained something from this event - a better Debian.
I feel that we should give all organisers of Debconf5 the prise the deserve, but as we can't send them all to a two week vacation to Hawaii, we could at least express our gratitude on a web page.
So, if you feel that Debconf5 has given something good to your life - got to http://wiki.debian.org/Debconf5ThankTheOrganizers and express that in warm words towards the people that made that happen!

P.S. Today I configured my Palm to be a IR remote trigger for my Canon 350D, happy like hell about that.
P.P.S. Number of unique visitors to my photo gallery has reached 575, with one of the photos seen by 475 unique visitors, thanks! (Hint: more comments with constructive critique would be useful to improve quality ;))
P.P.P.S. For me "a1t" will always mean that girl nicknamed "alt" with the shotgun pointed my way, really.

1 December 2005

Edd Dumbill: Cool toys for Firefox and Emacs

Firefox extensions The release of Firefox 1.5 has awakened my interest in the browser, and a few extensions can make life easier.
View Rendered Source Chart
Really handy for a structured view of an HTML page's source. The big advantage is that is displays generated source too, perfect for figuring out AJAX applications.
Foxpose
Sheer eye candy. Thumbnail all your tabbed pages into one page.
Del.icio.us
Browser button for working with the del.icio.us bookmarks site. I've been reluctant to use remote bookmarks before, this extension might just push me over the edge. Really well thought-out integration with the browser.
Rails in Emacs Seeing as I'm not quite prepared to switch to OS X just in order to get TextMate, I figured it was time again to play with my editing environment. Pages from InVisible Blog and Scott Barron give a lot of tips as to the current state of play with Rails and Emacs. I've now got a reasonably pleasant setup, though I wasn't inclined to go the whole way to running the ECB IDE inside Emacs. On Ubuntu, the packages you are looking for are: speedbar eieio semantic ruby-elisp mmm-mode. I also found pabbrev a very handy interface for tab completion. Screenshot of Emacs editing a Rails application The future for Ruby and Emacs is looking hopeful. I learned that a proper Ruby grammar for the semantic package is being worked on, which will enable class browsing and intelligent completion. I am still disappointed that there's no version of Emacs that uses Xft or Pango for anti-aliased font rendering. To get sharp fonts, I still need to use a bitmap font like misc-fixed. If I were in the business of offering bounties for open source development, dragging Emacs into the GTK2/Pango era would be the biggest one. Checking the mailing lists indicates that Pango is not suitable for Emacs, but no alternative scheme ever seems to bear fruit. Yet if Aquamacs can do it... If somebody came along with a decent TextMate-a-like for GNOME, I'd pay good money for it. I've never been really happy with an editor since Cygnus Ed. Hallski and I keep talking about this, and only just manage to resist wasting months of time on trying to write one ourselves.

Matthew Palmer: A trace mixin for Python

Although I am by means an expert Python programmer, I do dabble -- at the moment, I'm dabbling fairly heavily in a project for work. I had need, as you do on occasion, for a call trace (I called this method, it returned X, I then called this other method, it returned Y, and so on). Astoundingly, I got no answer when I asked on #python, as I would have expected this sort of thing to be a gimme -- even possibly including it as a core language feature. But nary an answer was forthcoming. Searches for mixins or magic function calls which might solve my problem were similarly fruitless. I resigned myself to manually sticking print wrappers around the function calls of interest, but that got old real fast (especially after I spent about a half-hour chasing my tail because I'd forgotten to return the return value after I printed it). As usual, my subconscious saved the day. On the train home this afternoon, I suddenly had a brainwave, and the code which I've reproduced below appeared almost fully-formed at my fingertips. It's times like this that I really enjoy programming. Now, of course, someone will pop up and say "oh here it is over here", or "you just set the __trace_me_baby__ attribute on your object", but I can console myself with the fact that I know a lot more about grubby Python internals than I did before. The code: (a pre-saved version is also available).
# tracemixin.py
#
# A python mixin to trace the calling of methods.
#
# Copyright (C) 2005 Matthew Palmer 
#
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the Free Software
#   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
#   or see http://www.gnu.org/licenses/gpl.html
#   
"""
A mixin class to permit the tracing of method calls on an object.
This class, when mixed in, overrides the default operation of method calls
so that requests to call methods which have been listed in the
self._traced_methods list will be printed with their arguments and return
values.  Also included is a simple call depth indication, using indents.
Tracing of particular methods can be turned on and off on a per-object basis
by simply including or removing the method's name in the _traced_methods
list on the particular object.  Whole classes can be traced by setting
the list as a class attribute.
To include this class, simply make it the first class name in the list of
parent classes when defining a new class, like so:
class Something(TraceMixin, RealParentClass):
You could probably leave the TraceMixin in your production code, although
it'll slow execution down by a bit.
Complete usage example:
from tracemixin import TraceMixin
class RandomTask(TraceMixin):
	def x(self):
		print "X!"
	
	def y(self, arg):
		print "%s Y!" % arg
		self.x()
x = RandomTask()
x.x()
x._traced_methods = ['x', 'y']
x.y('why?')
Output:
X!
::y(why?)
why? Y!
  ::x()
X!
  =>None
=>None
"""
class TraceMixin(object):
	_traced_methods = []
	_depth = 0
	def __getattribute__(self, attr):
		if attr in object.__getattribute__(self, '_traced_methods'):
			self.method = attr
			attr = '_trace_proxy'
		return object.__getattribute__(self, attr)
	
	def _trace_proxy(self, *args):
		realmethod = object.__getattribute__(self, self.method)
		if realmethod and realmethod.__class__ == self._trace_proxy.__class__:
			print "%s::%s(%s)" % (self._depth*'  ', self.method, ', '.join(args))
			self._depth += 1
			rv = realmethod(*args)
			self._depth -= 1
			print "%s=>%s" % (self._depth*'  ', rv)
			return rv
		else:
			raise AttributeError

24 November 2005

Meike Reichle: Oh it's good to be back home!!

I didn't blog immediately when I got back homei, mainly because the first days after my return (which was on Sunday) I was too busy feeling like shit.
The fair was rather straining, especially since I was there on my own and a normal fair day included about 3 hours of car driving (half of it in a horrible 7 line fair traffic management system) and about 9 hours of standing around, all tarted up with pantsuit, high heels, make up et al., smiling, looking attentive and not as bored (and in pain) as I was. (No, there are no pictures!!)

Anyway, enough whining. I am back and made an almost full recovery (Save some big bruises on my right leg, of which I have no idea where I got them. Probably bumped something against my leg when taking down the booth again.) and there are now much more pleasant times ahead. The Leipzig christmas market opened today and I plan to pay it a visit sometime this weekend. (Yea, I know, kitschy, sentimental, commercialised, ... but it's fun anyway, so shut up and have a gingerbread.).

The second highlight of this weekend will be the Skatalites concert I'll see on Saturday. For those who don't listen to Ska, the Skatalites can be considered to be among the "founding fathers" of today's Ska music. They were most popular around '63 - '65, today they are of course all pretty old guys (And girls they bring Doreen Shaffer, yay!!).
But they still do some considerable rockin! And it is to be supposed that there might even be a fair amount of enjoyable skankin' going on among the faithful followers of the acustic and sensual delight that is good Ska music.

Jiggy-Dah!

Walt Jabsco

Erich Schubert: Wikipedia wasn't really new - so what is the difference?

Wikipedia wasn't really "new". Wikis have been around before. There were a dozen of encyclopedia attempts around (although maybe not using a wiki, and usually more focussed around a specific field of knowledge), there were huge collaboration applications. I think that Wikipedia just offered the right options for the users at the very right moment, when this "revolution" - people not using the web as a way to 'download' content as much, but to actually publish their very own stuff, taking over content production - was just kicking off, without being too fragmented yet. Today, you'll find dozen of "encyclopedias" for specific parts, who somewhat try to copy the success of Wikipedia, but which maybe was so successful because it didn't put up much restrictions on what it was to be used for... As for the "not new" part - take for example a look at DMOZ.org, which is for example used by Google as datasource for Directory.google.com. This has been around for years (since 1995?), 5 Million verified Links in there, 70k editors just to verify and organize the links (many just taking care of a small part like the links for their home town), and everybody can submit new links. I started being an editor when it had around 2 Million links, and "timed out" due to inactivity when it reached 3 Million. I have the impression (partially of course to the success of search robots like google, who have also "ruined" the directory business for e.g. Yahoo) that growth slowed down horribly the last years a lot. Although the level you could contribute wasn't that different from what e.g. Wikipedia offers. On the one hand it's a shame that great projects like DMOZ get so little attention, but on the other hand e.g. Wikipedia is fantastic, and I'm happy that many people have realized that they can be an active part of the web, not just a content consumer. That there is more to the web than to share music and access pr0n^Wcommercial websites.

15 November 2005

Joe Wreschnig: Sick, 0.15, and so on

Ick.
So I caught some sort of cold/flu thing, which inverted my sleep schedule (especially since it happened as daylight hours began ending around 5PM). In the process of rotating it back I got sick again, probably due to lack of sleep. Last night I didn’t sleep at all, so hopefully I can pass out around 10PM tonight without a problem. Quod Libet 0.15
Released (and uploaded to Debian), featuring all the aforementioned speedups (SVN actually has even more yet, and some significant memory reductions). We are polishing everything up (and working on the audio feed browser (feedparser is seriously hot)) for 1.0. It’s all very cool. Well, except the times GStreamer segfaults; that’s not so cool. Geeky Jokes
In a lecture on quantifier semantics, my NLP professor made the comment “In America, a b F(a, b). In my country, b a F(a, b).” Much of the class laughed. Speaking of NLP, my final project for that class is likely to segue into the next thing [info]gesten and I tackle, assuming I have any free time at all next semester. Books
I haven’t spent money on books in almost two months (aside from textbooks). This means the amount of books I own and haven’t read is actually for the first time in about a decade. Soon maybe I’ll even be able to go back and reread the books I read when I was 12 but don’t remember very well (ruining precious childhood memories in the process). Python Optimizations
Just because all my posts have had one of these lately, two recent things that surprised me: if s[:1] == c: is slightly faster than if s and s[0] == c:. And if v: is slightly faster than if v is not None: if v could be 0, “”, or (), the false immutables (this one surprised me less after some thought, but it’s still easy to forget when is is otherwise faster).

12 November 2005

Anand Kumria: A walk across the Sydney Harbour Bridge

# metadata <p> I woke, not for the first time today, and there were people all around. Dressed up and talking. And drinking. </p> <p> Ahh! I'd fallen asleep at a bar. <em>Again</em>. Fortunately that is enough off a clue for me to realise that I should go home. Getting home, is where this adventure starts. </p> <p> I started off at <a href="http://www.sydneypubguide.net/pubs/Cruise.aspx">Cruise Bar</a>, which has a great view of the Opera House [<a title="Sydney Opera House in the afternoon" href="/~wildfire/aum/images/opera-house-in-afternoon.jpg">1</a>], [<a title="Sydney Opera House at dusk" href="/~wildfire/aum/images/opera-house-at-dusk.jpg">2</a>], [<a title="Sydney Opera House at night" href="/~wildfire/aum/images/opera-house-at-night.jpg">3</a>] and (somehow) staggered my way to the <a href="http://www.sydneypubguide.net/pubs/Ship_Inn.aspx">Ship Inn</a>. Unable to flag down a cab in this area &ndash; lots of people going home around 23:00 &ndash; I resolved to get myself to North Sydney, where lots of cabs are. </p> <p> For those of you unaware, Sydney Harbour Bridge now has security personnel stationed at all pedestrian entrances and across its length. At least six of them "patrol" the bridge. </p> <p> By "patrol", I mean of course you'll be queried as to why you wish to cross the bridge. <q>Mate [sic], you can't cross the bridge. You aren't allowed here</q>. <q>Mate, are you fucking deaf?</q>. (on radio, to pals)<q>Yeah the fucking wog is crossing, shall I intercept him and hold him?</q> </p> <p> Followed while crossing the bridge. In my case I had (at one stage 3 security personnel behind and adjacent to me and 3 policemen ahead of me). And abused (I was repeatedly cursed at, racially slurred against, by the people from IVS Security) during your walk over the bridge. It amazes me that they even had police waiting to talk to me. Fortunately I know that the best thing you can do when confronted by the police is not to say anything. </p> <p> In this case there is nothing they could do -- since crossing the Harbour Bridge, and not responding to the security guards who harass you is not (yet) a crime. Today, 2 Nov 2005, though the Parliament of Australia is rushing through laws which might mean that I can be "detained" and held incommunicendo indefinitely. </p> <p> These laws &ndash; part of the War on Freedom &ndash; would make the rest of this entry illegal. </p> <p> I've been thinking about terrorism and Australia. How would you get access to restricted locations, determine sensitive areas and generally get information not available to the ordinary public? Become a security guard. </p> <p> In Australia, things like <a href="http://smh.com.au/news/national/braindamaged-man-told-to-pay-up-after-bashing/2005/11/01/1130823210703.html" title="victim of security guards">this</a> are not uncommon. (c.f. David Hooks killed by a security guard; a female security guard shooting someone, etc.). Worse is that security guards often enjoy a fairly close relationship with the Police. Meaning that if you join up, you also get to know some of the procedures that might be applied to deter you. Bottom line: every security guard is a potential terrorist. </p> <p> Terrorists, like modern-day Politicians, seek to curtail the liberty of others for their own purposes. The best way to do this is by planting fear and doubt into the hearts and mind of the general populace. In America, this was done via the September 11 plane hi-jacking; in the UK, by exploding bombs on the mass-transit system there. </p> <p> How, or where, should Australia be targetted? Australians are renowned world-travellers (I believe the figure is that 10% of Australians are outside the country at any one time), so attacking transportation isn't the way to go. You need to go after the life-style. </p> <p> Large community events, like Melbourne Cup day, the various Grand Finals and, of course, Cricket would be the perfect targets. High visibility (the media are already at these venues!), high impact (you are talking 30,000+ people in these stadiums), for minimal cost (a stadium has few seating area &ndash; probably 6 to 8 attackers could bring down most stadiums). </p> <p> Another good location would be to pick your local Westfield shopping centre / mall. Lots of people, lots of fear instilled. Plus we'd be rid of the stupid things. </p>

10 November 2005

Joey Hess: BBS

Sometime over the years, I've managed to forget, or block out, most of my memories of the time in high school when I used BBSes, before the internet. Even though I still have friends from back then, and even, come to think, host a rack of computers at the house of a guy who was once a sysop. Those couple of years (how many?) are mostly a blank, and not something I think about much. I can't remember the first time I used a BBS. I can remember clearly and crisply the first time I used a unix system. A bit of it came back when I didn't pirate the BBS Documentary, an epic 8 part series of interviews with the people who brought us the likes of XMODEM, fidonet, pcboard, and ansi art. Highly recommended. Amazing how just looking at so many of the people immediatly reminds me of the BBSers I knew at the time. Its producer, Jason Scott, also runs textfiles.com, a huge collection of all sorts of text files from the 60's through 90's, which mostly originate from old BBSes. His historical bent in preserving and documenting this stuff really appeals. I poked around the net today, managed to find some docs about one BBS I remembered using, and nothing about a couple of others. Logged into a telnet BBS or two and remembered just how angry fruit salad and silly to use those systems really were, and also how much they probably contributed to my enduring enjoyment of unix, muds, and email. I thought it would be nice to not forget about this stuff, and so I coded up a reminder, merging the ancient plain text files with what's currently new and spiffy (weblogs natch), and creating this webblog which has a random text file posted to it each day. Of course, the subjects range from anarchy, to programming, to phone phreaking, to porn, so view at your own risk, just as if it were 1992, and you were were dialing a number your war dialer had found while you were away at school. Would you like to play a game?

4 November 2005

Clint Adams: On nights like this

Once there was a little androgyne named Brendan. He was knee-high to a hamster, long-haired, and full of zest for life. Sometimes he rhymed slow, sometimes he rhymed quick, and sometimes, at least in his opinion, he resembled in some ways a Chick-O-Stick, and did not resemble DeLorean, Gambino, or Gotti. A waitress concurred to some degree. Here is your vermouth on the rocks, ma'am, she said. When Brendan insisted that he was not a ma'am , she was terribly apologetic, but her pleas could not quell the tumult of his bruised and beaten ego. I am virile! he declared, and through will alone he set his mind in motion. He furrowed his brow and concentrated deeply, and, ever so slowly, his facial hair grew. After many breaks for food and sleep, he decided that his masterpiece was complete. He beat his chest and left his home to show everyone his pride and joy, his Mustache. You've got something on your lip, mister, said a young boy. Great success! exclaimed Brendan, for he had been identified as a mister . He was on top of the world, basking in his newfound masculinity. Stay away from my children! screamed a woman who had instantly deduced that he was a member of NAMBLA. Realizing that many people believed him to be a pederast, he decided to make an adjustment. Soon, he had cultivated a Van Dyke, and showed his face in public again. Nice goatee, ma'am! a teenager shouted. It's not a goatee! he replied, and walked on. Reflecting that he had been called ma'am again, he undid his pigtails. What came next was a series of men hitting on him. This will not do, he thought, and converted his Van Dyke to a goatee. When this caused an entirely different set of men to hit on him instead, he swallowed his pride and went to the supermarket to ask for some advice. I am not a homosexual, he explained to Miss Midwest Midnight Checkout Queen. I am manly, and I like the poontang and the boobies. What can I do to stop this unwanted attention? Shave, she said, and refused to acknowledge his protests. So he shaved and went to the bakery. I've got a sweet tooth, he explained, for licorice drops and jelly roll. I'm sorry, ma'am, the baker informed him, but we only sell lard bread and bran muffins here. Brendan let out a high-pitched scream and stormed out to play in traffic. His eye was caught by a sign advertising fortune telling services, and desperation drove him to go ask for a consultation. You will die unhappy, said the Gypsy Queen. Brendan recounted his trials and tribulations and asked her for advice. The Gypsy Queen informed him that he would be subject to additional charges for such, and he assented. Very well, she sighed. People will never respect you if you care what they think. Just be yourself, and if anyone complains about the way you are, or demands that you change to suit them, tell them to fuck off. That's wonderful advice! Brendan gushed. He gave her an enormous tip, and hurried out into the world to try out his new lifestyle. That guy sucks, people said. She doesn't care about anybody but herself. So they shunned him. He died an unhappy little androgyne.

3 November 2005

Clint Adams: Fruit salad

This reminds me of something.

2 November 2005

Benjamin Mako Hill: Quote of the Day

Antiquated technology makes for emancipatory possibilities.

—Alan Toner (2005)

Perhaps a truism. Perhaps merely what I fear is a prescient statement.

21 October 2005

Aigars Mahinovs: Many people have mailed/irc'd/called/commented ask...

Many people have mailed/irc'd/called/commented asking my what's up regarding that Google thingy. Well ... everything is still up in the air.
Apparently Google recruiters have hard time getting a report back from one of the engineers that interviewed me. :)

Joe Wreschnig: Vorbis comments and tracktotal

Breaking radio silence to complain about something both trivial and technical, so it’s probably best if everyone skips this post. Unless you write a CD ripper or audio tagger. Then please read this post, because I’m going to explain why you’re wrong. (Someone emailed me about why Quod Libet acts this way, and I figured I’d make my answer public, with the hope it helps things.) History
Decades ago, before there was Ogg Vorbis, people used an obsolete standard called MP3, and tagged it with something called ID3 (in particular, ID3v2). One of the possible tags was TRCK, for the track number. It was stored as a string in “x/y” format, for track number x out of y total tracks. Perhaps this could be improved upon; maybe not (I’ll make a case for not later). Regardless, that’s how hundreds of thousands, if not millions, of files were tagged. Ogg Vorbis Comments
These days we have something better — Ogg Vorbis and its tagging format. Vorbis specified a tag called tracknumber, analogous to TRCK.
TRACKNUMBER: The track number of this piece if part of a specific larger collection or album
Now, this is a bit ambiguous. In particular, TRCK says how you should store the total number of tracks, and the Vorbis comment specification doesn’t. A strict reading indicates you can’t, but then the same standard is designed to be particularly loose about the data stored in the tags. So a lot of programs, including really popular ones, just kept their ID3 format and wrote tracknumber=x/y. Everyone was happy. Then someone — I wish I knew who, so I could write this to them personally — decided trying to parse the track number in this format was too hard, and so decided they would make a tracktotal tag that stored, as a single number, the number of tracks. Whoever Did This Is Wrong
Whoever decided to do this was pretty dumb. There’s a number of false assumptions here, roughly in decreasing order of annoyance: The result is that every program still needs to understand x/y — even if every Vorbis file used the new format — and the new format, and also needs to do the work to construct track numbers in the new format, assuming it wants to use them. That’s why Quod Libet converts everything to x/y format. I urge authors of tagging applications and CD rippers to abandon stupid standards. Instead, you should be spending time fixing your ID3v2 readers and writers, because they all suck too. P.S.
If anyone knows what program is putting ISO-8859-1 values into Vorbis tags, please let me know. I have spiked cluebat for you. A Summary of Other Things
I moved into a new apartment building next door to my old one, owned by the same student co-op, so it doesn’t actually seem like I moved at all. School started and is going well. I saw DOOM earlier this week for free, and enjoyed it. I’ve learned a lot about Python i18n over the past few months and am writing a brief howto explaining how to do it properly.

Next.

Previous.