Search Results: "ag"

23 January 2006

Andreas Rottmann: Status of Scheme48 hacking

Over the last months, I’ve started several hacks on Scheme48. My interest in Scheme48 was initially sparked by Jivera, who started to bring a Pika-style C API to Scheme48. The features/projects I’ve been working on: Most of the above is still not polished and not ready for release or even sending patches upstream. I have, however, submitted some very simple patches to the Scheme48 mailing list, and got no response from the maintainers. Should working with them not work out, I might have to create my own fork of Scheme48. In fact I have forked already, but if I can’t get (parts) of my stuff into mainline Scheme48, I might start to actively push my fork as “extended Scheme48″ or with a new name.

Andreas Rottmann: Scheme Networking API

About two months ago, I started thinking about a highlevel, implementation-independent networking API for Scheme. Riastradh’s TCP proposal is well thought-out, but I was thinking of something that would extend naturally to other protocols such as Unix domain sockets, or SSL/TLS. I took the TCP proposal, generalized and extended it a bit and. The result is online, I am appreciating comments! I currently don’t have the time to polish this up to SRFI-ready quality and submit it, but hopefully will do so next year. Implementation Status After harvesting some feedback from the #scheme community, I started to implement my proposal for Scheme 48 originally as patch against the development version, but since that is unfortunatly not publically available, I decided to split it off and make it work with vanilla Scheme 48 1.3. Currently, the implementation covers almost the whole TCP part, modulo some holes to fill out. For the curious and brave, there is a snapshot tarball of the code is linked from the CSW - be aware that this is in half-finished state.

Andreas Rottmann: Drugs and the law

I agree with madduck when he writes that the way the law deals with drugs is very much black-and white and should be diversified. Quoting him:
… In particular, the law should differentiate between * drugs that are dangerous to the taker, or can cause long-term damages, such as physical or mental addictions. This class would be primarily made up of the so-called hard drugs: opiates, entactogens, inhalants, steroids, sedatives, and stimulants.
* drugs that cause hightened awareness and give the taker the ability to approach life, society, or any sort of philosophical question from different angles. In places, these are referred to as intellectual drugs: hallucinogens and (some) herbals.
I think the above text fragment perpetuates a common mis-use of the word “drug” meaning “illegal drug”. Certainly Alcohol and tobacco fall under the first category, as both not only “can cause” long-term damages, but certainly will do so if used in “appropriate” dose and frequency. Both are legally and socially tolerated drugs, however, at least here in Austria. The “danger” of any drug will vary with dose and frequency of (ab-)use, see also Wikipedia. Personally, what bugs me more than the laws, is the way this issue is handled by the mass media. Often enough, one hears about “drug deaths” or somone being busted with this-and-that amount of “drugs”, not even mentioning what kind of drugs were involved, which makes people with a basic knowledge of the topic think “bah, what crappy journalism” and probably deepens the black-and-white world-view of the others. When the broad public is constantly exposed to such an undifferentiated view, this will certainly shape public opinion, making more liberal (or rather libertarian) legislation on that topic unlikely.

Andreas Rottmann: Centralized Revision control considered harmful

