[SANSA-Examples-Spark] Exception in thread "main" java.lang.NoSuchMethodError

Hello all,
I'm trying to run the Sparqlify  example following the running instructions
./spark-2.2.1-bin-hadoop2.7/bin/spark-submit  --class net.sansa_stack.examples.spark.query.Sparqlify --master spark://spark-master:7077 SANSA-Examples/sansa-examples-spark/target/sansa-examples-spark_2.11-2017-12.1-SNAPSHOT.jar  -i  src/main/resources/rdf.nt
Exception in thread "main" java.lang.NoSuchMethodError: net.sansa_stack.rdf.spark.io.NTripleReader$.load$default$3()Lscala/Enumeration$Value;         at net.sansa_stack.rdf.spark.io.package$RDFReader$$anonfun$ntriples$4.apply(package.scala:205)         at net.sansa_stack.rdf.spark.io.package$RDFReader$$anonfun$ntriples$4.apply(package.scala:204)         at net.sansa_stack.examples.spark.query.Sparqlify$.run(Sparqlify.scala:44)         at net.sansa_stack.examples.spark.query.Sparqlify$.main(Sparqlify.scala:22)         at net.sansa_stack.examples.spark.query.Sparqlify.main(Sparqlify.scala)         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)         at java.lang.reflect.Method.invoke(Method.java:498)         at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:755)         at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180)         at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205)         at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:119)         at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
Thanks in advance

Hi @Wisenheim ,
many thanks for trying out the Sparqlify example on SANSA.
As far I can judge you are using a master branch instead for building the jar. Could you please, try it using the develop branch by doing these steps:
git clone https://github.com/SANSA-Stack/SANSA-Examples.git
cd SANSA-Examples
mvn install
cd sansa-examples-spark
mvn package

and then if you want to expose the SAPRQL endpoint for running your SPARQL queries you can just submit it via :
spark-submit --class net.sansa_stack.examples.spark.query.Sparqlify --master spark://gezim-Latitude-E5550:7077 target/sansa-examples-spark_2.11-2017-12.1-SNAPSHOT.jar -i src/main/resources/rdf.nt

or just executing it on the cli you can do in this way:
spark-submit --class net.sansa_stack.examples.spark.query.Sparqlify --master spark://gezim-Latitude-E5550:7077 target/sansa-examples-spark_2.11-2017-12.1-SNAPSHOT.jar -i src/main/resources/rdf.nt -q "SELECT * WHERE {?s ?p ?o} LIMIT 10" -e false

which besically run this part of the codes.
After I ran it I get this result :
18/06/12 13:36:26 INFO CodeGenerator: Code generated in 19.244854 ms
[http://commons.dbpedia.org/property/artist,null,Jean Broc,http://commons.dbpedia.org/resource/File:The_Death_of_Hyacinthos.gif,en,null,null,null]
[http://commons.dbpedia.org/property/date,null,null,http://commons.dbpedia.org/resource/File:Buswachten.jpg,null,null,2004-07-22,null]
[http://commons.dbpedia.org/property/date,null,null,http://commons.dbpedia.org/resource/File:Groninger-museum.jpg,null,null,2004-08-26,null]
[http://commons.dbpedia.org/property/date,null,null,http://commons.dbpedia.org/resource/File:StationAssen3.jpg,null,null,2004-07-22,null]
[http://commons.dbpedia.org/property/date,null,null,http://commons.dbpedia.org/resource/File:De_Slegte,_Groningen.jpg,null,null,2004-08-26,null]
[http://commons.dbpedia.org/property/date,null,null,http://commons.dbpedia.org/resource/File:Paddestoel_003.jpg,null,null,2004-08-20,null]
[http://commons.dbpedia.org/property/date,null,null,http://commons.dbpedia.org/resource/File:BordUtrecht.jpg,null,null,2004-07-22,null]
[http://commons.dbpedia.org/property/date,null,null,http://commons.dbpedia.org/resource/File:Paddestoel_002.jpg,null,null,2004-08-20,null]
[http://commons.dbpedia.org/property/date,null,null,http://commons.dbpedia.org/resource/File:Groningen_003.jpg,null,null,2004-08-26,null]
[http://commons.dbpedia.org/property/date,null,null,http://commons.dbpedia.org/resource/File:StationAssen2.jpg,null,null,2004-07-22,null]

Please, let me know if you need more help on how to run this example, will be more than happy to help you.
Best regards,

Thank you very much @GezimSejdiu that works, I was using the previous version of spark.
I have another question, is there an example with an rdf/xml data ?
the data which I'm working on, actually it's an rdf/xml data with the Cidoc-crm Ontology
thanks in advance
best regards

Hi @Wisenheim ,
great, this is a great news.
Regarding your question about the RDF/XML reader example, yes sure we provide that RDF serialization format as well on SANSA. Please, use the snippets below to read such ontology:
import net.sansa_stack.rdf.spark.io._
import org.apache.jena.riot.Lang

val input = "<yourpath>/Cidoc-crm.owl"

val lang = Lang.RDFXML
val triples = spark.rdf(lang)(input)
triples.take(5).foreach(println(_))

Let me know if you need more help on this or is there any other issue that we have to look on.
Best regards,

Thank you @GezimSejdiu for you kindness, I ran the code on the spark-shell but it did not work for me, is there some configuration I must do before ?   my spark Session does not have an rdf member.
error: value rdf is not a member of org.apache.spark.sql.SparkSession
       val triples = spark.rdf(lang)(input)

Do you have any full code example ?
Thanks again
Best regards

Welcome :)
That is strange! Did you also import the io._ package on the shell? If not, please do import these packages as well :
import net.sansa_stack.rdf.spark.io._
import org.apache.jena.riot.Lang

and let me know if that still persist. I could just easy reproduce the issue.
Best,

Hi @Wisenheim once again!
Wanted to test it by my self just to be sure that I was not missing anything from your comment.
And yes, it works :) , what you were missing on your shell was that you haven't include the external jars to Spark, which in this case is the bundled jar of SANSA.
Please, have a look below and see how it works.
Start the shell with jars included :
spark-shell --master spark://gezim-Latitude-E5550:7077 --jars $SPARK_HOME/SANSA-Examples/sansa-examples-spark/target/sansa-examples-spark_2.11-2017-12.1-SNAPSHOT.jar

Then when you are on scala shell just use the same snippets as above and it should work. See the message as a reference:
Welcome to
      ____              __
     / __/__  ___ _____/ /__
    _\ \/ _ \/ _ `/ __/  '_/
   /___/ .__/\_,_/_/ /_/\_\   version 2.2.0
      /_/

Using Scala version 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_171)
Type in expressions to have them evaluated.
Type :help for more information.

scala> import net.sansa_stack.rdf.spark.io._
import net.sansa_stack.rdf.spark.io._

scala> import org.apache.jena.riot.Lang
import org.apache.jena.riot.Lang

scala> val input = "ecrm_170309.owl"
input: String = ecrm_170309.owl

scala> val lang = Lang.RDFXML
lang: org.apache.jena.riot.Lang = Lang:RDF/XML

scala> val triples = spark.rdf(lang)(input)
triples: org.apache.spark.rdd.RDD[org.apache.jena.graph.Triple] = MapPartitionsRDD[1] at map at package.scala:233

scala> triples.take(5).foreach(println(_))
http://erlangen-crm.org/170309/ @rdf:type owl:Ontology
http://erlangen-crm.org/170309/ @owl:versionInfo "ECRM 170309 / CIDOC-CRM 6.2.2"
http://erlangen-crm.org/170309/ @rdfs:comment "Changelog: https://github.com/erlangen-crm/ecrm/commits/master"@en
http://erlangen-crm.org/170309/ @rdfs:comment "Erlangen CRM / OWL - An OWL DL 1.0 implementation of the CIDOC Conceptual Reference Model, based on: Nick Crofts, Martin Doerr, Tony Gill, Stephen Stead, Matthew Stiff (eds.): Definition of the CIDOC Conceptual Reference Model (http://cidoc-crm.org/).
This implementation has been originally created by Bernhard Schiemann, Martin Oischinger and Günther Görz at the Friedrich-Alexander-University of Erlangen-Nuremberg, Department of Computer Science, Chair of Computer Science 8 (Artificial Intelligence) in cooperation with the Department of Museum Informatics of the Germanisches Nationalmuseum Nuremberg and the Department of Biodiversity Informatics of the Zoologisches Forschungsmuseum Alexander Koenig Bonn.
The Erlangen CRM / OWL implementation of the CIDOC Conceptual Reference Model is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License."@en
http://erlangen-crm.org/170309/ @rdfs:label "Erlangen CRM / OWL"@en

I hope this will solve your issue! Feel free to ask for more help on setting up SANSA on your environment.
Best regards,

Yes, I imported both of the packages, still cannot find the rdf member is the spark session, here all the steps I do:
I run the 3rd version of both spark-shell and SANSA RDF Layer
./spark-2.3.1-bin-hadoop2.7/bin/spark-shell --jars spark-2.3.1-bin-hadoop2.7/jars/sansa-rdf-spark-bundle_2.11-0.3.0-jar-with-dependencies.jar
then I run the below code lines:
import net.sansa_stack.rdf.spark.io._
import org.apache.jena.riot.Lang

val input = "sitar_rdf.rdf"
val lang = Lang.RDFXML

val triples = spark.rdf(lang)(input)

and in the last code line, I get the error, by the way I'm usign the default spark session , should I edit the configuration ? if yes, how ?
thank you for you patience
best regards

Great!
Please, instead of using directly RDF layer as an external jar use sansa-examples which is an uber-jar which contains all the dependencies for all the SANSA layer.
So instead of using
./spark-2.3.1-bin-hadoop2.7/bin/spark-shell --jars spark-2.3.1-bin-hadoop2.7/jars/sansa-rdf-spark-bundle_2.11-0.3.0-jar-with-dependencies.jar

you should use
./spark-2.3.1-bin-hadoop2.7/bin/spark-shell --jars spark-2.3.1-bin-hadoop2.7/jars/sansa-examples-spark_2.11-2017-12.1-SNAPSHOT.jar

And yes, these implicit are introduced on the upcoming version of SANSA 0.4 which we will announce on the release notes as well. So SANSA v0.3.0 does not have such implicit and you will not be able to call it, even you are using the bundle jar which has all the dependencies.
Please, could you do it by using sansa-examples-spark bundle jar and let me know.

b.t.w you can use the pre-build jar already: https://github.com/SANSA-Stack/SANSA-Examples/releases/tag/develop !

Thank you @GezimSejdiu it works perfectly with sansa-examples jar,
last question, as I was trying to do since we started this issue to run some SPARQL Queries on an rdf data.
how I can run some SPARQL Queries on the loaded RDF/XML data ?
Thanks again
best regards

Good to hear that!
Yes, after you are able to read the data from RDF/XML into RDD[Triple] our query engine can accept SPARQL queries on the console as well.  Please, use the code below to do so:
import net.sansa_stack.query.spark.query._

val sparqlQuery = """SELECT ?s ?p ?o
                    WHERE {?s ?p ?o }
                    LIMIT 10"""
val result = triples.sparql(sparqlQuery)  //this return dataframe of the result sets

PS: Please, take into account that only these SPARQL features are supported on this query engine (since it uses Sparqlify as a SPARQL--to--SQL rewriter).
Best,

Thank you @GezimSejdiu , I tried that, but I've got back an error in the last code line
Welcome to
      ____              __
     / __/__  ___ _____/ /__
    _\ \/ _ \/ _ `/ __/  '_/
   /___/ .__/\_,_/_/ /_/\_\   version 2.3.1
      /_/

Using Scala version 2.11.8 (OpenJDK 64-Bit Server VM, Java 1.8.0_171)
Type in expressions to have them evaluated.
Type :help for more information.

scala> import net.sansa_stack.rdf.spark.io._
import net.sansa_stack.rdf.spark.io._

scala> import net.sansa_stack.query.spark.query._
import net.sansa_stack.query.spark.query._

scala> import org.apache.jena.riot.Lang
import org.apache.jena.riot.Lang

scala> val input = "sitar_rdf.rdf"
input: String = sitar_rdf.rdf

scala> val lang = Lang.RDFXML
lang: org.apache.jena.riot.Lang = Lang:RDF/XML

scala> val triples = spark.rdf(lang)(input)
triples: org.apache.spark.rdd.RDD[org.apache.jena.graph.Triple] = MapPartitionsRDD[3] at map at package.scala:233

scala> val sparqlQuery = """ SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 10"""
sparqlQuery: String = " SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 10"

scala> val result = triples.sparql(sparqlQuery)
java.lang.NoSuchMethodError: net.sansa_stack.rdf.spark.partition.core.RdfPartitionUtilsSpark$.partitionGraph$default$2()Lnet/sansa_stack/rdf/common/partition/core/RdfPartitionerDefault$;
  at net.sansa_stack.rdf.spark.partition.package$RDFPartition.partitionGraph(package.scala:37)
  at net.sansa_stack.query.spark.query.package$SparqlifyAsDefault.sparql(package.scala:34)
  ... 57 elided

thanks again
best regards

Hi @Wisenheim ,
strange!
TODO Get rid of reflection for replacement - its slow!
TODO Get rid of reflection for replacement - its slow!
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO bigint
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO bigint
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO bigint
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO bigint
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO bigint
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO bigint
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO bigint
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO bigint
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO bigint
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO bigint
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO bigint
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO bigint
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO bigint
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO bigint
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO bigint
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO bigint
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO bigint
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO string
CAST TO bigint
CAST TO string
result: org.apache.spark.sql.DataFrame = [C_3: string, C_4: string ... 7 more fields]

scala> result.rdd.collect.foreach(println(_))
[http://www.w3.org/2002/07/owl#cardinality,null,a0ff58f2-6b05-464e-b8e2-1720611145c5,null,1,null,null,null,null]
[http://www.w3.org/2002/07/owl#cardinality,null,5e86a782-e757-4cd3-8446-c709d8c03767,null,1,null,null,null,null]
[http://www.w3.org/2002/07/owl#cardinality,null,5631c7f0-65c7-4465-820b-3083fe71c823,null,1,null,null,null,null]
[http://www.w3.org/2002/07/owl#cardinality,null,f934aa68-33f1-4256-9738-2e5939701759,null,1,null,null,null,null]
[http://www.w3.org/2002/07/owl#cardinality,null,ad136e4e-d138-4f04-89d2-d97667e713ac,null,1,null,null,null,null]
[http://www.w3.org/2002/07/owl#cardinality,null,57ed40c2-2595-42ed-bbb8-df733a51c363,null,1,null,null,null,null]
[http://www.w3.org/2002/07/owl#cardinality,null,6164e8cc-1086-4787-b086-81dd67ff64bd,null,1,null,null,null,null]
[http://www.w3.org/2002/07/owl#onProperty,null,84b560b2-d0f0-41cc-8adc-99a1f062328c,null,null,null,http://erlangen-crm.org/170309/P106_is_composed_of,null,null]
[http://www.w3.org/2002/07/owl#onProperty,null,a92a9bc6-ea20-4a60-8e8b-3ff9d1210319,null,null,null,http://erlangen-crm.org/170309/P135_created_type,null,null]
[http://www.w3.org/2002/07/owl#onProperty,null,4576424c-d74b-4cbc-b531-43ada72f367d,null,null,null,http://erlangen-crm.org/170309/P92_brought_into_existence,null,null]

Please, once more, are you using the same jar as we discussed on our previous threads ?.
Let me know if again the partition.core persist. If so then you can just import the package by doing :
import net.sansa_stack.rdf.spark.partition._

Best regards,

Hello @GezimSejdiu
yes, I'm using the same jar we discussed before, I did also the last import, but it stills the same error

 ./spark-2.3.1-bin-hadoop2.7/bin/spark-shell --jars SANSA-Examples/sansa-examples-spark/target/sansa-examples-spark_2.11-2017-12.1-SNAPSHOT.jar

Spark context Web UI available at http://xitan:4040
Spark context available as 'sc' (master = local[*], app id = local-1529356065343).
Spark session available as 'spark'.
Welcome to
      ____              __
     / __/__  ___ _____/ /__
    _\ \/ _ \/ _ `/ __/  '_/
   /___/ .__/\_,_/_/ /_/\_\   version 2.3.1
      /_/

Using Scala version 2.11.8 (OpenJDK 64-Bit Server VM, Java 1.8.0_171)
Type in expressions to have them evaluated.
Type :help for more information.

scala> import net.sansa_stack.rdf.spark.io._
import net.sansa_stack.rdf.spark.io._

scala> import net.sansa_stack.query.spark.query._
import net.sansa_stack.query.spark.query._

scala> import net.sansa_stack.rdf.partition._
import net.sansa_stack.rdf.partition._

scala> import org.apache.jena.riot.Lang
import org.apache.jena.riot.Lang

scala> val input = "sitar_rdf.rdf"
input: String = sitar_rdf.rdf

scala> val lang = Lang.RDFXML
lang: org.apache.jena.riot.Lang = Lang:RDF/XML

scala> val triples = spark.rdf(lang)(input)
triples: org.apache.spark.rdd.RDD[org.apache.jena.graph.Triple] = MapPartitionsRDD[1] at map at package.scala:233

scala> val sparqlQuery = """ SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 10"""
sparqlQuery: String = " SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 10"

scala> val result = triples.sparql(sparqlQuery)
java.lang.NoSuchMethodError: net.sansa_stack.rdf.spark.partition.core.RdfPartitionUtilsSpark$.partitionGraph$default$2()Lnet/sansa_stack/rdf/common/partition/core/RdfPartitionerDefault$;
  at net.sansa_stack.rdf.spark.partition.package$RDFPartition.partitionGraph(package.scala:37)
  at net.sansa_stack.query.spark.query.package$SparqlifyAsDefault.sparql(package.scala:34)
  ... 55 elided

it might be the structure of my data, here a sample of it

<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:gml="http://www.opengis.net/gml"
    xmlns:archaeo="http://www.ics.forth.gr/isl/CRMext/CRMarchaeo.rdfs/"
    xmlns:crm="http://www.cidoc-crm.org/cidoc-crm/"
    xmlns:sci="http://www.ics.forth.gr/isl/CRMext/CRMsci.rdfs/"
    xmlns:skos="http://www.w3.org/2004/02/skos/core#"
    xmlns:crmdig="http://www.ics.forth.gr/isl/CRMext/CRMdig.rdfs/"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
  <crm:E4_Period rdf:about="http://archaeositarproject.it/st_named_year_range_#59">
    <crm:P4_has_time-span>
      <crm:E52_Time-Span>
        <crm:P82b_end_of_the_end rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear"
        >-961</crm:P82b_end_of_the_end>
        <crm:P81b_begin_of_the_end rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear"
        >-961</crm:P81b_begin_of_the_end>
        <crm:P81a_end_of_the_begin rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear"
        >-1200</crm:P81a_end_of_the_begin>
        <crm:P82a_begin_of_the_begin rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear"
        >-1200</crm:P82a_begin_of_the_begin>
      </crm:E52_Time-Span>
    </crm:P4_has_time-span>
    <crm:P1_is_identified_by>
      <crm:E49_Time_Appellation>
        <rdfs:label xml:lang="ita">Età del Bronzo Finale</rdfs:label>
      </crm:E49_Time_Appellation>
    </crm:P1_is_identified_by>
  </crm:E4_Period>
  <crm:E4_Period rdf:about="http://archaeositarproject.it/st_named_year_range_#58">
    <crm:P4_has_time-span>
      <crm:E52_Time-Span>
        <crm:P82b_end_of_the_end rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear"
        >-1201</crm:P82b_end_of_the_end>
        <crm:P81b_begin_of_the_end rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear"
        >-1201</crm:P81b_begin_of_the_end>
        <crm:P81a_end_of_the_begin rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear"
        >-1250</crm:P81a_end_of_the_begin>
        <crm:P82a_begin_of_the_begin rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear"
        >-1250</crm:P82a_begin_of_the_begin>
      </crm:E52_Time-Span>
    </crm:P4_has_time-span>
    <crm:P1_is_identified_by>
      <crm:E49_Time_Appellation>
        <rdfs:label xml:lang="ita">Età del Bronzo Recente, fase II</rdfs:label>
      </crm:E49_Time_Appellation>
    </crm:P1_is_identified_by>
  </crm:E4_Period>
  <crm:E4_Period rdf:about="http://archaeositarproject.it/st_named_year_range_#57">
    <crm:P4_has_time-span>
      <crm:E52_Time-Span>
        <crm:P82b_end_of_the_end rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear"
        >-1251</crm:P82b_end_of_the_end>
        <crm:P81b_begin_of_the_end rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear"
        >-1251</crm:P81b_begin_of_the_end>
        <crm:P81a_end_of_the_begin rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear"
        >-1350</crm:P81a_end_of_the_begin>
        <crm:P82a_begin_of_the_begin rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear"
        >-1350</crm:P82a_begin_of_the_begin>
      </crm:E52_Time-Span>
    </crm:P4_has_time-span>
    <crm:P1_is_identified_by>
      <crm:E49_Time_Appellation>
        <rdfs:label xml:lang="ita">Età del Bronzo Recente, fase I</rdfs:label>
      </crm:E49_Time_Appellation>
    </crm:P1_is_identified_by>
  </crm:E4_Period>
...
</rdf:RDF>

could it be some PREFIX issue ?
Thanks alot
best,

I think it is not related to the prefixes or the data itself, is more related to the package inside the jar.
Could you do one more thing by doing force install all dependencies.
cd SANSA-Example
mvn -U install
cd sansa-examples-spark
mvn package

and attach the jar to the Spark.
Let me know if this resolved the issue, otherwise, we have to test it with clean environment (without ./m2 on my computer).
Best,

Thank you @GezimSejdiu, but it's still not working.
best,

Hi @Wisenheim ,
not sure what is missing on your configurations but I just used the same dataset you shared above and re-run the same steps and it works.
gezim@gezim-Latitude-E5550:~/spark/spark-2.2.0-bin-hadoop2.7/SANSA-Examples$ spark-shell --master spark://gezim-Latitude-E5550:7077 --jars $SPARK_HOME/SANSA-Examples/sansa-examples-spark/target/sansa-examples-spark_2.11-2017-12.1-SNAPSHOT.jar
Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties
Setting default log level to "WARN".
To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel).
18/06/22 12:57:04 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
18/06/22 12:57:04 WARN Utils: Your hostname, gezim-Latitude-E5550 resolves to a loopback address: <IP_ADDRESS>; using <IP_ADDRESS> instead (on interface wlp2s0)
18/06/22 12:57:04 WARN Utils: Set SPARK_LOCAL_IP if you need to bind to another address
18/06/22 12:57:12 WARN ObjectStore: Failed to get database global_temp, returning NoSuchObjectException
Spark context Web UI available at http://<IP_ADDRESS>:4040
Spark context available as 'sc' (master = spark://gezim-Latitude-E5550:7077, app id = app-20180622125705-0001).
Spark session available as 'spark'.
Welcome to
      ____              __
     / __/__  ___ _____/ /__
    _\ \/ _ \/ _ `/ __/  '_/
   /___/ .__/\_,_/_/ /_/\_\   version 2.2.0
      /_/

Using Scala version 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_171)
Type in expressions to have them evaluated.

TODO Get rid of reflection for replacement - its slow!
TODO Get rid of reflection for replacement - its slow!
CAST TO string
result: org.apache.spark.sql.DataFrame = [C_3: string, C_4: string ... 6 more fields]

scala> result.take(5).foreach(println)
[http://www.cidoc-crm.org/cidoc-crm/P4_has_time-span,null,null,http://archaeositarproject.it/st_named_year_range_#59,null,5e8199dd-fef4-4855-9c9b-74d5418ad9d4,null,null]
[http://www.cidoc-crm.org/cidoc-crm/P4_has_time-span,null,null,http://archaeositarproject.it/st_named_year_range_#58,null,6a7b44a6-0cc6-4c8a-a2e0-fc8704b1fdc8,null,null]
[http://www.cidoc-crm.org/cidoc-crm/P4_has_time-span,null,null,http://archaeositarproject.it/st_named_year_range_#57,null,11c4ee84-2d98-44f5-9d45-596504240a0d,null,null]
[http://www.cidoc-crm.org/cidoc-crm/P1_is_identified_by,null,null,http://archaeositarproject.it/st_named_year_range_#59,null,6503ea8b-5930-40d3-bbf1-5099278180d2,null,null]
[http://www.cidoc-crm.org/cidoc-crm/P1_is_identified_by,null,null,http://archaeositarproject.it/st_named_year_range_#58,null,93594ad8-795f-4d85-a8d5-20f85a25eaf1,null,null]

I'm going to close this issue for now, but feel free to comment and maybe let us know the full steps how you did it (starting from building the jar and submiting to the Spark).
Best regards,

Thank you anyway @GezimSejdiu , still not working, I'm trying to run the instruction from the beginning but now it even gives a building error, here is the log
[INFO] ------------------------------------------------------------------------
[INFO] Building SANSA Examples - Apache Spark 2017-12.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for commons-codec:commons-codec:jar:1.9-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for commons-codec:commons-codec:jar:1.10-SNAPSHOT is missing, no dependency information available
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ sansa-examples-spark_2.11 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 12 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ sansa-examples-spark_2.11 ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- scala-maven-plugin:3.2.1:compile (default) @ sansa-examples-spark_2.11 ---
[WARNING]  Expected all dependencies to require Scala version: 2.11.11
[WARNING]  net.sansa-stack:sansa-examples-spark_2.11:2017-12.1-SNAPSHOT requires scala version: 2.11.11
[WARNING]  com.twitter:chill_2.11:0.8.4 requires scala version: 2.11.11
[WARNING]  org.apache.spark:spark-core_2.11:2.3.1 requires scala version: 2.11.11
[WARNING]  org.json4s:json4s-jackson_2.11:3.2.11 requires scala version: 2.11.11
[WARNING]  org.json4s:json4s-core_2.11:3.2.11 requires scala version: 2.11.11
[WARNING]  org.json4s:json4s-ast_2.11:3.2.11 requires scala version: 2.11.11
[WARNING]  org.json4s:json4s-core_2.11:3.2.11 requires scala version: 2.11.0
[WARNING] Multiple versions of scala libraries detected!
[INFO] Using incremental compilation
[INFO] Compiling 18 Scala sources to /home/xitan/Documenti/sparkin/SANSA-Examples/sansa-examples-spark/target/classes...
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ sansa-examples-spark_2.11 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/xitan/Documenti/sparkin/SANSA-Examples/sansa-examples-spark/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ sansa-examples-spark_2.11 ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- scala-maven-plugin:3.2.1:testCompile (default) @ sansa-examples-spark_2.11 ---
[WARNING]  Expected all dependencies to require Scala version: 2.11.11
[WARNING]  net.sansa-stack:sansa-examples-spark_2.11:2017-12.1-SNAPSHOT requires scala version: 2.11.11
[WARNING]  com.twitter:chill_2.11:0.8.4 requires scala version: 2.11.11
[WARNING]  org.apache.spark:spark-core_2.11:2.3.1 requires scala version: 2.11.11
[WARNING]  org.json4s:json4s-jackson_2.11:3.2.11 requires scala version: 2.11.11
[WARNING]  org.json4s:json4s-core_2.11:3.2.11 requires scala version: 2.11.11
[WARNING]  org.json4s:json4s-ast_2.11:3.2.11 requires scala version: 2.11.11
[WARNING]  org.json4s:json4s-core_2.11:3.2.11 requires scala version: 2.11.0
[WARNING] Multiple versions of scala libraries detected!
[INFO] Using incremental compilation
[INFO] Compiling 1 Scala source to /home/xitan/Documenti/sparkin/SANSA-Examples/sansa-examples-spark/target/test-classes...
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ sansa-examples-spark_2.11 ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- scalatest-maven-plugin:1.0:test (test) @ sansa-examples-spark_2.11 ---
Discovery starting.
Discovery completed in 3 seconds, 90 milliseconds.
Run starting. Expected test count is: 1
SparqlServerTests:
log4j:WARN No appenders could be found for logger (Jena).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
giu 23, 2018 9:45:01 PM org.glassfish.jersey.server.spring.SpringComponentProvider bind
GRAVE: None or multiple beans found in Spring context for type class org.aksw.jena_sparql_api.web.servlets.ServletSparqlServiceImpl, skipping the type.
- starting the default SPARQL server should succeed *** FAILED ***
  org.apache.jena.sparql.engine.http.QueryExceptionHTTP: HTTP 503 error making the query: Service Unavailable
  at org.apache.jena.sparql.engine.http.HttpQuery.rewrap(HttpQuery.java:371)
  at org.apache.jena.sparql.engine.http.HttpQuery.execGet(HttpQuery.java:337)
  at org.apache.jena.sparql.engine.http.HttpQuery.exec(HttpQuery.java:288)
  at org.apache.jena.sparql.engine.http.QueryEngineHTTP.execConstructWorker(QueryEngineHTTP.java:465)
  at org.apache.jena.sparql.engine.http.QueryEngineHTTP.execModel(QueryEngineHTTP.java:428)
  at org.apache.jena.sparql.engine.http.QueryEngineHTTP.execConstruct(QueryEngineHTTP.java:389)
  at org.apache.jena.sparql.engine.http.QueryEngineHTTP.execConstruct(QueryEngineHTTP.java:384)
  at org.apache.jena.rdfconnection.RDFConnection.lambda$queryConstruct$2(RDFConnection.java:144)
  at org.apache.jena.system.Txn.calculateRead(Txn.java:56)
  at org.apache.jena.rdfconnection.RDFConnection.queryConstruct(RDFConnection.java:142)
  ...
Run completed in 32 seconds, 649 milliseconds.
Total number of tests run: 1
Suites: completed 2, aborted 0
Tests: succeeded 0, failed 1, canceled 0, ignored 0, pending 0
*** 1 TEST FAILED ***
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] SANSA-Examples - Parent ............................ SUCCESS [  1.501 s]
[INFO] SANSA Examples - Apache Flink ...................... SUCCESS [02:25 min]
[INFO] SANSA Examples - Apache Spark ...................... FAILURE [02:59 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:27 min
[INFO] Finished at: 2018-06-23T21:45:10+02:00
[INFO] Final Memory: 54M/423M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.scalatest:scalatest-maven-plugin:1.0:test (test) on project sansa-examples-spark_2.11: There are test failures -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :sansa-examples-spark_2.11

before at least it did the project building
best regards,

ummm, many thanks for letting us know that there is a build error! It is because of the test class added by Claus (@Aklakan ) which was related to the issue #24. I guess he will remove this class, right @Aklakan . Anyway, we do not need any test classes on the examples.
Please, use this as a workaround until we remove that class, or we fix the issue #24 .
mvn install -DskipTests
cd sansa-examples-spark
mvn package -DskipTests

It will skip the tests and will build.
Best regards,


VSCode tries to open data-url href, freezes window because it's so long.

First I thought I need to ctrl+click that line to completely view it because it was trimmed after 28391 characters displaying the ... on the end. (Featuring Issue: #155335)
It again freezes if you manage to close VSCode without terminating the task and reopen it afterwards, until it displays the window not responding popup. (This popup unfortunately doesn't show in the session where you clicked the data-url, only after a relaunch it appears. Didn't manage to record that bc. I had to terminate the process all the time while recording.)
It shouldn't even try to open it at all because it's not a normal URL.

Steps?

Sooo .... this is weird. First I thought this is clearly visible in the GIF, but then I discovered when trying to create a data-url for an empty icon that it doesn't freeze, but still tries to open it and displays the file-not-found error. It behaves differently with different data.
So, the following icon data-url for one of our internal projects causes the freeze with 100% success rate:
<link rel="icon" type="image/x-icon" href="data:@file/x-icon;base64,[encoded data, 28320 characters]"/>

Just paste it into a new file, make sure it is properly detected as html (because sometimes it thinks it's an INI file???), and Ctrl-Click the link to open. If it isn't detected as a link it probably has detected as INI file, and if not try a new file or relaunch Code.
For reference, the empty icon that doesn't cause a freeze:
<link rel="icon" type="image/x-icon" href="data:@file/x-icon;base64,[encoded data, 28320 characters]"/>

Either way, this should never be detected as a clickable link to a file, freezing or not.

Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/

Done. Same.

I also tested in my W11 VM, same thing, but at least the window-not-responding warning showed up which doesn't happen on my W10.

I was able to reproduce, but only after enabling breadcrumbs. Without breadcrumbs, I am not seeing an issue.

This looks suspicious in the console:
event.js:430 Error
    at Function.create (event.js:443:35)
    at DecorationsService._event [as onDidChangeDecorations] (event.js:538:44)
    at ResourceLabel.registerListeners (labels.js:74:52)
    at new ResourceLabels (labels.js:46:18)
    at new ResourceLabel (labels.js:157:13)
    at InstantiationService._createInstance (instantiationService.js:89:20)
    at InstantiationService.createInstance (instantiationService.js:60:31)
    at FileItem.render (breadcrumbsControl.js:87:54)
    at BreadcrumbsWidget._renderItem (breadcrumbsWidget.js:266:22)
    at BreadcrumbsWidget._render (breadcrumbsWidget.js:252:26)
    at BreadcrumbsWidget.setItems (breadcrumbsWidget.js:219:22)
    at updateBreadcrumbs (breadcrumbsControl.js:203:34)
    at BreadcrumbsControl.update (breadcrumbsControl.js:209:13)
    at TabsTitleControl.handleOpenedEditors (tabsTitleControl.js:274:38)
    at TabsTitleControl.openEditor (tabsTitleControl.js:258:18)
    at EditorGroupView.doShowEditor (editorGroupView.js:844:39)
    at EditorGroupView.doOpenEditor (editorGroupView.js:801:43)
    at EditorGroupView.openEditor (editorGroupView.js:718:25)
    at EditorService.openEditor (editorService.js:407:26)
    at async CodeEditorService.doOpenCodeEditor (codeEditorService.js:81:29)
    at async CodeEditorService.openCodeEditor (abstractCodeEditorService.js:206:35)
    at async EditorOpener.open (openerService.js:72:13)
    at async OpenerService.open (openerService.js:154:33)
check @ event.js:430
_event @ event.js:539
registerListeners @ labels.js:74
ResourceLabels @ labels.js:46
ResourceLabel @ labels.js:157
_createInstance @ instantiationService.js:89
createInstance @ instantiationService.js:60
render @ breadcrumbsControl.js:87
_renderItem @ breadcrumbsWidget.js:266
_render @ breadcrumbsWidget.js:252
setItems @ breadcrumbsWidget.js:219
updateBreadcrumbs @ breadcrumbsControl.js:203
update @ breadcrumbsControl.js:209
handleOpenedEditors @ tabsTitleControl.js:274
openEditor @ tabsTitleControl.js:258
doShowEditor @ editorGroupView.js:844
doOpenEditor @ editorGroupView.js:801
openEditor @ editorGroupView.js:718
openEditor @ editorService.js:407
await in openEditor (async)
doOpenCodeEditor @ codeEditorService.js:81
openCodeEditor @ abstractCodeEditorService.js:206
event.js:429 [599] potential listener LEAK detected, having 967 listeners already. MOST frequent listener (793):
check @ event.js:429
_event @ event.js:539
registerListeners @ labels.js:98
ResourceLabels @ labels.js:46
ResourceLabel @ labels.js:157
_createInstance @ instantiationService.js:89
createInstance @ instantiationService.js:60
render @ breadcrumbsControl.js:87
_renderItem @ breadcrumbsWidget.js:266
_render @ breadcrumbsWidget.js:252
setItems @ breadcrumbsWidget.js:219
updateBreadcrumbs @ breadcrumbsControl.js:203
update @ breadcrumbsControl.js:209
handleOpenedEditors @ tabsTitleControl.js:274
openEditor @ tabsTitleControl.js:258
doShowEditor @ editorGroupView.js:844
doOpenEditor @ editorGroupView.js:801
openEditor @ editorGroupView.js:718
openEditor @ editorService.js:407
await in openEditor (async)
doOpenCodeEditor @ codeEditorService.js:81
openCodeEditor @ abstractCodeEditorService.js:206
event.js:430 Error
    at Function.create (event.js:443:35)
    at UntitledTextEditorService._event [as onDidChangeLabel] (event.js:538:44)
    at ResourceLabel.registerListeners (labels.js:98:58)
    at new ResourceLabels (labels.js:46:18)
    at new ResourceLabel (labels.js:157:13)
    at InstantiationService._createInstance (instantiationService.js:89:20)
    at InstantiationService.createInstance (instantiationService.js:60:31)
    at FileItem.render (breadcrumbsControl.js:87:54)
    at BreadcrumbsWidget._renderItem (breadcrumbsWidget.js:266:22)
    at BreadcrumbsWidget._render (breadcrumbsWidget.js:252:26)
    at BreadcrumbsWidget.setItems (breadcrumbsWidget.js:219:22)
    at updateBreadcrumbs (breadcrumbsControl.js:203:34)
    at BreadcrumbsControl.update (breadcrumbsControl.js:209:13)
    at TabsTitleControl.handleOpenedEditors (tabsTitleControl.js:274:38)
    at TabsTitleControl.openEditor (tabsTitleControl.js:258:18)
    at EditorGroupView.doShowEditor (editorGroupView.js:844:39)
    at EditorGroupView.doOpenEditor (editorGroupView.js:801:43)
    at EditorGroupView.openEditor (editorGroupView.js:718:25)
    at EditorService.openEditor (editorService.js:407:26)
    at async CodeEditorService.doOpenCodeEditor (codeEditorService.js:81:29)
    at async CodeEditorService.openCodeEditor (abstractCodeEditorService.js:206:35)
    at async EditorOpener.open (openerService.js:72:13)
    at async OpenerService.open (openerService.js:154:33)

Oh I see! Breadcrumbs splits the 25k of URI into segments at each /, so we actually do create thousands of resource labels:

Some ideas:

disable breadcrumbs when showing an editor placeholder (here this is a "file not found" error), though I think breadcrumbs even make sense in editor placeholders because you can still navigate files and folders
disallow detecting these links when they exceed a certain size
add a limit to how many breadcrumbs are created

That's very interesting. I believe the general description of this issue is that opening a file with thousands of parent folders freezes.
Currently breadcrumbs doesn't use the single-listener ResourceLabels but the eager ResourceLabel. Let me experiment with that and see how it impacts perf. Ultimatively a limit can be applied or something special for paths of data-uris can be done

I noticed that the full 25kb of data is also put as title into the tab element, something I can see to avoid. We already have a check for data URIs in labels to prevent accidental inlining:
https://github.com/microsoft/vscode/blob/a3cc2f87ac360eaf9297f339624aef40a9a8074d/src/vs/workbench/browser/labels.ts#L553

I have some changes in https://github.com/microsoft/vscode/pull/155701 that make this better but not great. I have done some actual, noticeable perf improvements and I am also ignoring data-uris. Tho, the issue is that the uri in question is given to me as file-uri (meaning the check doesn't work). Need to investigate where/why that happens

@aeschli looks like the "bad" link is detected by the html language service, e.g instead of a data://-link a file-uri is created

I think with Martins latest changes I am not seeing a link anymore for the data URI, is that the expected solution?

Yes, I removed the link detection for data links. I don't think navigating would be useful. Do you disagree?

I think it makes sense to remove them because we handle data-links poorly. It would be cool to detect the data-link mime type and open the corresponding editors for it (image, text, etc) but as long as we don't do that we should bother with those links

To also give my 2 cents: That's pretty much what I expected to happen, or rather not happen, when trying to open that link. Didn't expect this to be fixed so fast.

Verified, though it seems that the line is so long that syntax highlighting gets turned off as well?

Yes, there's also a line length limit for syntax highlighting (for performance reasons)


Upgrade @commercelayer/sdk and @types/react to latest versions

Description
This Task will upgrade almost all packages to the latest version. In particular is going to upgrade @commercelayer/sdk and @types/react

:tada: This issue has been resolved in version 4.0.11 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Cardano: write some generators generically

The Cardano generators are currently mostly written by enumerating all eras.
This approach doesn't scale as the number of eras will keep growing.
To improve this, add Arbitrary instances for a few era-generic types, e.g.,
NS, Telescope, ..., and use those.
There are still a bunch of generators that will need a similar treatment.
Related issue: #2368.

bors merge


As a researcher I would like to use CITATION.cff file to cite Bionomia

It would be nice to have a CITATION.cff file for Bionomia
https://github.com/citation-file-format/citation-file-format/blob/main/README.md
Such file is recognized by Zenodo, and GitHub creates APA and Bibtex citations from its content.
for example:

Thanks for this. Created a bare-bones file.


fix: empty result on boolean random generator

Description
Fixes issue #10919 [Random Data Generator] Empty result on Boolean random generator.
This PR was written by @magicailabs. I just got to push the code :)
Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Do you have more feedback @loris or is this good to go 🙂

@pernielsentikaer good to go👍🏼 thank you @stefanmatar


Heartbeat seems to be sent only once (instead of every x seconds)

After upgrading from 0.1.8 to the latest version (0.2.5) we are noticing that the Heardbeats are not sent regularly anymore. Instead they seem to be sent only once after the connexion is established.
After looking quickly at the code it seems that the hearbeat scheduling is done in Socket, line 370:
dispatchQueue.queue(heartbeatInterval, TimeUnit.MILLISECONDS) { sendHeartbeat() }

And looking at the implementation (dispatchQueue is a ScheduledDispatchQueue), I see that it's based on ScheduledThreadPoolExecutor.schedule which is a one-shot API, not a periodic one.
Is this correct?

That's correct. The heartbeat should be scheduled on the same executor using a .scheduleAtFixedRate() and not the one time use .schedule() method. This will require creating another method on the DispatchQueue interface, queueAtFixedRate()
Thanks for reporting this, I'll get a fix out for it shortly

included in release 0.2.6
Github is currently having outages. once those are resolved, the build will kick off


Refactor on equality check function

This PR is just a minor refactor, I was going through the code and saw an "optimization" of an avoidable 'if' statement.
The boolean expression in the condition is enough to check the equality of the objects.

[ ] Unit Tests N/A
[ ] Documentation N/A
[ ] Update CHANGELOG.md N/A
[x] Ready to be merged

Manu thanks


LSP textDocument/documentColor requests not being sent since v1.78

Does this issue occur when all extensions are disabled?: Yes (all extensions other than the reproduction extension)

VS Code Version: 1.78.2
OS Version: macOS 12.5.1

Over at the Tailwind CSS IntelliSense repo we are seeing multiple reports of issues with colour decorators since the release of v1.78. Some are related to the new defaultColorDecorators setting which I think is a separate issue, but we are also seeing an issue where document colour requests are not being sent to the language server at all (defaultColorDecorators is false in this case).
I was able to create a small reproduction based on the LSP extension sample. Please see below.
Steps to Reproduce:

Clone https://github.com/bradlc/vscode-document-colors
Follow instructions from reproduction readme: https://github.com/bradlc/vscode-document-colors/blob/main/README.md

When the same project is opened in v1.76.2, the onDocumentColor count is logged repeatedly when editing the document.

Thanks a lot for the great steps to reproduce. I pushed a fix for the issue.


WIP: Setup discord bot

Fixes partially snapshot-webhook/40
Background
This PR sets up the Discord Bot as a separate repo from snapshot-webhook
PR details
The logic is moved from snapshot-webhook to this repo in the following way:

sets up the Discord client and connects to the existing Snapshot bot
exposes an API endpoint for notifying subscribers about the proposals which is to be called from snapshot-webhook
uses the same DB as snapshot-webhook

Current implementation (there is an error with Missing access, haven't sorted it out yet but it must be my settings on Discord for the app):

Related PRs

will have to be merged before a change in snapshot-webhook, PR to come

To Dos

[ ] would be great to refactor the client into separate files (easier to manage if there are new features in the future) -> might be done in separate PR
[ ] set up ENV variables in prod required to initiate the client and db

@bonustrack @ChaituVR any comments welcome :pray:

Hey @ChaituVR could you have a look at this PR? Refactoring of the client can be done in a separate PR :pray:


Adding "Start New" feature

Adding "Start New" feature that allows a user to finalize writing to the current writer and begin writing to a new one

Thanks for the contribution!
I was thinking of adding this feature myself, but was looking for a way to make sure the thread names get added to the new reports. I'll follow up with something to do that.


Quickstart in Colab link not updated after notebook relocation

A few days ago, I moved a demo Colab notebook in my perceiver-io GitHub repository (from notebooks/inference_examples.ipynb to examples/inference.ipynb) but I found that the Quickstart in Colab link at https://paperswithcode.com/paper/perceiver-io-a-general-architecture-for#code still points to the old location (same here and here). What can I do to get this link updated?

Seems I was too inpatient. Links are now up-to-date. Sorry for the noise.


Location path for enabling mixed auth

Hi @MohammadYounes. Following your example from the readme, I've added the following to the Web.config of my main app:
<!-- Enable Mixed Auth -->
<location path="MixedAuth">
  <system.webServer>
    <security>
      <authentication>
        <windowsAuthentication enabled="true" />
      </authentication>
    </security>
  </system.webServer>
</location>

It's put a blue line under MixedAuth and kind of grayed out the whole block: Location element is unused: no project item found at MixedAuth. I changed the path to ~ and it seems to be happy, but not sure if that's correct.
What value goes into path? Is that the app name? Where do we get the app name? No matter what I put into that, it's getting underlined with a squiggly blue line. Thanks.
Update: Thinking path should equal to period "." so it applies to the entire app

Never seen that before! The path corresponds to the MixedAuth end point as defined in MixedAuthOptions.

I'm going to change it back to MixedAuth; it works that way and everything's happy :)


Typo in conversion/qparams.py

Hello! In conversion/qparams.py Line 92 you mistyped += as ++. This error has been there since the initial commit.
        total_bits += groups * 16                           # q_scale_max
        total_bits += groups * (16 + 16)                    # q_groups
        total_bits += groups * columns * self.scale_bits    # q_scale
        total_bits ++ rows * 32                             # q_invperm        <--  your typo

This would have caused a slight miscalculation in the total bitrate. Very minor so likely no significant impact, but definitely should be fixed. Thanks for noticing.


Handling a type that is itself a list

Hello,
I think I have been too fast with my pull request, I'm realizing it does not solve the problem.

Here's the code to reproduce
from typing import List
from pydantic_redis import RedisConfig, Model, Store
from uuid import uuid4

class Folder(Model):
    _primary_key_field: str = 'id'
    id: str
    name: str

class FoldersList(Model):
    _primary_key_field: str = 'id'
    id: str
    elements: List[Folder]

store = Store(name='some_name', redis_config=RedisConfig(db=0, host='localhost', port=6379))
store.register_model(Folder)
store.register_model(FoldersList)

example_folder = Folder(id=str(uuid4()), name='first folder')

FoldersList.insert(FoldersList(id='test', elements=[example_folder]))

Edit: I'm actually not sure what's happening
Traceback (most recent call last):
  File "database/abladatabase/test.py", line 35, in <module>
    FoldersList.insert(FoldersList(id='test', a=[example_folder]))
  File "/mnt/e/miniconda/envs/ablabackend/lib/python3.8/site-packages/pydantic_redis/model.py", line 44, in insert
    cls.__insert_on_pipeline(_id=None, pipeline=pipeline, record=record, life_span=life_span)
  File "/mnt/e/miniconda/envs/ablabackend/lib/python3.8/site-packages/pydantic_redis/model.py", line 178, in __insert_on_pipeline
    mapping = cls.serialize_partially(data)
  File "/mnt/e/miniconda/envs/ablabackend/lib/python3.8/site-packages/pydantic_redis/abstract.py", line 35, in serialize_partially
    return {key: orjson.dumps(value) for key, value in data.items()}
  File "/mnt/e/miniconda/envs/ablabackend/lib/python3.8/site-packages/pydantic_redis/abstract.py", line 35, in <dictcomp>
    return {key: orjson.dumps(value) for key, value in data.items()}
TypeError: Type is not JSON serializable: Folder

I'm using
pydantic                   1.10.2
pydantic-redis             0.1.3

Oh...wow...my bad.
There were some fixes I added a few weeks back in 0.1.4 and I forgot to deploy it to pypi.
Let me clean it up before pushing.

0.1.4 has the same issue. Your earlier assumption seems to be right.
  File "/mnt/e/miniconda/envs/ablabackend/lib/python3.8/site-packages/pydantic_redis/abstract.py", line 35, in <dictcomp>
    return {key: orjson.dumps(value) for key, value in data.items()}
TypeError: Type is not JSON serializable: Folder

orjson(Folder(...))  will fail but Folder(...).json() should pass.

@Rictus, I would like to assign you to this. Is that okay?

After some analysis, pydantic-redis is good for persisting simple models like:
class Folder(Model):
    _primary_key_field: str = 'id'
    id: str
    name: str

class ParentFolder(Model):
    _primary_key_field: str = 'id'
    id: str
    elements: Folder

ParentFolder have one child that is Folder
But current version of code does not allow for:
class Folder(Model):
    _primary_key_field: str = 'id'
    id: str
    name: str

class FoldersList(Model):
    _primary_key_field: str = 'id'
    id: str
    elements: List[Folder]

Where FoldersList have multiple childs that are of type Folder.
In Redis, I would see that one instance of FoldersList (hashmap) would have a property named elements which is a list of keys (str). Each key leading to a Folder persisted in redis like the lib already do.
Do you agree ?

Pretty much.
Yeah it is a lot of work.
Maybe the work around for now is convert that folders to dict first (if your use-case allows for that)

Or use the reverse relationship i.e.
class Folder(Model):
    parent: FolderList
    # ...

Maybe the work around for now is convert the Folders to dict first (if your use-case allows for that)

It does not
That is a good suggestion but it would be great for pydantic-redis to support both ways. The PR current goes on this way.

Thank you @Tinitto


Helper function to get a scene

🎉 New feature
Summary

Most applications will only have one rendering engine loaded at a time, and only one scene within that. This helper function gets the first scene that can be found in any rendering engine.
This pattern is being repeated on several ign-gui and ign-gazebo plugins, so it would be nice to reduce duplication. For example:

Screenshot
Grid3D
VisualizeLidar
etc

This PR could target ign-rendering3, I'm targeting main because I have other PRs that will depend on it. Once this has been reviewed I can rebase and target 3.
Test it

Take a look at the added tests.
Checklist

[x] Signed all commits for DCO
[x] Added tests
[ ] Added example and/or tutorial
[x] Updated documentation (as needed)
[ ] Updated migration guide (as needed)
[x] codecheck passed (See contributing)
[x] All tests passed (See test coverage)
[x] While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge
🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸

@osrf-jenkins retest this please

I don't know if that name would be necessarily true for the current implementation.

How about getFirstRenderEngineScene to be more specific?

How about getFirstRenderEngineScene to be more specific

The trick is whether the "first" applies to the render engine, to the scene, or to both...
I don't have a better suggestion though. I can go with that if you think there isn't a lot of ambiguity. I'd just drop the get.

sceneFromFirstRenderEngine?
I think either one works

sceneFromFirstRenderEngine?

Ok, I went with that: e19bd7353d94552db111704f621c4efe627fda95

Once this has been reviewed I can rebase and target 3.

Done, this is now targeted at v3


Chunking and uploading file Gives Exception "The process cannot access the file because it is being used by another process."

Hi,
I am sending one file from browser and uploading to server, it is chunking and uploading to the server.
But while uploading it is giving exception
you can get the github link for the implementation:
) https://github.com/tus/tus-js-client
Spring server implementation
2) https://github.com/thomasooo/spring-boot-tus
ava.nio.file.FileSystemException: storage\5b87e2a903751c247c164465: The process cannot access the file because it is being used by another process.

	at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86) ~[?:1.8.0_144]
	at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97) ~[?:1.8.0_144]
	at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102) ~[?:1.8.0_144]
	at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269) ~[?:1.8.0_144]
	at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) ~[?:1.8.0_144]
	at java.nio.file.Files.deleteIfExists(Files.java:1165) ~[?:1.8.0_144]
	at java.nio.file.Files.copy(Files.java:3004) ~[?:1.8.0_144]
	at tusserver.storage.services.StorageServiceImpl.processStream(StorageServiceImpl.java:84) ~[classes/:?]
	at tusserver.StorageController.processPatch(StorageController.java:186) ~[classes/:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_144]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_144]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_144]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_144]
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) ~[spring-web-4.3.11.RELEASE.jar:4.3.11.RELEASE

Code :
   public int processStream(String uuid, InputStream inputStream) throws Exception {
        String filename = StringUtils.cleanPath(uuid);
        File file = new File(storageDir.resolve(filename).toString());

        if (!file.isFile()){
            new FileOutputStream(file).close();
            if(!file.isFile()){
                log.error("Cannot create new file");
                throw new TusPermissionDeniedException("Cannot create new file");
            }
        }

        InputStream storageFile;
        try{
            storageFile = new FileInputStream(file);
        }catch(IOException e){
            log.error("Cannot read old file");
            throw new TusPermissionDeniedException("Cannot read old file");
        }

 //       File fileToBeInstalled = new File(StorageServiceImpl.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath());
//      Files.copy(fileToBeInstalled.toPath(), storageDir.resolve(filename), StandardCopyOption.REPLACE_EXISTING);
//      fileToBeInstalled.delete();

       storageFile = new SequenceInputStream(storageFile, inputStream);
// at this position giving exception
        Files.copy(storageFile, storageDir.resolve(filename), StandardCopyOption.REPLACE_EXISTING);

        file = new File(storageDir.resolve(filename).toString());

        return (int) file.length();
    }

Thanks for reporting that issue but this looks like an issue with spring-boot-tus with which I cannot help you. Please report this problem at the project's issue tracker at https://github.com/thomasooo/spring-boot-tus/issues.
From what I can tell this is also a Windows-specfic issue as it handles parallel file access different than most flavors of Linux.
If the maintainers are not able to help you, you might checkout other servers such as https://github.com/tus/tusd or https://github.com/tus/tus-node-server.


What you see in game, differs from what you see on terrafirma

As simple as this
In Game:

TerraFirma

I've noticed this too: there's a fog of war switch in the menu, bit it doesn't appear to do anything.

@mrkite Could you help us ?

The fog of war switch blacks out anything you haven't seen so you don't need to spoil yourself if you don't want to.  If it's not doing anything, it's because it couldn't find your player save.  Right above the fog of war option there's a Select Player submenu.  You should choose your player in there.  If you're not listed, check the settings and see about setting the path.

But i was talking about the differences between what i see in game and what terrafirma show me, nothing to do with that fog of war stuff.

@keplerk yeah I was responding to john beech.
As far as your problem is concerned..  obviously terrafirma isn't inventing worlds so it's finding that world somewhere.  Maybe an older world cached in an old directory?  Try opening the world directly instead of using the quick selects.  If that fixes it, then again, go to settings and change the directory that terrafirma is looking.

I've tried it already, opening an issue was the my last resource, on single player worlds everything its ok, but on this multiplayer it isnt.

I reworked the path detection.. try the new version.


METRON-1760: Kill PCAP job should prompt for confirmation

Contributor Comments
This PR introduces a so-called pop confirm component appearing next to "kill query button" when the user presses it. It provides a middle step between the user interaction and the http request since the querying process can be a time consuming process and the cancel button can be pressed accidentally giving the user a hard time.
You can find the original JIRA ticket here.
I decided to not create this floating element from scratch but rather install a component from npm which seemed to fulfil the requirements.
It uses Bootstrap behind the scenes but I slightly modified the css to make it fit to the current design.
The module has the appropriate license and the number of potential vulnerabilities, according to npm audit, is zero.
Changes included:

Use the new component as a directive on the kill button in pcap-panel.component.html. It's reusable and you can use it on any other elements as you wish by setting the mwlConfirmationPopover  directive. You can also add different attributes to configure the behaviour of the component. I wouldn't go into details since they're pretty straightforward. Check out the docs!

The "killing query process" had been already tested before on the ui so I had to slightly change the test units accordingly. You cannot expect the same result unless you click on the "Yes" button on the pop confirm component.

Override Bootstrap's styles to make it fit to the current (dark) design.

Update the package lock file due to the new dependency.

This is how it looks:

Testing:
Go to the PCAP tab and start a new query by clicking on the magnifier at the right side of the filter panel. The progress bar is supposed to appear with a cancel button on the right (a button with an "X" on it). During the process you should be able to click on the cancel button and the pop confirm component should appear next to the button to prompt the user to solidify his/her decision or give the opportunity to change his/her mind.
In case you want to test it with real generated pcap data, you should do the following:
Set SAMPLE_PCAP_PATH to where you save the files on your computer. For example:
export SAMPLE_PCAP_PATH=~/Projects/Metron/code/forks/merrimanr/samplePcap
Copy the generated pcap files into full dev. To do that, make sure you’re inside your vagrant machine’s directory (e.g. centos6, etc.) and have the vagrant-scp plugin is added to vagrant. The script to install this plugin is:
vagrant plugin install vagrant-scp

To copy the files, run this command:
ls $SAMPLE_PCAP_PATH | xargs -I {} vagrant scp $SAMPLE_PCAP_PATH/{} /tmp

Login to full dev and upload these files to HDFS:
vagrant ssh
    su root (password: vagrant or root)
    su - metron -c "hdfs dfs -put /tmp/pcap* /apps/metron/pcap/input"

install wireshark on full dev with yum -y install wireshark
Pull Request Checklist
Thank you for submitting a contribution to Apache Metron.
Please refer to our Development Guidelines for the complete guide to follow for contributions.
Please refer also to our Build Verification Guidelines for complete smoke testing guides.
In order to streamline the review of the contribution we ask you follow these guidelines and ask you to double check the following:
For all changes:

[X] Is there a JIRA ticket associated with this PR? If not one needs to be created at Metron Jira.
[X] Does your PR title start with METRON-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
[X] Has your PR been rebased against the latest commit within the target branch (typically master)?

For code changes:

[X] Have you included steps to reproduce the behavior or problem that is being changed or addressed?

[X] Have you included steps or a guide to how the change may be verified and tested manually?

[X] Have you ensured that the full suite of tests and checks have been executed in the root metron folder via:
mvn -q clean integration-test install && dev-utilities/build-utils/verify_licenses.sh

[X] Have you written or updated unit tests and or integration tests to verify your changes?

[X] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

[X] Have you verified the basic functionality of the build by building and running locally with Vagrant full-dev environment or the equivalent?
cd site-book
mvn site

Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.
It is also recommended that travis-ci is set up for your personal repository such that your branches are built there before submitting a pull request.

+1. Tested as described above on full-dev.

WIth no PCAP data in an environment, the query returns too fast for me to manually push the "Cancel" button?  Did you load up some sample PCAP data to test this?

@nickwallen I added the instructions on how to work with pcap data, but there's another way to slow things down. You can emulate a very slow internet connection on the network tab if you're using Google Chrome: https://developers.google.com/web/tools/chrome-devtools/network-performance/reference#throttling

+1 Thanks!  Will merge now.


fix: use OptCharsetWithOptBinary for ENUM/SET

See also: https://github.com/mysql/mysql-server/blob/8.0/sql/sql_yacc.yy#L6617
Signed-off-by: Wang Ruichao<EMAIL_ADDRESS>
What problem does this PR solve?
fix https://github.com/pingcap/tidb/issues/19014
What is changed and how it works?
According to the implement in MySQL, add BINARY support for ENUM/SET
Check List
Tests

Unit test
Integration test
Manual test (add detailed scripts or steps below)
No code

Code changes

Has exported function/method change
Has exported variable/fields change
Has interface methods change

Side effects

Possible performance regression
Increased code complexity
Breaking backward compatibility

Related changes

Need to cherry-pick to the release branch
Need to update the documentation
Need to be included in the release note

/run-all-tests

Is it enough to support the syntax? Is the behavior in TiDB as expected?
create table t (c enum('a', 'A') binary);
insert into t values ('a');
insert into t values ('A');
insert into t values ('b');
select * from t;

Is it enough to support the syntax? Is the behavior in TiDB as expected?
create table t (c enum('a', 'A') binary);
insert into t values ('a');
insert into t values ('A');
insert into t values ('b');
select * from t;

No, and the I'm on my way to add the fit for TiDB. Thanks.

Is it enough to support the syntax? Is the behavior in TiDB as expected?
create table t (c enum('a', 'A') binary);
insert into t values ('a');
insert into t values ('A');
insert into t values ('b');
select * from t;

For this case, the result for this fix is same as in MySQL. No addition fix in TiDB. Sorry for the mis-test 🙈.

/merge


Suggestion

Maybe search command?

Next update maybe, along with other features too. Stay tune. 👍🏻

Done


Beckn One: Sandbox Implementation

Continuation of the following flows from previous iteration:
https://github.com/beckn/beckn-onix/issues/278

Current status

Successfully demoed & delivered the MVP 1 of hyperbeckn sandbox

Next Step

Discuss the enhancement and deliver MVP2


Switched some ifs so they short circuit if forcing sw rendering

Thanks, this looks good but something to think about with the second conditional: "At least one compatible device was detected" wouldn't be printed if the user forces cpu rendering while having a compatible device (when args.sw and ocl.compat_ocl_device_available() are both True). I would leave the second if statement alone because of this.

True, the problem for me was that ocl.compat_ocl_device_available() errors out when you don't have opencl fully installed but are forcing sw rendering anyways.

Got it. Fixing that bug takes precedence over the print statement.


Kubelet doesn't kill old pods when BoundPods is empty

To reproduce:

Start a cluster via hack/local-up-cluster.sh
Start some pods
Kill the cluster
"docker ps -a" should show the pod containers running still
Start the cluster again
"etcdctl ls /registry" should show that there is no boundpods directory -- only minions and services
"docker ps -a" should show the old pod containers still running
Start a new pod
After, say, 10s, "docker ps -a" should show the old containers dead

/cc @dchen1107

I suspect the cause of this might be pkg/kubelet/kubelet.go#L1118:
case <-time.After(kl.resyncInterval):
	glog.V(4).Infof("Periodic sync")
	if kl.pods == nil {
		continue
	}

which guarantees that the pod sync logic is never called if Kubelet.pods is nil.
Need to get a repro to confirm.


What's this sketchy looking line of code?

https://github.com/Mega-Mewthree/BetterDiscordTrustedUnofficialPlugins/blob/ec539e2e6ff2f8affe606da49a641708aa473635/NoDeleteMessages/NoDeleteMessages.plugin.js#L87

Security to avoid plugin getting turned off from another devs.

I can vouch


[FEAT]: Can a function of setting custom roles be added to endow them with different rights?

What would you like to see?
In terms of user rights management, the setting of three basic roles is not flexible enough. Can a function of setting custom roles be added to endow them with different rights?

That is being tracke via https://github.com/Mintplex-Labs/anything-llm/issues/1787


Implement media download backend

MVP: provide url so that client can download media itself

We have MAVLink FTP implemented and the url (https://github.com/mavlink/MAVSDK/blob/6434e0c6a7c25a3203d4652da13ea1944279beb1/src/plugins/camera/include/plugins/camera/camera.h#L197) of a captured image. This should be enough for now.


Files are created as root user

This means some file explorers cannot delete the music files or rename them.
Solution, use chown after creating the mp3 files and music folder:
if not os.path.exists("Music"):
	os.makedirs("Music")
	os.chown('Music',int(os.environ['SUDO_UID']),int(os.environ['SUDO_GID']))

def convertToMP3(music_file):
	if os.name == 'nt':
		os.system('Scripts\\avconv.exe -loglevel 0 -i "' + 'Music/' + music_file + '.m4a" -ab 192k "' + 'Music/' + music_file + '.mp3"')
	else:
		os.system('avconv -loglevel 0 -i "' + 'Music/' + music_file + '.m4a" -ab 192k "' + 'Music/' + music_file + '.mp3"')
		os.chown('Music/' + music_file + '.mp3',int(os.environ['SUDO_UID']),int(os.environ['SUDO_GID']))
	os.remove('Music/' + music_file + '.m4a')

This sets the file owner and folder owner to the user who permitted the sudo command. Additionally you could do this for the rest of the files this program creates, like list.txt, such that a user can save the list file after modifying it without having to run their text editor as su.
`

@fireXtract I tested with creating a new user on my machine. You could just run the script without sudo and everything seems to work fine. I can delete/rename/modify the files without root. Does that fix for you?

Yes that is true. My bad. I went looking for a solution to a problem that didn't exist! One will run into issues if they run the script as sudo then later as a regular user. This is because the last_albumart.jpg at the very least will have root as owner. My posted code will need to check if 'SUDO_UID' exists before writing chown, otherwise the program wont run WITHOUT sudo.

Yeah. Basically, don't use the script as a lower privileged user after using it as a higher privileged user otherwise it will cause problems.
@fireXtract thanks for this issue. I made a commit in README.md to remove sudo as it is not necessary at all.


Support SystemNavigator.pop in desktop shells

Per documentation, this should quit the application.

Still needed for the GLFW shell, but I'm not actively working on this.
It requires some plumbing to add the system channel (which would be easier after some more refactoring to make the GLFW shell implementation more object-based).


Remove outdated note from DatetimeAccessor docstring

Noticed this today.  This note in the DatetimeAccessor docstring is no longer relevant; these fields have been calendar-aware for some time.

Thanks spencer


feat: Fetch verification, issuance and connection webhook response for dedicated agent

[x] Refactor fetch webhook URL response API for Connection
[x] Refactor fetch webhook URL response API for Issuance
[x] Refactor fetch webhook URL response  API for Verification

This task is completed.


Android can't install NuGET package

Please check all of the platforms you are having the issue on (if platform is not listed, it is not supported)

[ ] iOS
[x] Android
[ ] UWP
[ ] NET Standard 2.0

Version of OS(s) listed above with issue (if android - please include version of Xamarin.Android.Support.* you are using)
Xamarin.Android.Support.* version 27.0.2
Version of ACR UserDialogs Library
7.0.1
Expected Behaviour
Package installs successfully
Actual Behavior
If applicable, please include entire exception - type, message, stacktrace
Package can't install
Failed to add reference. The package 'Acr.UserDialogs' tried to add a framework reference to 'System.Collections' which was not found in the GAC. This is possibly a bug in the package. Please contact the package owners for assistance.
Error HRESULT E_FAIL has been returned from a call to a COM component.
Code of Conduct

No Library Update Requests - THIS ESPECIALLY MEANS ANDROID SUPPORT LIBRARIES
No Timeline Requests
Please read through the documentation and FAQs
Please be respectful of my time. I put a lot of effort into my libraries.  I try to support the issue requests within a day.  I'm not psychic, so please take the time to fill out the above form as complete as possible

Make sure you aren’t using packages.config.  I see this (on the iOS side sometimes) when they aren’t using the new


After editing a Resource, redirected to Sites, not Resource show

Why do we want to do this? After you edit a resource you should be at the show page to see your changes applied. This is the pattern we have for all create/edit pages. Also, when you created a resource the show page is better because it gives a clear way to create a policy:

I agree, that's why this is marked as a bug.

It's currently redirecting to Sites

Have we had customers complain about the current functionality?
The reason I ask is that I thought we put the 'return to sites' functionality in purposefully.  If a users goal is to just create one new resource, then sending the user to the 'Resource Show' page is probably best, but if the users goal is to create a bunch of new resources at one time, then returning the user to the 'Resource Show' page after every create will likely get taxing, because finding your way from a 'Resource Show' page to the 'Site Index' page is not the most intuitive right now (and may get trickier when multi-site resources are introduced) since our bread crumbs are the usual way to find your way back to a 'parent', but the 'Resource Show' page will send you back to the 'Resource Index' page and while you can create another Resource from that index page, it's also potentially confusing/taxing, since you have to select the proper Site when creating the Resource.
So, all of this said, I'm just curious what our customers are actually saying/wanting.

@bmanifold I think you're right -- after creating a Resource we should be taken to the sites page.
What's currently happening however is:

After editing a Resource, they're taken to sites show
After createing a Resource, they're taken to the resources show

So I think we just need to flip these two.


Migrate repo to bats-core org?

Hi, what do you think about bats-core/bats-core#269 ?
Having all libraries under the same org would make them more discoverable and potentially bring more users/contributors.

Done! (needs the -1 suffix removed, though)


Problem in "stream_server_test.py"

After running "stream_server_test.py" in python 2.7.9 , it shows following errors
is there problem in my python packages ? or which python version should i install to run this code?
"/usr/lib/python2.7/socket.py", line 228, in meth     return getattr(self._sock,name)(*args)
this errors shows when i try to run
/AutoCar/test$ python stream_server_test.py Traceback (most recent call last):   File "stream_server_test.py", line 44, in <module>     VideoStreamingTest()   File "stream_server_test.py", line 12, in __init__     self.server_socket.bind(('<IP_ADDRESS>', 8000))   File "/usr/lib/python2.7/socket.py", line 228, in meth     return getattr(self._sock,name)(*args) socket.error: [Errno 99] Cannot assign requested address

What's your local ip address? Is there another application listening on that port?

Its working after changing local IP address in a code, now its working fine , Thank you very much
Merry Christmas & Happy New Year in Advance

The same to you, Merry Christmas and Happy New Year :)

hamuchiwa
Hey there I just wanna ask that I am having problem running server_client.py  code, so for this reason I am not able to stream any kind of image on my PC. And just also want to know about the configurtion related Pycharm IDE.
Reply soon it will be of great help.

Hi, I'm getting this error:
On computer:
Start collecting images...
Traceback (most recent call last):
File "collect_training_data.py", line 174, in
CollectTrainingData()
File "collect_training_data.py", line 36, in init
self.collect_image()
File "collect_training_data.py", line 55, in collect_image
stream_bytes += self.connection.read(1024)
TypeError: must be str, not bytes
On RaspberryPi 3:
Traceback (most srecent call last):
File "stream_client.py", line50, in
connection.close()
File "/usr/lib/python2.7/socket.py", line 283, in close
self.flush()
File "/usr/lib/python2.7/socket.py",  line 307, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
socket.error: [Errno 32] Broken pipe
Can you help me solve it?

Hi, I'm getting this error:
On computer:
Start collecting images...
Traceback (most recent call last):
File "collect_training_data.py", line 174, in
CollectTrainingData()
File "collect_training_data.py", line 36, in init
self.collect_image()
File "collect_training_data.py", line 55, in collect_image
stream_bytes += self.connection.read(1024)
TypeError: must be str, not bytes
On RaspberryPi 3:
Traceback (most srecent call last):
File "stream_client.py", line50, in
connection.close()
File "/usr/lib/python2.7/socket.py", line 283, in close
self.flush()
File "/usr/lib/python2.7/socket.py", line 307, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
socket.error: [Errno 32] Broken pipe
Can you help me solve it?

@IConquer96 I would think it's something to do with difference between Python2 and Python3, what's the Python version on your computer?

Hi @hamuchiwa.
So, after modifying the IP and the port on "collect_training_data.py" to my computer local IP and port, and running it on my computer terminal using python command, it ran without errors, and was waiting for the data to be sent from the RPi, so I used SSH and ran "stream_client.py" using python command, after changing it's IP and port to my computer IP & port.
My computer's Terminal show's
Start collecting images...
for couple of seconds ..
then it print these errors
Traceback (most recent call last):   File "collect_training_data.py", line 172, in <module>     CollectTrainingData()   File "collect_training_data.py", line 35, in __init__     self.collect_image()   File "collect_training_data.py", line 53, in collect_image     stream_bytes += self.connection.read(1024) TypeError: must be str, not bytes
Line 72 on collect_training_data.py
    CollectTrainingData()
Line 35 on collect_training_data.py
        self.collect_image()
Line 53 on collect_training_data.py
                stream_bytes += self.connection.read(1024)
and on the ssh terminal "RPi" it shows
Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.732372] Internal error: Oops: 17 [#1] SMP ARM

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737360] Process python (pid: 922, stack limit = 0xab2fe210)

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737366] Stack: (0xab2ffd98 to 0xab300000)

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737373] fd80:                                                       000005a8 806d1930

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737384] fda0: 000076c8 ab2ffec0 ab060640 000076c8 ab2ffe54 ab2ffdc0 806d1950 806ce34c

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737395] fdc0: 000005a8 ab2ffdd0 804aeab8 b4dbbc00 80c069c4 80d0a08c 80c049c0 ab2fe000

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737405] fde0: 00000000 00000000 00000000 00000000 00000001 00000000 ab2ffe24 00000200

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737416] fe00: ab2ffec8 ab060790 000005a8 00000000 00000121 000005a8 7fffffff 3c334492

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737427] fe20: 801235c4 801e0000 ab060640 ab060640 0000b53e ab2ffec0 00000121 80108224

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737438] fe40: ab2fe000 00000000 ab2ffe74 ab2ffe58 806d247c 806d1654 806d2444 ab060640

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737448] fe60: 00000000 a4988fc0 ab2ffe94 ab2ffe78 806fe570 806d2450 802aa2ac 802aa200

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737459] fe80: 00000000 00000000 ab2ffea4 ab2ffe98 80657c84 806fe534 ab2fff8c ab2ffea8

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737469] fea0: 80658dd4 80657c6c ab2ffec8 80601cd4 fffffff7 00000001 01dd6d70 0000b53e

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737480] fec0: 00000000 00000000 00000001 000076c8 00003e76 ab2ffeb8 00000001 801ee204

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737490] fee0: 00000000 00000000 00000000 ab2ffef8 80101850 80123188 ab2fff1c ab2fff08

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737501] ff00: 00000001 00400000 80c0469c 8017a1b0 ab2fff34 ab2fff20 8017a1b0 80179dec

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737511] ff20: 8017a08c 80c0469c ab2fff44 ab2fff38 80174f10 804ae66c ab2fff5c ab2fff48

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737522] ff40: 804ae66c 804ae590 804ae630 8012377c ab2fff6c ab2fff60 8012377c 801845dc

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737533] ff60: ab2fff94 ab2fff70 80175554 801236e0 ab2fffb0 7ea748b8 76a57780 7ea748b8

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737544] ff80: ab2fffa4 ab2fff90 80658e24 80658d18 00000000 00000000 00000000 ab2fffa8

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737555] ffa0: 80108080 80658e08 7ea748b8 76a57780 00000004 01dd6d70 0000b53e 00000000

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737565] ffc0: 7ea748b8 76a57780 7ea748b8 00000121 00000000 00000000 00000001 01c91ae8

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737576] ffe0: 00000000 7ea74850 00000000 76eb8984 80000010 00000004 aaaaaaaa aaaaaaaa

Message from syslogd@raspberrypi at Apr  5 22:22:58 ...
 kernel:[   85.737714] Code: e155000c 03a05000 e2117902 1a000039 (e5d50028)```

I appreciate your help, God bless u


Only Single Ad Unit Loads

Dropped you an email on a similar issue earlier, got that resolved but now I've ran into something else 😭
I'm running multiple ad units on one page which share the same data-adunit parameter, however I'm running into an issue where only a single one will load if I use a selector. This is what my HTML looks like:

And the supporting jQuery which is called within inline scripts below each unit on the page:
  $(".adunit-1").dfp({
    dfpID: '299043',
  });

  $(".adunit-2").dfp({
    dfpID: '299043',
  });

  $(".adunit-3").dfp({
    dfpID: '299043',
  });

Everything loads if I make a call like so:
  $.dfp({
    dfpID: '299043',
  });

However I want to selectively choose which ads load. For example if a condition is met I want adunit-1 to load, if not I want it to not load etc. Is there some sort of workaround to this? I've tried a number of possible fixes for this but haven't had any luck.
I'm not sure if the issue is that we're serving multiple line items in the same ad "slot", I'm not hugely knowledgable in DFP. I've created a code pen: http://codepen.io/jamesives/pen/oLvjzZ
Thanks

It looks like doing multiple calls like this with ad units with the same name causes a race condition in the code which means that all of the adunits end up with the same name... breaking the race condition is fairly simple using some setTimeouts as an example....
http://codepen.io/anon/pen/bebVRO
To fix it properly I think I will need to make a global var that is used for the auto naming of ad units.
By the way adding ?google_force_console to the end of your URL is the easiest way to debug these issues normally.... that gave me the error message right away that the adunit name was already defined.

 Thanks for the quick response on this one.
Great plugin btw, you've reduced the footprint of my sites DFP setup to almost nothing. Cheers!

I just updated the codepen above (http://codepen.io/anon/pen/bebVRO) to a new commit I made in a global-uid branch.... seems to work... so I will merge that in when I get a chance.... stops the race condition and means you would not need the setTimeouts to break the race condition.

Legend. Thanks again.


Questions regarding output generated

I have a dataset with 16 media channel spend and 1 extra features. This data is over 209 weeks and is sparse. My dependent variable is conversion. Additionally the difference in media channel spend is in orders of magnitude (1000 vs. 1000000).
When I use utils.dataframe_to_jax() to convert my pandas dataframe to jax, 'geo_feature' is a required argument -- not sure how this works if the data is at national level. I created a 'geo' variable in my dataframe that has all 1s, and got this function to work, but not sure if this is how it should be.
I have the notebook setup exactly like the simpl_demo notebook (scalars, priors etc.). When I run mmm.fit, I get r_hat that is in the 100,000 range.  The plotting function doesnt work and roi_hat from mmm_get_posterior_metrics is all 'nan'.
I need some help troubleshooting -- cannot think of what to change/try to get some output. Any suggestions?
Thanks.

Hello @chsheth !
If you are using the national model and coming from a pd.DataFrame you can just take the values of the dataframe directly, utils.dataframe_to_jax() is only needed for geo models.
Something like the following should suffice:
dataframe = pd.DataFrame(YOUR DATA HERE)
media = jnp.array(dataframe[media_columns].values)
extra_features = jnp.array(dataframe[extra_feature_columns].values)

Yes, trying to fit a geo model with national data and a "faked" geo column might lead to weird outputs. Hopefully trying with the correct model helps!

Hi @pabloduque,
Thanks again for your support.
I have created the dataframe similarly to how you have proposed. Here is my
code -
media_data = weekly_df[['x1', 'x2', 'x3',]]
extra_features = weekly_df['unsol']
date_feature = weekly_df['date'] #not used
target = weekly_df['convs']
costs to make ROI realistic.
costs = jnp.array(media_data.sum(axis=0))
media_data = jnp.array(media_data)
extra_features = jnp.reshape(jnp.array(extra_features), (-1,1))
target = jnp.reshape(jnp.array(target), (-1, 1))
------- Media features - shape (104, 16) Extra features - shape (104, 1)
Target - shape (104, 1) Costs - shape (16,)
As you can see above, I have similar shapes to what the simulated data has.
The code now runs and I get r_hat close to 1.
However, I had the following questions -

The model output has a bunch of coefficients -- is there anywhere I
could read what they mean and interpret them within the context?
The following plot commands don't work. I dont know if it is an arviz
issue or some data/shape issue.
---- plot.plot_model_fit(mmm, target_scaler=target_scaler) &

plot.plot_out_of_sample_model_fit(out_of_sample_predictions=new_predictions,
out_of_sample_target=target_scaler.transform(target[split_point:]))
3. The optimization indicates that there are bounds of 20% -- I dont see
where these can be specified for each channel.
Thanks again for the help.
On Thu, Sep 15, 2022 at 3:30 AM Pablo Duque @.***>
wrote:

Hello @chsheth https://github.com/chsheth !
If you are using the national model and coming from a pd.DataFrame you
can just take the values of the dataframe directly,
utils.dataframe_to_jax() is only needed for geo models.
Something like the following should suffice:
dataframe = pd.DataFrame(YOUR DATA HERE)
media = jnp.array(dataframe[media_columns].values)
extra_features = jnp.array(dataframe[extra_feature_columns].values)
Yes, trying to fit a geo model with national data and a "faked" geo column
might lead to weird outputs. Hopefully trying with the correct model helps!
—
Reply to this email directly, view it on GitHub
https://github.com/google/lightweight_mmm/issues/66#issuecomment-1247693482,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJIVH7DFPGIZSAJD7HFTNADV6LF7VANCNFSM6AAAAAAQM4OE6Y
.
You are receiving this because you were mentioned.Message ID:
@.***>

Sorry for the late response, I missed this one.

Yes the model documentation and custom priors documentation should shed some light about all parameters in the model.
For specifying bounds per channel you need to pass an array, eg. if you have three chanenls your bounds could be jnp.array([0.25, 0.3, 0.15]) and the parameters are: bounds_lower_pctand bounds_upper_pct.

Thanks @pabloduque0


Please tell me how to install the app into the ledger device. The installation failed according to the build.md document.

bash-5.1# cargo ledger build --load  nanosplus -- --no-default-features
Use Rust nightly toolchain: nightly-2023-11-10
warning: Patch ledger_device_sdk v1.5.0 (/app/ledger-device-rust-sdk/ledger_device_sdk) was not used in the crate graph.
Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run cargo update to use the new
version. This may also occur with an optional dependency that is not enabled.
Compiling proc-macro2 v1.0.78
Compiling compiler_builtins v0.1.103
Compiling unicode-ident v1.0.10
Compiling glob v0.3.1
Compiling libc v0.2.153
Compiling rustix v0.38.31
Compiling core v0.0.0 (/opt/rustup/toolchains/nightly-2023-11-10-x86_64-unknown-linux-musl/lib/rustlib/src/rust/library/core)
Compiling prettyplease v0.2.16
Compiling cfg-if v1.0.0
Compiling minimal-lexical v0.2.1
Compiling bitflags v2.4.2
Compiling regex-syntax v0.8.2
Compiling memchr v2.7.1
Compiling linux-raw-sys v0.4.13
Compiling libloading v0.8.1
Compiling clang-sys v1.7.0
Compiling home v0.5.9
Compiling bindgen v0.65.1
Compiling quote v1.0.35
Compiling either v1.10.0
Compiling syn v2.0.50
Compiling nom v7.1.3
Compiling lazy_static v1.4.0
Compiling log v0.4.20
Compiling rustc-hash v1.1.0
Compiling lazycell v1.3.0
Compiling peeking_take_while v0.1.2
Compiling bitflags v1.3.2
Compiling shlex v1.3.0
Compiling cc v1.0.79
Compiling syn v1.0.109
Compiling autocfg v1.1.0
Compiling num-traits v0.2.15
Compiling weezl v0.1.7
Compiling regex-automata v0.4.5
Compiling color_quant v1.1.0
Compiling which v4.4.2
Compiling cexpr v0.6.0
Compiling gif v0.11.4
Compiling ledger_device_sdk v1.7.1
Compiling regex v1.10.3
Compiling include_gif v1.0.1 (/app/ledger-device-rust-sdk/include_gif)
Compiling ledger_secure_sdk_sys v1.2.0 (/app/ledger-device-rust-sdk/ledger_secure_sdk_sys)
Compiling rustc-std-workspace-core v1.99.0 (/opt/rustup/toolchains/nightly-2023-11-10-x86_64-unknown-linux-musl/lib/rustlib/src/rust/library/rustc-std-workspace-core)
Compiling numtoa v0.2.4
Compiling rand_core v0.6.4
Compiling zeroize v1.7.0
warning<EMAIL_ADDRESS>Device is NanoSPlus
warning<EMAIL_ADDRESS>API_LEVEL is 5
warning<EMAIL_ADDRESS>TARGET_ID is 0x33100004
warning<EMAIL_ADDRESS>TARGET_NAME is TARGET_NANOS2
warning<EMAIL_ADDRESS>C_SDK_NAME is ledger-secure-sdk
warning<EMAIL_ADDRESS>C_SDK_HASH is 48bb8d493548f840ddd261bbe60930f3f5966e7b
warning<EMAIL_ADDRESS>C_SDK_VERSION is v5.10.0
Compiling starknet v1.0.0 (/app/app-starknet)
Finished release [optimized] target(s) in 21.68s
text    data     bss     dec     hex filename
27624       0    1904   29528    7358 /app/app-starknet/target/nanosplus/release/starknet
Dumping APDU installation file to /app/app-starknet/target/nanosplus/release/starknet.apdu
[WARNING] JSON files will be deprecated in future version
[WARNING] JSON files will be deprecated in future version
Traceback (most recent call last):
File "/usr/bin/ledgerctl", line 8, in
sys.exit(cli())
File "/usr/lib/python3.9/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3.9/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/click/decorators.py", line 45, in new_func
return f(get_current_context().obj, *args, **kwargs)
File "/usr/lib/python3.9/site-packages/ledgerwallet/ledgerctl.py", line 206, in install_app
client = get_client()
File "/usr/lib/python3.9/site-packages/ledgerwallet/ledgerctl.py", line 108, in get_client
return LedgerClient(private_key=get_private_key())
File "/usr/lib/python3.9/site-packages/ledgerwallet/client.py", line 127, in init
self.device.open()
File "/usr/lib/python3.9/site-packages/ledgerwallet/transport/hid.py", line 30, in open
self.device.open_path(self.path)
File "hidraw.pyx", line 158, in hid.device.open_path
OSError: open failed

This issue has been preview on the Pull Requests. To resolve,
Contact the dAppNode page to initiate a chat with the live agent on the chat button to get more information about your request via dAppNode
Thank you for posting @XxxxYxxx

Please see Readme file about how to build and install.


ARROW-10115: [C++] Add CSV option to treat quoted strings as always non-null

The option is only applicable to string and binary columns.

I am only wondering if the default shouldn't be quoted_strings_can_be_null=False, although that's not backwards compatible

Feel free to open a JIRA for that. What's the Pandas default?

Pandas has loads of options, but doesn't cover this specific use case ;) (based on my comment on the JIRA)

Ok, but it has a default behaviour. What is it? :-)

It seems Pandas detects nulls in quoted strings. @jorisvandenbossche Do you think we should do differently by default?
>>> s = '''a,b\n1.0,"foo"\n"N/A","N/A"'''
>>> df = pd.read_csv(io.BytesIO(s.encode()))
>>> df
     a    b
0  1.0  foo
1  NaN  NaN

It seems Pandas detects nulls in quoted strings

Yeah, that's true, but pandas also always detects nulls in quoted strings (there is no option similar to strings_can_be_null=False that can be set to False), and has no option to not see quoted nulls as valid values. So not sure the comparison is fully adequate.
Now, the most important is that the option is available, I don't have a strong opinion on the default.

Ok, let's  not bother with the discussion about defaults, then.


[Storage] STG94 GA Release Changelog Bump

As title states

API change check
API changes are not detected in this pull request.

API change check
API changes are not detected in this pull request.

API change check
API changes are not detected in this pull request.

API change check
API changes are not detected in this pull request.

API change check
API changes are not detected in this pull request.

API change check
API changes are not detected in this pull request.


Generates fresh types after clean

Every script besides linting, relies on the types being generated.
At the moment only yarn coverage does an initial yarn typechain with should be unnecessary if cleaning took care of this.

Makes sense. Thanks again for contributing to this repository!


Double requestSolution sent for Firefox Focus (Android)

Similar to https://github.com/ssb-ngi-pointer/go-ssb-room/issues/170 but sign-in succeeds, it's just odd or undesirable that there would be two calls to requestSolution.
On Chrome Android and normal Firefox Android, only one requestSolution is called.

I have a hunch Firefox Focus might be doing a HEAD request first, which might be handled like a GET.


TaskbarX bugs after changing main monitor.

Describe the bug
When I turn off my main monitor and turn on the second monitor, Taskbar gets buggy as you can see in the screenshot. The monitors have different resolutions, I don't know if this has to do with the problem. To fix it I have to restart TaskbarX
Screenshots

As you can see the bar is not centered, and the panel on the right (Time, Network, etc) is not visible.
Desktop (please complete the following information):
Windows 10 21H2 19044.1566

I also have this problem after I wake my computer from the sleep, it doesn't show up the panel on the right.

Desktop:
Edition	Windows 10 Professionnal
Version	21H2
Installed the 03/03/2022
Build 19044.1526

I run into the same issue when switch from my laptop display to a monitor (not utilizing dual displays, switching primary display).
TaskbarX Ver: <IP_ADDRESS>
Laptop
Edition	Windows 10 Pro
Version	21H2
Installed on	2022-02-16
OS build	19044.1586
Experience	Windows Feature Experience Pack 120.2212.4170.0

I also experience this issue. This is the sequence of events in my case

Use laptop without secondary display
Close laptop and allow to deep sleep (doesn't seem to be an issue if just in sleep mode)
Plug in a secondary monitor of higher resolution
Open the laptop and log in
Taskbar is cropped
Restart TaskbarX

This happens when I'm working at one location with the laptop display then close the laptop, drive to another location, and use a secondary display.
Edition	Windows 10 Enterprise
Version	21H2
Installed on	31/03/2021
OS build	19044.1706
Experience	Windows Feature Experience Pack 120.2212.4170.0

I have same problem although I use 1 Ultrawide monitor 49 inch, that when I work split for 2 sources. After work I switch to my personal computer to be ultra wide again and taskbarX seems to be blocked at previous resolution. Obiously fix is to restart taskbarX but it's kinda tideous to do it everyday couple of times.

I have exactly the same problem the op had 2 years ago, has there been any fix other than restarting the program when this happen ?