Alt-texts: The Ultimate Guide - Axess Lab
Some tidbits I didn't think about:

- alt="" in feeds/links/buttons with repetitive images
- end it with a period for a little pause for the screen reader
- do not include "image of" or whatever
- keep it short!
accessibility  html  webdesign  images  a11y 
12 hours ago
Using require.resolve() To Calculate Module-Relative File Paths In Node.js
If a file exists already, require.resolve() gives you the absolute file path. It's a little neater than doing a path.resolve(__dirname, 'path.txt') thing
nodejs  javascript 
12 hours ago
Here's How Breitbart And Milo Smuggled White Nationalism Into The Mainstream
“Any successful media executive produces content to expand audience size. The Breitbart alt-right machine, embodied by Milo Yiannopoulos, may read most clearly in this context. It was a brilliant audience expansion machine, financed by billionaires, designed to draw in people disgusted by some combination of identity politics, Muslim and Hispanic immigration, and the idea of Hillary Clinton or Barack Obama in the White House. And if expanding that audience meant involving white nationalists and neo-Nazis, their participation could always be laundered to hide their contributions.”
journalism  politics  internet 
23 hours ago
Image Effects with CSS
Pencil drawing, watercolors, "hallucination", etc
css  effects  images  webdesign 
2 days ago
Web Typography: Numerals · An A List Apart Article
touches on sub/superscripts, old-style numbers and CSS font properties to enable them properly
css  webdesign  typography 
2 days ago
The Era of Newshammer - daverupert.com
I like the use of CSS variables for instant "themes"
css  webdesign 
2 days ago
The Rock Test: A Hack for Men Who Don’t Want To Be Accused of Sexual Harassment
“Simply offer them the same respect, admiration, and healthy dose of fear you’d offer anyone who could completely destroy you should you deserve it.”
culture 
8 days ago
Tabbed Interfaces
+ Don't provide tabbed interfaces unless they are suited to the use case and are likely to be understood and appreciated by the user. Just because you can doesn't mean you should.
+ Tables of content and same-page links are a simpler and more robust approach to many of the ostensible use cases for tabbed interfaces.
+ Make sure interfaces that appear as tabbed interfaces have the semantics and behaviors expected of them.
+ Single-page applications should not present or behave as tabbed interfaces, despite their shared use of JavaScript to switch between and/or populate content panes.
a11y  accessibility  css  javascript  ux  webdesign 
10 days ago
Mētis
Release work incrementally
Allow for easy rollback
Plan on learning as you go
Trust your team
development  programming  government  software 
10 days ago
Our Moloch | by Garry Wills | NYR Daily | The New York Review of Books
Read again those lines, with recent images seared into our brains—“besmeared with blood” and “parents’ tears.” They give the real meaning of what happened at Sandy Hook Elementary School Friday morning. That horror cannot be blamed just on one unhinged person. It was the sacrifice we as a culture made, and continually make, to our demonic god. We guarantee that crazed man after crazed man will have a flood of killing power readily supplied him. We have to make that offering, out of devotion to our Moloch, our god. The gun is our Moloch. We sacrifice children to him daily—sometimes, as at Sandy Hook, by directly throwing them into the fire-hose of bullets from our protected private killing machines, sometimes by blighting our children’s lives by the death of a parent, a schoolmate, a teacher, a protector. Sometimes this is done by mass killings (eight this year), sometimes by private offerings to the god (thousands this year).

The gun is not a mere tool, a bit of technology, a political issue, a point of debate. It is an object of reverence. Devotion to it precludes interruption with the sacrifices it entails. Like most gods, it does what it will, and cannot be questioned. Its acolytes think it is capable only of good things. It guarantees life and safety and freedom. It even guarantees law. Law grows from it. Then how can law question it?
culture  religion  history  politics  guns 
15 days ago
Taibbi: Gun Lobby Is Down to Its Last, Unconvincing Excuse - Rolling Stone
“Americans are just bored and crazy and insecure and like to calm their nerves by shooting bottles, Kim Jong-un paper targets, and, pretty regularly now, crowds full of innocent human beings. It's madness, and there aren't enough highly paid pseudo-intellectual gun lobbyists in the world to justify it anymore. Can we finally at least drop the pretense that this is about anything but money?”
guns  government 
16 days ago
Stanislav Petrov was declared to have died on September 18th
“His coolness had saved the world from nuclear apocalypse. Or so other people said. He knew that, at the time, he had not been cool. His chair had felt red-hot as a frying pan, his legs limp as cotton. Some of his doubts were logical: the newness of the system, and the too-swift passage of the message through the 30 layers of verification he had set up himself. Other doubts were vaguer: a funny gut feeling, and a sense that he knew better than a machine. Even so, his decision to declare a false alarm was a 50-50 guess, no better. Small wonder that, when it was over, he felt as wrung-out as Jesus on Golgotha.”
obituary  history 
16 days ago
A good science fiction story... - daverupert.com
“Facebook too has failed to predict how their algorithm could have allowed foreign propaganda to influence our electoral process. They failed to see how their algorithm which feeds our confirmation biases might also radicalize us and balkanize politics. A failure to anticipate.

