May. 13th, 2005

LA police

May. 13th, 2005 09:32 am
juan_gandhi: (Default)
By the way, I wonder what would be the consequences if they give flame-blowers and machine guns to LA police. And hand grenades, that would be impressive too. A couple of tanks maybe. Or they may have tanks already.
juan_gandhi: (Default)
один мой корешок, только обитающий третий год за океаном, мучимый приступом алкоголизма и ностальгии, минут двадцать выговаривал мне по телефону

Fuck. They think we are miserable losers here, poor immigrants, dreaming of getting back pretending to be winners. Fuck. Maybe thaaat explains why they never contact us first. Fuck. And I thought calling them meant keeping in touch with friends. Fuck. They don't want to hear from us. Fuck. That's the good reason to keep radiosilence. Fuck.

Relatives are a different story. Relatives are forever, as my wise mom told me many times when I was young and even more stupid than I am now.
juan_gandhi: (Default)
http://thedailywtf.com/forums/34366/ShowPost.aspx Christoph (Mathieu Rouleau's coworker) was presented with a daunting challenge: flip all of the bits of an integer (representing a bitfield) to zero. Many programmers would run away and never look back at just the thought of being given such a task. But not Christoph; being the courageous coder he was, he took this vexing problem head-on and engineered a rather elegant solution ...

#define GENBIT(x) 1<<x
#define NUMBITS 32
// ED: Snip ...

unsigned int resetBits(unsigned int bitfield)
{
  int index=0;
  for(index=0;index<NUMBITS;index++)
  {
      unsigned int flag;
      flag = GENBIT(index);
      flag = ~flag;
      bitfield = bitfield & flag;
  }
  return bitfield;
}

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

October 2025

S M T W T F S
    1 23 4
5 678 9 1011
12 13 1415161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 16th, 2025 01:01 am
Powered by Dreamwidth Studios