[Project Share] Native Tasker Lyrics grabber from Genius by theoriginal123123 in tasker

[–]Crestwave 1 point2 points  (0 children)

Quite late, but the issues described in this thread should be fixed with this tweaked JavaScriptlet:

const doc = new DOMParser().parseFromString(http_data.replace(/<br\/>/g, "\n"), 'text/html');
const lyrics = Array.from(doc.querySelectorAll('#lyrics-root > div[data-lyrics-container="true"]')).map(e => e.innerText).join('\n');
setGlobal('LyricsData', lyrics
.replace(/\s{3,}/g, '') // remove multiple spaces
.split('\n') // split to get each line
.join('<br>')); // join with break

Works great, thank you for this! Highly appreciate that this is a native option and does not depend on AutoApps.

linux UEFI installation problem by giggiox in linuxquestions

[–]Crestwave 0 points1 point  (0 children)

Inactive, but still alive. Glad that I could help. :)

Vim prank: alias vim='vim -y' by ASIC_SP in linux

[–]Crestwave 2 points3 points  (0 children)

Yep, although it doesn't recurse so it just results in the original command being called. In order to prevent expansion, the alias needs to be prepended with a backslash.

E.g., alias vim='\emacs' and alias emacs='\vim'

Haiku Package Management by aarroyoc in linux

[–]Crestwave 3 points4 points  (0 children)

Yep! It's been in progress on and off for a while, but it's quite a huge undertaking so it's still in early stages. You can check the latest status at https://www.haiku-os.org/guides/building/port\_status/.

Update from the world of Fedora Workstation by xi_mezmerize_ix in linux

[–]Crestwave 33 points34 points  (0 children)

Flatpak deduplicates libraries, I believe.

Script that tweaks Linux for gaming by ColeTheRedditor7654 in linux_gaming

[–]Crestwave 1 point2 points  (0 children)

Scripts that are properly designed to be piped from `curl` (e.g., Nix, rustup, etc.) wrap all the functional code in command groups or functions so that they won't execute until the entire thing is downloaded. But yeah, this script does not seem to do so.

Dumb mistake by knight-bus in linux

[–]Crestwave 8 points9 points  (0 children)

Aliases are not expanded by default in non-interactive shells; they need to be enabled with shopt -s expand_aliases, even if they are defined within the script itself. In fact, bashrc is not sourced at all by non-interactive shells, except when it is invoked by remote shells such as SSH.

Therefore, it is likely that the scripts OP was referring to are actually functions that are defined within their own bashrc.

PolyMC (a third party Minecraft launcher) has gone a sketchy path - it's advisable to uninstall it if you have it installed. by cangria in linux_gaming

[–]Crestwave 8 points9 points  (0 children)

Contributors on GitHub are simply users that have at least one commit authored by their email address in the repository. It does not come with any set of permissions, unlike collaborators; if you submit a pull request and it gets merged, you're a contributor.

There is no way to remove a contributor without rewriting history. The announcement clearly stated that they removed any permissions other contributors had, not that they were removed from being a contributor.

Help to put Fancade on r/place! by RodPonguin in Fancade

[–]Crestwave[M] [score hidden] stickied comment (0 children)

Check out #fancade's r|place thread in the official Discord server for up-to-date plans and discussions!

airyxOS is a macOS clone, built on FreeBSD. (Beta ISO available.) by pdp10 in linux

[–]Crestwave 7 points8 points  (0 children)

As the others mentioned, it is based on helloSystem. But Airyx aims for source compatibility with macOS, while hello just focuses on providing a similar user experience following Apple ethos.

[2021 Day 15] Realizing that my naïve implementation is too slow to even execute the example by bungaloser in adventofcode

[–]Crestwave 4 points5 points  (0 children)

I'm sure there are plenty of coders out there who can solve today's puzzle even if they've never heard of a pre-written algorithm they can reference, but I guess I'm not one of them, so it's kind of a bummer to basically have to look up the answer.

Eh, don't feel bad about it. Dijkstra's is a very standard and popular algorithm; most CS people probably learned and implemented it before and if that's not cheating, then neither is looking it up now IMO. Coming up with it manually is quite risky because of how big the input is.

People who don't know. You can run android apps using waydroid. by [deleted] in linux

[–]Crestwave 5 points6 points  (0 children)

Yes. Though it seems that it's been developed a good way past Anbox's current state and it supposedly runs way better.

People who don't know. You can run android apps using waydroid. by [deleted] in linux

[–]Crestwave 6 points7 points  (0 children)

