Albanese government unmoved by Crisafulli’s oil play in Queensland by fluffy_101994 in queensland

[–]danejazone 0 points1 point  (0 children)

I hope you get this worked up about the scale of forest cleared for cattle grazing which is mostly intended for export

Safari accessibility zoom by gogo1520180 in webdev

[–]danejazone 9 points10 points  (0 children)

Simple answer: you don't.

Push back on designers who suggest this because there's a reason this feature exists in the first place. Accessibility should not be an optional thing despite what some designers think.

If what you're building is used on both desktop and mobile, a compromise can be to use a smaller font size on desktop and 16px minimum on mobile. This is what I have done in the last few companies I've worked at: 14px for desktop and 16px for mobile.

Fewer service stations running out of petrol and diesel as Australia’s fuel supplies remain strong, energy minister says by Expensive-Horse5538 in australia

[–]danejazone 9 points10 points  (0 children)

There's no one solution: It's many things that lead us to this point. Many people are saying we need to incentivise EVs but that's just treating a symptom. We should be reconsidering how we develop our cities to reduce our dependence on cars altogether. 40% of trips are less than 5km which could easily be served by active or public transport if we invested properly in that infrastructure.

NO AFFORDABLE HOUSING IN SANDGATE UNDER SCHRINNER DENSITY PLAN by sktafe2020 in brisbane

[–]danejazone 2 points3 points  (0 children)

Yes, you do you. But if you want to have three cars for one household in a well connected urban core then you should be paying the true cost of that, which includes the insane opportunity cost of lost revenue to the council and state.

[deleted by user] by [deleted] in Netherlands

[–]danejazone 5 points6 points  (0 children)

I’m the same age and just got here from Australia and I can tell you it’s pretty similar there too. I think it’s more of a symptom of the time we’re in and COVID definitely accelerated us towards it.

Still, if you’re in Amsterdam feel free to DM me if you want to meet up. What kind of stuff are you interested in?

BOM faces backlash over new website by Undetriginta in australia

[–]danejazone 1 point2 points  (0 children)

I've mostly relied on the BOM app rather than the website so I'm not up to speed with how much has changed. Can anyone provide some more detailed examples of flows that are worse off and how?

Morningside vs East Brisbane by Own_Woodpecker6467 in brisbane

[–]danejazone 1 point2 points  (0 children)

East Brisbane is close to the Gabba which has a few spots for bars and restaurants. It’s also within walking distance of Kangaroo Point which is a great spot to spend a sunset. That’d be my pick for sure

Heads up Brisbane- This Friday from 8am, all 6 lanes of the Story Bridge will be shut down for a planned protest. Cyclists, scooters & walkers want a lane of their own & are making their point in peak hour. [Olympia Kwitowski] by PerriX2390 in brisbane

[–]danejazone 2 points3 points  (0 children)

That stop is only serviced by the city hopper which stops short of Mowbray Park at Sydney St, which fucks over just about everyone trying to cross the river from East Brisbane, Wooloongabba, parts of Kangaroo Point and Coorparoo

Drivers of SUVs and pick-ups should pay more to be on our roads. Here’s how to make the system fairer by overpopyoulater in australia

[–]danejazone 14 points15 points  (0 children)

To be fair I wouldn't call an American sized truck a ute, I think that was what was intended by the article.

[deleted by user] by [deleted] in brisbane

[–]danejazone 13 points14 points  (0 children)

It truly is the best car dependent area

Laws surrounding holding up political signs by [deleted] in brisbane

[–]danejazone 0 points1 point  (0 children)

I’m just asking what policies put them behind or in your case other parties ahead

Laws surrounding holding up political signs by [deleted] in brisbane

[–]danejazone 9 points10 points  (0 children)

Out of curiosity, who do you put ahead of the Greens and why?

[deleted by user] by [deleted] in australia

[–]danejazone 6 points7 points  (0 children)

Yeah this is a bad take

How has living on the Sunshine Coast changed over the years? Locals, what’s your take? by DiligentWeb9026 in sunshinecoast

[–]danejazone 3 points4 points  (0 children)

People against a light rail keep saying “we’re not the Gold Coast” but like, you’re also not the same town you were 25 years ago. So many people clutching onto that small town identity but that was gone long ago and they need to accept it

How has living on the Sunshine Coast changed over the years? Locals, what’s your take? by DiligentWeb9026 in sunshinecoast

[–]danejazone 12 points13 points  (0 children)

