Search Results: "joey"

7 January 2009

Michal Čihař: rel-vcs microformat

Joey, I really like rel-vcs proposal. On the other side it misses few good things which were already found for Vcs-* fields (there is already no XS- prefix for quite a long time). First it misses information about branch. On git, you will automatically get a master, but for SVN, you need to point to some branch, otherwise you get really lot of stuff. And I think that practise should be same as for Vcs-Svn - to point the field to trunk URL. The second thing which this proposal misses is Vcs-Browser. It would not be useful for tools like webcheckout, but it would be great to have support for it in browsers or in plugins such as Operator. How about using type="browser" for this?

6 January 2009

Joey Hess: proposing rel-vcs

I'm working on designing a microformat that can be used to indicate the location of VCS (git, svn, etc) repositories related to a web page. I'd appreciate some web standards-savvy eyes on my rel-vcs microformat rfc. If it looks good, next steps will be making things like gitweb, viewvc, ikiwiki, etc, support it. I've already written a preliminary webcheckout tool that will download an url, parse the microformat, and run the appropriate VCS program(s). (Followed by, with any luck, github, ohloh, etc using the microformat in both the pages they publish, and perhaps, in their data importers.) Why? Well,
  1. A similar approach worked great for Debian source packages with the XS-VCS-* fields.
  2. Pasting git urls from download pages of software projects gets old.
  3. I'm tired of having to do serious digging to find where to clone the source to websites like Keith Packard's blog, or cariographics.org, or St Hugh of Lincoln Primary School. Sites that I know live in a git repo, somewhere.
  4. With the downturn, hosting sites are going down left and right, and users who trusted their data to these sites are losing it. Examples include AOL Hometown and Ficlets, Google lively, Journalspace, podango, etc etc. Even livejournal's future is looking shakey. Various people are trying to archive some of this data before it vanishes for good. I'm more interested in establishing best practices that make it easy and attractive to let all the data on your website be cloned/forked/preserved. Things that people bitten by these closures just might demand in the future. This will be one small step in that direction.

2 January 2009

Joey Hess: new year

I'm trying to work on having days that are somehow individually memorable this year. So far.. 0 (leap day) Finally tackled the chapter on monads. I'd read various explanations a year ago, but was swimming in syntax I didn't understand. After percolating for a year, and learning to read the syntax better, monads turned out to make very simple sense. (I can't say the same about Johnny Monad.) I had been meaning to write sometime about a method I used in ikiwiki to let expressions in a mini-language, that normally are evaluated to match a set of pages, instead be evaluated to explain why they succeed or fail. It's a cute technique, though hard to explain. Now I'm pretty sure it's just a monad. So I don't have to explain it! 1 Visiting Abram's falls this time of year, the canyon is in constant wintry shadow. The falls are not frozen, but have icicles twice my height, and there are rank upon rank of icicles all down the walls, an ice cathederal. It's a bright sunny day, but on the whole hike, I only get into the sunlight once, briefly, at the top of the giant steps. Then back into the shade. Back at my car, I'm suprised that it's only 3 pm, feels like it should be 5. Made a pecan pie with daddy's pecans and eggs. 2 A grey day with snow and worse. The paper's rss feed repeats "dozens^Whundreds of wrecks" over and over, as if to make up for there being no 60 point type. I'm reading Ted Nelson's book Geeks Bearing Gifts. The chapter summaries seem better than the actual book. And the on-demand printing makes me think I'm reading a poorly laid out web page, rather than something typeset. But I love that he goes all the way back to the invention of the alphabet and of hierarchical categorization and suggests all the basis for modern computers is arbitrary and/or wrong. Eating ginger duck downtown I look up and a pizza delivery guy has slid out of control right in front of me and crashed.

28 December 2008

Joey Hess: the OpenID logo and free software

