110 karma · joined Jun 4, 2011 (15y ago) · 50 submissions
comment 3mo ago · link · parent
I think sugar is an addictive substance just like coffee, and tobacco/alcohol. Sugar and coffee are easier to shake than tobacco or alcohol. If you manage to stay off of it for a few days, you're back to normal. But it's socially acceptable to have a sweet tooth so most people, like with coffee, just keep "using". Some people don't get addicted to things as easily as others. Perhaps you're just one of them?
Most of my information comes from this doctor, Robert Lustig. Here's the latest podcast he was on if you're interested: https://youtu.be/BhEsYJ6gEHY. At around the hour-mark, he starts talking about the addiction side of sugar. There are talks with him that go way back. Around 17 years IIRC.
He's a bit peculiar I suppose, and seems to be on some sort of a crusade against "big food" and "big sugar", but I really sympathize with the guy.
comment 3mo ago · link · parent
3.
Fixing long-standing shader issues and "Device Removed" crashes in Path of Exile(twitter.com ↗)
3 points · by Sverigevader · 3mo ago · 1 comment
comment 9mo ago · link · parent
comment 10mo ago · link · parent
The trick I found to get out of it is to hit ALT+TAB. It ironically puts another app into focus and when that happens, the snipping tool exits. Snipping tool is pretty great though. I wish macOS had the same.
comment 1y ago · link · parent
comment 1y ago · link · parent
Some customers started to input their PIN code (which you sometimes have to do) instead of their total when this was a new thing. It made for some hilarious totals.
One of the most egregious examples I can remember was a restaurant where you order digitally, and when done, you go and get your food/drinks yourself from the serving window. And they asked for tips... ¯\_(ツ)_/¯
Sigh... I do sometimes tip though, never for lunch, but sometimes for dinner.
comment 1y ago · link · parent
https://standardebooks.org/help/how-to-use-our-ebooks#kobo-f...
comment 1y ago · link · parent
This was after a year or two of suffering through bad performance and a janky experience. Except for the purchased books of course. Somehow I never thought it was possible to fix.
comment 1y ago · link · parent
If I recall correctly, the entire world is in agreement that cloning is illegal, and even that some people in China (could be just one) even went to prison for it.
comment 2y ago · link · parent
The only driving aid I use (rely on) on is ACC (Automatic Cruise Control), to keep my speed and distance (maximum) to the car in front of me. I almost always stay in the rightmost lane doing the speed limit.
Without a doubt Tesla drivers consistently stood out as the most "strange". Drivers of all brands can be stressed and drive too fast, but Tesla drivers were janky, couldn't stay in their lanes, and very often didn't keep a safe distance to the car in front of them.
Worst part, they didn't seem aware of their surroundings. They would merge in the most insane situations/positions or dangerously try to pass other drivers.
I don't know if they relied on their hardware to guide them, this autopilot thing, or whatever else they have, but it puckered me up good.
comment 2y ago · link · parent
comment 2y ago · link · parent
I have three doors in front of me. behind one is a great prize. Behind the other two are bad prizes. I know which door contains the prize, and I choose that door. Before I open it the game show host eliminates one of the doors that contain the bad prize. He then asks if I'd like to switch to the other remaining door instead of the one I chose. Should I switch doors?`
Big answer:
This scenario is a classic probability puzzle known as the Monty Hall problem, named after the original host of the game show *Let's Make a Deal*. Here's how it works and what you should do:
1. **Initial Choice**: You choose one of the three doors. At this stage, the probability that you have selected the door with the great prize is \( \frac{1}{3} \), and the probability that the great prize is behind one of the other two doors is \( \frac{2}{3} \).
2. **Host's Action**: The host, who knows what is behind each door, then opens one of the remaining two doors to reveal a bad prize. This step is crucial because the host always reveals a bad prize and always chooses one of the doors you did not pick.
3. **Decision Point**: You now have the option to stick with your original choice or switch to the other unopened door. Here’s why you might consider switching:
- If your original choice (let's say you chose door 1) was correct (which has a probability of \( \frac{1}{3} \)), then the other two doors (2 and 3) both have bad prizes, and switching would cause you to lose.
- However, if your original choice was incorrect (which has a probability of \( \frac{2}{3} \)), meaning the prize is behind one of the other two doors, the host's action of opening another door (say he opens door 3, revealing a bad prize) leaves the door with the prize (door 2) still closed. Switching in this case would lead you to win.
4. **Probability of Winning**:
- If you do not switch, you win if your original choice was the door with the prize (probability \( \frac{1}{3} \)).
- If you do switch, you win if your original choice was not the door with the prize (probability \( \frac{2}{3} \)).
Therefore, **you should switch doors**. Switching doors doubles your chances of winning the great prize, from \( \frac{1}{3} \) (if you stick with your original choice) to \( \frac{2}{3} \) (if you switch). The switch works in your favor because it capitalizes on the probability shift caused by the host's action of revealing a bad prize behind one of the doors you did not initially pick.comment 2y ago · link · parent
My reason for starting with that scene was to play my "backed up" games but I remember screaming with joy when I got a C++ program onto the PSP which displayed some colours and bars. I could change them with the buttons and joystick.
comment 3y ago · link · parent
comment 4y ago · link · parent
Next time, if you want to reset the latest commit to an unstaged state:
git reset HEAD~
But regarding "deleting all my recent changes", another command I'd like to introduce you to is; git reflog
It shows you all of your commits that changed the tip (HEAD). Chances are your changes could be found there.I don't blame you for not knowing this. I learned by trial and error and most importantly, good colleagues who showed me the way.
edit: Typo/grammar
comment 4y ago · link · parent
Could it be that your problem isn't with Agile itself but with Scrum (i.e. how you apply Agile)?
In my experience, it goes something like this;
– "We need a better way to work"
– "Oh, let's go with Agile, everyone is doing that"
– "But that's just a set of principles and guidelines though isn't it?"
– "So we need something on top of it then. To keep track of what we're doing and what we've done? And how fast we've done it. How fast we can deliver things. We have to measure the throughput of the features we ship. Oh and we need status tags so that we know which state every feature is in at any given time. And the features are too big of course, we need to split them into smaller \"tasks\", and they need to contain exactly the information required to complete the work without talking to anyone else. I mean I'm a manager and simply must know what people are working on and how they're solving it and, if they're not doing it fast enough. Right?"
– "Sounds good, how do we keep track of the way we keep track of things?"
– "Hmmmm....."
– "Oh wait! Meetings and ceremonies!!"
If you cannot succeed in a situation where you have motivated people, in an environment where learning by failure is encouraged and management that trust their workers I don't think you can blame Agile. But you could perhaps blame the framework that you execute Agile with because they have a way of demotivating even the best of us.
In a perfect world (where you're all in the same room all the time) the Agile manifesto and the development principles it comes with, a whiteboard and post-its will be all you need. Your problem is what you've replaced the whiteboard and post-its with.
I could of course be wrong here but this is, in my experience what breaks the camels back. Mostly...
comment 4y ago · link · parent
It took me 1 month of painstakingly learning the git CLI and I'm happy I spent the time. Before that I was using a GUI and was essentially afraid of git.
I'm no longer afraid. Instead I'm actively exploring ways to do things faster and/or smarter every day.
This happened when I switched jobs recently and came into contact with a fantastic developer and patient teacher. Doing it myself would have taken a bit longer and I wouldn't be able to see how much it would be worth it.
I'm enjoying a rebase workflow everyday. And I especially like the -i flag for interactive rebasing;
git rebase -i
Same with -p for interactively adding code/files before commits git add -p
I read the first three chapters of the git-scm book[0] and it made a world of difference in understanding what's actually going on.