Better HN
topnewbestaskshowjobs
Log inSign up

sumtechguy

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

Submissions

comment 4y ago · link · parent

A place I interviewed at 2-3 years ago 'what source control do you use' 'oh sometimes we check things into sourcesafe, but usually just share the folders'.

Surprisingly it is a good way to filter companies still!

comment 4y ago · link · parent

Oh very true. It is what I keep running into when trying to create something like this. I end up with something where 'the buck stops here' kind of deal. There is a secondary problem too of transfer of ownership. Companies split up and buy each other out all the time. So you have to have a way transfer ownership too. Which in purely technical terms looks like someone else is squatting. But they are not you want them to have it. The existing DNS business system kind of grew into all of this. As in DNS today right now does not preclude anyone not making their own set of domains. You probably could make it very decentralized just using the config options. The problem is someone 'reputable' has to verify. That becomes a weak point and place where someone can gatekeep. Adding any sort of monetary advantage will also unfortunately motivate people to gatekeep. However, money keeps the lights on...

comment 4y ago · link · parent

Ah ok. I was trying to figure out how you would fix say abc.xyz is announced by someone name squatting. Then the real abc.xyz comes along and says 'hey wait'. First come first serve fixes someone else coming along and stealing but not squatting. In all of the systems I come up with I always end up with some sort of central trusted authority/machine saying 'this is ok, that is not'.

comment 4y ago · link · parent

In a decentralized system how are you handling the bad actor problem? Such as 2 entities claiming they own a namespace?

comment 4y ago · link · parent

I can do those leetcode bits. They just take time and energy. They can be fun in their own way, but I grew bored of them quickly. But all of the things you listed and leetcode have one glaring difference, collaboration. leetcode is a very solitary experience. You are basically picking at a puzzle by yourself and 'grind it out'. Yet all the other things you listed involve making everyone around you understand those bits. That is almost an entirely different skillset. Hell yesterday I sat back and just listened in a meeting to 3 different people state the issues they were having. I was able to help each one. Because 'been there done that', and another skill I picked up over the years listening to what everyone is saying. Not one bit of that was leetcode. But organizational and the same errors many devs stub their toes on. "oh go talk to so and so about that", "which error are you seeing in the log? oh that means blah blah blah, go talk to so and so and have them fix the wizzy wuttsy". Most issues in most organizations is either money, time, or knowing who to talk to. Big O, hash tables, CS style issues, are how you build the thing to sell. But day to day the business is run by people, time and money.

I have been meaning to go back and grind some of those problems out again. Just to refresh my memory on them. But notice I have to 'refresh my memory'? These problems usually do not come up. You are usually clicking some if conditions together and a few for loops. Nothing fancy. The interesting bits are figuring out someone elses framework using docs written in an afterthought and what 3 other methods do I need to call to fill out param 4 of this method just so I can get this thing to do what I want.

comment 4y ago · link · parent

And they pulled some of that into 2/3. The oracle is another form of control. She even told Neo he was not the 'one', and I suspect said the same to the others. Until he stopped believing their lies he could not be the 'one'. But he needed a push, the love for Trinity. So the oracle set that up. Another form of control.

comment 4y ago · link · parent

Many words are spelt the way they were pronounced when the word was invented. However, that becomes interesting when you have hundreds of regional dialects and accents, mash it through 2 different languages and 500+ years since the spelling was set down. Take for example the word resume. Without the tick mark it means to restart something. Yet it can also mean your work history with and without the tick mark now. That is because it is a pain to type that word out with the tick mark. So the spelling of the word is changing yet pronounced in 2 wildly different ways. You have found one of those 'transition' words. Where it is changing but the spelling has not caught up yet. This comes up from the fact that the current alphabet has 26 letters yet there are at least 40+ phonemes. This weirdness comes up when 'english' borrows a word from another language that has one of those 'others'. The alphabet just does not really cover all of them in all cases. So oddities happen, and accents happen so you get weird bits like that. We paper over it with smashing together letters. But again because of accents that does not always work well.

comment 4y ago · link · parent

I actual like vs (but that is more inertia than anything). But that is one annoying thing about it. The features are usually there, but buried in some inscrutable way. It is one of the more robust IDEs out there. But you kind of have to do it the VS way or you will get mad at it.

There are hundreds of things the prog does. But literally have no icon to click on or short cut bound to them. You have to dig them out of the options and bind them or add them to a menu item to even get at them. Its been like that since the mid 90s.

comment 4y ago · link · parent

For windows 10 'defrag' can do this. defrag /X

If I remember from the last time I used it, it is not nice about it. It may create fragments. It consolidates the free space to the end of the drive.

Does not always work. Especially if the drive in question is active.

comment 4y ago · link · parent

2,281 extents found

hmm that does not seem right and off by an order 10x...

comment 4y ago · link · parent

In Vista defragging was one of my goto's for getting the thing to act nicely.

I would use process monitor from sysinternals to measure which files are loaded as the system boots. Then use jkdefrag/mydefrag to take said list and rebuild drive into different zones. Try to put small files that are used together in the same area of the disk. Put huge things like 'isos/vhds/acrivezips' etc near the end of the drive. Put small frequently used files near the front in used order if possible. Smash out any gaps if possible. This helps NTFS from creating more fragments. Defrag any files that 7zip unarchives immediately as it has a bad habit of creating highly fragmented files (contig from sysinternals). Try to put file index in its own 'area' as one reason it runs so badly is the drive fragmentation it causes to itself. It got so bad I would put the index on its own partition sometimes. Try to put files that fragment frequently in their own 'zone' as NTFS will tend to pick the next available gap to where the file is (not always).

That made a real noticeable difference in perceived speed.

These days with nvme and ssd I might just defrag the files themselves once a year if I feel like it. There is a difference but the perceived is pretty much not there anymore. The difference is there is a chain of sectors in the MFT that windows will have to traverse if you ask for something in the middle of a file. That is about the only thing you save with newer drives. ext4 has a similar issue. But it seems to be better about picking spots where it will not fragment. It will however fragment badly in low space conditions. Most filesystems will.

comment 4y ago · link · parent

The bound editions are nice as well.

https://www.amazon.com/Simon-Travaglia/e/B00JCJDZCU

comment 4y ago · link · parent

This sort of censorship has been going on for a long time. For example 'oh fiddlesticks'. They are still swearing. But some sort of odd self censorship happened.

It is an interesting exercise for me. Try not to swear. No substitutes allowed. It is oddly difficult for me.

comment 4y ago · link · parent

What I have been pondering again in the past few days is dependency management. For many projects this is a open pom file pop in the new version, recompile, deploy and bobs your uncle you are good.

But some projects are little more interesting in that they include libs like this, or include libs that include it. It is part of their foundation/framework. So you can still put in override and ignore what the lib wants.

But now when it comes time to upgrade that top lib maybe there are 6 newer versions of the one problematic lib you were concerned about today, but now it is a year later and you forgot about it. What is the mental context to say 'oh yeah go back and check that'. You may have got used to ignoring the 'hey you are overriding that jar file'. Are you going to do that for all of the libs/jars this top level framework drags in?

It is not just java that has this sort of issue. NPM (though you can float the versions at least), nuget, rust, C++ containers, etc. A lot of projects out there have taken on this maven central style building. Which is a huge productivity boon. But in many ways has not helped us with dependency hell, and in some cases has made it wildly worse. I see simple projects pulling in 150+ items in some cases. What is the mental context of actually managing that? And have real fun if your project depends on a 'dead' project where there are little to no updates.

This one is at least high profile enough that many people are revisiting old build chains that have long ago been forgotten and updating them. That will kill out many other vulins that have been lurking. But many will just do that one jar set and call it a day. But you are probably right we are going to get see a few of these style of attacks.

comment 4y ago · link · parent

