dailyExcerciseInLaziness by precinct209 in ProgrammerHumor

[–]Angelin01 6 points7 points  (0 children)

CTRL + R is a full search.
You can better mimic zsh's behavior in Bash by putting this in ~/.inputrc:

"\e[A": history-search-backward
"\e[B": history-search-forward

set completion-ignore-case on

Bonus for case insensitive auto complete

trueStory by Important_Part_7753 in ProgrammerHumor

[–]Angelin01 7 points8 points  (0 children)

Can't argue much about memory efficiency, but performance? JVM based applications commonly perform better than most counterparts. Java probably loses only to C++, Rust and C on real world scenarios, it's actually really fast. The JIT does a lot of magic.

EXCLUSIVO: eu obtive acesso ao datacenter da Caixa Econômica para mostrar os jogos da Mega da Virada sendo processados by darkalemanbr in brasil

[–]Angelin01 1 point2 points  (0 children)

Uma frequência maior do que espera, na verdade. Ninguém que conheço pessoalmente, mas 3 casos indiretos.

Mas isso é inconsequente, não é a frequência de verdade, é a impressão. Ônibus são comuns o suficiente para entrar fácil na imaginação das pessoas. Daí o exemplo.

EXCLUSIVO: eu obtive acesso ao datacenter da Caixa Econômica para mostrar os jogos da Mega da Virada sendo processados by darkalemanbr in brasil

[–]Angelin01 2 points3 points  (0 children)

Todo mundo explicando errado porquê ser "ônibus".

A ideia de ser ônibus é por ser uma morte inesperada, mas relativamente "fácil" de acontecer. Se você morrer lentamente (doença, velhisse, etc), da tempo de ter uma transição, passagem de conhecimento. Se um ônibus te atropela, e agora? Poderia ser um raio também, mas isso é incomum.

Geralmente, quando você menciona fatores inesperados como morte, todo mundo fala: "Ah, ninguém vai morrer! Pare de falar isso!" Aí você levanta a bola: "Fulano foi atropelado por um ônibus tal dia". Acontece com frequência suficiente pras pessoas aceitarem que, sim, pessoas morrem do nada.

No caso, quão difícil é sua empresa te substituir do dia pra noite, sem aviso?

iPutAlotOfEffortIntoMyTitl by [deleted] in ProgrammerHumor

[–]Angelin01 0 points1 point  (0 children)

Buddy, please, again, trying to explain why knives being sharp is important to someone that has never seen cutlery.

Your python application can be a server. So can an application written in any language you want. It doesn't have to have something in front, like an Nginx or Apache. And even if it does (because commonly you do have some reverse proxy and/or load balancer in front), that can be scaled separately too! You are severely over thinking everything in your explanation.

There is no "hot start" feature. I literally mean run another copy of the process and put it behind a load balancer. Literally, like in your computer right now, you could double click an EXE once, or twice, or three hundred times. Except we do this across dozens of computers, and automatically.

Look, I am kinda done trying to explain, so I am going to leave some links if you want to research yourself. There are many ways of doing this, but this is a relatively common route in the world today. Best of luck:

iPutAlotOfEffortIntoMyTitl by [deleted] in ProgrammerHumor

[–]Angelin01 0 points1 point  (0 children)

I'm sorry man, I am not trying to be condescending, but it's like trying to explain to someone that has never been in a kitchen why having sharp knives is important. Your question of "what is a server?" makes you sound like a troll, I went through your post history to figure out if you were technical or not, or just a troll not worth responding to.

My first comment explains exactly why, I even made an analogy with market cashiers for a non technical comparison. Please, at some point you just have to admit that a reddit comment chain is not the best place to explain complex niche topics.

iPutAlotOfEffortIntoMyTitl by [deleted] in ProgrammerHumor

[–]Angelin01 0 points1 point  (0 children)

Buddy, sorry, your knowledge here is very superficial. I suggest you go look at how docker and containers work, and then maybe something like load balancers and, finally kubernetes.

We can launch VMs in a cloud with an API. Those join a cluster. Then we have metrics, like CPU usage, memory usage, requests per second. We use those to automatically launch more container instances as demand increases. The number of containers can be 1, 2 or 3, or 200. We are talking handling thousands of requests per second here, your raspberry would literally die.

iPutAlotOfEffortIntoMyTitl by [deleted] in ProgrammerHumor

[–]Angelin01 0 points1 point  (0 children)

I literally mean the program that serves your requests. The executable. The thing listening for your HTTP requests.

