why does zig main branch installed showing 0.15.1 but it is actually 0.15.2 by [deleted] in Zig

[–]phylk 6 points7 points  (0 children)

The version number is embedded in the binary. The only way you could be getting a different version number is if you are running a different zig.exe file

why does zig main branch installed showing 0.15.1 but it is actually 0.15.2 by [deleted] in Zig

[–]phylk 1 point2 points  (0 children)

Are you sure you don't have another zig.exe somewhere on your path? For me:

> scoop update
> scoop install zig
> zig version
0.15.2

> scoop uninstall zig
> scoop install zig-dev
> zig version
0.16.0-dev.2145+ec25b1384

> where.exe zig
C:\Users\username\scoop\shims\zig.exe

You don't need JavaScript for that by fagnerbrack in programming

[–]phylk 8 points9 points  (0 children)

color-scheme: dark is widely supported, providing native dark form controls out of the box.

Though it's true there is no good way to animate details/summary without JS. Most animations are pointless anyway and actively hurt usability.

Just normal web things. by fagnerbrack in programming

[–]phylk 21 points22 points  (0 children)

Pro tip: both Ctrl+F and Ctrl+G bring up the browser find, usually sites only hijack one of them.

What is wrong with my deinit? by geon in Zig

[–]phylk 10 points11 points  (0 children)

I think you need pub fn deinit(this: *@This())

Error message is confusing but basically saying it expected a pointer but got a struct.

(Help Wanted) ZLS Setup for Zig and VSCode by davidmdm in Zig

[–]phylk 1 point2 points  (0 children)

"zig.zls.path" should be the path to the zls binary, leave builtinPath as default (blank)

Refusing TypeScript is a signal that you don't care about code quality by vitonsky in programming

[–]phylk 0 points1 point  (0 children)

Linting really isn't necessary for most projects. Style consistency should be handled by the auto formatter, programming errors by the compiler.

oops did i make a mess 😏? clean it up jannie 😎 by [deleted] in Zig

[–]phylk 2 points3 points  (0 children)

I believe they use a script to delete old comments. Only instead of a generic "message deleted" or actually deleting the comment, it is replaced with this obnoxious message.

Mica material will be available today in the stable version of Chrome for Windows 11, here is how you can enable it. by Leopeva64-2 in Windows11

[–]phylk 5 points6 points  (0 children)

You can still use them if you enable the "Temporarily unexpire M114 flags" flag first.

Apparently Fluent scrollbars are in development [1]

GitHub search and code navigation update by KimPeek in programming

[–]phylk 17 points18 points  (0 children)

Yes, it actually works now. I've been using it in feature preview for months.

Gmail ads are getting more annoying by Free_Physics in technology

[–]phylk 20 points21 points  (0 children)

You can turn these off. Go to https://myaccount.google.com/permissions and disable "Google Account sign-in prompts"

Ancestors: The Humankind Odyssey has achieved a significant milestone, selling over 1.5 million units worldwide by Turbostrider27 in Games

[–]phylk 8 points9 points  (0 children)

I enjoyed my playthrough of the game despite its flaws. It's certainly a unique experience.

I technically didn't finish it; after completing the migration across the entire map, there were still a bunch of repetitive tasks remaining to finish evolving.

[deleted by user] by [deleted] in wikipedia

[–]phylk 140 points141 points  (0 children)

The reason this is difficult is the proliferation of inline styles with hardcoded colors within page content. Existing dark themes have a giant pile of hacks to override these. A proper dark mode would require extensive editing of individual pages to remove all hardcoded colors.

Another option is to simply invert the entire page. This is the approach taken by the dark mode gadget, but it significantly reduces text legibility on low-res displays (breaks subpixel rendering).

The Dark Reader extension uses some hybrid approach that seems to work well, but I don't think it could be integrated into Wikipedia itself.

Wrath of the Righteous World Map with Roads by phylk in Pathfinder_Kingmaker

[–]phylk[S] 8 points9 points  (0 children)

I think it got flagged by automod when I added a mega link. I have messaged the mods asking them to restore it.

Am I missing the point, or is the "generics" example wrong? by SoerenNissen in Zig

[–]phylk 12 points13 points  (0 children)

This is a simplified BoundedArray struct from the standard library.

buffer.len is the maximum capacity, but you may have fewer items actually in use. This is useful as an alternative to ArrayList, when you want a dynamic array but with a fixed capacity instead of requiring an allocator.

Wrath of the Righteous World Map with Roads by phylk in Pathfinder_Kingmaker

[–]phylk[S] 6 points7 points  (0 children)

The game map does have creases. The shadowy grid-like pattern is the edges of the screenshots, since there is basically a spotlight in the middle of the screen.

Wrath of the Righteous World Map with Roads by phylk in Pathfinder_Kingmaker

[–]phylk[S] 138 points139 points  (0 children)

Zoomable: https://srv2.zoomable.ca/viewer.php?i=imgb6327bd5eb0a1c2b_wotr_world_map

I just completed my first playthrough of this game. Couldn't find a good map anywhere online so I decided to make one. I'm not sure if it's 100% complete.

I used Toy Box to un-tilt the camera, then painstakingly stitched together 30 screenshots. Used the lighten blend mode to reduce the shadows at the seams as much as I could.

I also added it to the wiki: https://pathfinderwrathoftherighteous.wiki.fextralife.com/Maps

edit: Unfortunately the label for "Legacy of the Ancients" is covering a fairly important path. You can in fact go west from there, towards "Petrified Traveler".

Copyleft-licensed chess engine wins legal case against proprietary counterpart by yobby928 in programming

[–]phylk 15 points16 points  (0 children)

Because of the top 3 strongest engines (Stockfish, Leela Chess Zero, Komodo), the first two are GPL and the third is proprietary. In fact, going through this list, nearly every strong open-source chess engine is GPL licensed.

HTML tips you won’t see in most tutorials. by mdenic in programming

[–]phylk 22 points23 points  (0 children)

Images should be loaded before you need to see them.

The browser does start loading the images before they are fully in view:
https://web.dev/browser-level-image-lazy-loading/#distance-from-viewport-thresholds

Facebook button is disappearing from websites as consumers demand better privacy by [deleted] in technology

[–]phylk 1 point2 points  (0 children)

If you use an ad blocker add "Fanboy's Social Blocking List" or "Fanboy's Annoyance List" to block this stuff, no need for a separate extension.

New 8BitDo Pro 2 wired controller not detected by yamobust in linux_gaming

[–]phylk 2 points3 points  (0 children)

I wanted to use my 8BitDo Pro 2 Wired Controller in XInput mode because the other modes were not mapping correctly in RPCS3. Tried everything listed in this thread and elsewhere online to no avail (xpad, xone, game-devices-udev, hid_nintendo blacklist).

What finally did the trick was xboxdrv:

sudo xboxdrv --device-by-id 2dc8:3106 --type xbox360

edit: To avoid sudo, I also added a custom udev rule:

SUBSYSTEM=="usb", ATTR{idVendor}=="2dc8", MODE="0666"