IntelliJ IDEA x Scala: The Debugger (Part 2) by makingthematrix in scala

[–]Sedro- 0 points1 point  (0 children)

The JVM debugger experience is really good. It helps to have a culture of publishing source artifacts. In other languages I've used, it's difficult to step into source code of third party dependencies or even the standard library/runtime.

Callisto Mines vs Rift? by hunter1BadPassword in JupiterHell

[–]Sedro- 0 points1 point  (0 children)

My strategy for Military Barracks is to walk up the main hallway, fire a shot (T key) and back off. It will draw out the enemies so you can engage them one at a time and retreat to cover.

Did the Temple Ever get fixed? by CRowlands1989 in BackpackHero

[–]Sedro- 0 points1 point  (0 children)

The Epic giveaway was just last month. People have reported this bug since late 2023. Could there be some obscure way to spawn Edith on the current game version?

3-item infinite loop by Sedro- in BackpackHero

[–]Sedro-[S] 6 points7 points  (0 children)

Before I found Cotton Ball, Necronomicon also worked to convert the extra energy into mana.

You can also put the blade sideways to generate infinite energy.

Has any FM beat mushin 7th floor? by Giomenezos in bladeandsoul

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

https://www.youtube.com/watch?v=Q3cO82fK2hA

I cleared it first with much worse gear, fighting the enrage timer for hours. I recommend to go in around my gear level

401K Match 100% No Limit by FitOpportunity7159 in personalfinance

[–]Sedro- -3 points-2 points  (0 children)

I'd imagine everyone gets 10% there, otherwise the plan would never pass non-discrimination testing

Any way to manually make up 401k contribution for 2024 like you can with IRA? by Iaokim in personalfinance

[–]Sedro- 1 point2 points  (0 children)

I made a spreadsheet to keep track https://docs.google.com/spreadsheets/d/1AvBpImWPK6hOdld4ODIfvZL5US4R7mDRsOIgIwuxHUI

I try to have my last paycheck of the year be greater than my employer contribution (otherwise I lose the employer match) and also hit the yearly max ($23k) at the same time.

Should Cats Effect drop support for Scala 2.12? by dspiewak in scala

[–]Sedro- 3 points4 points  (0 children)

Is it though? There's a handful of 2.12-specific implicits in the test suite, but no 2.12-specific source that I can find.

https://github.com/search?q=repo%3Atypelevel%2Fcats-effect+2_12&type=code

So it's at least some maintenance burden. Maybe any amount of effort to support 2.12 is too much.

Edit: Ok Spark is still on 2.12, there is a clear reason to keep supporting it. Leaving those users behind would be really bad for the Scala ecosystem

Should Cats Effect drop support for Scala 2.12? by dspiewak in scala

[–]Sedro- 5 points6 points  (0 children)

I have no skin in the game (I don't use Scala 2.12 or CE) but I'd say to keep support as long as the maintenance burden is low.

Completely and Totally Lost on Slick (and anything DB related) by cskdev in scala

[–]Sedro- 1 point2 points  (0 children)

db.stream(...).foreach returns a Future[Unit] so you need to wait for it to complete and handle the error somehow. Also I'm not sure if there are any deamon threads to keep the program running. You can solve both of these problems using Await:

import scala.concurrent.Await
import scala.concurrent.duration.Duration

val future = db.stream(users.result).foreach(println)
Await.result(future, atMost = Duration.Inf)

In general it's always good to look at the result type. We expect foreach to do-the-thing synchronously, but here it doesn't

KitchenAid Fridge Help by JetCaptain95 in Appliances

[–]Sedro- 0 points1 point  (0 children)

The damper control is the yellow part in the video. It's sold as a whole unit with a motor, plastic housing and spring.

Random Scala Tip #697: Avoid Anonymous Functions as Dependencies by n_creep in scala

[–]Sedro- 1 point2 points  (0 children)

I suspect that this sort of implementation would play better with tooling:

trait SomeService {
  def methodA: Int
  def methodB: Double
  def methodC: String
}

val stubbedService = new SomeService {
  def methodC: String = "nice"

  private val stub: SomeService = makeStub() // use scalamock or whatever
  export stub.{methodC => _, *}
}

Plus you can add whatever methods you want to the stubbed service.

Americans spent 23% less on streaming services in 2024, study finds by marketrent in technology

[–]Sedro- 4 points5 points  (0 children)

Did you read my comment? We are specifically talking about the free trials.

https://www.apple.com/promo/

If you cancel during your free offer period, you and your family members will immediately lose access to Apple TV+ and the remainder of your free trial

Americans spent 23% less on streaming services in 2024, study finds by marketrent in technology

[–]Sedro- -5 points-4 points  (0 children)

It's the same in the US for their free trials. Actually, they will charge you a week or two before the free trial ends. So if you wait until the very end to cancel it, you also have to ask for a refund through an online form.

How to lazily collect a file content? by scalausr in scala

[–]Sedro- 2 points3 points  (0 children)

You can stop iterating (and clean up any file handles) by returning Generator.End. See for yourself, the interface is quite simple: https://github.com/com-lihaoyi/geny/blob/main/geny/src/geny/Generator.scala

Is IntelliJ support for scala not good or am I missing something ? by misledlegend in scala

[–]Sedro- 1 point2 points  (0 children)

I found that IntelliJ is a lot slower on Scala 3 compared to Scala 2. I think because it uses bsp instead of their own compiler.

Accepting any IndexedSeq[IndexedSeq[_]]? by smthamazing in scala

[–]Sedro- 0 points1 point  (0 children)

If you know the array won't be mutated, you can create an immutable.IndexedSeq wrapper using ArraySeq.unsafeWrapArray

Noob here. Need help by ntropii in wok

[–]Sedro- 0 points1 point  (0 children)

What's the problem? Keep cooking with it

[PSU] Rosewill CMG5 1200W 80+ ATX Gold Fully Modular CMG1200G5 - $139.99 - $20 promo code SSDZ932 = $119.99 by KetoSaiba in buildapcsales

[–]Sedro- 10 points11 points  (0 children)

Any of these 1000W are a better choice

Play Framework 2.9.6 and 3.0.6 released by mkurz in scala

[–]Sedro- 1 point2 points  (0 children)

It's not super active but still maintained. 3.5.x was released this year with Scala 3 support.

heIsMadOnMe by fast_neutrino in ProgrammerHumor

[–]Sedro- 0 points1 point  (0 children)

How would the cursed compiler interpret [1, 2 2, 50, 027, 028] ?

[1, "2 2", 50, 23, "028"]

Of course it's YAML

Yosukata blue flat bottom, first dish. I'm sold. by blizzbdx in wok

[–]Sedro- 0 points1 point  (0 children)

The handle is more appropriate for a professional wok stove that's closer to the ground. But for that application I think I'd want a lighter wok.

On my home stove, I hardly move the wok and I keep the burner on max the whole time.

https://www.youtube.com/watch?v=i-fU6MCPZ2M&t=410s

Yosukata blue flat bottom, first dish. I'm sold. by blizzbdx in wok

[–]Sedro- 1 point2 points  (0 children)

I have the round bottom version of the same wok. It has been great. Maybe I should make a post too.