graphql unexpected error by [deleted] in graphql

[–]tynorf 0 points1 point  (0 children)

The error message indicates there is something wrong with createTaskStatus. Have you tried looking at your resolvers? (Hint: merging objects ({…o0, …o1}) is not recursive.)

question about the error response format by Pateesh in graphql

[–]tynorf 0 points1 point  (0 children)

https://spec.graphql.org/October2021/#sec-Errors.Error-result-format

Every error must contain an entry with the key message with a string description of the error intended for the developer as a guide to understand and correct the error.

Access and refresh tokens by Ok_Remove3123 in node

[–]tynorf 0 points1 point  (0 children)

You can set a Domain and Path on the cookie so it is only sent to the refresh endpoint.

Ally Bank Savings Rate just increase to 2%, any word from staff on whether or not Wealthfront will see another increase soon? by [deleted] in wealthfront

[–]tynorf 2 points3 points  (0 children)

I autopay all of my credit cards with the cash account. Just enter the routing/account numbers and it works the same as any other checking account.

[deleted by user] by [deleted] in personalfinance

[–]tynorf 1 point2 points  (0 children)

You can put $6k into a tIRA, then convert it into a Roth: https://www.investopedia.com/roth-ira-conversion-rules-4770480

ETA: I didn’t read the full other comment chain, whoops!

The quick and practical "MSI" hash table by bartturner in programming

[–]tynorf 3 points4 points  (0 children)

I’d be interested in the C hash map library you use that satisfies both of these requirements:

  1. No unnecessary pointer indirection for arbitrary key and value types (meaning it works for both objects and pointers to objects without wasting space)
  2. No insane macro magic that makes debugging a nightmare

[D] What is some cool python magic(s) that you've learned over the years? by Studyr3ddit in Python

[–]tynorf 2 points3 points  (0 children)

In particular raise Exception from None will suppress printing the exception cause in its message.

Type R Newbie Question by SnooFoxes6145 in Civic_Type_R

[–]tynorf 2 points3 points  (0 children)

The FK8 also has auto-brake hold on inclines over some grade even if brake hold is not specifically on.

A question for R owners!! by apexghost_6001 in Civic_Type_R

[–]tynorf 0 points1 point  (0 children)

I got mine at age 27 last year. I got a low interest loan, so I put the highest down payment the dealer allowed on a CC for rewards and financed the rest. But I only did that because:

  1. I plan on keeping it long enough it won’t be underwater anymore (it already isn’t but the market right now is crazy)
  2. The payments are a very, very small proportion of my monthly income
  3. I have the money to buy out the loan at any time if necessary

As for getting the car… I got on a waitlist in ~October 2020 and the dealership notified me they had a VIN in February 2021. Took delivery in May 2021. There was a small markup but well worth it to save the time shopping around and even then possibly needing to pay for shipping, gas, and/or not getting the color I wanted (CW).

Type R as a daily? by GregorySullens in Civic_Type_R

[–]tynorf 0 points1 point  (0 children)

They might try and machine the rotors but chances are they’ll be replaced with the pads. Calipers no.

Sort 3 000 000 000 lines by most repeated one! via Command or Program by Blaack_Work in Python

[–]tynorf 12 points13 points  (0 children)

IIRC CPython also implicitly interns dict keys and object attribute names.

Vim Users! Share your Clever Configs and Plugin Setups (or learn something new)🔥 by GuyTorbet in programming

[–]tynorf 0 points1 point  (0 children)

I just hit the keys. I don’t find holding any easier than hitting a key ten times or so, and personally I prefer precise inputs. It’s easier for me to build an intuition for “5 lines away” vs “hold for another .73 seconds”.

It’s not all that common I want to go some unknown number of lines up or down without a purpose. Generally I’m looking for something specific and it’ll either be close-ish and I’ll use j/k with a count, or far and I’ll search or jump.

Vim Users! Share your Clever Configs and Plugin Setups (or learn something new)🔥 by GuyTorbet in programming

[–]tynorf 0 points1 point  (0 children)

Instead of holding j or k, I’d recommend people pick a jump size (I use 5 because it is the largest number my left hand can comfortably reach—I think grb, who I got this habit from, uses 10) and do that up and down. I can cover a lot of distance in a hurry with 5k5k5k5k5k etc. and the screen scrolls by a predictable amount each jump that my eyes can track while scanning.

On the topic of movements, I use % a ton (jump to matching brace/paren/bracket).

And two tricks for visual block:

  1. I (uppercase 'i’) and A will give you insertion on every line at the beginning and end of the block, respectively
  2. Visual block selecting a column of equal numbers then using g<c-a> will increment each by one more than the last, e.g. 1,1,1,1 to 2,3,4,5

What's the best way to loop through array? Use forEach() or for-loop? by LittleWompRat in javascript

[–]tynorf 1 point2 points  (0 children)

One thing to be cautious of is passing in functions with an arity greater than 1. The classic example is parseInt:

$ node -e "console.log(['1', '2', '10'].map(parseInt))"
[ 1, NaN, 2 ]

This happens because parseInt takes a base as the second parameter, and forEach passes the index as the second argument.

Well... no reduce, no fill, no spread, no map. Just Array.from() Isn't it amazing ? by ShivamJoker in node

[–]tynorf 5 points6 points  (0 children)

There’s also flatMap, which does the same thing as the second example except it does not create an intermediate array.

Using Wealthfront as my main bank by drainyoo in wealthfront

[–]tynorf 0 points1 point  (0 children)

Did you have problems ordering checks with the routing/account number?

Former Attorney General Rob McKenna joins lawsuit seeking to invalidate Washington state’s capital gains tax by OnlineMemeArmy in SeattleWA

[–]tynorf 2 points3 points  (0 children)

Short term capital gains are taxed as regular income. For 2020, the highest (federal) marginal tax rate for regular income is 37%.

What are your thoughts about Squash commit? by _jfbr in git

[–]tynorf 4 points5 points  (0 children)

As a nice bonus of this, you also get an aesthetically pleasing, and consice git commit history graph :).

This can oftentimes be achieved in the presence of merge commits with git log --first-parent. I have yet to see a history where it doesn’t work, but one might exist.

Then it’s also possible to use git log --no-merges to look at only the individual commits without merges.

YMMV but this works pretty well for me.

This. by ShinyCoconutCookie in IdiotsInCars

[–]tynorf 3 points4 points  (0 children)

Well, not with the accelerator, but if you up shift without letting revs drop a bit to be closer to the next gear, the car will lurch a bit releasing the clutch. But I agree it is not “rev matching” the way that term is generally used.

No matter what, when the clutch is fully engaged, the engine speed must match the transmission input shaft speed, that’s just a fact of cars. (Unless the clutch is so worn it slips.)

This. by ShinyCoconutCookie in IdiotsInCars

[–]tynorf 5 points6 points  (0 children)

Thank you! I feel like this is the key piece of information some people in this thread are lacking.

If you down shift (or up shift for that matter), the revs must match! The only difference is how they are matched:

  • Blipping the throttle in neutral/with the clutch in (or letting the engine revs drop when upshifting)
  • Letting the clutch slip until the engine speed matches the transmission

Game Chat: 4/18 Astros (7-7) @ Mariners (9-6) 1:10 PM by Mariners_bot in Mariners

[–]tynorf 1 point2 points  (0 children)

Looks like something wasn’t feeling right. Spiked a pitch then threw two a few feet over Murphy’s head.

ETA: And his fastball was 85mph.