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

I once had the lovely task of turning law into code. 3 lawyers, 4 different judges, 3 officers/officials, and dozens of people the code applied to. The amount of 'law' was maybe 10 sentences. But there were books written on how to apply that small bit of law. That set was pretty solid and had 40 years of 'know how that works case law'. Then it got thrown out in court. Total rewrite. Same set of people again. But many had no idea how to even begin to apply that new law. It took nearly 2 years of wrangling with different law organizations to find out how is this going to be applied. It got so bad I was finding bugs in the law and loopholes just because I threw my hands up and exhaustively searched the whole space of actions. Even the guy who had the fun task of writing the law had reservations. I think they fixed the 'bugs' in a new rewrite a few years ago after it got thrown out again in court. Luckily I was out by that point.

comment 5y ago · link · parent

fair points. wispernet was one of the first of that type. In many ways the pricing structure you are getting now is because of the efforts after that. What you are paying for 150mb we would have got maybe 10-20k in that era. Steve Jobs really did the IoT market a solid with the iPhone and its data plan.

It looks like pre-paid data cards which eventually 'run out'. Which should keep you from having any loss. Aside from incidental support and promotional costs.

It sounds like you are building a similar business that I used to work at. Good luck! It is a tough market with a long tail sales cycle. Some go 'quick' and are up and running in a couple of months. Some take a couple years to get really going.

If I have one piece of advice. Keep an eye on your 'connect/disconnect' metrics. You always get that one device that will decide to bounce the connection 80k times per day. Get a few dozen of those and it will swamp out your other devices.

comment 5y ago · link · parent

Whispernet only 'worked' because of the pricing structure they had with their MDN, the amount of books they were selling with it, and trying to break into the market and willing to eat some cost to do so. Also notice they retired it. That means it was not working pricewise.

To put it this way lets say the ODM makes a device for 40 bucks and sells it to you for 50. Their cost to their MDN/carrier is say 1 dollar per month per device. That means at best they can float you for is 10 months before you start costing them money. That does not involve any other services they may have to pay for to make that connection happen (support, VMs/machines, phone lines, datalines, buildings, etc). But if there is an extra ARPU on each unit that time to cost you money is much longer and in some cases never happen.

They way they priced this it looks like they are trying to get people into the ecosystem and are willing to eat some cost on that. Hoping to get a few whale accounts to cover the 'free' bits.

> ensure that your device is certified on a carrier, or get it ptcrb certified - sign up for a carrier contract - acquire/activate the sim - pay a monthly fee per-device (and sometimes also per-fleet) - figure out how to not needlessly pay when devices are broken or end-of-life - and so on

That is exactly what MDNs like this do. They do that carrier abstraction for you. They do however charge for it. Each of the big carriers also do this and have programs for it. They have a list of pre-certified devices and 'try before you buy' style programs.

comment 5y ago · link · parent

I have seen several approaches.

1) the producer repo owns it. This has the benefit of only the producer makes those things and it is side by side. Downside if you have more than one producer repo with the same schema. When the producer code starts up it sets up the schema.

2) central repo. This is nice however tends to make it if you are using a micro service style more of pain to deploy as they all sorta need to move together. But works very nicely with mono repos. You can make it work with micro but it takes a bit more thinking. This turns your deploy into a two step process 'schema first' then code. That can work but again 'more thinking'.

3) consumer owned. The consumer basically says 'i will only grab these anything else I will consider error'. Works ok if you have 1 producer group and one consumer group and is effectively #1. But with several consumers it becomes a 'cut and paste job'. Or something may get out of sync, etc. When the consumer starts up it pushes the schema.

What I found best to get someone to decide is to figure out what is your version upgrade cycle. Is it one thing at a time? If it is 'everything goes every time'? Who 'owns the schemas?' So different styles will match your deployment process more than anything.

comment 5y ago · link · parent

kafka has a 'schema registry' service. Typically they use avro/json to define the schema of each message. Think they added a couple of new types in recent versions. When you define your consumer/producer you also tell avro what the schema registry service URL is. Basically it helps you keep your messages in spec. It also has the ability for versioning so you can have different versions of messages in flight on the same topic. So if you add a new field it is fairly trivial for both sides to know what is going on. If you remove a field then it becomes more tricky.

Now what goes into that registry is typically in some way version controlled. That is for 'rebuilding' a clean environment if needed. Or part of a CI/CD system.

comment 5y ago · link · parent

To fix would take some interesting work.

My dumb idea is 'must fit on no more than 5 standard sheets of 8x11 piece of paper'. With exceptions to that needing a 75% majority.

My other dumb idea is about 4 people mostly control the vote. Majority/minority leader should be a rotating position. With the name drawn out of a hat.

comment 5y ago · link · parent

Wonder if it is a regional thing? Maybe there are several varieties of red delicious? But they all get the same name? In the area I live in now they are fairly bland and do not taste very good. But when I was a kid we would goto nebraska city and get a couple of bushels of them and those were very good otherwise we would not have bought that many.

comment 5y ago · link · parent

