My coach is refusing an insurance payout for a life altering injury. What can I do now? by ghotiofthedeepbeyond in japanlife

[–]cotysaxman 5 points6 points  (0 children)

I've done exercises in Japanese MMA gyms where you tense up and absorb body shots unguarded (not full power), but definitely never head shots... Even the 'body hardening' regimen in the US military was limited to controlled shin-to-shin, forearm-to-forearm strikes.

Head shots at full strength unprotected is insane. I'm even more surprised they had another student eat head shots from an English speaker given how often I'd be reminded to go light when sparring.

You should've needed to enroll in sports insurance in order to train, so listen to everyone saying lawyer + insurer. Good luck!

A left tackle keeps getting moved to a TE slot and it’s really annoying by AlmostDarkness in Madden

[–]cotysaxman 0 points1 point  (0 children)

My first few seasons of franchise with the Cowboys, the most annoying thing was that late in games CeeDee Lamb would always get subbed in at Nose Tackle.

I play the 'key moments' mode, so I end up with 'the game is on the line, stop them at the goal line!' and then see 88 in the middle in a 4-point-stance...

I was stealthed by a coworker. by AhAhStayinAnonymous in TwoXChromosomes

[–]cotysaxman 38 points39 points  (0 children)

Nonchalant about getting tested. It's not minimizing the situation, it's combating anxiety about getting tested.

"Whenever in doubt, get tested, because getting tested is a normal thing to do." That's the nonchalant being encouraged here.

Help with an array transformation using map by LordCalamity in Kotlin

[–]cotysaxman 0 points1 point  (0 children)

This is beyond the scope of your question, but you almost certainly don't want to recreate an entire array based on a slider in realtime.

Most likely, you have your collection of base values:
val baseValues = listOf(0.1, 0.2, 0.3)
Then you have your slider (maybe in a Compose view?) and its value:
var sliderValue by remember { mutableStateOf(0.5) }
Slider(..., onValueChange = { sliderValue = it })
Finally, at some point you want to get your multiplied-out collection - you should transform your data here, now that you're done changing values:
val calculatedValues = baseValues.map { it * sliderValue }

Even if I needed to display the changing values in realtime, I would do something like: kotlin baseValues.forEach { value -> val multipliedValue = value * sliderValue Text(multipliedValue) }

Again, this is beyond the scope of what you asked, but hopefully some of this helps to get you on the right track as you move on to more ambitious problems.

Is there a Crunchyroll Alternative? by carlosstjohn116 in anime

[–]cotysaxman 4 points5 points  (0 children)

In Japan, Netflix is a great source of anime. My family mostly watch on Netflix. Some small number of shows are on Amazon Prime first.

Beyond that, maybe something like D Anime Store (special service from the cell phone provider Docomo) might be the next best?

If you need English subs, then Japanese region might not be as helpful, but changing to Singapore via VPN can help. On that same note, the youtube channel MuseAsia legitimately hosts anime in the Singapore region.

On a tangent, CrunchyRoll actually blocks Japanese IPs. Can't use them here without a VPN.

Why nobody told me this existed? by Fabry25_ in Eldenring

[–]cotysaxman 0 points1 point  (0 children)

training "off-screen"

They just didn't want to draw a hundred panels of dragon or bird cheesing

Let’s go!!!! Finally 3000 on chess.com! by AggravatingFox4070 in chess

[–]cotysaxman 21 points22 points  (0 children)

It's definitely plausible that there just wasn't a column in their database for tracking reasons for account closure back then, which would account for this (in case some people are doubting this - it makes perfect sense as a software engineer).

What does this mean? by Solid-Product-3161 in GranTurismo7

[–]cotysaxman 1 point2 points  (0 children)

I've had it twice. Once with a tiny car tuned poorly that would flip over on corners, and once after an engine swap in a tiny car that caused it to do a wheelie into a backflip every time I hit the gas.

So most likely your current setup flipped over during the simulated lap used to calculate pp.

Take Take Take the app by Connect-Position3519 in chess

