ἔρως
ἔρως
KPCKevin Powell - Community
Created by ἔρως on 4/30/2024 in #front-end
why conic gradients cause aliasing when the value is an integer %?
No description
28 replies
KPCKevin Powell - Community
Created by ἔρως on 3/6/2024 in #resources
change default keyboard layout without changing the default language in windows 11
windows 11 has plenty of flaws, and one of them is how badly it accommodates people who speak multiple languages. however, one of the worst things in the documentation about this. microsoft tells you have to set the default language, which is wrong. the setting you want can be found by: - going to ms-settings:regionlanguage - scroll down to "typing" and click it - go to "advanced keyboard settings" - and here, you have the option to override the default keyboard language this took a while to find...
1 replies
KPCKevin Powell - Community
Created by ἔρως on 12/27/2023 in #resources
keepass 2 as authenticator app
i do not own the copyright for this content, so, i can only share the link https://assets.new.siemens.com/siemens/assets/api/uuid:37a10edc-e16b-43ad-905a-da2e2e6e36cd/siemens-keepass-manual-en.pdf this describes how you can use keepass 2 as the authenticator app (with some windows-specific things) keepass 2 is an offline password manager that lets you store the passwords and other secrets outside of any cloud - only you have access to it, even if the file is leaked
16 replies
KPCKevin Powell - Community
Created by ἔρως on 10/4/2023 in #back-end
phpdoc an array structure with autocomplete in vscode
is there any good way to phpdoc an array structure and have vscode autocomplete the keys? i know i can do it with an object and shoe-horn some stdClass shenanigans, but that doesnt help me. the format used by psalm and wordpress don't work as well, as vscode doesn't autocomplete the keys.
3 replies
KPCKevin Powell - Community
Created by ἔρως on 10/3/2023 in #front-end
RegExp with g flag with weird behaviour. why?
i was debugging a bug and found this incredibly weird behaviour with a regex. the following code was returning false on things that obviously match:
var regex = new RegExp('a', 'g');
console.log(regex.test('a')); // true
console.log(regex.test('a')); // false
var regex = new RegExp('a', 'g');
console.log(regex.test('a')); // true
console.log(regex.test('a')); // false
after trial and error, i found that re-using the same object with the g flag caused the behaviour above. removing the g flag makes it work properly. (using a new literal regex object fixes it too, but what i was debugging can't be made into a literal regex, since it is dynamically generated.) is there any reason for this behaviour? mdn doesnt have anything obvious that could clue that this behaviour could happen.
5 replies
KPCKevin Powell - Community
Created by ἔρως on 9/18/2023 in #front-end
lazy-loaded `<image>` in `<symbol>` always loads
the issue is simple: i have an svg with a bunch of <symbol> that have an <image> tag with loading="lazy". all images in the <symbol>s load regardless of <use>ing the <symbol> or not. https://jsfiddle.net/cqugnLb9/ <-- disable the cache in f12 and check the result i even tried the content-visibility rule, but doesn't work. how can i stop this from happening, without javascript?
194 replies