Posts

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

orsinium, to security
@orsinium@fosstodon.org avatar

Which one would you choose?

  1. Make sure you correctly handle user input in SQL queries to prevent SQL injection, or

  2. Make a standard banning any punctuation in geographical places and force local authorities to rename streets and reissue all street signs.

https://www.bbc.com/news/uk-england-york-north-yorkshire-68942321

mike,
@mike@sauropods.win avatar

@orsinium It really is astonishingly feeble. And heaven help them if someone ever names a street after One Of Those Foreigners They Have Now and there's an accent in the name.

neilgall,
@neilgall@mastodon.scot avatar

@mike @orsinium We don't even need foreigners

orsinium, to rust
@orsinium@fosstodon.org avatar

New project: Runtime for running WASM-4 games on Adafruit and potentially other small devices/

https://github.com/orsinium-labs/gamgee

Written in , it uses wasmi crate to run modules with very little space and memory requirements. The binary is just about 270 Kb and the runtime uses for itself just a few Kb of RAM giving the rest to the game.

orsinium, to golang
@orsinium@fosstodon.org avatar

New project: Framework for writing WASM-4 games with and @TinyGo.

https://github.com/orsinium-labs/wasm4go

WASM-4 is a game console emulator for running in browser games compiled into "cartridges". There are already lots of fun games made for it, some even in Go, but so far Go lacked a friendly framework for it. Not anymore!

We're currently working on more cool stuff for , WASM-4, and TinyGo. Stay tuned!

orsinium, to fediverse
@orsinium@fosstodon.org avatar

Top most banned servers on the . I have more interesting stats and graphs to show, I'll try to get some time to make a nice website later.

Thanks to @lukeshu for helping with some API stuff.

stfn,
@stfn@fosstodon.org avatar

@orsinium And thank you for crunching that data, Mastodon is so beautifully open

orsinium,
@orsinium@fosstodon.org avatar

@stfn There is usually the block reason specified, I have it somewhere in the dump as well.

orsinium, to random
@orsinium@fosstodon.org avatar

@FediTips

Question: I see that some toots have text that is a clickable link. For example, the word "bovine" in this toot:

https://mymath.rocks/objects/08a963b3-030c-4bf0-9f66-65883a16e230

How can I do this? Is it possible to do this from the Mastodon android app?

stfn,
@stfn@fosstodon.org avatar

@orsinium @FediTips I think it's because some clients support Markdown, but I don't know the details

orsinium,
@orsinium@fosstodon.org avatar

@stfn @FediTips

I asked someone earlier, and they told me to just use Markdown but it didn't work for me. It might be client-specific indeed. If so, I'm curious which clients support it.

orsinium, to rust
@orsinium@fosstodon.org avatar

The TIOBE index is a joke and we should stop giving it any credibility. What they do is they simply count web search results for each language, and that number means just about nothing, including the language popularity. And you should never use the index in making any decisions. Unless you're going to rewrite your , , or app to Scratch (which is, according to the index, more popular and growing).

orsinium, to foss
@orsinium@fosstodon.org avatar

Is there a software license which is as permissive as MIT License but explicitly forbids using the code to train any AI?

orsinium, to python
@orsinium@fosstodon.org avatar

New blog post: Diving into PyPI package name squatting:

https://blog.orsinium.dev/posts/py/pypi-squatting/

I always wanted to find time to dive into the subject, and today's news about yet another malware campaign on PyPI motivated me to do so.

Special thanks to @sethmlarson for providing the dataset.

orsinium, to linux
@orsinium@fosstodon.org avatar

Today I got some time to find out why my takes a noticeably long time to start. The offender was . As I removed it, the time got down from 450ms to 60ms.

To time startup of zsh vs bash:

$ for i in $(seq 1 10); do /usr/bin/time bash -i -c exit; done

$ for i in $(seq 1 10); do /usr/bin/time zsh -i -c exit; done

To find how long each plugin takes at startup, add zmodload zsh/zprof at the top of ~/.zshrc and zprof at the bottom.

orsinium, to random
@orsinium@fosstodon.org avatar

The rating of "This Is Spinal Tap" on IMDB goes to eleven.

https://imdb.com/title/tt0088258/

https://youtu.be/uMSV4OteqBE

orsinium, to privacy
@orsinium@fosstodon.org avatar

Is there a privacy-friendly alternative to TripAdvisor, Yelp, Google Maps, and alike? Specifically, for restaurant reviews.

I want to go on my next trip ungoogled. And while @organicmaps fully covers my needs for how to get to where I want to go, it's not enough for picking where to eat.

fosstian,
@fosstian@fosstodon.org avatar

@orsinium @organicmaps there's an interesting comment here:

https://community.openstreetmap.org/t/osm-based-restaurant-hotels-etc-reviews/70096/10

> There is Open Reviews 3 which aims to become an Open Data alternative to the proprietary data silos. Mangrove is the demo frontend for it, but it can be integrated in other apps.

> In the OSM world, MapComplete 2 integrates Open Reviews in several themes, e.g. Restaurants and food 1. OpenCampingMap integrates it for campsite reviews. OsmAnd wants to add a rating system.

organicmaps,
@organicmaps@fosstodon.org avatar

@fosstian @orsinium yeah, it would be great if it flies.

orsinium, to random
@orsinium@fosstodon.org avatar

Evolution of programming:

  1. Engineers write code that they understand.

  2. Engineers use libraries (made by others) that they understand.

  3. Engineers use libraries (made by others) that they don't understand (because there are too many of them to audit how each one works).

  4. Engineers copy-paste SO code (made by others) they don't understand.

  5. Engineers use AI-generated code (made by no human being) that nobody understands.

orsinium, to python
@orsinium@fosstodon.org avatar

LinkedIn job search hit absolute rock bottom. If you search for "Elixir" jobs in NL, it returns you 686 results. Guess how many of them even have the word "Elixir" in them. Two!

LinkedIn literally ignores what you ask for and instead returns 17 pages of "promoted" irrelevant ads.

For Python, the ratio is about 34%. Which is better but I think more a coincidence, lots of positions today at least mention Python.

orsinium, to golang
@orsinium@fosstodon.org avatar

Now genesis/slices, a collection of generic functions for slices, has a code example for every function:

https://pkg.go.dev/github.com/life4/genesis/slices

The Enum module was always my biggest inspiration for the package, and my favorite thing about Enum (and Elixir docs in general) is how every function has a code example. Show, don't tell!

serpentroots,
@serpentroots@hachyderm.io avatar

@orsinium this is great. Thanks for investing the time in the documentation.

orsinium, to golang
@orsinium@fosstodon.org avatar

New project: linter that finds function arguments that would fail in runtime:

https://github.com/orsinium-labs/arguard

A simple idea with a huge potential, blurring the line between runtime and type checkers.

The project is an implementation of one of my favorite ideas from and one of the many features from Deal, the design-by-contract framework for (https://github.com/life4/deal).

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