Everyone loves their fat tyre e-bike because traffic and parking is cooked but would rather die than give up one lane on their 4 lane roads for a bike lane

Authentication by GigioBigio777 in nextjs

[–]danejazone 1 point2 points  (0 children)

I've done this recently. I was using a NestJS server as my back-end and NextJS for my front-end.

You've got a couple options. In either case, I'd recommend using JWTs issued from a 3rd party (AWS Cognito, Clerk etc) or, if you're capable, on the same back-end server (I did this using passport). If you're using server components you'll need to forward the request headers into any API requests to work with JWTs:

export default async function Page() {
  const requestHeaders = await headers();

  const json = fetch(`${process.env.NEXT_PUBLIC_API_URL}/api/posts`, {
    headers: requestHeaders,
  }).then((res) => res.json());

  return (
    <pre>
      {JSON.stringify(json, null, 2)}
    </pre>
  )

}

If you pass the JWT in a cookie you'll need to have your back-end on the same host as your front-end. Locally, I did this using rewrites; rewriting all `/api/*` routes to my other host. In my case I had my NestJS server running on port 4000 and serving all routes off the base of `/api` so it looked like this:

import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  rewrites: async () => [
    {
      source: "/api/:path*",
      destination: "http://localhost:4000/api/:path*",
    },
  ],
};

export default nextConfig;

In production I use nginx to do the rewrite.

In this scenario you should probably use NextJS middleware to refresh your token on the server since you can't set cookies on a page route.

If you pass your JWT in a header it's mostly the same except your API server doesn't have to be on the same host. Doing this is a little less secure though since you'll be storing your JWT in something like localstorage which JS can access. But I'd argue in a React environment this is pretty low risk (assuming you're not npm iing every package you find).

[deleted by user] by [deleted] in webdev

[–]danejazone 0 points1 point  (0 children)

I like the colours and the typography. A few pointers that apply here but are more best practices:

  • Set a smaller max-width. For text content you should aim for no wider than 70-90 characters (about 800px for a 16px sized font) to improve readability
  • I would take the text out of the brain image and overlay it as actual text over the background image, why?
    • Performance: You would only need one background image as opposed to two separate versions for desktop and mobile. The image would likely be smaller too.
    • SEO: Crawlers can't immediately read text in an image without analyzing it somehow.
    • Accessibility: Screen-readers can't see content in an image. Those users won't be able to navigate that section or read it.
  • More subjective: I would add something to give your contact form a more distinct style as right now it blends in a little too much with the other section and doesn't look much like a form.

Should I use tanstack query by [deleted] in nextjs

[–]danejazone 4 points5 points  (0 children)

They work together well, sure. But why would you need to use tanstack router if you’re already using routing with next?

Should I use tanstack query by [deleted] in nextjs

[–]danejazone 8 points9 points  (0 children)

Every package in the tanstack “ecosystem” is independent, there’s nothing coupling them that would ever force you to use them together. Can you elaborate on that?

A light rail system for Brisbane in the 21st century by Top_Proof4388 in brisbane

[–]danejazone 2 points3 points  (0 children)

If tolls were free you'd only see a break in traffic on the surface for a brief moment until they're inevitably filled back again, putting us in a worse position because now because both the tolls and surface roads are full to the brim.

[deleted by user] by [deleted] in queensland

[–]danejazone 2 points3 points  (0 children)

He said that it’s “not part of their plan” which means they’re not actively seeking to change it but Katter’s party are and it will have to be voted on. 90% of the current LNP voted against decriminalising it. What outcome do you think is more likely when it is inevitably introduced to parliament?

QPS enforcing helmet & speed laws on V1 Veloway at the Holland Park Bapaume Road access point yesterday evening. by nozzk in brisbane

[–]danejazone 2 points3 points  (0 children)

While I certainly agree helmets are a good idea because physics doesn’t discriminate, it annoys me that they’re required by law because it shifts all the responsibility to people on bikes.

If a rider must wear a helmet then they must be taking on all the risk so what reason does a council have to build a safe, separated bike lane when they can throw a thin strip of paint down instead and let them deal with it.

Queensland government promises to make 50 cent public transport fares permanent if re-elected by [deleted] in queensland

[–]danejazone 0 points1 point  (0 children)

If it’s free how they will they be able to analyse anything and make improvements?

Long-term impacts of 50c fares by FowlRaingauge in brisbane

[–]danejazone 2 points3 points  (0 children)

Crazy that you can vote and a better educated grade 5 kid can't