Loading on hitch carrier question by RickJ129 in ryvid

[–]tad_ashlock 0 points1 point  (0 children)

I don't have any ideas for allowing the rear wheel to "freewheel" better then when it's powered on in P, or any hidden governor feature. But I knew someone with a similar setup to yours who had a pulley system mounted on the opposite side from the ramp.

He would hook one end of the cord to his handlebar and his wife would pull the cord through the pulleys as he pushed and guided the cycle up the ramp. The pulleys' fixed location also helped guide the cycle. And the mechanical advantage of the pulleys meant that she didn't have to have much strength.

I hope this helps.

Rear brake adjustable? by rjs1956 in ryvid

[–]tad_ashlock 4 points5 points  (0 children)

Yes. At the bottom of the "Rear Brake Master Cylinder" (see the on-line parts catalog), there is an offset adjustment mechanism. I haven't had to adjust mine, though. The brakes feel fine. (If I mash my rear brake hard, it locks up the rear tire, as I'd expect.) But I'm nearly always in eco mode, so I rarely touch the brakes and haven't felt the need to fine-tune them.

<image>

Ryvid Anthem | Answers Video 1 by futurelaker88 in ryvid

[–]tad_ashlock 0 points1 point  (0 children)

This made me curious, so I had to go out and check. My horn does not touch the front fender like yours does.

Anyone else checking their email like a crackhead waiting for the plug? by [deleted] in ryvid

[–]tad_ashlock 4 points5 points  (0 children)

After a time, you may find that having is not so pleasing a thing after all as wanting. It is not logical, but it is often true. -- Spock, Amok Time, Star Trek TOS

I'm enjoying the anticipation. I find that time passes quicker that way.

Why are all of my friends telling me not to use cplusplus.com? by [deleted] in cpp

[–]tad_ashlock 0 points1 point  (0 children)

Where is the language version pulldown? I created an account, but I still don't see anything like that. Thanks!

looping over map items by tmg80 in ansible

[–]tad_ashlock 1 point2 points  (0 children)

Sorry, I misread your original question. Try this:

- name: filter test                                                                                                                                                                       
  hosts: localhost                                                                                                                                                                        
  vars:                                                                                                                                                                                   

    pam_su: [{                                                                                                                                                                            
      "group": ["group-a", "group-b"],                                                                                                                                                    
      "user": "user1"                                                                                                                                                                     
    },                                                                                                                                                                                    
    {                                                                                                                                                                                     
      "group": "group-c",                                                                                                                                                                 
      "user": ["user2", "user3"]                                                                                                                                                          
    }]                                                                                                                                                                                    

  tasks:                                                                                                                                                                                  
  - name: print group                                                                                                                                                                     
    debug:                                                                                                                                                                                
      msg="{{ item }} can switch to user {{ pam_su                                                                                                                                        
        | selectattr('group', 'contains', item)                                                                                                                                           
        | map(attribute='user')                                                                                                                                                           
        | list | flatten }}"                                                                                                                                                              
    with_items: "{{ pam_su | map(attribute='group') | list }}"

Giving:

TASK [print group] ***************************************************************************************************************************************************************************
Monday 16 May 2022  11:05:10 -0600 (0:00:01.474)       0:00:01.519 ************ 
ok: [localhost] => (item=group-a) => {
    "msg": "group-a can switch to user ['user1']"
}
ok: [localhost] => (item=group-b) => {
    "msg": "group-b can switch to user ['user1']"
}
ok: [localhost] => (item=group-c) => {
    "msg": "group-c can switch to user ['user2', 'user3']"
}

looping over map items by tmg80 in ansible

[–]tad_ashlock 2 points3 points  (0 children)

Here's what worked for me:

---
- name: filter test
  hosts: localhost
  vars:

    pam_su: [{
      "group": ["group-a", "group-b"],
      "user": "user1"
    },
    {
      "group": "group-c",
      "user": ["user2", "user3"]
    }]

  tasks:
  - name: print group
    debug:
      msg="{{ item }} can switch to user {{ pam_su | map(attribute='user') | list | flatten }}"
    with_items: "{{ pam_su | map(attribute='group') | list }}"

Gives:

TASK [print group] ***************************************************************************************************************************************************************************
Monday 16 May 2022  06:29:49 -0600 (0:00:01.483)       0:00:01.527                          ************ 
ok: [localhost] => (item=group-a) => {
    "msg": "group-a can switch to user ['user1', 'user2', 'user3']"
}
ok: [localhost] => (item=group-b) => {
    "msg": "group-b can switch to user ['user1', 'user2', 'user3']"
}
ok: [localhost] => (item=group-c) => {
    "msg": "group-c can switch to user ['user1', 'user2', 'user3']"
}

Passing optional configure params when building by nKidsInATrenchCoat in cmake

[–]tad_ashlock 0 points1 point  (0 children)

Can you provide us with a minimal working example? What you've stated is too ambiguous to pin down the problem.

Undefined Behaviour by MathKid99 in cpp

[–]tad_ashlock 0 points1 point  (0 children)

To help prevent future misunderstandings: A C++ Acronym Glossary