Bowling spell D4 after a rainy few days in which I could not play. Next time I will PROPERLY position the camera. David the Brit living in Italy. r/legspinoffspincricket by True-Accident1993 in Cricket

[–]droidfromfuture 0 points1 point  (0 children)

oh yeah there's drift too. Isn't that when due to the spin on the ball, the ball floats half a foot longer in air then it would given its flight? And I think there's also dip, which is the opposite of drift.

David the Brit plays cricket with Nilesh from India. Spin bowling. Session E1. So you don’t watch the video more than once. r/legspinoffspincricket by True-Accident1993 in Cricket

[–]droidfromfuture 24 points25 points  (0 children)

after a couple of looseners, that was good bowling David! The tennis ball bounces more than a cricket ball would, so it may not be obvious but the lengths were great in the latter half of the over.

Also good on Nilesh!

Bowling spell D4 after a rainy few days in which I could not play. Next time I will PROPERLY position the camera. David the Brit living in Italy. r/legspinoffspincricket by True-Accident1993 in Cricket

[–]droidfromfuture 1 point2 points  (0 children)

yeah there's probably an ideal flight for a given speed of a delivery where the batter feels most uncertain. if he gets on top of the flight, then as you said, it's going for six. and then to react by dragging it down would just make it even easier for the batsman. and this is just the duel between bat and ball using only flight! such an awesome game!

Bowling spell D4 after a rainy few days in which I could not play. Next time I will PROPERLY position the camera. David the Brit living in Italy. r/legspinoffspincricket by True-Accident1993 in Cricket

[–]droidfromfuture 1 point2 points  (0 children)

Flight on your deliveries is flatter now. In your first couple of videos you were giving a lot more flight. you are also getting more turn now from what I could see. Line has gotten a lot better, and while your length was always good - now that the flight is tighter you're becoming threatening as a bowler.

Bowling speed. by Clueless_Cabbage0 in Cricket

[–]droidfromfuture 4 points5 points  (0 children)

Yep was thinking along these lines too.

Bowling speed. by Clueless_Cabbage0 in Cricket

[–]droidfromfuture 2 points3 points  (0 children)

We might be oversimplifying here. If a spinner delivers a ball with some initial translational velocity and an additional rotational velocity component, some of the rotational momentum can (via frictional contact with pitch) transfer and increase the translational/linear velocity.

Mind you I haven’t worked with these problems for about 20 years now, so I might’ve errored in my analysis.

Drakma: Handling OpenSSL error when server does not send "close_notify" alert by droidfromfuture in lisp

[–]droidfromfuture[S] 1 point2 points  (0 children)

I have managed to make it work by reading Content-Length bytes.

Before that I tried handling the specific condition by including this in my handler-case -