There’s a running Twitter meme that we’re now living in an alternate timeline; the worst possible one. And to some extent I believe that we are. We’re living in the timeline that invented the car, but didn’t anticipate the traffic jam.”
facebook  google  twitter  internet  culture 
16 days ago
Google and Facebook Have Failed Us - The Atlantic
“The standards of journalism are a set of tools for helping to make sense of chaotic situations, in which bad and good information about an event coexist. These technology companies need to borrow our tools—and hire the people to execute on the principles—or stop saying that they care about the quality of information that they deliver to people.

There’s no hiding behind algorithms anymore. The problems cannot be minimized. The machines have shown they are not up to the task of dealing with rare, breaking news events, and it is unlikely that they will be in the near future. More humans must be added to the decision-making process, and the sooner the better.”
google  facebook  journalism  internet 
16 days ago
Amber Wilson - When Should You Use Which Image Format? JPG? PNG? SVG?
“PNG-8 limits you to 256 colours, which is enough most of the time, has by far the smallest file size, but may exhibit “banding” of colours. If you need more colours or want to avoid banding, consider PNG 24 or 32, but be aware of huge increases in file size. JPGs can contain millions of colours and have much smaller file sizes, but are best for photos where there are no crisp lines or text. For pictures with crisp lines or text (e.g. a graph), stick with PNG and compromise on the number of colours you use. Replace PNG with SVG for simple line drawings, logos and icons.”
images  webdesign  performance 
17 days ago
Mark Zuckerberg's False Dream of a Neutral Facebook - The Atlantic
“If Facebook wants to be a force for good in democracy, it needs to answer some questions. Does maximizing engagement, as it is understood through News Feed’s automated analysis, create structural problems in the information ecosystem? More broadly, do the tools that people use to communicate on Facebook influence what they actually talk about?”
facebook  politics  internet  journalism 
21 days ago
The Conservative Revolution Killed Progressive Tax Reform - The Atlantic
What has been lost in American politics is a vision of public policy offering real mechanisms for reducing economic inequality and raising revenue on a fair basis. What has almost totally disappeared is political support for the kind of a progressive tax system that was in place during the most economically robust period in nation’s history—what we still call the American Century.
history  economics  politics  government  taxes 
21 days ago
GitHub - elbywan/wretch: A tiny wrapper built around fetch with an intuitive syntax.
At the very least, looks worth investigating for how to handle various low-level issues with the fetch API
ajax  javascript 
22 days ago
A Nation of Snowflakes - The Atlantic
“Neither have some conservatives disdained to use of the power or authority of the state to censor free speech. Republican legislators have proposed “Blue Lives Matter” bills that essentially criminalize peaceful protest; bills that all but outlaw protest itself; and bills that offer some protections to drivers who strike protestors with automobiles. GOP lawmakers have used the state to restrict speech, such as barring doctors from raising abortion or guns with patients, opposition to the construction of Muslim religious buildings, and attempts to stifle anti-Israel activism.

There’s physical assault of a reporter by a Republican candidate in Montana; Attorney General Jeff Sessions’s prosecution and re-prosecution of an activist who laughed at him during his confirmation hearing; his multiple public refusals to rule out prosecuting journalists; the president’s vows to imprison his political rivals; his encouragement of violence against protesters; Trump’s threat to tax Amazon because its owner Jeff Bezos is also the owner of The Washington Post, which has published coverage critical of the president; the White House’s demands that ESPN fire Jemele Hill, a black on-air host who called the president a white supremacist; and Trump’s attempt to chill press criticism by naming the media an “enemy of the people” have all drawn cheers from some conservative commentators.”
politics  speech  culture  government 
23 days ago
I’m an environmental journalist, but I never write about overpopulation. Here’s why. - Vox
The better answers are "female empowerment" and "tax the shit out of wealthy people"
economics  science!  culture  history 
23 days ago
Kneeling for Life and Liberty Is Patriotic - The Atlantic
“They are kneeling in an effort to defend the very core of the Declaration of Independence. No political act is more patriotic than petitioning government for that purpose. If you dislike their tactics, apart from their message, consider them imperfect; I won’t object so long as you then ask yourself if you find it easy to forgive Thomas Jefferson for the imperfection of owning slaves while advancing life, liberty and the pursuit of happiness, but hard to forgive young black men for merely kneeling while they try to advance life, liberty, and the pursuit of happiness in their time.”

