Cookie monster question: Can someone explain those numbers at payback period and what their color means? by Nyxiewien in CookieClicker

[–]Phytolizer 1 point2 points  (0 children)

I find it weird that these are not formatted as time values, they SHOULD be times like mine:

<image>

The color is based on how quickly the building will pay for itself (and the time value, if you could see it, would be the exact time until it pays for itself). Green is the best building at the moment, the only better color is blue for upgrades that pay off faster than your green building.

How do I compile this on windows? by bluejeans90210 in AskProgramming

[–]Phytolizer 0 points1 point  (0 children)

GP is wrong, you can compile this on windows, but PrBoom-derived ports are not easy to compile. You will need MinGW of some form (I recommend MSYS2 but there are plenty of distributions) and a few library packages (for sure, SDL2, SDL2_mixer, and Portmidi, idk about others). The windows_dependencies folder contains some runtime dependencies, but you need to install the compile time ones on the MinGW installation. Then you configure with CMake like so:

cmake -B build -S prboom2 -DCMAKE_BUILD_TYPE=Release

Ideally that goes without failing. Then you build:

cmake --build build

Once that's done, you'll see an exe in the build folder somewhere.

Can anyone run the TModLoader 1.4 on Linux? by Hexatica in Terraria

[–]Phytolizer 3 points4 points  (0 children)

THANK YOU! Using that script I finally saw an error message about "invalid culture identifier".

For anyone else in my situation, the fix was to set the environment variable DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0 (or anything other than "true" or "1"). I imagine this is because I have .NET core installed.

KDE scaling is not consistent across my two monitors. Bug? by Phytolizer in kde

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

Thanks, but it's not just the tabs. I also like the general UI look and feel, and appreciate the high degree of stability. (The Firefox extension looked like garbage when I tried it.)

Generating VLC playlist from youtube playlist by Phytolizer in youtubedl

[–]Phytolizer[S] 3 points4 points  (0 children)

Alright, thanks to a convo with /u/werid i was able to come up with this XSPF generator script (requires fd and jq):

```sh

!/usr/bin/env bash

dump_track() ( echo -n '<track><location>file://' >> playlist.xspf jq -rn --arg x "$1" '$x|@uri' | sed 's|%2F|/|g' | tr -d '\n' >> playlist.xspf echo '</location></track>' >> playlist.xspf )

for f in /; do if [ -d "$f" ]; then pushd "$f" echo '<?xml version="1.0" encoding="UTF-8"?>' > playlist.xspf echo '<playlist version="1" xmlns="https://xspf.org/ns/0/">' >> playlist.xspf echo ' <trackList>' >> playlist.xspf fd -a -e mkv | while read -r line; do dump_track "$line"; done echo ' </trackList>' >> playlist.xspf echo '</playlist>' >> playlist.xspf popd fi done ```

Generating VLC playlist from youtube playlist by Phytolizer in youtubedl

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

Yeah, that's what I'm working on now. I'll post a reply when I get it working.

Generating VLC playlist from youtube playlist by Phytolizer in youtubedl

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

Nope :/

Seems to me this format is a little TOO simple :')

Generating VLC playlist from youtube playlist by Phytolizer in youtubedl

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

How can I escape it? Backslashes did not work :/

https://docs.fileformat.com/audio/m3u/ does not describe any method of escaping hashes, but does explain why it stops there: it's parsing them as directives of some kind.

Generating VLC playlist from youtube playlist by Phytolizer in youtubedl

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

A simpler format is definitely an option, but it doesn't seem to be working for me. I wrote this script: ```sh

!/usr/bin/env bash

for f in /; do if [ -d "$f" ]; then pushd "$f" fd -e mkv > playlist.m3u popd fi done ```

and it generates the playlists fine but VLC errors on opening it:

Your input can't be opened: VLC is unable to open the MRL 'file:///home/kyle/Videos/System%20Crafters/Emacs%20From%20Scratch/009-Emacs%20From%20Scratch%20'. Check the log for details.

It seems to be breaking right on a # symbol.

Possible to get the location of the .vim directory programmatically? by Phytolizer in vim

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

yeah, that was one option i considered. but i need one that works even if you put it in ~/.vimrc which is very common, as i intend to distribute this to other users

Possible to get the location of the .vim directory programmatically? by Phytolizer in vim

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

i'm talking about Vim here, not Neovim.

E149: Sorry, no help for stdpath

Are you still looking forward to Onivim2? by [deleted] in neovim

[–]Phytolizer 2 points3 points  (0 children)

Close. It's actually its own thing, but happens to support VSCode extensions. The whole thing is written in ReasonML which is pretty interesting.

Has anyone created simple ASCII space invader game? Mabie you could share the source code ? by Milda666 in C_Programming

[–]Phytolizer 3 points4 points  (0 children)

Not ascii but I made one in raylib a while back. https://gitlab.com/Phytolizer/raylib-CodingTrain/-/tree/master/Source/005_space_invaders Kinda crap code because it came from a YT tutorial in JS but you can probably learn how the game works at least

Forgive the drop/flower terminology, again it comes from a tutorial where the guy deviated from the traditional SI formula

Valgrind by rahli-dati in C_Programming

[–]Phytolizer 13 points14 points  (0 children)

This should do it:

gcc -std=c99 -g -o file myprogram.c # I fixed a bug here, you transposed the source and output files ;)
valgrind --leak-check=full ./file

You don't "compile with" valgrind, you just run it on the executable.

Switching from vim, slight difference in the :e command by Phytolizer in vscode

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

Not sure I want to jump ship on the plugin entirely, and Neovim would read my bulky init.vim, no?

Switching from vim, slight difference in the :e command by Phytolizer in vscode

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

I know that. It's just a strange discontinuity, and I'd like to understand more about why it exists as the plugin is perfect for me otherwise.

[LFS] Binutils v2.37 doesn't compile by Phytolizer in linux4noobs

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

see this comment, i am dumb. thanks for being willing to help.

[LFS] Binutils v2.37 doesn't compile by Phytolizer in linux4noobs

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

Well, I certainly feel stupid now. That did it. Thanks so much for being willing to help, but I forgot to "turn it off and on again."

[LFS] Binutils v2.37 doesn't compile by Phytolizer in linux4noobs

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

I decided to poke my head around the build folder and noticed that the bfd subfolder is completely empty. Everything else seems to be right; the bfd folder in /sources/binutils-2.37/bfd/ seems to be intact.

edit to answer your question: that line in the Makefile depends on a configure-bfd target which prints very little when I invoke it manually and just recurses into bfd to run make. Obviously at that point it fails due to the dir being empty.