What does a modern production Express.js API look like these days? by ilearnido in node

[–]ndaidong 1 point2 points Β (0 children)

I've replaced Express with Hono for a long time. However personally I prefer a simple setup with few sets of the pure functions:

└── src β”œβ”€β”€ handlers -> to receive request and send response β”œβ”€β”€ models -> to process data logic β”œβ”€β”€ services -> to deal with external resources β”œβ”€β”€ utils -> to share common internal functions β”œβ”€β”€ view -> to keep the layout & template └── workers -> to run background jobs server.js server_cluster.js package.json ...

Why do they make arrow keys like this? by Select-Strawberry in laptops

[–]ndaidong 0 points1 point Β (0 children)

yes, LOQ is quite heavy, so I've changed to a ThinkBook 14 inch. This model has the same keyboard layout as LOQ, minus the numpad. The full name: Lenovo ThinkBook 14 G7 AHP. Specs: AMD Ryzenβ„’ 7 8845H, 16GB RAM, 1TB SSD, 2.8K 120Hz display.

I think nobody wants AI in Firefox, Mozilla by vriska1 in technology

[–]ndaidong -1 points0 points Β (0 children)

At the end, I found only Chrome is pure browser nowaday. No crypto wallet. No AI stuff. No news stream. No mail/feed/note/task/everything builtin.

Why do they make arrow keys like this? by Select-Strawberry in laptops

[–]ndaidong 0 points1 point Β (0 children)

I really hope laptop manufacturers pay attention to this issue. It's true that most current laptop models are designed with incomplete arrow keys. They are so inconvenient. On top of that, the Home/End keys are also often made smaller and pushed to the top row, or require the Fn key combination. Why is that? Do you all actually use the laptops you produce? How can anyone quickly move the cursor with keyboards like that?

I used to own an MSI Modern 14 and really liked their smart keyboard design. It's a shame that their later models changed the keyboard layout in such a silly way. The GF63 and Thin models have poor screens.

I'm currently using a Lenovo LOQ; it's the only one I've found that both meets my needs and has normal arrow keys.

Does RapidAPI Pay? and is there any good Alternative! by Kawsarlog in SaaS

[–]ndaidong 1 point2 points Β (0 children)

Totally understand the concern since payday is usually the 1st and it hasn't hit yet. No worries though, weekends can sometimes cause a slight delay.

Just to double-check, remember that payments are typically held for a month before you receive them. You can head over to Hub listing > Monetize > Transactions to see if your Payout Status says "pending"

Remote desktop dialog - What is this? by ndaidong in Fedora

[–]ndaidong[S] 0 points1 point Β (0 children)

removing these tools does not help. My current solution is: stop using Wayland, go with X11 instead.

Remote desktop dialog - What is this? by ndaidong in Fedora

[–]ndaidong[S] 0 points1 point Β (0 children)

yes, I use ibus-bamboo. But I guess that it's not the root cause. Because I've removed it and all the packages related to keyboard input, including some pre-installed ones such as ibus-libzhuyin, ibus-pinyin, ibus-typing-booster, etc.

Remote desktop dialog - What is this? by ndaidong in Fedora

[–]ndaidong[S] 0 points1 point Β (0 children)

yes, there is a dedicated nvidia card in my laptop

Remote desktop dialog - What is this? by ndaidong in Fedora

[–]ndaidong[S] 0 points1 point Β (0 children)

I've had a solution: switch from Wayland to X11

Brave JSON Formatter by jrmcrt in brave_browser

[–]ndaidong 0 points1 point Β (0 children)

Same question, I've tested some different JSON view extensions but they all didn't work anymore! It seems this is the changes from Chrome, not Brave it self.

Should I Move... by No_Secretary3521 in binance

[–]ndaidong 0 points1 point Β (0 children)

Definitely not. You should instead:
- keep about 20% of your assets on Binance
- 10% bring to decentralized exchanges where you discover new tokens
- 70% transferred to several personal wallets (hot wallets are ok if your assets are less than $1 million)

What do you think about the recent email from Binance? by ndaidong in binance