We all know a long time that CVS sucks; the author of that article (in 2002) listed his main gripes with CVS: missing file renaming and not being able to remove directories. So far so I agree completly, these two things make CVS annoying to use, and everyone, even casual CVS users, will stumble upon these mis(sing) features. At that point, both subversion and what later became GNU Arch (to my knowledge, the first Free Software, distributed RCS) were in pre-1.0 versions, but becoming ready for use by the braver souls. While subversion has certainly fixed the renaming and directory problems, subversion has a fundamental shortcoming, making it an obstacle for FOSS to reach its full potential: it restrains the developer that may come along and want to experiment with the code. And no, it is not enough that the developer can checkout the latest code and submit a patch to the mailing list. This might work on projects where such patches are both trivial and quickly fed into the repository. But for more serious work, you will want to keep track of your work for yourself, either so you can review and alter the steps (changesets) done later on, or since you have to submit it piecemeal anyway. It could also happen that another, non-privileged developer wants to work on a thing that needs your modifications, before your patch has been approved and committed, or even before you are fully done with polishing it up fully for inclusion into the mainline. This other developer may also be just interested in your work and like to test it, and while doing so, he finds a little bug and wants to fix it. All this does happen in the real world, even on a large scale, e.g. with Linux distributions, and it’s called branching. The problem with non-distributed RCSs is: you need write access to the repository to create a branch. This is both true in CVS and subversion (although in CVS, branching makes little sense, as merging is a real PITA). To get write access, you have to go through whatever hurdles there may be in that particuliar project until you are deemed worthy of commit access. It is of course clear why it has to be that way: would the developers of that project grant everyone and their dog commit access, they would soon be busy with undoing the damage done by commits that don’t meet quality (or other) criteria, and not having any time left for hacking. This is not a problem with a distributed RCS, however - you simply have (typically) one person maintaining the “official” version of the source code, typically that’s the same person that rolls release tarballs. For example with Linux, it is Linus (for the development branch). That person can have their own repository, where everyone else only has read access, and selectively pulls changesets (patches) from repositories of peer developers. I hope I was able to made clear why using non-distributed RCS for a FOSS project can restrain the possibilities, limiting indivual freedom. So, if you believe in freedom (and software freedom in particuliar), consider giving a distributed RCS of your choice a try. I can heartily recommend darcs, (altough I’m not sure how it scales to bigger projects) but there are several alternatives out there. And in case you want to migrate an existing project, or give your users and developers a choice of RCS, you can use tailor to migrate your old repository, or even establish a two-way gateway between two RCS.

Andreas Rottmann: Yet another logging package

I couldn’t resist the temptation, and started to write yet another Scheme logging library; this has been on my TODO-list for quite some time now, but now it became more urgent, since we need a logging facility for conjure. I hope jao will be pleased to see that my branch of conjure already makes use of the new logging module :-) . Of course, I didn’t in fact start from scratch, but had a look at the various logging libraries available; the Scheme ones being: I also had a look at log4r and the Python logging package; both seem worthy taking as a starting point. What I’ve come up with so far has a pretty similiar model to these systems; you send a log entry that should be logged to a logger, which has zero or more handlers that are responsible for actually doing anything with the log entry, such as writing it to a port. All loggers, besides the root logger have a parent, (also a logger) which log entries are sent to, in addition to being processed by the handlers attached to the logger; the propagation to the parent can also be turned off. The logger hierarchy is established by a hierarchical namespace: The logger with the name '(conjure cc) is a child of the logger named '(conjure). This may all sound overly complicated, but getting started is very straightforward:

;; ,open spells.logging
(define log-info (make-log ‘(test) ‘info))
(configure-logger ‘())
(log-info “hello world!”)

make-log creates a logging procedure. Logging procedures take a single argument to be logged; the argument may be an arbitrary object; it is up to the handlers on how to go about formatting this object. The argument passed to the logging procedure is wrapped in a log entry, which additionally contains the log level. The name of the logger that is to be used is '(test), and 'info is the log level. If the logger '(test) doesn’t already exist, it is created on the fly with no handlers and the root logger as a parent; it can be configured later. This separation of logger creation and configuration is important: In a real application, the logging can be configured from the command line or a configuration file; you don’t want to (hard-)code it into the same module that uses the logger. (configure-logger '()) configures the root logger (which has the empty list as name) with a default configuration. configure-logger also has an optional argument in which you can provide a custom configuration, but I won’t go into this now, since this part of interface is most likely to change. The default configuration amounts to logging everything on (current-output-port). Finally, we log a simple string through the logging procedure log-info. The output looks like this:

(test: [info] hello world!)
Well, enough of this for now; if you got curious you can take peek at the code.

22 January 2006

Joey Hess: on data hoarding

