Sunday, March 04, 2007
Monday, February 26, 2007
Saturday, January 20, 2007
Universal Binary
If I recall, you have to go to Project -> Edit Project Settings. Then go to the Build tab. From there, look for Architectures, then click the Edit button below and just make sure both PowerPC and Intel are checked. Of course, I believe you have to make sure its enabled for, at the least, the Release Configuration.Thanks Dexter!
Tuesday, January 16, 2007
My review of Microsoft Natural Ergo Keyboard 4000 with PS/2 & USB Interface, Black & Silver
Originally submitted at Adorama
Microsoft Natural Ergo Keyboard 4000 with PS/2 & USB Interface, Black & Silver
It's ergonomic!
Pros: Ergonomic, Nice Extra Features
Best Uses: Writing, Laptops, Office Computers
Bottom Line: Yes, I would recommend this to a friend
See the video!
Microsoft Natural Ergonomic Keyboard 4000 Review
Tags: Review, Keyboard, Ergonomic, Powerreviews, Robert
(legalese)
Thursday, January 11, 2007
My review of Casio Exilim EX-S600-SR Digital Camera, 6mp, 3x Optical, 4x Digital Zoom with 2.2" inch LCD Screen - Sparkle Silver Finish
Originally submitted at Adorama
Casio Exilim EX-S600-SR Digital Camera, 6mp, 3x Optical, 4x Digital Zoom with 2.2" inch LCD Screen - Sparkle Silver Finish
Pros: Nice Features and Settings, Simple Controls, Great Resolution
Best Uses: Travel, Portraits, Outdoors, Everyday
Bottom Line: Yes, I would recommend this to a friend
See the video!
Casio EX-S500 Review
Tags: Arun, Powerreviews, S500, Review, Casio
(legalese)
Wednesday, January 10, 2007
My review of The North Face M's Denali Jacket
Originally submitted at Evogear
The classic. The North Face Denali is the ultimate all-around fleece jacket for any cold weather adventure.
If only it prevented the common cold
Sizing: Feels true to size
Pros: Comfortable, Good Fit, Durable, Lightweight
Best Uses: Casual Wear, Office, Travel
Describe Yourself: Comfort-oriented, Trendy, Stylish, Practical
See the video!
Men's Denali Jacket Review
Tags: Jacket, Denali, Gautam
(legalese)
Thursday, January 04, 2007
Thursday, December 21, 2006
SVUG
Alpha and beta are just Greek for a and b. They were, anyway, until 1994, when Netscape accidentally turned "beta" into a World Wide Web buzzword by giving away over a dozen beta versions of its browsers in three years. For Web hipsters, using Netscape's buggy beta features shifted from an option to a requirement. If you don't remember pounding your keyboard over Finnish sites that locked you out with "go install Netscape 2.0b3," you weren't really there.Valleyway might have lost Nick Douglas, but with posts like this one it doesn't matter too much. Somehow, sometimes, this blog has the ability to make me feel not so bad about throwing away hundreds of dollars in rent. Also, Megan, their party correspondent is super nice so I guess I'll stay subscribed. Melanie will never let me forget that fabulous Christmas party that Vinnie threw, where I met Megan. And Julia :)
I'll be on east coast time next week.
Wednesday, December 06, 2006
Analog Devices
Me: Analog Devices... what kind of applications are better done with analog rather than digital?
Melanie: Clocks.
I should have known better than to ask the electrical engineer who is my girlfriend.
Monday, September 11, 2006
Portal
Sunday, September 03, 2006
Free discreet MIDI ringtone!
Monday, August 21, 2006
Portals
Hibernate Mapping Diagram
<?xml-stylesheet ... ?>
directive in your mapping file and try opening it in a browser. I'd be surprised if it works in anything other than Firefox 1.5 (it needs to have canvas and XSL support). The XSL is pretty nasty because I wanted to include some portions of scrip.taculo.us to enable you to position the tables manually. Once the tables are in place, try hitting the '#' link in the top-left corner to connect everything together with "arrows".
Facebook RSS
[...]
Just the basics. What would be useful? Photos? Wall postings? Thanks goes to Ken K. for some help with the login procedure.
Update: the script is broken so I removed the link to it. I suspect the 'News Feed' feature is 10 times more useful anyway. See comments for more.
Thursday, August 17, 2006
Wednesday, August 09, 2006
MA STAR VANS R REAL SNEAKERS PIMPEN!!!!
By JHANAY AKA NAY-NAY BKA BOSSY CHICA(unverified) from RANCHO CODOVA on 7/3/2006
Pros: Comfortable, Durable, Stable, Warm
Cons: Stains Easily
Best Uses: Cold Weather, Travel, Casual Wear "JHANAY HARRIS GOT A PAIR", "GO DUMB USA BY JHANAY", "GET HYPHY IN THEM"
THEY R SO COMFY WHERE EVER U GO EVEN ON BUSSINESS TRIPS AND I WHERE THEM WHEN IM AT A SIDE SHOW GOIN DUMB U FEEL THEY NOT ONLY 4 ROCKERS THEY 4 PPL WHO LIKE HIP HOP LIKE E-40 KEAK DA SNEAK TOO $HORT MAC DRE(REST IN PEACE)ECT.
(0 of 0 found this review helpful)
Mad props for being able to throw "hyphy" and "bussiness trips" in the same post.
Monday, July 31, 2006
I took a quick poll to prove a point - nearly everyone in the room was a product of public school education (myself included). So the opportunities weren't isolated to higher education. (Mr. Jobs followed up to make the reality more painful - showing how few of us were sending our children to public school.)Jonathan Schwartz, Lunch with Prime Minister Tony Blair
Sunday, July 30, 2006
Firebug
readonly
text input. Firebug allowed me to wipe the attribute, submit the form, and have it my way. Kind of like a disposable greasemonkey script. Never thought I'd use the extension in that context. Thanks Mr. Hewitt for helping me avoid make a call to Cingular support.
Friday, July 28, 2006
Java image manipulation
Update: If you're processing non-sRGB images, expect lousy performance on non-windows platforms (due to lack of hardware acceleration support).
Wednesday, June 14, 2006
Tuesday, June 13, 2006
Lately, I've been getting quite a few emails requesting the Facebook vCard greasemonkey script. Maybe one every 2-3 days. I didn't think there was actual demand for it. I wish Facebook would just change their policy. Of course they don't have to... they get all the traffic they need without having to listen to its users at this point.
Saturday, June 10, 2006
Friday, June 09, 2006
Monday, June 05, 2006
kill -9
Sunday, May 21, 2006
Saturday, May 20, 2006
Tuesday, May 16, 2006
Monday, May 15, 2006
Monday, May 08, 2006
Steve and I generated some Google maps for various schools today:
UCLA
Cornell
Washington
Wisconsin
Sunday, May 07, 2006
...and since I'm fixing some bad HTML that the Blogger widget always seems to cause...
Via Jawed: Pinkey the cat
Friday, May 05, 2006
In some vending machines you can put in a bunch of nickles/dimes, hit the "never mind button," and get back most of the change in quarters. Didn't know that.
The dude next to me and I are both scouring MySpace. He's twice my age. I hope he's doing it for class too.
Friday, April 28, 2006
Wednesday, April 05, 2006
Tuesday, April 04, 2006
Guessing
I had recently read The Wisdom of Crowds, which starts with a story from decades ago where the crowd at a farmers market performed a similar task, except it was guessing the weight of an oxe. The average of all guesses was one pound off the true weight.
The professor may have also read the book because after everyone was done guessing, he brought up the same story. I was one of the last people to announce my guess, so I gave a rough average of all the counts given up to that point thinking maybe this crowd was as wise as the one in the book. But as the professor said, this group of Stanford people did much worse than a bunch of old English country bumpkins. The mean was ~280 and the true count was 522.
Monday, March 27, 2006
Friday, March 24, 2006
Thursday, March 23, 2006
Monday, March 20, 2006
Nerf Rifle
Nerf Rifle
Via Gogglemarks, which links to a higher resolution video.
Thursday, March 16, 2006
Seen in an email on the cs-careers mailing list. We get at least two of these a day, but still... what kind of pitch uses the phrase "yet another." That doesn't send a very strong message.
I had the fortune of riding in a DB9 today. The automatic shifter is mounted on the panel above the radio.
For the first time since starting to use the Blogger Dashboard widget, I'm seeing the same behavior Matt wrote about, that the writing area doesn't scroll. Instead it increases the height of the widget. Poorly done.
One more week until this quarter is taken care of. Two more weeks until Las Vegas. Three more weeks until Melanie.
Sunday, March 12, 2006
CC
Thursday, March 02, 2006
Tuesday, February 28, 2006
PyThong
Today, I was going to look up some documentation and I did it again so I inadvertently went to pythong.org and got something unexpected. They were nice enough to link me to my intended destination. It must be a pretty common slip.
Sunday, February 26, 2006
Friday, February 24, 2006
Thursday, February 23, 2006
Wednesday, February 22, 2006
Wired for Speech
I saw the owner of this bike on my way to campus this morning. The iPod was blaring in full effect, coasting down the bike lane.
Update: The professor of the above lecture said today that we are able to distinguish our native language from other languages when we turn 4 days old. Remarkable.
Wednesday, February 08, 2006
ICMP echo request
valhalla:~ mhdavids$ ping www.sfcu.org
PING www.sfcu.org (192.216.246.33): 56 data bytes
36 bytes from cardinal-gw.customer.alter.net (157.130.212.2): Communication prohibited by filter
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst
4 5 20 0054 8677 0 0000 30 01 8b0a 192.168.1.101 192.216.246.33
What is that all about? Never seen that kind of response from the ping command before.
Sunday, January 29, 2006
Facebook announcement pricing
Thursday, January 26, 2006
Nass
One of my professors this quarter, Clifford Nass, is the best lecturer I've ever had. Maybe I should say he's the funniest ever, but funny is good, and thereby he's the best. His impression of a rich, white, educated male is even better than Dave Chappelle's. I need to bring in my camera to class and tape this guy. Some of you might've heard him on NPR yesterday. He said he was going to be on one of the programs.
Email is so popular, despite what I think is a pretty bad way of doing certain things it frequently is used for between people. Obviously the social interface is great, but isn't there a way to improve group discussions via email? Something like a temporary news group... to figure out tonight's dinner plans... or decide which color shirt we want to go with for the intramural basketball team.
Update: The NPR bit I talked about showed up in my ITConversations podcast feed. He's not nearly as entertaining as he is in lecture.
Sunday, January 22, 2006
Trivia
Tuesday, January 17, 2006
Nokia N70
Friday, January 06, 2006
Ning
Update: I switched out the API I was using (phpFlickr) to a new one (phlickr), and it was still rather slow. I've found it much faster to query all photos, instead of a specific group. I don't have any hard evidence that this is the source of the lag, but it's better now. I wanted to try to speed things up since I got a couple of responses from some friendly Ning people. I suspected it was my app rather than Ning itself because other pages loaded fairly fast. Try it again.
Wednesday, December 21, 2005
3 Step Plan
Something I made last night for an upcoming party that wasn't used so I'll put it here for other Roy Lichtenstein fans to enjoy.
Of course in this blogger theme it doesn't quite work.
Tuesday, December 13, 2005
Columns
Update: Found this link to answer some of my questions: http://www.codinghorror.com/blog/archives/000618.html. The findings agree with my preference since I'm a slow reader.
MarsEdit and Meetro
Also wanted to help out the people over at Meetro. Here's the low down:
Meetro has now launched its Mac private alpha and is looking for people to participate. We plan on distributing it to the first few hundred people that email us at mac@meetro.com So reserve your spot now! Also, please include the city/state you reside in as well when contacting us.
Meetro is a location-aware IM client, compatible with the major protocols. I can't say much more since I haven't installed the alpha yet.
Also, woah.
Monday, December 05, 2005
Atherton
Sunday, November 20, 2005
People
I've come to realize how many great people I've had the chance to see or even meet in a couple of months on campus. A brief list of notables:
- Terry Winograd, Larry Page's old advisor (and now my advisor)
- Brian Behlendorf, once president of the Apache Software Foundation
- Mark Zuckerberg, producer of the Facebook
- Dan "Monzy" Maynes-Aminzade, "So much drama in the PhD" rapper
- Dan Gillmor, author of We the Media
- Jonathan Schwartz, president of Sun
- Don Knuth
- Sergey Brin and Larry Page
- Mark Benioff, CEO of Salesforce.com
Friday, November 11, 2005
Google Search Keys
Tuesday, November 08, 2005
Chuck Dynamite
Also, I wish I was daring enough to toss my camera. And way can't I use a URL like: http://www.flickr.com/photos/friends/tags/some_tag ?
Monday, November 07, 2005
Thursday, October 20, 2005
Monday, October 10, 2005
VGMap
Tuesday, September 27, 2005
Day 2
respool-email
command from the terminal you opened Pine in. Scary.Last year, in my technical writing class, I had to write up a mock proposal to some person/organization. I happened to address mine to Brian Behlendorf because of his involvement with the Apache Software Foundation. My proposal had something to do with the Apache web server. Anyway, today, I sat in front of him as he gave a talk on software as a service. Cool. Another random note is that Mark Zuckerberg of Facebook.com fame is strolling around campus recruiting people. The newspaper ran an article on him and how his company is providing substantial salaries to students who leave school and go work for him instead. They're doing pretty well I guess.
In class, we were given examples of logical reasoning patterns. One of the basic ones is that if x is greater than y, and y is greater than z, then x must be greater than z. Except it doesn't always work out in the English language due to its ambiguities. The example was if bad sex is better than nothing, and nothing is better than good sex, then bad sex must be better than good sex.
Sunday, September 25, 2005
Nollning
One of the questions asked was who traveled the farthest to get here? "India" says one student (many others could've said the same thing). "Okay, is anyone from somewhere farther?" asks the professor. "Pakistan" says another student. Pwned.
I met a guy from University of Washington. He got his BS in EE and explained that at UW, the CS and EE departments are basically the same. He presumed it was the same at Stanford because he saw EE professor teaching CS courses. So he applied to the CS department only to find out that the departments are very much not the same. Now, he doesn't know what to specialize in since nothing deals directly with hardware. I think it's pretty cool he still got accepted.
It was an enjoyable day, apart from the time wasted by students asking questions that had either been covered in the presentation or already been asked before!
By the weekend I'd met enough people to start hanging out with some of them. I've still met more Swedes than Americans: 4 vs 2. Other than that there are plenty of Indian, Chinese, and French students. We've been hanging out at the on-campus bar which is fortunately rather good because there's not much else around the campus area that we've found yet.
This weekend we
- Got an early buzz going thanks to Google (again) putting in a couple of hundred dollars towards beer, bread, cheese, salmon, and other snacks. Somebody forgot to buy the wine. It's a weekly thing so maybe next time.
- Watched the women's volleyball game. Great atmosphere. A+++
- Watched the men's soccer game. Not quite as cool.
- Grabbed a free dinner at some freshman event. They introduced the fall sports teams and taught us some of the cheers they use. They're supposed to reflect the "intellectualism" here. You have "traverse the field, traverse the field... increase the aggregate yardage" or "pursue them, pursue them... make them relinquish the ball." Or Shannon's favorite: "hit them with the axe, hit them with the axe. where? in the neck, in the neck, the neck, the neck, etc."
- Assembled the road bikes and used them to get to campus for a change. Shaves a lot of time off the commute when you actually have gears to use. I normally ride a fixed gear.
- Played some killer 4v4 beach volleyball. At NCSU if I'd ever done that, I'd have girls laying out all around me. At Stanford, the girls lay out in front of the bookstore.
- Cooled off in the pools at the Avery Aquatic Center.
Tuesday, September 20, 2005
Clouds
Monday, September 19, 2005
Presentation styles
Dashboard Sleep Widget

You might find it more useful for other things such as putting the computer to sleep after your 37 minute download complets and you're already out the door.
Anyway, some links that came in handy while doing this for the first time:
Dashboard Programming Guide (everything from style guidelines to javascript callbacks)
Debugging Dashboard Widgets (especially if you have to use an Objective-C cocoa plugin)
Problems/Todo:
The (X) to close the widget positions itself offset from the corner.
Implement buttons using the
-apple-dashboard-region
controls.Wednesday, September 14, 2005
Tuesday, September 13, 2005
RDU-PHX-SJC
Mom: Eddie?It loses something in writing but if it makes me laugh after I have to get up on six (!) hours of sleep, it's funny. America West in short: 43 min early, Airbus plane, good movie (Mr. and Mrs. Smith). The drawbacks were that you had to rent headphones and buy breakfast. Being early wasn't all that great. It extended my layover and my luggage was flown to San Jose with an earlier flight so when I arrived at my final destination I thought they'd lost my luggage.
Eddie: Mom! We are on high alert here. I almost killed you right there! You do not even realize.
Mom: Okay, nevermind.
On the topic of quotes, I overheard this on the TTA bus in a discussion about doing away with daylight saving(s) time:
We can't get rid of it because..... the VCRs automatically switch their time over. That would be so confusing.If you're looking for a large luggage piece, I'd recommend this one from Atlantic. I've only used it once so the only thing I can't speak for is durability but the rating on that ebags.com link can. I also saw a crew member with an Atlantic bag which must say something.
I bought my $5 Caltrain ticket with a $20 bill. I got $15 of change in coins. Luckily it was in one dollar coins but it's still pretty weird. Also fortunate is that the busses accept the coins so now it's pretty handy to have the coins for fare instead of having to mess with feeding bills into the machine. It cost $6.50 to get from SJC to the major road outside of our townhouse which is about 25 miles. Not bad.
Thursday, September 08, 2005
gWifi
Wednesday, September 07, 2005
Apple Cider Vinegar
Friday, September 02, 2005
Wednesday, August 31, 2005
I have a blender here
There's some Swedish text on the apple PowerBook and iBook power adapters. "The device should connect to a grounded outlet." I guess Sweden is the only country where all outlets aren't grounded? I was trying to see if, electronically, the power adapters are the same. They aren't.
Moment of Zen?
Sunday, August 28, 2005
Facebook vCards II
Another update: script is updated to include photos. Unfortunately, it relies on an external service, and I've been told that photos don't show up in Microsoft Outlook.
And again:
I’m an engineer at facebook and I’m writing to ask if you would be willing to take down the link to your facebook vCards utility (located at http://martindavidsson.blogspot.com/2005/08/facebook-vcards-ii.html). Even if your intended use of such a script is noble, we’re starting to see larger numbers of scrapers who are taking scripts like yours and modifying them to less legitimate goals. In any case, the undertaking you describe on your site is (and has always been) against our terms of service. We'd obviously like to resolve this without getting the lawyers involved if possible, so please let me know as soon as you've taken the script down so that our legal department doesn't get all fired up about this.
One more:
Lately I've been getting at least one random IM/email per day from a person asking about this script. It's getting tedious mailing it out. Facebook, clearly people want this feature. Give it to us. Until then, the rest of you can download the grasemonkey script.
Update IV:
Neil M. sent me an updated version of the script back in April, which I'm just now getting around to uploading. Pretty lousy on my part, but you can find his update at the same link as above.
Saturday, August 27, 2005
Facebook vCards
I haven't been keeping up with people's information so it would be useful to have this kind of functionality. Maybe greasemonkey can help me out.
Conference Calling
HOW TO conference call with Google Talk
Open up a copy of google talk on all computers with which you wish to conference. After one copy is opened make a new shortcut for google talk but at the end of it add /nomutex. If you installed it to the default folder then your shortcut should read "C:\Program Files\Google\Google Talk\googletalk.exe" /nomutex. Open 2 instances of the software on every user's computer. After this start a chain: User 1 should connect on one instance to user 2. User 2 will connect on his second instance to user 3. User 3 will connect using his second instance back to user 1. With this chain everyone is connected to everyone. Or install Skype.
Tuesday, August 23, 2005
Hitting the high notes
Adam: You know how they say a thousand monkeys can't create a Shakespeare? Well, there's also a theory that given enough resources, you can randomly generate, say, Hamlet. So a guy tested it. He wrote a program. It wrote Hamlet in four days.
Me: Really? That's incredible. I mean, consider the number of possibilities.
David: Yeah, like: "Look! We got it! Oh wait... That's a 'k'."
atom+safari
xmlns
attribute in the root <feed>
tag, no matter what the specification says :(
Sunday, August 21, 2005
Ryan returned from Ireland the other day and retol...
I found one of my sister's books lying around the house: ttyl. I wish it had search-inside-the-book because it's pretty funny. The whole book is a series of IM conversations, and the pages are basically screenshots of chat windows.
Tommy threw another sweet party last night in honor of Arun's birthday/departure. Good bye and good luck Arun. You need to send out a copy of the video Josh put together, unless it's mostly serious people giving sentimental and personal goodbyes.
Thursday, August 18, 2005
Hope, cure, future
Sunday, August 14, 2005
94305
Monday, August 08, 2005
Baby Name Voyager
Saturday, July 30, 2005
Garage Opener
In the 6 years of living here (on and off), I hadn't noticed how poorly the garage opener design was. Why limit it to two columns instead of using the familiar layout of a mobile phone. There is plenty of available width. It must take me twice as long to punch in the PIN as it would on my phone. I'll just have to do it often enough to train the muscle memory.
Friday, July 29, 2005
Blandat
Does anyone need a car? How about a 2004 Silver Toyota Corolla. Less than 30,000 miles. Say $12,000. Strike now and I'll throw in the auxiliary input adapter, i.e. you can listen to your MP3 player through the car stereo!
Does anyone have an apartment in the Palo Alto area? 3BR... ~$2000/mo. Need to move in by mid-September.
I always wondered what the 'FT' in MSFT (Microsoft's stock symbol) stood for. I mean MS must be MicroSoft... so what's FT? I recently became the last person to figure out that it must be MicroSoFT.
Anyone ever heard of SkillFusion? Just curious, and if so, what do you know about it?
Occasionally, NetNewsWire will "stick" on certain posts. When I advance to the next unread post, the title changes, but the entry body displays the content of the previous post. After about 20 seconds the body will update to display the correct information. Lazyweb? (as if I have that luxury)
I'm tired.
Monday, July 18, 2005
Requests
I got an e-mail from a guy about a mobile social network. He got my e-mail through some site that tracks community wireless groups. I [re-]started such a group after noticing there wasn't anything in the RDU area when I was interning at a company that dealt with setting up wireless networks. All the group ever entailed was a mailing list and I don't think anyone has posted on it in a while so I'll post the note here instead.
My team has created a project called Meetro that is a location based community building software of sort. You could also call it a social network. It works completely off of wifi networks, so we're looking to work
together with as many of the community projects out there to spread the word.
I fulfilled his request because of the latest news item on the page:
We've launched! Three cheers to the entire team for their herculean+ effort. We're off to get shitfaced. See you cats in the morning.
Wednesday, July 13, 2005
)(
Tuesday, July 05, 2005
RDU-EWR-ARN
- The agent at the gate had promised us that our flight had been rescheduled and arranged. Nothing else to do. I call to confirm the day after and the agent had in fact done nothing at all.
- After one hour in the air the pilot announces they're having some rudder difficulties and decides to turn around, just to be in the safe side. The return and switching of planes delays us another 5 hours, in addition to the 3 days we'd already been set back.
Either way, check Flickr for some low-res pics or davidssons.com for some better--but less frequently updated--photos.
Thursday, June 30, 2005
Work hard. Fly right.
Mavens are incredibly well-informed about markets and very helpful in assisting others in their purchases. I know a guy who watches automobile prices like a hawk and makes a nice profit on just buying and selling cars. He'll buy a BMW/Porsche/SAAB/whatever when he spots a good price, drive it for a few months, and then turn around and sell it for a profit.
After a few chapters we board the plane but soon the pilot says "Don't throw anything at me but we've been delayed by four hours." The flight was eventually cancelled due to inclement weather at Newark. They can't do anything about that, but the way they handled the situation was far from graceful. I'll pretend to be a maven by spreading my advice to use another airline when you fly. Fly SAS, or NWA, or any airline that uses Airbuses.
Saturday, June 25, 2005
Beach weekend
I began reading Malcolm Gladwell's Tipping Point on the way down. I got as far as the chapter about connectors. Connectors are people who bring other people together. In the chapter he describes an extraordinary connector who goes to great lengths to keep up with all of his acquaintances... sending out birthday cards and trying to get in touch with friends from his childhood. Reminded me of my attempt I described in my last post, but I don't really have any of the other qualitifes of a connector. For an example, Gladwell had a sort of quiz he would use to quickly identify such people. He had a list of 250 last names, randomly drawn from the Manhattan phone book. He would ask the person to go through the list and count the number of people he/she was acquainted with that had a last name in the list. If the count exceeded say 50, the person was most likely a connector. I don't think I counted more than a dozen.
My dad just emailed me an MP3 recording of a voice mail that my physician's office left me at home. Another cool feature of VOIP I guess. I logged onto their website to confirm my appointment and I find out that I can view the lab results of my blood tests. Also cool. I don't know which surprises me more: seeing these features come around or the fact that it hasn't happened earlier. With Internet reaching 75% penetration in US homes, maybe we're approaching a tipping point in the market of bringing household activities online :)
Friday, June 17, 2005
Skriv gärna namn och e-mail adress!
I met a lot of nice people, two of which I share a mutual friend with. 1) Both I and "Leeway" (I don't know how to spell is name but that's what it sounds like) know Chethan. They know each other through ultimate at Cornell. I got to know Chethan through Americana at NCSU. 2) Both I and Simon know TJ. They know each other from being students at Georgia Tech. I met TJ at IBM earlier this year. The small world phenomenon never gets old. Surprisingly, the one person at the party who expressed an interest in social networks came off as the most socially inept person there. Reminds me of Dr. Doyle speaking about Marvin Minsky and how he noticed that students would always be most interested in the aspects of AI that they didn't handle very well themselves in real life. Clumsy students who fumbled around were interested machine vision, for an example. Minsky was always worried about the students who said they were interested in general intelligence.
I'll close on another random note. Eight years ago I got confirmed through the Swedish church. It took place over 3 weeks in the summer before high school started. At the end of the three weeks, I asked people to write down their email address in my bible that I just happened to come across. If I can get just one response, that would be neat.
Tuesday, June 14, 2005
Fixing web applications
<link rel="home" href="..." />
was causing it. I don't know why but both Safari and Firefox were causing the associated Struts action to execute twice. Fetching the page with wget, however, resulted in the expected behavior.Random note: if you google for rel link="home", the web application I'm talking about shows up as the third result. Odd.
Sunday, June 12, 2005
OJB to Hibernate 3 Migration
To convert your
repository_user.xml
file to a hibernate mapping file, try using this stylesheet. It's not completely automatic. I still had to add inverse="true"
attributes in a few places were we're using bi-directional associations (see section 2.3.6 of the Hibernate Reference Documentation). I also needed to tweak a few proxy attributes because we're using Castor XML which turned out to make things much more difficult. Hibernate uses CGlib for what it calls proxy generation. The problem is that it changes the class signature of the original class it's proxying for. When the modified classes get sent to Castor it complains about illegal/invalid characters because the class name is now suffixed with
$$EnhancerByCGLIB$$
. I had to patch the Castor source with a hack. Still looking for a long term solution.Before all that mess I spent some time trying to figure out why Hibernate wasn't reading my JNDI datasource resource. It complained about an empty driver setting and a null URL. For those issues, refer to this helpful forum thread. Not the solution I was hoping for but it works.
Update:
I'm posting the change I made to Castor in response to a comment but it's pretty embarrassing :) These lines went below line 1293 of org.exolab.castor.xml.Marshaller in version 0.9.5.3 (notice the second if condition):
if (!containerField) {
//-- Make sure qName is not null
if (qName == null) {
//-- hopefully this never happens, but if it does, it means
//-- we have a bug in our naming logic
String err = "Error in deriving name for type: " +
_class.getName() + ", please report bug to: " +
"http://castor.exolab.org.";
throw new IllegalStateException(err);
}
if( qName.indexOf("$$-enhancer-by-cGLIB$$") != -1 ) {
return;
}
handler.startElement(qName, atts);
}
Lovely solution, right? Hope it helps you, Michael.
Thursday, June 09, 2005
Greasemonkey scripts for Greasemonkey scripts
var href = "http://www.example.com/stuff?" + getDataUri( document.documentElement.innerHTML ); document.documentElement.appendChild( aLinkUsingThatHref )
Sunday, June 05, 2005
Grandmothers Skyping
Saturday, June 04, 2005
Queues
Thursday, June 02, 2005
Notebooks on night stands
I was experimenting with data URIs a few weeks back and learned you could create separate documents on the fly. My experiment created an inline OPML XML file based on a blogroll-like listing that you could save and import in your favorite reader. I thought it could lead to cooler things, like create a bittorrent of larger downloads where the site didn't already make them available. Tracking and seeding this file was still necessary, however, which put an end to those plans. Now that there's a trackerless version of BitTorrent, maybe this is possible?
Platypus
Creating scripts for Greasemonkey was pretty simple, but now it's ridiculous. When this gets out there's going to be an explosion in the number of scripts. I activate the extension, click around one the screen a little, and suddenly I have a customized page (within reason). In some ways, the whole web just became a portal.
Now we just need an easier/integrated way to share these scripts with the world. I wonder if you can write a greasemonkey script that modifies another greasemonkey script to insert a link. Ideally, the link would submit the title, description, and target pages of the script (pulled from the standard comments) along with the script itself to the repository of scripts.
Oh! And then... (this is like the 3rd edit of this post), we need an easier way to discover greasemonkey scripts that people have published. I need something to alert me when there's a greasemonkey script available for the current page I'm on--similar to the RSS auto-discovery feature.
And then... we'll do it all over again for Trixie.