Hacker Newsnew | past | comments | ask | show | jobs | submit | moses-palmer's commentslogin

Well, to be fair, then it's precisely a theoretical concern about hardware sovereignty.


How curious! So am I, and that is the project that I am the closest to regretting open sourcing.

I made the mistake of also implementing keyboard and mouse monitoring---you know, so I could write automated tests for the input parts!---and over the years it has turned into an endless source of feature requests, bug reports and also general questions about the Python programming language and its ecosystem.

Input events truly are horrible to provide a platform independent abstraction over, but in the end seeing people use it, make YouTube tutorials and discuss it on Stack Overflow make it worth the time spent.


I don't speak Farsi, but some Arabic, and the Farsi alphabet is related.

The letters are completely different in pronunciation: with one dot, it's like the English letter B, and with two it's either like Y or the pronunciation of double E.


I, personally, think you can have nice things like this and they will not get abused. If the right to forage mushrooms on a non-industrial scale, or to walk along the shore next to a house without disturbing the inhabitants is given, in my experience people will respect the limitations.

It appears that the laws where I live are quite similar to those in Estonia in this aspect, and I have never heard of any real abuse.


Depends where you live, optimistically. Many public lands in the US have a policy that you can camp there for free. I've used a lot of these sites. Very often, they're fucking gross. Styrofoam and beer cans overflowing from the firepit is common. At one site I cleaned up a turd that could have been from a big dog, but was suspiciously human-sized. This happened all over the country. Many national forests now make their own exceptions to the free camping rule, and I have little doubt it's in response to this rampant abuse. The abusers are out there.


This is also a cultural thing. Compare the US to Australia for example, Australia is often remarked as very clean in comparison and the culture in Australia is to hold onto trash until it can be placed in the nearest trash bin and everything remains relatively clean in comparison (whether in urban areas or campgrounds).


Well, yes, culture is the main factor by which where you live affects cleanliness.

But the other problem in the US is that we don't have just one culture. Anyone who talks in public advocates the same pack-it-out approach to trash. That's the practice in the self-consciously outdoorsy subculture. But the people who leave trash in public campgrounds, I suspect anyway, live in an entirely different world with no realistic communication channels between them. Application to national politics is left as an exercise.


So people with disposable income leave less trash, but poor folk who go camping leave more trash behind? On the other hand you have Burningman (lots of disposable income) with at least stated goal of not leaving anything behind but drive in with gas guzzling large RVs or fly in with more gas guzzling airplanes... I don't know who is worse.


It really just depends if you have a feral (sub)population. Some countries don't, others do.


> I, personally, think you can have nice things like this and they will not get abused.

Really? I'm not saying you're wrong, but it's much easier for me to think of counterexamples than supporting examples. Hikers leave garbage on trails all the time. Even dog owners let their pets leave little presents for other people to take care of. I love right to roam laws, but I can see the other side too. I think we have to weigh the tradeoffs and accept that there's a cost—one that may be outweighed by the benefits, surely—not deny that any costs exist.


I read the article twice, because the link title made me think that I as an open source contributor and publisher liable for complaints.

My reading of the text is that the one actually selling the software product is the one having to abide by this law. Am I incorrect?

How could this be negative? I presume that most publishers of open source software would prefer that some Silicon Valley Unicorn did _not_ half-heartedly integrate their library, causing security issues and tainting their library name?


Because lawyers and courts become involved. They don't understand software or anything related to it.


This, I presume, it's the perfect opportunity to promote my own maze generator[1], which incidentally is a Real Application that you can run on your own computer, and the output of which you own!

Like the linked application, it supports triangular, rectangular and hexagonal grids, and different generation algorithms, which can be combined for various areas of the final maze. It also supports background and mask images to colourise rooms and provide a shape for the maze, as well as a small selection of effects to apply. The output format is either SVG or PNG.

And for that extra HN cred, it's written in Rust (which you are free to ignore if you're not into RIIR, but this is in fact a rewrite of an earlier Python project of mine)!

[1]: https://github.com/moses-palmer/labyru