I specifically use them only for cooking. The extra sugar in the other apples can caramelize too quickly for many dishes.

comment 5y ago · link · parent

Just a rejection letter is something, and in a reasonable amount of time. Many times I would just hear nothing. No response at all. Just a simple 'no thank you' is better than what many get from most companies. It is amazing how many companies do not do this one thing. They just leave people hanging. I had one dude who thought to finally send a 'no' letter. It was 2 years later. That should have been closed out ages ago.

Thank you for doing that sort of thing. It really helps.

comment 5y ago · link · parent

That one of my rules I always give to junior devs. Just read the docs again for what you are doing. You may perfectly 'know' them but sometimes there is an extra 'oh if you are doing this do this other thing too'. Or worse the call is similar to some other call but does something slightly weird. Does not come up often but has caught me out a few times. Never hurts to re-read it. You mostly can get away with it but sometimes...

A more human anecdote for example I have movies I know I have seen dozens of times. Yet my recall of what happened in them is not as good as it used to be as the last time I watched them was a few years ago.

comment 5y ago · link · parent

B&B does stand on its own away from the videos. But the videos are also part of where they really shined. So you can buy the 4 box sets. But you are really getting about 1/3rd of the content from that show. Some of the videos are on the extras discs in the packs. Watching Mike Judge comment on MTV culture through the eyes of B&B was part of the fun. The last season they put the segments in. Watching them riff on Jersey Shore was most amusing.

comment 5y ago · link · parent

I was always fond of this one.

https://docs.microsoft.com/en-us/sysinternals/downloads/blue...

comment 5y ago · link · parent

Good question! We had the same one. They had a satellite phone.

edit: What I find interesting is that the things had location tracking built in and no one blinked an eye.

comment 5y ago · link · parent

I think if it comes out in favor of the uploader the strike goes away. If not yeah I think it counts against them. I also think if they have content that tweaks it and they remove it the strike goes away.

comment 5y ago · link · parent

What is also interesting is the game many youtubers have resorted to playing. Where they upload videos 5 or 6 times and have them demonetized and they play the 'what broke the system this time' game and reupload. Even then 6 months later someone else can come along and change the rules and half their catalog is struck for some rule/copyright violation. It is why we are seeing lots of 'patron' style support systems, or self promoted ads by the people making the vids.

edit: removed bit that I am probably wrong on.

comment 5y ago · link · parent

If they can get them comparable in weight and power this could be neat for size size reasons. For the same weight but ~1/4th the size is interesting.

comment 5y ago · link · parent

Think with early kindle it was altel and sprint. Verizon buying altel fixed a lot of that issue. But there were still gaps.

comment 5y ago · link · parent

Don't know why but this reminds me of one support ticket on those things. 'i can not download any books' 'uh sir according to our data you are 10 miles off the coast of florida?' 'oh yeah I am on my boat' 'do you see any cell towers?' 'no' 'they need those to work' 'ohhhhh'

We were surprised that it even had enough signal to figure out the GPS cords.

Even back then cell coverage was not as good as it is now. So many times it was 'go stand at the end of your driveway and try'.

comment 5y ago · link · parent

That is highly dependent on what your plan is.

Some plans are flat co pay. Some are percentage. Some are mixed. Some max out at particular amounts, some dont depending on the care you are doing.

comment 5y ago · link · parent

SD has, for lack of a better term for it, a time problem.

If you post early you will end up +5/-1. If you post late you comment will be stuck at 1. People tend to vote on what they see first too. So the stuff at the top just ends up +5/-1. It does not really signal anything. The cap SD system only works if the group of people posting/voting is small, the story churn is low, and the votes are hard to come by. Soylent added in a disagree vote which was neutral. Which seemed to help some. But they also added in way more votes per cycle. On that board most of the 'disagree' though ends up with people marking -1 troll. Basically they accidently found people want to punish in some way. When the real vote should have been a disagree 0.

Up/down voting seems to work OK. But only if you have mods willing to mod and not push/punish anything.

comment 5y ago · link · parent

Even then I would add. Lets say you have the code to something. Just figuring out what goes where and what does what takes time. Then each dev/compiler has its own 'style'. It is a process that takes time. Sometimes you can get lucky and pull on a thread and the whole sweater comes apart. But finding that one thread to tug on... Then on top of that if they turned on optimizations the code may look 'odd' as it has been optimized and that part of many compilers can do some very strange things.

I am trying to RE a 16bit windows game. Ghidra gets lost a lot on the exe to system dll paths for me. For 32bit it seems fine though.

comment 5y ago · link · parent

I would say vista. Many programs would go out of their way to mess with the windows\system32 folder. MS locked most of that out. WinSxS fixed many of the issues where you needed to play around in system32. They also added in a huge chunk of 'compatibility' they would ship in the registry of programs they know are messed up with particular combinations of dlls. The downside of winsxs is cleanup. It was not until late in the lifecycle of win7 they added some way to purge old junk out of it.

comment 5y ago · link · parent

Also Tesla does not 'need' to advertise, yet.

