Readit News logoReadit News
lacoolj · a year ago
I just did this install, then went to remove and it attempted to remove `/usr/local/bin`
butz · a year ago
Well, that's just one way to get "space" :)
dylan604 · a year ago
typing in 'rm' in any script I write scares the bejeebus out of me. I tend to write 'echo rm' so I get a chance to review while testing to catch this specific type of issue.
mmahemoff · a year ago
Instead of deleting anything, my scripts usually mv files to a timestamped folder under /tmp. In practical terms, it’s rarely a noticeable difference in performance or disk usage. Also makes scripts easier to debug when you can inspect transient artifacts.
mdaniel · a year ago
In case you're interested, I have adopted a pattern that works for me in bash (I don't use zsh so caveat shellator)

  N=${N:-}  # if you use (-u)
  $N rm ./whatever
and then you can exercise the script via

  N=echo ./something-dangerous
but without the N defined it will run it as expected. More nuanced commands (e.g. rsync --delete --dry-run which will provide a lot more detail about what it thinks it is going to do) could be written as `rsync --delete ${N:+--dry-run}` type deal

lucb1e · a year ago
Can use -i to confirm deletions also, to not have to edit and re-do the command. The downside is being asked for everything individually rather than confirming one (big) list, so not sure if this fits your use-case
ordu · a year ago
Did it try it with `rm -r` or with `rmdir`? `rmdir` seems perfectly ok for me, it will keep /usr/local/bin intact if there left files.
greenavocado · a year ago
Installer and game work perfectly on Intel Integrated Graphics on Linux with Wine 9.22
pixelesque · a year ago
Note that it does build natively for Linux (and other platforms) from source, and the github page:

https://github.com/pavelsevecek/OpenSPH

includes an old Debian package you can install (although for Debian 10, and doesn't work on recent Ubuntu/Mint installs either)...

throwaway314155 · a year ago
Certainly feels like a missed opportunity not to advertise that somewhere official.
NKosmatos · a year ago
It would be fun if we could define planets with our own materials, like bananas (influenced by xkcd), diamonds or whatever other silly substance we like :-)
stoneman24 · a year ago
Or chocolate (Terry Pratchett: Thief of time) IIRC
tetris11 · a year ago
Are there any easy examples one can just run once installed?

Or can anyone on HN give me any hints on a valid flow chart

Dead Comment

mturk · a year ago
This is really impressive.
pixelpoet · a year ago
I worked with the author at Corona Renderer; guy's a genius, no sweat.
yboris · a year ago
Tangentially related: Gravity Wars - a fun 2 player physics artillery game where planets affect projectile path

https://github.com/whyboris/Gravity-Wars

imiric · a year ago
Moonshot[1] is another similar game, and a bit more polished. It was abandoned, unfortunately, but it's fun for a few minutes.

I just noticed there's Orbit Outlaws[2] from the same developer, which builds on the same concept (for better or worse), but is also abandoned.

[1]: https://store.steampowered.com/app/426930/Moonshot/

[2]: https://store.steampowered.com/app/1319100/Orbit_Outlaws/

tetris11 · a year ago
Oh wow, I wish saw this in the list of projects when LÖVE was featured here the other day.

This looks super fun.

Edit: I'm loving the explosion-revenge last-ditch effort to counterstrike when hit. Fantastic concept.

cafeinux · a year ago
> Tangentially related

I see what you did here.

Deleted Comment

DarkmSparks · a year ago
very very cool, its also so rare these days to see the scientific crowd bother building windows installers, now people whose only skillset is using microsoft word and cheating in games can get a glimpse of what modern compute is capable of, hopefully inspire some of them to think beyond badly formatted text documents.

Although at this point they are more likely to call it science fiction because they all know the earth is flat.