I'd love to see a screenshot before downloading/installing.


It's a command line program that outputs SVGs. Here's an example: https://paste.sr.ht/blob/d248dd89f96c6de981bf0870265a63be8e1...

(download and open with a browser/SVG viewer)

The invocation to generate that was:

    ./maze-maker --width=50 --height=50 --method braid,branching,winding out.svg


https://codepen.io/junon/pen/Rwdwqxg

For anyone who can't render SVG in their head :)


Basic question: What would be the simplest way to "digitize" one of these mazes i.e. turn them into a programmable data structure (2D array, matrix, etc.) for example to use as input into a maze solver/RL demo?


The main application is actually a thin wrapper around a library that does exactly that, so the best way would be to not perform the final step of turning the data structure into an image.


Can you add a license?


Is there a web demo?


No, you'll have to exercise your own CPU I'm afraid!


Your readme is pretty thin on information. How do I even run this? How can I configure the parameters?


A kind soul contributed an update to the README---basically the output of `cargo run --bin maze-maker -- --help.

I guess today's lesson is: do promote your personal project even when it's semi-arsed, because people on the Internet are mostly kind and will help you improve your documentation!


A friend of mine does coding live streams on Twitch. It's pleasantly surprising how many randos (who become internet friends) will help out with your projects.


Many human engineers get happy chemicals from helping people! Also many humans!


What are the methods available?

--method <METHOD> The initialisation method to use


Looks like "braid", "clear", "branching", or "winding" https://github.com/moses-palmer/labyru/blob/master/maze/src/...


Yeah, I was hoping the `clap` macros would perform some unthinkable magic there... I will have to update the help with a listing.

In the mean time, have a look here[1] for the possible values.

[1]: https://github.com/moses-palmer/labyru/blob/7b92be3ae279a9ff...


`clap` does have magic for enums:

  use clap::{Parser, ValueEnum};

  #[derive(ValueEnum, Debug, Clone)]
  pub enum Foo {
    Bar,
    Baz,
  }

  #[derive(Parser, Debug)]
  #[command(author, version, about, long_about = None)]
  pub struct Args {
    /// description
    #[arg(short = 'f', long = "foo", value_enum, default_value = "bar")]
    foo: Foo,
  }
The output of `--help` will look like:

  -f, --foo <FOO>  description [default: bar] [possible values: bar, baz]
This is with clap >= 4.4 with the derive feature.


Ah, this brings back memories!

A long time ago I maintained a fascination with this, during which I made an application to interactively explore a labyrinth using animated auto-stereograms.

If this tickles your fancies, you can find the code here: https://github.com/moses-palmer/InAmazing3D. Please keep in mind that it apparently hasn't been touched in ten years, and the project used Code::Blocks, so if you want to try it, you will probably have to create Makefiles. If you enjoy this kind of thing, it's worth it though, as you get to control a ball moving through a labyrinth!


My favourite part of the article, hailing from a part of the world _sans raton laveur_, was the explanation of "Raccoon trouble" for purchasing a lot of potatoes. What's with raccoons and potatoes?


Nothing. It's meant to be an absurdist joke meant to leave the person wondering exactly what you were wondering.


I think the (humorous) implication is that you would use them as bait for traps. I don't think potatoes would be that effective as raccoon bait (maybe?), but I do know that bear trappers use all sorts of weird stuff, usually food waste of some kind, and it wouldn't surprise me if potatoes would work. I've heard of people using everything from rotten corn to frosted donuts, usually in ridiculous quantities (like an entire 10-gallon drum full). Put it in the middle of the woods, wait for the smell to permeate the entire forest, and then watch the bears come in. Of course the goal is to get the bear to come back the next week, where you'll be waiting in a treestand with a bow or a rifle.


it is not missing: https://extensions.gnome.org/extension/3210/compiz-windows-e.... My eldest son has it running on his account, and I predict that later today those wobbly windows will also burn... EDIT: correct extension


And of you would consider it taboo, would you still if the same generic sequence were found in another species?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: