It's a difficult problem, to be sure. But would is it really that hard to come up with a more accurate approximation? You lay out some important variables -- why can't a progress bar simply consider those things too?
Because to consider those and get an accurate guess, it has to know more information than the system it's querying can provide. The OS can tell you, at best, the speed of the drive and it's cache and what else is using it right when you ask. It can not always predict a program will need to write to the drive, causing the eponymous file copy to slow down.
For a halting problem like look at it, let's consider a computer running 8 program threads. All of these programs are copies of the same thing: they wait until there is little disk access going on, and then copy some data over the network from NFS or torrents or whatever. So, all 8 programs start, and query the OS; nothing is happening. They all start accessing the drive and the network, bogging both down with cache misses, locks, and overloading the bandwidth available. They all see the overload in access and stop and scale their progress bar to make up for the new time they think it will take. Rinse, repeat until the progress bar is just a pretty picture telling you the system hasn't frozen yet.
Yes, things like fragmentation and other tasks running will impact the time to completion, but they won't affect the amount of work that has been already completed by the program.
Not quite true. Say you are copying files from a network drive to local, and you get 90% of the file(s) done in an hour. Then, the network usage spikes, so your bandwidth drops to 1% of what it was. A progress bar would show 90%, even though you are going to get that last It should take, if my brain is working right, just over another hour to copy the remaining file(s). So, what do you want the progress bar to show? 90% because only 10% of the bits are left? 50% because that's the time estimate? Maybe 2 of 3 files were copied already and the remaining file is huge, so should the progress bar show 66% to show that 2/3rds are done? Even when you have a perfect estimate of things to complete and what's been completed, you can't always predict the amount of work.
To further make the progress bar more confusing, let's say it is estimating how many bits need sent over the network. Now it has to gauge header/footer sizes, MTU, and packet loss. In the above example, the right answer could be anywhere between 90% done and 0%.
But if the OP wants to learn how to do multicore programming on a microcontroller, it's not a bad choice. Sure, they could network together a few Atmel or ARM chips and learn how to do multicore programming hardware and software at the same time. But if the OP just wanted the software side, the Propeller is a good start. Maybe it's just me and my fascination with the ATTiny platform, but 500x32 of RAM sounds like plenty.
I did say the smallest ATTiny that runs the Arduino bootloader. Take the ATTiny45. Sure, it has the three analog pins that you would use, but that's all it has. By the time you get the tiny chip processing what data it's getting from those multiple i2c chips, and managing i2c in 4Kbytes of flash, how much space do you have left to do any navigation calculations?
Or, use the Arduino bootloader to load your own C or asm code. The bootloader then just acts as a safety net for you setting the fuses wrong, and a Arduino with a socketed chip will act like a general programmer.
hate to reply to myself, but I realize that you may think you've provided some of those goals. You want to build something moving. Any of those micros will connect to some relays control motors. What you want the micro to do other than control the motors is important. The smallest Attiny that will use the Arduino boot loader will control some motors, and may be able to chat with a radio chip so you can build a remote control bot. But it won't do on board navigation, it doesn't have enough pins.
So, do you want your bot to navigate themselves? You'll need something more powerful. If you want it to use a camera and do it's own image processing, you'll need even more power. GPS and inertial navigation too? Even more processing umph. A Basic stamp has the overhead of a interpreted language, skip that. Look at the ARM and Atmel and PIC chips that are on the boards, and base a decision off that. All the various Arduinos will chat with the IDE, but you'll need a processor that can handle what you want it to do. Same for a small ARM versus the larger ARM in something like the Raspberry Pi or a cell phone. And don't neglect the CPU of a used cell phone, some of those ARM chips are pretty potent and if the screen if broke you can pick up something rather cheap.
Want to expand your horizons and think about multi-core algos? Go with a Propeller. Arduino, in all it's forms, has a unified IDE so you can practice with a big prototype board and move to something smaller if you want a finished product. PIC Basic I've never liked, because it's Basic. A PIC and a programmer, on the other hand, will get you something that you can practice some assembly with. So will a Atmel, and you get some GCC tools to compile C or whatever else (might be available for PIC, not my favorite so I don't keep up with that). Or you can go with an ARM based board, like one that TI has put out; it comes with a proprietary tool chain and bootloader, but the FOSS community has been working on gcc and a unencumbered bootloader for it.
So, TL,DR: more details needed. What do you want to do with it, other than just learn a new technology? If you just want to learn anything, pick the cheapest!
One issue is that it takes a good deal of power at a much higher voltage to change an individual pixel. So at some refresh rate, e-ink becomes more power hungry than a plasma display. But that it would be somewhere above once a minute, I believe.
And the are called 'Amendments' becasue they can be amended.
No. That is not why they are called amendments. I suggest you re-read the constitution before civics class; and if you are trying that argument in a college law class, may god help your soul.
Why not frame the debate in terms of 'keeping guns away from the mentally ill'? The NRA is idiotic in their refusal to discuss better licensing and monitoring of firearms purchases. A 3-day waiting period, or a week even, would deter crimes of passion where a gun wasn't already available. Laws requiring guns to be locked are debatable, I'm not sure there is much on that front that would work. But the individual gun transfer with no license or background check? The paper work to transfer a car takes just a few minutes, let the DMV or a police station process person-to-person gun sales for a $5 fee. Buyer gets background checked to make sure they can legally purchase, seller gets peace of mind knowing a lunatic isn't using the gun in a crime the next day. Of course, that would require that the judicial system actually marks the right forms to get a person listed as 'not allowed a gun', and that they are willing to clear up mistakes.
The "South" as a unified stateist group has not existed in decades. The large pro-2nd movements tend to be centered more in the mid-west; not without some good reason when farmers still have coyote and other carnivores wandering through their yards. No, the movement has changed from a north/south divide (farmer vs city industry; slave and land owner versus industry and larger groups of consumers) that was the civil war to the old 'local government' versus 'federal government' that many people confuse with the basis for the civil war in the USA. It played a part, no arguement there, but the federalist/democratic-republican argument is much older than that. And it doesn't seem to be going away.
No, it's a privilege in practice. Arms are licensed, regulated, banned in most public venues, removed from ex-criminals and public threats by urban town level legislation, and not a viable defense in court for almost any use outside defending the interior of your home.
You have the right to travel; and you are licensed to drive a car or regulated in purchasing an airline ticket. Ex-criminals can have their rights impinged upon by the government, look up the case law regarding the removal of the right to vote from felons. And lastly, the right is to own and carry a weapon, not to use it as you see fit. So your 'viable defense' means nothing in this discussion. If the right to possess a weapon did not exist, you would not have the privilege of defending your home with a firearm; you would have to resort to running away (knives are weapons too, depending on the locale).
I find it odd as well. Maybe it is the social network generation, their friends already know what they play/read/saw/did so who cares to display it. But my bookshelf, with accompanying trinkets, tells more about me in less space than most could imagine.
I mostly agree, AC. My walls are lined with books of all sizes. And my bedroom could be confused with a library and a comfy reading area. But I still like my kindle. I never got around to buying big copies of "The Complete Works" of anyone, so downloading those public domain ones and reading them in a form that can be held in a single hand is nice. The same can be said about many sci-fi books, they are bloody heavy in hard back form. I'd have killed for an ebook when i was reading Otherland; 4 books with 1500+ pages each.
I'll keep my books, but I'll still read a ebook. Yet to adjust to using an ebook for technical manuals or references, and I still prefer a graphic novel in dead tree form. But a 2000 page opus to space opera? I'll take that digitally.
So you never go to the movies in theaters, right? Or see a play? Because those are transient events that you might derive some enjoyment from, but for the ticket price you get nothing to keep.
So, you have a pointer to string S, and you want *S.length() to check whether S is null? Do you propose that all functions on null pointers return 0? If so, how would you determine if it's a null pointer, or if the answer really was 0?
Corporations are people. People can fire you for exercising your right to free speech. THE GOVERNMENT can not imping upon your right to free speech. IBM Corp is a collection of people, not a branch of the government.
I charged my kindle a few weeks ago; and read for about 4 hours last night and most nights previous. That's not abnormal for it, I've gone a month or more without charging it when I was only able to find a few series in paper form. Just got about 30 free books from amazon yesterday, so I might have to charge it next week some time.
Frankly, I've tried reading on my phone, and the backlit display just doesn't help my already bad eyes. I can get by with it when I have to, but the paper-like display of a non-lit e-ink reflecting light from a nice warm LED bulb is just more comfortable.
3(b) is one of the options. And the OP would have to prove that he got a copy of that written notice from someone who had bought the program. 3 says you must do one of the following, not all of them. B is just one of the available options for the distributor to pick from.
he started with 99 problems and interrupt 0x00 is one.
It's a difficult problem, to be sure. But would is it really that hard to come up with a more accurate approximation? You lay out some important variables -- why can't a progress bar simply consider those things too?
Because to consider those and get an accurate guess, it has to know more information than the system it's querying can provide. The OS can tell you, at best, the speed of the drive and it's cache and what else is using it right when you ask. It can not always predict a program will need to write to the drive, causing the eponymous file copy to slow down.
For a halting problem like look at it, let's consider a computer running 8 program threads. All of these programs are copies of the same thing: they wait until there is little disk access going on, and then copy some data over the network from NFS or torrents or whatever. So, all 8 programs start, and query the OS; nothing is happening. They all start accessing the drive and the network, bogging both down with cache misses, locks, and overloading the bandwidth available. They all see the overload in access and stop and scale their progress bar to make up for the new time they think it will take. Rinse, repeat until the progress bar is just a pretty picture telling you the system hasn't frozen yet.
Yes, things like fragmentation and other tasks running will impact the time to completion, but they won't affect the amount of work that has been already completed by the program.
Not quite true. Say you are copying files from a network drive to local, and you get 90% of the file(s) done in an hour. Then, the network usage spikes, so your bandwidth drops to 1% of what it was. A progress bar would show 90%, even though you are going to get that last It should take, if my brain is working right, just over another hour to copy the remaining file(s). So, what do you want the progress bar to show? 90% because only 10% of the bits are left? 50% because that's the time estimate? Maybe 2 of 3 files were copied already and the remaining file is huge, so should the progress bar show 66% to show that 2/3rds are done? Even when you have a perfect estimate of things to complete and what's been completed, you can't always predict the amount of work.
To further make the progress bar more confusing, let's say it is estimating how many bits need sent over the network. Now it has to gauge header/footer sizes, MTU, and packet loss. In the above example, the right answer could be anywhere between 90% done and 0%.
You don't have to use the TI IDE and bootloader, which are highly encumbered with copyright. MSPGCC ( http://sourceforge.net/apps/mediawiki/mspgcc/index.php?title=MSPGCC_Wiki ) exists to allow the whole system to use an opensource toolchain.
But if the OP wants to learn how to do multicore programming on a microcontroller, it's not a bad choice. Sure, they could network together a few Atmel or ARM chips and learn how to do multicore programming hardware and software at the same time. But if the OP just wanted the software side, the Propeller is a good start. Maybe it's just me and my fascination with the ATTiny platform, but 500x32 of RAM sounds like plenty.
I did say the smallest ATTiny that runs the Arduino bootloader. Take the ATTiny45. Sure, it has the three analog pins that you would use, but that's all it has. By the time you get the tiny chip processing what data it's getting from those multiple i2c chips, and managing i2c in 4Kbytes of flash, how much space do you have left to do any navigation calculations?
Or, use the Arduino bootloader to load your own C or asm code. The bootloader then just acts as a safety net for you setting the fuses wrong, and a Arduino with a socketed chip will act like a general programmer.
hate to reply to myself, but I realize that you may think you've provided some of those goals. You want to build something moving. Any of those micros will connect to some relays control motors. What you want the micro to do other than control the motors is important. The smallest Attiny that will use the Arduino boot loader will control some motors, and may be able to chat with a radio chip so you can build a remote control bot. But it won't do on board navigation, it doesn't have enough pins.
So, do you want your bot to navigate themselves? You'll need something more powerful. If you want it to use a camera and do it's own image processing, you'll need even more power. GPS and inertial navigation too? Even more processing umph. A Basic stamp has the overhead of a interpreted language, skip that. Look at the ARM and Atmel and PIC chips that are on the boards, and base a decision off that. All the various Arduinos will chat with the IDE, but you'll need a processor that can handle what you want it to do. Same for a small ARM versus the larger ARM in something like the Raspberry Pi or a cell phone. And don't neglect the CPU of a used cell phone, some of those ARM chips are pretty potent and if the screen if broke you can pick up something rather cheap.
Want to expand your horizons and think about multi-core algos? Go with a Propeller. Arduino, in all it's forms, has a unified IDE so you can practice with a big prototype board and move to something smaller if you want a finished product. PIC Basic I've never liked, because it's Basic. A PIC and a programmer, on the other hand, will get you something that you can practice some assembly with. So will a Atmel, and you get some GCC tools to compile C or whatever else (might be available for PIC, not my favorite so I don't keep up with that). Or you can go with an ARM based board, like one that TI has put out; it comes with a proprietary tool chain and bootloader, but the FOSS community has been working on gcc and a unencumbered bootloader for it.
So, TL,DR: more details needed. What do you want to do with it, other than just learn a new technology? If you just want to learn anything, pick the cheapest!
One issue is that it takes a good deal of power at a much higher voltage to change an individual pixel. So at some refresh rate, e-ink becomes more power hungry than a plasma display. But that it would be somewhere above once a minute, I believe.
And the are called 'Amendments' becasue they can be amended.
No. That is not why they are called amendments. I suggest you re-read the constitution before civics class; and if you are trying that argument in a college law class, may god help your soul.
Why not frame the debate in terms of 'keeping guns away from the mentally ill'? The NRA is idiotic in their refusal to discuss better licensing and monitoring of firearms purchases. A 3-day waiting period, or a week even, would deter crimes of passion where a gun wasn't already available. Laws requiring guns to be locked are debatable, I'm not sure there is much on that front that would work. But the individual gun transfer with no license or background check? The paper work to transfer a car takes just a few minutes, let the DMV or a police station process person-to-person gun sales for a $5 fee. Buyer gets background checked to make sure they can legally purchase, seller gets peace of mind knowing a lunatic isn't using the gun in a crime the next day. Of course, that would require that the judicial system actually marks the right forms to get a person listed as 'not allowed a gun', and that they are willing to clear up mistakes.
The "South" as a unified stateist group has not existed in decades. The large pro-2nd movements tend to be centered more in the mid-west; not without some good reason when farmers still have coyote and other carnivores wandering through their yards. No, the movement has changed from a north/south divide (farmer vs city industry; slave and land owner versus industry and larger groups of consumers) that was the civil war to the old 'local government' versus 'federal government' that many people confuse with the basis for the civil war in the USA. It played a part, no arguement there, but the federalist/democratic-republican argument is much older than that. And it doesn't seem to be going away.
Or the same mix, leading to cloramine. Which can turn to hydrazine. Nasty set of chemicals from a simple reaction.
No, it's a privilege in practice. Arms are licensed, regulated, banned in most public venues, removed from ex-criminals and public threats by urban town level legislation, and not a viable defense in court for almost any use outside defending the interior of your home.
You have the right to travel; and you are licensed to drive a car or regulated in purchasing an airline ticket. Ex-criminals can have their rights impinged upon by the government, look up the case law regarding the removal of the right to vote from felons. And lastly, the right is to own and carry a weapon, not to use it as you see fit. So your 'viable defense' means nothing in this discussion. If the right to possess a weapon did not exist, you would not have the privilege of defending your home with a firearm; you would have to resort to running away (knives are weapons too, depending on the locale).
Quick, help this man, SELDOM is on fire!
I find it odd as well. Maybe it is the social network generation, their friends already know what they play/read/saw/did so who cares to display it. But my bookshelf, with accompanying trinkets, tells more about me in less space than most could imagine.
I mostly agree, AC. My walls are lined with books of all sizes. And my bedroom could be confused with a library and a comfy reading area. But I still like my kindle. I never got around to buying big copies of "The Complete Works" of anyone, so downloading those public domain ones and reading them in a form that can be held in a single hand is nice. The same can be said about many sci-fi books, they are bloody heavy in hard back form. I'd have killed for an ebook when i was reading Otherland; 4 books with 1500+ pages each.
I'll keep my books, but I'll still read a ebook. Yet to adjust to using an ebook for technical manuals or references, and I still prefer a graphic novel in dead tree form. But a 2000 page opus to space opera? I'll take that digitally.
So you never go to the movies in theaters, right? Or see a play? Because those are transient events that you might derive some enjoyment from, but for the ticket price you get nothing to keep.
So, you have a pointer to string S, and you want *S.length() to check whether S is null? Do you propose that all functions on null pointers return 0? If so, how would you determine if it's a null pointer, or if the answer really was 0?
Not a single mention of NAV? I am disappoint.
Corporations are people. People can fire you for exercising your right to free speech. THE GOVERNMENT can not imping upon your right to free speech. IBM Corp is a collection of people, not a branch of the government.
If I want to watch funny videos, that's what my smart phone is for. Games? Same. Reading? Kindle.
I charged my kindle a few weeks ago; and read for about 4 hours last night and most nights previous. That's not abnormal for it, I've gone a month or more without charging it when I was only able to find a few series in paper form. Just got about 30 free books from amazon yesterday, so I might have to charge it next week some time.
Frankly, I've tried reading on my phone, and the backlit display just doesn't help my already bad eyes. I can get by with it when I have to, but the paper-like display of a non-lit e-ink reflecting light from a nice warm LED bulb is just more comfortable.
3(b) is one of the options. And the OP would have to prove that he got a copy of that written notice from someone who had bought the program. 3 says you must do one of the following, not all of them. B is just one of the available options for the distributor to pick from.