It is effectively advertised by everyone for Elon for near 0 dollars. Launch a rocket (different company) the article will mention Tesla for them. Talk about saving the environment guess who gets mentioned. Talk about power needs, Tesla comes up as cars are becoming a large consumer of electricity, solar, coal, nuke, etc.

His advertising is basically being done for free by companies who do not even really realize it.

comment 5y ago · link · parent

Kinda a lot of episodes were like that. The more interesting episodes I think it was more of a he was 'a sly little elf perched on his toadstool'. He was unassuming. He disguised himself to be invisible and would pick apart everything usually very methodically. He 'took a defect and used it as a tool'. Even the way he would blow people off was to be unassuming 'oh my boss he is a very exacting man', 'oh just a routine question'. When it was usually him looking for that information. He would many times make the perp 'self own' themselves by their own lies.

The writers were also very good on making sure motive, means and opportunity were clearly picked apart in all ways. Apparently the whole crew was in on it and would make sure that the story stayed true. Making sure things were filmed so they did not contradict later or past actions.

The 90s series was a bit less tight and more of the 'stick it to the rich'. They were enjoyable enough. But something was missing.

comment 5y ago · link · parent

Spot on. But as for 'right now' I have to be a bit more practical and work with what I got.

Mostly these days most machines have a decent amount memory so leaks are not as noticeable, unless you look. If in the early days if I leaked 50MB of memory and my machine had 16MB. I had a real issue and the machine would be borked. If I do the same today you would not notice it.

It is why I stressed watching life cycle of an object. You made this thing, who is cleaning this mess up, and when. 'When' could be anywhere from never 'I need this all the time' to bunch it up when idle/reuse (garbage collection style), or 'right now' I need this memory back right now. There are trade offs and you need to watch for that too. The write it down while you are thinking of it has served me very well over the years. I personally got bit by not following my own rule a few weeks ago. I allocated something and I had not cleaned up correctly. I got 'lucky' and that was actually the right thing to do. But in the code review I rightfully got dinged on it.

One thing I wish many more docs would do is 'this makes object xyz use remove_xyz to clean it up'. Or 'this looks like it is creating an object it is not, this is returning some global'. Right there in the doc. It would help so much.

That temptation of 'eventually' is one that some languages push hard. But I find many leaks that I have chased over the years were just a poor understanding of the calls being used (bad docs, not reading them, or a combo). You may have had a different experience.

comment 5y ago · link · parent

One good rule I used to use and make everyone in my team use was when you get a handle write the 'anti' call at the same time. Good portions of the older windows API is allocate functions and destroy functions. If you write both at the same time your mental overhead is less.

many start using 'auto managed' style languages (c++, java, etc) where the life cycle is not as clear. The life cycle is the same though but you own it in an indirect way. Who makes it. Who uses it. Who destroys it. In some languages that is easier to do, others you own it front to back. When doing this I try to start with create/destroy then usage. It is a style that helps remove leaks before they happen. They can still slip in there...

I have used the common string thing a few times to help narrow leaks (does not work in all cases :( ). You also can use tools like valgrind, boundchecker, purify, etc. Think MS has a couple that I can not remember off the top of my head.

comment 5y ago · link · parent

I used to mess with other devs by injecting bits of code from other sources (when blink in html worked it was one of my favorite ones). The correct way is to bind your params and do not trust that the data you got from some other system is 'OK'. What may be fine in one system could be an escape code in another.

I speculate that the reason this is such an issue is because the interface at the ODBC level is basically security wise broken. It works 'OK' for getting/putting the data but it has 2 modes of execution. One of those paths is not great for security, the other has a usage issue. 'Binding' can be a real pain as it takes at least 1 call per variable parameter. Then managing the buffers correctly. So just building up the strings is an easy way to skip a lot of steps. So many take it. But that path leads to security vulins.

comment 5y ago · link · parent

Another two good utilities to use is performance monitor, and process explorer. Perf mon is good for showing usage over time with its built in graphing and recording.

comment 5y ago · link · parent

That is what many people do with their computers. It fits what they do.

I personally was very excited about the iPad right up until the point I found out it had been 'downgraded' to use the iPhone interface. It went from 'shut up take my money' to 'meh, i will get something else' pretty much instantly.

I have bought a few for family members. They use it for gaming, watching videos, and some light web surfing. I personally just use a nice light laptop.

You can extend it like you have. But many people do not.

If I had to 'do over' I might go down the route you have. But as is I am pretty sunk into my work flow.

comment 5y ago · link · parent

> The example that has stuck with me is when St. Augustine marvels in his Confessions that Bishop Ambrose of Milan could read without moving his lips, suggesting that at one time all thought was subvocalized speech

I would not read too much into that. That could also be the way he was taught to read. Also my wife said she had that same issue. She learned to read by reading out loud and having people read to her. She then could not contextualize anything unless she read it out loud. But she taught herself to read silently. Then add to that some people do not have an inner monolog. But function perfectly fine with everyone else. So trying to form fit a history onto that may not be a good idea.

1
434445
59