| Author |
Message |
Scott Stephens
Guest
|
Posted:
Sun Dec 26, 2004 6:09 am Post subject:
Re: what's a callback? |
|
|
Active8 wrote:
| Quote: | On Wed, 22 Dec 2004 06:04:40 GMT, Scott Stephens wrote:
Active8 wrote:
In Java, COM, DCOM, OLE, etc., they are called interfaces. In C++,
"prototype" and "function declaration", are synonymous. A function
name without parameters is a pointer, but you can also declare a
variable name for a pointer to a function with a... call it a
special syntax. You knew that, right?
|
No, kind of fuzzy on C++, mostly into Java.
| Quote: | DHTML isn't a COM thing, it's a DOM thing.
|
Widgets (COM, Active-X) you code aren't part of the DHTML DOM, but can
be scripted as if they were. |
|
| Back to top |
|
 |
David
Guest
|
Posted:
Mon Dec 27, 2004 1:52 pm Post subject:
Re: what's a callback? |
|
|
On Fri, 24 Dec 2004 21:28:22 +0100, Frank Bemelman wrote:
| Quote: |
Grandma *is* more important. Complaining about a 20x boot time is nonsense.
How many times do you boot? I turn on my computer each morning, get a
coffee,
turn on the radio and see what's in my inbox.
Windows takes a lot of time to boot, because it checks a lot of things
during
the boot. Depending on what you installed on top of it, it may take a while
longer. In a network, it takes another extra amount of time, getting a new
IP address perhaps, making connections to other PC's that were part of the
game the day before. Yes, that takes a bit of time.
As a result, you can swap hardware, or put your entire drive in a new
PC and it will work. Windows will discard old drivers for hardware that
has dissapeared and try to find new drivers for the new hardware. That
is incredibly impressive.
|
And how often does Grandma change the hardware in her computer? I don't
know about you, but I *know* when I make physical changes to my computer,
and would be quite happy to tell it that it needs to re-scan the hardware
(USB and the like are obviously a different matter).
Last time I changed network cards on a Red Hat pc, I was informed on
boot-up that the network card had changed, and would I like to transfer
the old card's settings to the new card? Worked perfectly, even though
the cards were from different manufacturers. Last time I did the same
thing with windows (w2k), I was informed I had new hardware and the system
could look for suitable drivers. Of course, I couldn't download them
because the PC wasn't online, as the network card had no drivers. Thus I
had to figure out exactly what the new card was - this involved reading
chip types and other info and doing web searches (why can't manufacturers
put their name and the card type on the board?), followed by a download of
around 2.5 MB for a network driver ! This, of course, is too big for a
floppy and thus involved split zip files (or I could have burned a CD...).
Once I'd finally got the drivers installed and working, I then had to
manually re-configure the new card with my old (static) settings.
What was that you were saying about how impressive windows hardware
detection is? |
|
| Back to top |
|
 |
Guest
|
Posted:
Tue Dec 28, 2004 7:58 am Post subject:
Re: what's a callback? |
|
|
What you're referring to very much the not-so-critical "bottom half"
popular in Linux.
My usage of callback is a usr function with its args which I append
into a call-back queue at every ISR and at end of the ISR I raise a
lower priority s/w interrupt which checks the callback queue and
executes any function(s) it finds.
The (substatial) usr fn is thus called from a lower proirity ISR thus
preventing it from hogging the real ISR.
K V Abhilash
John Larkin wrote:
| Quote: | A few programmers I've known have used the term "callback", which
somehow related to executing a deferred subroutine or something. Does
anybody know anything about this term or its conventions? If I google
it, I just get a lot of telephone-type references.
I'm doing a thing now where, in an interrupt service routine, if I
think I'm out of time I set a flag to remind me to finish some chores
next time or so. I'm not sure if that qualifies as a "callback."
John |
|
|
| Back to top |
|
 |
