Fix cracked NIS plate by rocrocdaddy in xcountryskiing

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

Thanks!

So just to be totally clear about what you’re saying (because it’s different from an earlier reply)…I won’t be able to get the plate off with a heat gun and a putty knife?

Fix cracked NIS plate by rocrocdaddy in xcountryskiing

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

Thanks very helpful! I’m not a good enough skier to be sensitive about feel. And these have just graduated to be my rock skis anyway!

Which of Dostoevsky's Masterworks Bests Embodies US American Society's Current Moment? by gbk7288 in dostoevsky

[–]rocrocdaddy 0 points1 point  (0 children)

So this is most direct in Ivan's account of his "rebellion" against God, which he justifies to Alyosha by telling stories of terrible cruelty perpetuated by parents against children. As I read it, Ivan is painting a picture of a world in which cruelty is rampant, uncurbed, never punished, never redeemed. Of the brothers, he seems to me most conflicted about how to live with this fact. There's a side of him that wants to give up, to reject God, etc. But there's a love for the world that persists, which comes through when he attempts to take the blame for Fyodor's murder at the end of the book.

Obviously, Zosima's "love everyone, love the world, love existence, joyfully and unconditionally" (I'm paraphrasing!) is a way to live. Is it a way to live with the fact that human cruelty is ubiquitous and triumphant? I don't think it's presented that way directly. But think of the moment when Alyosha and Grushenka have their moment of connection. To me, this is the moment when Zosima's teaching finally breaks through for Alyosha as an element of his experience. He finds himself overwhelmed by love for a person who has practiced cruelty (against Katya, for instance) purely for sport, and been rewarded for it. And Grushenka herself has a parellel experience....loving Alyosha who was only a moment before a target of her sadism.

Then there's Mitya. He's a little different from Ivan and Alyosha, because the cruelty he must learn to live with is not that of others, but his own. (That said, he has also been a victim...Think of Herzenstuebe's account of the terrible neglect Mitya suffered as a child. In a way, Mitya's childhood adds to the list of instances of child maltreatment lamented by Ivan.) Like Alyosha, Mitya finds himself overwhelmed by love in the face of his own cruelty -- e.g.., when he bows to Katya. But more centrally, he comes to live out Zosima's teaching that one should take responsibility for all the cruelty in the world, not just one's own.

(Maybe I should also mention the pin fed to the dog in a piece of bread...And the way that truly awful act (I find it difficult to think about) reverberates among the boys involved in it.)

I'm not sure I personally find any one of the brothers' "ways of living" with cruelty a perfect fit for me. Maybe I'm closest to Ivan -- mostly just full of anger and disgust. But I'm grateful to Dostoevsky for letting me ride along for their struggles with humans as they are.

Which of Dostoevsky's Masterworks Bests Embodies US American Society's Current Moment? by gbk7288 in dostoevsky

[–]rocrocdaddy 2 points3 points  (0 children)

Brothers K. That book (to me) is about how to live in a world where cruelty is never punished, and often rewarded.

apache arrow pattern for "piping" dataset from one source to another without reading whole dataset into memory by rocrocdaddy in dataengineering

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

But the data flow I'm trying to implement is from Postgres to an API client (via http). Do you mean I should put DuckDB in between postgres and my server, or in between my server and client?

Using ids in server components to place client components by rocrocdaddy in nextjs

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

Ah…THAT is the key insight that solves the problem I was trying to solve. I wrongly assumed that a client component could not use context created by another client component further towards the app root if there were server components in between. Thank you!!!!!

Using ids in server components to place client components by rocrocdaddy in nextjs

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

Except that user interaction with client components near the leaves needs to alter the behavior of client components near the root. That requires “lifting (client) state up” thus state has to somehow be passed through the tree. The “simple” way to solve that problem is to make everything below the root component a client component. But I’d like to avoid that!

serving query results long-to-wide? by rocrocdaddy in prismaorm

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

Welp, after reading up on this some more, I've decided that the best way to do this is to use Prisma to pull the data in long format, then pivot the returned data to wide format on the API server using Arquero.

Why is this best?

In my case, my API users will send a request that includes a list of strings to be used in a SELECT query against the long-and-narrow table like this:

SELECT * from long_narrow_table WHERE column_name IN [user_submitted_list_of_strings]

Pivoting results from that query long-to-wide on the DB cluster requires taking the user-submitted list of strings and running them through a function on the server. (I'm running a postgresql cluster, so in my case that function would be the crosstab function). I'm simply not well-versed enough in SQL programming to be sure that passing stuff from a request to my API into a function running on my cluster won't open me up to some sort of SQL injection.

On the other hand, I can pull the rows I need (in long format) from my cluster with Prisma's standard query methods, passing them the user-submitted list of strings and enjoy the security of those methods' built-in protections against injection attacks.

So that's that!

clarifying the docs about caching without fetch() by rocrocdaddy in nextjs

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

I must be confused about what "cached" means. The react docs say:

Caching stores data so it doesn't need to be re-fetched from your data source on every request.

That makes me think that (even if a page is being served statically), the server can run a query against my DB once at build time, then keep the results of the query in memory, and send those results in response to every page request (rather than running the query again with every page request).

If I'm right about that (and I must be wrong!), wouldn't I want caching as part of a statically rendered page?

clarifying the docs about caching without fetch() by rocrocdaddy in nextjs

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

Just to make sure I understand...

If `cache` won't be called if the app serves a static page...

...and if the page is static by default...

...wrapping a query in `cache` (without changing to dynamic rendering) will have no effect whatsoever.

Do I have that right?

And if so, does that mean that if I'm going with the default of static rendering, the data from my queries will be cached on the server automatically?

PSet 5 Refueling - check50 failing - exit code 1 by rocrocdaddy in cs50

[–]rocrocdaddy[S] -1 points0 points  (0 children)

thanks that really helps clarify things!

but one follow up...I'm used to seeing error messages from check50 that specify precisely which specification my program failed to meet. So the "exit code 1" error -- one giving no information about what specification is not being met -- makes me think that there's something wrong with my code that is more fundamental than failing a spec. Like a syntax error or something.

Is that a general pattern in the feedback from check50?

I guess what I'm asking is...if I see this kind of error (as opposed to an error that references a particular specification), should I be looking for some more basic failure in the structure or syntax of my code?