This post, (via Ian M) meshed with some things I've been mulling on for a while about how we treat different types of data today. The relevant quote from that post is this:
I'll bet that we will look back of this era of quasi-networking and wince, "How did we ever live that way?" And the idea of wanting to carry all of your content with you will seem both old-fashioned and rather ridiculous.
I was recently very happy to acquire a large quantity of data files (about 15 thousand), each of which would take me hours to days to do anything with. And I have a few hundred CDs and DVDs with a terabytes or so of achived data on them. There is probably more stuff here than I would ever be able to look at in a regular lifetime if that were all I ever did. I'm adding stuff to the collection regularly. All of this is data that is not freely available; some of it is private stuff like email archives, some more is music, and every other sort of digital media known to man. Except oddly, software, which is almost nonexistant from the hoard except for a few bits that slipped in by accident. The chance that I'll ever look at any single one of these files is probably on the order of one in a thousand, although it's certianly possible that a computer might look at them all and search out some that I will be more likely to look at. Even though I know that I will probably never use most of this stuff, I hold onto it as archives mostly because it's easier to do that, than to decide if I really need to keep it. Or to get it back if I mistakenly discard it. That basic tradeoff, plus the fact that it's very easy these days to aquire large quatities of data and hold onto it cheaply, are the main factors behind this hoarding. What I've described might seem extreme, but it's not very uncommon and most of the people reading this probably do it too, to some extent. But the really interesting thing to me is that if this data were the only data I was able to use, I'd be very unhappy and bored and unable to accomplish much. The interesting thing is all the other data that I don't bother hoarding, because it seems so likely that it will be easy to get it if I need it. Some examples of this data -- and there are untold terabytes of it out there -- include: the complete source and binaries for a dozen operating systems; the complete revision control history of a thousand free software projects; tons of archived web sites, concerts, and movies in the internet archive; every usenet post ever made; every mailing list post I've ever read (or ignored); dozens of bug tracking systems with millions of bug reports; probably not very good scans of any artwork of any significance; more ephemeral blog posts than even boing boing can link to, etc. I don't hoard that data. The tradeoffs dont make hoarding it worthwhile; it's easier to just hope that most of it will always be available, and use my limited resources to keep the small parts of it that I'm responsible for backed up and available to others. Which tends to feel like a better use of time and resources than hoarding data, by the way. I suspect that there is more of this sort of data out there that's important to me, than there is for the average person right now. After all, most people don't find old bugs in bug tracking systems and the history of software's modification in revision control systems interesting, and I understand there might even be a few to whom usenet archives from the 80's arn't fascinating. And I know that the amount of data out there that's important to me has gone up over time. So the big question to me is, will I begin to find my hoarded data is useless, will it ever stop being important, and will I stop adding to the hoard? Some technological advances, like faster bandwidth, could tilt the balance that makes some things worth hoarding now. But at least for me, data still seems to be worth hoarding if the cost of accessing it is more than the cost of keeping it on media, or if its future availability can't be guaranteed. There are a lot of services that don't meet these criteria, things like itunes, and bittorrent, and netflix. These things won't stop hoarding; they'll just make hoarding easier, despite themselves. If it were still the 80's I'd be hoarding nearly every freely available thing I listed 5 paragraphs above. Some of it no longer needs to be hoarded thanks to technological change, some of it due to new services, but it seems to me that the really important change that tilts the balance from hoarding data to not is a growth in trust, and a change in what kinds of data are valuable. I trust the Internet Archive. I (sorta kinda) trust Google. And so I trust them to keep their content available, and so I don't try to hoard it. More and more I find freely licensed data, whether it's Free software, CC licensed media, or whatever, to be more valuable than proprietary data. And because it's freely licensed it can be archived online for everyone, by everyone, with network effects, and no need for hoarding.

Aigars Mahinovs: It looks like the first Ice Age of the 2006 is ret...

It looks like the first Ice Age of the 2006 is retreating. For almost a full week we had to suffer temperatures in range of -25 to -30. I can remember that kind of cold setting in for a single day ... once in 5 years or so, but here we got almost a week of that horror. And they say that it is not over yet - there will be -25 again at the end of this week. After all this cold -9 tomorrow or -2 on Tuesday will be like a blessing.
The biggest problem that I have with this weather is that it is enough to get out of the house for 10 minutes to get to the nearby store and back and by sore throat is back for another day. Irritating.

Matthew Palmer: LCA 2006 -- The Early Years