Suppose you have a free software package that includes an OpenID login form. Such forms are supposed to include a little OpenID logo . But as hard as you look, you can't find a license for the OpenID logo. Though there seem to be indications that it might get one in 2009, it seems like it will not be free enough to be included in a free software package. Due to this problem, all the ikiwiki sites out there have not used the OpenID logo, or indeed any logo, in their login form for the 2+ years that ikiwiki has proudly supported OpenID. That was so suboptimal that I spent some donations to commision an unofficial OpenID logo openidlogin-bg.gif. It's freely licensed for use in whatever. Putting the little OpenID logo in the login form is a nice touch, it helps spread awareness about OpenID and users learn to look for it. The fact that free software packages can't include it weakens that. Having an alternative logo that evokes the "real" logo and the concept of a login is better than no logo at all. But it is also needlessly confusing. I encourage the new OpenID board to reconsider plans for logo licensing, and bear in mind that many free software packages can have native OpenID support, and should be able to include a copy of the logo, without worrying about it conflicting with their license, or not being free enough to be included in a free software distribution.

Joey Hess: Southern borscht

I was asked for my borscht recipe. This is loosely derived from a recipe that is really weird -- it says to throw away the beets! Both that recipe and mine are probably very unauthentic. But good. 6 cups water
3 medium size beets
2 medium size potatoes, quartered
1/2 cup chopped carrots
1 stalk celery, chopped -- optional
1/2 a bell pepper, chopped (red or green) -- optional
1/3 cup butter
1/2 to 1 cup chopped onion
1/2 cup tomatoes (fresh are best, canned or tomato paste + water is ok)
1/4 cup milk
2 cups finely chopped cabbage
1 tablespoon vinegar
1 teaspoon dried dill weed
sour cream Put water in a large pot on high heat. Add beets, potatoes, carrots, celery, and bell pepper. Cover and boil until potatoes are tender. Meanwhile, melt butter in a skillet. Saute onion in butter until tender, about 5 minutes. Stir in tomatoes, reduce heat to medium low, cover, and simmer for 15 minutes. Remove half of sauce from skillet into a medium size bowl. Add cabbage to remainder of sauce in skillet and cook coverted on medium low heat, stirring occasionally for ten minutes, or until tender. Reduce heat on pot to a simmer. Remove beets from pot and set aside to cool. Remove quartered potatoes and add to bowl with sauce. Mash potatoes, adding milk, until creamy. Stir mashed potato mixture into soup in pot. Grate beets, removing skin if desired, or grating it in. Combine grated beets and cabbage into pot. Add vinegar to taste (optional but recommended with sweet beets). Add salt and pepper to taste. Stir in a teaspoon of dill. Cover and cook for at least another 5 minutes on low heat, then let it cook in its residual heat for as long as desired. Serve hot, garnished with sour cream and dill.

23 December 2008

Joey Hess: personal wishlists 40319, 32

40319 An e-book reader where I can click on any word and enter a definition for it. The definition will then appear as a tooltip when I hover over the word. Take that, Iain Banks, and Neal Stephenson! 32 I want Deskview X's terminal program. The one that resizes the font when the window is resized. Except free and modern. With modern (ie, auto-layout tiling) window managers, this is less of a wishlist and more of a missing necessity. Ideally, it would always keep the window 80 columns (or some other user-defined value) wide. I've poked around in gnome-terminal's source, and this looks fairly doable, but I have not found the time to get down and do it.

20 December 2008

Joey Hess: two parties and a story

Happy solstice! High point of the season for me, and today was a two party day. My sister has reached the point where a good b-day present for her is merging the blog style comments branch into ikiwiki and installing linux on yet another laptop. So we had a little installation party with cake and Carcassonne. Except for wireless it was a success. Since I outsourced the other present to the UK, perhaps someone can sort out Christmas by telling me how to get Intel 5100 wireless working in Debian? ;-) At the solstice party tonight, all three of the recent inhabitants of the bottom of Wortroot washed up on the porch, each of us looking a bit scraggly (especially the current resident). Jeremy told this story:
His friend decided to drive his SUV down the driveway to the farm, without consulting with him first. (This driveway was blasted out of the hillside by amateurs, using dynamite, in an earlier era of life at the farm. It has been basically unmaintained since, progressively more eroded and rutted, and over the last 20 years only the Yellow Truck (with no brakes) has had free reign over it.) He got down the hill ok, and he passed the small field, and then he got to the narrow place. (Where the creek is eroding the driveway away faster than we can cut into the hill to widen it.) And Jeremey told him to stop, but he kept on going.. sliding right off the driveway, and rolling the SUV into the creek. (The creek here is, now that I think of it, exactly as wide as your average SUV is tall, and in a gully exactly as deep as your average SUV is wide. It must have fit perfectly.) They tried winching it out. That didn't work. They didn't even think to ask neighbor Jimmie to once again haul a vehicle up the driveway. His tractor couldn't have gotten this one out. They had to rent a "small backhoe on treads, like a tank" to do the job.
Ok, maybe you have to have lived there to appreciate this. :-)

