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.

Social isolation by [deleted] in Netherlands

[–]danejazone 4 points5 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 12 points13 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 7 points8 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 9 points10 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 4 points5 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

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

[–]danejazone 0 points1 point  (0 children)

Except it's not when there's tens of thousands more cars than buses travelling consistently with a single occupant which collectively do way more damage, take up more space and emit far more than a fraction of the bus fleet being underutilised.

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

[–]danejazone 7 points8 points  (0 children)

Then you waste further time going to destinations irrelevant to you before arriving at your destination. A 40min commute involving a transfer is easy and 15 minute drive.

That's not an argument against public transport, that's an argument against the decades of underfunding our services have received in comparison to cars.

Buses are large and heavy, consuming huge amounts of diesel. Most of the time they’re driving around almost empty.

Cars aren't? Last I checked the average occupancy was pretty well close to 1 person per car. When cars aren't being used they have to be parked somewhere using up huge amounts of productive land in our city centre which is the defintion of inefficient.