So, I've arrived at LCA (linux.conf.au) 2006, in Dunedin, New Zealand. You're going to be getting a lot of these blog posts over the next few days, from me and other people, but it's only a week-long conference, so weather the storm. Plane trip over was... well, it was a plane trip. I can be thankful that I didn't lose my luggage (as one bloke has already had done to him). Beyond that, all aircraft interiors are identical, so no need to discuss that. At the stopover in Christchurch, we all headed for the bar (as geeks tend to do). I handed over a brightly coloured note in the local currency in exchange for my beer, and I get my change. What is part of my change? An Australian 10c piece. <sigh> Mad props to the conference organisers so far -- one of the organisers was at the gate (the only gate) at Dunedin airport to pick up speakers, but he gladly took us ruffian attendees into town, saving us all a few bucks in shuttle bus fairs. It was a nice guided tour in, as well, showing us all of the useful sights (like the pubs, 24 hour minimart, and eateries). He also dropped us off at the registration desk, so I got my conference schwag already (see my separate review of the schwag). Dinner involved walking into the octagon (a loop street with, unsurprisingly, 8 sides) and finding a place that serves you raw steak and a hot rock. It's like a portable BBQ construction kit. Amazingly tasty. We're going back tomorrow night for more of the same, as it's so tasty and fun -- you are legitimately allowed, even encouraged to play with your food. I also got a "barmate" (don't mispronounce that in front of your significant other) -- a yard-high glass cylinder with a tap at the bottom, filled with your choice of beer. Much merriment ensued amongst the assembled geeks, as we all plied ourselves with Speight's Gold Ale. I think it's about 8-10 pints worth of beer all up. Value. No Internet access yet, as they're still working out the kinks with the special conference network. I hope it's all up and running by tomorrow morning -- my mail queue is starting to seriously bulge with all of this outgoing mail.

Matthew Palmer: LCA 2006 -- Schwag Review

It's a conference tradition that you get a pile of schwag at registration -- some sort of collection of toys, brochures, and other miscellania to remember the conference by. Or something. LCA is typically characterised by a pretty good schwag haul -- I can't think of an LCA I've been to (all 2 of them up 'til now) where I've been disappointed with the schwag. This year is no exception. The organisers have clearly gone to a lot of effort to dredge up all sorts of geek-friendly gear to dish out. For example, the conference bag -- it's a laptop-friendly backpack-type apparatus. Lots of pockets, shoulder strap, the whole kaboodle. Very tidy. It's a pity I've already got my Targus carry-everything-including-the-kitchen-sink model, because this bag would make a very nice alternative to that. The stuff inside the bag is just as impressive. There's another retractable network cable, like last year (a bit of a pity, perhaps, but this one is Cat-6 rated, for extra... something), as well as a tiny little 1-AAA torch. There's the usual pad/pen, tourist detritus, and conference program. More interestingly, there's a very shiny yo-yo (puppy dogs, beware!) and (possibly most importantly) a keyring-mountable bottle opener. There's also what is possibly the world's smallest frisbee (less than two inches in diameter -- as one of the organisers said, "Throw it at a speaker you don't like, because it sure as hell doesn't fly"), a laser-cut placemat (tres cool), and a chunk of chocolate (because we're about 5 minutes walk from the local cadbury's factory). Finally, there is the T-shirt. Loved ones will be pleased to hear that the T-shirt this year is basic black, meaning that you won't have to worry about being seen in public with a red-clad Matt. (For those of you watching at home, my wife isn't keen on red coloured clothing for some reason, so last year's conference T-shirt was not a big hit). The speakers are going to have to work hard to top the schwag pile. I await their response with baited breath.

Matthew Palmer: The Future Is FUSE