17 December 2008

Joey Hess: trim

Dell chose to ship Linux on the Mini 9, and so they were not required to plaster Windows stickers all over the case. They made up for this sticker deficit with a useless sticker that reads just "Inspiron M series" (or something approximating that). My mind boggles at the decision process behind that. Removing this sticker, I scratched the case of my new laptop. I also spent about 20 minutes scrubbing off the evil glue they used, which spread everywhere.
I had hoped the white power LED on this laptop would be less eye-searingly painful than the blue leds that were trendy before. It is, but it's also right on the front of the laptop, which is often in a direct line of site to the screen. In any dim enviroment, the LED is still brighter than the screen. I fixed this by applying some electrician's sticky tape to the case. Obviously, I can't win.

Joey Hess: Dell Mini 9

Well, I got the Dell Mini 9. Tiny little toy-looking laptop. It's too soon to tell if I'll like it. Or if my goal of using this as my only laptop, and primary work machine will succeed. But what a lot of firsts and changes! My first laptop with no moving parts. Yay! My first completely silent laptop. Double yay! First laptop I've bought with linux preloaded. The default Ubuntu load was ok. It also contains my name 886 times. :-) Scarily, it also runs bits of code I wrote for base-config. Installing Debian went ok, mostly, though wireless is a bit of a pain, and I have a strange problem with something fiddling with LCD brightness periodically. Oh, and SHDC cards make it crash on boot and resume. I've set up a page with the details, including how to fix the missing punctuation keys. I've switched to using white on black for my terminals, and run them full screen rather than tiled. Cause the screen is small, and doesn't handle large black expanses as well as I've been spoiled to expect by machines that cost three times as much. I like that netbooks encourage minimalism.

14 December 2008

Joey Hess: road trip

Blessing, VA
Rt 666 Hogback Rd
I'm in Charlottesville for a few days. Got to visit the always atmospheric Crozet Pizza, and am enjoying a cabin at Misty Mtn. Had a good long think on the drive up, but it doesn't want to come out as a blog right now.

12 December 2008

Joey Hess: wherein I read too much

  1. Dishwasher, by Pete Jordan
  2. Windfalls, by Jean Hegland
  3. River of Gods, by Ian McDonald
  4. Powers, by Le Guin
  5. Real World Haskell, by O'Sullivan, Goerzen, Stewart
  6. Matter, by Iain M. Banks
  7. Ars Magica, by Tweet & Rein Hagen
Nice set of books. Pity I'm in the middle of all of them. Lately I have a hard time finishing many novels, I think because waiting for the plot to play out gets boring. Although River of Gods has mostly just confused me with too many viewpoint characters. And by this, where each box is a chapter, and that big box I'm just at the start of scares me: Dishwasher is fun light reading. If I'd thought to bring it to its owner, Jay, who misplaced it, I could have picked it up from where I left off months ago and read it on the plane. Double oops. Oh well, there's always my next doctor or dentist appointment. Powers is a probably great book by Le Guin. I hope there are many more to come, but the tendancy is to savor what's available. Also, I have it in dead tree edition, which I tend to save up for when I need them. Windfalls is such a dead tree book, hibernating in the yurt for me to get back to them some day. I may have to start it over, since it's pretty involved, and rather out of my usual comfort zone. Real World Haskell is coming along well, I hope. Matter hasn't pulled me in yet, oddly. Ars Magica I've been flipping through the PDF of idly.
Anyway, after all that, turning up a random story generator in 1 kilobyte of code couldn't help but feel like a relief.

8 December 2008

Joey Hess: mpd proxy