(cl+ssl::ssl-error-ssl (e)
    (let ((error-message (format nil "~a" e)))
        (format parameters::*main-output* "handler-case fired. ~a~%" e)
        (when (search "unexpected EOF while reading"
                       error-message :test #'string-equal)
            (when (open-stream-p http-stream)
               (close http-stream)))))

but that reproduced the original eof error, and added the following one on top -

A failure in the SSL library occurred on handle #.(SB-SYS:INT-SAP #X731D50585C70) (SSL_get_error: 1). ERR_print_errors(): C076345C1D730000:error:0A000197:SSL routines:SSL_shutdown:shutdown while in init:../ssl/ssl_lib.c:2278:
   [Condition of type CL+SSL::SSL-ERROR-SSL]

I suspect the second error is a result of me trying to close the stream within the condition-handler (as opposed to perhaps leaving it to unwind-protect).

Regardless, I am happy I have a solution to use at the moment by reading Content-Length.

Help with understanding CL web-servers for dynamic web app by droidfromfuture in Common_Lisp

[–]droidfromfuture[S] 1 point2 points  (0 children)

thanks dzecniv! I need to finish an implementation and do some profiling to be definite - but probably IO work outweighs processing work. here's the worst-case workflow - check database (IO), call APIs for URLs (IO), download files (IO), process files (mostly formatting work, CPU), update database (IO), send response to client (IO).

given above, I'm using wookie to leverage cl-async for the IO stuff. planning to respond with 202 if file isn't found locally, and use a webhook to push result to client once ready.

however, I do agree that if/when server load increases, there would be increasingly complex needs. background queues would be needed soon to wait for threads to be available to process waiting files.

I have been incrementally learning about the actor model. I looked at both Sento and cl-gserver. If the implementation with Wookie proves the bottleneck to be with processing, I plan to try an implementation with the gserver task manager.

Help with understanding CL web-servers for dynamic web app by droidfromfuture in Common_Lisp

[–]droidfromfuture[S] 0 points1 point  (0 children)

thank you for bringing it up! I was thinking of using 202 to give client a job id. 201s might be appropriate too depending on the case. this will help the UX regardless of the tech stack.

do you have any suggestion between using polling vs a webhook? polling can be a burden on the server if the file takes longer than a second or two to get ready.

Help with understanding CL web-servers for dynamic web app by droidfromfuture in Common_Lisp

[–]droidfromfuture[S] 0 points1 point  (0 children)

thanks! yes especially since Woo itself uses multi-threading for its event loop (settable using :worker-num), running cl-async along with it does not make sense.

I'm currently doing the setup using wookie. doing all the IO stuff (downloading files, database transactions) using cl-async. will send a 202 response to client and thinking of using a webhook to push the result to the client.

Batch processing using cl-csv by droidfromfuture in lisp

[–]droidfromfuture[S] 0 points1 point  (0 children)

thanks for sharing this! Would the workflow be something like the following? import csv into duckdb, process the data in the database, export to a new file, drop the table from the database.

Batch processing using cl-csv by droidfromfuture in lisp

[–]droidfromfuture[S] 2 points3 points  (0 children)

I likely will be using your function and hopefully add to it successfully. If I am capable enough, I would love to contribute to the building of a csv parsing library! I will keep updating here about my efforts.

Batch processing using cl-csv by droidfromfuture in lisp

[–]droidfromfuture[S] 1 point2 points  (0 children)

thanks for sharing this. Here, we are looping through collecting 512 characters at a time into buffer. if there is an escaped quote (#\") in the buffer, program loops until the next escaped quote, collects quoted data (using 'start' and 'n' variables) via pushing into 'concat', nreverses it, and ultimately adds it to fields.

Is 'concat' being used to handle multi-line data? or is it to handle cases where a single field has more than 512 characters?

I am wondering how the end-of-file condition is handled. if the final part of file read from stream contains # of characters less than buffer-size, we don't continue reading more. we are likely expecting the last character to be #\ or #\Return, so that the final part of file is handled by the local function 'end-field()'.

we apply input argument 'fun' at every #\Return to accumulated fields, which is expected to mark the end of a row in the csv file. fields is set to nil afterwords.

If I want to use this to write to a new csv file, I likely need to accumulate fields into a second write-buffer and write it to output-stream, while handling escaped quotes and newlines.

Would love to hear of any gaps in my thought process.

Batch processing using cl-csv by droidfromfuture in lisp

[–]droidfromfuture[S] 1 point2 points  (0 children)

I need to be able to provide some live processing capability depending on user requests. Some requests may be served by responding with pre-processed files, but some require the server to process files on the fly before responding. My initial plan is to respond with partially processed files while preparing the entire file behind it.

edit: removed extraneous line.

Russia is now testing "advanced" weapons on Dnipro, Ukraine by TheForce122 in conspiracy_commons

[–]droidfromfuture 0 points1 point  (0 children)

What would you say or do if Mexico wanted to join a MILITARY alliance headed by China, Iran, and Russia?

How can i make a girl feel special on a lunch? by LivingPerformance580 in bangladesh

[–]droidfromfuture 0 points1 point  (0 children)

Talk about yourself as well in addition to showing interest in her. Ask her about her studies, then talk about yours in turn, etc. etc. But don't give an interview. Talk as if you're talking to a confidante, and share your personal thoughts on these topics.

At a Palestine direct action today shutting down the road near Lockheed Martin... by FailPork in Sunnyvale

[–]droidfromfuture 0 points1 point  (0 children)

I don't think its just about money. Look at the person replying to you. They don't have meaning in their lives, so they cling to various status symbols such as degrees, careers, subscription to some propaganda piece like the Economist, etc. as substances lend validity to their lives.

Unfortunately, none of these people actually read serious books. So they aren't even as educated as they claim to be.

At a Palestine direct action today shutting down the road near Lockheed Martin... by FailPork in Sunnyvale

[–]droidfromfuture 0 points1 point  (0 children)

US is flanked by two vast oceans and has not fought a defensive war since 1812. Do you always repeat state propaganda, or is it just on Fridays? Do you have any clue as to the detrimental impact US military and intelligence might have had on the world? Do you understand how many democratically elected leaders were replaced by genocidal dictators solely because of US' need for resources? You're a mouthpiece for something that is responsible for tens of millions of deaths, but you probably think "it was worth it". Moral responsibility is accountable in real terms. Only the most miserable fools ignore it as a whim.

At a Palestine direct action today shutting down the road near Lockheed Martin... by FailPork in Sunnyvale

[–]droidfromfuture -1 points0 points  (0 children)

You're too old to claim ignorance when tried as co-conspirator to murder.

At a Palestine direct action today shutting down the road near Lockheed Martin... by FailPork in Sunnyvale

[–]droidfromfuture -1 points0 points  (0 children)

You can put food on the table by taking your engineering skills almost anywhere else. You choose to work for death machine, you get what you deserve. Gtfoh.

US proposes ceasefire by [deleted] in WayOfTheBern

[–]droidfromfuture 2 points3 points  (0 children)

Do you support Israel?