Better HN
topnewbestaskshowjobs
Log inSign up

sumtechguy

2,602 karma · joined Jul 31, 2020 (6y ago) · 1,754 submissions

Submissions

comment 3y ago · link · parent

It may be a 'tired' argument but a valid one. For me I keep using 'dosisms' in powershell. But they do not work because those commands are actually something different and you need the params for those items. One that gets me every time is is the 'dir /s' command which does not work in powershell because you should use -recurse which is the command for Get-ChildItem which is what it is really calling.

I think most people have this issue when jumping between shells. Each one is has its own way of working. But adding aliases, I can see why they did it. The problem is it was poorly done up front. Now they are kind of stuck with it and we get to deal with it. Also you may be expecting all of the sorting items out of dir/ls. But you do not get those. You get to pipe it and sort it in a secondary step. Which is fine. But can is a bit of a pain when you are used to something like 'dir /os' vs 'Get-ChildItem . | Sort-Object -Property Length'. It just takes some getting used to. But seems longer and more verbose to get the same effect.

It is nicer though when you want to act on those items though (which is where powershell shines) as everything is in an object and you can slice it down. But using it for 'shell' things like where is a file and what is the biggest in a folder it falls a bit flat and feels like the object model is in the way.

comment 3y ago · link · parent

Check the errors coming back on your poll/commit. The kafka stack should tell you when you can retry items. If it is in the middle of something sometimes it does not always fail nicely but you can retry and it is usually fine. Usually I see that sort of behavior if the whole cluster just 'goes away' (reboots, upgrades, etc). It will yeet out a network error and then just stop doing anything. You have to watch for it and recreate your kafka object (sometimes, sometimes retry is fine). If they are bouncing the whole cluster on you each broker can take a decent amount of time before they are alive again. So if you have 3 and they restart all 3 in quick succession all at once you will see some nasty behavior out of the kafka stack. You can fiddle your retries and timeouts. However, if that is lower than it takes for the cluster to come back you can end up with what looks like a busted kafka stream. I have seen it take anywhere from 3-10 mins for a single broker to restart sometimes (other times it is like 10 seconds). So depending on the upgrade/patch script that can be a decent outage. It goes really sideways if the cluster has a lot of volume to replicate between topics on each broker (your replica factor).

comment 3y ago · link · parent

I believe the default of kafka is if you do not specify a consumer group it makes up a random one for you. It is an optional field.

Not sure 'why of it'. If it were me doing that sort of behavior I would think the idea was short lived processes that do a small amount of work then disappear. For that idea, consumer group would not make sense as you would just want to start at the front or end of the topic and blast thru it anyway. Once you add the idea of two different things happening or gangs of processes working from the same events with partitions then consumer groups makes a lot more sense to add in. But retro fitting it back in would be awful? So default is 'random' groupid? Probably in the pip's somewhere what the rational is.

comment 3y ago · link · parent

You are right. My brain decided to forget that existed!

comment 3y ago · link · parent

It is an interesting tricky problem. As the DNS system was designed for caching and an 'honor system'. How do you allow caching so you do not completely overwhelm the root servers yet still prevent modification/interception of the contents of the messages? DoH sort of addresses it. But then you still have to trust that the message has not been altered/intercepted at the DoH server. Yet we also want the server to be able to do a replay of that message to another client. Also how to retrofit all of the existing code that uses DNS that uses this magic system. It is like we need a lightweight one way TLS session but with certificate caching and a second request/response type with a hash. But you have to watch out for cert forging then.

That the browsers are reacting in this way says we have a failure at the DNS software level. Those projects do seem to be giving the security that is wanted. So we are starting to get some fragmentation. Which can not be good. Perhaps we need new record types to support this?

comment 3y ago · link · parent

Having made a few algs over the years for myself. (someone nerd sniped me years ago). The one property I always found interesting was the trade off between the dictionary table size and the data. The bigger you make one the smaller the other can be.

comment 3y ago · link · parent

Yeah, random guy shows up and says 'I belong here' with zero proof that he belongs there. Yeah SoP would be arrest/detain them and let the guy in charge sort it out. Or as they say 'thats above my pay grade'. The alternative would be to let random people in and hope for the best. If I were a spy I would like the 'hope for the best' style of perimeter control.

comment 3y ago · link · parent

For me going from being 'the guy who does tons of stuff' to the 'guy who knows stuff' has had some upsides but some downsides. Upside is I get to share with others and get more people going and doing good stuff faster. As a group we are better off. But narrowly on me, however, that has come at a cost of my productivity is lower. I also have to manage expectations of what I can do now with managers. It does make me feel like I am not getting anything done too. But if I can unstick 4 other people I guess it is a win...?

comment 3y ago · link · parent

A lot of large companies do this. I think in the past 2 weeks I have had maybe 3-5 hours to work on my stuff. The rest is meetings and showing others how to do something.

comment 3y ago · link · parent

eXoWin has done most of it already for win3x games (borderline plug and play). But there is not much to it other than get dosbox and then get a win311 copy running by typing in win in the windows folder. DOSBox, with a couple of forked copies here and there for an oddball game, is pretty much what he used for all of it. Not sure what he is going to use for the 9x project.

