Better HN
topnewbestaskshowjobs
Log inSign up

sumtechguy

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

Submissions

comment 5y ago · link · parent

very much so. A lot of LTL and shipping companies should re-evaluate how and when they load things. The rules changed fairly recently and those will create all sorts of spots like that. So the old routes and loadtimes probably no longer make sense. Where 1 guy coming in at a particular time was fine but now with the way shifts are going to be you may need 2 and shift the pickup time out by x hours. That sort of thing. The rule changes also constrained the actual number of hours drivers can do (so there is an increased demand for drive time). When I started with this stuff 20+ years ago it was 5x5 shifts were common and legal. But now you will have to make sure you give people their weekends and core sleep times and about a dozen countdown clocks per driver. Getting that scheduling right will be quite the linear algebra optimization problem.

comment 5y ago · link · parent

One group I worked with they were yelling they did not have enough drivers. But we sent someone over and watched how they ran their op for a few weeks. The real issue was they had one guy who would only come in at 6:30AM sharp. The entire org had somehow worked itself around that one hard requirement. He was also the guy who signed off on shipments. So lines of trucks would sit waiting empty because no one could leave until it was signed off. They thought they needed more drivers because shipments were low. Just to keep up and more loaders to load the items. Drivers would show at 9 and would not even roll out until 1. When the real solution was to hire 2 more people to sign off on orders and put them on different shifts. Throwing more money at the problem would never fix it. They just did not have enough space for that many drivers to show up at the same time.

They had designed their whole shipping system around max capacity at a particular time. They started adding more shipping capacity to cover it. When they really needed to shift when the work was happening. Once they fixed that they actually found they had overstaffed on drivers. They quickly found those guys more work as they were putting off orders because of capacity.

The new rules are brutal on that sort of fix.

comment 5y ago · link · parent

I do not disagree. Kafka is kind of a monster to fully configure correctly. Once they get rid of zookeeper it may be nicer to spin up and 'set it and forget it' sort of thing like the others.

comment 5y ago · link · parent

That is new! Guess I missed that. Thank you for the heads up. Wonder why the do not have a flag to set it to the old way, maybe they do I will have to dig through the docs. I could see some processes that could have that built in as a dependency and now that would change.

comment 5y ago · link · parent

People rotate in and out of that 10%. 25 years ago I maybe had a net wealth of 500 bucks, 15 years ago I was negative 180k. Today I am in that 10%. By the time I get to 70 I probably will not be in that 10% anymore. Hell one 'RIFF' and 2-3 years of 'sorry you are not a good fit', medium sized illness, and I could be there again.

comment 5y ago · link · parent

From an earlier article https://www.phoronix.com/scan.php?page=news_item&px=Linux-Ap...

"His patches pushing the greater performance have been changes to the block code, NVMe, multi-queue blk-mq, and IO_uring." https://git.kernel.dk/cgit/linux-block/log/?h=perf-wip

So it looks like he is playing with a good portion of the IO block stack with a very recent concentration on io_uring. So maybe some of it?...

comment 5y ago · link · parent

My issues typically with layering an event system on top of a db is replication and ownership of that event. Kafka makes some very nice guarantees about giving best attempt to make sure only one process works on something at a time inside of a consumer group. You have to build a system in the db using locks and different things that are poor substitutes.

If you are having trouble debugging kafka you could use a connector to put the data into the database/file to also debug, or a db streamer. You can also use the built in cli tools to scroll along. I have had very good luck with using both of those to find out what is going wrong. Also kafka will basically by default keep all the messages for the past 7 days so you can play it back if you need to by moving the consumer offsets. IF you are trying to use kafka like a db and change messages on the fly you will have a bad time of it. Kafka is meant to be a here is something that happened and some data. Changing that data after the fact would in the kafka world be another event. In some types of systems that is a very desirable property (such as audit heavy cultures, banks, medical, etc). Now also kafka can be a real pain if you are debugging and messup a schema or produce a message that does not fit into the consumer. Getting rid of that takes some poor cli trickery when in a db it is a delete call.

Also kafka is meant for a distributed system event based worker systems (typically some sort of microservice style system). If you are early on you more than likely not building that yet. Just dumping something into a list in a table and polling on that list is a very effective way for something that is early on or maybe even forever. But once you add in replication and/or multiple clients looking at that same task list table you will start to see the issues quickly.

Using an event system like a db system and yes it will feel broken. Also vice versa. You can do it. But like you are finding out those edge cases are a pain and make you feel like 'bah its easier to do it this way'. In some cases yes. In your case you have a bad state in your event data. You are cleaning it up with some db calls. But what if instead you had an event that did that for you?

comment 5y ago · link · parent

My low amount of spam is specifically because I make sure I do not give that email to just any random website. That includes this one. Some people I know get 2k per week in junk email. The ones I do get I know exactly who sold my email to someone else.

comment 5y ago · link · parent

For kafka the default is round robin in each partition. A hash key can let you direct the work to particular partitions. Each partition is guaranteed ordering. Also only one consumer in a consumer group can remove an item from a partition at a time. No two consumers in a consumer group will get the same message.

comment 5y ago · link · parent

I have done both patterns.

Kafka has its use case. Databases have theirs. You can make a DB do what kafka does. But you also add in the programming overhead of getting the DB semantics correct to make an event system. When I see people saying 'lets put the DB into kafka' I make the exact same argument. You will spend more time making kafka act like a database and getting the semantics right. Kafka is more of a data/event transportation system. A DB is an at rest data store that lets you manipulate the data. Use them to their strengths or get crushed by weird edge cases.

comment 5y ago · link · parent

Almost all projects start that way as some small learning project. You usually do not build complete applications in 1 day. You usually lean heavy on existing libs or chunks of code you already learned somewhere else. That is what that sort of thing is for. In my 26 years doing this most of what I have written has been thrown away. There may still be some bits here and there living on but I doubt it. Yet at one point all of that code had a use and did it well. That use was me using that knowledge to get things done. Those prototype projects do a lot of that sort of thing. If I wanted to make an scala version of my 'basic editor' it would probably take me at least a week of digging through docs and trying things. But in another realm I can bash it out in a couple of hours. My point was your domain knowledge is what makes you a better developer.

comment 5y ago · link · parent

hmm I prob could make something kind of like a text editor in win32 fairly quickly as I can think of about a dozen built in calls that would make it work. Would it be full featured? Not much but it would do the very basics (cut/paste/save/read/edit). But that is because I know the system pretty well. If you dropped me into some other system it would take me a decent amount of time.

comment 5y ago · link · parent

Yeah this sort of feels like one half of an advert campaign. The 'build a need' part. Then a bit later we will get to see who is selling something that just happens to fix it. The links you gave are more for 'banks like to keep their stuff in house but we can keep it secure if you rent our machines'.

comment 5y ago · link · parent

The problem was even lets say AT&T was willing to put BSD on pc style hardware they were wildly overpricing it. If you were dead set at that time having a PC you could kit one out for ~2k which was respectable for the time. Yet then AT&T would come along and say 'oh you want BSD? 20,000 please, oh and that PC you got well it does not work correctly with it you need to buy a different set of kit that is 8x the cost, plus a 40k per year support cost'. AT&T is and was a phone company through and through. I have worked at the leftovers of another one. They only care about one thing, number of lines hooked up. Their sales staff and training is all about that. How can software sell me more lines. It is one of the metrics that they look at. A few thousand PC sales? A blip on the balance sheet and probably not really worth investing in because it does not sell more lines. Phone companies are laser focused on that.

comment 5y ago · link · parent

Legacy. Plus the ODBC layer is sort of 'broken' then add on nearly 25 years of examples on the internet.

We have 2 modes of using ODBC/SQL.

Almost tightly bound. Basically you have a bit of query string with question marks in it and you bind out your data points. Either for sending/receiving. Even passing in prepared strings could be an attack vector if you know what you are doing. As it breaks one of the 'rules' of secure programing trusting the client to tell you the correct thing. This however is the currently the only best way to do it, unless you go full on with the stored procedure pattern (which can still have injection attacks).

Loosely bound. Here is a totally composed string ready to go just run it. Also a good way to make easy SQL injection attacks.

Both involve string manipulation.

Then a requirement of that interface is it has to sort of kind of work with at least 4 different SQL systems. Anyone who has had to port stored procs between some of these different SQL systems, can attest to, that they are not the same, except in some very basic ways.

On top of that there are a lot of bad examples out there. But also once someone finally kind of gets something to work they may cut and paste that method. Which may or may not be good. Plus SQL has this stigma for many years of 'being hard'. I know I ended up as the 'SQL guy' for awhile because many in some of my orgs would not touch it.

That is what the runtime environments have to deal with. Some paper over it with an API abstraction, some are better than others.

comment 5y ago · link · parent

you can have the best phone ever. but if you can not talk the big phone companies into putting it on their shelves you are going to have a rough time. my suspicion is android is only as big as it is because verizon did not want to budge on that data thing with Steve jobs. at&t was willing to play ball and it was exclusive and verizon was caught with feature phones only and a couple of janky wince phones with terrible data plan costs.

comment 5y ago · link · parent

That is fair enough. But most of the boxes I bought are fairly efficient, being laptops (usually 45w max under load). Sandybridge was a pretty good platform for its time. It was not until recently that they have iterated out of it. If you had a desktop yeah I would recommend the upgrade. My use case was portability with some very light gaming, and a decent screen for programming. I had done that cutover from power hungry boxes to fairly efficient ones in about 2006. I dumped about 40 bucks off my power bill. My rub with this upgrade for win11 is it seems kind of arbitrary. Mostly TPM. A feature I do not want or have a need for.

