Home
David Reid [entries|archive|friends|userinfo]
David Reid

[ website | dreid.org ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Ok, yeah LJ is too fancy for me now. [Sep. 15th, 2006|09:45 am]
Without actually giving me any useful features (like being able to subscribe to my friendslist, or get RSS of specific tags) So I've switched. I pay $10 a month for hosting of http://dreid.org/ so I've decided to use it. http://dreid.org/ now points to you guessed it a blog. Now I can keep random crap that I don't even care about off of planet twisted.
Link29 comments|Leave a comment

Davis Hacking Society [Apr. 13th, 2006|02:43 pm]
Tonight at 6:00 at the Campus Cafe Roma is another meeting of the Davis Hacking Society. Here is the meeting at Upcoming.org. Below is a letter reposted from the DavisWiki DHS page.

To the hackers and geeks of Davis, CA:

I have in some sense been the driving force behind Davis Hacking Society, and while my personal experiences at individual meetings have been productive and inspiring, the lack of attendance has hurt my pride more than once. Lack of time and energy and a perception that people didn't really understand the point of DHS has prevented me from making it as great as I know it can be. But now I'm being removed the equation, on May 15th I start a new job in Cupertino, CA and will be unable to regularly attend DHS meetings. So this is a letter to the hackers and geeks not just of the wiki but of Davis, CA, hacking society was never meant to be my pet project, I never wanted to be the leader of a group, I just wanted the group to exist, so I did what I could to help it exist. Perhaps I was wrong about Davis, perhaps the community just isn't there, but I find it truly bewildering that community that could build and nurture something like DavisWiki could possibly lack the community spirit. Perhaps I never explained what DHS was properly, but that's because I don't know what it's supposed to be, it's not supposed to be a rigidly defined group with strict agendas and time keeping, Hacking Society was never meant to be more than a time and a place and reason for people with a common interest to get together. And that is what it has been, for me and Philip and occasional others. Perhaps I didn't deal with criticism as well as I should have, perhaps I alienated people, whatever I did wrong, or just didn't do, it's now up to you the people if it's worth doing right. I hope in my failure you can find the secret to success.

--DavidReid


I'll update about the previously mentioned "new job" later.
LinkLeave a comment

[Mar. 31st, 2006|06:17 pm]
happy birthday to me, happy birthday to me.

I really don't like birthdays, I tend to feel sick all day, probably has something to do with the impending doom of the family dinner.
Link3 comments|Leave a comment

http client authentication api. [Mar. 1st, 2006|02:13 am]
I've been working on the fabled twisted.web2.client, and now that the low level API has made it to trunk I'm ready to start thinking about the authentication api. So I've started out by googling "http client authentication apis". This led me to the Jakarta HttpClient, which seems reasonably sane until you get to the part about Alternate Authentication which just has too many hoops to go through.

So after a few days of thinking about this I've hit on an API I like. You should be warned that some of the parts in the belowe example are nebulus and don't work yet (and may not work ever.)

from twisted.web2.client import HTTPClient
from twisted.web2.auth.credpool import ANY_SCOPE, AuthenticationScope

client = HTTPClient('mysite', 80)


There that creates a client, that is connected/will connect to mysite on port 80 (and expect it to be talking http.) I'd like for the CredentialPool (the map of credentials to use and when and where to use them (notice I didn't say "how" to use them) to be created automagically, since it's basically a fancy dictionary.

client.credentials.addCredentials(ANY_SCOPE, ('foo', 'bar'))


Hooray our first set of credentials, the ANY_SCOPE is kind of special, it's really the default credentials.
Which could be dangerous, and you probably should never use them, it's just an example.

client.credentials.addCredentials(AuthenticationScope(realm="my realm"), ('baz', 'bax'))


There now we have some more useful credentials. These credentials will only get used on "my realm" within "my site"

client.credentials.addCredentials(AuthenticationScope(realm="my other realm", 
                                                      schemes=('digest','ntlm')), 
                                  ('important username', 'important password'))

client.credentials.addCredentials(AuthenticationScope(realm="my other realm", 
                                                      schemes=('basic',)), 
                                  ('loseruser', 'loserpass'))


