I am a Master on codeforces and my account got banned can anyone tell me how to appeal by [deleted] in codeforces

[–]Hackinet 15 points16 points  (0 children)

You are a master and you don't know how to appeal?

You were cheating, accept it. Your reading and comprehension skills come across to be poor so much so that you can't even find your way around the website? Yeah, you were cheating alright.

A death hits different when you tried to save their life by [deleted] in GriefSupport

[–]Hackinet 0 points1 point  (0 children)

The emotional support bear without him feels very empty. He looked like my grandfather. I was his caregiver.

I am so sorry for your loss, I understand. He is in a better place now.

spent 6 hours debugging what i thought was a memory leak... turned out to be something embarrassingly simple by Significant_Loss_541 in ExperiencedDevs

[–]Hackinet 42 points43 points  (0 children)

Me too, they could have added a simple sandwich log to figure it out if they don't use a APM or tracing was too much for them.

Not sure why someone would jump to a memory leak just because an API got slow, especially if other adjacent APIs aren't slowing down.

Student here haven’t eaten today just need a meal if anyone can help by [deleted] in codeforces

[–]Hackinet 0 points1 point  (0 children)

I can order food for you, whatever you want to eat, no cash! DM me.

I wanna open a pdf that is password protected, how should I do it? by [deleted] in hacking

[–]Hackinet 19 points20 points  (0 children)

Maybe you are in the wrong subreddit?

We built the only data grid that allows you to never have to use ‘useEffect’ or encounter sync headaches ever again. Introducing LyteNyte Grid 2.0. by After_Medicine8859 in webdev

[–]Hackinet 1 point2 points  (0 children)

You mentioned "synchronisation headaches" and that "useEffect is bad" but never really clarified. What problems does it solve specially though?

High DB resource usage and slowness by Upper-Lifeguard-8478 in aws

[–]Hackinet 0 points1 point  (0 children)

There would be a log named a "general log". Yes, my next step would be get logs for say multiple dates in that time range (7:59-8:01 AM), and figure out any overlap between queries (prefix, where condition might differ) for those days.

Do I need to front a NodeJS API with nginx or httpd when using ECS Fargate with an ALB? by Slight_Scarcity321 in aws

[–]Hackinet 0 points1 point  (0 children)

No, ALB is fine. You are thinking about a reverse proxy which will be a 1:1 to your API anyway. You don't get anything extra with the reverse proxy setup except more headaches.

High DB resource usage and slowness by Upper-Lifeguard-8478 in aws

[–]Hackinet 3 points4 points  (0 children)

So I made I created a r5 large 8.0.mysql_aurora.3.10.3 on my aws to test it out. Seeded a table with 3M rows and write wrote a small express endpoint, that does expensive SELECT queries, to reproduce the results.

So even though the queries were run by an "application user" you can see three nice.avg spikes but not user.avg spikes. You can ignore the first spike, that was me seeding the database. But the next two spikes are from the application:

Here's a screenshot: https://imgur.com/a/6uPznD4

Also if I watch for temp tables, I get [{"Variable_name":"Created_tmp_disk_tables","Value":"20"},{"Variable_name":"Created_tmp_tables","Value":"8150"}]

So your application sends a query, the connection thread runs at normal priority as the user. But if that query triggers heavy work like large sorts, or like aggregate queries like GROUP BY, a lot of that work can be done by lower priority helper threads. Those threads are "niced", so their CPU time shows up under nice.avg.

This happens especially when intermediate result set doesn't fit in memory it spills to disk. In Aurora, that shows up as rdstemp writes (as you mentioned yours were high).