An idea I've had for a while is to write a proxy for MPD. I have mpd servers scattered around, and lots of clients I use on my laptop, and it was getting annoying to manually point each client at whatever server I was listening to at the time. The proxy would get in between the client and servers, and redirect all the clients to whatever server I told it to use. One interesting question is whether the MPD protocol can deal with a client suddenly speaking to a different server with a different state. The protocol is mostly stateless, but the proxy would need to send the password each time it changed to a different server. There could also be trouble if clients cached info about the database, etc, as they wouldn't see the new info from the new server. I bailed and took a quick and dirty workaround to that problem. My mpd proxy disconnect all clients when changing to a new host. Clients then reconnect, re-sending passwords, and clearing any caches. So the implementation is not all it could be (and is not ready to be added to mpdtoys yet), but here it is: mpdproxy Needs simpleproxy installed to work, set MPD_PORT=6601 to make clients use it, and to change the server it connects to, just echo foo >~/.mpdhost. I'm pretty happy with the result -- now I can use mpc and mpdtoys like mpstore without worrying about specifying a host, and sonata lets me know what's playing everywhere.
On to pondering better things, like discovering nearby mpd servers automatically with mdns..

7 December 2008

Joey Hess: haskell and xmonad

I came back from Thanksgiving in California to find my copy of Real World Haskell had arrived. I've spent the last several days making my way through it up through chapter 10. I'd read a few of the first chapters last year when I was struggling to learn Haskell, and posted enough comments that I'm amoung the (many many) people credited in the Preface. Amusing, since I still don't consider myself proficient in the language. Reading back through those and on through Chapter Nine has swapped back in the basics I learned last year, and built on them. I was able to get all the way to Chapter Ten before hitting real brain-melting stumbling blocks. That's progess! I can't help but feel that Chapter Ten should come later, perhaps after monads are covered. Only other quibbles so far are some typographical problems introduced in typesetting the book, and a few bugs and problems that were pointed out in comments on the web site, but not fixed in time for the first edition.
Anyway, I know more than enough Haskell now to configure xmonad. While I'm still perfectly happy with awesome, xmonad has some cool things going for it. Playing with it this evening, I especially like: My current set of gripes with xmonad is small:

28 November 2008

Joey Hess: very long day

Up at 4:30 am to fly to the Bay Area, then visited the beach, a posh thanksgiving at Mill Valley (stuffing with oysters in is the best ever). By the time I got to bed in Oakland, I'd been up for 21 hours, aside from catnaps on the plane.

25 November 2008

Joey Hess: merge conflict

I'm writing a piece of autobiography/alternate world fiction, using git. Whether it will get finished or be any good, or be too personal to share I don't know. The idea though is sorta interesting -- a series of descriptions of inflection points in a life, each committed into git at the time it describes. As the life paths diverge, branches form, but never quite merge. Reading this would not be quite like reading one of those choose your own adventure books. Rather you'd start at the end of a path and read back through the choices and events that led there. Or browse around for interesting nuggets in gitk. Or perhaps the point isn't that it be read at all, but is instead in the writing, and the committing.

24 November 2008

Joey Hess: winter campout

Spent yesterday at Anna's doing a computer clinic. Camped out in the yurt with a zero degree sleeping bag and a down comforter, nice overkill.

21 November 2008

Joey Hess: netbooks

I've been looking at netbooks, since indications are that my laptop's hard drive will die again soon, and that its LCD may follow. I can't seem to find any netbook with a resolution better than 1024x600. I'm used to 1280x768; dropping down will be a real shame, but seems unavoidable. I'm very interested in a machine with no moving parts. So far the only one I've found is the Dell Inspiron Mini 9, which has passive cooling, so no fan, and of course uses a SSD. I'm not completly sold on it though -- its battery is only a 4 cell; its wifi may not be well supported. The Eee 901 is attractive due to its battery, but has a fan. I'm very noise sensative these days, and the fan would have to be whisper quiet to be acceptable. And even then I think it would annoy me. (Even quiet laptop hard drives annoy me.) All in all, I wish I could wait another 6 months to a year and see if the next generation improves any. OTOH, I could buy both of these for less than the price of my current laptop.

18 November 2008

Joey Hess: a year of haskell (not really)

