« first day (2896 days earlier)      last day (2043 days later) » 

12:01 AM
@Borgleader Up next, how I built a pocket calculator (that won't fit in your pocket) for only slightly more than my first car cost.
 
The Model-T (the first cheap car) cost $850 in 1908... However, it must be added that the cost of that dwindled to $260 by 1920
you got ripped off
 
Anyone here has any experience of controlling servo with raspberry pi or arduino?
 
@Mikhail Not so. Henry Ford gave me a Model T in return for helping design the first production line.
 
@JerryCoffin you're SO profile still lists your employment at KnuEdge
 
@Mikhail I suppose I should update that. KnuEdge is (at least mostly) gone.
 
12:17 AM
I have my eye on this babe But I am not sure whether I could control it with a raspberry pi.
-1
A: List of hardware supported by Raspberry Pi

MadPapoIt is simple. You can connect ALL the hardware you want to RaspberryPI or Arduino, best if powered with 3V 5V or 12V. After you wire up the cables you have to build your own driver using hardaware spec & datasheet So, no limits for these boards

According to this negatively rate answer, you could ... if you ignore all physical constrains.
 
12:33 AM
@TelKitty The answer is correct as far as it goes, but the comment on it is entirely correct as well.
 
Talking about things that a 'theoretically possible'.
 
@TelKitty It's more than theoretically possible--it's entirely reasonable, but unless you're extremely ambitious, you probably want to use a pre-built servo driver. I haven't checked, but I'd almost bet that the usual suspects (e.g., Adafruit, Sparkfun) would have at least a few to choose from. Oh, and if you have a choice I'd tend to suggest using stepper motors instead of servos. Among other things, they're usually a bit easier to drive, and usually have higher torque.
 
I need to learn up on servo drivers. I have one that's currently on self driving toy car. Not sure it's compatible with the servo on the tank though.
 
1:27 AM
There is no site on stackoverflow where I can ask questions in regards to robots, more specifically, where I can ask questions about servos and how to control servos with computer system.
Also, I need to learn soldiering ~_~
 
 
3 hours later…
4:06 AM
How do I know that I am not stalked by a menace bot?
 
4:26 AM
How do you know you're not a menace bot?
@Morwenn Oh no, what happened to the first guy's eye? And how did the second get so much radiation exposure he gained a third? :o
 
@jaggedSpire That's not a guy with three eyes. It's two minions.
 
4:46 AM
@jaggedSpire Irrelevant ... I could be a bot, a kitty, a soft chicken, a person or a black hole. All are susceptible to be stalked by a menace bot.
 
@JerryCoffin D:
 
Maybe I should not be so suspicious, but I am mentioning menace bot because yesterday certain organization sent me an email about deleting one of my accounts for 18 months inactivity, then another 2 emails about not using their official app. This morning an email about a deadline to update my apps. In between, I found out that all the recent images in my email accounts were subjected to image recognition.
While as it could all be coincidences and not done by human. I could not but suspecting 'evil' bots are running around targeting all online kitties.
 
5:17 AM
I have been on SO for some years now.
I still can never remember how to get all questions shown instead of just hot or whatever selection of them.
Damn SO UX.
 
@fredoverflow I figured out that I need to click the Stack Overflow in left bar.
 
5:37 AM
0
Q: Reading in parameter from input file vs setting it as a static const in .h file - compiler optimization

TryerI have an external excel file which contains a list of different parameter values needed in order to run an application. One of the parameters in the excel file is, numberofcustomers. I read this at the beginning of my program into an object, say, globalconstant object, gcs. The class globalconst...

^ Putting configuration parameters into Excel sheets. That's a new.
 
 
3 hours later…
8:19 AM
Morning
@jaggedSpire it's not radiation but merely aesthetics :o
 
 
4 hours later…
12:04 PM
@Puppy What are your thoughts about GraphQL
 
 
1 hour later…
1:04 PM
@JerryCoffin This was a convention center in Austin TX more than likely they had three phase coming in so you could have easily gotten the 90 degree phase
 
1:52 PM
@Mgetz Would still be pretty unusual. Starting from 3 phase power, you normally take a single 440V pair (two hots from the 3 phase connection) and step that down to 220 V (with a center tap, so center to either hot is 120 V). To get 120 that wasn't 180 degrees out of phase, you'd need to end up with the two lines in the plug coming from different transformers.
 
2:30 PM
@JerryCoffin I'll have to trust you, I got a D in circuits
(TBF so do most of entire class because the professor couldn't fail us all)
 
@Mgetz Ouch!
 
yeah he felt we weren't trying hard enough
 
 
2 hours later…
5:02 PM
@Mgetz Many of my teachers seemed to feel that way about me. In one case, it got to the point that my dad got involved--I'd gotten 100% on every quiz, every test, and every piece of homework for the entire year, and the teacher still gave me a low B as the overall grade.
 
@JerryCoffin So what happened afterwards?
Granted, I've always hated those people who can get straight A's without ever coming to class or even trying. But hey, as much as we like to preach equality, not everybody is equal. Some are simply more talented than others.
 
nwp
Preaching equality and everybody being equal are totally different things.
If everyone was equal there would be no point in education and degrees.
The point is giving everyone equal opportunity. If some use that opportunity better than others then there is not too much you can do about it.
 
Yeah I know. Also that academic performance in school doesn't seem to correlate very strongly with QOL in adulthood.
There's a couple of people in my school days who were academic geniuses whom (depending on their grade) I either looked up to or resented. Now they're college drop-outs, unemployed, living with parents - no path ahead.
 
5:25 PM
Weird. Top of my class was pretty successful, a few got secondary degrees.
 
@BartekBanachewicz Meh.
we are facing somewhat similar problems in our own solution at the moment as we are enabling Redux action replay but we have UI components that fetch data on mount whihc is not ideal
but you should just be explicit about what you need to fetch when the model state is changed
 
@Mikhail The further back you go, the weaker the correlation.
Most of my college friends who survived are doing fine - except for maybe one.
Though I never really kept track of the "superstars" in college since I'd share at most one or two classes with any particular person.
So there would be different people fucking up the curve for each class.
 
6:09 PM
@Mysticial I did eventually get an A, but my dad probably put as much effort into that as I did.
 
I don't know if I should be laughing that.
 
7:11 PM
@Mysticial Same.
I wish I could have gotten straight A's like that, but sadly I couldn't even get straight A's by trying :P
But hey, all the best to them if they could.
 
 
1 hour later…
8:20 PM
What exactly is the system clock? Is it a component on my motherboard? Is it part of the CPU?
 
@Borgleader I got straight A's my senior year of high school, but that was pretty close to the only time. But I always got As in math classes.
 
@StackedCrooked Depends. On modern systems, it's the TSC, but periodically re-calibrated with a hardware timer like the HPET or the APIC.
 
@StackedCrooked Which system clock? You have an oscillator that drives the CPU, and the CPU's clock is some multiple of that. The chipset has a 1.024 MHz clock, and usually an HPET that's required to be at least 10 MHz.
 
So if I call chrono::sytem_clock::now(), which IIRC translates to CLOCK_REALTIME on Linux, which clock is accessed?
Is it the same for steady_clock?
 
@StackedCrooked It will probably access some stored value that caches the TSC timestamp and date of the last time it re-calibrated. Then it calls TSC to compute the difference to now.
 
8:26 PM
So HPET/APIC provides the base value which is then incremented with TSC deltas.
 
That's my guess.
HPET/APIC or some dedicated clock crystal provides the master time. TSC provides the in-betweens.
 
I see.
 
TSC is very precise, but it drifts.
 
Can I query the HPET directly?
 
So good for benchmarking, but terrible as a system clock.
@StackedCrooked Not without a kernel-mode driver.
On Windows at least.
 
8:31 PM
high_resolution_clock is normally going to be raw tsc. I'd normally expect system_clock to come (more or less) directly from the HPET or 1.024 MHz clock. I haven't looked at the library source to be sure though.
 
I have noticed that threads that spin on system_clock::now() also have very high "local timer interrupt" counts. (On Linux I can see this with cat /proc/interrupts). So I suppose this means "local timer interrupt" is the thing that does the recalibration?
 
@StackedCrooked Recent Windows pretty much ignore the HPET completely.
 
I suppose one could rely purely on TSC with NTP synchronization.
 
@JerryCoffin On Windows8 and later, it does some sort of TSC offsetting. The system clock drifts if you change the base clock (and thus TSC frequency) after it has already booted up.
 
@JerryCoffin Not sure what "more or less" means here, lol.
 
8:53 PM
@StackedCrooked If memory serves, there is a Windows 10 driver for the HPET, but 1) it's not installed by default, and 2) if you do install the driver, most current software still won't use it, but some older software will.
 
9:04 PM
@Mysticial I'll take your word for it--like I said, I haven't re-checked recently.
Oh, looking back I also forgot to mention on other basic clock source in the system: ACPI provides a power management timer, which runs at the NTSC color burst frequency (3.579545 MHz). That used to be used to keep US TVs in sync with broadcasters, so there are lots of sources of cheap, accurate color burst crystals.
 
9:20 PM
I think that fixed it :) — sehe 16 secs ago
 
9:31 PM
Hehe @Jerry
Note, however, that the comparison can be simplified a little if you want: bool Coordinate::operator<(const Coordinate& other) const { if (x < other.x) { return true; } else if (x > other.x) { return false; } else return y < other.y; }Jerry Coffin 1 min ago
Did you see my comment earlier?
I was really confused about that too. Lemme try to fix that. One element of style: prefer to "generate" comparison e.g. return std::tie(x,y) < std::tie(other.x, other.y);. That's much less error prone — sehe yesterday
 
@sehe No--missed that. Excellent point though.
 
:)
Yours too. Although I'd still count that as too error prone IRL
 
@sehe There are a number of things I like that many people seem to think are error prone, but my errors always seem to have entirely different sources. Oh well...
I do rather like using std::tie for this case though.
 

« first day (2896 days earlier)      last day (2043 days later) »