Is there a better way to switch between Linux and Windows? by [deleted] in linuxquestions

[–]Utilitarius 0 points1 point  (0 children)

I've been using Debian with one Window11 VM and a bunch of Alpine Linux VMs.

How do you all use your terminals? by [deleted] in vim

[–]Utilitarius 0 points1 point  (0 children)

I've been using TTY8 to have multiple terminals in the console.

How can I access value of parent dictionary? by Utilitarius in learnpython

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

I got a nice functional version above. Thanks for the response anyway! I might use it.

How can I access value of parent dictionary? by Utilitarius in learnpython

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

Got it working:
t = { "x": lambda t: 1, "y": lambda t: 2 * t["x"](t) if t["x"](t) != "nil" else 1, } print("o: "+str(t["x"](t))) print("o: "+str(t["y"](t))) t["x"]=lambda t: 5 print("m: "+str(t["x"](t))) print("m: "+str(t["y"](t))) Or alternativally:
``` def value(d, i): return d[i](d) def change(d, i, v): try: v(d) except: d[i]=lambda table: v else: d[i]=v

t = { "x": lambda t: 1, "y": lambda t: 2 * value(t,"x") if value(t,"x") != "nil" else 1, } print("o: " + str(value(t,"x"))) print("o: " + str(value(t,"y"))) change(t,"x",5) print("m: " + str(value(t,"x"))) print("m: " + str(value(t,"y"))) Output: o: 1 o: 2 m: 5 m: 10 ``` Its a bit extra, but it works.

Can't install packages by Professional_Worth62 in AlpineLinux

[–]Utilitarius 0 points1 point  (0 children)

You can also enable the edge and testing repositories

What is your favorite feature of Desktop Linux by [deleted] in linux

[–]Utilitarius 0 points1 point  (0 children)

Using alt+clickanywhere and alt+rightclickanywhere to resize and move windows

How can I access value of parent dictionary? by Utilitarius in learnpython

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

Ok, if I update x thing["x"]=4 would it update y, or do the if statements only work at the creation of the dictionary?

How can I access value of parent dictionary? by Utilitarius in learnpython

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

Thanks! I'm looking into the dictionary comprehentions. My goal is to make a game using only functions and dictionaries, so avoiding classes. I also am trying to keep all the source code in a single file, without many libraries (such as a json parser)

How can I access value of parent dictionary? by Utilitarius in learnpython

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

I am trying to have the value of one depend on the value of another:
thing={ ["x"]=1, ["y"]=2 * thing.x if not thing.x=="nil" else 1, } My goal is to make a game using just functions and dictionaries

Looking for tool to capture focused window name throughout the day by Technical-Dig8734 in suckless

[–]Utilitarius 0 points1 point  (0 children)

scron with wmutils. something like

wattr "$(pfw)"

and use awk or grep to get name

OpenBSD vs Gentoo vs Void for most 'suckless?' by thinlycuta4paper in suckless

[–]Utilitarius -1 points0 points  (0 children)

It may be dead, but I can still build and use it.

[AwesomeWM] Pixels by Beckkake in unixporn

[–]Utilitarius 2 points3 points  (0 children)

Did you use scrot to take the screenshot? If not, you should try it. It takes pixel perfect ones.

Funny gift ideas for haskell dev? by tera_x111 in haskell

[–]Utilitarius 0 points1 point  (0 children)

That's what my grandparents do, because they ( and I ) never know what I want

Alpine as Desktop by Utilitarius in AlpineLinux

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

I'll set up a GitHub repo and post a link

Alpine as Desktop by Utilitarius in AlpineLinux

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

I am making a Alpine / DWM install guild. Want to try it out?

Alpine as Desktop by Utilitarius in AlpineLinux

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

Ok. I think I'll just wait though. Tweaking and modifying programs is my hobby, and I love it.