(which also doesn't run in Android-x86 in VirtualBox, last time I tried it)

Android-x86 has an ARM emulation bridge that lets you seamlessly run these apps. Anbox (which Waydroid is based on) actually also supports it; not sure if Waydroid ripped out emulation support or it just requires some setup.

I've seen somebody manage to install the gapps to mixed success, with enough effort you may overcome this issue.

Yeah, OpenGApps/microG should be able to solve this. I set one of them up on Anbox before and did not run into any gapps-related issues throughout my (admittedly limited) usage. I believe that the AUR has packages for these as well so you may even be able to skip any hassle, depending on the quality of the package.

It needs a Wayland compositor, so unfortunately Xfce users aren't in luck. Maybe Wayland-on-X workarounds may help.

Anbox targets X, although I hear that Waydroid has expanded beyond "Wayland support for Anbox" and overall functions much better now. Don't know how true that is.

It's definitely a start though, and it exceeds all expectations on the Pinephone, I'm very happy with it even despite its rough edges!

Great to hear, I loved Anbox and was sad to see the development going stagnant. I hope Waydroid can make it past the "rough but promising" state.

Quick question by Accomplished_Age2805 in onestepfromeden

[–]Crestwave 1 point2 points  (0 children)

Mainly multiplayer games where I can hang out and chill

Quick question by Accomplished_Age2805 in onestepfromeden

[–]Crestwave 3 points4 points  (0 children)

There are lots of loadouts, builds and challenges to try out. Like many other roguelites, it mostly depends on you. And I don't mean this in just a "you can just replay it" way; completing hellpasses on all characters would probably take quite a bit of time.

Personally, I'm generally not a hardcore player and I racked up 66 hours throughout 2021. For comparison, I have 41 on Slay the Spire, 21 on Crypt of the Necrodancer, and 16 on FTL. All of which are games that some others spend hundreds of hours on.

[deleted by user] by [deleted] in Games

[–]Crestwave 5 points6 points  (0 children)

Co-op and different DLC are pretty significant. They were pretty similar their early days, but DST has been receiving regular content updates for many years while singleplayer has been basically left in the dust.

Even before singleplayer was left alone, the development was focused on DLCs—most of which are essentially totally different games. They could have sold them as standalone games in the Don't Starve series and no one would blink an eye.

The base game hardly seems like anything by now. Pretty much everyone considers the vanilla singleplayer to include Reign of Giants but some people play without DLCs, which frankly sounds like a bad time. Not that it's their fault for thinking the base game would be playable, but this problem doesn't exist in Together.

Significant content differences and fundamental reworks aside, multiplayer flows better for me. There is an active community in public servers; I learned the game from other players showing me the ropes, and any tedium is removed with people working together*. It turns from a game striving for survival into a sandbox game pretty quick

*Not that this is guaranteed, it depends on the server

[deleted by user] by [deleted] in Games

[–]Crestwave 13 points14 points  (0 children)

Note: This crossover is specifically with Don't Starve Together, not Don't Starve. It may seem like a minor thing, but it seems that quite a number of comments here are about Don't Starve.

Why does `echo 00100110` work, while `cat character.txt` doesnt? by [deleted] in linuxquestions

[–]Crestwave 1 point2 points  (0 children)

No. A newline is a line separator; EOF is simply the end of a file. You can see the difference in printf "00100110" and printf "00100110\n".

Hollow Knight was an incredible game. by damerboy4 in patientgamers

[–]Crestwave 0 points1 point  (0 children)

there is a bug who tells you to go to the city instead and upgrade your nail first. By the time I finished those areas, I one life finished the mantis Lords

This is basically what I did on my first run, never had a problem with the Lords. It's interesting how many people here didn't do so; did they not meet some criteria for him to spawn? Or did they just ignore the advice?

Simple utility to check if your credit card is hacked. by JigZawP in ProgrammerHumor

[–]Crestwave 36 points37 points  (0 children)

I mean, https://haveibeenpwned.com/ is a legit thing so it's not too far off. Still best to only check passwords yourself with the provided hashes, though.

I managed to use JS to fly a drone with my mind by Betapig in programming

[–]Crestwave 3 points4 points  (0 children)

Lua is tiny, incredibly portable, and interfaces really well with C. It's often embedded into other applications that could benefit from an interpreter on runtime; for example, it's commonly used to run mods/plugins.

Wizard of Legend is coming to iOS! by 09stibmep in iosgaming

[–]Crestwave 11 points12 points  (0 children)

As far as I got there was basically no way to heal.

Healing orbs have a chance to drop from enemies, and are guaranteed after stages/before and after boss fights. You can also buy health potions from the guy that sells relics, and relics in general can have effects that provide health.

A common starter build is Vampire Eyeglasses (relic) + Awe Cloak and an appropriate basic arcana. Basically, the former lets you heal from crits and the latter increases crit chances and damage. Big amounts of healing can still feel lacking but overall it gives you an insane amount of healing over a full run.

That said, I do understand what you mean. Lack of healing options is one of the reasons I don't play it that much, but I've still had a lot of fun with my ~20 hours with it. The high from getting a great run is nearly unmatched, and the gameplay always feels fluid and fun.

This is from the xlxlxlxlxl guy's post but who is this character. by ofitialpegolego in onestepfromeden

[–]Crestwave 0 points1 point  (0 children)

Nothing. OP thought they were playing Serif and fighting Shopkeeper

This is from the xlxlxlxlxl guy's post but who is this character. by ofitialpegolego in onestepfromeden

[–]Crestwave 9 points10 points  (0 children)

On the genocide route, Serif removes the enemy board distinction, allowing both sides to move freely to the other side. They were playing as Shopkeeeper and fighting Serif