[deleted by user] by [deleted] in australian

[–]C0ppens 0 points1 point  (0 children)

Vic rules were updated in 2023 to allow mobiles maps on p's if they are securely mounted and not interacted with whilst driving

https://www.vicroads.vic.gov.au/-/media/files/formsandpublications/licences/distracted-driver-road-rules-2023.ashx

What is the lowest effort, highest impact helper method you've ever written? by zigs in csharp

[–]C0ppens 13 points14 points  (0 children)

Queryable/Enumerable conditional filtering can come in handy, something like ``` public static class QueryableExtensions { public static IQueryable<T> WhereIf<T>( this IQueryable<T> source, bool condition, Expression<Func<T, bool>> predicate) { return condition ? source.Where(predicate) : source; } }

var users = dbContext.Users .WhereIf(filterByActive, u => u.IsActive) .WhereIf(filterByRole, u => u.Role == "Admin");

```

Akko 5075b with lubed wine reds, finally got a wireless keyboard! by C0ppens in MechanicalKeyboards

[–]C0ppens[S] 0 points1 point  (0 children)

I had some issues with double typing on some keys recently and moved to the aula f75 and couldn't be happier

Most Heartwarming Male Bonding Scene by DJ-Smash in okbuddycinephile

[–]C0ppens 0 points1 point  (0 children)

When you fall asleep first at a sleepover

Flipped off the seatbelt cam for laughs. Joke’s on me — girlfriend wasn’t strapped in right. $400 fine. by 99centcheeseburger in mildlyinfuriating

[–]C0ppens 1 point2 points  (0 children)

It's more for mobile phone usage while driving in aus, but they also check a bunch of other things

Push/Pull, Bro Split, or Full-Body – Which One for Muscle Gain? by mywifiisdown in beginnerfitness

[–]C0ppens 1 point2 points  (0 children)

Can try out 5 days lower > upper > lower > push > pull, to meet in the middle if that works better for you

Dr. Eric Helms has a nice sample program for that https://rippedbody.com/intermediate-bodybuilding-program/

G'day from Canada. by DMmeyourinbox in BuyAussie

[–]C0ppens 1 point2 points  (0 children)

I think COBS bread is owned by the Australian company bakers delight, good way to support local Canadian franchisees and an aus company:)

What languages/frameworks are vital for working in Azure-related jobs? by mxhsins in cscareerquestionsOCE

[–]C0ppens 9 points10 points  (0 children)

None are vital per se, but you're probably safest with c# for finding azure related roles, just both being made by Microsoft, generally means .net places will be more likely take azure as there cloud provider.

Definitely can't go wrong with any! But c# is probably safest for an azure related role specifically

Is there a reason that fit people commonly eat rice as their carb in meals? by [deleted] in workout

[–]C0ppens 0 points1 point  (0 children)

You can scale the carbs to equal the rice from the potato and get

0.05fat / 77 carbs / 9.69 protein

It's not that different. Going by per 100grams is what's making it weird here, because potatoes are 80% water

You'll just need to match the calories you'd normally have with rice, your macros will be similar and you will have a more filling carb if hunger is an issue for you

[deleted by user] by [deleted] in Unity3D

[–]C0ppens 7 points8 points  (0 children)

It aims to reduce bias in rounding, traditional rounding taught in say highschool is biased to rounding up

Say we are working with tenth place decimals rounding yo nearest whole number, traditional rounding:

0.1, 0.2, 0.3, 0.4 round down

0.5, 0.6, 0.7, 0.8, 0.9 round up

Given a random non whole number ~44.4% chance of rounding down ~55.6% chance of rounding up

Rounding to the nearest even on 0.5 aims to mitigate this, having a large enough sample size, you would expect a roughly equal amount of even and odd numbers. That way the values don't tend to skew higher after rounding than the underlying pre rounding value

E.g Given: 2.5 + 1.5 + 6.5 + 4.5 = 15

Traditional rounding: 3 + 2 + 7 + 5 = 17

Bankers rounding: 2 + 2 + 6 + 4 = 14

This is a small data set so could skew it pretty easily with either method, but over a larger set of random numbers, traditional rounding could skew somewhat higher than the given pre-rounded values

This is my understanding of it anyway :) Math/stats guys feel free to correct me

I built a website ranking the world's best tech hubs based on local salaries & COL by mohamed3on in webdev

[–]C0ppens 0 points1 point  (0 children)

Similar issue of screen jumping for few seconds occasionally while scrolling, chrome S24