comment 3y ago · link · parent

I just think it is sort of funny. But connecting API's up is what many do. Reading the docs is something a lot of people skip, not hard just tedious. The NDA part is a funny twist where I can see an NDA around their business case and who they are working with. But the tech is rarely anything groundbreaking. Had one guy who only wanted to work with 'mozarts' no 'salieris'. That was some weapons grade hubris there. It was basically a in memory hash table he was building. Thought he had some sort of serious secret sauce with that 'idea'. When his real secret sauce was his client list and connections.

comment 3y ago · link · parent

I have a friend, he gets wild migraines all the time. Dozens and dozens of doctors over 25 years. All he can say at this point is what he thinks doesnt cause them. The issue is diagnosing these sorts of things is tough. You can not exactly crack someone open and poke around and not possibly break things plus the cost of time and money. So you mostly look at the symptoms and hope you can read the tea leaves and get it. For most things that works pretty good. But get a bit out of field of what they do and you will have a bad time with most doctors unless they happen to read the tea leaves correctly. My mother in law went from 'you have the flu' to 'you have stage 4 single cell' in under a week and was dead soon after. She went to the doctor dozens of times about it the months before. We get this idea that doctors are miracle worker wizards. But sometimes you feel like they are playing with bear skins and arrow heads.

comment 3y ago · link · parent

The first thing I can think of that was like the 'AI' we have now is seeing the cubic spline method. It was shockingly good at particular points. But between those points it could be 'meh close enough' or wildly bad. AI we have now seems more along the lines of 'meh close enough'. Which for many things is actually good enough. For me I have always looked at the nets as a cubic spline smeared across dozens of nodes with a newtons method for searching out 'optimal'. Bad analogy I know. But that is the closest I can get to explaining 'how they work'.

comment 3y ago · link · parent

Like the movie ready player one. No one went backwards in that race? This was written by people who do not game but know the flash of it. Watch any of the thousands of vids on youtube of people doing crazy things in speed runs and you will see different.

comment 3y ago · link · parent

The funny NDA's are the ones where they think they have a 'secret sauce'. Then you get in there and find out they are using some off the shelf API's exactly as intended. You start asking exact questions and they do not understand how you know so much about their product already.

comment 3y ago · link · parent

The other prob is the size of the company. If say a couple of dudes make a 10 million dollar steady business. It changes their lives. A 10 million dollar steady project in a company the size of google will probably get killed. It does not 'move the needle'. They probably can produce hundreds of small applications that are cool and slightly profitable. They even try it. But if those products do not 'hockey stick' forget it. Then also your point people stopped trusting them to long term support 'new' things. Also getting support out of them if you are using some of their products seems to be awful. That reflects badly even on products where they do give decent service as they now have a reputation for that.

comment 3y ago · link · parent

One of them I used was supposed to be 'pick-a-path' style fantasy fight the dragon sort of thing. I decided to throw the A-Team into it. It integrated them in and even knew the correct names and their context of what each char tended to do. By far not perfect. But the fact it could do even 'kind of' that. Is very interesting. 'kind of' is for some things is perfectly fine. The generated art ones are very interesting too. It reminds me a lot of early emulation discussions. Where people were arguing unless you had cycle perfect emulation nothing would work. Turns out 'kind of' close works for like 95% of the cases. Some things did need that sort of detail. But most didnt.

comment 3y ago · link · parent

I personally never really got into podcasts. I just get bits here and there from them. They remind me of the old AM late night radio shows. There are a tons of interesting items out there. Sometimes they get someone who is actually interesting to listen to. But many I see they are talking to themselves and/or reading tweets/blogs/other articles then reacting to that. There is an audience for both types. But I am not sure it is that big. Big enough for a small production crew to care about, but not big enough for any meaningful sized audience. There are of course exceptions out there of the 'big names' but most are very small audiences that enjoy that niche content.

comment 3y ago · link · parent

as a 1-2 (depending on proj). I try to bring them up and try to help them. But some people either do not gel into the group or they are hopeless. But I hold out the eternal flame I can help them be better!

comment 3y ago · link · parent

Had a project where the tedium work was cranked to 11. I automated that because I sure was not going to do that for every time I wanted to deploy some code. I also automated the semi complex task that you only do every 2-3 years. Because I sure was not going to remember the steps and I am 100% sure it would just get lost in our sea of documentation. Spinning a new env is mostly just running some scripts instead of days of filling in fields. Computers do the same over and over exactly the way you told them to. Use them. On the other side of that it is dead easy to over complicate something. I am dealing with a project like that now. 5 layers of indirection, model view, the testing framework is solid, the whole thing. It is a single form app with 3 buttons and 4 edit controls.

comment 3y ago · link · parent

For me I have found different paradigms to be useful. But sometimes just getting the team to agree on one system and one set of build tools can be an uphill battle. So sometimes you end up with 2 or 3 systems instead of one. For some things that is perfectly fine. But others it becomes a roadblock on bringing in new people. When starting a new job sometimes just where the bathroom is can be a bit of a chore much less trying to figure out what someone 3 years ago was arguing about and you just want to check some code in and get it reviewed. But when you first show up you probably at least want to get a lay of the land and figure out where the Chesterton's fences are before trying to 'fix it'. It could be they already had this discussion a few times. It could be they never considered it. But until you do it their way for a bit you will not be able to speak with any authority.

comment 3y ago · link · parent

Think you just described core war. https://en.wikipedia.org/wiki/Core_War

comment 3y ago · link · parent

Pretty sure it was 1.2MB HD. There was something along the lines of 20-25 of them. Then lord help you if suddenly the system would panic because it was slightly out of spec of what OS2 wanted (usually halfway thru). Also if memory serves me I think you could tell the windows installer to make a set of disks from a CD. Then you got to feed the beast a bunch of floppies.

comment 3y ago · link · parent

It is called survivorship bias. For example I can look back to 80s NES games. Some of those games are very good. But I would say 80% of the total catalog were either very bland or just outright bad. Most consumer type goods have this issue. In 30 years we will look back at this time and say 'they dont make XYZ like they used to' then point at the cream of the crop of whatever genre XYZ is in for this year. Just remember the same year that Shawshank Redemption came out so did Police academy mission to Moscow.

edit removed: Leonard Part 6.

comment 3y ago · link · parent

Subtitle mistakes are very common. I have tons of DVD's from before AI. The subtitles have tons of obvious errors. I doubt they re-subtitled it, thought they may have run it thru a generic AI? They probably took whatever was there and just dumped it onto the service. Some are even more fun in that they will have 3 generations of subtitles all on one disc. The TV CC fit into the vertical blank, the dvd subtitle, and the for the hearing impaired subtitle. I usually go for the hearing impaired ones. As they seem to be the most accurate, and usually have a nice bonus of putting the text over/near the person who is actually speaking. Which is nice for when chars on the show overtalk each other. A fun touch was on the toy story ones they used the font from the title cards as the font for the subtitles.

comment 3y ago · link · parent

That would have sucked to install that way. I did OS/2 2.0 that way and it did suck.

comment 3y ago · link · parent

This here. Not everyone can do that. I personally can. I try to teach my friends and family to save a bit and use credit cards as a tool to get a small bit of free stuff. However, those things are deadly if you have no skill in saving in the first place. They will wipe you out with interest payments and then some. That method only works if you have the ability to save first and put off impulse buys. Even having something simple like a checking account can be bad if you have poor ability to balance your budget.

My wife for example does not have this ability, however I can manage it by basically controlling the amounts we have and putting restrictions on how money is spent that teach the lessons of saving that her parents for some unknown reason skipped teaching her. Lessons like 'you have X amount of cash lets save up for that thing you want' 'lets review our purchases and see if they make sense on the amount of income we have' 'yes, your friend has a need of 100 bucks and we can cover it but will giving them 100 just make them ask next time for 1000 and will it actually fix their problem or delay it?'

comment 3y ago · link · parent

I never 'delete' them. I just add them to my ublock and then do not use them anymore. I also am very careful about which site I join. Social media sites come and go quickly and am I missing out a ton of stuff? sure thing. I realized it was consuming my time for other things I care more about. When many of these sites turned from trying to connect me to people and more to trying to outrage me with dumb things as that feeds 'engagement'. I got out.

I also add their sites to ublock as they are many times disguised advertising networks. "why yes I love seeing the last thing I looked at on amazon all over the web" /s.

comment 3y ago · link · parent

Having seen the horror shows that some people did to their computers. It is much better. Least priv is a decent thing to strive for. You want to reduce the attack surface. By giving people root you basically make the attack surface your entire computer. I am not going to make the trojan writers job easier.

Also as I have gotten older I also realized that I make mistakes too. Running as least privs reduces the fallout to 'i have to restore a few files' from 'i get to reinstall the whole computer again'. UAC/notroot are tools to help you. You can discard them. That is fine. Not going to judge. I am saying most people it helps them. Not that it matters much anymore anyway. Most of the people who did these silly things to their own computers have moved onto tablets.

comment 3y ago · link · parent

Most code does not last long.

I have found that someone that is adding complexity is usually showing off, board, does not understand the requirement, is missing something. I usually curb my own natural tendency to do this by saying 'what is the bare min to do this one thing'. Then write what would need to be done in the comments if we wanted it to do those other 'cool 5 things'. Also if you are using scrum or kanban it is a good place to add a story to say 'lets do those 5 things'. Then see if it ever gets any traction. You can write amazing cool code. But most of the time 3 people will ever us it and they will only use it for that one thing they wanted in the first place.

I have been writing code for 25+ years now. My exp is similar to yours. Very little code survives. One proj I worked on if you still wanted to write on it you would need to know watcom SQL (sybase), MFC 4.0, win98s version of win32, and the quirks of those 3 systems. NO one is going to want to work on that sort of project unless there are many zeros on the per hour cost. That was not a small project either with well over 500 modules and hundreds of screens. I have watched project after project either killed or re-written. Code in most cases does not last that long. Of course there are some exceptions. But that is rare, the common path is most code does not last long.

1
293031
59