2,602 karma · joined Jul 31, 2020 (6y ago) · 1,754 submissions
comment 5y ago · link · parent
comment 5y ago · link · parent
The way a PE file is defined is interesting. They managed to cram a completely different file format into the DOS 'MZ' format. Including the NE and LE formats. I think the NE one had a bunch of sub targets (OS/2, win32s, etc).
https://wiki.osdev.org/PE https://wiki.osdev.org/NE
It is quite the nesting doll of executable formats. If I remember correctly PE also holds .NET in some way as another sub format.
comment 5y ago · link · parent
When I was in school Dr Klarner was looking into that exact problem. He had it pretty well dialed in on 2d. Once you move to 3d though it becomes a strange problem as what was once optimal for 2d may no longer be in 3d.
In practical terms though time/speed is usually more important in packing. For example you may have optimal packing but it takes 10 hours to physically pack it out is not great. Optimal load size is usually better if you have fixed size packages that interlock in some known pattern or are willing to allow some slack.
comment 5y ago · link · parent
comment 5y ago · link · parent
I just hope CDPR did not bet the farm on this thing. If so GoG will go with it.
comment 5y ago · link · parent
The thing is until you look you do not realize how much sugar is in everything and how many different 'types' there are.
A good rule of thumb when shopping in an american store is stick to the edges. The middle is full of processed stuff that usually has sugar. Not all processed is bad. For example a nice salsa is processed but not terrible for you and a decent time saver and usually tastes nicer than anything I have come up with. Like you point out you have to watch the labels.
comment 5y ago · link · parent
Usually if scrum is failing is because of a lack of trust. Someone wants to know every detail of what is going on and will use the only process they have, scrum, to bash it out of you. They end up backing waterfall into scrum and thinking they are 'agile'. I am currently watching a perfectly functioning set of scrum teams being torn down due to a rethinking of what scrum is. Adding in 20-30 mins more work per story. Just to get the 'paperwork' right plus 4 different review processes before a story can be worked on. That does not sound bad until you realize the org is popping hundreds of stories every 2 weeks.
Then toss in 'devops' where you have no responsibility to change anything but get all of the 'responsibility' of being yelled at because it is broken. Hanging out with a pager just incase something breaks. And it will, usually at 3am on a sunday and the tech support guys just call you without even opening the logs because that is what it says to do in their RTS guide. But it turns out you need the guys who wrote the code to look at it because they just checked in something 2 weeks ago and the whole thing just went O(N^N^N), and his phone is on mute. But you have no auth to check anything in or change the machines but the dev does.
comment 5y ago · link · parent
comment 5y ago · link · parent
My way is to eat less items with extra sugar in it. Oh boy do they hide that stuff in about a dozen different ways. Especially HFCS and 'apple/pear juice'. Then I track what I eat and try to hit my numbers. Someone I know is hitting nearly 40 pounds in a year with that method. Plus the accountability helped them stick to it.
comment 5y ago · link · parent
My biggest gripe with many movies is pacing. It is hard to get just right. You either move to fast and everything is a blur, or too slow and it is 'boring'. That is just me though. I enjoyed GI Joe but it is not something I am going to go back and re-watch anytime soon. Something like John Wick I have watched it a few times since it came out. It is full to the brim with tropes. But they are done very well.
comment 5y ago · link · parent
Just for fun a few months ago I thought back on how my signature has changed over the years. I drew them all down on a piece of paper. My wife thought I was nuts for having no less than 7 different signatures. My current one sort of resembles letters and scribbles.
comment 5y ago · link · parent
I stumbled upon a nice way to show people what programming is the other day. However, it requires the person who asked the question to be engaged. If they only see programming as a trade of wizardry and a way to make money they may tune you out.
But my latest analogy for people who as 'what is programming' is to put a rock on a table and say 'teach this rock to go to the store write down every single step including getting off the table and opening the door'. They may get a bit angry and I will tell them a computer is no smarter than a rock and it will do exactly what you tell it. You need to be very explicit in what you tell it. If something goes wrong like you end up in the bathroom instead, something is wrong in the instructions and you have to fix it the rock cant. Now I am sure this analogy will fail on someone at some point. But it has worked on a few people I tested it on. My job is to pretend to be very stupid and then ask 'what sort of instructions do I need'.
That is just the simple style of programming. Add in callbacks, async, events, injection models, and SQL in there and people nope out.
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
Some portions of information seem innocent too like 'how much is in your account' could mean the difference between if someone tries to target me or not. Say I owe 500 bucks and have 10 in the bank and they may not bother. But say something like I have no debt and have a million in the bank and suddenly I am a very attractive target. That is for both 'good' and 'bad' actors.
Something as simple as giving your email to someone can tie you into yet another ad network. Which has already profiled you.
What is the worst of it is, I really do not care if you had the information. I do care if you use my information to mess up my life or harass me endlessly. So my default position is 'sorry I am not telling you that'.
comment 5y ago · link · parent
Even then it can be exempt or removed by other items in the tax code. That profit is not part of the sales tax system. It is part of the income tax system.
comment 5y ago · link · parent
I found that if you are 'happy' with the style of lots of stored procs and data lifting on the server side you usually have a decent source delivery system in place. If you do not have that you will fight every step of the way changing the schema and procs as this monolithic glob that no one dares to touch.
comment 5y ago · link · parent
comment 5y ago · link · parent
I personally have ever seen the 'do x or I quit' move work exactly once. The second time they tried it they took them up on the offer. They were even very nice to work with and were part of the 'do not fire this person or it is chaos' team. When he did it the first time he said 'I can only do this once if I try again they will fire me on the spot'. He did it a second time just to see if they would match his external offer (they let him ride the 2 weeks at least). You usually only get one shot at that sort of move. If you do it all the time, managers start looking for ways to offload you. You will be seen as a threat to org stability as you come off as unreliable. No matter how key you are.
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 6y ago · link · parent