Replies

This profile is from a federated server and may be incomplete. Browse more on the original instance.

Edent, (edited ) to random
@Edent@mastodon.social avatar

How not to do coding examples

As part of my MSc, I'm getting a few lessons in technologies I'm not familiar with. I've found some of these lessons extremely confusing - even when I'm proficient in the language.

Here's an example of a coding fragment from one of the tutorials in the R language. Let me explain everything that I think is wrong with it....

https://shkspr.mobi/blog/2021/06/how-not-to-do-coding-examples/

#r

tommorris,
@tommorris@mastodon.social avatar

@Edent I mean, R means code written by scientists and all sorts of demons lurk there.

Python as written by scientists may as well be a different language than Python as written by software developers.

tommorris, to Horizon
@tommorris@mastodon.social avatar

Another #Horizon thought: tech teams seemingly didn't know Horizon data may be used for criminal prosecution.

If devs don't know how a system is to be used, they can't exercise good judgment in making it.

People snark about "software craftsmanship" being hipstery, but there's truth to it: good software is far more Savile Row than it is Henry Ford. Business may want interchangeable cogs but good software needs skilled people empowered to think carefully, do good work and give a shit.

tommorris,
@tommorris@mastodon.social avatar

That's not even an ACAB "they wouldn't work on a system they knew would send people to jail" point (thought it might be for some developers depending on their ethical views), it is a "if you want to build a system with the sort of data integrity and reliability such that you can put the data in front of a court, please let me know ahead of time because that's an important set of constraints the developers need to understand" point.

nevali, to random
@nevali@troet.cafe avatar

polyglottery is hard work

tommorris,
@tommorris@mastodon.social avatar

@nevali I tried Mermaid recently for a very large flowchart but the rendering leaves a lot to be desired compared to Graphviz.

tommorris, to random
@tommorris@mastodon.social avatar

: looking for a PC. Mostly for headless home server—Linux w/containers. Currently using a Pi4—but RAM/CPU/mini-SD doesn't quite cut it.

Desiderata: not a full tower if poss (prefer Mac Mini form factor), mainstream architecture, reasonable price, efficient power use.

May wish to add gfx card later for gaming. (eGPU on mini PCs—doable?)

Have built boxes in the distant past, but I value my time.

(Reply guy pre-empting—actual experiences please, avoid "you ACTUALLY want Y not X" etc.)

tommorris,
@tommorris@mastodon.social avatar

@Edent Thanks for that - I vaguely recall reading that post when you published it.

luis_in_brief, (edited ) to random
@luis_in_brief@social.coop avatar

I was introduced last week to the concept of an “accountability sink”; a structural technique for saying “the rules/tools/processes made me do it” and therefore avoiding accountability. They aren’t universally bad but booooy is AI going to create a lot of them in bad places, like (checks notes) killing civilians.
https://kolektiva.social/@danmcquillan/112377379849654399

tommorris,
@tommorris@mastodon.social avatar

@luis_in_brief Post Office Inquiry is a daily highlight that the combination of bad computers and inept corporate governance makes one hell of an accountability sink.

tommorris, to random
@tommorris@mastodon.social avatar

It's weird how in so much of post-apocalyptic fiction, the focus is on what happens after the proverbial nuke goes off... but only in America. The rest of the world is given pretty summary treatment.

The apocalyptic scenario would shift the power structure of nations: economic or military strength, global alliances, political power etc.

Odd that science fiction is able to set constraints of the current time aside (particularly re. science/technology), but struggles to do so with the state.

tommorris,
@tommorris@mastodon.social avatar

@davidallengreen I guess the difference is in 1984, post-apocalypse, authoritatian super-states coalesce. (Which mirror the geopolitical concerns of post-WWII Britain...)

Hadn't really had that in mind so much as the anarchic, Hobbesian war-of-all-against-all societies (replete with skirmishes between factions driven by greed, ideology or both) that are often depicted as the consequence of the Big Bad.

The camera sometimes doesn't quite zoom out far enough to show the global effects...

tommorris, to random
@tommorris@mastodon.social avatar

After the BloomTech/Lambda school mess, I urge people who want to get into tech, before you drop lots of cash on a boot camp (or a degree or certification), please reach out and talk to people in the industry.

There are so many low/no cost options. Free events for networking, hackdays, online courses, friendly communities that are really generous with their time like Codebar.

Come to meetups and events, and message people—mostly they are lovely and want to help.

tommorris,
@tommorris@mastodon.social avatar

Boot camp courses might be the right choice for you. So might a traditional degree, or for certain specific areas of work, certification courses. Some boot camps are scammy, some aren’t. Some degrees teach outdated stuff or stuff that won’t necessarily get you the job you want.

None of them are magic job-getting cheat codes, they’re a possible route that might get you closer to where you want… or not. Talk to a different people and ask.

tommorris, to random
@tommorris@mastodon.social avatar

Meta are running an expensive ad campaign across the UK promoting the metaverse concept, pointing to the advantages of VR based occupational training - e.g. for surgeons.

This seems something of a tactical retreat. It’s not really a metaverse is it? It’s AR/VR based training, like a flight simulator. We’ve had that for years, and it can be genuinely useful for very specific things.