John Larkin
Guest
|
Posted:
Tue Dec 28, 2004 10:48 pm Post subject:
Re: what's a callback? |
|
|
On 23 Dec 2004 11:24:52 -0800, pm940@yahoo.com wrote:
| Quote: | Every actor in LA and NY will tell you that. The majority of people on
this thread are morons.
|
Well, sure. What's wrong with that?
| Quote: | An interrupt is a low-level callback, of sorts.
|
But not if the vector is determined at compile time, right?
| Quote: | There are three types of programmer: Those who can use "callback"
without having to write an essay, those like me who will write an
essay, but still not articulate it clearly, and those who just write a
10 line "C" program so that other's go, "Oh, yeah... I see it.".
|
So I guess I'm not a programmer. OK.
John |
|
| Back to top |
|
 |
Guest
|
Posted:
Wed Dec 29, 2004 2:19 am Post subject:
Re: what's a callback? |
|
|
John Larkin wrote:
| Quote: | An interrupt is a low-level callback, of sorts.
But not if the vector is determined at compile time, right?
|
Of sorts... even if it's a static vector, as it implements a non-linear
program flow back to the "application's" code.
| Quote: | There are three types of programmer: Those who can use "callback"
without having to write an essay, those like me who will write an
essay, but still not articulate it clearly, and those who just write
a
10 line "C" program so that other's go, "Oh, yeah... I see it.".
So I guess I'm not a programmer. OK.
|
Judging by the length of this thread and your post count, I think it's
clear which group you're in ;-) |
|
| Back to top |
|
 |
Rich Grise
Guest
|
Posted:
Wed Dec 29, 2004 5:26 am Post subject:
Re: what's a callback? |
|
|
On Mon, 27 Dec 2004 09:52:07 +0100, David wrote:
| Quote: | What was that you were saying about how impressive windows hardware
detection is?
|
Well, I know from sorry first-hand experience you can't take a W2K
drive and plunk it down in a different computer and expect it to work.
It's the first time I've ever seen a _red_ Screen of Death. It was
some hysterical warning, which boiled down to, "I've Been Stolen!
Call Daddy!"
So I booted Slack Live! 10.0, mounted the NTFS partitions, and copied
everything by hand. Luckily, I was getting paid by the hour. ;-)
Cheers!
Rich |
|
| Back to top |
|
 |
Jim Thompson
Guest
|
Posted:
Wed Dec 29, 2004 5:42 am Post subject:
Re: what's a callback? |
|
|
On Wed, 29 Dec 2004 00:26:04 GMT, Rich Grise <richgrise@example.net>
wrote:
| Quote: | On Mon, 27 Dec 2004 09:52:07 +0100, David wrote:
What was that you were saying about how impressive windows hardware
detection is?
Well, I know from sorry first-hand experience you can't take a W2K
drive and plunk it down in a different computer and expect it to work.
It's the first time I've ever seen a _red_ Screen of Death. It was
some hysterical warning, which boiled down to, "I've Been Stolen!
Call Daddy!"
|
Eh? How did you do that? I've plugged several Win2K drives into new
machines without any untoward behavior.
What did they come out of, Dell, hp, or some other "name" brand that
puts proprietary crap on their drives?
That's why I now only buy "parts-in-a-box" machines.
| Quote: |
So I booted Slack Live! 10.0, mounted the NTFS partitions, and copied
everything by hand. Luckily, I was getting paid by the hour. ;-)
Cheers!
Rich
|
...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona Voice:(480)460-2350 | |
| E-mail Address at Website Fax:(480)460-2142 | Brass Rat |
| http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food. |
|
| Back to top |
|
 |
Clifford Heath
Guest
|
Posted:
Wed Dec 29, 2004 7:01 am Post subject:
Re: what's a callback? |
|
|
Jim Thompson wrote:
| Quote: | Well, I know from sorry first-hand experience you can't take a W2K
drive and plunk it down in a different computer and expect it to work.
Eh? How did you do that? I've plugged several Win2K drives into new
machines without any untoward behavior.
|
No, actually Rich is quite right. W2K installs special drivers for
a few things as mundane as IDE controllers, instead of using generic
drivers like previous versions of Windoze. It won't boot if it has
the wrong ones for the m/board the disk is attached to. You've
probably just been lucky. |
|
| Back to top |
|
 |