As these two lines demonstrate you can have multiple authentication schemes, and make sure really important credentials only ever go out via more secure schemes.

AuthenticationScope is also capable of knowing about the host and port that the credentials should be sent on, so in a more complicated HTTPClient (perhaps WebBrowser) that is expected to access more than one site, and create new connections, and do piplining magically, the credential pool can be shared (read from a file, read from a database whatever) and still be able to support the case of "if all else fails, send these credentials."

Now, tear it apart you dogs!

Update: A crappy implementation and some unittests (not all of which pass) are available at

svn://svn.twistedmatrix.com/svn/Twisted/sandbox/dreid/client_auth.py and
svn://svn.twistedmatrix.com/svn/Twisted/sandbox/dreid/test_client_auth.py
LinkLeave a comment

Pet peeve 1,337. [Feb. 20th, 2006|03:21 pm]
[Current Music |annoyed]

"Reporters" who start off articles about "computer hackers" with neo-noir Chandleresque descriptions of the criminals in question.

To the Washington Post's Brian Krebs, you're not that good of a writer, STOP IT!

That is all.
LinkLeave a comment

That's right, i did it. [Nov. 6th, 2005|06:43 pm]
And it was worth it.
LinkLeave a comment

My name is David, and I'm a codeaholic. [Nov. 4th, 2005|04:20 pm]
[Current Mood | anxious]

For the past two months I've been waking up in a cold sweat my mind racing, bits of code dancing through my head. But finally, another fix. SuperHappyDevHouse has returned. After a brief hiatus, they're done depriving me of that sweet sweet codeahol. Tomorrow night, I will ingest copious ammounts of caffiene, write barely comprehensible code for hours on end, only to pass out at 10 in the morning. I'll love every minute of it.
Link2 comments|Leave a comment

Who is The Rabbit? [Jul. 17th, 2005|12:14 pm]
The Rabbit isn't cute, The Rabbit isn't fluffy, The Rabbit isn't good eats. The Rabbit is a 7 foot tall monster in a pink easter bunny suit. The Rabbit comes from nightmares, to be precise, The Rabbit comes from Jonothan's nightmares. The Rabbit wants to kill Jonothan, and everyone that get's in it's way.

Read more... )
LinkLeave a comment

Yay SuperHappyDevHouse! [Jul. 9th, 2005|08:21 am]
But first, I have to go wine tasting for 9 hours with my family. I don't drink, I especially don't drink wine.
Link2 comments|Leave a comment

I'm tired ... [Jun. 10th, 2005|02:53 am]
I'm tired, I have been for a couple of days, just worn out, not so much that i've been working too much, I haven't been working enough, I've almost got everything done for the next couple of days though, unless they drop something new on me. I'm catching up on some TV while I can't seem to focus on any non paying code. I haven't been eating very much the past couple of days, partially I just haven't been hungry, and I haven't so much remembered to. I'm thinking maybe I need a couple of days off from everything, but I'm not sure I've got anywhere to go this weekend, so I'll probably just be at home working while my girlfriend does homework or something. I'm worried she'll get bored with me soon. I don't know why, it's just that point in our relationship where I start to get worried, this is my longest relationship so far, and I'm worried that the more I work the less interesting she'll find me, the irony being I only started working 3 jobs (now back down to two) so I could afford to take her out and eventually move in with her. Oh well no more ranting tonight, i think it's time to sleep.
Link1 comment|Leave a comment

Apple switch. [Jun. 6th, 2005|03:55 pm]
Just so everyone who knows me is aware, I no longer care to discuss the news that Apple will be switching to x86 based systems. I had already decided that I would be replacing my Powerbook with a PC laptop, so this news does not affect me, and I really do not care to discuss it further.
Link12 comments|Leave a comment

Obligatory SuperHappyDevHouse summary. [May. 31st, 2005|06:49 pm]
[Current Mood |Geeky.]

SuperHappyDevHouse was absolutely awesome, and now that I've recovered (3 days later) it's time I wrap up what was accomplished. I met some cool people, including David Weekly who runs IM Smarter a logging proxy server for instant messengers (AIM, ICQ, MSN, etc). As well as Erica, The SlashChick who runs Simpli, which appears to have some really great webhosting deals. Now that I've plugged their products/services on to the summary of what _I_ accomplished.

