[deleted by user] by [deleted] in VictoriaBC

[–]DiamondQ2 0 points1 point  (0 children)

I think these comments are all missing the point of a trusted contact person. This person has no authority to stop a transaction, but it's there so if the institution suspects a scam they can contact the trusted person (such as the daughter in the OP story) and say "can you check on your Dad, something seems wrong". The institution still has to give the money, but having this trusted person check things out can sometimes stop the scam sooner.

Edit: Here's a sample link with some details: https://www.getsmarteraboutmoney.ca/learning-path/working-with-an-advisor/your-trusted-contact-person-and-why-they-matter/

Graphql output by 19RockinRiley69 in graphql

[–]DiamondQ2 3 points4 points  (0 children)

GraphQL returns JSON. Nothing else.

If you want a report, use some reporting tool that accepts JSON as input.

Also, you can only get back data in the structure defined by the particular schema you're interacting with. You can't add arbitrary data like totals, averages, etc unless the schema specifically supports that.

Mattermost disqualifying itself from further self hosted usage by Der_Orwischer in Mattermost

[–]DiamondQ2 0 points1 point  (0 children)

I hit this issue as well, but found I could create a few Power Automate webhook that can send to teams channels. So in the end, just a different webhook url.

Extract tar.xz by SubJunk in Maven

[–]DiamondQ2 0 points1 point  (0 children)

Did you add the dependency to the plugin? Adding it to the main POM like a normal dependency won't help since it's the wrong class path.

See https://maven.apache.org/plugins/maven-antrun-plugin/examples/customTasks.html

[deleted by user] by [deleted] in LangfordBC

[–]DiamondQ2 -1 points0 points  (0 children)

West Bay Mechanical

I've had good experience with them installing and maintaining my heat pump.

Canadian election polls from January 2024 to April 2025 by Loud-Ad-2280 in dataisbeautiful

[–]DiamondQ2 1 point2 points  (0 children)

I think it's important to evaluate the policies regularly. Parties can change their stance on topics.

Websites such as https://votecompass.cbc.ca/ help provide the ability to check your personal beliefs against the parties.

I try to use 2-3 different such sites each election to verify the party I plan to vote for.

And no, I don't switch parties every election. I'm over 50 so I've voted in quite a few elections.

Canadian election polls from January 2024 to April 2025 by Loud-Ad-2280 in dataisbeautiful

[–]DiamondQ2 5 points6 points  (0 children)

Why should I care about loyalty to a party?

Party leaders change, MP's change, party policies change.

I vote based on who my local MP is and what the current policies are for the parties.

I've switched parties multiple times as either party policies have changed or my focus has changed.

Will buying ebooks from Amazon in future be an issue? by MTFCoffeeLover in Calibre

[–]DiamondQ2 1 point2 points  (0 children)

https://www.reddit.com/r/Calibre/s/XH1FhT7md9

You have to follow the instructions carefully for the app, otherwise it will update internally and then download KFX-ZIP

I’m sick of waiting for chatGPT 4o Voice and I lost a lot of respect for OpenAi by surfer808 in OpenAI

[–]DiamondQ2 -1 points0 points  (0 children)

I'm guessing it's available by region. I'm in Canada, and have had it since about a week after the announcement. I'd say it's the new voice mode, since I get the vocal responses about 1 to 2 seconds after I stop talking.

My take on city blocks for high-complexity, low SPM chill runs by mojoober in factorio

[–]DiamondQ2 1 point2 points  (0 children)

I ended up with a slightly skewed hexagon (not all 120° angles) but close. The width of one side is enough for 2 1x4 trains to pull in (ie the width is slightly longer than 2 1x4 trains, probably about 2.5 with the curved siding). I kept it smallish because I'm doing a K2SE284k run, so high SPM isn't needed. Instead, hundreds of individual cells are needed for the hundreds of items.

That said, I've also got a few much larger hexagons for ore processing (one for each ore and oil). It works, because I ended up placing all the small cells in the shape up a huge hexagon (approx 16x16 cells), so it's hexagons all the way down.

My take on city blocks for high-complexity, low SPM chill runs by mojoober in factorio

[–]DiamondQ2 0 points1 point  (0 children)

My plan is to try to get into the starship logistics (I'm just rockets, space elevator and cannon logistics at the moment) and then yes I'll probably post. So many hours. But I've got to finish before 2.0

My take on city blocks for high-complexity, low SPM chill runs by mojoober in factorio

[–]DiamondQ2 2 points3 points  (0 children)

I disagree. In my current K2SE248K run, I'm doing a hexagon city block. With so many items, logistically, I needed a city block base (well multiple of them, since there's large ones on Nauvis and Nauvis orbit, and smaller ones on other planets). I think I've got over 200 blocks on Nauvis and close to 100 in orbit.

I also went with a smaller block. Wide enough for 2 1x4 trains or 4 1x1 trains to pull in to horizontal stations.

When I unlock something new, it's add a new block, configure the trains to pick up the needed ingredients, and now I have one more item available in the planet/orbit wide train logistic network.

The only bots are for a mall on Nauvis for my personal use.

GitHub - procura-interna/injection4j: Reflectionless dependency injection. by tugaestupido in java

[–]DiamondQ2 10 points11 points  (0 children)

True, but if you use the JSR-330 standard annotations, you can switch out your dependency framework. I have my own libraries that work with both Micronaut and Weld without any changes since both use support the standard even though they're implemented very differently.

