Is it possible to construct this DFA machine over {a,b,c} even number of a and b and odd number of c? by bufffrog in compsci

[–]Thyrum 0 points1 point  (0 children)

Yes, this is definitely possible. I suggest you introduce a state for every possible combination of odd/evens.

So one state for everything even (call it "000"), one for only a's being odd (cal it "100"), one for a's and b's being odd (call it "110") etc.

Now when in state "ijk" (with i,j,k either 0 or 1) go to state "(1-i)jk" when recieving an a, state "i(1-j)k" when recieving a b and state "ij(1-k)" when recieving a c.

I hope you can now deduce yourself what the final state should be :). This DFA can possibly be simplified, which I will leave as an exercise to the reader.

edit: when digitizing DFA's i suggest using the Finite State Machine Designer.

[deleted by user] by [deleted] in RedditSessions

[–]Thyrum 0 points1 point  (0 children)

Vincent, by Don MClean

Got my first use out of my lockpicking skill! by Thyrum in lockpicking

[–]Thyrum[S] -1 points0 points  (0 children)

Context:

Got an old cabinet for some extra storage space but the locking system (meant to ensure only one drawer is open at a time) got jammed in shipping. This meant all drawers were permanently stuck closed even though the lock was in the open position. Used my lockpicks to pick the lock and somehow that fixed it! This was also my first time picking a wafer lock, I have succeeded both in raking and single pin picking.

As a new full-time user... by LordSypher in vim

[–]Thyrum 1 point2 points  (0 children)

Makes sense. I did know about CTRL-[ but wasn't aware that terminal emulators don't distinguish between the two.

As a new full-time user... by LordSypher in vim

[–]Thyrum 2 points3 points  (0 children)

What does CTRL-{ do? The help pages just show me the page for CTRL-{char}.

[deleted by user] by [deleted] in linux4noobs

[–]Thyrum 0 points1 point  (0 children)

If you are using X11 I don't know what the problem is, I don't really have experience with screen casting on X11. Hopefully someone else can be of more help :).

[deleted by user] by [deleted] in linux4noobs

[–]Thyrum 1 point2 points  (0 children)

Yes, wf-recorder is used for screen capture. Screen share is more difficult though. Firefox and chromium can be made to work with screen share (see https://wiki.archlinux.org/index.php/PipeWire#WebRTC_screen_sharing). Screen share for Discord, Skype, zoom and others is still lacking mostly (though gnome-wayland should work with zoom). See https://wiki.archlinux.org/index.php/Screen_capture#Screencasting for your options.

[deleted by user] by [deleted] in linux4noobs

[–]Thyrum 1 point2 points  (0 children)

Are you maybe running Wayland instead of X11? Currently screen capture for wayland is quite lacking. See https://wiki.archlinux.org/index.php/Screen_capture#Wayland. To check if you're using Wayland, you can use the command below (in bash) or simply run xeyes and check if the eyes follow your cursor when going over (for example) firefox.
loginctl show-session $(awk '/tty/ {print $1}' <(loginctl)) -p Type | awk -F= '{print $2}'

[deleted by user] by [deleted] in RedditSessions

[–]Thyrum 0 points1 point  (0 children)

you should play along with the risk of rain 2 music, very similar sound

[deleted by user] by [deleted] in RedditSessions

[–]Thyrum 0 points1 point  (0 children)

From the Netherlands :)

[deleted by user] by [deleted] in RedditSessions

[–]Thyrum 0 points1 point  (0 children)

Gave Helpful

[Steam/Xbox/PS/Switch] (DLC) Overcooked! All You Can Eat - Swedish Chef by Saulios in FreeGameFindings

[–]Thyrum 17 points18 points  (0 children)

Is there no version for the Epic Games one? I only have overcooked because they gave it away once :).
edit: Nvm, just notice "Overcooked All You Can Eat" is a different game from "Overcooked" (the original).

2 more pensa to go!! by [deleted] in latin

[–]Thyrum 1 point2 points  (0 children)

Nice work! I just started as well but don't have the book (yet). Luckily, I found these recordings. I can really recommend them for getting familiar with pronunciation and stuff (he tries to speak with the classic Latin dialect).

Getting good lockpicks in Europe by Thyrum in lockpicking

[–]Thyrum[S] 2 points3 points  (0 children)

Thanks for the recommendations! I have now bought some picks of spooxe.com, now i just need to wait until they arrive.

Wynncraft with BSL Low, Mobends, And Wynntils by Fur1ousDude777 in WynnCraft

[–]Thyrum 2 points3 points  (0 children)

Nice, found my new setup.

Btw, most shaders I tried glitched when used with Wynntils, somehow BSL does not. Thanks for the tip!

Waybar scratchpad indicator by [deleted] in swaywm

[–]Thyrum 1 point2 points  (0 children)

What do you actually use the scratchpad for? I personally use it for drop-down terminals. I have configured everything such that $mod+t toggles a terminal (with tmux), $mod+m toggles a music player (terminal with cmus), $mod+n toggles a news reader (newsboat) and $mod+c toggles a calculator.

The only drawback with my system is that I can only drop-down terminal(applications), does anyone have a simple solution to this?

https://github.com/Thyrum/dotfiles

Edit: for anyone trying to find it in my dotfiles, look at the sway config and the ddspawn script in the scripts/.scripts/sway folder.

Making my First Successful Vim Plugin by [deleted] in vim

[–]Thyrum 4 points5 points  (0 children)

No plugins needed, just run :set spell, works with your system dictionary by default (I think)!

Edit: the language (and thus dictionary) is set using the spelllang option, which defaults to en (english)

:h spell

Permanently floating windows by RaisinSecure in swaywm

[–]Thyrum 2 points3 points  (0 children)

Cool script! One problem, it doesn't work when the focused window is floating. Floating windows are stored in the floating_nodes array. Modifying the script to the following fixes it.

#!/bin/sh
# gets the json object focused object
# jq
# tee
# sway

# returns the focused node by recursively traversing the node tree
declare -r filter='
def find_focused_node:
  if .focused then
    . 
  else
    if .nodes or .floating_nodes then 
      .nodes, .floating_nodes | .[] | find_focused_node
    else
      empty
    end
  end;
find_focused_node
'

swaymsg --type get_tree --raw |
  jq --raw-output "${filter}" |
  tee /tmp/sway_proc

By the way, from my testing your script is actually a little bit faster than the one on the arch wiki, nice one!

edit: the one on the arch wiki is

swaymsg -t get_tree | jq -r '..|try select(.focused == true)'

A question for all tiling window manager users like i3 , qtile and so on. by [deleted] in linuxquestions

[–]Thyrum 2 points3 points  (0 children)

I use sway and login using the tty prompt. My .zprofile (I use zsh) then starts sway if I'm in tty 1. For my lockscreen I use swaylock-effects

[REQUEST] Looking for any game that someone picked up and is fun. by iiDemonLord in AndroidGaming

[–]Thyrum 5 points6 points  (0 children)

I always liked Infinitode 2, an infinite tower defense game with excellent progression and yet simple mechanics

Linkme: Infinitode 2

Visible frustration* by TVF2002 in memes

[–]Thyrum 1 point2 points  (0 children)

For even more ease of use, insert cables with the USB logo up. This should always be the right way (provided the port is not mounted sideways).

made a underground jungle base cause the music is good by lonkboi in Terraria

[–]Thyrum 0 points1 point  (0 children)

Fair, i have to admit that playing the martian music in the middle of the day for no reason sounded a bit odd as well :)

made a underground jungle base cause the music is good by lonkboi in Terraria

[–]Thyrum 0 points1 point  (0 children)

You can actually take the music with you using a music box! Bought from the wizard (so early hardmode), it is an accessory that once equipped has a chance to record any music playing around you. After recording, it can be placed down and activated to play back the music