It’s not discussing Q2 sales figures in Zuck’s ghastly legless cartoon world that they tried to sell initially.

tommorris,
@tommorris@mastodon.social avatar

Convincing investors the metaverse dream is still alive with such a campaign seems really odd. Like, yes, there are useful niche functions for AR/VR headsets - occupational training, manufacturing, some medical settings. That’s always been true - see also: Google Glass.

They don’t make me want to go out and buy a VR headset. Pretty much the only significant consumer use case is gaming, and there still doesn’t seem to be any compelling use case for the average office worker.

tommorris,
@tommorris@mastodon.social avatar

@patrick_h_lauke the corporate dress code has been relaxed for the mandatory metaverse team building exercise etc.

Imagine having the level of resources and capability that Zuck has to build something cool and ending up with something so cringe.

tommorris,
@tommorris@mastodon.social avatar

@antlerboy I think step one is “buy an Oculus device”.

I think the ads in London are more about trying to get business, political and thought leadership and to convince investors that the metaverse hasn’t been a multi-billion dollar waste of money to satisfy Zuck’s ego, which it clearly has been.

tommorris, to random
@tommorris@mastodon.social avatar

I know, let’s use a technology that doesn’t work to solve complex social and criminal justice problems.

Yeah, this will be a recurring theme for the next decade or so.

https://www.theverge.com/2024/3/28/24114956/nyc-subway-ai-gun-detectors-evolv-technologies

tommorris,
@tommorris@mastodon.social avatar

Technologists: I’m barely confident this computer is able to parse dates correctly. And don’t get me started on inkjet printers.

Politicians: they can definitely be cops.

tommorris, to random
@tommorris@mastodon.social avatar

The xz vuln is simultaneously terrifying and impressive. Can’t help but admire the ingenuity of it.

Also, it very much feels like a time to really properly invest time and energy into reproducible builds and other technical improvements to building and packaging… but instead we’ll get more timewasting checkbox bureaucracy and unpleasant attempts to impose legal liability on volunteer OSS maintainers (while the Fujitsu Horizon crooks aren’t in prison).

tommorris,
@tommorris@mastodon.social avatar

How to solve software supply chain concerns (management edition)

  • require everyone fill in a form explaining why Python devs have Python on their laptops
  • have OSS contributors send passport scans, use wallet names, and fill in tiresome CLAs
  • corporate spyware on everything because MDM and AV wouldn’t be an attack vector
  • if it is in a docker container it can’t ever harm us
  • pay cloud supplier to tell us vulns don’t exist
  • bring back password rotation policies
  • another e-learning course
tommorris, to random
@tommorris@mastodon.social avatar

I heard recently about the practice of trying to listen to a new album every day, specifically as a way to try and personally defend against the "algorithmisation" of everything, and the resulting reduction of all culture to machine-generated slop.

It kind of feels a bit like trying to solve climate change through recycling bottles and cans, but still worth doing. What else are people doing in the same vein?

tommorris,
@tommorris@mastodon.social avatar

@lori Can stream the album... that's a whole separate issue. It's more about not relying entirely on recommendation algorithms for discovery, rather than the crappiness of streaming revenues.

tommorris, to random
@tommorris@mastodon.social avatar

I frequently have to deal with files that contain nested PDFs (which Adobe marketed as "PDF Portfolios").

They open fine in pdf.js in Firefox, but not in macOS Preview. They are just PDFs that have one page telling the user to download and use Adobe Acrobat (no way, fuck that), and then a bunch of attachments.

They're worse in every way than just distributing a zip/tarball of PDFs. Here's a 20 line Python script (with a nix-shell shebang) to unwrap 'em.

https://gist.github.com/tommorris/6983a78a61ed3cae55d3bf62b9486bf7

tommorris,
@tommorris@mastodon.social avatar

The main thing I hate about PDF is that every way it is used has a dozen different names and they're all poorly documented and drenched in marketing BS.

Also, the response of plenty of people is "just use HTML" which ignores the use cases for PDF—namely, archiving and digital representation of printed docs, esp legal/governmental.

I've been burned before when gov. docs have been taken offline without notice or explanation. Plus "it's on p.47" is still cognitively easier than "Ctrl-F for <str>"

tommorris, to random
@tommorris@mastodon.social avatar

Nix-shell shebangs are really handy.

Today, I needed to write a quick and dirty Python script to do some web page parsing and regexery, so just popped in python311 and python311Packages..

No pyproject.toml, no containers, no Docker, no venv. Run it, use result, then Nix's garbage collector will throwaway the dependencies when we're done.

https://nixos.wiki/wiki/Nix-shell_shebang

tommorris,
@tommorris@mastodon.social avatar

@xerz @aral I've started writing a post also. I've noodled around with it a bit on Mac and have tried NixOS in a VM.

The ecosystem is quite overwhelming (and a lot of the docs are old or not great).

I'm starting by dipping a toe in and using it as a partial alternative to Homebrew, and using it for development environments and scripts... but the Nix language and Flakes etc. are somewhat mysterious. The learning curve is pretty steep.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines