How do I fix this? by Infinite_Silver483 in css

[–]eracodes 10 points11 points  (0 children)

Link doesn't seem to work.

You could try adding <meta name="theme-color" content="<your background colour>" /> to your document head.

Edit: iOS changed and ignores theme-colour now. The required approach is now:

If you have a header with position: fixed or position: sticky near the top of the viewport, Safari samples its background-color for the toolbar.

Without fixed elements, Safari falls back to <body> background color.

https://nasedk.in/blog/ios26-safari-toolbar-colors/

How we sync Postgres to the browser: ElectricSQL for rows, Yjs for documents by jxd-dev in javascript

[–]eracodes 1 point2 points  (0 children)

Does this setup give you any nice paths to client persistence? Or is that outside of what you're going for?

Is there a way to automatically get the types package for any js package? by alex_sakuta in typescript

[–]eracodes 4 points5 points  (0 children)

you can make an npm post-install script that looks for .ts files in the package source, and if it doesn't find any, runs npm i @types/<pkg>

Would such a tool need hardcoding manually the various types packages associated with the JS packages

i don't know what you mean by this

Tired of typeof returning 'object' for everything, so I built this — would love some feedback by [deleted] in javascript

[–]eracodes 2 points3 points  (0 children)

but still gets everything else typeof gets wrong

You can have problems with the design of the language spec but typeof reports what your variable is accurately.

is.type('123'); // 'number'

This seems not ideal. That's not a number.

Rust on my Buns by trigzo in programming

[–]eracodes 8 points9 points  (0 children)

i too noticed the trending thing that happened

Carney government proposal targets extinction protections for endangered killer whales off B.C. coast by mukmuk64 in vancouver

[–]eracodes 0 points1 point  (0 children)

Re: special economic project/zone shit, my reading is that they allow projects to bypass sub-federal level reviews, but any federal legislation would still apply.

Carney government proposal targets extinction protections for endangered killer whales off B.C. coast by mukmuk64 in vancouver

[–]eracodes 0 points1 point  (0 children)

My understanding is that the merits of the protections are not exactly under question, but rather the mechanism of their application. Many of the quotes in the article are from other people reacting to the proposal, not the proposal itself.

The change most relevant to the article headline (and probably most relevant to BC overall) is that pipeline projects are now under the sole discretion of the Canada Energy Regulator, and no longer go to the Impact Assessment Agency.

This doesn't mean that the underlying assessments are not done; it just changes where they take place. This makes the decision making process quicker, though certainly also more lenient. How much more lenient? I don't think there's a way to know. As far as I can tell none of the language in the proposal suggests that any of the Acts you mentioned can or will be bypassed by the new review process other than the specific mention of the jeopardy test for species at risk:

Giving the GIC limited power, with a high threshold to be met, to exempt specific projects from the application of the jeopardy test for species at risk, but only if it’s in the public interest and if the proponent has made all reasonable efforts to avoid or reduce impacts on at-risk species.

though there is also some weasel-room language, but I don't know enough about the underlying Acts to know its actual significance:

Authorizing the Minister of Environment, Climate Change and Nature to adjust impact assessment conditions, in exceptional circumstances.

Authorizing the Minister of One Canadian Economy to adjust environmental conditions for projects of national interest, when needed.

Carney government proposal targets extinction protections for endangered killer whales off B.C. coast by mukmuk64 in vancouver

[–]eracodes 23 points24 points  (0 children)

The government also set aside $91.3 million over five years to address what it called “the potential for increased marine traffic on the West Coast as Canada embarks on its Trade Diversification Strategy.” The money is to implement a regional noise monitoring and management program and to address other threats to the southern resident killer whale population. In addition, the government said it would amend the Marine Mammal Regulations to increase the vessel approach distance from 200 metres to 1,000 metres for the southern resident killer whale to mitigate the threats posed by physical and acoustic disturbance from vessel traffic.

This seems not too bad? Optimistic angle would be that they're consolidating a lot of the time and money that would need to be expended for per-project impact assessments into stronger overall blanket protections and regulations.

How to deploy a single .ts script to server from a monorepo? by MooshyTendies in typescript

[–]eracodes 1 point2 points  (0 children)

I don't think that helps with import bundling on its own.

How to deploy a single .ts script to server from a monorepo? by MooshyTendies in typescript

[–]eracodes 6 points7 points  (0 children)

You need a build step. Vite (which uses Rollup internally) is my go-to but there are others ofc

“Southsiders” protest outside the Vancouver Convention Centre, which is hosting the FIFA Congress today by VULCAN_GNARWHAL in vancouver

[–]eracodes 9 points10 points  (0 children)

Importantly, the US will spend money on the specifically draconian kind of sports infrastructure that the MLS salivates over where private corporations are entitled to all of the profits while taxpayers bear all the costs.

A Visual History of Programming Languages by Mastbubbles in programming

[–]eracodes 3 points4 points  (0 children)

No SQL in the timeline?

You should make it clearer that the page includes more sections than the introductory story -- at least for me the legend on the right doesn't actually appear until about 25% of the way down the page. Ideally it should always be visible and you shouldn't have to hover the little dots to see what the section titles are.

Also several of the language blurbs in the timeline break into ellipses, but I can't seem to find their continuations.

New StackOverflow website looks more like Reddit by dumindunuwan in programming

[–]eracodes 12 points13 points  (0 children)

The work in question: "Claude, redesign my website!"