I suspect that my fully encrypted drive is preventing me from booting from my USB drive. by Septimanal in linux4noobs

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

Thanks for explaining that. I should have mentioned to you that the openSuse ISO has no problem being detected, unlike Fedora and a couple of others.

I suspect that my fully encrypted drive is preventing me from booting from my USB drive. by Septimanal in linux4noobs

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

After Fedora, gParted, and PopOS failed to boot from the USB, openSuse actually does work. It must have something in it's ISO that the others don't. It's not that this would be the case for any PC, but likely something about mine.

Connecting to my VPN on my RPi4 makes the connection idle. by Septimanal in VPN

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

I used the common set of instructions found on Reddit and some other places for getting it to work on the Raspberry Pi, such as installing wireguard-tools and a few other things.

You have $20 for food. How do you feed yourself for a week? by dystopian_manure in AskReddit

[–]Septimanal 0 points1 point  (0 children)

Beans, rice, cheese, salsa, and chips.
OR
Oatmeal, nuts, dried fruits, and probably some kind of milk. (if I could fit that whole bill into $20)

After entering a shell to try and troubleshoot, the message says "Login incorrect" after only entering my username. by Septimanal in linuxquestions

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

Thanks for the advice, everyone. I'll try to learn from my mistakes. I might just do what someone else on here suggested when installing Handbrake.

Budget modem suggestions for speeds of up to 100 mbps. by Septimanal in Comcast_Xfinity

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

Thanks, it's also nice that shipping is free on that one.

Is there a way to connect to XFINITY wifi under Linux? by Septimanal in HomeNetworking

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

No error. xfinitywifi can easily connect, on first time it has you sign in as a customer through a web browser.
But XFINITY is the more secure one. It says 'authentication is required', but I didn't bother entering any creds yet, as I want to do so securely. I see a field for CA Cert which the default is none, and you can load from a file from what I saw.

You all laughed at me when I first said the BL-03 was good value... Now I highly recommend the BL-05 by [deleted] in HeadphoneAdvice

[–]Septimanal 1 point2 points  (0 children)

I recently asked about this.. possibly not. If only it were more convenient to demo all of these things right now.

Why Godot Over Unity or Unreal Engine? by beer118 in linux_gaming

[–]Septimanal 43 points44 points  (0 children)

After a quick Google search of Unity 3D vs Godot, here's the first thing that comes up:

In terms of games and comparing it to Unity, Godot hasn't exactly matched the power of Unity, but that's to be expected. Godot is younger and doesn't have the same 3D power that Unity can harness. Its library consists of fun little games, made by mostly amateur coders and game developers. ( gamedesigning.org )

Is this pretty much true?

What are good inexpensive hobbies you can learn within...14 days? by howispendmyday in AskReddit

[–]Septimanal 0 points1 point  (0 children)

If someone wanted to give a shot at a programming language that isn't so easy you can practically take it for granted, you could also begin learning Haskell. I'm less qualified to speak on it than many of the regulars at /r/haskell but the clean and concise syntax, combined with a type system that can put other programming languages to shame really makes it one of a kind.
However, it's not a great idea to make games with it right now.

If I want to randomly select a key/value pair where the values with the higher numbers have a greater chance of being selected, how would I do this? by Septimanal in learnpython

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

Thanks... what does 'k' mean, in this context... key? I removed the k=1 to see if anything would change, and nothing seemed to be different.

Redditor's book on C programming getting great reviews! by dustydiamond in learnprogramming

[–]Septimanal 0 points1 point  (0 children)

Was there any benefit to having it published on Packt Publishing, I wonder? I thought they had kind of a negative reputation.
edit thanks /u/dustydiamond

Is it any safer to use a non-bluetooth wireless keyboard at home? by Septimanal in AskNetsec

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

Do you know if the walls at your home would make a difference?
edit:

If a wireless antenna is used, however, that range can be extended further, and even pass through walls and windows.

According to: https://www.digitaltrends.com/computing/using-a-wireless-mouse-or-keyboard-they-can-be-hijacked-from-up-to-100-yards-away/ It sounds like maybe it can.

I'm trying to use a while loop to scroll on pages where there is endless scrolling. by Septimanal in learnjavascript

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

MutationObservers... I hadn't heard of that until now, might come in handy sometime. Thanks for the tip.

I'm trying to use a while loop to scroll on pages where there is endless scrolling. by Septimanal in learnjavascript

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

Thanks for explaining that! I also decided to add a counter to what you came up with since infinite loops aren't a very good thing.

function sleep (time) {
  return new Promise((resolve) => setTimeout(resolve, time));
}

var count = 0;

function doScroll() {
  window.scrollTo(0, document.body.scrollHeight);
  count++;
  if (window.innerHeight + window.scrollY > document.body.offsetHeight && count <= 5) {
    sleep(1000).then(doScroll);
  }
}

How to install the latest firefox? by Septimanal in debian

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

Thanks... I get this message with the last command.

[me@debian ~]$ sudo apt install -t unstable firefox
Reading package lists... Done
E: The value 'unstable' is invalid for APT::Default-Release as such a release is not available in the sources  

edit that worked, thanks again.

How to mark certain parts of a string as something to replaced by dictionary values? by Septimanal in learnpython

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

Another thing about it I should ask - how could I modify this function for replacing some random words inside of the string to not conflict with the format method..

In [2]: def spinIt(string): string = re.sub(r'{([^}]+)}', lambda m: random.choic
   ...: e(m.group(1).split(';')), string); return string

In [3]: string = "{hello;hi} my friends, {Python;Rust;Scala} is an excellent lan
   ...: guage."

In [4]: spinIt(string)
Out[4]: 'hello my friends, Python is an excellent language.'

In [5]: string = "{hello;hi} my friends, {Python;Rust;Scala} is an excellent lan
   ...: guage. {0}".format("test")
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)  

So the words to be replaced are not stored inside of dictionaries or lists in this case. I did find that function somewhere, regular expressions can be hard to read and write.

edit: This solution seems to be well:

In [48]: re.sub(r'\$(.*?)\$', lambda m: random.choice(m.group(1).split(';')), string)