IanTwenty

joined 2 years ago
[–] IanTwenty 2 points 3 days ago (1 children)

It's a bit like using directories/folders to organise your work - you don't have to have separate projects in separate folders but it really helps the more projects you have going on. Also once you have two Python projects that require different versions of the same dependency things will get messy.

[–] IanTwenty 4 points 5 days ago (6 children)

Are you using a virtual env to isolate the environment of the game from the rest ofyour system? There are a few ways/tools to do it but maybe start here:

https://docs.python.org/3/library/venv.html

[–] IanTwenty 4 points 1 week ago

If you have the time try the troubleshoot mode to help figure it out - add ons are often the cause

https://support.mozilla.org/en-US/kb/troubleshoot-firefox-crashes-closing-or-quitting

[–] IanTwenty 1 points 2 weeks ago

Thanks, that was it! I've updated the post to include a final subshell example where we get the 127 return code we might have expected instead of the 255 from the second paragraph.

There's something different about cmd substitution subshells to regular ones that produces this behaviour (the 255), it's a quirk of BASH.

[–] IanTwenty 4 points 1 month ago

Maybe this method could one day be used with open street map

 

In the code below we wait for a background process three times. In the first paragraph we get the expected 0 return code from the wait. In the second paragraph the only change is wrapping the wait in a command substitution which instead gives a 255 return code. In the third paragraph the only change is wrapping the wait in a subshell which gives a 127 return code. Why is this?

sleep 1 &
wait $!
echo $?                     # prints "0"

sleep 1 &
a=$(wait $!)                # <---- only difference is cmd substitution
echo $?                      # prints "255"

sleep 1 &
(wait $! &>/dev/null)       # <---- only difference is subshell
echo $?                     # prints "127"

Thanks in advance for your thoughts!

EDIT: updated to include the subshell final example also, which gives a clue

[–] IanTwenty 1 points 2 months ago

Haha yes it's a beauty!

 

Some gusts of 45mph in Horfield and Fulton according to https://martynhicks.uk/weather/data.php so I think we escaped the worst in the city. A few things blew around but no damage near us.

[–] IanTwenty 1 points 4 months ago

I once heard a recommendation that there's nothing better for neurodivergent people then to spend time with their own. Have a look and see if any places near you do sensory/neurodivergent events. I am thinking of things like cinema screenings and soft play. As awareness seems to be growing in some countries demand is emerging for e.g. low volume cinema screenings, lights turned down, low numbers of attendees etc. Whilst your child might not need all these accommodations there will be other children there who are neurodivergent for them to meet and (hopefully) a higher level of acceptance and understanding amongst all the parents.

If your child has special interests then events focussed on those subjects may attract similar types of children. It's a bit of a cliche/stereotype but communities like boardgames, pokemon, videogames, train enthusiasts etc often have events/rules/customs that provide clear ways to engage with others even non-verbally. For example there are people running Minecraft servers purely for neurodivergent children.

If you're really lucky there may even be parent meet ups or workshops in your area that bring neurodivergent kids together and help them to value their difference. Creating a social life independent of school for your child could be really valuable in their years ahead and for you too, helping them keep a core group of friends even when they transition between schools.

[–] IanTwenty 2 points 4 months ago

I think you've hit the nail on the head so to speak....it's just too small/custom a thing for anyone to have built a dedicated tool it seems. In the end I am looking at using my file manager (nautlius) to automatically run a custom exiftool/bash script on chosen files so I can just click and rename/fix metadata etc as I browse through the files. Probably good enough for now.

[–] IanTwenty 3 points 4 months ago

💯 ! I been considering git-annex too which might let me treat all the photos like any git repo without the bloat.

[–] IanTwenty 1 points 4 months ago

That looks a very useful tool, thanks. I think it could be just the thing for bulk renaming photos to standard names.

[–] IanTwenty 1 points 4 months ago

Thank you for this. I think this has some of the operations I need, I will dig into the code.

 

Can anyone recommend a tool to manage photos at the cmdline? I just want to move photos into dirs based on their metadata (YYYY/DD), occasionally fix up metadata (adjust dates), rename photo filenames to match a template and/or query my photos for certain things. It doesn't need to be a gallery or image touch-up tool, I have other things for that.

I'm aware of exiftool and ImageMagick, perhaps they can do the job but they seem quite low level, really need to build scripts around them - I'd like something that operates at a slightly higher level so I don't have to do too much scripting.

A quick search turned up chee (GPLv3) which can:

  • search photos using a simple query language
  • manage named queries (called collections)
  • copy/symlink images into a custom folder structure

...but it's not had an update in a few years (maybe it's feature complete tho!) Any other suggestions? Thanks.

[–] IanTwenty 4 points 4 months ago

So git-annex should let you just pull down the files you want to work on, make your changes, then push them back upstream. No need to continuously sync entire collection. Requires some git knowledge and wading through git-annex docs but the walkthrough is a good place for an overview: https://git-annex.branchable.com/walkthrough/

 

Any child-friendly recommendations? I think most matches will be around midday hopefully.

(the image is an older shot from https://www.flickr.com/photos/37972999@N07/47986391577)

view more: next ›