comment 5y ago · link · parent

I always jokingly called windows 7 vista service pack 3. Vista added in windows defender, really ramped up how aggressive superfetch was, and search indexing. Turn those 3 things off and vista worked decently as it was too much for most CPUs/HD of the time. They fixed most of that in sp2 of vista. But win7 is when everyone really got most of the fixes. One dude I know managed to 'fix' Windows ME. He figured out it was the plug and play system aggressively scanning the inf files. He narrowed them down to just the ones that were needed for his hardware and it worked pretty good for him.

comment 5y ago · link · parent

Win11 does look rushed. They want TPM2.0 and to move the CPU requirements up about 7 years (which puts more than half of my computers and several family members into EOL with respect to windows). The UI looks like some steps forward and many backwards. I am also thinking this sort of cutting out older harder in this way will make many people re-think if they need a computer or something like an ipad.

I think I might upgrade one VM and see. Then leave most of my computers alone for now. It will take them a bit to shake out the quirks on this. It took them about 2 cycles to get win10 into a usable state. Which is fairly typical of them 'wait until service pack 2'.

comment 5y ago · link · parent

Probably the best tool you have is somewhere to write your notes down. What you did, why you did it, how to reproduce it. That saves you time in a year or two when you go 'hmm I did something like this before have to do it again because some CPU ate itself'. My old notes have saved me a lot of re-work over the years. Because I had written down what I did so I do not have to rebuild it. I can just skip along the notes and be most of the way there.

This bit seems to hold true across any size team for me. If I have notes I can spiffy them up and make cheat sheets out of them and bootstrap other developers faster. Or if it is just me, my feeble brain will forget odd details that I needed for something.

comment 5y ago · link · parent

Has anyone played with adding a cert and using a squid proxy to help log what is going on?

comment 5y ago · link · parent

I know people who deal with thousands in cash every month. They have no account and really never should. I am not even going to suggest to them to get one. They have extremely poor money management skills. Banks can be quite merciless if you are riding the line. They need the physicality of cash in hand to see they are spending too much. To me a 30 dollar fee is 'well that sucks'. To someone who is riding the line 30 bucks can mean a cascade of borrow from peter to pay paul, or 'well skip the power bill this month'. Which then makes the problem worse.

This is not even a 'class' thing I have seen many highly paid, very smart people who just do not grok less out than in. Also do not spend it before you have it (I am getting paid tomorrow so I can borrow X and pay it off), one way ticket to massive credit card debt that old gem is.

comment 5y ago · link · parent

There can be that. But also some managers do not like you wander off task. So stick in your lane stick to your tasks... So eventually after years of that you just do only what is needed and skip anything else. After a few of those 'that is very nice but...' conversations you just say screw it and coast. Every once and awhile I get a burst where I can propel my group forward. But then usually I feel like I am bolder chained to them and dragging them down. More than likely I am just average and doing OK.

comment 5y ago · link · parent

I worked in this sort of space for awhile. You got it in your last paragraph. Downtime costs money. Not only does downtime cost money, service calls do too. You get a guy who knows exactly how to fix it out on site and he shows up and has the wrong part and he costs 200 bucks an hour. You can burn 4 hours just waiting for a part. We were having a lot of good luck adding some sensors, remote diagnostic, and pre-diagnostic. That way you could schedule a downtime for a part swap out and have the right part on hand. Programming and remote control was near the bottom of that money stack. Like you said most of the stuff is PLC and relay logic. Sometimes you get lucky and there is a decent computer in the middle and you can scan that, but be careful as the 485 line may already be saturated with commands.

comment 5y ago · link · parent

git commits are a good place to look for passwords/users checked in. unless you specifically prune them. so your current mainline may not have it but the stuff is still there in the commit history chain. so if you have access to that you probably could leverage it into several other systems.

comment 5y ago · link · parent

It has some of the earmarks of a something is up. You do not go from nobody to 60 min interviews that quick.

comment 5y ago · link · parent

Not just inside big corps either. Sometimes they just do not like the upstream devs and are not going to share.

One project I watch one dev in charge of the project is seeing comment after comment in the project is 'I will just keep these changes to myself then, closed' and specifically because of him. Lots of devs are keeping their stuff private.

I personally have done this in another project. I got tired of arguing with one dev over 2 lines of code. So my private version works. The public one is broken in that case. That was 2 years ago. It is still broken publicly and the forums for that group are telling them that...

comment 5y ago · link · parent

This is why I am considering leaving my current position. "oh we have something you can work on, but first can you..." 3 straight years of this...

comment 5y ago · link · parent

What is more interesting while they interview the people and discuss the ethics of what they are doing. They do not bother to talk about how these things work? Many of them follow a pattern. Just a small bit of how it works could help educate more people.

comment 5y ago · link · parent

and will 'hit the ground running'
1
394041
59