|
Monkey ?
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
I wrote a Windows Form to download stock data using Web API, but the data provider stipulates that the connection is limited only to 5 minutes for a session to download data.
How can I continuously download the stock data for a large number of stock symbols?
diligent hands rule....
|
|
|
|
|
You're going to have to have that discussion with whoever you're getting that information from.
...and you're probably going to have to pay for for it too.
|
|
|
|
|
Southmountain wrote: I wrote a Windows Form to download stock data using Web API, but the data provider stipulates that the connection is limited only to 5 minutes for a session to download data.
How can I continuously download the stock data for a large number of stock symbols? I've had a similar problem problem before. Check if you can use RFC7233/RFC9110 range requests if the webserver supports it. Pause your download before the 5 minute mark. Take note of how many bytes you have downloaded and resume the download on a later connection beginning at that offset. You can use curl to test if the remote server supports range requests.
|
|
|
|
|
Run away! "monty python"
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
🐇
I assume they mean historical trade data of past years which is usually a huge archive. Surely they weren't asking about real-time data. 
|
|
|
|
|
your assumption is correct
diligent hands rule....
|
|
|
|
|
|
Programming question in the Lounge?
|
|
|
|
|
in surface it is a programming question, but I doubt about it...
diligent hands rule....
|
|
|
|
|
Paying for it was the first thought that came to my mind.
But other than that, as noted in other post, since it is historical data they presumably already understand that you (or any other user) will be looking for a span of data. As such the API method, or perhaps another similar method, will already have a way to specify a range.
So each request does a range.
|
|
|
|
|
-- Wirth, 2015
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
What would he know about it?
|
|
|
|
|
Googling I can't find anything that suggests he said that.
Other than that exactly which projects has Wirth been involved in for example say the last 20 years which would suggest that his knowledge extends into the practical for the current programming age?
|
|
|
|
|
Well, he actually wrote that. You may find the paper at ETH ('computers and computing - a personal perspective').
The final revision of his Oberon project is dated 2007.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
CPallini wrote: final revision of his Oberon project is dated 2007.
Which was started in 1985. So really unclear what he would have been working on in the modern era.
CPallini wrote: Well, he actually wrote that.
So referenced
http://pascal.hansotten.com/uploads/wirth/ComputersAndComputing.pdf[^]
The comment you referenced seemed a throw away at the end of the piece.
"The unbelievable success of computers is mostly due to the incredible advances in
semiconductor fabrication. Processors are now available with immense power, and
memories with vast capacity. As in every other field of endeavor, abundance at low
cost invariably leads to wasteful design. This entails not only waste, but poor
products of declining quality. In particular software engineering now seems to be
the eldorado of splashing and wastefulness.
Dijkstra once claimed that it is the foremost duty of the software engineer to fight
(home-grown) complexity like the devil every minute. The same is now true also for
the hardware engineer"
What it fails to address at all, in the entire article, is the nature of business. He mentions 'business' several times but without much commentary and only in a historical context of which the latest tied reference is 1970.
The nature of business is to deliver products/services and to make money. It is not the point to deliver "elegant implementation[s]".
Matter of fact it is counter productive and contrary to the goal of businesses for a developer to spend time on processes for some subjective ideal which has no measurable impact at all on the goals of the business. This is demonstrated, as one example, by developers that get wrapped up in micro-optimizations without any analysis at all of what impact it would have on the actual product/service that needs to be delivered.
|
|
|
|
|
Well, at least you've read it.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
You make it sound as if there is no place in this world for anyone who lets quality come ahead of profits. Or for that sake, let anything come ahead of profits.
That reminds me of the old saying that "A capitalist is a man who knows the price of everything and the value of nothing".
|
|
|
|
|
trønderen wrote: You make it sound as if there is no place in this world for anyone who lets quality come ahead of profits. Or for that sake, let anything come ahead of profits.
What I said specifically said was "into the practical for the current programming age?"
That is defined by businesses. The vast, vast majority of software development occurs within that domain.
And businesses succeed by making profit. They die if they do not.
Certainly Wirth's view was different to business since he was a professor at Universities for the vast majority of his professional career. And yes university professors can certainly make claims about elegant code. And spend time investigating it.
trønderen wrote: That reminds me of the old saying that "A capitalist is a man who knows the price of everything and the value of nothing".
Just to provide the context that saying first appeared in a play by Oscar Wilde who was not brought up in a poor family.
Myself I like getting a paycheck every month. And the vast majority of people do. Indeed world wide there is a vast social strife that occurs when people do not get it and/or get less than what they feel that they should.
And that comes about because they want to buy things with the money which that provides.
So certainly many people do think that businesses provide value.
Certainly if a business decided to stop paying their employees for a month so the employees could make the software code more 'elegant' I suspect there would be problems.
modified 15-Jan-23 13:42pm.
|
|
|
|
|
Rather exaggerated! Quite.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Well, in 2015 Wirth was 81, maybe a little 'out of time'.
His 'A Plea for Lean Software', however, is dated 1995.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
|
A drone. Big wow.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Apollo was nothing without Starbuck.
|
|
|
|
|
another groan!
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|