Well, probably not, but it's a nice catchy headline. <grin> What I do think is that there is a pile of unexplored functionality hiding in mapping more things to regular filesystems. FUSE has lowered the barrier to providing access to non-traditional filesystem places -- there's versioned filesystems, SFTP (of the SSH variety) filesystems, filesystems into tarballs and zip files, and so on. Implementing a FUSE filesystem is as simple as whipping up a few callback methods in your favourite programming language (the native bindings are, of course, in C, but there's FUSE libraries for Python, definitely, and I'm fairly sure I've seen Perl and Ruby ones as well) to implement things like stat, open, read, and so on. Then you run the program as per normal and suddenly you can read and write things you've *never* read or written before... Beyond the mundane extensions of reality listed above, there's whole new vistas of relatively unexplored territory for filesystem-like operations, which are (a) waiting to be explored, and (b) much easier to implement due to the fun of FUSE. For example, SQL databases are very hierarchical in nature. Databases contain tables which contain rows which contain fields which contain values. If you can track your foreign keys, some of those values can be symlinks/directories to other records, or a directory of records for join tables. Sure, it's horribly inefficient to update whole tables by for i in *; do echo 12 > $i/fieldname; done, but at the very least it could be an interesting way of viewing data, and with some judicious caching (depending on use-case) the performance could probably be made half-sensible. A more refined version of this is the idea of reporting into pseudo-flatfiles. Imagine if you could open a file and have a spreadsheet of all of your data. With FUSE, it's possible. A killer one that my boss Dave Kempe came up with is a search filesystem -- you create a directory in this FUSE filesystem that is named after a search query -- perhaps "2005 financial". A Google Desktop-style search then results every time you enter that directory, and all matching files are available for your viewing pleasure. I understand that gmail works something like this "virtual folders with search" model, and I know that applications like Evolution and Liferea already have some sort of virtual folders type of thing, but we don't think that anyone's written something like this for filesystems. Considering that you can run a FUSE filesystem over Samba, you can easily have a company-wide document search-and-retrieval with persistent (and shared) queries, which is probably a pretty valuable thing. Even all of these, though, are relatively tame ideas when weighed against the myriad of things that my tiny mind can't even dream up. I don't think people have put much thought into how far a filesystem really can go, because before FUSE, if you wanted to write a filesystem, you were pretty much restricted to kernel-mode programming -- a very limited (and dangerous) world for your average application programmer.

Holger Levsen: On workrave and workplaces

Thanks to David Pashley I have discovered workrave, a tool with the aim to help you prevent RSI. I find it really useful, though in the beginning it sometimes feels annoying, for example when you're in the middle of doing something. After two days of using it, I'm slowly changing my habbit of clicking on the "postpone" button in those cases, as this a.) leads to another interrupt soon and b.) means even more finger movements (to click on the button and getting back to work).

