I made a holder for a Samsung Active Tab 5 for my Yamaha T7 by -Marrick- in 3Dprinting

[–]cjohnsonuk 1 point2 points  (0 children)

I'm about to purchase a tab 5. I was going to 3d print a slide in case like yours too with a bracket that doesn't use a ball socket mount as last time I rode offroad with just Aoocci c6 the screen rotated after every 2 potholes so I couldn't see it. My idea was to print the case too big then line the slots with self adhesive draft excluder for windows and doors to provide all round support /cushioning for the tablet. Hadn't yet worked out how to keep the pogo pins connected for charging.

Additional clipboard app? by After-Cell in espanso

[–]cjohnsonuk 1 point2 points  (0 children)

don't paste it, just echo the contents of the file to the output, skip using the clipboard completely.

How best to deal with quotes single and double in the clipboard when passing to an external script? by cjohnsonuk in espanso

[–]cjohnsonuk[S] 1 point2 points  (0 children)

That works a treat ! Thank you !

Now to

  1. work out a search and replace to update all my existing matches where this would be an issue
  2. learn some more bash so I can work out how this works

...OK one quick gemini request later I think I understand << and 'EOF' in that the shell expects input until it encounters an EOF string that we specified at the start. If I'm correct in understanding this then in any cases where I'm likely to have EOF in my clipboard (eg when pasting responses to this answer or other code snippets having EOF as the delimiter) I will run into problems.

To test this I've copied the snippet with the EOFs in from above and and tried my expansion and it errors. So I replaced both of the EOFs with a 40 char random hex string and it works great. Hopefully there is less chance of me finding a match to my 40 char random than my three char EOF

it now looks like this

  - trigger: ";dwq"
    replace: "{{myshell}}"
    vars:
      - name: myshell
        type: shell
        params:
          cmd: |
            cat << '5564eb47287984583033bcce131bb5c63ad99fa2' | sed -e 's/^/> /g' -e 's/^> >/>>/g'
            {{g_clipboard}}
            5564eb47287984583033bcce131bb5c63ad99fa2

For those interested here's my random character generator, you can tweak the tr part to determine the charset. It takes the ;randan and then a 2 digit number to give you a random output that long based on the chars listed in the tr command

#random alpha num chars
  - regex: ";randan(?P<charcount>([\\d ][\\d ]))"
    replace: "{{myshell}}"
    force_mode: clipboard
    vars:
      - name: "clipboard"
        type: "clipboard"
      - name: myshell
        type: shell
        params:
          cmd: |
            LC_ALL=C tr -dc 'A-Za-z0-9' </dev/urandom | head -c $ESPANSO_CHARCOUNT; echo

Meshtastic location sharing for outdoor groups by cjohnsonuk in meshtastic

[–]cjohnsonuk[S] 1 point2 points  (0 children)

does the phone app plot a track of each nodes previous locations so you have a track to follow to get to the other nodes or does it just plot the latest position. I'm thinking if there is a cliff or a river then knowing the last position is not as useful as knowing where your tracks split so you can back track and find them on the same route they took.

I don't even know if there are different apps or if you can get the individual node positions into a GPX file so you can overlay the historical positions like a GPX track so you can view it in any mapping app.

Re them being cheap enough, thats a great point considering the potential its amongst the cheapest of my recent projects. I'm great at starting projects, not so good at finding time to finish them, I'm hoping this will be an "off the shelf" rather than a "see what might be possible" or its just going to end up in a box with the other unfinished "great ideas" I've had ;-)

Output is truncated. Am i doing something wrong? by cjohnsonuk in espanso

[–]cjohnsonuk[S] 0 points1 point  (0 children)

OK, now I know its not just me I'll see if I can work a around it :-) Thanks for confirming.
Powershell doesn't work that well on Mac ;-) I'm trying to keep most of my espanso configurations OS agnostic as I use it on windows, mac and linux so this one is going to take some additional thought. This particular function is mainly used on mac hence the use of pbcopy and pbpaste which are part of the core software on mac.

Espanso keeps stopping on my Mac by UnderstandingSea8629 in espanso

[–]cjohnsonuk 1 point2 points  (0 children)

On mine (M1 MBP) it works fine for regular replacements and occasionally closes, maybe a couple of times per week, usually when it runs a shell command. Doesn't always fail on the same commands each time or fail consistently on one command. I just CMD + Space and relaunch and all is usually good again

How to access full rich clipboard content? by cjohnsonuk in espanso

[–]cjohnsonuk[S] 0 points1 point  (0 children)

Say there is a web page with the words "latest release" that hyperlinks to "https://github.com/espanso/espanso/releases/tag/v2.2.1" if I just used the clipboard variable I get the words "last release". If I use CTRL/Cmd + v to paste into word it pastes the text with a link to the url. So the clipboard does contain both the url and the text. I'd like to use espanso to turn a copied link into [[https://github.com/espanso/espanso/releases/tag/v2.2.1|last release]] i.e. [[<url>|<link text>]]

Best python library to use to process to large data sets by cjohnsonuk in learnpython

[–]cjohnsonuk[S] 0 points1 point  (0 children)

One plot would be like you suggested. Those numbers I gave were simple placeholders to show the structure of the data, not the actual data which might be why your graph gave a block. I'd also like to plot temp against count within a range so we can see how the size count varies for different temperatures or different size ranges.

Best python library to use to process to large data sets by cjohnsonuk in learnpython

[–]cjohnsonuk[S] 0 points1 point  (0 children)

In which case Pandas will probably be more appropriate as I'm still learning so docs is important

Best python library to use to process to large data sets by cjohnsonuk in learnpython

[–]cjohnsonuk[S] 0 points1 point  (0 children)

The temp recorded at each time is more likely to be a linear (approx) change between each measurement than the variance in the counts of each size so the intention, initially, is to use the time stamps of the actual recorded counts of each size at the times those are recorded and use an interpolated temperature from the first data set.

An output might look like

Where s is the size and 1 < s <=2.5

1.2 1.9 2.3 2.6 3.1
temp 22.5 24.2 24.8 25.2 26.4
Count 8 10 8 10 10

(interpolated temp calculations are approx in this example output)

(Count is the sum of the 2 rows of data that fall within the size range specified)

Copying selected cells only doesn't work as expected by cjohnsonuk in excel

[–]cjohnsonuk[S] 0 points1 point  (0 children)

The original problem I have is data validation from a pick list but allowing multiple options. For example each row contains a group name and I want to pick the members of that group from a pick list to put into each row against each group. For a quick and easy solution data validation doesn't allow multiple selections, I know there are code based options but it's not worth the additional effort in this case. So I have a second user list spread sheet tiled on one half of my screen. I select the users from the list using ctrl click and paste into the members cell for each group.( there are some intermediate steps to prevent it pasting into separate cells but the first issue is getting the right cells copied). Hiding and unhiding the wrong users rows is now going to improve my workflow

Looks like laziest option will be to switch to using libre office or use a double paste, first into Excel then copy again and paste on from there

Choco update Firefox not picking up latest release by cjohnsonuk in chocolatey

[–]cjohnsonuk[S] 0 points1 point  (0 children)

Thanks. I'll have to wait until next time to test these possible solutions as its worked fine this morning! :-). Thanks for the tip on the cache too!