For me luckily the guy who had wrote the whole thing had wrapped the set and wait part. So I could put in a lock in there to mitigate the race condition. I also yanked out using the windows message passing parts and used a shared memory space (memory was tight and the timing was unfortunately critical, but I could mitigate it by blocking if the memory space was full, not great but it worked). I have used peekmessage many times but I usually use it with some sort of sleep condition. It gives a weird kind of 'janky' feel to the application but in some cases it works fine. These days I would use a proper message passing queue system and a thread instead of trying to hijack the windows ones. It is the 'wait' functions that are the culprit. They basically only wait once you call them. Anything outside of that, your problem and you end up wrapping the things in locks to get it to work right as the 'wait function' is basically a shared resource in windows world.

comment 4y ago · link · parent

Java is kind of 'heavy'. One project I was changing yesterday. Well over 150MB of jar files dragged in. There is maybe 50 lines of total code in the whole project. You put in the right depend in your pom file and it seems like it drags in half of the java world. Plus whatever jar files are flatpacked into those.

So with the fun bit of flatpack you have to look at all of your dependencies and see if they are somehow sneaking that bad boy in. Luckily most just use pom depends and just pull the jar in and you can override at the top level.

comment 4y ago · link · parent

Doh! I should have got that. I should not have messed that one up.

comment 4y ago · link · parent

25-35 an hour for that sort of work is absurdly low. Especially for someone who has an established emulator in their resume. Then on top of that the author had an existing job in SV so they knew about what sort of hour range they should be getting. They doubled it but then bumped out the time from 4 to 6 months of work. They still have not shipped 2 years later. Now taking pre orders, which I personally skip because of the possibility of them not ever shipping. So it would have dragged on. Then the ask for delaying the emu itself until they shipped. If they had agreed to that they would have had to sit on a release for nearly 2 years at this point. There is quite the cadre of hucksters in that area of software/hardware. Also I would posit that the task for 300-400 hours was probably under estimated by a factor of at least 3x, probably more as it was 'part time'.

I have seen this sort of thing before in the 'real' industry. You work for a hardware company and they see the software work as a 'extra' that you just bash something out and hope for the best. I have went out of my way to not work for hardware companies anymore. Many do not 'grok' software. That the hardware and software have to work together or they both fail.

This sort of story is probably better on r/choosingbeggars.

comment 4y ago · link · parent

One company out there 'staff' is entry level. Whereas in all the companies I worked at 'staff' was a very prized title to have. Another company I worked at my title was basically just some random bits of roman numerals and something that sounded vaguely like a engineer. I usually just put sr software engineer/developer depending on the company and role.

comment 4y ago · link · parent

260 is the typical limit. NTFS allows for 65535 per filename and I think up to 65535 deep on directories (I could be wrong on the second one). Win32 on the other had usually caps everything at 260 total (MAX_FILE_LIMIT). Most of the docs and examples out there use that. I would bet that it is some sort of FAT limitation.

This can be annoying if you move a drive between differing OS's and the NTFS bit on the other side does interesting things. NTFS is also case sensitive. But the win32 layer 'hides' it mostly, there is a flag to turn it on. Unless you do something like write from a linux box and you can end up with 2 files named the 'same' but different case. It is also possible to trick windows into doing it but it is tougher.

comment 4y ago · link · parent

Ah that makes sense. Figured it had something to do with the message pump (the mouse move is a classic tipoff of that pattern). Yeah those message semaphore functions are seriously neat. But they have a few sharp edges around when they are not listening (race condition usually). I had something similar with pulseevent a few years ago. Pulsing while processing would sometimes miss the event because there was nothing waiting it was busy doing things, and would loop around to wait again but not do anything because it 'ignored' the pulse. In that example you posted it depends on when the 'extra' message shows up. Depending if it is before or after the peek it will sometimes work (race condition).

comment 4y ago · link · parent

winget or chocolatey can help with that. Just keep an eye on the versions served up sometimes they can be a bit old.

comment 4y ago · link · parent

