Better HN
topnewbestaskshowjobs
Log inSign up

sumtechguy

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

Submissions

comment 6y ago · link · parent

Another issue is the bins themselves. They give 0 indication what is acceptable or not. That varies widely on who picks up your garbage. The second part is china stopped importing a lot of it. Turns out many were just bundling it up and shipping it to china. That ended a couple of years ago. That imploded the whole recycling market. The money in it dried up except for very particular items (usually metals). Everything else, no one really wanted it.

To make people want to recycle you need to positively enforce it. If you goto a negative (such as a tax or fine) the incentive to do it falls off quickly. America used to recycle/reuse tons of stuff. Pepsi and Coke figured out a decent cost to their system was the reuse of their bottles. So they funded groups that worked against that. People would put a deposit on the bottles and containers. If you returned it you got the deposit back. If you tossed it someone else usually would find it and return it and get the deposit. It was a positive incentive. Instead now we have this weird thing where companies produce garbage and blame the customers for not 'taking care of it'. We have no real reason to do so other than feeling good about yourself. In some cases the ability and economic reality is not really there.

Most single stream systems are basically 2 trucks. One picks up the garbage. The other picks up the recycling. Garbage goes straight to the dump. The recycling goes to a sort center. They dump it all out on large conveyor belts with a bunch of people standing next to it picking out what they can and slicing open any bags/boxes they see. Pulling anything that is obviously not for the stream (pizza boxes, magazines etc). The magnets pull out anything metal. The plastics and glass are sorted out usually by weight color and symbol if they have the machinery for it. Otherwise it is manual. This all takes time and money. If you are making 50cents for a 2ton bail of plastic the economics is not there. But if you say make 500 dollars for a bail then maybe it is there.

In a neighborhood I once lived in the recycling guy decided he was not going to pick up anything except pop cans and newspaper. Everyone was mostly recycling correctly. Suddenly my neighbors and I had 2x the garbage to deal with. They all dumped it into the other bin and never recycled again for years. It took only one small negative thing to change from 'happy to help' to 'meh not doing it'. The boxes they had it in were obvious. One week everyone was doing it, then almost none. I would drive around the neighborhoods near mine and he had done it there too. They had to change the way they pickup garbage to undo what 1 guy did in 1 day.

comment 6y ago · link · parent

Or there is a second barber and they shave each other? If there is only one barber then it is a paradox.

comment 6y ago · link · parent

The laffer curve works decently when there is high inflation. Currently we have low inflation. It is an interesting way to control inflation through the use of taxes. However, it has also been sold as a way to make taxes 'fair'. Fair is everyone pays the same no matter what. No freebies, no deductions, nothing. Once you introduce incentives or sin taxes you skew the system. There is now lots of money on the line and people will game that system.

Economics also has lots of math that 'works' but in the real world flies apart because of secondary effects. For example the 18th amendment. It sure got rid of booze but created an interesting underground of violence and ways to smuggle/hide it. A secondary effect. No tax issue exists in a vacuum. Anyone who says 'my way is the most amazing way' has not thought through all the secondary effects. For example lets say you want to get rid of something, million dollar cars. Lets tax it at 99%. The rich were going to buy it one way or the other. The tax is meaningless to them other than an annoyance that they will try to work around. You have not eliminated anything. You can get the same effect on the lower end. You want people to stop doing something but by putting a higher tax on it you have just basically said 'only rich people get this'. Many would not consider that 'fair' either.

The word 'fair' is also used many times. It is being used in place of equity. Because it sounds nicer.

The laffer curve is a way to introduce perfect price discrimination into tax law. Getting it 'right' is the same issue that most economic models have. They can define pretty well their supply curve. The problem comes when you try to define that demand curve. That thing changes from day to day and whatever I ate for breakfast or I slept too long and feel kinda groggy your ceo said something on twitter. Economists can kinda get it close but it moves around too much for you to make good decisions you can make kind of hand wavy ones. The demand curve changes! As you want MR=MC. But that point is more like an area. If you get that wrong you can over/under charge and mess things up later on. The laffer curve can plot its supply very nicely. But it has the same issue as all other models defining the demand curve. The laffer curve demand plot is usually conspicuously missing when shown to people. As the laffer curve would also be almost by definition a monopoly position as only one thing controls it. So getting MR=MC right is even more important. That is just the 2d curve on that thing. The 3d would be some definition of equity. I do not know of anyone looking into that sort of thing other than the quants.