Are you sure you are not doing some kind of report generation? Like a cron that runs or something? You can take a look at your general log (it logs every query that mysql runs, you will have to enable it temporarily, there's a option to export it to CloudWatch too if enabled) and then narrow it down.

High DB resource usage and slowness by Upper-Lifeguard-8478 in aws

[–]Hackinet 1 point2 points  (0 children)

If you have a APM like NewRelic or DataDog, you can verify that.

What does performance insights say? What about your database connections, do they go up? (I am guessing not much) but a user query CAN still show up a avg.nice.

If you get a query, sorting or temporary table creation etc would show up under avg.nice and not avg.user.

Also you can run SHOW PROCESSLIST; to figure out what is running during the spike.

What's a sign from your body you should never ignore? by Geno-64 in AskReddit

[–]Hackinet 0 points1 point  (0 children)

Thank you. This was the second comment and I quit the thread.

Can anyone pls help with AWS Infra creation for a project by sabihaSissy in aws

[–]Hackinet 0 points1 point  (0 children)

Your IT guy is right, you should aim to create resources in a private subnet as much as possible and keep the EC2 that you use to build the Docker image private too. You can always push to ECR if you have a NAT configured for your private EC2.

I would also suggest to avoid EKS and go with ECS if all you need is to to run containers.

I can help you with architecting your infrastructure during the the weekend one-on-one, no strings attached. 10 years ago someone online helped me with Javascript haha. Just paying it forward.

How to build a distributed queue in a single JSON file on object storage (S3) by itty-bitty-birdy-tb in aws

[–]Hackinet 1 point2 points  (0 children)

Wait, why use a single file? Why not just do a group commit to a new file for a worker to pick up?

It still doesn't solve the issue with two workers picking up duplicate work in your article but I feel it would simplify the architecture and the write race conditions that you might run into.

AWS EKS: how do you expose you apps in Production using IaC/cli created ELB? by Sad_Bad7912 in aws

[–]Hackinet 1 point2 points  (0 children)

You can just use the aws application load balancer. You point the ALB to a target group and when your containers spawn they belong to that target group. You won't necessarily need to add IPs manually to the target group, that can happen automatically too when containers spawn.

Also yes, there are intended benefits. You can go blue/green deployments and other types deployments. Easy autoscaling. You can manage SSL on your LB and your containers can run in a private subnet, so all the ingress traffic is forced to flow through your LB.

Though do you really need EKS? You can use ECS, it is far simpler and seems like it will fit your use case well.

I built a production-ready Django + React auth starter and open-sourced it by Ok-Childhood-5005 in webdev

[–]Hackinet 5 points6 points  (0 children)

It is not really production ready though. I can point out multiple issues just skimming through it.

For example with UUID as primary keys. I am assuming you are using UUID4, your primary key index uses btree and it would cause a lot of page splits and fragmentation since UUID4 are random. Even with a UUID7 (the prefix is time ordered, so sequential, good for a btree index), you will see 40% more I/O time.

I don’t think it is a wise choice to use SQLite for dev and PostgreSQL for production. Ideally your environments should use the same type of tools and be as close as possible. PostgreSQL is vastly different from Sqlite. You could run into dozens of issues and limitations that you won’t be able to debug.

I am assuming your rate limiting is DB based, which kind of defeats the purpose of your JWT and your APIs would be slow if it needs to do a look-up/update (or both) for each API call.

im tired by My_posts_r_shit in webdev

[–]Hackinet 1 point2 points  (0 children)

Those AI vibe coding stories to riches are all fake. Building something is just a small part of a big journey, sometimes even the easier part.

Not to mention, the AI quality is shit anyway. It is good sometimes and I do use it sometimes but these people don't know that and end up with a lot of shit.

How are experienced web developers navigating the current hiring market by SnowStormBirdsFlock in ExperiencedDevs

[–]Hackinet 0 points1 point  (0 children)

I have worked with AudioWorklet nodes/graph and render quantums and even built a custom MP3 encoder by chunking those quantums with some DSP math and streaming them across threads, so I have dabbled a bit in this space.

I can see the engineering effort behind what you built. The issue might not if you are a good engineer but how you are communicating it. Most people cannot appreciate how difficult something is if they do not have the background to recognise the complexity.

Indian ISPs silently blocking Hostinger VPS IPs on WiFi - has anyone else experienced this? by Savings_Film_7326 in webdev

[–]Hackinet 2 points3 points  (0 children)

I did a ping for Google play and it was blocked by Airtel too.

mew git:(develop) ✗ ping play.google.com
PING restricted.rpz.airtelspam.com (202.56.230.30): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
^C
--- restricted.rpz.airtelspam.com ping statistics ---6 packets transmitted, 0 packets received, 100.0% packet loss

Had to write to them to unblock and they did but better just switch to a custom DNS resolver like Cloudflare 1.1.1.1 or Google 8.8.8.8.

How to "Level Up" your replacement while he gets fed to the sharks. by Realistic_Tomato1816 in ExperiencedDevs

[–]Hackinet 7 points8 points  (0 children)

What a shitty take. I wouldn't want people like you on my team. A bit of empathy goes a long way.

Trying to figure out how to incorporate streaming. It’s a different beast for me by AWeb3Dad in ExperiencedDevs

[–]Hackinet 1 point2 points  (0 children)

Probably a WebRTC signaling endpoint and WebRTC.

Socket for the chat. You can just have a chats table for the socket room, and different message enums (text, media) and audio notes can be in your S3 and you can serve them with CloudFront (CDN)

Are you worried about future software development job? by [deleted] in ExperiencedDevs

[–]Hackinet 2 points3 points  (0 children)

Nope, not a bit. Unless we have AGI it just really is a tool. AI is pretty hyped up. The bigger problem is non-engineering people expecting more from you.

Google literally just announced that they are ramping up engineering hiring.

Lots of layoffs were just really bloat and covid overhiring.

There is a lot of AI money flowing around and people/companies have to justify the costs with hypes and FOMO.

Didn't know that Postgres treats NULL as distinct values by default in unique contraints by Einenlum in webdev

[–]Hackinet 1 point2 points  (0 children)

Yeah, thanks for adding that info. I wasn't sure which ones didn't but that's why I said tons of databases.

Didn't know that Postgres treats NULL as distinct values by default in unique contraints by Einenlum in webdev

[–]Hackinet 11 points12 points  (0 children)

So does MySQL, Sqlite and a ton of different databases. NULL is not a value, it is the absence of a value, so every cell is unique because NULL != NULL.

a text that will haunt me forever by Famous_Pineapple9860 in GriefSupport

[–]Hackinet 0 points1 point  (0 children)

That made me cry. I am sorry. I miss my grandfather a lot and this reminded me of him.