Some of my family has reverted to just Christmas greeting cards. We were basically exchanging some amount of equal value cards. We decided to just skip that and get together and have a bit of food and company. For other parts of my family getting together and opening presents is part of the get together and has been a tradition in our family for 50+ years. We open our presents and then have a huge paper wad fight. It is kind of fun and trying to tailor the present to the person can be fun. But yeah if you are down to just exchanging gift cards. Just skip that part.

comment 4y ago · link · parent

Your guess seems better than mine. I was thinking they wrote the code wrong and somehow attached itself to the message pump in the processing path. Hmm, that could still be it and they were using a timer to tickle it here and there. But that is all speculation. But waving the mouse around to make run faster really sounds like a message pump issue. Or maybe they used getmessage instead of peekmessage?

comment 4y ago · link · parent

agreed. 1 to 1 would be an interesting result and probably a linear set of curves. But some curves look more like log scales so the effect depending on the slope of the curve could be wildly more or less.

I agree the classic diagrams are kind of crappy. As usually they are very simple just for demonstration. But to make both of those curves is usually more like a N dimensional curve. But remembering back on my econ classes I took they were excited about point slope formulas and maybe a mix of linear algebra in the advanced classes. Which was amusing from the CS/Math background which was my major.

comment 4y ago · link · parent

It is interesting they consider it a paradox. When the demand curves show it. As making something more efficient moves the supply curve around (and moves where MR=MC is). Or in econ 250 class speak 'shift the supply curve right'. I think the 'paradox' comes in where they do not consider there is more demand on the other side of lower prices? Not all goods goto infinity on cost vs demand curve. But some sure act like it.

comment 4y ago · link · parent

Also they could just pull the listing then go to some temp agencies (for example manpower, randstad) and say 'i would like to hire 10 people that have these qualifications'. I know a couple of people who do not even look at company websites and deal only with companies like this for these kind of jobs. They are perfectly fine being forever temp.

comment 4y ago · link · parent

A PS5 and a PC of the same specs is comparable in price. Also a PS5 is currently 1000-1200 depending on bundle. The I/O bit with ps5 is interesting for loadtimes and open world games, though it is getting tougher to buy a PC without nvme. The current xbox looks interesting, but MS is basically pushing 'also release on PC'. Like I said I have owned many generations of consoles. However, this gen I am finding it tough to justify also getting one in addition to my PC. Even the PS4 before it I bought only because of one silly unique game that was not on PC but on every console. Something like the n64 when it came out vs the PC it was a no brainer and 'here take my money'. I am not getting that with this gen of consoles. If you want a console over a PC go for it, seriously. I personally am finding the distinction hard to justify with the current gen of consoles.

comment 4y ago · link · parent

Considering the diff between a pc and ps5 is fairly minimal other than the storage i/o. PCs are already 1-2 gens ahead in CPU and GPU. Any sort of optimizations/tweaks they make for the PS5 are going to be on the PC very quickly as the archs are basically the same. Now I own a lot of different consoles and have in the past built my own PC. However, these days the difference between gaming on a console and PC is so 'same' I have not bothered to buy this generation of consoles (I usually get 30-50 games for each console and generation). The switch is probably the most innovative for this generation. With the xbox and ps5 being hardware locked PC's and some interesting exclusives. But it looks like I am going to be buying uncharted 4 again :)

comment 4y ago · link · parent

If you have to have 5 9's starting with any cloud service is pretty tough sell at this point. You can build that type of system ontop of them. But it takes a willingness to also build your own and use competing services adding even more complexity. The BYO or competing services bit is so you can keep the lights on even when the cloud eats it, not if. Part of 5 9's is planning for catastrophic failure. Things like 'what if the load balancer/router/backhaul/dns burns out, you have a spare on hand? Then what happens to services where you had them sticky?' Even then what if both the primary and secondary are out? What then? Lots of planning and making sure you know what to do when each of those cases happen.

The nice bit though is many services can go down. Yeah it stings a bit (money, reputation, time, etc). But overall it is not that big of deal.

But for the places where you can not go down. Tons of planning and tons of backup plans with backup plans, and a different style of producing code.

1
363738
59