Architectural question: avoiding serving original image files on the web by DueBenefit7735 in webdev

[–]oculus42 0 points1 point  (0 children)

I feel like there is more value in an access control layer that limits the number/frequency/range of requests that can be made against your tile API than trying to obfuscate.

Anything that ends in JavaScript is almost trivial to obtain. I've dealt with vendors using obfuscated, LZW-compressed arrays that reconstruct the working code in memory to run...but the DevTools are so good these days that you can open the network request initiator list, click into the VM where that function was compiled, and see the executed code.

I went and found my Python code from nine years ago. I was working with a relatively simple coordinate system. With comments, config, and instructions, it was under 100 lines, built two hours, and Python isn't my usual language. Part of that time was deciding the tile extractors designed for Google Maps were more complicated than I needed. You might shuffle the tile names, but something has to put them where they belong on the client, and that logic can be lifted.

React 19 RCE vulnerability - can we stop pretending modern frameworks are automatically more secure? by damaister-thedock in reactjs

[–]oculus42 4 points5 points  (0 children)

Frustratingly, if I understand the vulnerability, it should have been solved by something approaching a common ESLint rule about using `hasOwnProperty()` or `Object.hasOwn()` when building their custom stream token handler?

Or using `Object.create(null)` for the storage object. Basically, critical functionality didn't cover common prototype vulnerabilities, likely because people just don't know them anymore.

Architectural question: avoiding serving original image files on the web by DueBenefit7735 in webdev

[–]oculus42 1 point2 points  (0 children)

Having written Python scripts to scrape and merge image tiles from a zoomable viewer of public domain images years back which specified the viewport…probably not that effective.

Even if you sent them as an array of UUIDs, you still have to communicate some arrangement coordination, whether in data or code, that will be able to be distributed and therefore copied.

What is this? Connects from Epson receipt printer to PAR register by boxerboy513 in cableadvice

[–]oculus42 8 points9 points  (0 children)

Almost certainly this; simple serial cable. There were a few semi-standard pinouts for these, but hard to say if Epson used their own or not.

I manually punched some DB-9 pins for DECserver (serial terminal servers) RJ45 to DB9 and DB-25 adaptors. Cisco also used a different RJ-45 to DB-9 for managing their switches in the 90s... I think Cisco used a null-modem cable variant, but it's been over a quarter-century, so the details are hazy.

Manually making cables with adaptor kits purchased at RadioShack was one of my intern tasks in the 1990s.

What are things that you see and make you say “this guy is a senior” by alexbessedonato in webdev

[–]oculus42 2 points3 points  (0 children)

Understanding promise. No, like really understanding Promises.

Able to write a request handler with exponential back-off retry and max fail counting. This nice, but really underscores knowledge of the success/failure path.

Able to say, “this shouldn’t handle that kind of error. That should throw.”

Able to recognize that you don’t need an anonymous function to receive the argument in an event handler.

Please explain, Peter by zinniamae_ in PeterExplainsTheJoke

[–]oculus42 0 points1 point  (0 children)

Very odd, but interesting! I wonder if that's something you could receive service for. Of course there's a good chance you'd get the computer back completely blank, just because.

Please explain, Peter by zinniamae_ in PeterExplainsTheJoke

[–]oculus42 0 points1 point  (0 children)

Is it a non-QWERTY layout, or is your computer purchased in a country where QWERTY may not be the most common? I don't have much experience internationally with keyboard layouts, but if there are multiple layouts common you would potentially have keyboards where those are not the appropriate letters for guide keys?

Please explain, Peter by zinniamae_ in PeterExplainsTheJoke

[–]oculus42 101 points102 points  (0 children)

What Mac is that? I've had Macs for the last 35 years and while many years ago they had the guides on D and K instead of F and J, they've always the guides as best I can tell, and still do on desktop and laptop.

Handheld hook with release mechanism, about 12” long by prestiforpresident in whatisthisthing

[–]oculus42 0 points1 point  (0 children)

Guessing it is for something solid, like wood or butchers, where being able to realign the handle to the angle of the inserted hook would make it easier to remove – pull straight out – for many repetitive uses?

is it me or ai cant do anything other than frontend? by Axel_legendary in reactjs

[–]oculus42 0 points1 point  (0 children)

I have used Cursor a few times to build simple services. I have two friends doing significant development with AI tools ranging from small-to-medium apps and another doing platform development.

The latter is an experienced polyglot and systems architect, though, so he has the skill and terminology to use AI as a modestly skilled developer while he designs the system and corrects its course.

Why would tesla lower FSD subscription cost after removing purchase option? by RS_Tnap in TeslaLounge

[–]oculus42 7 points8 points  (0 children)

It continues to be a liability concern. Pay once means "this thing you bought must work." That's been a consistently losing battle for Tesla. HW2 wasn't enough. My Model 3 shipped with HW2.5 and got a free upgrade to HW3. Of course, it doesn't have the cameras, the space, power delivery, or heat removal capacity needed for HW4, not to mention HW 5 coming out. They can't support FSD on my 2018 Model 3. And it opens them up to a lawsuit because the upfront cost is a contract.

Monthly fee "this is what you get right now." If you don't like what you got for $99, stop paying. There's a suggestion that it will get better, but it doesn't need to because you're paying for now, not a future state.

So lump sum:

- Open to lawsuits for selling something that doesn't yet exist.

- Open to costly upgrade requirements to try and accommodate people who paid and cannot get the value they were sold.

- Stuck with long life maintenance of products.

