I’ve been playing around with various CSS frameworks for the past eight years. All these frameworks like Foundation, Bootstrap and Blueprint have really only served one purpose for me: to disguise the fact that until now, layout in CSS has been a hack.Continue reading “Moving from CSS Frameworks to CSS Grid”
In her post three days ago on CSS Tricks, Una Kravets described a clever technique she discovered for significantly reducing image sizes on the web with little loss of quality. Essentially the idea is this:
- Reduce the contrast of the image in Photoshop
- Re-apply contrast using CSS
With this process, Kravets managed to get between 23% to 28% reduction in image size, which can add up to a lot of KB if you have many images on the page. I think this technique is a great discovery and a boost for image-heavy sites that don’t need to worry much about good IE support… but. But, I can’t help but think it does smell a bit hacky.
This kind of contrast trickery shouldn’t be done in CSS, it should be in the image format. And to be clear, I don’t mean to criticize Una’s discovery. If it’s possible to reduce contrast and then re-apply it on the fly with little perceptible loss in quality, surely those instructions could be passed along in the image files themselves and not have to rely on a separate stylesheet which may or may not load? I guess we’d need a new image format for that…
I recently discovered it’s pretty easy to trick myself into reading more books and wasting less time looking at my Twitter feed. A lot of my phone usage is just a habit and habits can be changed.
So here’s the magic 3-step program:
- Move social media apps into a folder or off the home screen of your phone. Or even better, remove them completely (which I have done to Facebook and Instagram a while ago)
- Replace with stuff you actually want to be doing. For me that means iBooks for various ebooks and Pocket for saved articles.
Over on Daring Fireball, John Gruber has some true words to say about those pesky floating sharing bars (or “dickbars” like he calls them) used by Medium and others.
Next week, The Paciello Group is sponsoring a 24 hour live stream of webinars on Accessibility and Inclusive design for the fourth consecutive year. The videos will presumably be available on YouTube after the event too, at least I hope they will. 🙂
My main source of scientific news since childhood has gone independent. The future for the magazine looks bright I hope.
We are pleased to announce that New Scientist has been acquired by a company set up specifically to publish the magazine. This marks a return to independent ownership and operation for the first time in several decades.
I might even go back on my words in this tweet:
Come on! @newscientist you have a great digital mag, but no way to cancel except via phone?! Do you think I'll ever resubscribe?
— Daniel Koskinen (@danielCK) April 17, 2017
On Tuesday, Daniel Bachhuber published a list of advanced tips on using WP-CLI. My favourites in his list are
wp rewrite list --match= (for debugging rewrite rules) and
--prompt (when you don’t remember the arguments). If you’re a WordPress developer and don’t know what WP-CLI is, stop everything right now and go to wp-cli.org.
Sam Biddle wrote for the Intercept on the recent WannaCry malware disaster. According to Sam, it’s not possible to name a single culprit for what happened, but militarism and greed are the two main forces at play here. This bit stood out to me:
Microsoft also did not create WannaCry. But it did create something something nearly as bad: Windows Vista, an operating system so horrendously bloated, broken, and altogether unpleasant to use that many PC users back in 2007 skipped upgrading altogether, opting instead to stick with the outdated Windows XP, a decision that has left many people on that decade-and-a-half-old operating system even today, years after Microsoft stopped updating it.
I recommend reading the full original article here: https://theintercept.com/2017/05/16/the-real-roots-of-the-worldwide-ransomware-outbreak-militarism-and-greed/
If you’re at all interested in new CSS features and their implementations in browsers, bookmark this: