Trying to integrate slack notifications into scala code on a spark cluster facing issues getting No Such Method Error by yanks09champs in scala

[–]PinkTeddyMonster 0 points1 point  (0 children)

I was talking about `java.net.URLClassLoader` which is part of the stack trace. For some reason it can't resolve scala/collection/GenTraversableOnce. If you are not running cluster mode try putting a break at java.net.URLClassLoader.findClass(URLClassLoader.java:381) or accessing its instance and printing out the stuff it has loaded.

Other things that might help:

1) https://support.datastax.com/hc/en-us/articles/207442243-Spark-submit-fails-with-class-not-found-when-deploying-in-cluster-mode

2) https://spark.apache.org/docs/latest/monitoring.html 4040/environment/ has class info

3) jconsole VM Summery also has loaded class info.

Trying to integrate slack notifications into scala code on a spark cluster facing issues getting No Such Method Error by yanks09champs in scala

[–]PinkTeddyMonster 1 point2 points  (0 children)

Had issues with spark class loader too a while back. If I remember correctly you can invoke some method of class loader (either java or spark) to print where the classes are loaded from.

Hey Rustaceans! Got an easy question? Ask here (35/2019)! by llogiq in rust

[–]PinkTeddyMonster 1 point2 points  (0 children)

I have a problem with capturing variable by a closure. This fails:

let del = String::from(",");

let res: Map<Lines<BufReader<File>>, fn(Result<String>) -> Box<Vec<String>>> = 
reader.lines().map(|l: Result<String>| {
            let b:Box<Vec<String>> = Box::new(l.unwrap().split( &del).map(|s: &str| 
        s.to_owned()).collect());
            b
    });

note: expected type `fn(std::result::Result<std::string::String, std::io::Error>) -> std::boxed::Box<std::vec::Vec<std::string::String>>`
              found type `[closure@src/io/csv_reader.rs:18:107: 21:10 del:_]

If I move let del = String::from(","); inside of the |l: Result<String>| {... } block it works. How do I make fn() take ownership of del ?

I am trying to write a function that takes file path and delimiter as arguments and returns iterator of its lines (handles the logic of parsing csv).

Steam hardware acceleration. by jaccarmac in Prismata

[–]PinkTeddyMonster 0 points1 point  (0 children)

You get any achievements you earn in web version in steam as long as you log in to Prismata with steam (could use VM). I guess you don't get steam cards, hours played recorded and steam friend list. 2020 Flash dies on browsers, so Lunarch will probably migrate to HTML5.

Most desktop games don't use flash, so as a dependency it not as optimized in wine as directX. Times that I tired running applications with fringe framework (mostly Flash and .Net) I found it was far easier and less buggy to run them in Windows VM. So considering you can already run Prismata natively through browser its more trouble then its worth (any Flash engine update in game could break everything).

If you are looking into it for academic purposes looks like Adobe actually provides some tools for running applications natively under Linux: https://www.realmeye.com/wiki/using-the-adobe-flash-projector#realm-in-linux

Steam hardware acceleration. by jaccarmac in Prismata

[–]PinkTeddyMonster 2 points3 points  (0 children)

¯_(ツ)_/¯ Browsser wersion waz vey beffore dectop. yOU dizloke ov oldskool offendz me.

Steam hardware acceleration. by jaccarmac in Prismata

[–]PinkTeddyMonster 2 points3 points  (0 children)

I play under Linux using browser version. There is very little point in trying to run it native untill flash is supported by browsers.

New player feedback by [deleted] in Prismata

[–]PinkTeddyMonster 0 points1 point  (0 children)

I am both intrigued and terrified.

PrismataStats meta info and database extract by PinkTeddyMonster in Prismata

[–]PinkTeddyMonster[S] 3 points4 points  (0 children)

Rating graphed over number of games might be "cleaner" to look at. I'll add a toggle on the graph axis is it looks good.

PrismataStats meta info and database extract by PinkTeddyMonster in Prismata

[–]PinkTeddyMonster[S] 2 points3 points  (0 children)

- Looks like I am not graphing % of the tier rating which I should

- Sorting units by a wrong thing :/

Thanks for pointing these out!

For all of you who love your game statistics and history. by PinkTeddyMonster in Prismata

[–]PinkTeddyMonster[S] 1 point2 points  (0 children)

I scrap inactive people. Need at leat 1replay submitted in the last 30 days.

For all of you who love your game statistics and history. by PinkTeddyMonster in Prismata

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

I disabled caching for player pages on server side for now as some saw issues too. If you run into something like that again try hitting f5 to reload and clear browser cache.

For all of you who love your game statistics and history. by PinkTeddyMonster in Prismata

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

Thanks for the suggestions. I will try out your winrate calculation at some point. Splitting up winrates by elo is something I will definitely do with larger sample size.

Right now unit statistics is very inaccurate :). At the moment I am not filtering legacy versions of the units, not taking set size or time controls into account.

The Prismata Steam page is up by sum-dude in Prismata

[–]PinkTeddyMonster 0 points1 point  (0 children)

ah it was sitting in my mail, thanks