Guess it's really been longer than a year that haskell has been on my mind, though not much lately. Things are aligning again. I'll shortly be visiting the Bay Area again -- last time I piled up haskell documentation for the plane trip. This time I'm looking forward to the Real World Haskell book waiting in the mailbox when I get back. I read and commented on the first several draft chapters, hoping my ignorance would be useful, and I know one of the authors (though if I'm not mistaken I've never met him). So I'm looking forward to reading it, but also feeling guilty that I haven't managed to do anything serious with haskell yet. No new project that I dared, or had the patience, to attempt in it. But that's what the book's supposed to solve. Getting over the gap from a basic understanding to being able to add the language as another tool in the kit. And hey, it's better than seriously learning javascript would be, right?
Right now I can't think about haskell without thinking about Buddhism. I won't bore you with why they're connected in my head.

11 November 2008

Joey Hess: spelling policy

Effective immediatly -- If you're annoyed by the spelling of something I've written, I will accept a patch -- preferably generated by git-format-patch, but diff -u is also acceptable. Any other communication about spelling mistakes will be ignored, unless the mistake has ramifications that will cause undue pain and suffering to people who are not English majors. Furthermore, if the spelling "mistake" is that I spelled "-ize" as "-ise", it's not a mistake -- I prefer to use the latter form for obscure reasons, with a few exceptions. PS, I realise that these are entirely arbitrary rules forced upon you willy-nilly. Teh irony..

9 November 2008

Christine Spang: Switching to Colemak

Way back in mid-late May, I switched keyboard layouts from standard US QWERTY to Colemak. I’d played around with the layout a bit before that and thought it seemed pretty solid, but it hadn’t been a good time to switch then. (I did, however, snag the idea of remapping Caps Lock to Backspace from that early trial though, and to this day that’s probably the most annoying thing about typing on QWERTY, because I associate Caps Lock with Backspace on both layouts now. Anyway.) This time, however, I strategically timed it to coincide with the end of classes, so I had no assignments due and could make a fool out of myself during the first few days of my summer job. Smashing success. It only took a couple days to get past the point of extremely frustrating slowness. Two weeks in I was up to 40wpm, which was about the point where I stopped noticing that I’d taken a backwards step in typing speed, as it didn’t really hinder anything I did on a regular basis. By the end of the summer I was back up to the same speed as I’d been prior to switching (around 75wpm). I didn’t really do any typing lessons after the first few days, as I found just doing whatever I would normally do on a computer much more interesting. The biggest hurdle after the initial adaptation of actually being able to type on the layout was, for a command-line lover like myself, dealing with “hjkl” not being a convenient way of navigating around in console apps like mutt, vim, aptitude, and less. After a bit of experimentation, I stole an idea from this page and started adapting my dotfiles to make these programs use ne for jk and st for hl, and that seems to be working out well. The worst key that this clobbers in general is n, but it’s pretty easy to remap that to QWERTY’s n, which is easy to remember and is the hardly-used k on the Colemak layout. For any interested others, I’ve thrown the relevant dotfile snippets up here. I’d been putting off blogging this because I wanted to finish setting up dotfiles/homedirs-in-git la Joey Hess beforehand, but I figure I’ll never actually get it done if I keep using that excuse. For mutt, the given snippet goes in your .muttrc (or whatever you source keybindings into your muttrc from). The same goes for vim. Aptitude keybindings go in .aptitude/config. For less, it’s a little more arcane: first you stick your keybindings in .lesskey, and then you run the command lesskey. I also remapped screen’s escape key to ctrl-t. Why not Dvorak? Dvorak seems to be the most well-known QWERTY alternative around, so why didn’t I switch to that if I wanted something better? I did try Dvorak first, but the incredibly uncomfortable combination of ls on the right pinky was a complete deal-breaker. I also found it very slow-going to try to adapt to Dvorak after typing on QWERTY for years. The Colemak FAQ has some more notes on Dvorak deficiencies that it addresses. Overall, I’ve found typing on Colemak to be remarkably lacking in anything that particularly bothers me. I still type on QWERTY a little, but mostly just for login prompts on Athena workstations and the desktop machine in my room which my roommate sometimes uses. I have to glance down at the keyboard when typing on QWERTY to get it back in my head, but generally I only need it for a few minutes anyway and it’s no big deal. As long as I glance down occasionally I can still maintain a speed level well above that of frustration. On the plus side, this means that if I look at the keyboard when typing normally in Colemak, I get screwed up because I start thinking in QWERTY. So it’s good touch-typing reinforcement in general.

Next.

Previous.