Unable to access java.sql namespace

Unable to access redshift database using this as a guide.
https://docs.aws.amazon.com/redshift/latest/mgmt/connecting-in-code.html
Given the errors are ClassNotFoundException I thought it might be a configuration issue.
Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/SQLException
    at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
    at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3139)
    at java.base/java.lang.Class.getDeclaredMethod(Class.java:2430)
    at org.jetbrains.kotlin.runner.AbstractRunner.run(runners.kt:46)
    at org.jetbrains.kotlin.runner.Main.run(Main.kt:109)
    at org.jetbrains.kotlin.runner.Main.main(Main.kt:119)
Caused by: java.lang.ClassNotFoundException: java.sql.SQLException
    at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:563)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
    ... 6 more

Could you post a more self-contained example (including dependency declarations)?
I could imagine that it is just another flavor of https://github.com/holgerbrandl/kscript/issues/155#issuecomment-419034634
See also https://github.com/holgerbrandl/kscript/issues/109

When running exactly the same bits with
        Class.forName("com.amazon.redshift.jdbc4.Driver")

instead, I get:
Connecting to database...
java.util.NoSuchElementException
	at java.util.StringTokenizer.nextToken(StringTokenizer.java:349)
	at com.amazon.jdbc.common.BaseConnectionFactory.acceptsURL(Unknown Source)
	at com.amazon.jdbc.common.AbstractDriver.connect(Unknown Source)
	at java.sql.DriverManager.getConnection(DriverManager.java:664)
	at java.sql.DriverManager.getConnection(DriverManager.java:208)
	at Kscript_sql_ticket163Kt.main(kscript_sql_ticket163.kt:35)
	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.jetbrains.kotlin.runner.AbstractRunner.run(runners.kt:61)
	at org.jetbrains.kotlin.runner.Main.run(Main.kt:109)
	at org.jetbrains.kotlin.runner.Main.main(Main.kt:119)
java.sql.SQLException: No suitable driver found for ***jdbc cluster connection string ****
	at java.sql.DriverManager.getConnection(DriverManager.java:689)
	at java.sql.DriverManager.getConnection(DriverManager.java:208)
	at Kscript_sql_ticket163Kt.main(kscript_sql_ticket163.kt:35)
	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.jetbrains.kotlin.runner.AbstractRunner.run(runners.kt:61)
	at org.jetbrains.kotlin.runner.Main.run(Main.kt:109)
	at org.jetbrains.kotlin.runner.Main.main(Main.kt:119)

which is what I'd expect to see given that I don't know pw or user. I'm on

Kotlin version 1.2.61-release-89 (JRE 1.8.0_162-b12)
java version "1.8.0_162"

Closed due to inactivity. Feel welcome to keep commenting on this thread/

I had a similar problem using a personal library that uses Gson inside
java.lang.NoClassDefFoundError: java/sql/Time

        at com.google.gson.Gson.<

looks like the java.sql.* JDBC stuff is not included when we run the script.

@gianluz Could you provide a complete example?

I think this might be related to the java module system. I can run this small script:
#!/usr/bin/env kscript

//DEPS com.vladsch.kotlin-jdbc:kotlin-jdbc:0.4.8,mysql:mysql-connector-java:5.1.47

import com.vladsch.kotlin.jdbc.*

Class.forName("com.mysql.jdbc.Driver")
val session = session("jdbc:mysql://xxx", "xxx", "xxx")
val query = sqlQuery("select 1 as val")
val ids: List<Int> = session.list(query) { row -> row.int("val") }
println(ids)

fine with JAVA_HOME set to a java 8 vm, but with openjdk11 I get a java.lang.ClassNotFoundException: java.sql.Driver error.
I tried to use //KOTLIN_OPTS in various way to maybe get the java.sql module enabled, but no luck so far

Indeed the annoying module system finally found its way into kscript. :-|
Just as a reminder for me
/usr/libexec/java_home -V
// export JAVA_HOME=`/usr/libexec/java_home -v 10`
// export JAVA_HOME=`/usr/libexec/java_home -v 1.8`

@gloeglm How would you normally configure the module system when calling java to allow access to java.sql?

@holgerbrandl
Usually the java.sql module should be enabled by default actually. In a normal JVM you can list the enabled modules by running java --list-modules - I am not sure where that module gets lost.
On a plain JVM re-enabling certain modules works by passing --add-modules java.sql to as a JVM argument, at least thats how it works for f.e. re-enabling jaxb

I figured out the command thats actually being run by adding set +x to the kotlinc script on my system, and it looks something like this:
/usr/lib/jvm/java-11-openjdk-amd64/bin/java -Xmx256M -Xms32M -Xmx4g -Dkotlin.home=/home/m.gloegl/.sdkman/candidates/kotlin/1.2.41 -cp /home/m.gloegl/.sdkman/candidates/kotlin/1.2.41/lib/kotlin-runner.jar org.jetbrains.kotlin.runner.Main -classpath /home/m.gloegl/.kscript/old_fps_scoring_export.ef4ca496ee5b37ea.jar:/home/m.gloegl/.sdkman/candidates/kotlin/1.2.41/lib/kotlin-script-runtime.jar:/home/m.gloegl/.m2/repository/com/vladsch/kotlin-jdbc/kotlin-jdbc/0.4.8/kotlin-jdbc-0.4.8.jar:/home/m.gloegl/.m2/repository/org/jetbrains/kotlin/kotlin-reflect/1.2.61/kotlin-reflect-1.2.61.jar:/home/m.gloegl/.m2/repository/com/zaxxer/HikariCP/3.1.0/HikariCP-3.1.0.jar:/home/m.gloegl/.m2/repository/org/jetbrains/annotations/15.0/annotations-15.0.jar:/home/m.gloegl/.m2/repository/com/vladsch/boxed-json/boxed-json/0.5.16/boxed-json-0.5.16.jar:/home/m.gloegl/.m2/repository/org/glassfish/javax.json/1.0.4/javax.json-1.0.4.jar:/home/m.gloegl/.m2/repository/joda-time/joda-time/2.9.9/joda-time-2.9.9.jar:/home/m.gloegl/.m2/repository/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar:/home/m.gloegl/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-common/1.2.61/kotlin-stdlib-common-1.2.61.jar:/home/m.gloegl/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.2.61/kotlin-stdlib-jdk8-1.2.61.jar:/home/m.gloegl/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.2.61/kotlin-stdlib-jdk7-1.2.61.jar:/home/m.gloegl/.m2/repository/mysql/mysql-connector-java/5.1.47/mysql-connector-java-5.1.47.jar:/home/m.gloegl/.m2/repository/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar:/home/m.gloegl/.m2/repository/com/fatboyindustrial/gson-javatime-serialisers/gson-javatime-serialisers/1.1.1/gson-javatime-serialisers-1.1.1.jar:/home/m.gloegl/.m2/repository/com/beust/klaxon/3.0.1/klaxon-3.0.1.jar:/home/m.gloegl/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.2.10/kotlin-stdlib-1.2.10.jar Main_My_script

Adding -list-modules to the java command shows the java.sql module as loaded. Might this be due to the additional classloader wrapping stuff being done in https://github.com/JetBrains/kotlin/blob/master/compiler/cli/cli-runner/src/org/jetbrains/kotlin/runner/runners.kt ? The URLClassLoader that is used to load the script main class is explicitly constructed with a null parent.

Refer to: http://java9.wtf/class-loading/

Reported this as a kotlin issue: https://youtrack.jetbrains.com/issue/KT-28475

Thanks for reporting it to jetbrains. Indeed the classloader of kotlin has some issues. Fingers crossed that they will fix is soon. Classloader stuff is one of the most often reported kscript issues (in various flavors of course).

Not strictly a duplicate, but centering around the same problem is #239

Hello all,
please help me out , i am getting below error while connecting AS400(iseries server) from java , i am calling RPGLE Program.
Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/Driver
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1095)
i would be great help thansk

I can confirm this still affects the 3.0 line. Workaround for the moment is just to package and then run the script.

I think this was to be expected since it is a kotin platform bug https://youtrack.jetbrains.com/issue/KT-28475

hello, it looks like the kotlin bug is resolved but I still get NoClassDefFoundError: java/sql/Driver. Weirdly enough, it works if I run with kscript --interactive h2.kts and paste the code directly in the repl.
This does work on java 8, but not on 11+ (which is what I need to run one of my scripts). Any update on this issue?
h2.kts
#!/usr/bin/env kscript
@file:DependsOn("com.h2database:h2:1.4.200")

import java.util.*
import java.sql.*

var conn: Connection? = null
try {
    Class.forName("org.h2.Driver")
    conn = DriverManager.getConnection("jdbc:h2:mem:dev")
    val stmt = conn!!.createStatement()
    val rs = stmt.executeQuery("SHOW DATABASES;")
    while (rs.next()) {
        println(rs.getString(1))
    }
} catch (e: Exception) {
    e.printStackTrace()
} finally {
    conn?.close()
}

I, too, am stumbling upon this issue, and it's quite unfortunate since I was keen on using Gson (a fairly popular library)!
The same script works with standard kotlin script (main.kts), but I would prefer to use kscript for its packaging feature.

I strongly believe that this is still a platform bug that has been addressed just to some extent in the fix of https://youtrack.jetbrains.com/issue/KT-28475 for kotlinc but not yet for kotlin.
I've created another ticket describing this problem in https://youtrack.jetbrains.com/issue/KT-46312 . I think there is nothing we can do in kscript until this issue has been addressed.

I'm not entirely sure that my problem is the same as the one discussed in this issue, but I have been getting java.lang.NoClassDefFoundError: java.sql.SQLException everytime I have run any kscript without first setting my jdk to 1.8. (Otherwise I use a later java version.) And I always forget to set the jdk, and then receive an error message that does not indicate what the solution is.
I thought this just had to do with Kotlin requiring 1.8, but after reading this thread (and trying out a few things) I realise that it has more to do with the fact that I always import a (home written) package that requires the java sql-library.
Anyway, based on @alexproca's workaround I wrote a shell script that first sets the jdk to 1.8 and then calls kscript:
#! /usr/bin/env zsh

export PATH=$(echo $PATH | sed -E -e "s;:'/System/Library/Frameworks/JavaVM.framework/Home/bin';;" -e "s;'/System/Library/Frameworks/JavaVM.framework/Home/bin':?;;")
if [ -n "${JAVA_HOME+x}" ]; then
        export PATH=$(echo $PATH | sed -E -e "s;:${JAVA_HOME};;" -e "s;${JAVA_HOME}:?;;")