Almost nothing. I did manage to release pthy 0.5 which removed it's twisted dependency as well as added a `--force` command line option that allows you to set a module's path to an arbitrary directory. I also rewrote most of trough but I still need to work out some fundumental design issues, such as how to represent elements with attributes and subelements. The idea of using nevow.stan.Tag for these elements had occurred to me but I think it breaks the seperation between data and presentation.

Anyway, to wrap things up, I'm looking forward to the next SuperHappyDevHouse, and hopefully I can get some actual sprinting/pair programming going on, get some more stuff done, or help someone else get something done.
Link2 comments|Leave a comment

SuperHappyDevHouse todo [May. 27th, 2005|09:20 pm]
Some of you may already be aware of the event planned for tomorrow known as SuperHappyDevHouse, if you're not in short it is a party/sprint/hackathon. I'll be attending, and in an attempt to increase productivity I thought I'd post some of the things I plan to be working on, in order of most important.


  1. FlyTrap prototype

  2. s/remove pthy's Twisted dependency/release pthy 0.5/

  3. Make the little black box do something

  4. improve trough.interfaces



More Information:


  • FlyTrap is described in this previously friends only entry

  • pthy has a trac project

  • Pictures of the little black box, and a previously posted description of it's workings.

  • trough is something I haven't written about though it's based on this. It is simply a generic feed generation framework. The opposite of feedparser. In theory it lets you take a feed, parse it with feedparser, then resyndicate it in another feed format, such as rss->atom rss/atom->rss3.0 etc ... yeah that's pretty much it.

LinkLeave a comment

The Little Black Box [May. 27th, 2005|09:15 pm]
The little black box is just that, it's a black box with 3 green/red LEDs a momentary switch and a DB-9 pigtail.

It's very dumb, and speaks only in status bits of the serial port. For instance, when the momentary switch is pressed the CTS bit on the serial port status is on. And when I kill the DTR bit, the green LEDs stop blinking (they start blinking when the serial port is opened)

Things to do:

  • Figure out how to make it blink red

  • Figure out what to make it do

Link5 comments|Leave a comment

FlyTrap [May. 5th, 2005|01:18 am]
FlyTrap is a system designed to pull web content from multiple sources for integration into a single "site."

The Use Case
Jack has lots of data. He blogs a lot to his livejournal, he uploads a lot of pictures to flikr, and he has lots and lots of bookmarks scattered across the internet, from de.licio.us to random xbel folders on dav sites.

His homepage links to his flikr site and his delicious bookmarks and "embeds" his livejournal.

Most of his friends don't check his flikr site so when he puts up pictures he also blogs about it. And almost no one he knows uses de.li.cious so when he bookmarks an interesting link he ends up blogging about it too.

Jack could easily, given time and inclination, write his own flikr like photo gallery and de.li.cious like bookmark site, even a simple livejournal like blog application. But Jack has neither the time or inclination. So Jack still has all this information flying around the web, and he still has to instruct people to go to 3 different urls, or to go to his vanity domain and click 3 different links. Either way the information is seperate, and another problem arises, Jack can't relate any of the information together.

How does Jack solve all these problems?
He Traps his Information.

What does FlyTrap do?

FlyTrap pulls information from various sources and inserts it into a single information stream. All the peices of data in the information stream, be it a picture, a blog post, or a link, or whatever, can be tagged. Tagged in the flikr or pyblosxom or de.licio.us sense. So you can instruct someone to go to "http://my.vanity.domain/flytrap/computers" to see all pictures, bookmarks, and blog posts that have been tagged as related to "computers."

The great part about this system is that it is essentially an information aggregator, and does not try to be everything. If implemented properly FlyTrap will allow an endless number of backends. So it can pull information from ANYWHERE to be tagged and categorized in your data stream.
Link4 comments|Leave a comment