Spehro Pefhany
Guest
|
Posted:
Wed Dec 29, 2004 7:46 am Post subject:
Re: what's a callback? |
|
|
On Wed, 29 Dec 2004 13:01:07 +1100, the renowned Clifford Heath
<no@spam.please> wrote:
| Quote: | Jim Thompson wrote:
Well, I know from sorry first-hand experience you can't take a W2K
drive and plunk it down in a different computer and expect it to work.
Eh? How did you do that? I've plugged several Win2K drives into new
machines without any untoward behavior.
No, actually Rich is quite right. W2K installs special drivers for
a few things as mundane as IDE controllers, instead of using generic
drivers like previous versions of Windoze. It won't boot if it has
the wrong ones for the m/board the disk is attached to. You've
probably just been lucky.
|
Isn't there some special boot sequence that will cause it to
re-discover everything? I recall finding something like that *after*
re-installing all the software on a computer that I replaced the
motherboard on.
Best regards,
Spehro Pefhany
--
"it's the network..." "The Journey is the reward"
speff@interlog.com Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog Info for designers: http://www.speff.com |
|
| Back to top |
|
 |
Rich The Philosophizer
Guest
|
Posted:
Wed Dec 29, 2004 7:58 am Post subject:
Re: what's a callback? |
|
|
On Tue, 28 Dec 2004 21:46:00 -0500, Spehro Pefhany wrote:
| Quote: | On Wed, 29 Dec 2004 13:01:07 +1100, the renowned Clifford Heath
no@spam.please> wrote:
Jim Thompson wrote:
Well, I know from sorry first-hand experience you can't take a W2K
drive and plunk it down in a different computer and expect it to work.
Eh? How did you do that? I've plugged several Win2K drives into new
machines without any untoward behavior.
No, actually Rich is quite right. W2K installs special drivers for
a few things as mundane as IDE controllers, instead of using generic
drivers like previous versions of Windoze. It won't boot if it has
the wrong ones for the m/board the disk is attached to. You've
probably just been lucky.
Isn't there some special boot sequence that will cause it to
re-discover everything? I recall finding something like that *after*
re-installing all the software on a computer that I replaced the
motherboard on.
I'm sure there's some secret backdoor of some kind, but sitting in |
front of a red screen of death with the boss literally breathing down
your neck (don't they have any idea how annoying that is?) didn't seem
like a good time to go searching for one. ;-)
I have a perfect opportunity to test that right now. The comp.
with the 80G drive pooped out the other day, and I'm pretty sure
it's only the power supply, but I'm too short on cash to go get
a new PS, so I took the 80G drive and have put it in the other
computer, where it's now secondary slave. It'll be interesting
to see what happens when I go try to have LILO boot it.
(Oops! Don't let Watson catch me talking about Linux! It's "Off-
Topic." ;-) )
Cheers!
Rich
Cheers!
Rich |
|
| Back to top |
|
 |
Anton Erasmus
Guest
|
Posted:
Wed Dec 29, 2004 7:10 pm Post subject:
Re: what's a callback? |
|
|
On Wed, 29 Dec 2004 00:26:04 GMT, Rich Grise <richgrise@example.net>
wrote:
| Quote: | On Mon, 27 Dec 2004 09:52:07 +0100, David wrote:
What was that you were saying about how impressive windows hardware
detection is?
Well, I know from sorry first-hand experience you can't take a W2K
drive and plunk it down in a different computer and expect it to work.
It's the first time I've ever seen a _red_ Screen of Death. It was
some hysterical warning, which boiled down to, "I've Been Stolen!
Call Daddy!"
[Snipped] |
Even worse, I updated the BIOS on a dual-boot W2K, Redhat machine.
W2K went absoltely haywire on rebooting - even though only some of
the PCI addresses had changed. Redhat had no problems. It informed me
that it had detected changes in the addresses of various cards and
whether I would like to use the existing driver.
Regards
Anton Erasmus |
|
| Back to top |
|
 |
Keith Williams
Guest
|
Posted:
Wed Dec 29, 2004 8:14 pm Post subject:
Re: what's a callback? |
|
|
In article <n4v3t0l7ctvh1p6p9sl2fl4gr5dqltngkg@4ax.com>,
thegreatone@example.com says...
| Quote: | On Wed, 29 Dec 2004 00:26:04 GMT, Rich Grise <richgrise@example.net
wrote:
On Mon, 27 Dec 2004 09:52:07 +0100, David wrote:
What was that you were saying about how impressive windows hardware
detection is?
Well, I know from sorry first-hand experience you can't take a W2K
drive and plunk it down in a different computer and expect it to work.
It's the first time I've ever seen a _red_ Screen of Death. It was
some hysterical warning, which boiled down to, "I've Been Stolen!
Call Daddy!"
Eh? How did you do that? I've plugged several Win2K drives into new
machines without any untoward behavior.
|
As have I. There is no difference between drives, other than the
obvious. There are differences between motherboards, and booting to
"safe mode" will allow one to rediscover the IDE drivers. Sometimes it
even works. ;-)
| Quote: | What did they come out of, Dell, hp, or some other "name" brand that
puts proprietary crap on their drives?
That's why I now only buy "parts-in-a-box" machines.
|
I've built only KeithKits for a decade because all the others *suck*.
| Quote: | So I booted Slack Live! 10.0, mounted the NTFS partitions, and copied
everything by hand. Luckily, I was getting paid by the hour. ;-)
|
--
Keith |
|
| Back to top |
|
 |