“But I hope I would’ve knelt in solidarity with my fellow players if I was in the NFL Sunday, because it is far better to get the theatrics wrong in defense of life, liberty, and the pursuit of happiness, than to master theatrics as adeptly as a reality-TV star, then marshal them to intentionally divide Americans against one another by shit-posting on Twitter, all while transgressing against life, liberty, and the pursuit of happiness.”
politics  protest  culture  america!  sports 
24 days ago
Beware HGTV’s House-Flipping Fantasy Loop
“The first thing counselors tell sex addicts is to stop watching porn, and we really shouldn’t be watching this much HGTV during our rehab. Although it’s a soothing experience, it is also a fomenter of deep feelings of discontent about one’s living arrangements, which began to hit me hard around week two. Why have I allowed my attic “bonus room” to remain covered in the exact type of wall-to-wall carpet that repulses Joanna Gaines, Christina El Moussa, and both Property Brothers? And what failure of character is revealed by my closed-plan kitchen? HGTV makes big, expensive, time-consuming remodels look like two weeks’ work and a modest amount of money well spent. Moreover, it links these changes so definitively to personal and family happiness that you begin to wonder what, exactly, is wrong with you that you haven’t made some of them. The discontent gnaws as the addiction to the programming grows, and you have to imagine many viewers find themselves enticed to do foolish things like take out second mortgages so that they can blast out a few walls and get a little of what Chip and Joanna seem to have. More troublingly, we also have to wonder how many may be inspired to think that they, too, have what it takes to flip houses.

A recent, worrisome working paper released by the National Bureau of Economic Research reported on the tinder of the last conflagration: the national sense that housing prices were going up every day and that there was no way that a buyer’s reach could exceed his grasp. It’s true that bankers made loans to Americans wildly unqualified for them — but the notion that buyers on the lower end of credit distribution began to default in unprecedented numbers isn’t accurate. In fact, the rate of default in the subprime market throughout the bubble and the bust remained steady compared with before the crisis. It was buyers from the top and middle top who account for the skyrocketing rate of default — and it wasn’t that they were buying bigger family homes that they couldn’t afford. It was that they were buying additional houses to flip for a profit, and when holding on to them stopped making financial sense, and with no personal and emotional connection to them, they began walking away in huge numbers.”
housing  economics  television  financialcrisis 
27 days ago
GitHub - eduardoboucas/staticman: 💪 Static sites with superpowers
Lets you POST to an endpoint and create a PR with a new file for your static site
my_cmsicorn  github  nodejs  generator  cms 
27 days ago
Idle Words
“The real story in this mess is not the threat that algorithms pose to Amazon shoppers, but the threat that algorithms pose to journalism.”
internet  amazon  science!  journalism 
28 days ago
Understanding the WebView Viewport in iOS 11 - Ayogo Health Inc.
I, uh, wouldn't do this myself because fixed header bars suck, but I'll probably lose this battle in the future
css  ios  webdev 
28 days ago
Web truths: CSS is not real programming | Christian Heilmann
“If you don’t consider an interface as an agreement with your users with various levels of fidelity depending on their technical platform, CSS isn’t for you. It is by design a forgiving language, that doesn’t throw any errors when something can’t get applied. Thus it is amazing for progressive enhancement. You don’t even need to worry about adding a line of unsupported code as the parser skips what it can’t apply. What causes a JavaScript parser to throw in the towel and give you an error message, the CSS parser shrugs off and moves on. That can feel odd for a developer – I for one like to know when something went wrong. But it frees you from needing to test on all possible user agents and put “if” statements around everything. Want to use a gradient on button? Define a background color, then override it with a gradient in the next line. If the user agent can’t render gradients, you get a simpler, but still working button. And you didn’t need to worry about gradient support at all.”
css  webdesign  javascript  programming 
28 days ago
Cars Bad - The Awl
“Still, those of us mired in the degradation of modern rush hour shouldn’t exactly feel lucky. We should feel kind of fucked. We should feel like we’re stuck with inefficient, wasteful killing machines whose sheer convenience and outdated mythos of transportational liberty have veiled the low-grade physical and mental torture they cause us on our way to work.”
cars  traffic  travel  psychology 
29 days ago
How to Talk Minnesotan: The Power of the Negative
“A guy could almost be happy today if he wasn’t careful.”
language  funny 
4 weeks ago
It's Not a Problem When Cashiers Say 'No Problem' to You - Slate
‘“Are you telling me that I, a human being with certain inalienable prerogatives, have no right to dislike this particular phrase? Must I remain silent forever? Have I no recourse to complain?” That is exactly what we are saying. You must allow this grievance to seize up, and shudder, and drift harmlessly out of your body. You will be nobler for it.’
rants  etiquette 
4 weeks ago
Deploying ES2015+ Code in Production Today — Philip Walton
To put that another way, every browser that supports <script type="module"> also supports most of the ES2015+ features you know and love.

