[-] Hammerheart@programming.dev 2 points 11 months ago

Yes, it was meant to be a self deprecating admission that I have used this unnecessarily verbose command.

[-] Hammerheart@programming.dev 2 points 1 year ago

It does. Empty collections, 0, None

[-] Hammerheart@programming.dev 1 points 1 year ago

How does that work?

[-] Hammerheart@programming.dev 1 points 1 year ago

This is amazing, thank you! You've given me a lot to think about, not just with respect to this program, but what sort of things to consider when analyzing the behavior of any program. Describing the classes of input like you did was enlightening.

[-] Hammerheart@programming.dev 1 points 1 year ago

I added a description to OP.

Gambler (PROGRAM 1.3.8) is a simulation that can help answer these questions. It does a sequence of trials, using Math.random() to simulate the sequence of bets, continuing until the gambler is broke or the goal is reached, and keeping track of the number of wins and the number of bets.

[-] Hammerheart@programming.dev 1 points 2 years ago

What a great read! Thanks so much for sharing this.

[-] Hammerheart@programming.dev 1 points 2 years ago

In case this thread turns up a google search, or anyone is keeping score, I think I more or less managed to achieve what I wanted by putting this is in my config:

assign [class="Firefox-esr"]  "2"
exec wezterm -e cmus
 exec swaymsg [app_id="org.wezfurlong.wezterm"] focus
 exec swaymsg move container to workspace "10"
 exec firefox

the only thing i don't love is that if quit cmus, it closes the window instead of bringing me back to the shell. maybe i have so chain commands or something, i don't know. i'm happy to have made it this far. Another thing is I don't know if it's possible to distinguish between the specific instance of wezterm that's running cmus, and the other one i want running on workspace 1.

[-] Hammerheart@programming.dev 1 points 2 years ago

I want my terminal to start on workspace one. Since this is default behavior of adding 'exec ' to my sway config, this requirement is satisfied. I also want Firefox to start up on workspace 2. And I would like another terminal to open on workspace 10, but to automatically run cmus, a terminal music player.

[-] Hammerheart@programming.dev 1 points 2 years ago

If this ever happens to you again, you can try doing ctrl + alt + < F1 - F12>. That will bring up different screens/terminals and its so baked into linux it might have still worked even in that broken state. Still bonkers the installer didn't accept keyboars info though. Its ironic because so much of my linux experience has been about reducing mouse/touchpad use.

[-] Hammerheart@programming.dev 1 points 2 years ago

If also like to know what site this is so i can avoid it. I DMed you.

[-] Hammerheart@programming.dev 1 points 2 years ago* (last edited 2 years ago)

Im curious to check it out in case anyone wants to DM me an invite code.

got one! thanks lemmy

[-] Hammerheart@programming.dev 1 points 3 years ago

Yea I did, it wasn't my intention when I made the post but I basically got the rubber duck experience. I've edited the title.

view more: ‹ prev next ›

Hammerheart

0 post score
0 comment score
joined 3 years ago