comment 6y ago · link · parent

Queue style systems usually start running into limits of the disk subsystem. Kafka is distributed log style. What that means is 'sharding' is basically built into kafka while MQ you need to build it in one layer up. Kafka can run into the same issues if you pick a poor hash for your partition. The messages per second really depends on the size of the messages too. For example in one of my tests I was hitting well over 10k-20k messages per second if the message size was 10 bytes (if my memory is working today). It dropped off dramatically as size grew. The limit was directly determined by disk and cpu. Switching to a different stack would mitigate some of that. But in the end if you expect scale (millions of messages an hour) you need a distributed system in there somewhere eventually.

Would I personally reach for kafka out of the box? Not so much. I personally think it is quite a monster to get setup correctly. If you need dual datacenter up time it also becomes very expensive as you need to buy cloudera or confluent. Or have a plan to manage it yourself which will be 'interesting'.

comment 6y ago · link · parent

82% 'unambiguously awesome tech' 12% 'bad stuff' 6% 'other'

comment 6y ago · link · parent

Not a bad idea. The idea of 'fizzbuzz' was to just filter out the total unable to do it at all people. Not to filter for people who can do coding interviews. Honestly, that these questions are out there and people study for them make an interviewers life easier. 'Oh you saw this problem online great! explain why it works'. It cuts through a lot of gruff. Had it happen a few times with the particular problem I like to use. If they can read cracking the coding interview and understand the problems in it and explain them back you are half way there!

comment 6y ago · link · parent

I personalty use both types. IDEs have their place. So do the 'minimal' editors. The biggest gripe I have with modal editors like vim is they seem to adhere to the path of most surprise instead of least. With most IDEs they try to get you into moving text into a file quickly. A modal editor you first have to learn how to just change modes. I can not number the amount of times I started typing and had the conclusion 'I have no idea what I just did to my document and what state the editor is in now'. Which is maximum surprise :) I get why they were made in the first place. They are a thing of teletype machines. Yet we keep this mode style editor around. It is interesting. I personally am kind of stuck with this right now due to the way my work manages machines. So I am stuck with whatever the box has on it. So minimal customization is allowed.

comment 6y ago · link · parent

Having used both types. Turning the pub/sub into a queue has some advantages in debugging and processing. Kafka has the idea of each queue being partitioned and having hash keys. Which means you can have a bunch of processes reading from the same queue and no one really steps on each other. Basically sharding at the data stream level with guaranteed ordering. It is a neat concept. Another is playback. Kafka uses a groupid/offset to keep track of where you are at. Another nice bit is messages are decently hard to lose as they stick around and you can playback by just moving the offset. The update is maybe 10 bytes into a memorybacked filestore. At first I too was skeptical of perf but it can scale very nicely and lets you scale a topic horizontally as well as vertically. In the background you have an expire time for a message. So maybe you only keep it for one week. Or you can set it to last years. For something like that you would be better off putting it in a db table though.

Idempotent is a good idea even in a system like this. But it is not always possible as your upstream data sources may be something very different.

comment 6y ago · link · parent

For a single process on one box with one thread you can use something like that.

If you involve more than 1 box that goes out the window. Sometimes you can still get 'one timestamp' by making something else the owner of the timestamp. It also depends on your resolution of time and the process that does the ingesting. For example if that ingest process has more than one thread to handle things you can still get out of order/sametimestamp if not coded correctly.

comment 6y ago · link · parent

That is exactly what happened with cable TV. Their main selling point was no commercials because you were paying for it. Now just sitting down and watching something on cable is a chore. I gave up and built my own library of things to watch. Was visiting some family and was watching a marathon of some show. It was the same 10 commercials over and over. Each break was usually 3-5 mins long. It was a good reminder of why I buy my own media.

