Name: David Brandt
Member since: 2000-04-17 16:42:23
Last Login: N/A
Notes: Most of my skills are as a CGI programmer (perl and c), and I'm trying to improve my C skills, and make my Linux knowledge more in-depth.
I come from a traditional Unix admin background, by which I mean that I was working in something completely unrelated (Linguistics) and got distracted by sysadmin/programming/webmaster kinds of tasks.
Projects/technology I'm interested in:
Coding
I signed up my project on sourceforge.net - it's called "
Flashlike",
because it's supposed to read/generate files in the
Macromedia Flash format. I'm new to library design, but I'm
learning a lot, just thinking about what the interface
really needs, and really shouldn't have. I hope to have it
in way-pre-alpha phase soon.
On the road again...
The big move is rapidly approaching, from Ann Arbor to
Boston. It's nerve-wracking, but everything's coming together.
Don't look now, but...
I scored one of those convex-rear-view-mirror doodads for my monitor (I lucked out, by walking into our marketing director's office at just the right time - thanks, 'ILOVEYOU'!), and it give me a nice angle of the world behind me.
Problem is, I haven't gotten used to it yet, so I think I hear something, and start turning around, and realize halfway there that I don't have to. ("Must... retrain... neck...")
andrei, I was just reading Programming Pearls this weekend, and Bentley was working on a very similar problem in chapter 12 (for generating random test examples, I think). Here's hoping I remember it correctly: (pseudo-code, of course)
int num_needed, num_available; /* pre-initialized */
List NewList;
for (element = List->first;
element->next != NULL;
element = element->next) {
if (@random@number@ < (num_needed/num_available)) {
append(NewList, element); /* sort of - really just
the data */
num_needed--;
}
num_available--;
}
"@random@number@" and "append" are mostly hand-waving, of course. This should guarantee that you'll get exactly num_needed elements in the new list, and the order from the original list is maintained (I wasn't sure whether that was important, from your posts). And I believe the distribution is uniform, too.
I hope this matches the problem you're working on.
I think my ISP's having problems with e-mail. I mean, when was the last time I got absolutely *no* e-mail in an entire evening? What are the odds? It's like a ghost town in that mailbox - I keep getting the whistle from The Good, the Bad, and the Ugly every time I tab past that window.
My desktop got a lot cleaner when I discovered PowerShell. Well, my computer desktop, at least. My physical desktop's still beyond hope.
I must admit, the first time or two that I came to Advogato, I was a bit overwhelmed by the sheer volume of information. But I think I'm adapting. Browsing recent diary entries is cool!
I'm currently trying out the Hacker's Diet, because it makes sense to me, and because I really need to lose weight. I'm finding that being on a calorie restriction makes me pretty cranky, which is a switch from my usually quiet, laid-back demeanor. But, somewhat surprisingly, I'm finding that being cranky is kinda fun. (Well, for me, at least.) I find that I have to guard what I say more carefully, especially responding to webmaster e-mails and tech requests.
Boy, there's so many cool open source projects out there that I'd love to be involved in, but absolutely no time to do them! Sometimes, having a wide range of interests sucks.
That's it for me. I hope everybody's doing okay.
bucky certified others as follows:
Others have certified bucky as follows:
[ Certification disabled because you're not logged in. ]
FOAF updates: Trust rankings are now exported, making the data available to other users and websites. An external FOAF URI has been added, allowing users to link to an additional FOAF file.
Keep up with the latest Advogato features by reading the Advogato status blog.
If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!