Quantcast
Channel: User LMeyer - Stack Overflow
Browsing index pages (49 articles)
↧

How to get DirectoryModuleCatalog to work?

I am using Prism 4 and MEF for a WPF project. I have some DLL that needs to be loaded from a directory. These DLL implements IModule through IGame and are properly formed (or at least I think so) :...

View Article


Comment by LMeyer on Where is Scala 2.10.3 hosted?

After clicking on a version on this page, you'll have the installers available at the bottom of the new page. Or you can just go here.

View Article


Answer by LMeyer for Running zio.dev Hello, world! yields error

The errors comes from the fact they commented out a common sbt plugin library here I think, yet they still use it in their build definition. More precisely the methods enableZIO() and stdSettings()...

View Article

Comment by LMeyer on Why override bootstrap, not work for run method?

Did you actually try it with OP's code ? Because I did and have the same error

View Article

Comment by LMeyer on Why override bootstrap, not work for run method?

Mmh this is weird indeed. I tried playing with ZIOApp overriding things but still get the same error... I'd ask on the Discord

View Article


Comment by LMeyer on How to "override a binding" in a ZLayer?

It is not very clear what you want to achieve. If you want to change service in your program just provide different layers when you need too. You don't really need to override anything.

View Article

Comment by LMeyer on Scala, ZIO - convert Future[Either[...]] into ZIO

I would just do ZIO.fromFuture(_ => futureEitherMethod()).absolve

View Article

Answer by LMeyer for Scala cats, traverse Seq

Cats does not provide typeclass instances for Seq, so besides implementing it yourself you're stuck with the conversion.As to why, there's an ongoing discussion in an (somewhat old) Cats issue. To sum...

View Article


Answer by LMeyer for Akka - assign dispatcher to an actor based on name pattern

The docs explicitly state you cannot :You can use asterisks as wildcard matches for the actor path sections, so you could specify: /*/sampleActor and that would match all sampleActor on that level in...

View Article


Answer by LMeyer for Use Circe to decode Normal Class (not case class)

With io.circe.generic.auto._, you're using Circe's automatic generic derivation, which is backed by Shapeless's LabelledGeneric typeclass. LabelledGeneric only works with product types like tuples and...

View Article

Answer by LMeyer for What is a unary type?

Unary is another way of saying "of arity one". A one parameter function is said to be unary, whereas a two parameters function is binary, three is ternary and so forth...The same principle applies to...

View Article

Answer by LMeyer for Struts 2 XML Validation

You'll have to do it before the request, that is, on the client side. You could use Javascript with a OnChange or OnKeyDown event on the textboxes. The triggered method could invalidate the submission...

View Article

Image may be NSFW.
Clik here to view.

There is no action mapped etc.. In Struts 2

Yet another question on this I know, but let me just say I looked everything else or about. So, I'm currently building the structure of my Struts 2 Project. I use Struts 2.3.4, JBoss 7.1 and Eclipse...

View Article


Answer by LMeyer for Scala play framework Form Validation for numbers

Check your imports. You should have play.api.data.Forms._ maybe you have only play.api.data.Forms.nonEmptyText

View Article

Answer by LMeyer for Is there a better way to check if a number should be...

You can use a matcher. Checking a range for the numbers you gave don't make much sense but this does for example :numberExample should be (6 +- 1)Here the test will fail if numberExample is lower than...

View Article


Answer by LMeyer for Iterating over JSON object in jquery

Your JSON isn't valid. What about this :var json = '[ {"DisplayName":"Answer Number 1","Value":"Answer1","Option":"True"}, {"DisplayName":"Answer Number 1","Value":"Answer1","Option":"False"},...

View Article

Answer by LMeyer for Type bound issue using Quartz from Scala

Alright, just made it work by casting oldTrigger to SimpleTrigger... That turned TriggerBuilder<? extends Trigger> getTriggerBuilder() into TriggerBuilder<SimpleTrigger> getTriggerBuilder().

View Article


Answer by LMeyer for Play framework tutorial: Cannot resolve symbol 'index'?

I managed to make it work on IDEA Community 14 by solely cleaning IDEA cache (File -> Invalidate Caches / Restart)

View Article

Answer by LMeyer for Implicitly convert an Iterable to Option

Implicit conversion alone is not going to help you if you want to do this. What you need here is an implicit class :object Rich { implicit class RichIterable[T](it: Iterable[T]){ def toOption:...

View Article

Answer by LMeyer for Schedule restart of Akka actor

Delay on restart hasn't been implemented yet. Thread.sleep is out of the question performance wise.I see two choices :Have your main actor create the querying actor on a message. When it blows up...

View Article
Browsing index pages (49 articles)


Latest Images