comment 6y ago · link · parent

Wonder if NTFS 'lets' you. I know the API does not let it. But I wonder if you could get it in a different way. I know you can sneak case sensitivity in here and there.

Think I shall go ruin a VM tonight... :)

comment 6y ago · link · parent

I think it is the heavy handed 'do it our way our way or we deplatform you' that publishers do not like. They are in a position where they can make or break someone with a couple of lines in a config file. They have also been playing favorites in their other algs. The content publishers know exactly what is up as they have the analytics to see the drop off when someone tweaks their position. Tossing a billion out there sounds like they want to keep some of their favorites going.

comment 6y ago · link · parent

How true!

Take the original Star Trek. Its color scheme is 'iconic' now but at the time most people watched it in black and white. They specifically picked those colors to look decent on the semi new color TV's but just as importantly to not smear out into the background on black and white TV's. Gilligans island was similar.

comment 6y ago · link · parent

I would say bring it up on one of the MAME boards. They probably could direct you into the right direction.

comment 6y ago · link · parent

That may be true. I would have to go back and re-read the licence. In practice I do not think they minded too much so long as you were not claiming it as your own and were just changing it for your program only and not overwriting the ones in the system32 dir.

comment 6y ago · link · parent

MS outsourced/bought a lot of stuff so they may not have a clear line of release it without a bunch of legal work. Something like that can be done I am sure. But the cost would be decently high.

Also some interesting portions of the OS are under a 'view but do not touch' license already. Such as MFC, ATL, and the CRT and others. Depending on which SDK or Visual C++ you grab you can get whole examples of interesting bits of the code. I know for example one of the fun ones is the pipes screen saver code is an example in one of the Visual C++ disks (5.0 I think). I recompiled it years ago to make every joint a teapot and the hard one to find was the bend.

comment 6y ago · link · parent

I think he will leverage his other companies to use this thing. Starlink on a tesla truck/car/whatever or bundled with solar. That is an interesting use case. Also there was at one time many trucks rolling around the US with a satellite receiver/transmitter on them. They were bound to the US and setting up stations in other countries was a huge deal. But this changes that market radically. You will start to see a mix of cell and satellite again. If the costs are within the same range. For what the cell companies want for their data plans in some IoT cases I can see why he may have said 'I will just build my own'. Use the system to bring down cost per rocket also is a good use case. I think he is burning money on a few different things here. Rural ISP is not the only one. But it is brought up a lot.

comment 6y ago · link · parent

That was the same question I had!

I wonder if it was more regional or which school system you were in? I started stuff in 5th grade in the early 80s on a TI99.

The thing is it seems everyone even then wanted in on it. But not everyone could do it. Even fewer liked it. I do not see how that has changed much either. I ran a class for programmers a few years ago. By the 10th class they had all dropped out due to a lack of time and interest. I took and taught the class because I found the topic interesting. They seemed to only want in if it gave them some sort of advancement in their job. It would have if they had stuck it out. But it became 'too hard'.

comment 6y ago · link · parent

Or as I tell my wife. I am playing my favorite game 'updating playstation'. I turn the thing on so rarely by the time I usually do turn it on there is 1-2GB of updates waiting. Glad I have a semi decent internet connection these days...

comment 6y ago · link · parent

For my use case 2GB was borderline. 4GB was the sweet spot with Vista. 8GB was great but on the pricey side.

comment 6y ago · link · parent

And the 5400RPM drives most of them had. There was a lot of clearing out of old stock going on. Also sp1 fixed a lot of issues too.

comment 6y ago · link · parent

I use the indexer setup to ignore parts of my system. That works pretty good. Especially if you are doing any work with nodejs. Also defragging just the index file helps a lot. That thing can end up with thousands of bits all over the drive. Even with SSD it is not great as random seek on many SSDs are fairly terrible and contig read is amazing. One trick I also do is pre-allocate my swap file (I usually pin it to 4GB). As the default is to grow/shrink.. That can do the same thing as the indexing file.

