[-] lemmy_in@lemm.ee 5 points 1 week ago

Pick a popular online service with a public API and write some scripts that integrate with them. Learn by doing.

[-] lemmy_in@lemm.ee 49 points 2 weeks ago

Everything in moderation, including moderation

[-] lemmy_in@lemm.ee 10 points 2 weeks ago

In my (non-expert) opinion, there are a few reasons

  1. NPM is more popular than those other services by an order of magnitude, especially among new developer and startups.
  2. NPM allows for code to be executed while you install the package which is different from maven or nuget and allows for easy exploitation paths
[-] lemmy_in@lemm.ee 82 points 3 weeks ago

This works until you scale the team beyond 1 person and someone else needs to decipher the 30 line awk | sed | xargs monstrosity you created. Give me a real programming language any day.

[-] lemmy_in@lemm.ee 6 points 1 month ago

Mods of communities can already see votes in communities they moderate. Admins of instances can already see votes on all content.

[-] lemmy_in@lemm.ee 10 points 1 month ago

There are a few ways that the court can get this money. Disclaimer I am not an expert in bankruptcy law.

The most obvious one is what you said. The court can order the company's assets to be liquidated and then the proceeds of the sales would be distributed proportionally among the creditors.

Next they can go after the perpetrators like Sam Bankman-Fried and his crew. If they have any personal assets that they acquired as a result of their criminal activity at FTX, the court may be able to take some of that money to pay creditors.

Lastly is "clawbacks". Let's say you invested $1,000,000 in FTX and you were one of the lucky ones and happened to withdraw $10,000,000 in proceeds during the height of the scam. The court could claw back up to $9,000,000 from you since all of those proceeds were the result of a scam, even if you had no idea that FTX was shady. This is typically how the courts recover money from ponzi schemes like Bernie Madhoff

[-] lemmy_in@lemm.ee 12 points 1 month ago

The number is real you guys

[-] lemmy_in@lemm.ee 1 points 1 month ago

For small apps, generating it in the backend, trying to insert it, and then catching the exception should be totally fine. The odds of collision are quite small.

[-] lemmy_in@lemm.ee 6 points 1 month ago

I personally feel UUIDs are overused unless you happen to be running truly distributed systems that are all independently generating IDs.

In this case where the ID is also going to be in the URL, you've just added 32 characters to the URL that don't need to be there. Since OP is apparently concerned with the look and feel of the URLs, I thought that UUIDs wouldn't be the best option.

[-] lemmy_in@lemm.ee 6 points 1 month ago

You could also just use a random non-numeric primary key. For example you could generate a string of 8 random characters + numbers. That would give you well over 2 billion possible IDs.

[-] lemmy_in@lemm.ee 10 points 2 months ago

So long as you have robust data sanitization on the backend to prevent XSS and HTML injection attacks...

If you can get away with just using Markdown, you should definitely use that instead of full HTML.

[-] lemmy_in@lemm.ee 5 points 4 months ago

That mismatch between DMARC verification domain and the domain of the "from" header is called DMARC Alignment. Any modern spam filter is going to mark unaligned messages as spam. Especially if one of the domains is completely non-routable like .onion.

And even if you sent the email and it got through with your .onion address, no one would be able to reply to you because the replying mail server can't even look up the MX record for your .onion domain.

view more: next ›

lemmy_in

joined 1 year ago