fi
unset JAVA_HOME
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
export PATH=$JAVA_HOME/bin:$PATH

exec "/usr/local/bin/kscript" "$@"

I saved this in a file called kscriptwithjava8, and used that one in my shebang at the top of my kt/kts file:
#! /usr/bin/env kscriptwithjava8
//Normal kscript file
...

That's much more elegant than my workaround! Thanks for sharing 😊

Any update on that ? I can't use Java 8 for my script, the dependencies I use are not compatible with Java 8, and kscript throw me a "Unrecognized option: --add-modukes java.sql" error.
All Youtrack tickets are marked as fixed, I'm using kscript 4.1.1 with kotlin 1.7.21, and Java 17 on Linux. All should be well working, but it's still not...

I had this issue today and did some testing.
Java with a SQLException works as expected:
// javac A.java
// java A

import java.sql.SQLException;

public class A {
  public static void main (String[] args) throws SQLException {
    System.out.println("Hello World!");
    throw new SQLException();
    // throws as excepted: Exception in thread "main" java.sql.SQLException
  }
}

Kotlin does not:
// kotlinc A.kt
// kotlin AKt.class

import java.sql.SQLException;

fun main() {
  println("Hello, World!")
  throw SQLException()
  // does not throw, but fails before:
  // Caused by: java.lang.ClassNotFoundException: java.sql.SQLException
}

I tried adding modules in a lot of ways (I'm not even sure about the syntax) but that didn't change anything: kotlin -J'--add-modules' -J'java.sql' AKt.class
@Pyeroh

All Youtrack tickets are marked as fixed

The important one (https://youtrack.jetbrains.com/issue/KT-46312) has Kotlin 1.8.0-Beta as target version, so I guess we have to wait for a new Kotlin release.

Can confirm this too, both run with kscript and packaged, I don't have errors anymore ! Thanks for the feedback on that !!


Use consistent terms for experimental and beta

@quinnkeast What do you think about the new proposal? (I assumed early access assumed "to a feature in beta or experimental", I don't see how we could do early access to something that is General Admission, that would be contradictory)


feat: Announcement bar added for new release

Changes:
added a feature - announcement bar whih will notify users for new releases and after some days we can use next announcement for join slack channel
Screenshots of the change:

@juzhiyuan @Yiyiyimu @LiteSun

White background is not good for daylight theme

@juzhiyuan @Yiyiyimu apisix 2.6 has been released can we now add this announcement bar?

hey @Yiyiyimu is it ready for approval?

Sorry I just realized I'm not sure about the need of adding the announcement bar. People who enter our website would always check the latest version of APISIX so it seems could not be of much help. I think maybe it's a good to keep our welcome page as simple as possible

What if we add slack invitation to the announcement bar, like many of the docusaurus based websites does?

What if we add slack invitation to the announcement bar, like many of the docusaurus based websites does?

That's a good idea, could you raise some examples

@Yiyiyimu see examples

how it will look on our website

That's pretty cool! Need confirmation from @juzhiyuan

@juzhiyuan could you please drop your review here?


Mapper removes attributes that end in type and id

I understand this is intended behaviour, but shouldn't there be an option to pass attributes to not be omitted from the output?
Another property in the mapperOptions param like { keepAttributes: ['keep_type', 'thing-id'] }

Closing by the same reasons as stated in #52.

I understand that in #52 the submitter was ok with not adding this functionality. But shouldn't we make this an option, it seems to be a good idea.

But then the result is NOT jsonapi compliant.

While I understand the edge case, I think it's best that we stick to the spec. Otherwise, adding custom options could get out of control :)

The usual case for an attribute to be called something_id is because it refers to a relationship to another resource; this is the case in which the spec advises to not included these attributes.
But, in the case where an attribute has _id or _type in the name but is not a relationship (think of document_id to represent the ID document for a country), we should be allowed to include it in the payload, since it doesn't represent a relationship.

Another case to consider is relationships that use an attribute that doesn't end in id or type. As an example, we have a relation through the attribute avatar and have to then drop it from the output of the mapper.
This one is harder to specify as an option because we could be meaning to drop an attribute for certain relation only.

closed by #72


Add [] header option

Hmm, this is actually an unintended side effect, it's mostly a coincidence that this works due to the way to code is structured. This behavior is something that could easily break with future code updates and that may be complicated to guarantee continuous support for in future releases, because it's really illogical from a code perspective. You are supplying an empty array as header text, which doesn't really make sense because the header isn't an array. But since it's empty, it does what you want (remove the header altogether) as a side effect.
Interesting find and certainly something you can use in the meantime to get rid of the header space. But I would rather officially support this option with something like header: hide rather than relying on an unintended side effect. So I'm going to close this PR.


Issue when printing the page using Toast Grid

Hello,
I'm using @media print to style my page to print and when I try to print the page, from the preview I can already see that the grid system no long works.
Is there an quick fix for this issue?
Thank you.

Do you have a plunker? The issue might be with setting things to percents or pixels when media print wants inches.


Update for latest Rust

Thanks @indiv0! I updated to latest Rust this morning and it was all right.  Everyone who makes a contribution is eligible.

@tomassedovic sure! :)

Awesome, you should be set up now :-)

@tomassedovic yeah I'll stick with PRs.
We do something similar with Piston, where everything is a PR and we like to have at least one other set of eyes confirm the change. A CI run is always nice too :)

Yep :-)


Update README.md to update default Node version to 20

Description:
The README's default example for setting up Node use version 16, which is at end of life and produces warnings in GitHub Actions if used. This PR updates those examples to use 20 to ensure those warnings are removed.

bengreeley:patch-1


dev: Expose replication/publication/ttl intervals to NameSystemBuilder

Fixed #127

This looks good. I am assuming that these values weigh mostly on the behavior of the DHT, and are somewhat orthogonal to the time-based validity of UCANs in record values. Is that right?

Aye, unrelated to UCAN tokens' time-bounds


Mojang-Mapped Server NMS error

A server which uses mojang bindings rather than spigot bindings will not be able to load a plugin using commands through Lirand due to Lirand utilising reflection lookups.
It would be ideal to have a check to see if a method exists, and failing that (NPE would be thrown in the current case), attempt the mojang version.
// lirand.api.dsl.command.implementation.dispatcher.Dispatcher

// Before (L101)
		private val serverGetCommandDispatcherMethod = dedicatedServer::class.java.methods
			.find { it.returnType.simpleName == "CommandDispatcher" && it.parameterCount == 0 }!!

// MojMap Specific Fix (L101)
		private val serverGetCommandDispatcherMethod = dedicatedServer::class.java.methods
			.find { it.returnType.simpleName == "Commands" && it.parameterCount == 0 }!!

Just fork it, the library is abandoned :)


Add where filter for relational objects aswell?

Right now we can only do where filters on properties of objects
But being able to filter on relations aswell would be nice bc we could do the following:
query Example{
    user(
      where: {
            relationComment: {
                isNotNull: true
            }
        }
    ){
      username
      relationComment(where: {
        comment: {
          eq: "test"
        }
      }){
        comment
      }
    }
}

Right now even if we would filter the comments, we would still get all users that does not have a comment that equals test, so we would get a list of all usernames including those without the test comment
We could inverse the query and go from comments where it equals test and the including users inside of that as reference to parent object, but in some circumstances that does not make sense. (like having other filters on the user object itself)
EDIT:
Its also currently not possible to limit/offset relational objects only where for its sub properties

Offset, limit & order by are excluded from "one" type relations, since applying them to an already single record makes no sense. If they're absent from "many" relations too, I'm going to need your schema to investigate the issue. As for filtering by values of relations, I'll see what I can do, currently my filters are duplicate of drizzle's RQB filters, and I'm not sure whether that would be possible to make with the way the drizzle rqb works.

As for your example though, it's also solvable by approaching the query from the other end - you first query comments filtered by desired value, and then request the authors of those comments via relation.

I see the offset thing was my miss, that's correct
However approaching the sort from the other end wouldn't work in my case since I'm filtering both the main object and the sub object so the issue persists there, could we add a specific custom filter for relational objects only maybe?

I did some investigation of current Drizzle RQB API, and conclusion is that it is impossible to implement this feature now.
Hovewer, that feature is planned to be added to drizzle, and once that's out - I'll add it to drizzle-graphql ASAP.

Waiting for the relational API v2 would be the easiest way to tackle this problem
https://github.com/drizzle-team/drizzle-orm/discussions/2316
Right now would smth like this work as a hack?
https://github.com/drizzle-team/drizzle-orm/discussions/1152

While it could work, implementing this would be a nightmare and could quite possibly take me more time than it is left to wait for RQBv2

Could this possible be done in the mean time with like a filter after getting the data from the database on the backend side? to simulate the new relational api until it comes out. I find myself working around a lot of issues to get it to work somewhat on the client side

You could actually reuse a type and add a wrapper around it's generated resolver with filters for that, but I don't really see a point of adding such functionality to the library right now as it does not get mapped to a DB query


Article page width and design

The article's page is small and makes the article hard to read along with overlapping images
If possible it would be better to enlarge the actual article's page in the wash page. we can maybe consider reducing the space taken for the background and using that for the actual article
Furthermore, comparing the article shown in the wash page to the wikipedia initial layout shows a huge mismatch and some overlapping images and texts.

The entire page is being shoehorned into a space smaller than intended by the Wikipedia styles. Short of introducing some heavy-handed overrides, some pages will look a lot more crunched up and destroyed than usual.
If anyone's willing to do this, that would help with the presentation of certain classes of pages that use templates (e.g. any animal).

@tadman, let's keep this issue open.

Another example of this issue:


Link Tools to the Editor

Would like an edit this tool option in the tool menu.
Cannot find way to do codebox query parameters via URL so this tough - maybe fork codebox or find a different web IDE.

Closed in lieu of #101.


ig

Hi!
Please read this important information about creating issues.
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
This is an automated, informational response.
Thank you.
For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
uname -a:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

This sounds like a connectivity issue in general...
But in any case, can you provide:

repro steps
docker info output
docker version output

Closing, if you can provide requested info and repro and please ping here and we can take a look.
Thanks!