Taking the breaks as adviced (I've only changed the defaults slightly) is really relaxing in my experience and even if I'm in the middle of doing something, I don't loose my concentration if I pause for 25 seconds and relax. I do loose more of my concentration if I do use the postpone or skip button :-)

And it's also not only helping preventing RSI but also back pains (which are related in my opinion / experience as one of the core causes for RSI is bad posture which also leads to back pains) and those breaks also help not to forget to eat and drink, which sometimes happens during hacking sessions.

So I'm a happy workrave user now, even though I'm still annoyed by bug 348845 - which I would happily fix myself if the sources for the images were available...

Which brings me to the topic of content being unsuitable for "the" workplace, because it offends people. I am offended, but not really surprised, how many people (and workplaces) seem to be offended by mentioning lesbians, but not for sensible reasons but because of the sexual reference. Heck, even Microsofts CEO seems to happily get along with gays, lesbians, bisexuals and transgenders even though Microsoft as an american company has to fear those (christian) talibans, which is not the case for Debian.

And you really shouldn't blame anybody else except yourself if you visit non-work related URLs during your working hours.

Julien Danjou: D-Link DWL G520+

For the record: this card has a ACX111 chip, supported by the ACX100/111 driver. I managed to make it work under Debian yesterday. It seems that this card is very sensible about the PCI slot you put it in. At least, putting it in another PCI slot than the last one of my Asus P4P800, makes it act weirdly: PCI id not the same, error writing the firmware, and so on.

Edd Dumbill: Firebug: neutralizes nasty niffs

Sometimes, coding for the web is like having a co-worker with a body odor problem. Everyone's far too polite to say anything, so you all put up with it and nobody tells the poor smelly soul. Meanwhile, they sense something's wrong but don't know what. Web browsers are so insanely great at making sense of tag soup, that if you code only for the end-result--a reasonable strategy, adopted by most when starting out--you can get into all sorts of tangles. Misery ensues: you're stuck with days of fiddling in the dark. You know something's up, but it's hard to see what's going wrong. In that sense, browsers are lousy at one half of Postel's law. They get the "liberal in what you accept" bit right, but they don't help the developer one bit in implementing "be conservative in what you do." Using three or four different validators for HTML, CSS, etc. often helps a lot, but the state of the browser as an integrated development platform leaves something to be desired. Firebug is a Firefox extension that goes a long way to providing integrated web application debugging. It is a full-featured error console that shows your errors in Javascript, CSS (a godsend!) and XML. Not only that, but it does full logging for XMLHttpRequest calls, so it's a powerful tool for debugging AJAX applications as well. Firebug also manages to bundle in a DOM inspector, and a command line for evaluating Javascript. With these features, Firebug should let me throw out about four separate extensions I already had installed that do a similar thing. The final star turn in Firebug's act is a Javascript call to log information to its console, the equivalent of the all important debugging printf() call in C. I hope this means this will make it easier to deploy things such as unit test frameworks for AJAX applications. Firebug in action on the BBC home page Although its author Joe Hewitt cautions us to remember that Firebug is still an alpha release, I'd still recommend rushing to install it. If you're developing anything for the web browser this year, it's the most important tool you'll find. While it won't rid you of the problems of cross-browser compatibility, Firebug will speed you in uncovering the smelly bits of your web application.

Zak B. Elep: Matira Talaga ang Matibay!!!

Pacquiao Gains Revenge with Electrifying 10th Stoppage of Morales W00T!!! Let the beer flood!!! (and forget about LiveJournal flodding ;) I would have posted a pic here for everyone to see what I mean, but I fear would-be lawyers coming at my door and shouting “him, him, that’s the man!!! Anyhow, salamat at congrats ulit, Manny, sa iyong pagkapanalo!

Brett Parker: bpgallery 1.0.1 released.

bpgallery is my little bash script that uses the image magic tools to generate a simple static gallery, this release has some documentation fixes (tells you how to make themes!), fixes the annoying find warnings that were happening and fixes an escaping issue with URLs. http://www.sommitrealweird.co.uk/development/bpgallery.html

Eric Dorland: I *knew* this quiz was out to get me...

Your Social Dysfunction:
Paranoid


You show pervasive and unwarranted suspiciousness, and mistrust of others. You are overly sensitive and prone to jealousy.

Take this quiz at QuizGalaxy.com

Please note that we aren't, nor do we claim to be, psychologists. This quiz is for fun and entertainment only. Try not to freak out about your results.

Eric Dorland: bug triage

I've been spending a lot of time this week working on bugs in the Firefox package in Debian. In the wake of Firefox 1.5 I've been going through the bug list closing things left and right, fixing up tags and merging, asking for followups and reassigning the rest from mozilla-firefox to firefox. I've been at this for some hours and I'm still not even halfway done I think. Moral of the story: If you love your maintainer or want to help Debian, find a package with a load of bugs and help sort through them.

Eric Dorland: contrary to popular opinion, we do actually fix bugs

A recent post by Ingo Juergensmann lamenting m68k not making the cut in this round of architecture qualifications. While it is a shame I think, I don't think it's necessarily the end of the world and his complaint that developers will now stop fixing bugs is crazy. Just because they're suddenly not release critical doesn't mean (good) maintainers will be unwilling to fix them. Most architecture bugs are toolchain bugs (ie not the package maintainer's fault), general types of architecture bugs (eg endianess, int size) that affect more than one architecture and tend to get fixed quickly and easily and really freaking hard problems that most package maintainers don't have the skill to fix on their own (eg #343687, help!). But if someone submits a bug that's trivial to fix, or gives me a patch, that bug will get fixed. I don't like bugs in my packages and probably most other developers don't either.

Eric Dorland: opensc 0.10.0

After some legitimate delays and some procrastination, opensc 0.10.0 should be sitting in the NEW queue waiting for the ftp-master divine blessing to go into unstable. There was a bit split up of the package in this version, and it took me a while to get all the bits packaged up, and I still haven't finished the new pam modules. Should get a chance to package those over the holidays. Back to working on Firefox now.

Eric Dorland: nihon e ikimasen ( )

Well I just got a rejection letter from the JET Programme, so no Japan for me this year. I wish the rejection letter gave some clue as to why I was not a suitable candidate. I can try again next year, maybe get a TESL certificate to improve my odds. At least [info]mricon won't have to look for a new roommate come August.

Next.

Previous.