HNHacker News
TopNewBestAskShowJobs

casselc

27 karma · joined September 4, 2017

[ my public key: https://keybase.io/chuckcassel; my proof: https://keybase.io/chuckcassel/sigs/QA9TzBqsCpVVdNqz3Z64k29tAHh9apzj5_1EqCeyK_I ]
submissionscomments
casselc··on Show HN: AutoLISP interpreter in Rust/WASM – a CAD workflow invented 33 yrs ago
If you look at a map of the fiber-optic network in the US, my parents spent most of the 90s surveying the portion along the Gulf coast from Texas to Florida and up the Atlantic coast to New England for Sprint, MCI, Level 3, and other companies that no longer exist and AutoLISP was used to generate most of their drawings.

From what I can remember, we made a spreadsheet template that captured the title block information and a list of bearings and distances with some optional columns for field notes, landmarks/monuments, elevations and other measurements, etc. and I wrote some AutoLISP code that would generate an overview drawing and a set of scale drawings for the route. It figured out the bounds for each segment based on the scale and drawing size and then drew the route like a turtle and added the various callouts and a consistent title block and legend. There was also some ability to draw details about the railroad/pipeline whose right of way was being used, but I don't remember exactly how it worked.

My mom (secretarially trained typist, self-taught Lotus/Excel wiz, former drafting assistant at an RBOC) would enter everything into the template and use it to generate basis drawings which they might then tweak and finalize by hand. It dramatically reduced the amount of time they spent creating drawings to the point they could usually finish the drawings for a week of surveying in a couple of hours. I like to think of it as my small contribution to the Internet.

I was in high school at the time and taught myself AutoLISP from some combination of in-app docs/help and mall bookstore fare. Now I desperately want to go dig through floppy disks at my parents' place to see if any remnants remain to look back at how younger me did everything. It was the first truly useful software that I ever wrote, and in hindsight, might've planted the brainworm that led me to Clojure decades later :)

casselc··on JVM Performance Comparison for JDK 21
The primary performance benefits with Enterprise are access to the G1 garbage collector and profile-guided optimization
casselc··on Why you should probably be using SQLite
https://docs.oracle.com/en-us/iaas/dbcs/doc/back-database-ob... and https://learn.microsoft.com/en-us/sql/relational-databases/t... are a couple examples.
casselc··on Any sufficiently advanced uninstaller is indistinguishable from malware
Because it’s JScript, which was abandoned prior to ES6.
casselc··on Requiem for a Great Cat
I’d second this sentiment and encourage the previous poster and some of the other replies to consider fostering for a local shelter.

We started fostering early in the pandemic, a few months after losing a very special guy, and it’s been very fulfilling. You‘ll get a chance to help some cats or kittens get out of a cage for a few weeks and find new homes - and I’d be surprised if you don’t eventually find one whose home just happens to be yours.

casselc··on Emulating win32
My first computer had a button to do it whenever you felt like.
casselc··on No, DALL-E doesn’t have a secret language
“Lexicon” by Max Barry is another good novel that plays with this premise.
casselc··on Solar-powered robotic beekeeping
Not who you asked, but as someone interested in small/hobby farm equipment to enable a couple people to do more work, more efficiently: The actual products seem nice and they have a variety of things that would be useful to us. I’d like to be able to buy a common flatbed lifting/dumping platform at about half those prices and be able to separately purchase and easily swap out the various wheelbarrow and garden/utility wagon bases. Ability to upgrade/replace motor and batteries. Ability to use the platform for additional powered implements like spreaders, seed drills, flail mower, auger, etc I’d like to be able to operate it in either a push-in-front (wheelbarrow) or pull-behind (wagon) fashion and for the drive and steering controls to work well in both cases. Stretch goals: a low speed follow-me mode with basic obstacle detection/avoidance. A go-to-programmed-location-and-come-back-wherever-here-is mode, optionally dumping or waiting for interaction at the other end.
casselc··on Floor, Ceiling, Bracket
It doesn't help with stuff found in the wild, but if you're working from a text most math books will either list all symbols at the beginning of the index with references to where the notation is introduced and defined, or they have a separate symbol index or glossary of notation.
casselc··on Uncle Bob and Silver Bullets (2017)
This article is from 2017.
casselc··on Texas DPS mistakenly sends out Amber Alert for Chucky doll
From the article, it's not clear this ever went out as a wireless AMBER alert, just to people subscribed to an email alert system. The wireless alerts and highway signage are part of the secondary distribution system, so might not have actually been triggered.
casselc··on A distributed Posix file system built on top of Redis and S3
If only AWS Cloud Map wasn't $0.10/resource outside of ECS you could reasonably have your API cake and query it using DNS too.
casselc··on A distributed Posix file system built on top of Redis and S3
I mean, kinda same, because my lizard brain still remembers getting burned - but in theory it's not much different than what Storage Gateway in File Gateway mode or Nasuni and others have been doing for years, is it?
casselc··on I wrote Task Manager and I just remembered something
The On the Metal[1] podcast had some absolutely magical interviews for this sort of thing in their first season. I honestly loved them all and there are great stories in each of them, but purely for the folklore aspects I’d highlight the Jeff Rothschild and Tom Lyon episodes.

[1] https://oxide.computer/podcast/

casselc··on Microsoft developer reveals Linux is now more used on Azure than Windows Server
Basically in the same boat. If you haven’t looked recently, the container support in Windows is getting much better - including prod support for Windows worker nodes in Kubernetes 1.14. But just using Docker with gMSAs was a big help to our CI/CD and simplifying/standardizing deployment of our apps which are a mix of legacy ASP.NET, WCF, and traditional Windows services.

If you can target at least 4.7.1 you can use configuration builders [0] to use environment variables/json/cloud parameter stores/etc to modify legacy web.config or appsettings without code changes. You can also use the .Net core config libraries directly in legacy .Net apps if the devs are willing.

[0] https://docs.microsoft.com/en-us/aspnet/config-builder

casselc··on Phaser 3.0: HTML5 game framework
My son did a game dev camp last summer at DigiPen where they were using a custom IDE that exposes Phaser with Blockly. The quality and variety of games produced by a bunch of ~9 to 12-year-olds in 2 weeks was impressive.
casselc··on Run your own OAuth2 server
Yes, it just creates an array of the decimal values for ASCII A-Za-z0-9. By default Get-Random just returns a random unsigned int, but if you pass in an array of objects it will select a random object from the array.
casselc··on Run your own OAuth2 server
Rough equivalent in PowerShell would be:

  @(48..57 + 65..90 + 97..122) | Get-Random -Count 32 | ForEach-Object -Begin {$secret = ''} -Process {$secret += [char] $PSItem} -End {$env:SYSTEM_SECRET = $secret; Write-Host "SYSTEM_SECRET is $secret"}