Lockdown at the Cineplex. [May. 4th, 2005|11:40 pm]
David was a busy guy, he worked 3 jobs and went to school, and had a girlfriend, and was generally happy most of the time. One day, as he arrived at the movie theater where he held job #1, as a projectionist, he found himself unable to enter the parking lot, because of this ugly yellowish tape with black letters that read "Police Line, Do not Cross." This did not particularly worry David, but he was mildly inconvienced by the fact that he could not park close to the theater and was going to have to walk across the parking lot in the rain. By the time he reached the side entrance to the theater he realized that the front doors were being guarded by police in riot gear, though the parking lot was virtually devoid of anyone else, excepting a few curious onlookers far behind the police tape. As he entered the theater he greated two of his coworkers who were discussing the days events, after much discussion it was decided that it definitely involved a man. In fact it was a man who had taken his girlfriend and her children hostage in their home at around 1PM. At some point the police became notified of this and thoroughly annoyed that their donut break had been interrupted scrambled to the scene and placed 3 snipers on the roof of the theater, and a small swat team around the perimeter. At 6 o'clock as David arrived the police snipers began firing tear gas into the house. After another hour the whole thing was over, and the 3 snipers, who had been given free drinks (which they proceeded to leave on the roof), left followed by the police and the tape.
Link4 comments|Leave a comment

The Hitchhiker's Guide to the Galaxy [May. 3rd, 2005|01:30 pm]
[Current Mood |Angry]

Just to be clear, I'm the most diehard Douglas Adams fan you could ever imagine, I completely and utterly idolize the man, and I'm not ashamed to say I weeped when he died. He is a brilliant writer who was taken from this earth too soon. And on that note, I absolutely positively LOVED the Hitchhiker's Guide to the Galaxy movie. Anyone who says it wasn't in the spirit of the books, or that Disney changed it too much, or that Marvin's head was too big is a complete idiot, waste of flesh and space and should be thoroughly expunged from this planet post haste. And too all those people who walked out half way through and demanded their money back, you're the dreggs of society, you're everything that is wrong with this country, you're the reason that TV and Movies suck, you're the lowest common denominator that hollywood and the television networks are pandering too with things like "Survivor: Bumfuck Nowhere", and "Two slutty girls act like idiots and demonstrate an inability to cope with life", and last but certainly not least, "I'll eat anything for money".

Fin.
Link5 comments|Leave a comment

About StikiNiki [Apr. 21st, 2005|10:13 pm]
StikiNiki is an idea I had after playing with Tomboy for many months and wishing I could use something similar on my mac, then I thought it'd be really cool if I could publish individual notes to my website. Then thought it would be great to actually share my notes with other people and use it

StikiNiki is not Wiki



StikiNiki is a decentralized/distributed Wiki-like note taking application (or rather an idea for one.)


  • It is not inherently community-oriented, although a user may publish (read-only), or share (read-write) notes/pages with other users specifically, globally, or on a group basis.

  • It is not web-centric. It will have multiple platform-integrated clients, as well as a browser-based UI.

  • It will not reside on a centralized server. Notes may be synced to other clients (q2q anyone?))



Other ideas




  • sxip enabled - if stikiniki is to be easily deployed on personal servers regular users you want to comment or edit should not have to register with your personal installation, nor should your resources be wasted by storing their information

  • the "web server" is a fancy stikiniki client.

  • Hierarchial which most other wiki's aren't.



Problems



  • Programming is hard.

  • If the clients are to sync with eachother without the aid of a centralized server I have to deal with nat traversal

  • Some people store secret stuff on sticky notes (if you didn't figure out the name already this is a clue) if they want to store secret stuff on stikinikinotes they need to be able to turn off distribution or encrypt the notes (i'd be happy with using GPG but i'm sure other people would bitch about that)

  • I don't know jack about sxip (but i know someone who does)


  • Anyway that's my idea, love it, hate it, it's mine, so nya nya nya nya.

    Also this is one of those projects spawned almost entirely by thinking of a funny name first, then a use to fit it.
Link2 comments|Leave a comment

This is an update. [Apr. 21st, 2005|08:56 pm]
Have fun with it.
Link33 comments|Leave a comment

I'm so proud of myself right now. [Jan. 6th, 2005|02:27 pm]

Which Family Guy character are you?
Link3 comments|Leave a comment

navigation
[ viewing | most recent entries ]
[ go | earlier ]