Things to not do in code #18Things to not do in code #18Things to not do in code #18 04/09/2004 04:10 PM I oughta collect these all up, but... Never, ever do in two allocations what you can do in one. For example: struct foo { struct bar *thing; int this; int that; }; struct bar { int data[128]; } See the problem there? What happens is that you allocate a foo, then allocate a bar and put a pointer to it in the foo. Which makes sense if bar is of variable-length, but... in this case it isn't. Even worse is the case where bar has a pointer to a glob of memory which is of fixed-size. Why does this suck?... This is a GrokNews Entry: (what is grok?)Things to not do in code #18Grok Headline matches for Things to not do in code #18When Things On Your Mac Do Cool Things
|
![]() |
Drinking all these behind the sauna, direct from the bottle.
They're all a part of Finnish national romantic scenery, immortalized by hordes of people, who are very good at optimizing the price/inebriation ratio.
1. What did you do in 2004 that you’d never done before?
- Suck up to clients and not say what I believed in - 'cause I needed the money.
2. Did you keep your New Years’ resolutions, and will you make more for next year?
N/A - I don't do resolutions - but I tried to lose weight and
failed.
3. Did anyone close to you give birth?
- Yes my wife. Her name is Lucy - she was born the day before my biorthday on Jan. 12th.
4. Did anyone close to you die?
- Yes my father - Davis S. Canter - union leader, politician (the good kind), my inspiration.
5. What countries did you visit?
- Italy, France, Belgium, Holland, England, Ireland, Canada - and I live in a very strange, foriegn place - but at least we're in a blue state (though CA voted 46% for evil.)
6. What would you like to have in 2005 that you lacked in 2004?
- Digital Lifestyle Aggregation -the PeopleAggregator, a finished WebOutliner and lots of happy employees.
7. What dates from 2004 will remain etched upon your memory?
- Jan. 12th - Lucy's birth, Aug. 30th my father's death, July 31st my eldest son's and wife's birthday and Nov. 3rd my twin son's Bar Mitzvah.
8. What was your biggest achievement of the year?
Finally figuring out what business Broadband Mechanics is in. We're buulding 'digital lifestyle aggregators'.
9. What was your biggest failure?
1UP.com - it could have been great - but we fucked up.
10. Did you suffer illness or injury?
- Baruch Ha'Shem - no. But my friend BigDave had his kidney transplant!
11. What was the best thing you bought?
- BigDave's mom's used car. Great deal, great friend.
12. Whose behaviour merited celebration?
- Twin son's Bar Mitzvah
- Mimi's learning how to sing and dance - on her own
- Lots of happy cleints, growing business
13. Whose behaviour made you appalled and depressed?
- Lack of imagination when it comes to new kinds of micro-content and micro-contnet publishing in general. Sad and pathetic. And podcasting. Even sadder.
14. Where did most of your money go?
- Babylon
15. What did you get really, really, really excited about?
- Open Source Infrastructure - and how ever effort I put into it - not only helps me and our company, but also the world. Talk about killing trhee birds with one stone!
16. What song/album will always remind you of 2004?
- "Ambush in the night" - Bob Marley (all guns pointed at me now....)
17. Compared to this time last year, are you:
happier or sadder? happier
thinner or fatter? always going up
richer or poorer? richer in money. richer in happiness
18. What do you wish you’d done more of?
- Hung with my sons more.....
19. What do you wish you’d done less of?
- Blog
20. How will you be spending Christmas?
- eating Chinese food and watching a movie. What all good Jews do on X-Mas day.
21. Who did you spend the most time on the phone with?
- my wife - Lisa.
22. Did you fall in love in 2004?
- yes - over and over again with Lisa.
23. How many one night stands in this last year?
- yah, right
24. What was your favourite TV program?
- Alias
25. Do you hate anyone now that you didn’t hate this time last year?
- more than anyone else - I hate the entire concept of fascist, imperialist, Amerika - and all it stands for. Fuck you - red states.
26. What was the best book(s) you read?
- N/A - my 250+ feedskeep me busy.
27. What was your greatest musical discovery?
- Blind Guys from Alabama
28. What did you want and get?
- progress in DLAs, healthy children, bank account.
29. What did you want and not get?
- PeopleAggregator, WebOutliner
30. What were your favourite films of this year?
- um, gee, what films came out this year. I can't remember any.
31. What did you do on your birthday, and how old were you?
I turned 47 and I went to the hospital with my eldest daughter to see her new baby sister who was born the day before. You don't have birthdays like that very often! BTW my eldest son was at Lucy's birth.
32. What one thing would have made your year immeasurably more satisfying?
- Having money to build what I wanna build.
33. How would you describe your personal fashion concept in 2004?
N/A
34. What kept you sane?
- family, blogosphere and knowing that I'm consistently about 10 years ahead.
35. Which celebrity/public figure did you fancy the most?
- Heather Graham
36. What political issue stirred you the most?
- Legalized Marijuana
37. Who did you miss?
- my friend Dave Winer
38. Who was the best new person you met?
- oh god, too many to mention. Simon Grice, Lucas Gonze, Carl Wescott, Monette, Rich Seidner, the Marqui folk, Leonard Brody, Dick Hardt, the Bryght dudes (Boris and Roland), the Tucows dudes (who I haven't even met yet!), Alf Eaton, Kjetil Larsen, JD Lasica, the Laszlo folks, Dave Toole, Seb Paquet, the list goes on and on - it's been a hell of a year!
39. Tell us a valuable life lesson you learned in 2004.
- slow down, it'll all come to you, just stockpile those ideas, they'll be usful - later.
40. Quote a song lyric that sums up your year?
"Rasta Man virbration - yah, positive!"
"Got to have a good vibe"
Actually it turns out I do have a few things on my mind.
First, the scale of the human tragedy of the tsunami. An interview on CNN with a young rock climber from Hawaii, vacationing in Thailand, talks about how only a few of her colleagues died. In normal times, the few that died would be the story. Many of the people they interview are shaking and crying, many hours after the tragedy. It's the rare thing, a real story involving human beings.
Second, think about the
billions we're spending on Iraq, and for what? The Republicans who
defend the war say Iraqis were suffering under Saddam, okay, this is a
lot of suffering and unlike the Iraqi suffering, this has a solution,
money spent here will rebuild and there won't be "insurgents" to tear
down the repairs and kill our people as they try to help.
Third, and I know there's no chance of this making a difference, maybe the Iraqis could put down their guns, stop beheading people, stop blowing things up, elect a damned government, and let us leave so we can have a future and so we can help when other tragedies happen. I'm sorry we invaded, and I'm sorry we re-elected the monster that invaded you. Now we have to go. It's just a feeling I have. The problems of the Iraqis seem so small when compared ot the problems of Sri Lanka, Thailand and Malaysia. The problem in Iraq is in their minds. Can't they solve it? We sure can't.
Seth blogs about the top 1,000 things for a 13 year old to learn. I agree with him. The most important thing I learned in school was how to touch type.
Comment - TrackBackIf you're into food, and wondering, "what the heck should I do next?" check out the [UK] Observer's list, The top 50 things every foodie should do.
To celebrate OFM's fiftieth edition, we asked some of our favourite bon viveurs what they considered most essential to do before they died.
Amazingly, I've already done ten of the items they've listed! Is that because I'm a "bon viveur"? Maybe a little, but also I've liked cooking and food for a very long time. Of what they've recommended, I've already completed the following:
3) Dismember a chicken
I learned this last summer when I was working at a restaurant. Our
chef said everyone needed to know how to break down a chicken. Now I
do. I haven't done it since.
6) Dine at the French Laundry
May 2002. I can't imagine you're reading my site and haven't read my
review, but if that's the case get thee to It's All About Finesse immediately! Now start saving your
dollar a day!
18) Shuck an oyster
I first learned this in 1994 on Cape Cod, where indeed just as they
recommend, I enjoyed 'wild native oysters, from a forgotten oyster
bed'. I last shucked two dozen for my family at Christmas.
20) Wolf down a hotdog on Coney Island
July 4, 2003. I ate one. Japanese super-eating legend Takeru Kobayashi
ate 44 1/2 in twelve minutes. A photo of Kobayashi in action!
24) Be cooked for by a legend
(See #6)
32) Shop till you drop [at La Boqueria in
Barcelona]
When I visited Barcelona in October, 2003 I spent many hours exploring
this amazing market, though I never bought anything because I was
staying in a hotel and had nowhere to cook.
33) Catch your own dinner
They recommend deep-sea fishing for tuna in Barbados. I went fishing
for bluefish off Nantucket in August, 2003 and cooked up the riches
for dinner with my family. Bluefish is my favorite, and I think one of
the best meals you can eat (but only if you're in the northeast of the
United States in July or August) is bluefish baked with breadcrumbs,
butter, and lemon; steamed sweet corn, with butter and salt; and
boiled red potatoes. If you don't have strawberry shortcake for
dessert, with real whipped cream and homemade shortcake, you haven't
gone all out.
39) Visit Pierre Gagnaire in Paris
I did this in June 2003. For some reason, I never wrote about it.
Drat, I wish I had.
40) Bake a loaf of bread
I can't even remember the first time I baked a loaf of bread, but it
must have been around 1986. I started my culinary adventures in the
baking arena (cakes and sweets) before moving into the savory world of
cooking. Of course, the Guardian says, "If your loaf is a true San
Francisco-style sourdough then all the better." And I say, "No!" Yuck.
I don't like sourdough. I had enough "San Francisco-style sourdough"
when I lived in San Francisco to last my whole life.
47) Kill a pig
The last on the list, I did this over the 4th of July weekend, 1994.
Some folks I knew in college had a little tradition of doing this. At
a farm in New Hampshire, we (by which I mean a friend named Danny)
killed the pig and bled it. Then we all took part in gutting and
skinning it (writing now, it sounds more "Lord of the Flies" than it
was). We roasted it in a pit for a very long time, and the result was
the best thing I'd ever tasted. I had never liked pork before that,
and I didn't for a very long time after. But everything we ate that
day was incredible.
They also recommend that you:
9) Pick your own [mushrooms]
But I've never done this. I had a class in college called Plants and Humanity and we
learned from our biology professor never to pick mushrooms in the
wild. He said it was too dangerous, even with books and training,
because the possibility of making a mistake was too great. I learned a
lot from Prof. Ellmore, and to this day I
still recall much of what he taught, so I'm going to trust my gut and
skip the picking of wild mushrooms. The 39 remaining items could
easily take the rest of my life as it is, I don't want to end it
prematurely by eating a Death Cap!
The following phrases have been identified by the grok system as matching this entry: async curlhandle