I have the same problem and I think it could be proxy related even though I have alredy set values for the proxy.  Here is the basic info required:
$ docker version
Client:
Version:      1.10.1
API version:  1.22
Go version:   go1.5.3
Git commit:   9e83765
Built:        Thu Feb 11 19:14:21 2016
OS/Arch:      windows/amd64
Server:
Version:      1.10.1
API version:  1.22
Go version:   go1.5.3
Git commit:   9e83765
Built:        Thu Feb 11 20:39:58 2016
OS/Arch:      linux/amd64
$ docker info
Containers: 6
Running: 0
Paused: 0
Stopped: 6
Images: 2
Server Version: 1.10.1
Storage Driver: aufs
Root Dir: /mnt/sda1/var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 24
Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Plugins:
Volume: local
Network: host bridge null
Kernel Version: 4.1.17-boot2docker
Operating System: Boot2Docker 1.10.1 (TCL 6.4.1); master : b03e158 - Thu Feb 11 22:34:01 UTC 2016
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 996.2 MiB
Name: default
ID: OGZY:HQCY:WTZS:PRYZ:HGDH:2LMR:26A4:DVXN:SI3L:WUWR:FHJ6:TIMB
Debug mode (server): true
File Descriptors: 10
Goroutines: 22
System Time: 2016-02-17T11:30:39.087794072Z
EventsListeners: 0
Init SHA1:
Init Path: /usr/local/bin/docker
Docker Root Dir: /mnt/sda1/var/lib/docker
Http Proxy: http://proxy1.audatex.es:80
Https Proxy: http://proxy1.audatex.es:80
Labels:
provider=virtualbox
$ uname -a
MINGW64_NT-6.1 AXES-1056 2.4.0(0.292/5/3) 2016-01-07 19:39 x86_64 Msys


Cache not redownloaded when deleted

