Nibodhika
@Nibodhika@lemmy.world
- Comment on 6 days ago:
I can, I have been touch typing in Colemak for almost a decade. I could type without looking at the keyboard on qwerty before, but it wasn’t touch typing.
- Comment on With everything becoming convience orientated , how hard would it be to be a hacker nowadays versus back in the day? Like what to read, how to help people, and other semi free things? 6 days ago:
Even though programming is also known as hacking, I’m going to assume you’re using hacker to mean red teaming in general, i.e. offensive cyber security, as that’s what most people have in mind when they think of “hackers”.
We’re about to enter a golden age for that profession, the reason is LLMs, AI, vibe-coding, etc. See, a long time ago things were very insecure, no one was worried about security as it was all just so new, that was the era when you could sniff on network traffic very easily, crack your neighbor password in a few minutes or login to most things using admin/admin. Over time people started to realize that security mattered, that there were enough malicious people out there that you had to at least make some effort to secure things. This brought us to today, where things are fairly secure, your router has a preconfigured long random password and uses at least WPA for security, most companies no longer store passwords in their databases so it diminishes the risk of leaks, etc, etc. A lot of thought is put into security by serious companies, but there were some cracks starting to show because small devs wouldn’t take security as seriously, be it for lack of resources or care, so while large stuff would be safe, smaller apps and sites are still very vulnerable, and people being people they use the same password for both and don’t enable 2fa, so once you grab credentials somewhere you can try the in other places.
What changed now? Well, recently people started to vibe-code, i.e. give prompts to an LLM to generate some code. The problem with that is that in the database of things an LLM is trained in it might have lots of bad examples, be it because the code was insecure, or because it was exactly an example of insecure code. Asking the LLM to make it secure is not going to work, as it lacks the comprehension to understand what security is. It’s possible to make things better in an iterative process where you feed the output code to itself and ask it to check for security vulnerabilities, but it might introduce new ones while fixing the existing ones, because the majority of examples online are incomplete as they’re meant to be small examples of small parts of a system to showcase how to do that in a secure manner (but they leave other parts insecure as that’s not the purpose of the example). For example, a login example code might use a simple text comparison for the password field, because it’s trying to show you the structure of the API, not the content, and assumes you will know now to do that, but an LLM doesn’t know that.
And with many people vibe-coding apps and sites it’ll become more and more easy to find those serious security holes in the wild.
And how to learn it? Well, the short version is doing. You don’t need to buy expensive books, or anything of the sort, just start reading online, and poke around stuff. I used to play around with www.hackthebox.com and found that very interesting way to learn, however you might need to read on some stuff first before you’re capable of logging in there (although I just gave it a quick look and I think they removed the most interesting part about it which was you had to hack the website to create an account).
- Comment on Are modern electronic devices (i.e. cell phones) still susceptible to damage from magnets? 1 week ago:
You’re probably fine.
The reason you didn’t wanted magnets near technology before is because we relied on magnetic fields for stuff, so magnets distorted those uses. Nowadays we usually don’t have any magnetic parts on a phone, so unless you have a super strong magnet extremely close to the electronics you should be fine.
Specifically CRT monitors were tiny particle accelerators that shot electrons to a coat of phosphorescent material, they used magnets to redirect the electrons to hit the correct pixels at the right time. So putting a magnet nearby would pull the beam in a different direction distorting the image and shifting it’s colors (because the electrons were now hitting different color pixels). It was not irreversible, usually removing the magnet is all you had to do, but sometimes you might have magnetized something and the beam would remain crooked for a while.
The other thing that would be affected by magnets were hard disks, your PC might still have one so you might not want to put magnets near it, but our phone doesn’t. HDs stored information using magnetic fields into a disk, similar to a DVD except using a tiny needle that would magnetize the disk in one direction to write a 1 and on the opposite to write a 0. Taking a magnet near that would essentially erase all of the data in that disk. Modern storage use very different methods for storing data that don’t depend on magnetism, so you’re fine.
- Comment on Why do we see Oil as always being here for humans? Isn't drilling like taking water out of a swimming pool? Sooner or later your going to run out of water. 1 week ago:
Almost, there’s just 2 corrections:
eventually the price will be higher than it is for other energy sources despite there being plenty of hard-to-extract oil still left in the ground.
When that happens the oil companies will lobby to get special treatment and be subsidized because they’re “too big to fail”, and everyone depends on oil.
The second correction is that that has already happened: en.wikipedia.org/wiki/Fossil_fuel_subsidies
- Comment on Where has the "www." gone? 1 week ago:
This is wrong, it’s not there anymore, it used to be, but now lots of pages don’t even redirect it, they just simply don’t work.
- Comment on Why are so many new programming languages being developed? 1 week ago:
Interesting, had never considered that, it does make sense. Although that created the absolute clusterfuck that is JS where
[ ] + [ ]is“”and{ } + { }isNaN. Thanks for remind me of www.destroyallsoftware.com/talks/wat hadn’t watched that in a while. - Comment on Why are so many new programming languages being developed? 1 week ago:
I don’t think there are more languages being created now than before. There are tons of languages that have been created over the years, but you get the survivors bias effect where the ones that are actually useful in some context start being used in that context, and the ones that are less useful stop being used.
When you were learning python was already established, but I remember having long discussions trying to convince people to use it instead of Java because it was a much higher level with much better in many aspects at some cost performance, and if you’re not willing to pay that cost you should revert to C++ which is much better than Java anyways.
And that’s sort of what’s happening here. C++ is good for things that need to be fast, but it requires careful consideration to avoid several issues, if you don’t need the speed, python gives you a much better experience in several aspects. For other specific things there are specific languages that fit better, if you’re developing for web JS is already in most browsers so that’s an easy choice, and if you want to make a game maybe you learn C# to use in Unity. But for general stuff C++ and Python have been the de facto standards as they cover most use cases very comfortably, so there hasn’t been any real competition for them.
Enter Rust, Go, Zig, etc. Even if something is a standard it doesn’t mean it’s the best thing, Assembly, Cobol, Fortran, C have all been standards, but C++ can do 99% of what those other languages did and makes things easier, so slowly it became the default language. Of those “new” languages the only one I know enough is Rust, so let’s talk about what Rust brings to the table that’s not available on C++ or python, and why people are so excited for it.
Rust is fast, we’re talking C level fast, this means that Rust beats almost every other language (including C++). Rust is safe, it’s purposefully designed not to allow you to miss use it accidentally, this includes memory safety which is the most talked about, but it’s a whole thing in Rust, with enums you need to match all cases, result types that includes error responses, and optional objects that force you to acknowledge the None. Rust has a great package support, better than python because it’s standardized. Besides all that Rust is able to be used almost everywhere, whereas C/C++ does work in many places, but libraries for it don’t.
So, why new languages? Because there are things to improve.
- Comment on What is the hate against Pit Bulls? Everyone I've met are super friendly like my BC. Or are they the new Doberman for this cycle? 1 week ago:
I have at no point compared black people to dogs, or even mentioned anything related to race beyond a comparison of statistical facts to showcase how ridiculous the argument is. You’re creating a Straw man to attack and deflecting my question, so we’ll keep going in circles forever, because answering a straight yes or no would compromise you.
Read everything that I posted so far and you will realize the entire time what I’m saying is “a small subgroup causing the most fatalities, therefore subgroup aggressive” is a bad argument. That is the whole of what I’m saying, and you haven’t replied whether you think that is a good or a bad argument. The reason why you haven’t done so is simple:
-
If you say it’s a bad argument you’re agreeing with me, therefore no reply is needed.
-
If you say it’s a good argument then you’re agreeing with any racist asshole who uses the same argument applied to people, and you should take a long hard look at yourself to see whether that’s the kind of peraon you want to be. And honestly, I don’t want to keep talking to anyone who thinks like this as they have been so brainwashed they won’t get convinced by a random person online.
In reality I’m fairly confident you want the argument to apply to dogs but not to people, and that’s just not how logic works. Facts are facts, you can’t disagree with them, the conclusion from those facts is logic, and that can be flawed (as is for the case of the proof of aggressive behavior). So when confronted with the fact that you’re defending a logic argument that can be made about people, instead of thinking “huh, I guess it’s a bad argument” you go “I’m not racist, you’re racist”, that is called deflection. So you attack a Straw man argument that I’m comparing people to dogs so that you don’t have to admit that your prejudice against pitbulls made you agree with an undefendable racist argument. Still the conclusion is the same, there’s no reason to reply to someone who’s being fallacious at best and making bad faith arguments at worst. If you honestly expect any answer from me your reply should clearly state whether you consider the “X is a small subgroup yet causes the majority of fatalities, therefore X is dangerous” a good argument.
-
- Comment on What is the hate against Pit Bulls? Everyone I've met are super friendly like my BC. Or are they the new Doberman for this cycle? 1 week ago:
At no point in my reply did I mention race, I said the argument of “X is a minority, yet causes the majority of fatalities, therefore X is dangerous” is a bad argument. That is the whole of my point.
Two possibilities exist: Either you think it’s a good argument argument, or you don’t.
Which is it? Do you think the argument “X is a minority yet causes the majority of fatalities, therefore X is dangerous” is a good argument?
- Comment on What is negative voltage? 2 weeks ago:
Water analogy still applies for that. If the pipes are already full of water if you inject water on one end it almost immediately comes out of the other, even if the water is only being injected at a slow speed. It’s not immediate because the moment you inject water the water in the pipes first compress and that compression travel like a wave much faster than the water.
The moment the water analogy falls apart is when you depend on magnetism, because electrons moving cause a magnetic field around, but water moving doesn’t generate any field around it, so it can’t imitate an electromagnet or a transformer.
- Comment on What is the hate against Pit Bulls? Everyone I've met are super friendly like my BC. Or are they the new Doberman for this cycle? 2 weeks ago:
There might be, but I’ve only ever heard “X is a minority yet causes the majority of fatalities” used for two Xs, it’s bad logic in both cases, it would be bad logic in any other case too, feel free to find me another example of that logic that people instinctively understand it’s wrong and I’ll use that next time.
- Comment on What is negative voltage? 2 weeks ago:
Uh, interesting, I had never heard of that before, I’ll definitely give it a read some time.
I find the water analogy works well even with electronic concepts like diodes (one way valves), capacitors (something like a shishi-odoshi), etc. The only place it fails is when magnetism is involved, like transformers or electromagnets.
- Comment on Why is gun violence lower in Switzerland than in the US? 2 weeks ago:
You’re correct, in one my edits before submitting I must have erased the 100 there and forgot to move the decimal place, thanks for pointing it out. The rest of the math was done considering the correct number, i.e. 1.2 weapon per person, it was just a wording mistake.
- Comment on What is negative voltage? 2 weeks ago:
Others have already answered, but one thing I think helps a lot in understanding electricity is to think of it as water. Water running through a hose behaves exactly the same as electricity running through a wire.
The amount of water running through the hose is similar to the amount of electrons running through the wire. We call this current, and measure it in Amperes. Whenever you read amperes think about the flow of material through the medium. Can this value be negative? Sure, it means the current is flowing in the opposite direction.
If one end of the hose is higher than the other the water will flow from the taller part to the lowest one. Measuring how tall one part of the system is compared to another tells you a what potential difference there is there. We call this Voltage and measure it in Volts. Whenever you read volts think about the potential of movement, if there is a 5 Volt difference between two points in your circuit, connecting a wire between those points will produce a flow, just like how if one reservoir is higher than another connecting a hose between them will move water around. Can this value be negative? Sure, it means the other side has more potential energy.
If the inside of the hose has a rougher surface water will have more difficulty flowing through there than if it’s smooth. We call this resistance and measure it in Ohms. Whenever you read ohms think about how difficult it is for the current to flow through. Conversely Mhos (OHM spelled backwards) is how easily current flows through the material. Can either of these values be negative? Not usually, but things can behave as if they had a negative resistance, e.g. an amplifier, which in our water analogy is a device that uses a small water flow to control the doors for a larger door, if you have 1 drop per second it let’s put 1L per second on the other side, so it can be seen as something that increased the water flow, therefore negative resistance.
Now you want to move a wheel with your water, for the water this wheel is seen like a hose that’s harder to move through, so it offers some resistance. If you don’t have enough water flowing it won’t budge. You can move the wheel ba raising the other side of the hose, this increasing the speed the water flows and giving it more energy, or you can do the same by putting more water in the hose thus increasing the current. Therefore we need a unit to measure how easily the water at a given point can move a wheel. We call this Potence and measure it in Watts or VA (Volt-Ampere). Whenever you see Watt think about the amount of energy the el electricity has at that point.
Lamps have a measure in Watts, because they’re like a wheel that the water will move, and they’re letting you know how much water energy you need to throw at it for it to move, you can use high amperage low voltage, or high voltage low amperage to get to this result. Because both the Voltage on your house, and the resistance of the lamp are fixed values, you can calculate the resulting amperage and wattage.
I think I went a bit off topic, but I hope this helps clarify some of those concepts.
- Comment on Why is gun violence lower in Switzerland than in the US? 2 weeks ago:
According to a quick check on Wikipedia Switzerland has 27.6 firearms per 100 people, so in average you can expect 1 in 4 people to be armed. While the USA has 120.5 weapons per person, so you can expect in average that 1 in 5 people has an extra weapon besides the one 100% of the population does.
I think the 436% increase in weapon per capita might contribute to an increase with gun violence, but that’s just my guess.
- Comment on What is the hate against Pit Bulls? Everyone I've met are super friendly like my BC. Or are they the new Doberman for this cycle? 2 weeks ago:
And I suppose you also think that in this comment I’m trivialising the struggles of pit bulls by comparing them to apples.
Bad logic is bad logic, whether applied to dogs, humans, apples or whatever. The fact that you can instinctively understand the argument is wrong when applied to people is the exact reason I used that, so people would understand it’s a bad argument that proves nothing.
- Comment on How did you guys deal with the death of a parent? 2 weeks ago:
Came to say exactly this. Lost my dad at 18 and I’m 37 now, you just learn to live with it. Time makes it easier because it distances you and gives you lots of other experiences without them, but even decades later you might catch yourself thinking about them.
I always remember a quote by Terry Pratchett:
No one is actually dead until the ripples they cause in the world die away
And you yourself are a ripple, your father is alive within you, remember him and carry him with you.
- Comment on Non-stick pans? 2 weeks ago:
Would love to know about other ways
- Comment on Any good tools for learning blind typing? 2 weeks ago:
If a support person can’t switch keyboard layout, I have absolutely no confidence they can fix whatever’s wrong with my machine.
Plus I use a tiling window manager with custom shortcuts, my keyboard is a split with blank keys and I use a trackball. I think it’s fair to say changing the keyboard layout would be a tiny step to overcome for anyone trying to use my machine hahahshs
- Comment on Any good tools for learning blind typing? 2 weeks ago:
If you have to look at the keyboard you’re doing it wrong. My main board had blank keys, my laptop has the qwerty keys, I just don’t look at them
- Comment on Any good tools for learning blind typing? 2 weeks ago:
My first recommendation is maybe consider a different layout. If you have been typing for long you will have muscle memory that will be hard to erase, I could mostly blind type (though not touch type) on qwerty, I decided to learn Colemak for touch typing and have never looked back. I still retain the muscle memory and can type somewhat fast on qwerty but after years of correct typing I notice just how bad what I was doing was.
IIRC I used thetypingcat.com/typing-courses/basic and trained on that and similar websites for a long time. You have to know that you will be very slow during a while and have to be prepared for that, but it does pay out in the end. While I didn’t increased my typing speed significantly (70 to 85) it is a lot less strenuous on my hands.
- Comment on Any good tools for learning blind typing? 2 weeks ago:
As a Colemak user I highly encourage people to learn a different layout. The thing that convinced me to Colemak was this: www.patrick-wied.at/projects/heatmap-keyboard/
Paste some long text you have written and it will show you a heat map on different layouts to see how the typing of that text on that layout would have been. I loaded a large code I was working on and Colemak was mostly home row.
- Comment on Non-stick pans? 2 weeks ago:
Sure, that’s a generalized explanation but you can use a stainless steel pan in several other ways, for example boiling pasta. But if you want it to be non-stick like OP asked that’s the way. And sure, you don’t need to rely on the Leidenfrost effect, you can use a surface thermometer or after you’ve used the same pan enough just your feeling of it, but for a generalized way to tell people how to measure the temperature it’s a great marker.
BTW, I make my eggs over easy using that exact same set of steps, so it absolutely can be done. In fact if you don’t do that the egg will stick to the pan and you won’t be able to flip it, and if you can’t flip it it’s not over. Also if the pan is not hot enough the yolk will cook, the pan needs to be hot enough to sear it and cook it on the outside without giving time to cook the inside thoroughly.
The more I think about this, the worse that example looks. The steps I outlined are exactly what’s needed to make an over easy egg on a stainless steel pan.
- Comment on What is the hate against Pit Bulls? Everyone I've met are super friendly like my BC. Or are they the new Doberman for this cycle? 2 weeks ago:
Sure it matters, if you don’t normalize for sample size your data is meaningless. Here’s a similar example:
I have a farm that produces both red and green apples, last harvest I had to throw away 100 red apples because they went bad, but only 10 green apples for the same reason.
You would think that red apples spoil 10x easier than green ones, but you’re missing the crucial information that my farm produced 10.000 red apples and 1.000 green ones, so in both cases it represented 1% of the whole amount.
This could be the same thing, if there are more Pitbulls than other races it would be expected that they bite more in absolute numbers.
- Comment on What is the hate against Pit Bulls? Everyone I've met are super friendly like my BC. Or are they the new Doberman for this cycle? 2 weeks ago:
Human is a species, dog is also a species. The exact same argument could be made that it’s still dogs v dogs. The only difference is that slave breeding didn’t happened often or long enough, humans are not special we’re animals and subject to the same biology that dogs, our lifespan are longer so it takes longer to breed us into anything as drastically different as a Chihuahua and a Rottweiler but it could be done just as easily and using the exact same techniques. And biologically speaking the differences between dog breeds is very minimal, they’re still the same species, and still can inter breed, it’s just a matter of different phenotypes which would erode in a couple of inter-breed generations.
You need to stop thinking that humans are special in any way or that races/breeds exist as anything more than “these look similar”. Sure, there is a genetic explanation of why they look similar, but claiming dogs that were bred for X are lesser, or more aggressive or anything is a slippery slope argument when humans have also been bred in recent history, and if you had read any statistics about this you would know that in both cases once you normalize for standard of living these differences disappear. In short the data proves that a Pitbull is not statistically significantly more aggressive than a Labrador that were raised in the same condition, but take a Labrador from puppy and spank him daily show him no love and make him fight for food and then act surprised Pikachu face when he attacks someone, it’s just that there exists a correlation between pieces of shit who like to do that and people who like Pitbulls.
In any case, this has gone terribly out of the point I was making originally, which you never replied to, and I’m tired of every answer you pulling a new Red Herring to avoid acknowledging that “X is a minority yet it’s responsible for the majority of fatalities, therefore X is violent” is a bad argument.
- Comment on Non-stick pans? 2 weeks ago:
What can I say, I love my pans and have geeked out over that for a while.
- Comment on Non-stick pans? 2 weeks ago:
What’s the Lemmy equivalent for /r/angryupvote ? Hahahaha
- Comment on Non-stick pans? 2 weeks ago:
Ok, Teflon is the only one of those that can wear off over time, and it wears off into your food so consider that.
Stainless steel and cast iron are essentially indestructible and will give you the same performance on day one and 20 years later, if yours are acting different in such a short time frame they’re either not stainless steel/cast iron or you’re not taking proper care of them.
Stainless steel is almost impossible to ruin, unless you’re cleaning them with industrial level sanding equipment I’m going to assume that’s not the issue. However stainless steel is tricky to use, you need to preheat over MEDIUM-LOW heat until the pan is UNIFORMLY heated enough that it can levitate a large bead of water all over the surface. Then you need to coat it with some form of fat like cooking oil, and you need to WAIT for the oil to heat properly (just a few seconds, but it’s not immediate). The words I capitalized are where I think most people make mistakes, they heat with high heat and so they have some parts that are very hot and others that aren’t, then they put oil and immediately add the thing they’re trying to cook, if the pan is not evenly hot enough cold spots can cause food to stick.
Cast iron is a different beast, they rely on a thin layer of polimerized oil to become non-stick. While this is resistant enough to survive most things it does wear down over time if you’re not taking proper care of it. If your cast iron pan is not as non-stick as it used to be it needs to be seasoned, so do the following:
- Clean it thoroughly with water and dish soap
- Dry it well (I tend to put it over the fire again until it’s dry, then you will let it cool down)
- Put a tiny amount of oil on it
- Grab a paper towel and spread it over the whole surface of the pan, it should look glossy
- Grab a new dry paper towel and dry the excess of oil, it will still look glossy but should not have any pools of drops of oil anywhere.
- Turn your oven to something like 200C/250C (it depends on the oil you used, look for seasoning temperature).
- Once the oven is hot you will put your pan upside down there and let it sit for at least one hour, but feel free to let it stay longer.
That should recreate the layer on the pan and make it good as new. You might need to do that periodically, maybe once a year or so depending on how you treat your pans. However after having the initial seasoning you can keep building it over time to avoid having to go through the whole process again. This is done by essentially taking good care of your pan, which means:
- Wash it after use (don’t let it sink with water for hours). Contrary to popular belief you can use regular soap here.ñ, the advice is from an era where soap had much heavier chemicals.
- Dry it after wash (you can do so with a towel, I like to put it in the fire again to ensure its thoroughly dried)
- Apply a small layer of oil like you did for seasoning before putting it away.
If you do that every use it will be good as new indefinitely. If at some point you feel it’s sticking or not acting as before you can resason it. Sometimes you might do wrong things like cutting stuff directly on the pan repitedly, or cook tomatoes or acidic food in it (the acid undoes some of the seasoning and leaves a metallic after-taste) which will require you to resason it, but as a general rule just cooking with it should keep increasing the petiquia (name of the coating created by the seasoning process).
Hope this helps, glad to answer anything else. I’m by no means an expert but I do like the few pans I have and like to cook so I’ve geeked over this for a while.
- Comment on What is the hate against Pit Bulls? Everyone I've met are super friendly like my BC. Or are they the new Doberman for this cycle? 2 weeks ago:
Red herring: That is an entirely different argument from the one I’m replying to and has absolutely no bearing on the point I’m trying to make.
That being said you should really pick up a history book sometime, slaves were also sometimes bred in much the same way dogs are now.
Plus dog breeds are also mostly social constructs, to the point that the majority of Pitbull attacks are not actually done by Pitbulls but were misidentified.
- Comment on What is the hate against Pit Bulls? Everyone I've met are super friendly like my BC. Or are they the new Doberman for this cycle? 2 weeks ago:
I’m not drawing the line, you are when you claim races exist as anything more than social constructs over shared characteristics.
In any case, all of what you’re saying are red herrings ignoring the point I’m making that the logic is flawed. Which you clearly agree with:
People have investigated this with black crime statistics, and turns out that it was systemic racism. So thus it was debunked.
If the argument was solid it wouldn’t need investigation, the fact that investigation disproves that argument lets you know it’s not solid logic.
Since similar studies have not been conducted for dogs and we can’t exclude other factors (for example that assholes who want a dog to mistreat prefer aggressive breeds), the argument is just as pointless as it is for people.