Something also changed around sp2 with 7 and file writes. Files get fragmented very quickly now even when there is plenty of space not to do so. I usually would only end up with systems badly fragmented in XP if the drive is full (much like ext4) now it just does it as a matter of course and is acting like the old DOS alg of find the next free spot.

You can still turn off the readyboost/superfetch cache service (not sure where it is win10). If you have an SSD you should not notice much difference on or off but it can happen. Turning those off makes your free RAM act more like in linux where it just caches recently read items and gives it up right away if needed.

comment 6y ago · link · parent

At that time using XP was a very viable thing to do. You would pretty much never do it now. Think about it from a business perspective. Something goes wrong in the OS. At that time you would have had to have linux guru on staff to take care of it. OR you could pay 30 bucks for a OEM embedded copy. If something went kinda bonkers you could call microsoft and they would fix it. Their support on things like that is pretty good. At that time getting that sort of support for linux would have been basically nonexistant. Today you could get that kind of support for linux. Back in 2000-2004 it would have been tough. At this point no company is going to re-write the firmware on a machine they sold 20+ years ago unless they happen to be still selling that exact same model and you are paying for some awesome support contract.

comment 6y ago · link · parent

7 was just rebranded vista. It was basically vista sp3. MS knew the vista name had been badly tarnished.

The are several reasons why vista churned so badly at startup was the indexing service and the service that was trying to load everything into memory. Turn those 2 off and vista worked as good as 7, I did this to dozens of computers and the owners were so happy. Several other background services needed about 1.5GB of memory just to get the system up and running. This was when 4GB of machine was considered 'huge'. By the time 7 came out they had fixed both of those services and a 'crappy' machine had 4GB. Dumping it on a box that 512MB of memory and it struggled badly (512-1024 was the sweet spot for XP). 8GB for Vista and up and for proper use of that, you need the 64bit ver.

comment 6y ago · link · parent

Not very. It was 2 custom controls. The OS came out with built in ones that did the same thing but fit the tooling better and had a few extra things my code didnt. Great learning exp on writing custom controls though! It brought forth my 3 rules of windows programming. Always read the docs (then re-read them). If MS has a bit of GUI that does something there is usually a control in there to do it. For every function in windows there is usually an 'anti' function, they are to be called FILO.

comment 6y ago · link · parent

This batch of chips looks like it was designed for someone in mind that was going to buy a bunch of them. They then tossed it over the wall and said others can get it too. Probably some sort of IoT type situation where power is a concern with an occasional burst of work. Something where you are 95% idle and then that 5% you want a bit of perf within a particular power budget. Something like a TV, cablebox, or a wake up sample send data in goto sleep situation.

comment 6y ago · link · parent

Also dragging in a second library also means you are pulling in their issues too. Sometimes a quick little function is all you need. Sometimes though it is so wildly better than what you have it is worth doing. It is about time and cost. One project I wrote a whole subsystem to do a particular thing. On a revision of the OS they had the same thing but way better. Tossed out every line of code I had written and used that. But without writing that thing I would not have know if it was worth it or not.

comment 6y ago · link · parent

Those boards were the right form. The problem they did not realize was their price was 5x what it needed to be to compete.

comment 6y ago · link · parent

I was defacto 'network admin' at one company. One guy I warned off the porn (dont care you look just do it at home on your own line). He got mad and yelled at the owner and got my privs revoked on the network by bullying one of my other co-workers. My boss took them back and then added even more just to make the guy look bad. Lesson learned. Just block it and do not say anything if you are not in authority to say so. If they complain 'you will look into it'.

comment 6y ago · link · parent

I am not a NY person. Yet I do this. One of my parents is from Buffalo though. I had no idea others did it! I thought I had a weird 'rude' quirk that I had to stomp down. I had to distinctly learn how to wait for the pause and how to interject at the 'just the right moment'. Instead of just getting it over with and blurting it out. I know there are all sorts of accents and customs. But today I learned about this one. Cadence is important too. I took several of those online 'where are you from' verbal tests over the years. Those can be kind of fun, I usually get 3 very different places. One somewhere I have never been and the other 2 are where I grew up and where I currently live. I talked a few dudes in another country to take the test. It thought they were from the New England area.
1
545556
59