Re: [Jprogramming] Yahoo stock quotes

2019-11-24 Thread Thomas McGuire
OK so here is my final code cleaned up and now working due to the double quote issue (see second to last line of code): NB. Navigating yahoo.com to programmatically get historical stock prices NB. require 'web/gethttp' require 'regex' NB. use the linux date command to create a linux time stamp e

Re: [Jprogramming] Yahoo stock quotes

2019-11-24 Thread Thomas McGuire
Ric for not looking at my code you are amazing. I put the ‘dquote’ function in front of the URL that goes to get the actual stock quotes and bingo CSV data dumped into my Jqt screen. It’s the second to last line of my script that was the culprit. It initially was: res2 =: '-s -b cookie.txt ' g

Re: [Jprogramming] Yahoo stock quotes

2019-11-24 Thread Ric Sherlock
Haven't got time to look at your code in detail, but stabbing blindly in the dark - have you tried double quoting your URL? See the following StackOverflow question and answer: https://stackoverflow.com/questions/55753504/reading-csv-file-from-a-a-secured-link-with-j On Mon, Nov 25, 2019 at 3:36 P

Re: [Jprogramming] Yahoo stock quotes

2019-11-24 Thread Henry Rich
Do you have an example of a script where you can see correct data going in and a bad result coming out? Henry Rich On 11/24/2019 9:30 PM, Thomas McGuire wrote: The following J script, patterned after Brad Lucas’ Bash script (http://blog.bradlucas.com/posts/2017-06-02-new-yahoo-finance-quote-d

[Jprogramming] Yahoo stock quotes

2019-11-24 Thread Thomas McGuire
The following J script, patterned after Brad Lucas’ Bash script (http://blog.bradlucas.com/posts/2017-06-02-new-yahoo-finance-quote-download-url/ ), doesn’t seem to work. I won’t go into the history of the yahoo a

Re: [Jprogramming] Explicit vs tacit with assignment

2019-11-24 Thread Devon McCormick
The "(a,a=. ...)" expression reminded me of an upgrade we once did to a Sharp APL mainframe system where one of the points of interest was how the upgrade handled what they called "pornographic assignment". I don't remember the exact example they used but this reminds me of that. I made a vain at

Re: [Jprogramming] Explicit vs tacit with assignment

2019-11-24 Thread Jose Mario Quintana
> To break the rules deliberately one must first know where to swing! Certainly... "Learn the rules like a pro, so you can break them like an artist." Picasso Did he know of what he spoke? His father, a painter and a teacher, reportedly overwhelmed gave his own palette, brushes, and colors to

Re: [Jprogramming] (no subject)

2019-11-24 Thread Jimmy Gauvin
Thanks Louis, cartesian product does the trick, Jimmy On Sat, Nov 23, 2019 at 8:33 PM Louis de Forcrand wrote: > I believe that as Devon said the subarray selected by m in x m} y must not > contain any fill elements, which isn't the case of your example as in its > case the first element of m

Re: [Jprogramming] J and data structures

2019-11-24 Thread 'Rob Hodgkinson' via Programming
Raul, briefly inline, I will not extend this thread, I am not looking for a solution to our engine, it is already architected extremely efficiently. > On 22 Nov 2019, at 4:53 am, Raul Miller wrote: >> > > This is the kind of information I was looking for. > > That said, I am having trouble r

Re: [Jprogramming] J and data structures

2019-11-24 Thread 'Rob Hodgkinson' via Programming
Hi Jimmy (sorry, been away for 3 days), good question and we have investigated FPGAs, but abandoned for these reasons: We prefer “vanilla” code in the engine (less dependencies, don’t tweak the Linux kernel, minimal external packages and libraries etc) We also code-generate from a very general ER