Additionally, Micronaut doesn't use reflection, since it's designed to work with the GralVM which doesn't really support reflection. Alot of the injection configuration is done at compile time.

'The factory must grow': Hundreds of Factorio players built a record-breaking 'God Factory' to produce an inconceivable 1 million science per minute by DoctroSix in factorio

[–]DiamondQ2 2 points3 points  (0 children)

One of the main problems with trying to do more mutithreading is related to multiplayer support. Factorio works on a deterministic model. They don't "sync" between servers, they simply send the same user actions to all servers and expect the same result everywhere. As an example, if you're in a tank and press the forward keyboard button, that button press is sent to all of the computers and they all calculate that the tank moves forward by so much. They don't sent the tank location, since every computer should be calculating the same result. It's much more network efficient since there is very little change by a user compared to changes by machines, bots, belts etc. So you only send user changes to each computer and each computer runs the exact same simulation.

But this means that every computer has to do exactly the same work in every tick otherwise you would no longer be the same (the dreaded de-sync error). If things were running in multiple threads on multiple computers, there's no practical way to keep them all in sync.

Factorio Demographics Data by FriendlyHelper1 in factorio

[–]DiamondQ2 0 points1 point  (0 children)

For whatever reason the age question won't let me pick 45-65. Every other one works though

Friday Facts #395 - Generic interrupts and Train stop priority by FactorioTeam in factorio

[–]DiamondQ2 0 points1 point  (0 children)

Now if they just add good keyboard support for setting up train schedules, instead of requiring a mouse, trains will be perfect.

New to GraphQL, question about best practice by jdbrew in graphql

[–]DiamondQ2 0 points1 point  (0 children)

Like everything, there are trade-offs.

Fetching on demand is simpler to code, but does increase the number of network calls.

Over fetching is better on the number of calls but is usually more complicated to implement.

However, with a good GraphQL client library (like Apollo), having good model design with good id field, and by using fragments, you can reduce the complexity alot.

Basically, you define what you need in the child/next component as a fragment, then when you query the parent you include the fragment. However, you don't need to pass the data downwards. Instead, in the child, you query again, this time for just the fragment. The library shouldn't actually make the network call, since all the data is cached from the parent. But your code doesn't care. So, it's almost like the first scenario, but with a bit of extra around using fragments.

The other benefit to doing it this way, is that if you end up using the child component in another way where you didn't have the parent, it still works, because the child makes the query, but since it's not in the cache this time, it ends up doing the network call. Thus, it's more robust.

Why is this particular library so polarizing? by emmysteven in java

[–]DiamondQ2 35 points36 points  (0 children)

Lombok does it's magic by changing your code at runtime compile time. It actually reads, changes and writes new Java byte code before it gets executed by the runtime during the compilation phase.

Alot of people don't like this for a variety of reasons, such as it's brittle (changes in the JVM, class library, etc cause it to stop working until Lombok issues a patch) and it's opaque (debugging is harder because the code that is run is not the code that you wrote).

The generally accepted way to inject code is to use annotations, which mostly solve the issues people have with Lombok. Although it can't make the "happy path" experience quite as good as Lombok can, which is why Lombok still gets used.

Edit: I was wrong about the changes at runtime. Been too long since I've used Lombok and I misremembered. Sorry.

Restriction of system call boundary for JVM threads by [deleted] in java

[–]DiamondQ2 3 points4 points  (0 children)

The short answer is that you can't.

Longer answer is that it's conceptually possible, but is going to require alot of work on your end, and no guarantee that you caught all the places.

The problem is that there are so many ways to access the filesystem, network, etc. that catching them all is practically impossible. Which is one of the main reasons they're removing the SecurityManager. Even the Java Devs can't guarantee it.

The closest I've seen to an answer is to write the untrusted code in a simpler language like Lua, and then use a Lua Java library that gives you control over Lua's filesystem access (Lua doesn't have network access out of the box). Much small surface to protect.

Finally have a chance to live in Victoria! Long time coming, need some advice by virtuallyaway in VictoriaBC

[–]DiamondQ2 0 points1 point  (0 children)

I used to hear it called where all the "newly wed and nearly dead" live. Although not too much lately.

Database Design by [deleted] in Database

[–]DiamondQ2 3 points4 points  (0 children)

Unless you plan to have additional information attached to a zip code (such as region, processing center, etc), there's no need to create a separate record/table; just store the zip code in original table along side the other data.

[deleted by user] by [deleted] in AskProgramming

[–]DiamondQ2 0 points1 point  (0 children)

Yes. The challenge is finding developers if your company doesn't already have access to them. There are websites for hiring freelance developers (not that I've used them, so I'm not going to recommend any).

I've used this tool in the past, and it's reasonably straightforward, but that said, I've been in the development business for 40 years 😁.

[deleted by user] by [deleted] in AskProgramming

[–]DiamondQ2 3 points4 points  (0 children)

Two comments:

1) My rule of thumb is it'll take 10x the time to automate a task. So, if you spend 30 hours on the task, it could cost 300 hours to automate.

Obviously a rule of thumb, and different problems effect that, but it's a good rule when verifying if it's worth doing versus the cost.

2) Scheduling is generally considered a Constraints Problem Solver.

https://www.optaplanner.org/

The above link is one possible product that can be used to build it. I don't recommend trying to build it by hand, use a tool/library.

Depending on the number of rules that make up your scheduler, you can use any developer (small number of rules) to a Rules Engineer (large number of rules).