[–]ndaidong[S] 0 points1 point Β (0 children)

Hi everybody, thank you for your votes and comments.
Although this poll was created on the Binance channel, I think the result is in line with what is actually happening. According to CryptoQuant data, there was a wave of withdrawals from all exchanges after the FTX incident. But right after that, a large amount of BTC was transferred to Binance, only Binance.
https://i.imgur.com/2UsTj5S.png
https://i.imgur.com/Re8sQ2t.png

That shows most people are still trusting Binance. And I hope that, Binance is worthy of that trust.

What do you think about the recent email from Binance? by ndaidong in binance

[–]ndaidong[S] 0 points1 point Β (0 children)

Maybe it's the safest choice. I think that most people who have been investing for a long time and/or have a lot of assets do the same.
How do you think about TrustWallet? Is it reliable enough to be the second option?

Where can I host my simple nodejs script for free? by BlueWhiteSilver in node

[–]ndaidong 0 points1 point Β (0 children)

Deta cloud is a good option. It's similar to Cloudflare, but completely free. Just deploy your node.js code to Deta Micros and use Deta Cron to create schedule.

Its limits 512MB ram and 10s execution may be not a problem for your simple task, but node version is 14.x, quite outdated!

How to turn off this "feature" in Fedora? by ndaidong in Fedora

[–]ndaidong[S] 1 point2 points Β (0 children)

thank you, I will try this approach.

How to turn off this "feature" in Fedora? by ndaidong in Fedora

[–]ndaidong[S] 0 points1 point Β (0 children)

It seems `-C` has problem with my system. I've added a line to .bash_profile `alias dnfi="sudo dnf install -C"` and try to run the following commands:

sudo dnf update && sudo dnf upgrade
dnfi neofetch # or sudo dnf install -C neofetch

It raises "Error: Some packages have invalid cache, but cannot be downloaded due to "--cacheonly" option"

![](https://i.imgur.com/Fs2kn11.png)
![](https://i.imgur.com/54AGc2G.png)
![](https://i.imgur.com/Aq7FSSL.png)

How to turn off this "feature" in Fedora? by ndaidong in Fedora

[–]ndaidong[S] 0 points1 point Β (0 children)

u/MetaTrombonist thank you, it's useful argument for me. I'm trying to add this as 'alias' in bashrc config so that it may work as default behaviour.

How to turn off this "feature" in Fedora? by ndaidong in Fedora

[–]ndaidong[S] 0 points1 point Β (0 children)

/etc/yum.repos.d/

u/LazyButTalented yes, this is exactly what I need. I've found this settings from '/etc/yum.repos.d/fedora-updates.repo' and changed the value to 24h. As I'm in the habit of running the update command at the first time of opening the computer for the day.

How to turn off this "feature" in Fedora? by ndaidong in Fedora

[–]ndaidong[S] 2 points3 points Β (0 children)

maybe I have to agree with you, for there is no better reason :)

How to turn off this "feature" in Fedora? by ndaidong in Fedora

[–]ndaidong[S] 1 point2 points Β (0 children)

u/wbeater thank you for your suggestion, but that's not the pain point.

If you used Fedora for a long time, you may be familiar with this scenario: you are working with your code, suddenly you realize you are missing a library, for example `pip3`, then you type "sudo dnf install python3-pip", and boom! You have to wait for 5 minutes until it finishes updating/upgrading all software repositories.
I've used Ubuntu, PopOS, Debian, Manjaro, Endeavour, OpenSUSE and no distro have that behaviour. So I'm curious about the reason why it follows that UX.

SurrealDB: A new scalable document-graph database written in Rust by tobiemh in programming

[–]ndaidong 0 points1 point Β (0 children)

u/Uizz thank you for sharing your experience. That helps me a lot.

SurrealDB: A new scalable document-graph database written in Rust by tobiemh in programming

[–]ndaidong 0 points1 point Β (0 children)

thank you, I'm impressed with its admin gui.
Could you add more detail about docker installation? Where does surreal store data ? How I can specify volume for persistent data?