Keith Williams
Guest
|
Posted:
Wed Dec 29, 2004 8:20 pm Post subject:
Re: what's a callback? |
|
|
In article <33ehf4F3tk62uU1@individual.net>, no@spam.please says...
| Quote: | Jim Thompson wrote:
Well, I know from sorry first-hand experience you can't take a W2K
drive and plunk it down in a different computer and expect it to work.
Eh? How did you do that? I've plugged several Win2K drives into new
machines without any untoward behavior.
No, actually Rich is quite right. W2K installs special drivers for
a few things as mundane as IDE controllers, instead of using generic
drivers like previous versions of Windoze. It won't boot if it has
the wrong ones for the m/board the disk is attached to. You've
probably just been lucky.
|
*ALL* windows versions since Win 3.11 have had their own drivers for
IDE devices (and everything else). That's the only way to use the
hardware acceleration features of the chipsets. In any case, the BIOS
hooks are still there and can be used in "safe mode". one can
generally get into safe mode and install the needed (usually
automatically detected) drivers from there.
The best way to transfer an OS disk to new hardware (motherboard
transplant) is to go into the device manager and delete all the devices
before changing hardware. On boot, WinBlows will then auto-detect the
new hardware (driver disks and a Win CD are often needed here) and
you're off-n-running.
--
Keith |
|
| Back to top |
|
 |
Rufus V. Smith
Guest
|
Posted:
Mon Jan 03, 2005 7:48 pm Post subject:
Re: what's a callback? |
|
|
"Keith Williams" <krw@att.bizzzz> wrote in message
news:MPG.1c3c93d357b8096698980d@news.individual.net...
| Quote: | In article <n4v3t0l7ctvh1p6p9sl2fl4gr5dqltngkg@4ax.com>,
thegreatone@example.com says...
That's why I now only buy "parts-in-a-box" machines.
I've built only KeithKits for a decade because all the others *suck*.
|
I was about to do a google search for "KeithKits", but then I noticed your
name...
Rufus |
|
| Back to top |
|
 |
Keith Williams
Guest
|
Posted:
Mon Jan 03, 2005 8:41 pm Post subject:
Re: what's a callback? |
|
|
In article <1104763489.e073f18ed2bcfa5dc12eb0344ddfaee4@teranews>,
nospam@nospam.com says...
| Quote: |
"Keith Williams" <krw@att.bizzzz> wrote in message
news:MPG.1c3c93d357b8096698980d@news.individual.net...
In article <n4v3t0l7ctvh1p6p9sl2fl4gr5dqltngkg@4ax.com>,
thegreatone@example.com says...
That's why I now only buy "parts-in-a-box" machines.
I've built only KeithKits for a decade because all the others *suck*.
I was about to do a google search for "KeithKits", but then I noticed your
name...
|
Yeah, at work they're known as "FrankenClones", but I prefer
"KeithKit". ;-)
--
Keith |
|
| Back to top |
|
 |
|
|
|
|