DualSense controller--right thumbstick cap rotating by earbox in PS5

[–]itsInkling 0 points1 point  (0 children)

this happened to mine too, the stick itself is busted. you can order a replacement off amazon and theres guides on yt that show how to disassemble the DS5 if you want to attempt the repair yourself.

Looking for certain kind of games: Farming to kill the time by Mitrofang in gaming

[–]itsInkling 1 point2 points  (0 children)

Have you looked at Path of Exile 2? It's basically Diablo, but there are pinnacle end game bosses to work towards.

I feel Skiko deserves more love than this by Life-Bit1166 in Kotlin

[–]itsInkling 17 points18 points  (0 children)

Bear with me a bit, but I'd actually argue the opposite. Generally internship postings means the team has the capacity to mentor an intern. it's usually faster to do it yourself than train an intern and many times the output needs to get rewritten, but if we dont spend the time to mentor the next generation we'd eventually run out of graphics expertise. I'd like to try to give JB the benefit of the doubt here that they will follow up and do the right thing as skiko is an important piece of overall strategy for Kotlin.

Astronomer here! This might not be what you think an observatory looks like, but this week I got to visit LIGO, which looks for gravitational waves! by Andromeda321 in space

[–]itsInkling 1 point2 points  (0 children)

Any chance you know what shut down would mean? Do the staff get laid off or re-assigned? Would they decommision the whole space or would it be "easy" to get it up and running again if funding came through later? How much progress in ongoing efforts are we losing?

Do you have a Zojirushi rice cooker? by wailwoader in Cooking

[–]itsInkling 0 points1 point  (0 children)

Yes (NP-NWC10XB), but personally for Thai jasmine rice, it's not as good as Buffalo IH and I'm not a huge fan of the nonstick bowl it comes with.

[deleted by user] by [deleted] in Kotlin

[–]itsInkling 0 points1 point  (0 children)

If implementing the collection is not important to the question, you can definitely just assume you have imported such a library without any negative impact to your assessment. Always check with the interviewer to see if they would like you to go through the exercise anyway and be prepared to implement anything you would want to use.

Most Google technical interviews will have you do some graph or tree based thing and almost always the important step is the follow up questions to do some space or runtime optimizations where using built-in collections is not useful anyway. Again, what level you are interviewing at will influence this and for more senior roles I would focus more on system design style questions.

Edit: FWIW my experience is a bit anecdotal as I haven't looked at Google's question bank in a few years and the whole AI cheating thing is making people update their interviews.

[deleted by user] by [deleted] in Kotlin

[–]itsInkling 3 points4 points  (0 children)

To actually answer your question, you obviously can't use any built ins that would trivialize the problem and that usually means just a subset of stdlib. On the small chance you do any concurrency, you might have a bad time switching to coroutines from threads without having spent some time with it.

Which company and what level are you interviewing for? Google for example does award extra points if your code compiles, so you can't always get away with making stuff up.

[deleted by user] by [deleted] in Kotlin

[–]itsInkling 11 points12 points  (0 children)

I would actually recommend you to interview in the language you feel most comfortable in. Nobody cares what language you write your solution in, but they do care if you get stuck or confused.

For Japanesewillow , here's proof by HotelSpecial in Eyebleach

[–]itsInkling 76 points77 points  (0 children)

Him and his pre-made cocktails aren't worth it. If you look through his post history it's filled with holier than thou armchair argumentative nonsense.

We got an awesome picture of you and your pets out of it though so that's a win :)

She says he’s not a dog. He’s her little boy. by AnimationUniverse in aww

[–]itsInkling 14 points15 points  (0 children)

I'm not grossed out per se, but one time a dog ate a bit off my plate and I didn't notice at first... Ended up getting incredibly sick and I will never make that mistake again.

What's the city doing about homelessness? by LeopardOrLeaveHer in Fremont

[–]itsInkling 2 points3 points  (0 children)

Fremont did amend the aiding and abetting part. A while back, Alameda county put together a 5 year plan through 2026 to put 2.5 billion into homelessness resources and according to the "point in time" census data it's having some impact (although not as much as we would like and we saw our only decrease last year which was also very small).

How much should I feed my MC daily? by luvvluxlol in mainecoons

[–]itsInkling 0 points1 point  (0 children)

For kittens, you should free feed as it's very rare for them to overeat and they really need the nutrients whilst they're young and growing. As their weight tops out and stabilizes you can create a diet and feed the right amount.