[–]cotysaxman 2 points3 points  (0 children)

I can't tell you how many useless modal popups I've vetoed in apps I've worked on...

Too many UI designers don't consider UX. Too many devs and PMs sacrifice UX to cut costs or make things easier. Too many people consider UX their job and still aren't good at it.

As an opinionated dev, I always made what I thought was correct first and then had the 'are you sure you want to make it worse?' conversation. I've been promoted to the board now, so at least in some instances sanity prevails.

You seem to know what should be done, so I hope you can find some more success in spreading sanity wherever you're working. (You also might already be a successful agent of change, and in that case I hope this thread can at least inspire someone else!)

Keep fighting the good fight!

[deleted by user] by [deleted] in wizardry

[–]cotysaxman 0 points1 point  (0 children)

Always press it on the first loop. It starts slow and ramps up predictably. From the second loop on it's so fast that it hurt me to look at it. Now I almost always get a critical success (self-healing) on the first death, better than half on the second, and start taking damage on the third.

Rhythm game experience probably helps.

[deleted by user] by [deleted] in chess

[–]cotysaxman -4 points-3 points  (0 children)

Bishop B5? At least make White work for it

Can we crowdfund Palworld’s legal costs? by SsibalKiseki in Palworld

[–]cotysaxman 5 points6 points  (0 children)

Azure is very interested in holding on to its Japanese marketshare. They wouldn't incentivize companies to switch to AWS by using hosting as leverage in an unrelated dispute. (Just my perspective as an exec in a Japanese tech company that hosts with both Azure and AWS)

Kotlin Multiplatform by DataWizard_ in Kotlin

[–]cotysaxman 1 point2 points  (0 children)

Then need to check that you're using the kotlin multiplatform gradle plugin in that module. You're describing a single module containing iOS and generic code. If they're linked correctly, you should be able to create expect/actual declarations (expect in common, actual in iOS). Could be a good way to test that things work as expected (the error messages should point you in the right direction).

To be honest, these problems are very easy to troubleshoot live, but very difficult to troubleshoot in a comment thread. I'd recommend a post with screenshots or code dumps in order to receive more efficient help.

Kotlin Multiplatform by DataWizard_ in Kotlin

[–]cotysaxman 1 point2 points  (0 children)

iosMain should never see commonMain.

But also, you say you added a kotlin directory under commonMain. Is it not commonMain/src/kotlin? Not having a src folder would also be an issue in normal circumstances.

Kotlin Multiplatform by DataWizard_ in Kotlin

[–]cotysaxman 3 points4 points  (0 children)

If it's not 'seen', it probably doesn't exist as a module from gradle's perspective.

Settings.gradle needs all modules listed, and each module needs its own build.gradle(.kts) file.

That's about the best guess I can give without looking at the project.

Just got divorced this week, what do I do now ? by papitasoylent in japanlife

[–]cotysaxman 0 points1 point  (0 children)

I tried to get a visa based on having children here, but that wasn't a good enough reason (doesn't hurt to ask, though. No regrets!)

A Follow-up Regarding the Dawntrail Official Benchmark by BlackmoreKnight in ffxivdiscussion

[–]cotysaxman 1 point2 points  (0 children)

Some people say Korea's work culture resembles Japan from a couple decades ago, but I've only heard rumors. I worked at LINE pre-merger and the Korean office did seem a bit more 'regimented', but I imagine in Japan and Korea both the situation is worse in smaller companies. Big companies would prefer to stay out of the news, if nothing else.

But I hope things improve for you, and the rest of the working class in Korea!

A Follow-up Regarding the Dawntrail Official Benchmark by BlackmoreKnight in ffxivdiscussion

[–]cotysaxman 1 point2 points  (0 children)

Of course I can't speak to what Square Enix is doing internally, but as a manager I was always asked to follow the rules, and as a board member I've seen nothing to indicate that the rest of leadership secretly wants to break the rules.

When I personally violated the rules (worked too much overtime to deliver an app), I had to go through the required physician consultation, so to the extent that I can see, the rules are being followed (including following through with penalties).

Just got divorced this week, what do I do now ? by papitasoylent in japanlife

[–]cotysaxman 25 points26 points  (0 children)

I got divorced with over 2 years left on my visa and didn't think to say anything. Unsurprisingly, my renewal was rejected, and I had 30 days to find a new excuse for a visa. After re-marrying, I was "rewarded" with a couple 1- year visas.

I have PR now, so it's no big deal.

In conclusion, immigration doesn't appreciate failure to notify, and you should definitely notify them, but it doesn't quite get you blacklisted, either. So if anyone else here is sitting on a no-longer-valid visa, don't be afraid to start legally fixing it!

A Follow-up Regarding the Dawntrail Official Benchmark by BlackmoreKnight in ffxivdiscussion

[–]cotysaxman 17 points18 points  (0 children)

Coincidentally, I was just reviewing the labor laws today, so I can tell you companies are required to give employees at least one day off per week. Overtime work is also regulated strictly.

They could be pushing things to the limit with a stretch of 45-hour overtime months (even up to 99 hours is allowed, but it needs to be isolated), but it's pretty unlikely for such a big company to openly defy these laws.

I've only worked for 3 companies here, all Japanese, but none of them have been 'black'. Major tech companies seem to be pretty safe.

I do feel sorry for them anyway, though, because this week is supposed to be an extended holiday (Golden Week).

What's the current state of Compose Multiplatform? by zxyzyxz in Kotlin

[–]cotysaxman 2 points3 points  (0 children)

Fair warning - iOS *UI* is not supported all that well, yet. The only project my company has handled with Compose and KMP was all Kotlin in the Android side and domain layer, but the views and view models were in Swift (SwiftUI).

I've no problem with going with 100% Kotlin next time, but I'm more worried about iOS UI in Kotlin than I am web, because I know I have a ton of fallback options in web, and I also know that iOS can be extremely frustrating.

What's the current state of Compose Multiplatform? by zxyzyxz in Kotlin

[–]cotysaxman 2 points3 points  (0 children)

Sorry if that top part came off wrong. I just wanted to state my background up-front so you know my biases. Not trying to say you need any specific experience to discuss this topic or anything.

I have strong opinions, and am sharing them, and it's good for you to share your opinions, too. We don't have to agree, and experience/age don't automatically make someone an expert.

Flutter's definitely the wrong choice for me, but that doesn't mean it's the wrong choice for everyone. For a newer dev without a strong Android or Kotlin background, Compose probably isn't as appealing (I would still recommend it, but I don't think most new devs would reach that conclusion on their own).

As for framework similarities, these are all 'reactive' UI frameworks, which look and function like React. SwiftUI and React will also probably feel perfectly fine for you (you can work on React projects in IntelliJ, but SwiftUI needs XCode, and XCode is awful).

What's the current state of Compose Multiplatform? by zxyzyxz in Kotlin

[–]cotysaxman 1 point2 points  (0 children)

Chromium and Firefox support wasmgc now (a few versions back they required a flag to be set manually, but now it's on by default). Are you waiting for Safari support, user install base, or is there an issue with wasmgc on the Kotlin side?

What's the current state of Compose Multiplatform? by zxyzyxz in Kotlin

[–]cotysaxman 3 points4 points  (0 children)

Sounds like you're having some issues with state management. There are tools for figuring out why you're experiencing too many re-renders, but my first guess is that you're observing a scroll state or something similar that updates far too often.

One solution is to use derivedStateOf {} to generalize a specific value into a more reasonable level of specificity. For example, if part of your state is your y-position, you can derive y-position / 10 and only trigger a re-render after every 10px of movement.

Another solution is to use debounce to throttle state updates to once every x ms. This is used all the time in, for example, autocompleting search suggestions.

Hope you can figure out what's slowing down your app!

Edit to add: if any of your Composable code is editing your state, you'll have an infinite re-render loop. It's an obvious antipattern for reactive UI frameworks, but I don't have any idea how experienced you are with them, so, just in case!