Steps to reproduce:
pm2 start vedaccio (not exactly, I give exact path to global node modules bin file, as it doesn't work when I run pm2 start verdaccio, gives out node error)
ng new test-project
Delete @angular in C:/Users/MyPc/.config/verdaccio/storage
Delete node_modules in test-project
npm install inside test-project
@angular folder is not redownloaded in the cache folder, but it does appear in the node_modules
App Version:
2.3.1
Config file:
(#
# This is the default config file. It allows all users to do anything,
# so don't use it on production systems.
#
# Look here for more config file examples:
# https://github.com/verdaccio/verdaccio/tree/master/conf
#

# path to a directory with all packages
storage: ./storage

auth:
  htpasswd:
    file: ./htpasswd
    # Maximum amount of users allowed to register, defaults to "+inf".
    # You can set this to -1 to disable registration.
    #max_users: 1000

# a list of other known repositories we can talk to
uplinks:
  npmjs:
    url: https://registry.npmjs.org/

packages:
  '@*/*':
    # scoped packages
    access: $all
    publish: $authenticated
    proxy: npmjs

  '**':
    # allow all users (including non-authenticated users) to read and
    # publish all packages
    #
    # you can specify usernames/groupnames (depending on your auth plugin)
    # and three keywords: "$all", "$anonymous", "$authenticated"
    access: $all

    # allow all known users to publish packages
    # (anyone can register by default, remember?)
    publish: $authenticated

    # if package is not available locally, proxy requests to 'npmjs' registry
    proxy: npmjs

# log settings
logs:
  - {type: stdout, format: pretty, level: http}
  #- {type: file, path: verdaccio.log, level: info})

Additional information:
npm get registry: http://localhost:4873/
I've emptied the storage folder, ran npm install -g @angular/cli.
@angular/cli was indeed updated, checked by ng -v. But the storage folder is empty.

You miss a step here, remember all is cached locally by npm in ~/.npm/* or in your case in C:\Users\[Username]\AppData\Roaming\npm. Those steps works for me, the fact the packages are not being re-downloaded on storage is because npm first ask your local cache, otherwise go to the registry. I had to rm -Rf ~/.npm/* to force npm to ask again for the packages.

I haven't tested in Windows yet, but, my first hint is npm that is failing you, not verdaccio. Please provide more info about your windows environment in order to test in a Windows 10 I have over there.

I did have have to npm cache clear --force. Currently this does work for me, things are downloading as expected.
I suggest maybe adding a small RFAQ (really FAQ) which would at least note this point, alongside other relevant FAQs that should be in the README

Sure, we always can improve the documentation. Lately we have been posting new documents to improve the usage and set up, you can see https://github.com/verdaccio/verdaccio/tree/master/wiki I think your issue was merely related with npm, somehow, I'll point it out somewhere as a related topic because npm is harder than I seems so.
yarn no problem, It was just suggestion.
I'm not 100% sure what you mean with cache fallback resolution,  but, if you refer the local client cache.  I think until npm reach verdaccio there is nothing we can do with that.

@juanpicado regarding the cache fallback resolution, I do now realize there isn't much you can do about it. What I thought (at the time of writing) that maybe you have control over which cache is used (and next cache if first cache is missing what you need, and so on). But if this is done by npm, I guess that there's not much you can do.

@juanpicado I have a question tho.
In my company, we have an offline (not connected to www) Artifactory server, on which we run an npm repo. Problem is, of course, it's offline, so I can't really use it until I get the packages to the offline network.
For that I use verdaccio, which does the caching for me, so that I can pack it and move it to the offline network. Currently, we still don't know how to move the packages I'll move from verdaccio to artifactory, but I'm certain we'll figure it out.
I wanted to ask if perhaps you, or someone you know, has had the same need and already did that migration, and maybe I could get some advice before we try to do it ourselves.

With Artifactory you mean JFrog Artifactory?

@juanpicado Yes, exactly. Specifically, the pro version that can host an npm repository

Unfortunately I have no clue about JFrog  only they 💰 for use it 😈 ., I just played around with Nexus. Perhaps others has can give you any hit about it.
btw: I think we can close this ticket, right?

They have https://github.com/JFrogDev/nexus2artifactory perhanps there is a verdaccio/sinopia-> artifactory or something like that.

@juanpicado Hey, I'm experiencing this issue once again, continuously though, even after npm cache clean -f.
F.e: I created a new project using ng new, it installed @angular/common 4.3.6 in the node_modules folder.
I deleted @angular/common from verdaccio's storage folder, deleted the folder from node_modules, npm cache clean -fed again, then I ran npm install, and the package was not re-added to the storage.


Add ta1lsd003 by ta1lsd0ll

Song Name
ta1lsd003
Artist Name
ta1lsd0ll
Source
Youtube
Youtube Link
CljzyH_c3Uo
Direct File Link
No response
Song ID
1326366
Start Offset [ms]
0
Extra
Created from Auto Nong.
Created for level: 104083229
Downloaded: No

Accept


Change directory to the best match instead of opening fzf menu

Can this be done?
https://github.com/junegunn/fzf/discussions/3017

Implemented in 0.2.0, by setting FUZZYCD_MODE=non-interactive environment variable.


Upgrade Byte Buddy 1.15.0 -> 1.15.1

This PR contains the following updates:

Package
Type
Update
Change

Byte Buddy
compile
patch
1.15.0 -> 1.15.1

Release Notes

raphw/byte-buddy (Byte Buddy)
v1.15.1

Revert default EntryPoint for Android Gradle plugin to use DECORATE unless explicitly specified due to many generic type errors in Kotlin classes.

[ ] If you want to rebase/retry this PR, check this box

Suggested commit message:
Upgrade Byte Buddy 1.15.0 -> 1.15.1

See:
- https://github.com/raphw/byte-buddy/releases/tag/byte-buddy-1.15.1
- https://github.com/raphw/byte-buddy/compare/byte-buddy-1.15.0...byte-buddy-1.15.1


Should we reduce the name fields to just one or include placeholders as examples for filling out certain fields?

The audit specifically called out users incorrectly entering the full name into one field instead of separating them into the first-name last-name fields. Suggestions included making the full name one field or including placeholders to show that they must enter the first name and then the last name in the next field.
There is a lot to consider when thinking about placeholder text. If we include it in one place, should we include it in all fields? Is it actually helpful if the user is vision impaired? Placeholder text is usually lower opacity to ensure a user knows they still need to fill out that field. If it has a higher contrast it might be skipped over because a user thinks they have already auto or otherwise filled it out.

Make landlord's name one entry field instead of first/last name


All notebook output in VSCode displaying as  "[object Object]" shortly after file opens

Describe the bug
When a file is loaded output is briefly display and then replaced with the text [object Object]
This doesn't seem to happen with a dummy notebook with 1 cell, but with 2 or more it happens for me on multiple machines and even if I remove all my settings
Please complete the following:
Which version of .NET Interactive are you using? There are a few ways to find this out:
Version: 1.0.245901+0512fe0a05f5a99419a543463ee68233a3c60371
Build date: 2021-09-09T23:54:08.3484654Z

OS

[X] Windows 10
[ ] macOS
[ ] Linux (Please specify distro)
[ ] iOS
[ ] Android

Browser

[ ] Chrome
[X] Edge
[ ] Firefox
[ ] Safari

Frontend

[ ] Jupyter Notebook
[ ] Jupyter Lab
[ ] nteract
[X] Visual Studio Code
[ ] Visual Studio Code Insiders
[ ] Other (please specify)

Screenshots
If applicable, add screenshots to help explain your problem.

Additional  this only appears to impact the "polyglot" .NET interactive kernel. If I switch to the .NET (PowerShell) kernel things are OK, and immediately I switch to the .NET interactive it's [object Object] all the way down (obviously it's the noun but it reads like something is raising an objection like a new kind of error
If  switch kernels back to mono-lingual .NET (PowerShell) I then get Failed to save 'dummy.ipynb': The "input" argument must be an instance of ArrayBuffer or ArrayBufferView. Received an instance of Object  if I try to save the file.

Could you provide a few screen shots including the larger VS Code UI? I'm not clear about what you mean by the "polyglot" versus "mono-lingual" kernel.

Here are some repro steps:

using VS Code with this version:

Create a ipynb notebook
Run this command: #r nuget:Microsoft.DotNet.Interactive.SqlServer,*-*
Close VS Code
Restart VS Code
The output looks like this now:

@jonsequitur    I thought the multi-language kernal ".Net Interactive" was called "polyglot" by other people. Here's the .net powerShell kernel - cells are PowerShell or Markdown

Looking at the version this is the version which was installed into Jupyter months ago so did an update,  so its now
Version: 1.0.245901+0512fe0a05f5a99419a543463ee68233a3c60371
Build date: 2021-09-17T09:33:17.1229059Z
No change in behaviour but I notice that .NET interactive wants to "sieze" notebooks written for this kernel and convert them to the .NET Interactive kernel  which breaks them.
Switch kernels and the cells can be PowerShell / C# / F# etc

If I re-run about I get
Version: 1.0.246201+da749355d416da20e634e5c80073b92356b57e0e
Build date: 2021-09-13T18:09:40.2398727Z
Oddly this is a later version number but an earlier date.


runit.iso is wrong , it's give me dinit.iso

when I download last artix-base-runit-20210726-x86_64.iso i got Artix with Dinit init system why?

It can't possibly be dinit; the stable ISOs are from July, dinit was introduced in November.
Read the installation guide, on how to install from base. Keep in mind that it is perfectly possible to install any init from any ISO.

why I don't install directly from iso

I have BIOS EFI 32bit, and CPU x64bit,
I can't use your iso directly,
but Void-Linux is still supporting EFI by adding to their iso this file called grubia32.efi

i install distribution with tar.bz
I can't find any tarball for Artix, but I create from iso like this guys
I try to find old iso of Artix to use runit
but i can't found it yet

That explains it then. That script installs Artix and uses alphabetical order for selecting packages, and dinit comes before all others. Perhaps, if you remove the --no-confirm options, you'll get to select runit. Anyway, you can easily switch between init systems in Artix after installation.


First Draft of Erdos Renyi as an alternative Autopilot strategy

This pull request is a respons to #677 I have implemented the autopilotinterface with the Erdos Renyi Model (c.f.: https://en.wikipedia.org/wiki/Erdős–Rényi_model ) The algorithm should work. However there are some flaws to this implementation.
1.) I am not a go expert and don't know how inheritance is solved. There are currently functions implemented in autopilot/prefattach.go that are being used by autopilot/erdoesrenyi.go therefor there is quite some redundancy
2.) following the gist of 1.) the tests for the erdoesrenyi model are basically copy and pasted from the pref attachment model. Since both are random processes I guess technically the tests should really be the same. The code redundancy in that case also doesn't seem necessary.
However since I just started with go and lnd I hope you can appriciate my effort and provide valueable feedback so that I can learn more and provide better patches in the future.
Since we talked about this feature last weekend on the lightning hackday I guess this is up to @Roasbeef to review. However obviously anyone could be able to criticise in particular my go coding style.

@bretton will fix the spelling mistake in the next version of the pull request. Guess there will be some more code refactoring. Thanks you and @jraedisch anyway

Thanks for the PR! As is now, it's a bit difficult to review due to all the repetition. It isn't easy to determine what was copied over from the current default implementation, and what's unique to the current implementation.

I am not a go expert and don't know how inheritance is solved

There's actually no inheritance in Go. The code duplication here can be solved with a bit of refactoring, and also (some) of the set of tests generic to the attachment heuristic that's being used.


Use fromWebhook prop from the profile picture in the profile popover

Summary

Pass fromWebhook prop to the Pluggable for Popover Attributes in a plugin, to allow the plugin to changes its render if the post come from a webhook.
Ticket Link

https://github.com/mattermost/mattermost-plugin-custom-attributes/issues/37
Related Pull Requests

https://github.com/mattermost/mattermost-plugin-custom-attributes/pull/72
Screenshots

/
Release Note

Added `fromWebhook` property to the webapp plugin API

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!
/cc @jasonblais @jfrerich @emilyacook

Ooops,  technical mishap, I didn't want to delete this branch :sweat_smile:

/update-branch

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!
/cc @aspleenic

Hi, is there anything I could help with to get this PR merged?

This is waiting for QA. @DHaussermann anything we can do to help moving this forward?

/update-branch

@nathanaelhoun and @larkox sorry for the delay on this.
@dipak will help us out by taking a look.

@DHaussermann LGTM,
i tested this PR** https://github.com/mattermost/mattermost-plugin-custom-attributes/pull/72 without this pass-fromWebhook-prop-to-webapp-pluggable webapp code and still i was getting the issue then tested pull-72 PR with this webapp code and its LGTM, other user cant see the custom-attribute on the boat post.
FYI:- i don't have access of adding review or changing the tag as Qa-review-done.

Thank you very much for the contribution @nathanaelhoun :tada:


Fix a typo in the build script

Signed-off-by: Jammy Zhou<EMAIL_ADDRESS>

cool. i cant merge that from email. but will merge that in shortly.
On 8 June 2017 08:30:51 BST, Jammy Zhou<EMAIL_ADDRESS>wrote:

Signed-off-by: Jammy Zhou<EMAIL_ADDRESS>You can view, comment on, or merge this pull request online at:
https://github.com/hughperkins/tf-coriander/pull/48
-- Commit Summary --

Fix a typo in the build script

-- File Changes --
M util/build.sh (2)
-- Patch Links --
https://github.com/hughperkins/tf-coriander/pull/48.patch
https://github.com/hughperkins/tf-coriander/pull/48.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/hughperkins/tf-coriander/pull/48

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Thanks!


hi,  how to implement custom cell.. i want the same layout which you have implemented in section 1.

Not really sure what you are asking for.  The screenshots are from the demo, so if you want to implement something like that just look at the demo code to see how it was done.


Incorrect minimum Python version

Solution to issue cannot be found in the documentation.

[X] I checked the documentation.

Issue
This conda-forge package indicates python >=3 as a dependency.  However, as seen in the Github repo, Python 3.8 has been the minimum required version since argh v0.28.0.
Installed packages
N/A

Environment info
N/A

I would happily merge in a PR that addresses this


tools-version APIs refactoring

motivation: make code using tools-version base logic easier to reason about

rename SwiftVersion::currentVersion -> SwiftVersion::curent
rename ToolsVersion::curentToolsVersion -> ToolsVersion::curent
deprecate ToolsVersionLoaderProtocol which had no functional use (redundant abstraction)
deprecate ToolsVersionLoader and refactor it as ToolsVersionParser, a stateless utility
rename and refactor the Manifest::path extension to ManifestLoader::findManiofest and clarify its expected usage and argument
move global function rewriteToolsVersionSpecification into a stateless utility ToolsVersionSpecificationWriter::rewriteSpecification
Simplify and clarify the ManifestLoaderProtocol::load API, focusing it on loading the manifest at a given path
Create a new API in ManifestLoaderProtocol to load a manifest from a package directory, which includes finding the correct manifest based on the active tools-version. deprecate duplicate code at the call sites that did the same in favor of this centralized function
adjust workspace tests to not rely on a hack where a missing manifest would default on the current tools-version
update call sites and tests

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test linux

@swift-ci please test package compatibility


Enable SDK Automation for new code generator

The SDK Automation spec can be found at https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/sdkautomation/sdk_customization.md.

[ ] Add automation configuration for new code generator in the specs repo
[ ] Add new swagger_to_sdk configuration file in the language repo
[ ] Add generate script (./eng/scripts/generate_sdk) that will implement the sdk automations spec.

It is finished : https://github.com/Azure/azure-sdk-for-python/blob/main/scripts/automation_generate.sh


Discard stale state instead of failing migration

Motivation
If during migration of nipost_builder_state.bin a stale challenge is encountered it will not be migrated to local.sql.
Description

extended the migration 0003 by checking if the challenge hash in nipost_builder_state.bin matches the hash in the challenge table in the DB

if not (or no challenge in DB) the state is considered stale and will not be migrated

added new test to check for new behavior
updated existing tests to be in a valid state (i.e. have a challenge in DB when migrating nipost_builder_state.bin).

Test Plan

existing tests were updated
new test was added

TODO

[x] Explain motivation or link existing issue(s)
[x] Test changes and document test plan
[x] Update documentation as needed
[x] Update changelog as needed

bors merge

bors cancel

bors merge

bors merge

bors merge

bors merge

I added t.Skip to the failing tests, those should be removed when merging https://github.com/spacemeshos/go-spacemesh/pull/5680/ and https://github.com/spacemeshos/go-spacemesh/pull/5683/
bors merge


Support running jobs in jupyterhub namespace

@TomAugspurger Currently all jobs are created in the jupyter user's username namespace.  I assume kbatch is meant to be used only when enable_user_namespaces is enabled. Are there any thoughts on allowing jobs to be created in the same namespace as jupyterhub for those disabling enable_user_namespaces?
Also, I'd be happy to work on the PR for this, and I can propose implementation details based on your initial feedback.  As mentioned in the Pangeo meeting, we're hoping to also add the ability to automatically mount the user pod's volumes to the job pod, but this becomes more difficult if the user's pod and the job pod are deployed in different namespaces.

I assume kbatch is meant to be used only when enable_user_namespaces is enabled.

On our hub at https://planetarycomputer.microsoft.com/compute, we actually do have kbatch deployed, but aren't using user namespaces (yet).
As you've noticed, running jobs in a separate namespace precludes the ability to mount the user's home directory.

As for whether to allow this, I'll defer to you / @yuvipanda / other folks more knowledgeable about Kubernetes for whether that's feasible. Thus far, I've operated under the assumption that we can achieve some level of security and convenience by allowing the user to do anything within their Kubernetes namespace, but nothing outside of it. This has kept kbatch relatively simple, and we're hoping to simplify it further by making the kbatch-proxy component a true proxy and minimizing the amount of work it does (https://github.com/kbatch-dev/kbatch/issues/14).
If we allow spawning Job pods within the "main" Hub namespace, we'll need some more complicated authentication / authorization mechanism (I think).

Thanks for the response @TomAugspurger.  I'd love to hear @yuvipanda 's thoughts as well. :+1:

ping @yuvipanda
Any thoughts on this. Longer term, we would love to start using user namespaces but do we have any options in the interim.


Use Case K12: Set / Update External Charging Limit Without Ongoing Transaction

Scenario

External Control System sends a charging limit to Charging Station (not during a transaction).
Optional: Charging Station calculates new charging schedule.
Charging Station adjusts the charging speed.
If the charging limit changed by more than: LimitChangeSignificance, the Charging
Station sends a NotifyChargingLimitRequest message to CSMS with optionally the set charging
limit/schedule.
The CSMS responds with a NotifyChargingLimitResponse to the Charging Station.

Functional Requirements

[ ] K12.FR.01: When an external charging limit/schedule is received while no transactions are ongoing, the total load of all EVSEs SHALL NOT exceed this given limit. (This may not apply)
[ ] K12.FR.02: When K12.FR.01 AND Charging limit changed by more than: LimitChangeSignificance, the Charging Station SHALL inform the CSMS of the new charging limit/schedule imposed by the external system by sending a NotifyChargingLimitRequest.
[ ] K12.FR.03: When K12.FR.02 AND EnableNotifyChargingLimitWithSchedules is true, the NotifyChargingLimitRequest SHALL contain the charging limit/schedule as set by the external system.
[ ] K12.FR.04: When K12.FR.02, the Charging Station SHALL NOT set the chargingLimitSource to CSO in the NotifyChargingLimitRequest.
[ ] K12.FR.05: When an external charging limit/schedule is received, the Charging Station SHALL use purpose ChargingStationExternalConstraints when reporting about this limit (e.g. in a ReportChargingProfilesRequest).

It is RECOMMENDED to use negative values for the id of a ChargingStationExternalConstraints profile, to minimize the risk of a clash with an id that CSMS might use for a


provide a more recent (42.2) image

I have the feeling the currently available image on hashicorp's atlas is a bit outdated.  It would be nice to have a more recent version.

I was looking for 42.2 images today (2017-03-24) and could not find them anywhere. Neither on the openSUSE server nor on Atlas. Can you please add them again?

I have built a 42.2 virtualbox image and testing it at the moment. Once I build a libvirt one I will publish both and close this bug

libvirt takes a while because I need to find a proper hosting service since atlas does not understand the libvirt provider. However, the virtualbox image is now available so I am closing this bug. Once the libvirt image is online I will update the readme with the new location.


I Get the error like : No module named 'gym.env.robotics', can you give me some suggestions.

The core issuse is the gym version, when gym.version > 0.21，  there is a problem. Hope to know the gym version.

Fine.
pip install gym == 0.20.0, which could added in the README.md
Sincerely thank the author for the contribution of this work.


Merge pull request #188 from NuGet/master

Update live

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Can not build project.

Hi. I'm using vs 2015 and create project from mvc6 boilerplate, After restore package (Reference,Dependencies), I try to build project but it always has error "Predefined type 'System.Object' is not defined or imported". Please advise.
Regards.

It sounds like your NuGet dependencies have not been restored. Right click on references and hit restore. Also try deleting your project.lock.json file and then doing a restore.

Hi. I do following your suggestion but still get error.
Severity Code Description Project File Line Error CS0518 Predefined type 'System.Object' is not defined or imported	BPx1.DNX Core 5.0
Regards.

Can you give me more details:

Visual Studio Version (Is it Update 1?).
DNVM Version.
What are the steps you followed to reproduce the error.
Are all the reference assemblies all restored? Do they have yellow exclamation marks on them?

Hi.
I just update my visual studio community 2015 to update 1 and create project with template "ASP.NET MVC 6 (RC1 Update 1) Boilerplate (Also RC1)" then restore references and dependencies. I also do dnvm upgrade on powershell too but It still have error when I build it. references and dependencies both success to restore.

Can you please send the output of the dnvm version and dnvm list command. Also a copy of your 'project.json` file.
I'm guessing that there is something wrong with your installation, I've tested the project template on two machines just in case and it seems fine.

Hello. Please find my dnvm version and list below.

Here is my project.json
{
"userSecretsId": "BPy-31fae7bb-7b98-41ab-b791-7b0df1edda42",
"version": "1.0.0-*",
"dependencies": {
"Boilerplate.Web.Mvc6": "2.0.0-rc1-final-3",
"Boilerplate.Web.Mvc6.TagHelpers": "2.0.0-rc1-final-3",
"Glimpse": "2.0.0-beta1",
"Microsoft.AspNet.CookiePolicy": "1.0.0-rc1-final",
"Microsoft.AspNet.Diagnostics": "1.0.0-rc1-final",
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final",
"Microsoft.AspNet.Mvc": "6.0.0-rc1-final",
"Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-rc1-final",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
"Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final",
"Microsoft.AspNet.Tooling.Razor": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.Json": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.UserSecrets": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging.Console": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging.Debug": "1.0.0-rc1-final",
"Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-rc1-final",
"Newtonsoft.Json": "7.0.1"
},
"commands": {
"web": "Microsoft.AspNet.Server.Kestrel"
},
"compilationOptions": {
"emitEntryPoint": true
},
"frameworks": {
"dnx451": {
"frameworkAssemblies": {
"System.Net.Http": "<IP_ADDRESS>",
"System.ServiceModel": "<IP_ADDRESS>"
}
},
"dnxcore50": {
"dependencies": {
"System.IO.Compression": "4.1.0-beta-23516",
"System.Net.Http": "4.0.1-beta-23516"
}
}
},
"exclude": [
"wwwroot",
"node_modules",
"bower_components"
],
"publishExclude": [
"node_modules",
"bower_components",
".xproj",
".user",
"**.vspscc"
],
"scripts": {
"prepublish": [ "npm install", "bower install", "gulp build" ]
}
}
Regards

You have an old version of DNVM. See my version:

You need to install the ASP.NET 5 RC1 Update 1 tools from the https://get.asp.net/.


WIP: Add timers to resolveConstants to track how much time we spend merging and sorting vectors

Add timers to resolveConstants to track how much time we spend merging and sorting vectors.

Motivation

In Stripe's codebase, there is a gap between when the parallel threads finish processing files and the serial phase of resolve_constants begins. I do not know if this is attributable to sorting or insertion overhead.
Test plan

Does not change behavior.

We have a policy of testing changes to Sorbet against Stripe's codebase before
merging them. I've kicked off a test run for the current PR.  When the build
finishes, I'll share with you whether or how it failed. Thanks!
Stripe employees can see the build results here:
→ https://go/builds/bui_IdIDIh0gDWFs3g
→ https://go/builds/bui_IdIDaCRJiosdKw

Survey says: It's sorting. We're spending time sorting. I'm going to try to break this down with finer-grained timers.

We have a policy of testing changes to Sorbet against Stripe's codebase before
merging them. I've kicked off a test run for the current PR.  When the build
finishes, I'll share with you whether or how it failed. Thanks!
Stripe employees can see the build results here:
→ https://go/builds/bui_IdIUNjtscPD16u
→ https://go/builds/bui_IdIU5asMGpMOYx

Turns out that sort order is important. If we keep items in tree visit order, we end up putting ancestors in the wrong order! :(
If we can make the tree visit order match what we expect, we can sort cheaply by moving contiguous vector items for a given file. I have code for this, but it requires us to enqueue ancestor resolution items in the correct order.


Accessibility Tests for Newsletter

This PR is for accessibility tests for newsletter.
I have added a new method in the page factory to return all the pages. The pages are being iterated and injected axe-core and run for checking accessibility.
Once the accessibility checks are run, a snapshot is created for every page.
So, next time a new page is introduced, we just need to add it to the page factory, and the accessibility script will do the job.
An accessibility util is added which has the methods to inject, run, and write axe into the tests.
Steps to run the test:

Go to the accessibility _tests folder
Run the test using python -m pytest test_accessibility.py --snapshot-update (We use --snapshot-update only for the first time to create the snapshot directory)
Once the test is run, you can see the accessibility for each page inside the snapshot folder.

Can you add axe_selenium_python module to the requirements.txt file

Done @shivahari

Can you also add the command to run the test in the deploy GitHub workflow here https://github.com/qxf2/newsletter_automation/blob/main/.github/workflows/deploy.yaml#L47

Done @shivahari and pushed.

@ajitava-git Can you please check CI run issue and make sure it will run fine as you touched the github action file with this PR.

@ajitava-git Can you please check CI run issue and make sure it will run fine as you touched the github action file with this PR. Also think about the order of tests run, I feel it better to run the faster tests first before running slower tests like UI tests.

Done @rohandudam! For now, I have kept the order in this way. API Tests followed by Accessibility Tests followed by UI Tests.

@ajitava-git Can you please check CI run issue and make sure it will run fine as you touched the github action file with this PR. Also think about the order of tests run, I feel it better to run the faster tests first before running slower tests like UI tests.

@rohandudam The accessibility tests run fine in CI now.


symbolize! for time series

Codecov Report

Merging #35 (ad8a733) into master (999c2f9) will increase coverage by 0.17%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #35      +/-   ##
==========================================
+ Coverage   81.55%   81.73%   +0.17%
==========================================
  Files          17       17
  Lines         309      312       +3
==========================================
+ Hits          252      255       +3
  Misses         57       57

Impacted Files
Coverage Δ

src/kerneldensity/NaiveKernel.jl
100.00% <ø> (ø)

src/symbolic/utils.jl
100.00% <ø> (ø)

src/symbolic/SymbolicPermutation.jl
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 999c2f9...ad8a733. Read the comment docs.


MSBuild locator does not include Jetbrains MSBuild

Hi @enricosada I'm trying the following code:
MSBuildLocator()
|> fun ml -> ml.InstalledMSBuilds()

it returns
  [Path
     "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\bin\MsBuild.exe";
   Path "c:\Windows\Microsoft.NET\Framework\v4.0.30319\MsBuild.exe";
   Path "c:\Windows\Microsoft.NET\Framework\v3.5\MsBuild.exe"]

however I do have the JetBrains MSBuild installed as well. It should have added C:\Program Files\Jetbrains\MSBuild\15.0\Bin\MSBuild.exe to the list as well I guess.
Note that Program Files\Jetbrains\MSBuild is a location of my own choosing.
Is there any way to include this path?

So the path is not fixed, so we cannot guess.
Afaik we cannot guess unless there is a registry or something like that (but seems unlikely, because install it's just a zip and configured in rider).
That method InstalledMSBuilds is useful to show default known locations, so user can choose.
If you know the location, you can override that
let config =
	{ LoaderConfig.Default(msbuildLocator) with
           MSBuildHost = MSBuildExePath.Path @"C:\Program Files\Jetbrains\MSBuild\15.0\Bin\MSBuild.exe" }

But i this think cannot be done for the users, because need anyway to set something (an env var?)
I think it's possibile to:

check also the PATH for msbuild.exe, and rider users need to just add that directory to PATH once.
consumers set it, like in FSAC/ionide, asking the user and setting the path in  LoaderConfig.MSBuildHost

Or find a way to read rider config, if exists
I dont like to add a config file for this library, i think consumer should instead use their config file.

We're now using official Locator provided by Microsoft.Build.Locator package


CI for Node

Game
- Initializes with two players
- Starts the game with a random player
nextPlayer
- Sets the current player to be whoever it is not


Increase timeout

Because tidyverse takes around 20 minutes... Needs to up the wait time

Rolling this change in my next PR.


Correct the system prompt.

Improve the system prompt to yield better result.
Tasks:

[ ] Rewrite the prompt at ``./prompt.txt`

Acceptance Criteria:

The prompt should be in english.
All the fields in the database should be present.
The output should be a complete JSON

This appears to be a duplicate of issue #66, which has already been closed. I will proceed to close this one as well.


[BUG] OnUserMutedAudio and OnRemoteAudioStateChanged events are not fired.

Describe the bug
OnUserMutedAudio and OnRemoteAudioStateChanged occur on UnityEditor, but after WebGL build, no events are fired and instead "SendMessage: object AgoraEventHandler not found!" is displayed instead.
To Reproduce
Steps to reproduce its behavior.

launch the application in a browser after the build.
succeed in Join (confirm that voice chatting is possible)
Execute IRtcEngine.MuteLocalAudioStream(isMute); to change the mute state.

Expected behavior
OnUserMutedAudioおよびOnRemoteAudioStateChangedイベントが発行される。
Desktop (please complete the following information):

Win11
Chrome
Unity2021.3.10

Additional context
On UnityEditor, we have confirmed that events are being issued.

Regarding this Issue, we have found the cause.
In the sample project, "AgoraWebGLEventHandler" was deployed as a component of "AgoraEventHandler".
In my usage, "AgoraWebGLEventHandler" was attached as a component of "GameController".
By placing it as a component of "AgoraWebGLEventHandler" as in the sample project, the callback now works correctly.


cascade target hover doesn't work in DDC

After the fix for #32083, cascade targets aren't hoverable at least in some cases
This is likely due to how cascade targets work in Analyzer. _getTarget will find the real target, but that means the same node could end up marked twice, possibly breaking the source mapping.

CC @vsmenon

This also may be specific to JS.MetaLet.
I would love for MetaLet to work more like DDK's handling of LetExpression. It tackles how to emit temporary variables without needing function blocks, which likely improves performance. That may be best to attack as a different bug, or putting off until we migrate to Kernel (at which point, it becomes moot).

We also cannot put source locations on JS.TemporaryId because it uses identity equality. That can be fixed by splitting the declaration and references to the temporary variable into 2 classes. I'm in favor of that & DDK needs it too, if it ever has spans on temp variables. (My assumption was that temps would not have source locations, however, at least for DDC there are some cases where they could have reasonable source locations.)

This may be related.  If I step through main below, dev tools pause 4 times on the line with just f and not any of the bar call sites cascaded from it.
class Foo {
  String greeting = "hello ";
  void bar(String name) {
    print('$greeting $name');
  }
}

void main() {
  var f = new Foo();

  f
    ..bar('world')
    ..bar('solar system')
    ..bar('galaxy')
    ..bar('universe');
}

This may be related. If I step through main below, dev tools pause 4 times on the line with just f and not any of the bar call sites cascaded from it.

yes that's expected (cascade target is marked multiple times due to how cascades are represented in Analyzer). Since DDK does not have an equivalent problem with cascades, I didn't push much on it yet.

https://dart-review.googlesource.com/#/c/sdk/+/42084


Bring README up to assignment spec

Changes
Fleshed out README with more detail. In particular:

Now explicitly mentions (and links to) our licence.
Mentions affiliation with SOFTENG 310, as required by assignment brief.
Added simulated screen recording of setup process.

Tests applied
Not applicable.
Issue ticket number(s)
This should fully address #20.
Checklist

[x] Documented
[x] Linting tests successful
[x] merge updated prod branch into development branch

Thanks Jasper, the restructured README looks great


Copying Extension Elements with Unknown Type Fails

Describe the Bug
Copying extension elements with an unknown namespace (e.g. Signavio) fails. Copies cannot be created since we don't know the Signavio model.
Steps to Reproduce

Open copy-signavio-extension-elements.bpmn.txt
Change user task to plain task

Expected Behavior

no error
extension elements are not copied

Environment

Camunda Modeler Version: ^3.3.0

Support: https://app.camunda.com/jira/browse/SUPPORT-6386

Will be fixed with upcoming patch release, cf. https://github.com/bpmn-io/bpmn-js/pull/1201

Closed via https://github.com/camunda/camunda-modeler/pull/1513#pullrequestreview-293041737


Discord Theme Bug.

Just a small little bug, that should be fixed easily idk tho.
But it acts like there is a scroll bar on the bottom of Discord.
How to get to this is scroll up and down the chat a little bit, then put your cursor under the box you type in and scroll to the right and left.
You might have to open the member bar a couple of time, and when scrolling down the chat scroll either to the right or left. (Does not work when "New messages" is showing)
Also how I found out how to get this to "un-glitch" is to put my cursor over the members.

Unable to reproduce on windows (both using a mouse with simulated horizontal scroll, and using a trackpad with horizontal scroll), that appears to be some sort of Linux distro, perhaps it is a linux only bug?
Could you disable the theme and try to reproduce the bug?

User has not responded in 12 days, there for this issue is closed and put under wontfix

issue isn't closed. @Maxie01


add JS Air and PermisPts to showcase

Add My 2 React Native Applications to showcase:

JS Air
iOS and android
javascriptair podcast related
open source
PermisPts

iOS only but working on Android version
french driving license related

By analyzing the blame information on this pull request, we identified @brentvatne and @manonthemat to be potential reviewers.

@facebook-github-bot shipit

Thanks for importing. If you are an FB employee go to Phabricator to review.


Assignment 12+n -- RBL progress presentation

Prepare slide for you presentation.
Present your idea.
Put link to your last slide here with you ID and name.

https://github.com/dudung/sk5009-01-2024-1/issues/12

21124026
https://github.com/dzakwanilhakim/RBL_SK5009_21124026

Ilona J M (20924008)
https://osf.io/b9e86

Ahmad Fayyadh (20923301)
https://osf.io/8wz2f/

Ghina Hanifah Alamsyah
ID: 10221037
Slide link: https://osf.io/r4qse


fix(ci): Link against an older version of libstdc++

Follow-up on https://github.com/wasmerio/wasmer/pull/1746#pullrequestreview-515882112
Changes made on wasmerio/wasmer must be ported here so the nightlies are also good.

CLosing since #3  has been merged.


Allow slice patterns for destructuring arrays & slices

This PR changes the ProjectionElem::Index variant so that it takes an Operand instead of a VarId. It then changes the index_to_function_calls pass to create a local when needed.
I'm using Operand as a way of encoding a Either<VarId, ConstantExpr>, I'm not sure that's entirely satisfactory. The hax -> ULLBC pass will never produce the variant Operand::Move, whence the panic! I introduced in index_to_function_calls.

Since you changed the charon AST, you'll have to update the corresponding types on the charon-ml side. In this case it's projection_elem in charon-ml/src/Expressions.ml. Please also increment the version in Cargo.toml to indicate an ast change, and run make test in the crate root to ensure everything works.

Thanks for the review! :)
Yeah, I saw the CI was not happy, but I don't understand why the ML parsers are failing.
The only thing that changed in the AST is ProjectionElem::Index. This seems not handled at all currently in the parser projection_elem_of_json.
Also, those should be gone at LLBC, if I understand correctly?

Ah, the CI failure is because of a RValue::Len. These should have all been removed by our micro-passes, I don't understand how this PR could have changed that. We should give a better error.

I'm merging because @protz really needs it. Something is broken on the side of Aeneas however.


Fixes

Is the "annotations" field flaky? I feel like I've seen this test fail a few times.

Travis sometimes use old versions of packages.
In this case it use old version of google-discovery-to-swagger.


upgrade rule explainer app on NXP MC environment

Actual behavior

Can we update the rule explainer app on the NXP HAC environment - the page isn't working at the minute.
https://h2oai.slack.com/archives/C03CSUT15QW/p1682675189275489
https://h2oai.slack.com/archives/C03CSUT15QW/p1682724311843189
Expected behavior

Steps to reproduce:
As per Audrey,
"I think they are HAMC
on their env this is not resolved:
https://7418523.dedicated.h2o.ai/apps/62f61ee1-119d-4e74-90c8-17aa3258bd12
it works on our internal.dedicated - does MC team needs to be involved to fix that on customer's side? Update - I have asked directly on #h2o-managed-cloud https://h2oai.slack.com/archives/C03F53QQEBX/p1684515733775569
"
Affected Versions:
OS, browser, other environment details and versions:
Related Issues (optional):

as per discussion https://h2oai.slack.com/archives/C03F53QQEBX/p1716558655186759?thread_ts=1684515733.775569&cid=C03F53QQEBX
"the app needs to be  pushed the wave bundle to the MC S3 and open an issues in the MC GH repo (https://github.com/h2oai/public-cloud-infrastructure)."

@arunaryasomayajula Please find the Wave artifact here: https://github.com/h2oai/wave-cluster-shap/releases/tag/v0.1.3. Let me know if you have any questions. Thanks.


i18n(fr): Update community-resources/content.mdx from #9900

Description (required)
i18n(fr): Update community-resources/content.mdx from https://github.com/withastro/docs/pull/9900

Related issues & labels (optional)

Suggested label: i18n

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale
File
Note

fr
community-resources/content.mdx
Localization changed, will be marked as complete.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.


HBASE-23833. The relocated hadoop-thirdparty protobuf breaks HBase asyncwal

Cherry pick this to branch-2. The cherrypick is clean.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
1m 50s
Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s
No case conflicting files found.

+1 :green_heart:
hbaseanti
0m  0s
Patch does not have any anti-patterns.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

_ branch-2 Compile Tests _

+1 :green_heart:
mvninstall
3m 32s
branch-2 passed

+1 :green_heart:
checkstyle
1m  9s
branch-2 passed

+1 :green_heart:
spotbugs
1m 57s
branch-2 passed

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
3m  7s
the patch passed

-0 :warning:
checkstyle
1m  7s
hbase-server: The patch generated 5 new + 2 unchanged - 0 fixed = 7 total (was 2)

+1 :green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

+1 :green_heart:
hadoopcheck
11m  5s
Patch does not cause any errors with Hadoop 2.10.0 or 3.1.2.

+1 :green_heart:
spotbugs
2m  7s
the patch passed

_ Other Tests _

+1 :green_heart:
asflicense
0m 15s
The patch does not generate ASF License warnings.

33m 15s

Subsystem
Report/Notes

Docker
Client=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1534/1/artifact/yetus-general-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/1534

Optional Tests
dupname asflicense spotbugs hadoopcheck hbaseanti checkstyle

uname
Linux 5e29c4c19438 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2 / 3f43b9e349

checkstyle
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1534/1/artifact/yetus-general-check/output/diff-checkstyle-hbase-server.txt

Max. process+thread count
94 (vs. ulimit of 12500)

modules
C: hbase-server U: hbase-server

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1534/1/console

versions
git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f) spotbugs=3.1.12

Powered by
Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 36s
Docker mode activated.

-0 :warning:
yetus
0m  7s
Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck

_ Prechecks _

_ branch-2 Compile Tests _

+1 :green_heart:
mvninstall
3m 33s
branch-2 passed

+1 :green_heart:
compile
0m 55s
branch-2 passed

+1 :green_heart:
shadedjars
4m 28s
branch has no errors when building our shaded downstream artifacts.

+1 :green_heart:
javadoc
0m 37s
branch-2 passed

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
3m 14s
the patch passed

+1 :green_heart:
compile
0m 55s
the patch passed

+1 :green_heart:
javac
0m 55s
the patch passed

+1 :green_heart:
shadedjars
4m 29s
patch has no errors when building our shaded downstream artifacts.

+1 :green_heart:
javadoc
0m 34s
the patch passed

_ Other Tests _

-1 :x:
unit
131m 40s
hbase-server in the patch failed.

153m  6s

Subsystem
Report/Notes

Docker
Client=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1534/1/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/1534

Optional Tests
javac javadoc unit shadedjars compile

uname
Linux df5e2751b340 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2 / 3f43b9e349

Default Java
1.8.0_232

unit
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1534/1/artifact/yetus-jdk8-hadoop2-check/output/patch-unit-hbase-server.txt

Test Results
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1534/1/testReport/

Max. process+thread count
3315 (vs. ulimit of 12500)

modules
C: hbase-server U: hbase-server

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1534/1/console

versions
git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)

Powered by
Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
1m 15s
Docker mode activated.

-0 :warning:
yetus
0m  5s
Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck

_ Prechecks _

_ branch-2 Compile Tests _

+1 :green_heart:
mvninstall
4m 27s
branch-2 passed

+1 :green_heart:
compile
1m 11s
branch-2 passed

+1 :green_heart:
shadedjars
5m 46s
branch has no errors when building our shaded downstream artifacts.

-0 :warning:
javadoc
0m 42s
hbase-server in branch-2 failed.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
4m 16s
the patch passed

+1 :green_heart:
compile
1m  8s
the patch passed

+1 :green_heart:
javac
1m  8s
the patch passed

+1 :green_heart:
shadedjars
5m 45s
patch has no errors when building our shaded downstream artifacts.

-0 :warning:
javadoc
0m 39s
hbase-server in the patch failed.

_ Other Tests _

+1 :green_heart:
unit
180m 32s
hbase-server in the patch passed.

207m 26s

Subsystem
Report/Notes

Docker
Client=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1534/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/1534

Optional Tests
javac javadoc unit shadedjars compile

uname
Linux 73534d750a78 4.15.0-91-generic #92-Ubuntu SMP Fri Feb 28 11:09:48 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2 / 3f43b9e349

Default Java
2020-01-14

javadoc
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1534/1/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-server.txt

javadoc
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1534/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt

Test Results
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1534/1/testReport/

Max. process+thread count
3009 (vs. ulimit of 12500)

modules
C: hbase-server U: hbase-server

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1534/1/console

versions
git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)

Powered by
Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.


Question about Cannot Import

This are parts of my code：

from tensorflow.python.eager.context import get_config
ImportError: cannot import name 'get_config'
can someone tell me why?

I tried to  import all the packages and   not getting any errors that you have faced. Please check the gist here.
Please use tensorflow.keras instead of keras  and  make sure you use Tensorflow 2.x  and let us know still if that doesn't resolve the  error. Thanks!


dep-scan: 5.3.4 -> 5.4.3

Description of changes
Since dep-scan locks appthreat-vulnerability-db to a specific version (and is not compatible with nixpkgs' version), this adds an override to match dep-scan's version specified in the pyproject.toml.
note: The current package seems to be broken due to version mismatch with appthreat-vulnerability-db, this should fix that.

https://github.com/owasp-dep-scan/dep-scan/releases/tag/v5.3.5
https://github.com/owasp-dep-scan/dep-scan/releases/tag/v5.4.0
https://github.com/owasp-dep-scan/dep-scan/releases/tag/v5.4.1
https://github.com/owasp-dep-scan/dep-scan/releases/tag/v5.4.2
https://github.com/owasp-dep-scan/dep-scan/releases/tag/v5.4.3
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[x] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[x] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 338839 run on aarch64-darwin 1

2 packages built:

dep-scan
dep-scan.dist

Result of nixpkgs-review pr 338839 run on x86_64-linux 1

2 packages built:

dep-scan
dep-scan.dist


Sync command in test suite causes --parallel option to fail

Executing 'python host_test.py -d /media/bridan01/MBED5 -f "/home/bridan01/dev/myfork/mbed/build/test/LPC1768/GCC_ARM/MBED_26/div.bin" -p /dev/ttyACM1 -t 10 -C 1.5 -m LPC1768'
Test::Output::Start
.MBED: Instrumentation: "/dev/ttyACM1" and disk: "/media/bridan01/MBED5"
HOST: Copy image onto target...
cp: failed to access ‘/media/bridan01/MBED4/timeout.bin’: Permission denied
.Test::Output::Finish
TargetTest::K64F[0]::GCC_ARM::MBED_24::Timeout Int us [TIMEOUT] in 30.31 of 15 sec
Building project TIME_US (K64F, GCC_ARM)
Executing 'python host_test.py -d /media/bridan01/MBED4 -f "/home/bridan01/dev/myfork/mbed/build/test/K64F/GCC_ARM/MBED_25/time_us.bin" -p /dev/ttyACM0 -t 15 -C 4 -m K64F'
Test::Output::Start
cp: failed to access ‘/media/bridan01/MBED4/time_us.bin’: Permission denied
MBED: Instrumentation: "/dev/ttyACM0" and disk: "/media/bridan01/MBED4"
HOST: Copy image onto target...
Test::Output::Finish

Note the lines where cp fails with the error cp: failed to access ... Permission denied.
I've also gotten mbeds into a sort of deadlock, where every test after a certain point times out.
This also happens to a lesser degree when running multiple instances of singletest.py in different terminals without using --parallel.
That being said, I haven't had an issue with it when testing multiple mbeds without the --parallel option. But it takes quite a while to test when you have lots of boards connected.

cc @PrzemekWirkus

After more investigation, I've found the reason why this is actually failing. When testing in parallel, the mbeds don't always mount to the same directory. Mbed-ls is only used at the beginning of the testing process, so it was trying to flash incorrect binaries. I've done some work so that mbed-ls is consulted before each test run, I'll try to get that into a PR soon.


CrossEntropyLoss with weights

I need weights in CrossEntropyLoss (actually multiple, but the same issue).  The documentation talks about tensors copied from other tensors, but there is no tensor to copy from in the init.  So I'm stuck.
To make the weights unquestionably simple, I use ones.
class JJG_Transformer(pl.LightningModule):

    def __init__(self, alphanet_plus_2, letter_weights_per_position):
        super(JJG_Transformer, self).__init__()
        self.criterions = []
        for weight in self.letter_weights_per_position:
            weight = torch.ones((94))
            self.criterions.append( torch.nn.CrossEntropyLoss(weight=weight) )
    def validation_step(self, batch, batch_idx):
        batch_im, batch_true_value_NT, batch_letter_transformer_input = batch
        out_NTA = self(batch_im, batch_letter_transformer_input)
        loss0 = self.criterions[0](out_NTA[:,0,:], batch_true_value_NT[:,0])
        loss1 = self.criterions[1](out_NTA[:,1,:], batch_true_value_NT[:,1])
        loss = loss0 + loss1
        tensorboard_logs = {'val_loss': loss, 'val_loss0': loss0, 'val_loss1':loss1}
        return {'val_loss': loss, 'log': tensorboard_logs}

File "/home/john/Documents/GitHub/Offline_Handwriting_Recognition/Solutions/Aug2020_simple_transformer/src/kiss_transformer.py", line 254, in <module>
  trainer.fit(model, train_dataloader=train_loader, val_dataloaders=val_loader)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/states.py", line 34, in wrapped_fn
  result = fn(self, *args, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1017, in fit
  self.accelerator_backend.train(model)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/accelerators/ddp_backend.py", line 56, in train
  self.ddp_train(process_idx=self.task_idx, mp_queue=None, model=model)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/accelerators/ddp_backend.py", line 219, in ddp_train
  results = self.trainer.run_pretrain_routine(model)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1196, in run_pretrain_routine
  self._run_sanity_check(ref_model, model)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1229, in _run_sanity_check
  eval_results = self._evaluate(model, self.val_dataloaders, max_batches, False)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/evaluation_loop.py", line 325, in _evaluate
  output = self.evaluation_forward(model, batch, batch_idx, dataloader_idx, test_mode)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/evaluation_loop.py", line 609, in evaluation_forward
  output = model(*args)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
  result = self.forward(*input, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/overrides/data_parallel.py", line 160, in forward
  output = self.module.validation_step(*inputs[0], **kwargs[0])
File "/home/john/Documents/GitHub/Offline_Handwriting_Recognition/Solutions/Aug2020_simple_transformer/src/kiss_transformer.py", line 128, in validation_step
  loss0 = self.criterions[0](out_NTA[:,0,:], batch_true_value_NT[:,0])
File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
  result = self.forward(*input, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/loss.py", line 948, in forward
  ignore_index=self.ignore_index, reduction=self.reduction)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/functional.py", line 2422, in cross_entropy
  return nll_loss(log_softmax(input, 1), target, weight, None, ignore_index, None, reduction)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/functional.py", line 2218, in nll_loss
  ret = torch._C._nn.nll_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index)
RuntimeError: Expected object of device type cuda but got device type cpu for argument #3 'weight' in call to _thnn_nll_loss_forward
Traceback (most recent call last):
File "kiss_transformer.py", line 254, in <module>
  trainer.fit(model, train_dataloader=train_loader, val_dataloaders=val_loader)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/states.py", line 34, in wrapped_fn
  result = fn(self, *args, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1030, in fit
  results = self.accelerator_backend.spawn_ddp_children(model)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/accelerators/ddp_backend.py", line 118, in spawn_ddp_children
  results = self.ddp_train(local_rank, mp_queue=None, model=model, is_master=True)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/accelerators/ddp_backend.py", line 219, in ddp_train
  results = self.trainer.run_pretrain_routine(model)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1196, in run_pretrain_routine
  self._run_sanity_check(ref_model, model)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1229, in _run_sanity_check
  eval_results = self._evaluate(model, self.val_dataloaders, max_batches, False)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/evaluation_loop.py", line 325, in _evaluate
  output = self.evaluation_forward(model, batch, batch_idx, dataloader_idx, test_mode)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/evaluation_loop.py", line 609, in evaluation_forward
  output = model(*args)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
  result = self.forward(*input, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/overrides/data_parallel.py", line 160, in forward
  output = self.module.validation_step(*inputs[0], **kwargs[0])
File "kiss_transformer.py", line 128, in validation_step
  loss0 = self.criterions[0](out_NTA[:,0,:], batch_true_value_NT[:,0])
File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
  result = self.forward(*input, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/loss.py", line 948, in forward
  ignore_index=self.ignore_index, reduction=self.reduction)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/functional.py", line 2422, in cross_entropy
  return nll_loss(log_softmax(input, 1), target, weight, None, ignore_index, None, reduction)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/functional.py", line 2218, in nll_loss
  ret = torch._C._nn.nll_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index)
RuntimeError: Expected object of device type cuda but got device type cpu for argument #3 'weight' in call to _thnn_nll_loss_forward

trainer = pl.Trainer( gpus=[0, 1],
                accumulate_grad_batches=16,
                max_epochs=500,
                check_val_every_n_epoch=1,
                distributed_backend='ddp',

pl__version__ 0.9.0rc12

I think you just need to use .cuda() for the weight or criterion.

@sykrn is on the right track.
The problem is that your criterion is in a list. nn.Module does not recognize submodules in lists.
You solve your problem by using ModuleList:

self.criterions = nn.ModuleList()  # this is the fix

for weight in self.letter_weights_per_position:
    weight = torch.ones((94))
    self.criterions.append( torch.nn.CrossEntropyLoss(weight=weight) )

now your criterions (and tensors within it) will be automatically moved to the right device!

Thank you. Made the example more explicit for future references.
        # fake fixed tensor weights
        weights_per_position = []
        for i in range(26):
            t = torch.ones((94), dtype=torch.float32)
            weights_per_position.append(t)

class JJG_Transformer(pl.LightningModule):

    def __init__(self, weights_per_position):

        # the list to hold the criterion
        self.criterions = torch.nn.ModuleList()

        for weight in self.weights_per_position:
            self.criterions.append( torch.nn.CrossEntropyLoss(weight=weight) )

    def training_step(self, batch, batch_idx):
        loss0 = self.criterions[0](out_NTA[:,0,:], batch_true_value_NT[:,0])
        loss1 = self.criterions[1](out_NTA[:,1,:], batch_true_value_NT[:,1])
        loss = loss0 + loss1

What does "properly registered" mean in?
ModuleList can be indexed like a regular Python list, but modules it contains are properly registered, and will be visible by all Module methods.

It means:
class Wrong(nn.Module):

    def __init__(self)
        super().init()
        self.list = [CrossEntropyLoss()]

w = Wrong()
w.children() # no children

vs.
class Right(nn.Module):

    def __init__(self)
        super().init()
        self.list = nn.ModuleList([CrossEntropyLoss()])

r = Right()
r.children() # correctly returns the cross entropy module

Operations like model.to('cuda') will also recursively operate on all submodules (children and their children etc.). But a Python list for example is not considered a submodule.

Thank you.


SCB-134 Batch delete api can delete service center micro-service.

Coverage decreased (-0.01%) to 72.504% when pulling b31cdbe363692897e22c463c55d85eeaacad0b5f on little-cui:master into 49d2b344030c9cc8d8906aff5636e4f620596e46 on apache:master.

Codecov Report

Merging #229 into master will decrease coverage by 0.07%.
The diff coverage is 20%.

@@            Coverage Diff             @@
##           master     #229      +/-   ##
==========================================
- Coverage   68.82%   68.74%   -0.08%
==========================================
  Files          17       17
  Lines        3554     3558       +4
==========================================
  Hits         2446     2446
- Misses        934      937       +3
- Partials      174      175       +1

Impacted Files
Coverage Δ

server/service/microservices.go
72.85% <20%> (-0.58%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 49d2b34...b31cdbe. Read the comment docs.


[ci skip] [cf admin skip] NO_CI adding bot automerge

Hi! This is the friendly automated conda-forge-webservice.
I've added bot automerge as instructed in #2.
Merge this PR to enable bot automerging.
Fixes #2

@conda-forge-admin, please restart ci¶

@conda-forge-admin, please restart ci


crash on pff.rkt

 python ~/sw/pycket/targetpycket.py pff.rkt elephant.trace opt 0 produces an error for me currently, with HEAD.

The failure is calling the call method of W_StructMutator.
running elephant.trace.time.0 opt
ERROR:
expected root-struct as argument 0 to <struct-mutator-method>, got 0
  while executing: (call-with-values (lambda () (run-all-ops )) print-values)
  in module: pff
Traceback (most recent call last):
  File "/home/samth/sw/pycket/pycket/__main__.py", line 32, in main
    sys.exit(f(sys.argv))
  File "/home/samth/sw/pycket/pycket/entry_point.py", line 17, in entry_point
    return actual_entry(argv)
  File "/home/samth/sw/pycket/pycket/entry_point.py", line 41, in actual_entry
    val = interpret_module(ast, env)
  File "/home/samth/sw/pycket/pycket/interpreter.py", line 1845, in interpret_module
    m.interpret_mod(env)
  File "/home/samth/sw/pycket/pycket/interpreter.py", line 404, in interpret_mod
    return self._interpret_mod(env)
  File "/home/samth/sw/pycket/pycket/interpreter.py", line 427, in _interpret_mod
    vs = interpret_one(f, self.env)
  File "/home/samth/sw/pycket/pycket/interpreter.py", line 1822, in interpret_one
    inner_interpret(ast, env, cont)
  File "/home/samth/sw/pycket/pycket/interpreter.py", line 1794, in inner_interpret_two_state
    ast, env, cont = ast.interpret(env, cont)
  File "/home/samth/sw/pycket/pycket/cont.py", line 210, in interpret
    return func(*args)
  File "/home/samth/sw/pycket/pycket/prims/expose.py", line 191, in func_arg_unwrap
    raise SchemeException(type_errormsg + arg.tostring())
SchemeException: expected root-struct as argument 0 to <struct-mutator-method>, got 0
> /home/samth/sw/pycket/pycket/prims/expose.py(191)func_arg_unwrap()
-> raise SchemeException(type_errormsg + arg.tostring())

Probably worth mentioning that this is not a recent development. I did not think too much of this at the time, since we were not using the opt vartiant for benchmarking. I don't think Pycket ever successfully ran this using opt. Oddly, I get a slightly different error message
expected root-struct as argument 0 to <method>, got 0
  while executing: (call-with-values (lambda () (run-all-ops )) print-values)
  in module: pff

which does not mention a struct mutator.

That's because I changed the name so I could tell what it was.
On Fri, Feb 13, 2015, 9:14 PM Spenser Bauman<EMAIL_ADDRESS>wrote:

Probably worth mentioning that this is not a recent development. I did not
think too much of this at the time, since we were not using the opt
vartiant for benchmarking. I don't think Pycket ever successfully ran this
using opt. Oddly, I get a slightly different error message
expected root-struct as argument 0 to , got 0
while executing: (call-with-values (lambda () (run-all-ops )) print-values)
in module: pff
which does not mention a struct mutator.
—
Reply to this email directly or view it on GitHub
https://github.com/samth/pycket/issues/154#issuecomment-74357093.

@samth that may mean that one of primitives has wrong implementation and returns blank (0 in this case) value instead of a struct.

@vkirilichev do you have a little time to fix that?

@krono @samth I think yes, but I cannot reproduce the error.
Is that the right repo for these benchmarks: https://github.com/stamourv/contract-benchmarks ?

no, should be these: https://github.com/sabauma/pycket-benchmarks

@krono thank! ok, now I see the error

It looks like a mutator of a structure type 'node/lazy-opt-contract' is called with arguments: 0, 0, #f, where the first argument should be a structure.

so probably another primitive is returning 0 where it should return a structure?

it can be true. But I cannot find the place where this mutator is called

@vkirilichev the node/lazy-opt-contract comes from the contracts on nodes (which are in "binomial-heap-contract.rkt") with the #:lazy keyword.

@samth thank you.
I'm a bit confusing with this error, I found out that commenting out of line 27 in "binomial-heap.rkt" ((define tt (hd ts))) removes the wrong mutator call, but I don't understand why, because it is just an accessor.

I bet that it's a lazy contract on ts, which saves the value of the hd field in a mutable struct field.

here is the smaller example with this bug:
#lang racket/base
(require racket/contract)

(define-contract-struct x (a b))
(define-contract-struct y (c d))

(define-opt/c (x/opt/c)
  (x/dc [a (y/dc)]
        [b (a) (y-c a)])) ; <-

(define x-a/c (contract (-> (x/opt/c) (x/opt/c)) x-a 'pos 'neg))

(x-a/c (make-x (make-y 11 22) 33))

This program has a (perhaps related) bug:
#lang racket/base
(require racket/contract)

(define-contract-struct x (a b))
(define-contract-struct y (c d))

(define-opt/c (x/opt/c)
  (x/dc [a (y/dc)]
        [b (a) any/c])) ; <-

(define x-a/c (contract (-> (x/opt/c) any/c) x-a 'pos 'neg))

(x-a/c (make-x (make-y 11 22) 33))

Here's a simplified version of the original bug:
#lang racket/base
(require racket/contract)

(define-contract-struct y (c d))

(define-opt/c (yopt) (y/dc))

(y-c (contract (yopt) (make-y 1 1) 'pos 'neg))

@cfbolz this bug disappears when environment pruning is turned off.
@vkirilichev The program in my previous comment (with both x and y) has a different struct-related bug -- something is going wrong with the field offsets. Can you investigate that?

@samth ok

@samth I think it can be the same bug, because it crashes in the structure mutator, where the argument type is the wrong stucture type (x/lazy-opt-contract is the type argument by accessing a field inside y/lazy-opt-contractthat has no super-types). The original bug happens when instead of the structure type a number is sent.

@vkirilichev does it go away as well (or change into the regular Racket error) when environment pruning is off?

@vkirilichev both bugs go away with prune_env off, so they're almost certainly the same bug. No need to worry about this more.