(babel-preset-env makes this particularly easy)
performance  javascript  browsers  webdesign 
4 weeks ago
London Review of Books
“What this means is that even more than it is in the advertising business, Facebook is in the surveillance business. Facebook, in fact, is the biggest surveillance-based enterprise in the history of mankind. It knows far, far more about you than the most intrusive government has ever known about its citizens. It’s amazing that people haven’t really understood this about the company. I’ve spent time thinking about Facebook, and the thing I keep coming back to is that its users don’t realise what it is the company does. What Facebook does is watch you, and then use what it knows about you and your behaviour to sell ads. I’m not sure there has ever been a more complete disconnect between what a company says it does – ‘connect’, ‘build communities’ – and the commercial reality. Note that the company’s knowledge about its users isn’t used merely to target ads but to shape the flow of news to them. Since there is so much content posted on the site, the algorithms used to filter and direct that content are the thing that determines what you see: people think their news feed is largely to do with their friends and interests, and it sort of is, with the crucial proviso that it is their friends and interests as mediated by the commercial interests of Facebook. Your eyes are directed towards the place where they are most valuable for Facebook.”
privacy  books  facebook  culture  internet 
5 weeks ago
Equifax’s Maddening Unaccountability - NYTimes.com
“Even if they do get fired, it is likely that they will be sent off with millions of dollars in severance, which is common practice for executives. (I would like to note that I am available for such punishment any time.)”
business  software  politics  privacy 
5 weeks ago
The Art of the Heel | Mike Edison
“And, existentially, at least, Trump will still wear spandex when he mows the lawn. He can’t help himself, that’s just the kind of jerk he is.”

This is the most insightful analysis of Donald Trump
politics  sports  culture  psychology 
5 weeks ago
GitHub - PolymerLabs/lit-html: HTML template literals in JavaScript
Tiny library that ties together native template strings and a virtual DOM
html  javascript  performance 
5 weeks ago
Breaking the Grid - daverupert.com
Includes "clearfix 2.0" to make grids less likely to do this
css  webdesign  browsers  layout  grid 
5 weeks ago
From blockchain to drones, we need to stop obsessing about tech megatrends | WIRED UK
“If more men did the laundry, washing machines would be as hyped and alluring as drones. But, because they have been domesticated and are typically used by women, they don't get their share of the glory.”
technology  culture 
5 weeks ago
The Penny Paper Sex Scandal - The Awl
“In retrospect, assaulting his estranged wife’s alleged lover with a whip probably wasn’t the best way for star actor Edwin Forrest to enhance his image during his difficult and very public divorce.”
media  history 
6 weeks ago
For the love of God, please tell me what your company does
“So for the big companies, I truly believe these confusing websites, these websites that avoid at all costs telling you what the company actually does, are a deliberate tactic. Not to get leads, because I’m sure they realize they’ll lose a few in their artistic mess of a homepage. But to turn the leads they’d get anyway into overpaying customers.”
rants  webdesign  trends  internet  design  writing 
6 weeks ago
Leica Lens Codes | La Vida Leica!
Including Zeiss ZM lenses that might work
cameras  lenses  hardware 
6 weeks ago
« earlier      
accessibility addons advertising advice ajax amazon america! analytics animation app apple applications apps architecture art audio backgrounds blogs books browsers business cameras career cars cheatsheet cms code color comics computer contentstrategy cooking copyright creativity criticism css css3 culture data design development documentation download downloads economics education ee eecms elections email empathy ethics expressionengine extensions facebook feminism finances firefox flash flickr fonts food forms framework free freelance fun funny gallery games generator git github google government graphics grid guns hacks hardware health history hosting howto html html5 humor ia icons ie6 illustrator images infoporn inspiration interesting internet interviews ios ipad iphone javascript jobs journalism jquery language law layout life lifehacker lightbox list logos mac management markdown marketing media menu mobile money movies mp3 music navigation news nodejs nytimes opensource osx parenting patterns performance personalfinance photography photos photoshop php plugins politics portfolio posters privacy productivity programming psychology race react recipes reference relationships research resources reviews rss rwd safari sass science! search security seo slate slideshow socialnetworking software sports statistics storage stories styleguide svg technology television templates testing text textures themes tips toblog tools toread totry travel trends tutorials twitter typography ui usability ux vector via:popular video videogames visualization web webdesign webtools wordpress work writing xhtml xkcd

Copy this bookmark:



description:


tags: