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 know it is a hidden one, I should have been more clear in my statment. I found stride to be better in my experiments in my code for many of my use cases. It is a mater of finding the correct stride for your code (sometimes I make it self tune itself). If you pick stride x2 you will waste memory in some (many) cases. Some libraries calls touch the whole thing and make sure it is 0 and paged in. Usually you want to find a balance of 'not a lot of waste and not a lot of speed loss'. Now in some cases yeah x2 on every alloc where you bubble over is the perfect choice. Other times the O(n^2) is the right choice. I found stride to be a nice compromise. As many times you know up front what the block size is. Finding a good compromise on slack is sometimes tough. Especially if you have buffers that are discarded and re-used over and over.

One project I used a compromised stride alg. Basically if it every had to double create one of the strides it doubled the stride from then on. So it would say start 'cold' at allocating 4 bytes (you get 4, 8 or 16, usually at the bottom anyway). Then when you have to allocate 2 blocks in a row to fulfill you double the stride for the next time (which is coming in on the next tick of the for loop). It was not perfect but it also did not balloon the memory wildly out. This was because of the way the incoming data was structured. But gave a decent hidden average of size. It ended up very nicely between O(n^2) and O(n). Both speed and size wise.

This is why I have the fancy CS degree. To know the trade off between runtime and space usage. If you blindly pick algs you will have a 'bad time'. Sometimes space is of consideration (you have 256k total in your box), sometimes speed is a consideration (I need this to finish in 3ms). Pick one alg over the other and you can have a bad time in some cases.

comment 5y ago · link · parent

I personally use a 'stride' instead of doubling. On small sizes doubling works OK. But when you get past about 8k-16k the empty memory starts to stack up.

comment 5y ago · link · parent

It is interesting to watch scrumm. I have seen it broken a few times now. Every single time it started off just fine. Then someone decides the process was more important instead of the intent. Then everyone just went along with it. Even worse someone knows they 'still dont like it' but keep tweaking it but making it worse instead of saying 'yeah that did not work at all'. Or my favorite is someone blows in and finds out you have been skipping one ritual (because it was low value to your team). Your team is then declared 'broken'. It is like there is some flaw in scrumm that allows for anti patterns.

comment 5y ago · link · parent

It seems to be a common opinion, I see a lot.

What many do not realize is the 'build your own' is going on (I can name at least 4 YT replacements, some better than others). But they are dismissing them with the same reasons they are kicking the creators off the 'mainstream' sites. So you see a lot of YT refugees and many existing YT creators 'splitting the difference' basically they upload it to both YT and several other sites. There is almost zero downside in doing so really.

Eventually someone will click it all together in the right way and create a decentralized uncensorable thing. At that point the internet will become a lot more like 4chan.

The old adage is 'the internet sees censorship as damage and routes around it'. It just does not happen overnight though.

comment 5y ago · link · parent

Watch a few Jim Browning vids on YT or some of the other scammbaiter calls and you will understand better. People are mailing these guys 20k in cash in fedex boxes. Then mules here in the US pick it up at an airbnb/hotel/whatever (they hang around and wait for the truck to show up and claim it), take it home take a small cut and wire the rest along up the chain. You get a couple of those and it pays the whole call center for a few months... They estimate the straight out scams are around 20 billion a year. The quasi 'legal' 'cold call' stuff is probably much higher.

They are targeting older people who maybe let their spouse take everything and that spouse is dead.

comment 5y ago · link · parent

I accidently did this! I moved away from an area and everyone I know basically did the same thing. So pretty much if it is that area code almost every time it is some spam call. I have been playing the 'clueless old guy' on some of them. It is kind of fun if you are bored. Most of them are left unanswered. Last year a new type showed up, VC guys trying to buy my house (usually well below market rate).

comment 5y ago · link · parent

If I am reading this right (and you seem to have read it the same way) it ends up creating a browser fingerprint. Visit 1 FLoC and they have no real idea who you really are. But if you visit several they could easily tell. Which is similar to how they use your installed list of fonts to identify you. But more formalized?

comment 5y ago · link · parent

I used to write that sort of software. We would coach the dispatchers on how to use the system. If they used it that way most of the time the drivers would start to vandalize the system in some way pretty much every time. We would then talk to the drivers and make sure the dispatchers would use the system correctly too.

Every group though would go though the 'you are spying on me' to 'love it'. Recover 1 or 2 stolen loads and suddenly that entire terminal would love the thing. Also at the time electronic logs let most drivers get a pass from the cops. The cops would take one look at it and nope out. I doubt it is that way anymore. Most of the time we encouraged the dispatchers to look for deviation of norm and encourage the drivers to note it (most systems have this built in) and it is in the law anyway even when you had to do it by hand. Mostly it caught that one group of dudes who had particular strip joints they would swing by on the clock. Which was a more of 'dont care you go, but I am not paying for it'. This usually made them even more mad. Mostly because of embarrassment, and the loss of income. Your idea of 'average it out' is exactly how it used to be done (and is still in some cases). But the thing is LTL, short, long haul has razor thin margins. If your average is higher than someone else's they will beat you out in the end. You add in more tracking (because your competitor will) as you need to find those spots where the average is not right and skewed because of years of doing it a different way.

If you have dispatchers getting mad for a 20 min deviation then the dispatcher is using the system wrong. The proper way to correct that is for the drivers to talk to them and use the built in messaging systems. If that does not work, document it and take it up with his boss or the shop steward. The dispatcher is probably hot because he had to pay OT to 3 other guys who should have clocked out 2 hours ago because you are late and now they left and no one to unload your stuff. His boss is mad at him because he is 6% overbudget again this month. All because some DOT guy in another state is 6 weeks behind doing their job and has half the interstate down to 1 lane for 30 miles.

Given all of that. I would never be a driver. It is a low trust environment... Hence the tracking.

comment 5y ago · link · parent

Also for #2 currently the company I work for is 'everything you write is ours'. Now in practice they do not really care but I really do not want to go through the months of BS paperwork (and yes it is that bad) just so I can put some project I have on github. So at this moment my github is mostly just 'git' fiddling things. Where I use it to fiddle with remote git, or some weird thing I got git into and how to fix it. No real code there at all. So everything I have is private.

comment 5y ago · link · parent

Can not remember where I heard this theory but it goes something like this. As more music is created the value of existing music goes down. Basically the idea is adding 1 more song to the pool of millions of others has little value no mater how good/bad that particular song is. As lets say it is the most amazing song ever. I still have a library of millions of other songs to pick from. It is an interesting economic theory.

The other problem for music is 4 fold. 1) many people use 'radio' basically spotify or some streaming service like it. 2) Most people buy songs not albums 3) many times people 'age out'. 4) I can choose from a catalog that is decades old all of the previous years of top 100s and get something good to listen to.

Now there are exceptions where there are collectors in that they must buy everything. But most people are not collectors they are renters or listeners. Many people just want that one song they like and maybe a couple of others. So you can not make 10-15 off them, you make maybe 1-2 dollars, and depending on your contract much less. Also people 'age out'. For example most of the artists I like most are 'done'. They have either disbanded or just not making anything new and going on concert sales. I also have little interest in newer stuff (because I no longer have the inclination or time to devote to it that I used to). Sure I buy a bit here and there or listen to something from streaming but nothing like what I used to do and own hundreds of CDs.

comment 5y ago · link · parent

Yeah that is an interesting gamble on the part of Micron (not a bad one at this point). In they are betting xpoint will not deliver the price points needed to compete with DRAM, might as well put a node in the same place with similar latency as xpoint. Intel and Micron were seeing xpoint as a layer in memory. With DRAM being a L4 cache to the data (or some mix). The problem is keeping xpoint prices bellow DRAM yet high enough to keep the thing profitable. Fiberoptic links between the two nodes at this point would probably really complicate things (at this point) as the tech just is not there yet. But if they can get it to work the latency should overcome some of the issues of a secondary node holding shared memory.

All of that because Intel is having trouble moving to 11nm. All of their features were tied to that node process (tick tock). It is why we are seeing Intel back features from the 11nm node back up to 14. As their competitors are not sitting on 2017 tech and milking it. They are moving to the new stuff. xPoint was interesting 5 years ago. When they could make a 128GB stick for half the price of DRAM one. But they did not have the pins on the chip to support the larger workloads. DRAM caught up in size to overcome it. They have them now. But now that config is not as interesting.

comment 5y ago · link · parent

ARM is all over the place with its ISA. x86 has the benefit that most companies made it 'IBM compatible'. There are one off x86 ISAs but they are mostly forgotten at this point. The ARM CPU family itself is fairly consistent (mostly), but included hardware is a very mixed bag. The x86 has on the other hand the history of build it to make it work like IBM. All the way from how things boot up, memory space addresses, must have I/O, etc. ARM on the other hand may or may not have that depending on which ISA you target or are creating. Things like the raspberry PI has changed some of that as many are mimicking the broadcom ISA and specifically that with the raspberry pi one. The x86 arch has also picked up some interesting baggage along the way because of what it is. We can mostly ignore it but it is there. For example you would not build a ARM board these days with an IDE interface but some of those bits still exist in the x86 world.

ARM is more of a tool kit to build different purpose built computers (you even see them show up in usb sticks). While x86 is particular ISA that has a long history behind it. So you may see something like 'Amazon builds its own ARM computers'. That means they spun their own boards, built their own toolchains (more likely recompiled existing ones), and probably have their own OS distro to match. Each one of those is a fairly large endeavor to do. When you see something like 'Amazon builds its own x86 boards', they have shaved out the other two parts of that and are focusing on hardware. That they are building their own means they see the value in owning the whole stack. Also if you have your own distro means you usually have to 'own' building the whole thing. So I can go grab an x86 gcc stack from my repo provider. They will need to act as the repo owner and build it themselves and keep up with the patches. Depending on what has been added that can be quite the task all by itself.

comment 5y ago · link · parent

Very much so. It also creates some interesting possibilities. Such as a memory unit that can be shared between a few computers and then reconfigured as needed. This would be useful in such things as VMs and docker units and dynamic scaling. They probably would not be located in different buildings. But probably in the same rack or adjacent. You can see some of this sort of thing with software defined networks and storage pools.

comment 5y ago · link · parent

I got from the article that she does not really know. She had been so set on the particular career and 'getting to know the right' people she did not think through what happens when you are 'the man'.

Now 6 mil sounds like a lot (it is). But it is also easy to get in a habit of 'not worrying about money'. It sounds like she is setting herself up for that too (the cheese thing). It is ok to splurge but doing it every time and you will quickly find that money depleting. One lady I know got 15,000. In her social circles that was life changing. Along the lines of not worrying about many bills for a few years. It was gone in 3 weeks. I also feel that ladies assessment of wealth managers. Many are fairly weak at it.

My advice to the young new millionaire. Do nothing yet. Finding people to help manage your new burden is going to take time. Also watch out for the richer sharks. Many of them realized the best place to get money is from the newly rich with schemes of investing. Many investment advisors seem really fixated on what % of your money they are going to get per year. All the while telling you how they will grow it. Then drop you into index funds (that they get a kickback on). You could also think 'i know i will donate it' well that is an option. But take the time and evaluate them like the wealth management people. You will find the same people there. Ask around wait and see, do not let the money burn a hole in your pocket, evaluate. The best way to grow your own wealth and help out is to build things. Start a business. Maybe become a landlord that specializes in low income? Help create jobs in that segment? Instead of dumping it into some wealth management fund who is trying to build yet another 5k per unit per month condo building. Creating jobs and helping people level up is the best thing you can do with your money social wise. Giving it to someone else and hoping they get it right may or may not work.

comment 5y ago · link · parent

For someone making 20 an hour that would amount to about 400-2000 less per year (1 to 4 percent). With nothing to really show for it at first. At my current pay scale I would grumble about that amount but not be too worried about it. But at the lower end it matters more and I would probably be very angry about it.

comment 5y ago · link · parent

Very true!

If you look at what most graphic pipelines for 1 pixel the amount of calculations for that 1 pixel is not very much maybe a few dozen instructions. But at 1080 that is a lot more (about 2million times more). GPUs are exceedingly good at doing semi small programs over and over across 2000+ compute units. At best in a CPU you may get 64 if you have a super nice top of the line CPU (reality is 2 or 4). The graphs where that change over happens is going to vary considerably across workloads and instructions used. In most cases currently it heavily favors the GPU. Throw in branching or something like that and CPU might become more favorable. But you still have to try it out.

In the case of this article. They are using hashing/caching which, yeah, should produce a fairly nice speedup. Basically the old speedup trick of do the work once and keep the result. But that probably might not translate very nicely GPU. Oh you could get it to run but it may not be as performant. In the game world it would be like what we used to do with sin/cos and just have a lookup table instead of calling the instruction. We just precalled it and had a copy laying around in an array for the most common cases. So it was just a memory lookup and very little compute and keeping the cached result. BUT that does come at a cost if you have to branch on miss.

Now if you could combine the two ideas. Maybe with some sort of mask to the GPU to say 'do not do any work here as it is done already and work on something else' and pre fill stuff in this could be an even more interesting idea.

comment 5y ago · link · parent

Just look for that PK in the first 2 bytes of the file and it is a good chance it is a zip file. That jar/war one has saved me a few times in figuring out what exactly the compiler did to a program.

comment 5y ago · link · parent

I had the same reaction when I found out word docx files are just zip files with a bunch of xml in there.

comment 5y ago · link · parent

I had the same feeling. It seems the two things here in question is my phone number (which luckily I never gave fb), and my email which it seems every spammer in the world already seems to have?

I noticed this even back when phonebooks were a thing that a 'private' number was not something random people should call. Yet the reality is that number is kind of public but not. If you did accidently call one you would get 'how did you get this number' from the person you called.

Judging by the amount of phone calls I get these days. They have also already correlated a huge number of these. Short of me changing my number every few years there is not much I can do. I am getting cold calls on property I bought 20+ years ago and them asking if I want to sell.

At the bottom of this though is the 'data' these companies are scouring on us. Then cross correlating it. I have for the past few years come to the conclusion data is harmful to keep for both the end users and the companies that do it. Companies like google and fb seem to be of a very different opinion. Companies should be going into collecting data with 'how do we get rid of it after some period of time', not lets buy more HD to keep it on.

comment 5y ago · link · parent

I am currently fighting one of these 'sane defaults'. It is sane for one of the programs the output data goes into. Yet for a different program (and per spec) it is a different default expected. Hey they have a spot to change that default (sweet!). Except all of the plugins, and mainline code itself does not use that (ugh!). It is a ranges from hard coded, to using a different default, to using the configurable one. So here I am writing yet another plugin to override what these other plugins did. Usually like you said though 99.9% of the time it is just fine the way it is.

comment 5y ago · link · parent

point taken! I like to use the HELOC as it is something most people can do.

comment 5y ago · link · parent

Let me introduce you to the HELOC.

Wealthy people do not take out mortgages. They borrow cash against their existing wealth. They then buy things with that. Then pay back against the loan. Writing it off too (as per tax law). The 'rich' have sold everyone a bill of goods how they are redoing the tax system for 'the people'. When the reality is they are writing a bunch more exemptions for themselves.

You can do the same thing. Many people when they figure it out 'level up'.

comment 5y ago · link · parent

Oh good I am not the only one. Direct measurement would produce the best result here. Not a guess that AI has with 83% confidence level. I usually find a tailor and buy something from them and in the process they will give me all the measurements for everything else.

comment 5y ago · link · parent

Even star wars was a failure.

comment 5y ago · link · parent

