Searching \ for '[OT] Developer dreams' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/index.htm?key=developer+dreams
Search entire site for: 'Developer dreams'.

Exact match. Not showing close matches.
PICList Thread
'[OT] Developer dreams'
2009\04\23@120952 by Peter

picon face
Problem solved:

http://xkcd.com/571/

P.

2009\04\23@152546 by Neil Cherry

flavicon
face
Peter wrote:
> Problem solved:
>
> http://xkcd.com/571/

That's not a dream that's a nightmare! Wish I could say that I hadn't
had similar nightmares.

--
Linux Home Automation         Neil Cherry       spam_OUTncherryTakeThisOuTspamlinuxha.com
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
Author of:            Linux Smart Homes For Dummies

2009\04\23@160154 by solarwind

picon face
It's funny because he's incrementing an unsigned int and treating as a
signed int.

2009\04\23@164508 by Peter

picon face
solarwind <x.solarwind.x <at> gmail.com> writes:
> It's funny because he's incrementing an unsigned int and treating as a
> signed int.

It's funny that you think it's an unsigned int when it does not say so anywhere
in the cartoon. In fact, an int is by default (and by definition, unfortunately)
signed.

Peter


2009\04\23@165512 by Tamas Rudnai

face picon face
On Thu, Apr 23, 2009 at 9:42 PM, Peter <.....plpeter2006KILLspamspam@spam@yahoo.com> wrote:

> It's funny that you think it's an unsigned int when it does not say so
> anywhere
> in the cartoon. In fact, an int is by default (and by definition,
> unfortunately)
> signed.
>

Depending on the implementation it also could be a signed short :-) Or an
unsigned int one as solarwind thinks but they were using printf("%i",,,)
instead of printf("%u"...) :-)

Tamas
--
http://www.mcuhobby.com

2009\04\23@170214 by solarwind

picon face
On Thu, Apr 23, 2009 at 4:55 PM, Tamas Rudnai <tamas.rudnaispamKILLspamgmail.com> wrote:
> Depending on the implementation it also could be a signed short :-) Or an
> unsigned int one as solarwind thinks but they were using printf("%i",,,)
> instead of printf("%u"...) :-)

Wait. How do you know they were using printf %i?

2009\04\23@171632 by Neil Cherry

flavicon
face
solarwind wrote:
> It's funny because he's incrementing an unsigned int and treating as a
> signed int.

Why do you think that? I took it to be a signed 16 bit number.

    0 = 0000 0000 0000 0000
32767 = 0111 1111 1111 1111
-32768 = 1000 0000 0000 0000
-32767 = 1000 0000 0000 0001
-    1 = 1111 1111 1111 1111

--
Linux Home Automation         Neil Cherry       .....ncherryKILLspamspam.....linuxha.com
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
Author of:            Linux Smart Homes For Dummies

2009\04\23@173002 by solarwind

picon face
I was thinking of this: http://pastebin.com/f685385aa

However, I see that I think differently from you all :P

Either way, it works.

2009\04\23@193827 by Neil Cherry

flavicon
face
solarwind wrote:
> I was thinking of this: http://pastebin.com/f685385aa
>
> However, I see that I think differently from you all :P
>
> Either way, it works.

32762  32763  32764  32765  32766  32767  -32768

Uhm still not following?

--
Linux Home Automation         Neil Cherry       EraseMEncherryspam_OUTspamTakeThisOuTlinuxha.com
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
Author of:            Linux Smart Homes For Dummies

2009\04\23@195043 by solarwind

picon face
On Thu, Apr 23, 2009 at 7:38 PM, Neil Cherry <ncherryspamspam_OUTlinuxha.com> wrote:
> 32762  32763  32764  32765  32766  32767  -32768
>
> Uhm still not following?

Run my code above, you'll see.

2009\04\23@223651 by Neil Cherry

flavicon
face
solarwind wrote:
> On Thu, Apr 23, 2009 at 7:38 PM, Neil Cherry <@spam@ncherryKILLspamspamlinuxha.com> wrote:
>> 32762  32763  32764  32765  32766  32767  -32768
>>
>> Uhm still not following?
>
> Run my code above, you'll see.
>

I did that's the last few entries, just what I'd expect of a signed
16 bit word. Roll over to negative when adding 1 to 32767.

--
Linux Home Automation         Neil Cherry       KILLspamncherryKILLspamspamlinuxha.com
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
Author of:            Linux Smart Homes For Dummies