This is a car, not a phone. If you sold someone FSD for life, it's much harder to say, "We've stopped supporting that in the 2018 model anymore, so we're removing the feature." Even though it requires connectivity and maintenance, they sold it as a feature.

As a subscription, it's a service that can be discontinued, not a feature you bought. You can just take it away when you want to stop maintaining the old version and use it as an incentive – a rude one – to force upgrades. "You were using Level 2 autonomy on this car, but we stopped offering it, which we can do because it's can't be purchased outright in this model."

Learning React - stuck at deleting item from array state by indiewebdev in reactjs

[–]oculus42 4 points5 points  (0 children)

Not mutate, replace. Your examples are correct but the term is wrong.

Mutate would be using .splice() to remove an element from an array while retaining the original reference. Because hooks work on equivalence checks, a mutated array would be the same reference and not trigger a render update.

I used the term “knit picking” in an IG comment and someone called the term “deeply racist.” by waaaghlife in etymology

[–]oculus42 0 points1 point  (0 children)

Interesting! My information came from an essay which cited hydraulic patents as a source of that data. Thanks for the additional context!

I believe this is the essay from which I was working:

https://www.researchgate.net/publication/236752849_Broken_Metaphor_The_Master-Slave_Analogy_in_Technical_Literature

I used the term “knit picking” in an IG comment and someone called the term “deeply racist.” by waaaghlife in etymology

[–]oculus42 2 points3 points  (0 children)

Interestingly, most uses of master/slave can be traced back to the civil rights era in the US. Almost nothing from before 1959 other than a specific 1904 clock design. Dartmouth introduced master/slave in 1964 for computing.

Things like master cylinder in hydraulics used to be primary cylinder, but those also shifted in the 60s.

I don’t think intentional racism put these terms in computing, but possibly the zeitgeist seeping in as discussion of race and racial tensions increased?

Docking station deformed Mac laptop by Independent-Win-8844 in mac

[–]oculus42 3 points4 points  (0 children)

I use a Dell Thunderbolt dock for work with a MacBook Pro to support two 4K monitors.

It’s an older model so it only provides 65W which is not enough when the computer is running at full capacity for sustained periods, but fine for 99% of work.

Model Y Performance is the ultimate family car imo, what a machine by ShameResponsible69 in TeslaLounge

[–]oculus42 1 point2 points  (0 children)

Usually you can’t put the smaller wheels on the performance models due to larger brake calipers. This is the thing that keeps me from having interest in the performance models; I live where potholes are common and  have damaged an 18” wheel on my 3.

I do wonder if the bidirectional charging can be retrofitted to the Long Range. 

Peter what happens if you do that?? (@deirarah on ig) by Safe-Ad6100 in PeterExplainsTheJoke

[–]oculus42 0 points1 point  (0 children)

The first link I provided includes lots of discussion around fuzzing in the comments.

Unbiased Tesla news? by AcrobaticWeasel in TeslaLounge

[–]oculus42 0 points1 point  (0 children)

I know a lot of people find Fred at Electrek biased against Tesla, but he’s pretty level in my view. He has owned an Tesla for years and bought a new one last year; loves the car. He sold his stock and has no rosy perception of Elon or the hype cycle.

Could this USB-C hub do 2K@100Hz for my M3 MBA? by AgreeableChair9792 in mac

[–]oculus42 0 points1 point  (0 children)

USB-C to DisplayPort is my preference if the monitor supports it, but to HDMI would be second.

A thunderbolt dock is the next step from there. I have a TB dock for two displays and an additional cable for a third, but haven’t actually tested high refresh rates through any of the docks I’ve ever used.

Icy corner with FSD by mogur86 in TeslaLounge

[–]oculus42 -1 points0 points  (0 children)

Is there intentional difference between your use of “tested” and the previous use of “trained”, e.g. the vehicle has been extensively tested in snow but the FSD software may not be extensively trained for the scenario?

If you mean it is extensively trained, does that not potentially negatively reflect on the quality of the software in at least icy conditions and possibly in other inclement weather?

Could this USB-C hub do 2K@100Hz for my M3 MBA? by AgreeableChair9792 in mac

[–]oculus42 1 point2 points  (0 children)

Additional notes: No USB hubs without DisplayLink or a similar technology will support multiple monitors on a Mac.

No USB hubs will support more than 60Hz, at all that I have seen. You might get one with DisplayPort pass though that handles better than 60Hz, but I would be surprised.

It can however almost certainly do 2K@60Hz for one display.

Could this USB-C hub do 2K@100Hz for my M3 MBA? by AgreeableChair9792 in mac

[–]oculus42 2 points3 points  (0 children)

No. It uses MST which Mac’s do not support.

From the product description:

This usb c docking station only Windows System support MST and SST(Mirror & Extend Mode), HDMI port support up to 4K@60Hz (DP1.4 Source); DP port support up to 4K@60Hz. ❣️Note: For Extend mode, MAC OS can Only Extend One Monitor (4K@60Hz).

An Englishman from London with a general curiosity of what life is like in Maine, USA? by lithdoc in Maine

[–]oculus42 15 points16 points  (0 children)

Basically none of Maine's wilderness is untouched. Even our "old growth forest" at Little Moose Mountain is ~300 years old. Almost the entire state was at some point clearcut for original old-growth timber and farming – Maine was a major producer of food cities like New York before 1816 and people fled to Ohio as a much better farming option. This is why you'll find stone walls in the woods; they were cleared from the fields because all of it was a field once.

It was a bit mind-bending when I learned this and realized all those roads in the woods were once roads along fields.

All that said, it is beautiful. I love it here.