Language:
switch to room list switch to menu My folders
Go to page: First ... 7 8 9 10 [11] 12 13 14 15 ... Last
[#] Wed Mar 02 2011 12:12:45 EST from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

I appear to be working with voodoo code.

The vendor helpfully provides these nice example sources so you can play with their hardware and figure out how to make it do what you need it to do.

In their example code, I see something like this (where the variables are 'int' variable types):

FrameWidth = 1920;

FrameHeight = 1080;

When I stream the values of these variables to std::cout, FrameWidth shows as 780, and FrameHeight shows as 430... even after they were set immediately before streaming the values to std::cout, with no intervening commands that could change those values.

I have to believe there's a logical explaination for this, but at the moment, I'm at a loss.  It looks like voodoo code.



[#] Wed Mar 02 2011 13:13:07 EST from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

I found my logical explaination.

1080 is 0x483.  The stream was still displaying numbers as hexidecimal from an earlier setting.  So the number wasn't different after all, just the display of it.



[#] Wed Mar 02 2011 23:07:02 EST from Ford II @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

I have to believe there's a logical explaination for this, but at the
moment, I'm at a loss.  It looks like voodoo code.

Another thread is playing with it?

[#] Thu Mar 03 2011 15:28:56 EST from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

No, something dumber.

std::cout << "Display this as hex: " << std::hex << variable_with_some_huge_number << std::endl;

std::cout << "Display this as dec: " << 1080 << std::endl;

The second line will display as hex unless you do:

std::cout << "Display this as dec: " << std::dec << 1080 << std::endl;



[#] Thu Mar 03 2011 15:29:37 EST from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

By 'dumber', I mean I was stupid.  I should have remembered that the std::hex thing would stick to the thread until I cancelled it with std::dec.



[#] Thu Mar 03 2011 15:29:49 EST from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Grr... not 'thread', but 'stream'.



[#] Fri Mar 04 2011 13:28:37 EST from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

I have to believe there's a logical explaination for this, but at the
moment, I'm at a loss.  It looks like voodoo code.

Since when is "voodoo" not a logical explanation for something?

After all the nonsense that goes on in the workplace, why not throw voodoo on the pile?

[#] Fri Mar 04 2011 15:10:49 EST from Spell Binder @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

I think it's more sensible to keep voodoo out of the workplace.

You would NOT want me to write up a test plan for voodoo. It would not be pretty.

[#] Sat Mar 05 2011 07:35:29 EST from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

I knew of one company who seemed somewhat convinced that we wrote voodoo code.  They didn't really believe that we could do all the things we said we could do.



[#] Tue Mar 08 2011 10:06:02 EST from skpacman @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

You've read a few weeks ago that the company I work for recently bought a new, bigger building.

Today, we had our first run-in with rodents. There was a little tiny mouse running around our office! he was no bigger than my thumb and was jumpy... he jumped about a foot high, out of my hand and ran out of the office from under the door. :D production floor is going to have fun catching him now.

ah... the adventures my office has.



[#] Wed Mar 09 2011 00:43:56 EST from Harbard @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Conversation at work:  "Will you make sure XXXXX flushes the toilet after he's done?"  "Ah...why would you think I would want to because the rest room police?  That's a polite way of saying "Get the fuck away from me!""

 

True story.  Apparently I do NOT work with geniuses.



[#] Thu Mar 10 2011 10:14:13 EST from arabella @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Very few of us do



[#] Fri Mar 11 2011 10:50:11 EST from athos-mn @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Two words: office cat.

[#] Sun Mar 13 2011 03:34:38 EDT from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Is it a cat who flushes the toilet, ala Parry Gripp?? He doesn't care if he's wasting water; he likes to push the handle and watch the water go down!

(eeeeeeeeeeee ... still dealing with a messed up bio-clock from pulling a 40-hour day at work)

[#] Wed Mar 16 2011 17:59:27 EDT from dothebart @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

the router died. half a day offline during tough timelines have to be met.

since our admins prefer to have the router as a single point of failure even local DNS and DHCP was gone...

so I wasted some time to get  2.6.38 running.



[#] Sun Mar 20 2011 13:38:01 EDT from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Half a day? How long would it have taken you to go to a nearby store and pick up a Linksys?

[#] Sun Mar 20 2011 17:14:32 EDT from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Probably a couple of weeks, as the work order cleared seven layers of internal red-tape.



[#] Mon Mar 21 2011 02:14:45 EDT from triLcat @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

this is the advantage of a small business. My brother has an extra cellular-to-wifi-point thingy. He figures if his office goes offline for 2 hours a year, it pays for itself.

 



[#] Mon Mar 21 2011 03:43:51 EDT from dothebart @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

well, the linksys would probably be a little overdosed with all those vpns and stuff.

and... some where using their android as hotspot to continue surfing... but sometimes you need internal infrastructure and some of those vpns too...



[#] Mon Mar 28 2011 12:30:46 EDT from wizard of aahz @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

AAAAAAAARRRRRRRRRRGGGGGGGGGGGGGGHHHHHHHHHHHHHHHH!!!!


I feel better now.

Go to page: First ... 7 8 9 10 [11] 12 13 14 15 ... Last