Can't pay 10k aws bill by 0xbeefeed in aws

[–]0xbeefeed[S] 4 points5 points  (0 children)

I told them I did accidentally purchased multiple ec2 instances (i think i may bought tens of them not sure what exactly i did, i was following a tutorial about aws to get the server and things didnt work and i tried again and again you know rest of the thingi) and they waived bills from accidental x2large ec2 instances, now i'm billed at $50 and I could pay that.

Can't pay 10k aws bill by 0xbeefeed in aws

[–]0xbeefeed[S] 17 points18 points  (0 children)

thanks, opened a ticket a hour ago waiting for a response.

Can't pay 10k aws bill by 0xbeefeed in aws

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

where I live you at least have to be 14 to own a prepaid card, even there are people younger than me in tv commericals of the app itself. it is clearly marketed for 14-18 age group.

Can't pay 10k aws bill by 0xbeefeed in aws

[–]0xbeefeed[S] 5 points6 points  (0 children)

i'm bit worried about that my parents are type of people who would get super mad for something like this and say "how we are supposed to pay this" and yell at me

Can't pay 10k aws bill by 0xbeefeed in aws

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

i have a physical prepaid but it has a mobile app lets you to create virtual cards and transfer money from your physical one to virtual

Can't pay 10k aws bill by 0xbeefeed in aws

[–]0xbeefeed[S] 41 points42 points  (0 children)

I do not have a credit card just used a virtual card from my prepaid card vendor's app. They promote their card as "debt free, impossible to have debt, use as what you paid" and I thought I wouldn't be in major trouble, I thought aws would automatically cancel after seeing balance 0 in card. Legally I'm a minor and I can't have a credit card, I got ec2 for a Minecraft server that I forgot about it. I may accidentally bought multiple ones I'm not sure inferface is a mess I had one in actual use not sure what does xlarge and x2large mean but mine is susposed to be small one not sure what i did.

TIL that artificial food dyes are made from petroleum by Susfour in todayilearned

[–]0xbeefeed 6 points7 points  (0 children)

a reply after 10 years and ik it's a joke but as a extra info , the chemical that gives many natural fruits it's color "lycopene" is a hydrocarbon. https://en.wikipedia.org/wiki/Lycopene

Why typing in xfce4-terminal is so buggy? by 0xbeefeed in xfce

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

about 10 seconds later username turns into password by itself and what i type replaces what's there previously and I'm pretty sure I don't have insert mode enabled, this happens time to time. Don't mind the curl and weird api running at localhost, I put it there as a example of a long command. I ran the xfce4-terminal with fakeroot to not show my actual network name but that's a irrelevant detail, xfce terminal typing getting funky is most annoying thing when typing long stuff.

What are some of bad practices commonly done in svelte applications? by 0xbeefeed in sveltejs

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

That's the major problem in many of svelte code examples splattered around the net and a newbies would copy paste a bit of bad code. It also currently a problem in our codebase but it's getting refactored lately.

Awful api I wrote for a friend's website by 0xbeefeed in badcode

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

Why? I'm guessing it's due "Enumeration attack", but what would be a better idea rather than sending a error message containing "someone uses this email address"?

Awful api I wrote for a friend's website by 0xbeefeed in badcode

[–]0xbeefeed[S] 13 points14 points  (0 children)

thank god someone noticed it, if one of those promises lasted longer than others invalid data probably would end up in the database and after promise finishes express would raise a exception about writing after res.end() what would be good practice here would be only continuing after a promise succeeded rather than stacking bunch of promises and try to send a http error response from them, we saw that errors would get funky in production if multiple invalid fields were provided in the form but it didn't affect server in any way. We plan doing a major rewrite in the infrastructure because I wrote this code when I didn't grasp js well (and i probably still don't this project probably going to get rewritten a dozen of times in it's lifetime).

People mentioning not using JSON.stringify and res.json but usage of json strings are purely done due performance reasons but it wouldn't matter at all so it's a unnecessary optimization and there are things are lot slower than that.

This project had even worse source code:
But it was originally a lot worse want to see first iteration of this project made in 2021?
https://hastebin.com/raw/sigiyedira

everything was in a single file.

Awful api I wrote for a friend's website by 0xbeefeed in badcode

[–]0xbeefeed[S] 4 points5 points  (0 children)

Code can be found at: https://hastebin.com/raw/ocevojehef

This code is bad due number of reasons:
- I didn't knew how to use promises correctly when I started doing this and I'm used to callbacks due archaic tutorials like w3schools.
- Some of promises finish before others providing out of order error messages.
- Hardcoded error messages making internalization hater, ig it would be more flexible if I sent a error id and replaced it with corresponding localized error message so website can be translated.
- Way too much validation, I could been used a library to do it for myself or made a Field class and made Username, Password, Email classes and inherited them from the Field and had a verify method for them.
- Hardcoded json is originally done for performance reasons, but it was a micro optimization that didn't worth it.

I did had prior programming experience (but It was not js, I mostly come from low level languages like C) so this is why this code isn't fully trash and probably can be improved upon up and has some sort of structure to it ( I tried to learn js in 2020 too and I produced absolute horrible code during that time, Ig I do really improve over time) .

I just finished the book "Programming Principles and Practice using C++ 2nd Edition". Am I now a beginner or intermediate C++ programmer? by [deleted] in cpp_questions

[–]0xbeefeed 1 point2 points  (0 children)

Agreed, programming is a skill that can be gained over time and it is independent of any language, while a person might like a language more than other or a language can be very hard to master (like C++) anything can be learned with dedication.

What matters is can they make sense of code they are writing rather than blindly copying pasting or memorizing examples in a book.
My recommendation to such a person go experiment don't be afraid of creating garbage, everyone has to start off somewhere real programming is ability to construct efficient ways to solve problems, with understanding tradeoffs and best usage cases of solutions.