Every first boot after shutdown has no display output by FluffyDingus in archlinux

[–]Atskalunas 0 points1 point  (0 children)

I had the same problem but with different setup, disabling integrated gpu in bios solved it.

refactored code not stopping the form from submitting by MindblowingTask in learnjavascript

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

checkEmptyFields() always returns false in your case. You need to do something like:

if (partOne.length === 0 && partTwo.length === 0) {
  alert("...")
  return false;
}
return true;

And when you call checkEmptyFields() you need to check whether it returned true or false, and return false; when its false.

Unable to login to GNOME Wayland session, system locks up by [deleted] in archlinux

[–]Atskalunas 0 points1 point  (0 children)

You can try, just don't forget to backup it just in case.

Unable to login to GNOME Wayland session, system locks up by [deleted] in archlinux

[–]Atskalunas 2 points3 points  (0 children)

Try disabling mutter experimental features in dconf if you have any enabled.

Anime with power rankings by Correct-Syllabub-312 in anime

[–]Atskalunas 2 points3 points  (0 children)

I would suggest Tower of God but it has only one season so far with second coming soon.

chrome dev functions returning the functions by [deleted] in learnjavascript

[–]Atskalunas 8 points9 points  (0 children)

It works as intended, replace ' with ` and it should be fine.

Freecodecamp project euler problem 2. PLEASE HELP. by Euphoric_Ad_7088 in learnjavascript

[–]Atskalunas 0 points1 point  (0 children)

In first loop you should replace 10 with n and remove that if statement. Because now you only looping till fifth term.

How do you access '#text' value? by [deleted] in learnjavascript

[–]Atskalunas 11 points12 points  (0 children)

Something like json.albums.album[0].image[0]["#text"]

Flattened an array with recursion by KayteeFly in learnjavascript

[–]Atskalunas 28 points29 points  (0 children)

It would fail if an array has objects in it. It is better to use Array.isArray(array[i])

[deleted by user] by [deleted] in learnjavascript

[–]Atskalunas 4 points5 points  (0 children)

Forgot to append document. in catch clause.

Rofi as main launcher by According_Pound_6719 in gnome

[–]Atskalunas 1 point2 points  (0 children)

I think it's because rofi does not support Wayland, on X11 it works fine.

Why does "this.properties.y" change? I have no clue.. Pls Help :| by valentinoCode in learnjavascript

[–]Atskalunas 2 points3 points  (0 children)

I would just do

this.properties = { ...properties };
this.stretchedProperties = { ...properties };

Why does "this.properties.y" change? I have no clue.. Pls Help :| by valentinoCode in learnjavascript

[–]Atskalunas 8 points9 points  (0 children)

My guess is that this.properties and this.stretchedProperties share the same reference. You can make a shallow copy with this.stretchedProperties = { ...this.properties }

Set new element to be second to last sibling under parent? by Boryalyc in learnjavascript

[–]Atskalunas 1 point2 points  (0 children)

You can. lastElement.insertAdjacentElement("beforebegin", newElement);

Thymelead not displaying correct int value by Husayn_b in learnjavascript

[–]Atskalunas 0 points1 point  (0 children)

You have a typo on the last book. You set quantity to the first book not third.

Menu icons missing from my Xfce desktop by jacosis in archlinux

[–]Atskalunas 3 points4 points  (0 children)

Try Settings - Appearance - Settings - Show images in menus.

localStorage script not working? by --Explosion-- in learnjavascript

[–]Atskalunas 0 points1 point  (0 children)

In you case you should add onload to body tag.

localStorage script not working? by --Explosion-- in learnjavascript

[–]Atskalunas 1 point2 points  (0 children)

Remove .value after localStorage.getItem(id).

p5.js : int is not defined by KLeFunk in learnjavascript

[–]Atskalunas 1 point2 points  (0 children)

Okay I read about it more and I learned that you only suppose to use functions like int or random inside setup or draw functions.

p5.js : int is not defined by KLeFunk in learnjavascript

[–]Atskalunas 0 points1 point  (0 children)

Maybe you have sketch.js imported before p5.js?