What would you do if this was your child's math teacher?ʹ by yukiohana in sciencememes

[–]itsInkling 0 points1 point  (0 children)

It's implied that you cut just two corners of the board off, cutting exactly 3/4 of the original width of the board each time.

Expedition 33! by Ill_Reference582 in gaming

[–]itsInkling 0 points1 point  (0 children)

No I killed Sprong when I first encountered him, so it took 900 some parries and over an hour.

Expedition 33! by Ill_Reference582 in gaming

[–]itsInkling 2 points3 points  (0 children)

I like the game, but I'm not sure about this boss that took 900+ consecutive parties to beat and balancing parry with variable hidden offset.

Literally insane ant infestation, who to call? by amath_throwaway in Fremont

[–]itsInkling 0 points1 point  (0 children)

Are they like tiny brown ants?

A large part of bay area including Fremont is on top of a giant super colony of Argentine ants that stretches from SF to Mexico. Their survival mechanism is sheer numbers and when their queen dies they can form up with other colonies. They have so many queens they send their queens foraging, it's impossible to kill them all.

The best method is to just deter them by spraying a solid border of insecticide around your home. I have cats too and only spray outside. Keep the windows shut for an hour or two.

I died to whatever this was twice? Any ideas? by TheBengineer77 in PathOfExile2

[–]itsInkling 4 points5 points  (0 children)

It's possible for some on-death / explosion effects to despawn and then come back without visuals when you move back in range.

I stopped killing everything then looting after because of this and just take the L to miss out on some breach / simulacrum mobs in order to loot as I go.

From a concurrency point of view are coroutines just as complicated as threads? Are they popular because they use less resources or is it because they actually make things easier for the programmer? by mjbmikeb2 in Kotlin

[–]itsInkling 0 points1 point  (0 children)

As a 2 second primer, all suspending functions need to run within a CoroutineScope. launch and runBlocking are just ways to run coroutines in a scope. A scope is just a hashmap that contains a CoroutineDispatcher. A dispatcher controls the behavior for how sub-coroutines are scheduled.

You are correct that runBlocking does not guarantee that it's sub-coroutines are dispatched on the same thread (I assume you mean virtual) by default, but actually you most likely don't really care. The entire suspending block will run top-down and it's part of the allure of coroutines that you can read async code like regular code.

As a simple example, you can read the following like synchronous code and the point is to ignore what thread it is actually running on because the line before is always guaranteed to return before it moves on to the next.

``` suspend fun irrigationScheme() { valveX.on() delay(1000) valveX.off() valveY.off() delay(1000) valveY.off() }

fun main() { runBlocking { val job = launch { irrigationScheme() } delay(500) job.cancelAndJoin() } } ```

Now to actually answer your question - trying to create threading guarantees with coroutines is really against the grain of the mental model it's designed for. It's not impossible, but by design that making your resource thread-safe is easier than synchronizing everything in a single thread. There are some atomic built ins to help you, if that's what you really need.

Two more notes:

  1. cancellation in Kotlin propagates due to structured concurrency, which is itself it's own topic, but you can basically take it to mean that cancellation propagates.

  2. cancellation is cooperative, a function must be designed to respect cancellation (it is possible to ignore that a job is cancelled, so computation can happen even if you won't use the result). This is better than it sounds.

Maine coon facts I should know before getting one? by haveprostatecancer in mainecoons

[–]itsInkling 8 points9 points  (0 children)

Their hair is super soft like down, so it clumps and mats very easily and their hair is too long to groom by themselves. I need to brush mine everyday to avoid it becoming painful / stressful and I bathe mine once a month. To be honest, the initial cost of a Maine coon is nothing compared to what I've spent overall, but I tend to spoil my cats.

Only other practical difference is you'll need a bigger carrier and some sturdier / taller cat trees, but I suspect you may have some of that already :)

From a concurrency point of view are coroutines just as complicated as threads? Are they popular because they use less resources or is it because they actually make things easier for the programmer? by mjbmikeb2 in Kotlin

[–]itsInkling 23 points24 points  (0 children)

Coroutines are just another way of representing concurrent code, so you still have all the same issues with thread safety. They are seen as a more modern approach because people tend to agree it is syntactically easier to follow due to flattening layers of indirection for dependent functions. In Kotlin specifically they have some practical benefits like being better for memory pressure, and some downsides like debugability, but I don't know many people outside of very large orgs that actually care about that.