Advertisement · 728 × 90

Posts by ala

main problem with books is that they compete with all the other books i wanna read for the limited time im comfortable not wasting for stressing about all the work im not doing and using wisely for book instead

1 hour ago 0 0 0 0

started reading w(p)GtR, gotta go back to it.

id love to get an old edition of the perl llama book (new one is expensive) and just slowly read through it. these books are fun reads

i wanna read the gray awk book…

1 hour ago 0 0 1 0

like the main issue is i would love to learn other languages than js but the thing with js is i have a very specific need for it that keeps me actually using it. i can read programming books but its just getting an overview obv, not actually learning it

1 hour ago 0 0 1 0

before i realizd that i imagined itd be just html+css and if i really needed a script i would borrow one from online and barely be able to guess what it actually does. god, it would be absolutelly miserable. i wouldnt be even able to use a static site generator bc the docs would be incomprehensible

1 hour ago 1 0 0 0
Element.prototype.conditionalClass = function(test,str) {
  if(test) {
    this.classList.add(str);
  } else {
    this.classList.remove(str);
  }
  return test;
};

Element.prototype.conditionalClass = function(test,str) { if(test) { this.classList.add(str); } else { this.classList.remove(str); } return test; };

2 hours ago 0 0 0 0
Video

Check out a first look at Disney’s ASL re-animated songs from 'Encanto,' 'Frozen 2,' and 'Moana 2,' coming to Disney+ next week. The studio reworks key musical sequences using performance-driven signing.
www.cartoonbrew.com/music-videos...

18 hours ago 685 293 10 88

WHY won't children layers move with parent even tho "lock children" is unchecked??? why cant i unlock children!??!?!? im gonna loose my mind and ill never learn how to fix that

16 hours ago 0 0 0 0

im excited to follow graphite.art but even if it materializes according to the roadmap i wont be able to use it for my needs for many years most likely. but god, im still having my hopes up because blender already exists

16 hours ago 0 0 0 0
Advertisement

god its so frustrating that affinity v2 will never receive any more updates and whatever awful oversights they will never ever get fixed unless im willing to make log into the new freemium affinity with a canva account (i dont wanna)

16 hours ago 0 0 1 1
Star Trek The Original Series scene. We're in a CORRIDOR! A room door is open, and we see two crewmen spilling out into the hallway in red and blue uniforms. They are otherwise indecipherable tho because they are entirely enveloped in a big cloud of smoke. It's pouring out all around them and into the hallway area, like there's a Phish concert in there. Closed caption reads, "[COUGHING]"

Star Trek The Original Series scene. We're in a CORRIDOR! A room door is open, and we see two crewmen spilling out into the hallway in red and blue uniforms. They are otherwise indecipherable tho because they are entirely enveloped in a big cloud of smoke. It's pouring out all around them and into the hallway area, like there's a Phish concert in there. Closed caption reads, "[COUGHING]"

22 hours ago 3971 1363 49 109

i guess the answer how to do that in one expression i shouldve come up with in the first place was have a function for that and invoke it lol

22 hours ago 0 0 1 0

but hey, just over a year ago i thought i would never get a chance to be learning programming at all (even tho i always knew i would enjoy it) until i came to a realization that "i do need to build a website eventually and what if i used it as a justification to actually start learning js"

1 day ago 2 0 1 0

i am fascinated by the idea of perl bc all i know about it is "whimsical" but im not confident i will ever be able to find the time and justification to be learning it

1 day ago 0 0 2 0

and proceeding with that realization to write stuff like…

element.classList[condition ? 'add' : 'remove'](token);

and i imagine this is possibly horrifying to a programmer but im just satisfied with myself for asking how i can do this in one expression and coming up with an answer;

1 day ago 0 0 2 0

its about the thrill of things clicking into place and slowly learning to think in the language and to understanding the syntax beyond the 101 tutorial. finally starting to think of functions as of values i can pass around, and of builtins as regular object properties

1 day ago 0 0 1 0

i am at this level of my hobby newb programming growth that as much as i intellectually understand why "good coding" should be clean and readable, in practice im like… nobody except me will ever need to fix this code and and learning to golf is more fun than learning best practices

1 day ago 2 0 1 0

Japanese sci-fi: two robots in space, yearning

American sci-fi: man gets the author's beliefs on polygamy confirmed by the aliens of ramalama IV

french sci-fi: two horny bounty hunters visit the Galaxy of Breasts

British sci-fi: nuclear war. Everyone dead. America's fault

1 week ago 6348 1460 100 110
Advertisement

but i may reconsider and go back to svg-in-img for noscript to minimize that flickering that made me go looking for this solution in the first place. i guess the biggest downside of that is that css filter is very new…

2 days ago 0 0 0 0

like the only downside i can see so far is extremely marginal noscript ux degradation whenever you can see reflow from the script-needing-svgs taking split-second to hide. i decided to ditch the <img> tags and use another <svg> as a noscript fallback but accessing external file in <use>

2 days ago 1 0 1 0

that post/script is over a decade old and still saved me from pulling my hair out over a contemporary browser. thank you Osvaldas Valutis!!!

2 days ago 0 0 1 0

i did replace localStorage with sessionStorage because i don't feel confident enough to use persistent storage, and sessionStorage does everything i need it to in this specific scenario

2 days ago 0 0 1 0

it works perfectly!!?! i didn't expect it to but i imagine putting the script tag right after body opening tag made it so it doesn't need to wait for the rest of the DOM to load and prevents the flicker? i mean it does obv flicker whenever the entire page flickers but i can't fix *that*

2 days ago 0 0 1 0

will anyone be mad at me for saving 40kb of svg to their machine? would i need a "cookie" banner for that or since its not tracking related would privacy policy page in footer be enough?

3 days ago 0 0 1 0

maybe i should try this. its requires js but if it ends up working and theres no flickering the noscript fallback is functionally equivalent to what i have in place right now
osvaldas.info/caching-svg-...

3 days ago 0 0 1 0

All creative endeavours produced and nurtured on common (art, writing) now being collected, duplicated, fenced off and sold back to us.

Since thinking is much harder to bar access to, AI is being pushed relentlessly as a crutch to breed dependence. They hope dependence leads to atrophy of skills.

3 days ago 7 1 1 0
wild cat, dinosaur park, route 23, ossineke, michigan, 1988

wild cat, dinosaur park, route 23, ossineke, michigan, 1988

wild cat, dinosaur park, route 23, ossineke, michigan, 1988

3 days ago 111 16 0 1
4 days ago 647 222 3 2
Advertisement
Preview
You can’t preload SVG sprites (but I want to) - Geoff Rich

please wake me up when they fix this bc im at a loss as to what the solution is. it worked the best when they were baked into html, i guess, but i dont have simple icons, these are whole wonky drawings, i cant justify putting that bloat back into my documents
geoffrich.net/posts/preloa...

4 days ago 0 0 0 1

my patch for now ended up being… i put svgs as <img> into html and control their "fill" with css filter and then, after a timeout, i replace those <imgs> with <svgs> programmatically. which is *also* bad bc there are rendering differences between img and svg and you can see the switch

4 days ago 0 0 1 0

i used to have all of my svgs inline which was terrible bs my svgs are huge. i learned about <use> and now have a 40kb cachable file with all of my buttons and stuff but then i discovered you can't preload svg for <use> case and in firefox at least it they were flickering on every reload

4 days ago 0 0 1 0