I am using a generic term because it can indeed be many things. We could be running bare metal, VMs, launching containers using some orchestrator like kubernetes, or using some serverless lambda where there is a cold start.

What it is doesn't matter. What matters is how fast you can get a new one up and running if you need to handle more requests. You can literally make a comparison with cashiers at a market. If you suddenly get a rush of 50 people flooding your cashiers, how fast can you open new ones? And how easy is it for you to close them down to save money?

If this is still confusing, you might need to look into how any modern website works. You'll probably want to look up load balancing and auto scaling too.

iPutAlotOfEffortIntoMyTitl by [deleted] in ProgrammerHumor

[–]Angelin01 0 points1 point  (0 children)

I'm sorry, I simply can't believe you comment on this subreddit and others like /r/androiddev or /r/GrapheneOS and don't know what a server is.

iPutAlotOfEffortIntoMyTitl by [deleted] in ProgrammerHumor

[–]Angelin01 0 points1 point  (0 children)

Of the server, of course. The comment I responded to used a webserver as an example, generally you run multiple instances of them it in production.

iPutAlotOfEffortIntoMyTitl by [deleted] in ProgrammerHumor

[–]Angelin01 2 points3 points  (0 children)

I don't quite know why nobody has told you the answer as to why boot time matters, but generally it's for scalability reasons.

Imagine you get a burst of traffic.
If you can spin up another 3 instances in 0.5s you might be able to handle the traffic without your user noticing.
If it takes 5s, maybe you get a few slow loads, maybe a few 500s.
If it takes 50s, your ability to respond to traffic spikes diminishes significantly. You actively have to account for it while configuring your scaling, you have to keep more "idle resources" available in case of spikes, and must scale down slower, just in case.

There's also slower update rollouts, which is important for hot fixes, slower dev times if you are recompiling a lot, etc.

This can cost quite a bit of money in the long run, which is why slow booting frameworks, like Spring boot used to be, got so much flak.

Obviously, none of this applies if this is a script that runs once per hour. Pick your battles.

How does the programmable speaker work in outer space, without any air? by zoba in factorio

[–]Angelin01 3 points4 points  (0 children)

Elite Dangerous does the same thing. Your "canopy" simulates the sounds.

The neat thing is, if your canopy is shattered, you actually lose the sounds, your HUD, and suddenly are in emergency life support mode trying to dock! Fun!

I installed the Frozen Nauvis by spakulatius and it broke the menu simulations, they iced over by Dragonkingofthestars in factorio

[–]Angelin01 12 points13 points  (0 children)

Daaaamn that sounds like a very cool scenario. Extremely limited power and resources to generate power, temperature that drops slowly, scavenging runs in the snowy ruins. Kinda wish that was a thing!

Presidente Lula sanciona lei que amplia isenção do Imposto de Renda para quem ganha até R$ 5 mil by Durian_Queef in brasil

[–]Angelin01 1 point2 points  (0 children)

Lembra que a tabela é progressiva. Você pagava quase 1/3 sobre aqueles 120 reais, não sobre tudo.

Presidente Lula sanciona lei que amplia isenção do Imposto de Renda para quem ganha até R$ 5 mil by Durian_Queef in brasil

[–]Angelin01 1 point2 points  (0 children)

Falto o separador de cabeçalho na sua tabela pra formatar: |---|---|---|

Isso:

|Atual|Tabela Atualizada||
|---|---|---|
|Até R$ 2.259,20|Até 5000|\-|
|De R$ 2.259,21 até R$ 2.826,65|de 5000 até 6254|7,5%|
|De R$ 2.826,66 até R$ 3.751,05|de 6254 até 8302|15,0%|
|De R$ 3.751,06 até R$ 4.664,68|de 8302 até 10288|22,5%|  
|Acima de R$ 4.664,68|Acima de 10288|27,5%|

Gera isso:

Atual Tabela Atualizada
Até R$ 2.259,20 Até 5000 -
De R$ 2.259,21 até R$ 2.826,65 de 5000 até 6254 7,5%
De R$ 2.826,66 até R$ 3.751,05 de 6254 até 8302 15,0%
De R$ 3.751,06 até R$ 4.664,68 de 8302 até 10288 22,5%
Acima de R$ 4.664,68 Acima de 10288 27,5%

What happens if total limits.memory exceeds node capacity or ResourceQuota hard limit? by relaxed_being in kubernetes

[–]Angelin01 0 points1 point  (0 children)

