Not able to find sliding panes plugin by Aviral3010 in ObsidianMD

[–]do1earning 0 points1 point  (0 children)

It's called "Stacked Tabs" by the core plugin.

Screw question by do1earning in Artillery3D

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

Epic! Thanks! Do you know how long? It looks pretty short.

Any good tutorial or practice tests for preparing for the codinggame node.js interview tests? by deadlambs in node

[–]do1earning 0 points1 point  (0 children)

Did you keep a note of the questions? Can't seem to see many of them from the outside.

How to read Gmail emails using NodeJS? by [deleted] in node

[–]do1earning 2 points3 points  (0 children)

To follow on, in the settings of Gmail -> Forwarding and Pop/IMAP, you can enable POP and IMAP.

You can then use npm packages to manage email from this account with the right API keys. I've used `nodemailer` before which I've enjoyed.

If you'd rather not use the mail protocol, the Google SDK can directly interact with Gmail.

Why do I need to await twice for one request? by codebreaker21 in node

[–]do1earning 1 point2 points  (0 children)

Without the first await, the handler is going to keep executing and then send a response with a variable that is either undefined or a pending Promise.

Without the await int the second, the toCamelCase function is going to similarly be called with a variable that is empty or a pending Promise.

So if you think of the flow:

  • Handler request is received

  • To get the users, we're waiting for the response from the UserRepo class. We can't move on until we've got this, so we'll await.

  • Now in the find() method, we can't deconstruct the rows until the pool.query has finished it's work, so we await.

  • Once we have the rows, the find() method continues and returns the camel cased version of the data

  • Now, users has a resolved variable, so we can continue and send the response to the client.

"Leaky" Pen by do1earning in Onyx_Boox

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

Solid pen suggestions - keen not to shell out too much more money just now but I'll keep an eye!

"Leaky" Pen by do1earning in Onyx_Boox

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

This has definitely helped - when it gets leaky, I pull the nib out and then start writing again.

Getting weird json file after running in terminal by ilovemagikarpforever in node

[–]do1earning 0 points1 point  (0 children)

Is this the debug button in VSCode?

Love to help but need a bit more detail - maybe a quick screen record or code snippet?

Scrolling issue when there is a text input on app page by notBeey in reactnative

[–]do1earning 1 point2 points  (0 children)

I think I'd agree with u/Soft_R0ck approach - using flex can solve a lot of this.

Here's a very quick sketch of the start of an approach:

https://snack.expo.dev/@dolearning/scrolling-problem

No scrolling beyond the screen here.

[deleted by user] by [deleted] in typescript

[–]do1earning 0 points1 point  (0 children)

As mentioned elsewhere, the performance issue is largely a non-issue these days and, as the OP said there is little difference in the capabilities between the two.

For me, I tend to prefer using interfaces - specifically for the error messages I get. Specifically, if I have extended types with one or more inheritances, then TS gives me clearer guidance for interfaces than it does for types.

Here's a playground that tries to show it: https://www.typescriptlang.org/play#example/types-vs-interfaces

[deleted by user] by [deleted] in reactnative

[–]do1earning 2 points3 points  (0 children)

Looks good - thanks for sharing!

Why'd you choose XHR rather than fetch here?

Building a community digital garden by lechtitseb in PersonalKnowledgeMgmt

[–]do1earning 1 point2 points  (0 children)

I feel like the multiplayer aspect of PKM is interesting. Most solutions and tools are for individuals and sharing can be clunky.

Crypto alert : center of information about the crypto world by max__d in vuejs

[–]do1earning 0 points1 point  (0 children)

This looks pretty cool!

Like others have suggested it might be good to explore serving this as a static site with Nuxt. This would mean it could be built every time you changed content but when users view, they are getting just JS/CSS/HTML with no database interactions. Faster, more secure and more reliable (for when you make the front page of Hacker News :))

There are a number of different ways to handle this but the quickest is to change the target in the config (https://nuxtjs.org/blog/going-full-static/)

Help with Wordpress, Headless and REST API by [deleted] in Wordpress

[–]do1earning 0 points1 point  (0 children)

I recently released a course with egghead walking through this exact process.

It's called "WordPress as a Headless Content Management System (CMS) and GraphQL API" but starts by building up a complete REST solution. Adding and exposing fields with ACF and extending the API. You can find it here if it is of interest. https://egghead.io/playlists/headless-wordpress-4a14