2009\04\24@000657 by William \Chops\ Westfield

face picon face

On Apr 23, 2009, at 2:16 PM, Neil Cherry wrote:

>> It's funny because he's incrementing an unsigned int
>
> Why do you think that?

Surely if it were a signed int, the cpu would have triggered an  
integer overflow error that the runtime environment would have  
caught.  Assuming there was no error handled for that specific type of  
error in the application, it would have exited with a meaningful error  
message and left the user sitting at a command or debugger prompt.

BillW

2009\04\24@011023 by Neil Cherry

flavicon
face
William "Chops" Westfield wrote:
> On Apr 23, 2009, at 2:16 PM, Neil Cherry wrote:
>
>>> It's funny because he's incrementing an unsigned int
>> Why do you think that?
>
> Surely if it were a signed int, the cpu would have triggered an  
> integer overflow error that the runtime environment would have  
> caught.  Assuming there was no error handled for that specific type of  
> error in the application, it would have exited with a meaningful error  
> message and left the user sitting at a command or debugger prompt.
>
> BillW

Wow you guys read a lot into that cartoon. ;-)

As always it depends, but if one could trust the run-time env to
handle this then yes it should trigger some kind of notification.
And I think in the cartoon, the waking condition from the
nightmare would be the trigger. :-)

--
Linux Home Automation         Neil Cherry       RemoveMEncherryTakeThisOuTspamlinuxha.com
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
Author of:            Linux Smart Homes For Dummies

2009\04\24@043222 by Alan B. Pearce

face picon face
>> Problem solved:
>>
>> http://xkcd.com/571/
>
>That's not a dream that's a nightmare! Wish I could
>say that I hadn't had similar nightmares.

<VBG> Reminds me of attempting to add up the cheque book in hex, after a
long day debugging some bit slice processor microcode ...

2009\04\24@044305 by Tamas Rudnai

face picon face
On Fri, Apr 24, 2009 at 9:32 AM, Alan B. Pearce <spamBeGoneAlan.B.PearcespamBeGonespamstfc.ac.uk>wrote:

> <VBG> Reminds me of attempting to add up the cheque book in hex, after a
> long day debugging some bit slice processor microcode ...
>

Once I have sold my car, and the buyer was a police officer... and I have
crossed the zeros. He almost arrested meg cheating with the contract, had to
explain that I do this to make difference in between 'oh' and 'zero' :-)

Tamas
--
http://www.mcuhobby.com

2009\04\24@054644 by Alan B. Pearce

face picon face
>And I think in the cartoon, the waking condition
>from the nightmare would be the trigger. :-)

I thought that was the processing of the notification ... ;)

2009\04\24@055304 by cdb

flavicon
face


:: I thought that was the processing of the notification ... ;)

I think it's called processing a sleep interrupt-
--
cdb, TakeThisOuTcolinEraseMEspamspam_OUTbtech-online.co.uk on 24/04/2009

Web presence: http://www.btech-online.co.uk  

Hosted by:  http://www.1and1.co.uk/?k_id=7988359

Don't assume people do things you don't like just to hurt you





2009\04\26@125451 by Peter

picon face
Tamas Rudnai <tamas.rudnai <at> gmail.com> writes:
> Once I have sold my car, and the buyer was a police officer... and I have
> crossed the zeros. He almost arrested meg cheating with the contract, had to
> explain that I do this to make difference in between 'oh' and 'zero'

Of course you know that there aren't actually many policeman jokes out there.
That's because most of what people interpret as policeman jokes are factual
accounts of real occurrences, romanced a little bit.

Several people insist that dates not be written in ISO format (
YYYY-MM-DD-HHMMSS ) because it is 'confusing' (not to mention sortable, as in
file names etc.) and that 0 should not be crossed out. Many are engineers, and
not the sanitation kind.

When I wrote about the mob noticing that someone is trying to change something,
I had such things in mind.

Meanwhile, the US is inching its way towards the ANSI mandated metric system,
but Canada leads, up to a point. I saw a garage entry in .ca that told the
maximum vehicle height in ft, in. Canada is metric and so are most drivers and
cars ... I wonder if the insurance would pay in case the driver's mental
cm->ft,in conversion would be slightly off in the undesirable direction, or the
calculator battery low ... would be interesting to see a transcript of the
relevant court proceedings eventually, I guess.

Peter


More... (looser matching)
- Last day of these posts
- In 2009 , 2010 only
- Today
- New search...