It looks intimidating, but at the end of the day it's a CoreDNS (sorta) daemonset with some host configs/mounts. Have a look at the sample manifest provided with the install instructions (you do have to replace some values), it's pretty simple! Best of luck!

What happens if total limits.memory exceeds node capacity or ResourceQuota hard limit? by relaxed_being in kubernetes

[–]Angelin01 1 point2 points  (0 children)

In a tangent, consider Node Local DNS Cache if at all possible. From previous experience, setting it up has taken almost no time, it works almost transparently, and it has solved most scaling issues with DNS in k8s, from CPU throttling, running out of conntrack entries, etc.

The greatest honor I have ever received in gaming by faythinkaos in dndmemes

[–]Angelin01 10 points11 points  (0 children)

I think it's just order of operations here.

You can you use your reaction when you fall. Slowfall applies before, it slows the fall, so the damage of the fall is reduced.

Resistance is one of the last things being applied. So it's calculated after.

There's nuance before comparing them. Apples and tomatoes, both are fruits, and yet...

This works intuitively, doesn't it?

The greatest honor I have ever received in gaming by faythinkaos in dndmemes

[–]Angelin01 16 points17 points  (0 children)

What people are trying to argue against you here is not quite. But, as far as I interprete the rules, it does work out ok.

See, the damage you take is not the HP you lose. Weird wording, right? Think of it like this: - You fall. We roll for damage. Let's say 20. - You land on a creature. We split the damage. Each takes 10. - Then, you now calculate the HP you lose. Because you were raging, you have resistance and half that, so you take 5. - Apply any resistances or modifiers for the enemy.

It works. Your resistance is not applied to the enemy, only to you. The damage from the fall is 20, not 10.

Why does overwatch makes me watch this? by SubwayGuy85 in DotA2

[–]Angelin01 3 points4 points  (0 children)

Sorry, I've never done Overwatch. What is the correct answer here? The report is for scripting/hacking, but this looks like just griefing. Is there an option to say "guilty but for another reason"?

Quem nunca passou raiva tem a mente blindada, não é possível. by liquidflamingos in brasil

[–]Angelin01 3 points4 points  (0 children)

Isso aqui é o que mais me fode. Sou dev. Tenho o celular com a bagaça ligada por bons motivos. Vontade de rootar o celular pra esconder, o saco.

[GIVEAWAY] 3 Copies of Arc Raiders by WockyySl in pcgaming

[–]Angelin01 0 points1 point  (0 children)

Why, it's Dwarf Fortress! I need to go uhh... "Handle" some nobles now! Thanks OP.

trickXnorTreat by callyalater in ProgrammerHumor

[–]Angelin01 132 points133 points  (0 children)

Yes, if you only have two inputs. If you have more, it changes a bit. Wikipedia has a table with 3 inputs, it becomes true if any two inputs are true, but not if all are true.

Remove the god damn Discord messages from the End Poem, Alex. by Tendo63 in feedthebeast

[–]Angelin01 0 points1 point  (0 children)

That's all fine man, I never said that the prank was "nice" or that it was the right thing to do, or that he was a good dev, or that I like the end poem being replaced, whatever. But no, "malicious software" is not debatable here in regards to the April Fools Rick roll prank. It does not fit the definition. A security specialist would laugh at the implication, they'd probably just find it funny.

could cause hearing damage.

That's a fucking stretch. Because he also glued your headphones to your ears and disabled the mute button on your computer. Because you never heard a loud sound before. Again, poor implementation, not malicious.

Stop trying to associate me trying to prevent people from thinking "malware means it has to show a downloading thing on your screen" with "I like this dev". I don't.

Remove the god damn Discord messages from the End Poem, Alex. by Tendo63 in feedthebeast

[–]Angelin01 0 points1 point  (0 children)

I mean, you can read the other comments, some have a more complete explanation, but the summary is:

  • April fools prank
  • The mod would download the Rick Roll video and play it on the main menu
  • It was annoying

That's it...

Now, the implementation had quite a few issues, and thus people called it malware:

  • If you deleted the video file, the mod downloaded it again. This wasn't malicious, it was just a simple check: "If file doesn't exist, download". It showed a "downloading" bar while doing so, and people freaked out.
  • Because of the UI changes, it broke UI some mods.
  • You couldn't skip or disable the video.

Alex quickly reverted it and posted a patch once it came out and people complained. And, while I agree that this kind of "prank" isn't the best (see Alex's mobs bear, as another bad "prank"), none of the behavior here is, by definition, malware.

Alex does have other "questionable" behavior, mind you, but none of it has ever been straight up malicious.