386 protected mode was not tied to 'boot from floppy'. It was more of a do these set of instructions and you can flip the cpu in the 386 mode. Many of us had an extra boot floppy that would not load xms or ems which would conflict with protected mode (as it wanted the same memory as those extenders). I personally used a 4dos script that would turn things on and off with a set of prompts if needed. Special boot floppies were pretty much the norm for other systems though as they used it as a form of copy protection. Many of the later origin games would flip themselves into protected mode so that special path was needed. It may have been one of the first as that was right around the time many games started using protected mode (ultima 7 was another if I remember correctly). As memory prices has started to fall a bit and and it was 'only 150 dollars per MB'

comment 5y ago · link · parent

Getting metadata right is honestly an issue that has been there for a long time. ID3v2.3 or ID3v2.4 are basically what you have to work with. Many programs also use custom TXXX or DIV tags to embed whatever into. So even if you get it right in on prog it is a disaster in another.

ID3v2.4 fixes many of the issues. But very few progs use it or default to 2.3. Plus the way an album can be sliced and diced for metadata is truly breathtaking.

Then add into that some of these programs try to use some form of acoustic id to try to find where it belongs. Which does what you are talking about. So you resort to setting the file read only so the program will not mess with the tags.

Then on top of that many of the online sources can be in bad shape for bands or releases. AC/DC is most certainly not alternative. But it is tagged that way in some databases. So data quality goes all the way from 'someone spent a lot of time getting this right' to 'someone uploaded whatever was in their mp3 library and called it a day'. Also even the data printed on the pages that came with it may have spelling errors and differences in spelling for individual tracks and artists. Some artists have 3-4 different aliases which one do you put it under without messing everything up or leave it stand alone and you forget you even had it.

Also differing releases is a pain too. Some albums have 40+ releases. Which one do you actually have. Does it really matter?

comment 5y ago · link · parent

Also many hardware vendors use their stack to differentiate themselves from other competitors as at the end they tend to 'do' the same things. That stack keeps at bay people just copying their design wholesale and then undercutting their margin and using their drivers. Then even if they are willing, they many times included some lib they bought from someone else. They may even have the full code to use and have changed it as needed. But that 3rd party is usually some consulting group and guess what one of the very few things they sell is. It is a huge mess.

comment 5y ago · link · parent

Also sometimes the best cure is more practice. You need to replace one set of habits with another.

Start small. Like how to do a flavor of integration testing. Perhaps take some online courses? There is also a huge amount of YT vids out there.

One thing you may need to do is go back to the basics. Also make a task of it. Have a set time where you for 1 hour a day 'learn new coding skills'. Such as refactoring, code style and when and why to us it. Also find a project that you are interested in and follow it. I learn quite a bit doing this I have a dozen or so I follow and watch the pull requests to see interesting uses of code and style, even if I disagree with them. I do not contribute to them but I follow the style and commits they do. You can learn a lot by doing your own code reviews of other peoples code. Seeing how other do it and work on that.

comment 5y ago · link · parent

You have a point. But a full cage is probably unnecessary for some devices. Back when I worked on things like this we had a bucket. It was the 'out of coverage' test metal bucket. You had to be careful to get the whole wire harness inside the bucket or it still could sneak in there (as cell coverage is sneaky). I think someone picked it up at local Tractor Supply chain. Someone else had found a small decorative bucket that was meant for plants that just happened to fit perfectly over our smaller IoT devices. It was maybe 5 bucks of materials. Also you might be able to get away with a simple shed that is made out of tin. Havent tried it so your mileage may vary. Retrofitting a house would probably mean taking down the existing exterior or interior walls. The materials would not be that expensive. Most of your cost would goto hiring someone to do it right.

The big downside to my approach is heat dissipation and servicing.

comment 5y ago · link · parent

Oh it most certainly simplifies things. I am looking at half the number of boxes needed to run. Which is not insignificant in my cost structure.

What is the migration strategy here? Is it doc'd up yet? I am having flashbacks to migration for follower partitions recently which required a decent amount of pre planning of partition layout.

Also as it is pulling in the duties of ZK into kafka what sort of CPU/memory changes are you seeing? Is it 'meh' or all the way to 'you may want to add a couple of CPUs and a few more GB'? Also is it working ok with the stretched cluster?

Also if you want to hit an interesting market you may want to look at 'does it run OK on a raspberry PI'.

1
484950
59