Supposed to be a collections of search inputs I used at times I didn't find what I wanted and got really frustrated. Just doing my bit to build a better world. Google and MSFT would pay millions for this sort of feedback, but I just do it to be a nice guy.

Saturday, July 31, 2010

for loop convert decimal to binary

you'd expect a neat code snippet to pop up when you ask google for this. People think Bing is goning to replace google. It's not. Wolfram is going to replace google.

quotient = input_value;
for( i = 0; I < WORD_LENGTH; i ++ ) {
bit[i] = quotient % 2;
quotient /= 2;
}

/* when you compile, you get
** WARNING ** division deprecated by visionary zingers :

Your probably don't want to use that though since it is an inefficient solution (uses division). If you are working on a binary computer, then you should just use bit-shifting and ANDing to collect the bits since the computer will already have the binary representation. Also you might want to think further about why exactly you need such a routine.

**

True, this works just as well :

for( i = 0; I < WORD_LENGTH; i ++ ) {
bit[i] = input value & ( 1 << i );
}

Which proves that one should aim to have smart people working for one rather than try to be a smart one oneself. -- Anon

Wednesday, July 28, 2010

how to go to your home directory with internet explorer on linux

"navigating unix directories on linux with internet explorer" also bombs on google.

Got to file -> open and then do browse.

You're home directory will most likely be something like

y:

or

one level up from

c:\windows\profiles\crossover\Desktop

linux ordinary mouse horizontal scrolling

Definitely need a hero on this one. No catching up to MSFT without this fruit being plucked.

nedit scroll wheel horizontal scrolling

So many geniuses, not one solution. I'm on linux, what should I do to be able to scroll horizontally with shift + scrollwheel? I get this by default on Win XP and it works great with Chrome.