SQL files not executing on Oracle 12C Database startup

I am using Oracle Database Enterprise Edition and this is my docker-compose
version: '3'
services:
    db:
      image: store/oracle/database-enterprise:<IP_ADDRESS>
      restart: "unless-stopped"
      ports:
        - 1523:1521
        - 5501:5500
      volumes:
        - ./setup-scripts:/opt/oracle/scripts/setup
        - ./dump:/opt/oracle/dump
      environment:
        - "ORACLE_PWD=oracle"

When I use docker-compose up my sql files are copied to /opt/oracle/scripts/setup but the sql files are not executed. What could be the possible reason ? "ORACLE_PWD=oracle" doesn't seem to work also. I have to use the default password Oradoc_db1

It is working for me as expected...
This is my compose file:
version: '3'
services:
    db:
      image: oracledb:<IP_ADDRESS>
      restart: "unless-stopped"
      ports:
        - 1523:1521
        - 5501:5500
      volumes:
        - ./setup-scripts:/opt/oracle/scripts/setup
        - ./oradata:/opt/oracle/oradata
      environment:
        - ORACLE_PWD=Change0nInstall

Bringing the stack up:
$ docker-compose up
Docker Compose is now in the Docker CLI, try `docker compose up`

Creating network "12c-compose_default" with the default driver
Creating 12c-compose_db_1 ... done
Attaching to 12c-compose_db_1
db_1  | ORACLE PASSWORD FOR SYS, SYSTEM AND PDBADMIN: Change0nInstall
db_1  |
db_1  | LSNRCTL for Linux: Version <IP_ADDRESS>.0 - Production on 06-MAY-2021 17:32:35
<SNIP>
db_1  | Executing user defined scripts
db_1  | /opt/oracle/runUserScripts.sh: running /opt/oracle/scripts/setup/shell.sh
db_1  | Bilbo was here
db_1  |
db_1  | /opt/oracle/runUserScripts.sh: running /opt/oracle/scripts/setup/sysdate.sql
db_1  |
db_1  | SYSDATE
db_1  | ---------
db_1  | 06-MAY-21
db_1  |
db_1  | DONE: Executing user defined scripts
db_1  |
db_1  | The Oracle base remains unchanged with value /opt/oracle
db_1  | #########################
db_1  | DATABASE IS READY TO USE!
db_1  | #########################

Note that:

setup-scripts are only run at DB creation time, so the first time you do an up
Same for setting the password
oracle won't be accepted as a valid password

I tried with the same docker-compose file as yours. This is the output I get :
Creating project_db_db_1 ... done
Attaching to project_db_db_1
db_1  | Setup Oracle Database
db_1  | Oracle Database <IP_ADDRESS> Setup
db_1  | Thu May 6 18:21:30 UTC 2021
db_1  |
db_1  | Check parameters ......
db_1  | log file is : /home/oracle/setup/log/paramChk.log
db_1  | paramChk.sh is done at 0 sec
db_1  |
db_1  | untar DB bits ......
db_1  | log file is : /home/oracle/setup/log/untarDB.log
db_1  | untarDB.sh is done at 1152 sec
db_1  |
db_1  | config DB ......
db_1  | log file is : /home/oracle/setup/log/configDB.log
db_1  | Thu May 6 18:40:42 UTC 2021
db_1  | Start Docker DB configuration
db_1  | Call configDBora.sh to configure database
db_1  | Thu May 6 18:40:42 UTC 2021
db_1  | Configure DB as oracle user
db_1  | Setup Database directories ...
db_1  |
db_1  | SQL*Plus: Release <IP_ADDRESS>.0 Production on Thu May 6 18:40:43 2021
db_1  |
db_1  | Copyright (c) 1982, 2016, Oracle.  All rights reserved.
db_1  |
db_1  | Connected to an idle instance.
db_1  |
db_1  | SQL>
db_1  | File created.
db_1  |
db_1  | SQL> ORACLE instance started.
db_1  |
db_1  | Total System Global Area<PHONE_NUMBER> bytes
db_1  | Fixed Size                  8792536 bytes
db_1  | Variable Size             402654760 bytes
db_1  | Database Buffers          922746880 bytes
db_1  | Redo Buffers                7983104 bytes
db_1  | Database mounted.
db_1  | Database opened.
db_1  | SQL>
db_1  | Database altered.
db_1  |
db_1  | SQL>
db_1  | NAME                                 TYPE        VALUE
db_1  | ------------------------------------ ----------- ------------------------------
db_1  | spfile                               string      /u01/app/oracle/product/12.2.0
db_1  |                                                  /dbhome_1/dbs/spfileORCLCDB.or
db_1  |                                                  a
db_1  | SQL>
db_1  | NAME                                 TYPE        VALUE
db_1  | ------------------------------------ ----------- ------------------------------
db_1  | encrypt_new_tablespaces              string      CLOUD_ONLY
db_1  | SQL>
db_1  | User altered.
db_1  |
db_1  | SQL>
db_1  | User altered.
db_1  |
db_1  | SQL> Disconnected from Oracle Database 12c Enterprise Edition Release <IP_ADDRESS>.0 - 64bit Production
db_1  | update password
db_1  |
db_1  | Enter password for SYS:
db_1  | create pdb : ORCLPDB1
db_1  |
db_1  | SQL*Plus: Release <IP_ADDRESS>.0 Production on Thu May 6 18:41:57 2021
db_1  |
db_1  | Copyright (c) 1982, 2016, Oracle.  All rights reserved.
db_1  |
db_1  |
db_1  | Connected to:
db_1  | Oracle Database 12c Enterprise Edition Release <IP_ADDRESS>.0 - 64bit Production
db_1  |
db_1  | SQL>   2    3    4    5
db_1  | Pluggable database created.
db_1  |
db_1  | SQL>
db_1  | Pluggable database altered.
db_1  |
db_1  | SQL>
db_1  | Pluggable database altered.
db_1  |
db_1  | SQL> Disconnected from Oracle Database 12c Enterprise Edition Release <IP_ADDRESS>.0 - 64bit Production
db_1  | Reset Database parameters
db_1  |
db_1  | SQL*Plus: Release <IP_ADDRESS>.0 Production on Thu May 6 18:43:48 2021
db_1  |
db_1  | Copyright (c) 1982, 2016, Oracle.  All rights reserved.
db_1  |
db_1  |
db_1  | Connected to:
db_1  | Oracle Database 12c Enterprise Edition Release <IP_ADDRESS>.0 - 64bit Production
db_1  |
db_1  | SQL>
db_1  | System altered.
db_1  |
db_1  | SQL> Disconnected from Oracle Database 12c Enterprise Edition Release <IP_ADDRESS>.0 - 64bit Production
db_1  |
db_1  | LSNRCTL for Linux: Version <IP_ADDRESS>.0 - Production on 06-MAY-2021 18:43:48
db_1  |
db_1  | Copyright (c) 1991, 2016, Oracle.  All rights reserved.
db_1  |
db_1  | Starting /u01/app/oracle/product/12.2.0/dbhome_1/bin/tnslsnr: please wait...
db_1  |
db_1  | TNSLSNR for Linux: Version <IP_ADDRESS>.0 - Production
db_1  | System parameter file is /u01/app/oracle/product/12.2.0/dbhome_1/admin/ORCLCDB/listener.ora
db_1  | Log messages written to /u01/app/oracle/diag/tnslsnr/59ea32eb604d/listener/alert/log.xml
db_1  | Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<IP_ADDRESS>)(PORT=1521)))
db_1  | Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
db_1  |
db_1  | Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=<IP_ADDRESS>)(PORT=1521)))
db_1  | STATUS of the LISTENER
db_1  | ------------------------
db_1  | Alias                     LISTENER
db_1  | Version                   TNSLSNR for Linux: Version <IP_ADDRESS>.0 - Production
db_1  | Start Date                06-MAY-2021 18:43:48
db_1  | Uptime                    0 days 0 hr. 0 min. 0 sec
db_1  | Trace Level               off
db_1  | Security                  ON: Local OS Authentication
db_1  | SNMP                      OFF
db_1  | Listener Parameter File   /u01/app/oracle/product/12.2.0/dbhome_1/admin/ORCLCDB/listener.ora
db_1  | Listener Log File         /u01/app/oracle/diag/tnslsnr/59ea32eb604d/listener/alert/log.xml
db_1  | Listening Endpoints Summary...
db_1  |   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<IP_ADDRESS>)(PORT=1521)))
db_1  |   (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
db_1  | The listener supports no services
db_1  | The command completed successfully
db_1  |
db_1  | DONE!
db_1  | Remove password info
db_1  | Docker DB configuration is complete !
db_1  | configDB.sh is done at 1338 sec
db_1  |
db_1  | Done ! The database is ready for use .
db_1  | # ===========================================================================
db_1  | # == Add below entries to your tnsnames.ora to access this database server ==
db_1  | # ====================== from external host =================================
db_1  | ORCLCDB=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=<ip-address>)(PORT=<port>))
db_1  |     (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ORCLCDB.localdomain)))
db_1  | ORCLPDB1=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=<ip-address>)(PORT=<port>))
db_1  |     (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ORCLPDB1.localdomain)))
db_1  | #
db_1  | #ip-address : IP address of the host where the container is running.
db_1  | #port       : Host Port that is mapped to the port 1521 of the container.
db_1  | #
db_1  | # The mapped port can be obtained from running "docker port <container-id>"
db_1  | # ===========================================================================
db_1  | Thread 1 advanced to log sequence 5 (LGWR switch)
db_1  |   Current log# 2 seq# 5 mem# 0: /u04/app/oracle/redo/redo002.log
db_1  | 2021-05-06T18:43:47.671340+00:00
db_1  | ORCLPDB1(3):Opening pdb with no Resource Manager plan active
db_1  | Pluggable database ORCLPDB1 opened read write
db_1  | Completed:     alter pluggable database ORCLPDB1 open
db_1  |     alter pluggable database all save state
db_1  | Completed:     alter pluggable database all save state
db_1  | 2021-05-06T18:43:48.086326+00:00
db_1  | ALTER SYSTEM SET encrypt_new_tablespaces='DDL' SCOPE=BOTH;
db_1  | 2021-05-06T18:51:09.575454+00:00
db_1  | Resize operation completed for file# 3, old size 706560K, new size 727040K
db_1  | 2021-05-06T18:51:09.583298+00:00
db_1  | ORCLPDB1(3):Resize operation completed for file# 18, old size 583680K, new size 604160K
db_1  | 2021-05-06T18:52:32.397107+00:00
db_1  | Thread 1 advanced to log sequence 6 (LGWR switch)
db_1  |   Current log# 3 seq# 6 mem# 0: /u04/app/oracle/redo/redo003.log
db_1  | 2021-05-06T18:52:34.362584+00:00
db_1  | Thread 1 advanced to log sequence 7 (LGWR switch)
db_1  |   Current log# 1 seq# 7 mem# 0: /u04/app/oracle/redo/redo001.log
db_1  | 2021-05-06T18:52:35.521699+00:00
db_1  | Shared IO Pool defaulting to 64MB. Trying to get it from Buffer Cache for process 857.
db_1  | 2021-05-06T18:52:39.992727+00:00
db_1  | Thread 1 cannot allocate new log, sequence 8
db_1  | Checkpoint not complete
db_1  |   Current log# 1 seq# 7 mem# 0: /u04/app/oracle/redo/redo001.log
db_1  | 2021-05-06T18:52:43.437754+00:00
db_1  | Thread 1 advanced to log sequence 8 (LGWR switch)
db_1  |   Current log# 2 seq# 8 mem# 0: /u04/app/oracle/redo/redo002.log

I tried a lot of times but I never seem to get the " Executing user defined scripts" part

You clearly have another database container image than I have as the messages aren't the same.
If you downloaded it from https://container-registry.oracle.com it won't probably work; the options described in this repository are for the images built as described here.

@zarif98sjs Is this still an issue ??


Add a Process class to control execution of subprocesses and communicate with them.

Fixes https://github.com/godotengine/godot-proposals/issues/216

Does TinyProcessLibrary properly clean up to avoid leaving defunct processes? It should listen for SIGCHLD and call wait() or waitpid().

Does TinyProcessLibrary properly clean up to avoid leaving defunct processes? It should listen for SIGCHLD and call wait() or waitpid() (see #7774).

Is it necessary for tinyprocesslibrary to handle it since os_unix already handles this? (Unless I missed something)

The reason it's no longer handled by OS_Unix is because the implementation was a bad one. It was reaping all child processes, even the ones Godot didn't launch. This was wrong because it was messing with other libraries that launch processes. For example, it was reverted because it was causing issues with pclose but even before that it was reaping processes launched from C#, for example. This means those libraries wouldn't be notified whenever the process exited (unless they poll) and wouldn't be able to retrieve the exit code.
 Precisely because of this, if we were to re-introduce this, this time with a proper implementation, it wouldn't reap any process launched by TinyProcessLibrary.
Godot worked around the need for a SIGCHLD handler by using setsid(). This way, Godot no longer needs to reap the process, but I don't know if it has any downside (Would it still be possible to retrieve stdout/stderr and check the exit code? Or is it only a fire and forget solution?). The same could be said about the double fork trick.

I see, I will do some testing

I have made all changes, I think it should be ok now.

Given that process_tiny_process_lib is an implementation of process, maybe we should moved it to drivers?

@EIREXE I think you forgot to add the SCsub in the driver/tiny-process-lib and should contain more or less what is currently in the core SCsub. Something like (not tested sorry):

Import("env")

# Tiny-process-library
thirdparty_tiny_process_library_dir = "#thirdparty/tiny-process-library/"
thirdparty_tiny_process_library_sources = []

if env["platform"] in ["linuxbsd", "macos", "android"]:
    thirdparty_tiny_process_library_sources = ["process.cpp", "process_unix.cpp"]
elif env["platform"] == "windows":
    thirdparty_tiny_process_library_sources = ["process.cpp", "process_win.cpp"]

thirdparty_tiny_process_library_sources = [
    thirdparty_tiny_process_library_dir + file for file in thirdparty_tiny_process_library_sources
]

env.add_source_files(env.drivers_sources, thirdparty_tiny_process_library_sources)
env.add_source_files(env.drivers_sources, "*.cpp")

That's for the third party directory, which as I understand has everything in the thirdparty scsub

thirdparty doesn't have it's own SCsub (that code is in this PRs core/SCsub) if you check drivers/png/SCsub each "driver" includes its own thirdparty library (usually conditionally on a builtin_libname flag).

each "driver" includes its own thirdparty library (usually conditionally on a builtin_libname flag).

Here the builtin_* option can likely be left out, it's only meant to be able to build against system provided packages on Linux and I don't think this one is typically packaged as a shared lib.

Made some changes:

Made adding and removing sigchld callbacks thread safe
Fixed a crash when getting the process ID on ProcessUnix, not sure why it works but it works from my testing
Added a auto quote arguments on windows like OS.execute does.

A few comments on the SIGCHLD handler:

AFAIK, you shouldn't lock inside a signal handler.
Third-party code may have their own SIGCHLD handler, so you should use chaining to not override theirs:static struct sigaction old_sigaction;

void init() {
	sigaction(SIGCHLD, &sa, &old_sigaction);
}

void handle_sigchld(int sig, siginfo_t *info, void *ucontext) {
	if (did_we_spawn_this(info)) {
	 	// reap and whatever else
	 	return;
	}

	// not handled (not a pid we created), pass it to the next signal handler
	if (old_sigaction.sa_handler != SIG_IGN && old_sigaction.sa_handler != SIG_DFL)
		old_sigaction.sa_handler(sig, info, ucontext);
}

Check #8648 as an old attempt at implementing this.

AFAIK, you shouldn't lock inside a signal handler.

What do you suggest we do instead? the code may attempt to run the handler after the process instances have been removed from another thread

Third-party code may have their own SIGCHLD handler, so you should use chaining to not override theirs:

Sure, I'll do that.

Added sigchld chaining

Since many attempts were made on different PRs by veterans and abandoned to be superseded by this one
(https://github.com/godotengine/godot/pull/8310 (2017) & https://github.com/godotengine/godot/pull/68733 (2022)), is there still consideration about the implementation of a Process class?
Sorry, I know it sounds like a "bump" but I just want to make sure it's not just because it went out of the contributors' mind due to scattered old PRs about the subject.

This implementation should satisfy my comments on other threads related to this one:

https://github.com/godotengine/godot-proposals/issues/216#issuecomment-730483067
https://github.com/godotengine/godot/pull/68733#issuecomment-1729698294

Edit: Is this implemented with this recent PR (https://github.com/godotengine/godot/pull/89206)?

I believe so. I suggest trying it in your own projects and reporting feedback :slightly_smiling_face:


Laravel can't access pivot additional column from pivot model itself

Laravel Version: 5.5.35
PHP Version: 7.0.10
Database Driver & Version: MySQL 5.7.14

Description:
I have a pivot model called UserTask in which I have an accessor function:
class UserTask extends Pivot implements HasMedia
{
    use HasMediaTrait;

    public function getCompletedAttribute()
    {
        return $this->getMedia()->isEmpty() && $this->completed;
    }

    public function task()
    {
        return $this->belongsTo(Task::class);
    }

}

I specify the relation in my Task model like this:
class Task extends Model
{
    public function users()
    {
        return $this->belongsToMany(User::class, 'user_task')->using('App\Models\UserTask')->withPivot('completed');
    }
}

I get the following error:

"message": "Undefined property: App\Models\UserTask::$completed",

Anyone know why this is happening?

Don't you need to use ->withPivot('completed'); to ask Eloquent to get this attribute?

Do you still have that problem?

@staudenmeir , I've also tripped over this problem - to both cast the pivot values as a model and to also be able to access pivot model columns directly (without having to do an additional $PIVOT_MODEL::find($pivot_id) ), I have to use both ->using(... and withPivot(.... , like so:
return $this->belongsToMany(ForeignModel::class, 'pivot_table)->using(PivotModel::class)->withPivot(['firstCol', 'secondCol', .... ])

@CyberiaResurrection Can you please provide more details? What exactly is the issue?

  This is problematic when said pivot models also have their own, independent relations to other models (not just the implied belongsTo relations to the parent models on each side of the original M:N relation).
If I go the other way, and cast the pivot values to a model but don't specify the extra columns, that usually breaks the extra relations where they are defined on the pivot models, as the requisite key value is usually missing.
As (Morph)Pivot extends the Model class, I don't see a reason why, if my application setup needs it, to refrain from adding those extra relations directly onto pivot models.
I got the impression from the documentation that ->using(PivotModel::class) actually implied ->withPivot(['firstColumn','secondColumn', ...]), and wasted a good few hours chasing that mistaken assumption up the garden path.

That will slow things down somewhat, yes.  I guess joining all pivot table columns (when using a pivot model) will be too much brute-force-over-ignorance?

That's not possible: We can't just select pivot_table.* because we have to alias the pivot columns. In order to do this, we have to know their names.
The only way would be a separate query that retrieves the list of columns from a meta table like information_schema.columns.

And that would defeat the point.  I'm not sure if anything can be done except updating the docs to note that my assumption doesn't hold.

Closing as this has been added to the docs.


Swagger-maven-plugin generates first OpenAPI spec when executed twice

We have a project that implements two different OpenAPI specs and these are done in two separate resource packages. When we run the swagger-maven-plugin we want it to generate two separate spec files, one from each resource package. However the plugin will produce the same spec file, the one for the resource package that is run first.
For example in the example below, the spec files generated all use the resource package "first.resource.package".
<plugin>
	<groupId>io.swagger.core.v3</groupId>
	<artifactId>swagger-maven-plugin</artifactId>
	<version>2.0.5</version>
	<executions>
		<execution>
			<configuration>
				<outputFileName>openapi-1</outputFileName>
				<outputPath>${project.build.directory}/generated-docs</outputPath>
				<outputFormat>JSONANDYAML</outputFormat>
				<openapiFilePath>${project.basedir}/src/main/resources/openapi-info.json</openapiFilePath>
				<resourcePackages>
					<package>first.resource.package</package>
				</resourcePackages>
				<readAllResources>false</readAllResources>
				<prettyPrint>TRUE</prettyPrint>
			</configuration>
			<id>first</id>
			<phase>compile</phase>
			<goals>
				<goal>resolve</goal>
			</goals>
		</execution>
		<execution>
			<configuration>
				<outputFileName>openapi-2</outputFileName>
				<outputPath>${project.build.directory}/generated-docs</outputPath>
				<outputFormat>JSONANDYAML</outputFormat>
				<openapiFilePath>${project.basedir}/src/main/resources/openapi-info.json</openapiFilePath>
				<resourcePackages>
					<package>second.resource.package</package>
				</resourcePackages>
				<readAllResources>false</readAllResources>
				<prettyPrint>TRUE</prettyPrint>
			</configuration>
			<id>second</id>
			<phase>compile</phase>
			<goals>
				<goal>resolve</goal>
			</goals>
		</execution>
	</executions>
</plugin>

Please note that I have tried this in 2.0.6-SNAPSHOT and it produces the same results.

Same issue here with version 2.0.5

Please try with 2.0.6 version, providing a different contextId param in each execution e.g.
<execution>
 <configuration>
  <outputFileName>openapi-1</outputFileName>
  <contextId>openapi-1</contextId>
...
<execution>
 <configuration>
  <outputFileName>openapi-2</outputFileName>
  <contextId>openapi-2</contextId>
...

The problem seems to persist with version 2.1.13 when specifying a configurationFilePath. The plugin only respects the first configuration-file and uses it for all subsequent executions.
This is the plugin-configuration we use:
<plugin>
	<groupId>io.swagger.core.v3</groupId>
	<artifactId>swagger-maven-plugin</artifactId>
	<version>2.1.13</version>
	<configuration>
		<outputFormat>JSONANDYAML</outputFormat>
		<prettyPrint>TRUE</prettyPrint>
		<outputPath>${project.build.directory}/${project.build.finalName}</outputPath>
		<outputPath>${project.build.directory}/${project.build.finalName}</outputPath>
	</configuration>
	<executions>
		<execution>
			<id>openapi</id>
			<phase>compile</phase>
			<goals>
				<goal>resolve</goal>
			</goals>
			<configuration>
				<outputFileName>openapi</outputFileName>
				<configurationFilePath>${project.build.directory}/openapi-configurationFile.yaml</configurationFilePath>
			</configuration>
		</execution>
		<execution>
			<id>openapi-qs</id>
			<phase>compile</phase>
			<goals>
				<goal>resolve</goal>
			</goals>
			<configuration>
				<outputFileName>openapi-qs</outputFileName>
				<configurationFilePath>${project.build.directory}/openapi-configurationFile-qs.yaml</configurationFilePath>
			</configuration>
		</execution>
		<execution>
			<id>openapi-prod</id>
			<phase>compile</phase>
			<goals>
				<goal>resolve</goal>
			</goals>
			<configuration>
				<outputFileName>openapi-prod</outputFileName>
				<configurationFilePath>${project.build.directory}/openapi-configurationFile-prod.yaml</configurationFilePath>
			</configuration>
		</execution>
	</executions>
</plugin>

@dstango : You haven't added a  to the configuration-part for each execution, as @frantuma pointed out? The  for the plugin isn't enough, as it seems that the plugin caches contexts between executions, unless you specify a unique contextId for that configuration.

@mortenberg80 thanks for pointing to the contextId -- I overlooked that part, as I thought the id of the execution would be enough to distinguish. Will try if it helps after returning from vacation :-).


Please publish / release Tokenize through NPM in addition to Bower

Per your suggestion, am adding this issue here at GitHub as a reminder to publish / release Tokenize through NPM in the next release. Thank you.

:+1: It's a better way to manage it with webpack.


Free C++ object on Emscripten module disposal

Make sure the destructor of the GoogleSmartCardModule C++ class is
called when the JavaScript class GoogleSmartCard.EmscriptenModule is
disposed of. This makes sure the C++ memory is freed in this flow.
This change is a small cleanup that isn't extremely useful for
real-world use cases, since a smart card client app never shuts down the
module (unless it crashes, but in that case the whole app is
self-reloaded). But the code is more sane this way, and also might make
integration tests consume less memory. The tracking issue is #220.

Thanks for the fast reviews!


Do not test basic authentication with PhantomJS

Change PassBasicHttpAuthTest to skip the test when the browser is
PhantomJS, URLs with userinfo are not correctly processed.
Issue: https://github.com/ariya/phantomjs/issues/12665

Conflict resolved.


GPU Memory

Hi :
I‘m wondering how much GPU memory is needed for training with batch size 1. I'm training with 2080Ti 11G, It always CUDA out of memory even when batch size is 1

try ReLU(inplace=True)

I have a same problem.
Did you solved this problem?


Cannot set --sessionTimout or control user login session

Docker commands that you execute:
/usr/bin/docker run -d --sessionTimeout=1 --user 1000 --privileged  --volume /home/jenkins:/var/jenkins_home --publish 443:8443 jenkins --httpPort=-1 --httpsPort=8443 --httpsKeyStore=/var/jenkins_home/.keystore/jenkins_keystore.jks  --httpsKeyStorePassword="$KEYSTORE_PASSWORD"

unknown flag: --sessionTimeout

I have also tried:
war/WEB-INF/web.xml
<session-config>
   <session-timeout>20</session-timeout>
</session-config>

docker/jenkins.sh
# if `docker run` first argument start with `--` the user is passing jenkins launcher arguments
[...]
  jenkins_opts_array=( )
  while IFS= read -r -d '' item; do
    jenkins_opts_array+=( "$item" )
  done < <([[ $JENKINS_OPTS ]] && xargs printf '%s\0' <<<"$JENKINS_OPTS")

Expected outcome
Jenkins starts with user session timeout of 1 minute (for testing). I have looked up and down this and jenkins source code trying to find out how to control this. It's important from our enterprise standpoint to have a user session timeout of 15 minutes.

Not applicable in our environment at the moment.
Output of docker version
Docker version 1.12.6, build 3a094bd/1.12.6
Other info

https://github.com/jenkinsci/docker/blob/master/jenkins.sh
--sessionTimeout commit
http://jenkins-ci.361315.n4.nabble.com/How-to-use-sessionTimeout-td4684576.html

you need to pass --sessionTimeout=1 after jenkins, ie.
/usr/bin/docker run -d  --user 1000 --privileged  --volume /home/jenkins:/var/jenkins_home --publish 443:8443 jenkins --sessionTimeout=1 --httpPort=-1 --httpsPort=8443 --httpsKeyStore=/var/jenkins_home/.keystore/jenkins_keystore.jks  --httpsKeyStorePassword="$KEYSTORE_PASSWORD"

Thank you so much. Hard to find documentation of stuff upstream. I only found adding JAVA_OPTS by looking in scripts and the Active Directory plugin mentioning it. I started the container with --sessionTimeout=1, but after 1 minute of not touching the mouse, the jenkins_admin session was still logged in and I could click around.

it's a jenkins flag and goes like the other jenkins flags httpPort, httpsPort,...


Running MQTT and CouchDB uploader in parallel?

Just wondering if it is possible to run both the MQTT and CouchDB uploaders in parallel? when I added a second database config to the base.json config file it seemed to parse only the second one (in this case MQTT) and ignored the first (CouchDB).
My use-case is posting the messages and reading in Home Assistant... while also saving to the database for prosperity/visualisation in Grafana (ps. your shared dashboard worked great).

Yeah - if the MQTT works then i dont mind, gives me something else to play with haha.
my base.json file is:
...
"type": "request",
"source": "default",
"fragment": 2,
"unique": 30,
"database_config": {
"databases": [
{
"external": "config/couchdb.json",
"external": "config/mqtt.json"
}
]
},
"request": [
{
"type": "modbus",
"io": "config/rover_serial.json",
"devices": {
"16": {
"type": "rover"
}
}
}
]
}
...

Change it to this:
{
  "type": "request",
  "source": "default",
  "fragment": 2,
  "unique": 30,
  "database_config": {
    "databases": [
       {
         "external": "config/couchdb.json",
       },
       {
         "external": "config/mqtt.json"
       }
    ]
  },
  "request": [
    {
      "type": "modbus",
      "io": "config/rover_serial.json",
      "devices": {
        "16": {
          "type": "rover"
        }
      }
    }
  ]
}

In your base.json you defined external twice in the same object, so only one of them was read.

woohoo! after removing the spurious "," after the initial couchdb.json reference it is now working posting to CouchDB and MQTT broker in parallel! :)
cat /home/SolarThing/main/logs/log_summary.log
2024-04-25 15:57:52.309 [main] INFO  me.retrodaredevil.solarthing.program.SolarMain - [LOG] Beginning main. Jar: solarthing.jar Last Modified: 2024-02-25T23:27:42Z Java version: 19.0.2
2024-04-25 15:57:53.270 [main] INFO  me.retrodaredevil.solarthing.program.RequestMain - Beginning request program
2024-04-25 15:57:53.272 [main] INFO  me.retrodaredevil.solarthing.analytics.AnalyticsManager - Analytics are ENABLED! (Note) For this SolarThing version, analytics are not sent. This will be changed in a future version. If you see this log message, a future version of SolarThing may send analytics data (if you decide to update).
2024-04-25 15:57:53.591 [main] INFO  me.retrodaredevil.solarthing.program.PacketHandlerInit - Packets will be uploaded to database: CouchDB http://admin@<IP_ADDRESS>:5984/
2024-04-25 15:57:54.072 [main] INFO  me.retrodaredevil.solarthing.program.PacketHandlerInit - Packets will be uploaded to database: MQTT tcp://<IP_ADDRESS>:1883
2024-04-25 15:57:54.133 [main] INFO  me.retrodaredevil.solarthing.program.PacketHandlerInit - Commands are disabled
admin@37srpi:~ $

ps. possibly worth noting in both cases that I had to use the "<IP_ADDRESS>:port" instead of "localhost:port" to get either to work... and if one fails, both fail...

Glad you got it working. If pasting the configuration files fail, yeah SolarThing will crash. However, if you ever run into a situation where an incorrect IP for one of the databases causes the other uploading to the database to fail, I'd like to see the log messages because that isn't supposed to happen.


Camera plugin doesn't take maximum resolution picture on iOS

Camera plugin doesn't take (takePicture method) maximum resolution picture on iOS. It works well on Android (max camera resolution), but it takes only preview resolution picture on iOS. I guess plugin should behave constantly on both platforms (max camera resolution)
AVCapturePhotoOutput is missing setHighResolutionCaptureEnabled and AVCapturePhotoSettings is missing  [settings setHighResolutionPhotoEnabled:YES].
I have also noticed a lot of warnings about iOS 10 sdk, but cocoapod was declared with iOS 8 support. I guess camera plugin won't work for version < 10.

I have created PR to fix that https://github.com/flutter/plugins/pull/617

flutter/plugins#617 is merged. I assume this issue is fixed.
Thanks for the contribution!


QSQLITE driver not loaded with PySide6 application

Hello,
After compiling my application it runs into an exception where the QSQLITE database cannot be opened due to the QSQLITE database driver not being available voa PySide6.
I have tried to compile the app in standalone, onefile and without any of the options and still no luck. Also the --include-qt-plugins option I have tried with a few variations, qsqlite, qsqlite3, qtsql and still nothing.
Note: Using --help does not give me any pointers on what to input in this command.
Can you advise how to get nuitka to find and include the necessary libs?
Exact error below:
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:

- Nuitka version, full Python version, flavor, OS, etc. as output by this exact command.
1.7.10
Commercial: None
Python: 3.9.17 (main, Jul  5 2023, 16:17:03)
Flavor: Anaconda Python
Executable: /Users/benhearn/miniconda3/envs/traxmanager_dev_venv/bin/python
OS: Darwin
Arch: x86_64

How did you install Nuitka and python?
Installed python via miniconda and set up a virtual env using conda
Installed Nuitka via pip

- The specific PyPI names and versions
certifi==2023.7.22
cffi==1.15.1
chardet==4.0.0
charset-normalizer==3.2.0
Cython==3.0.0
ftfy==6.0.3
idna==3.4
joblib==1.3.1
lxml==4.6.5
mutagen==1.45.1
Nuitka==1.7.10
numpy==1.25.2
ordered-set==4.1.0
packaging==23.1
Pillow==10.0.0
pycparser==2.21
pyside6==6.5.2
python-vlc==3.0.16120
pyuca==1.2
QtPy==2.3.1
requests==2.31.0
scikit-learn==0.24.1
scipy==1.11.1
shiboken6==6.5.2
SoundFile==0.10.3.post1
sparse-dot-topn==0.2.9
threadpoolctl==3.2.0
timeloop==1.0.2
urllib3==2.0.4
wcwidth==0.2.6
winshell==0.6
zstandard==0.21.0

- Also supply a Short, Self Contained, Correct, Example
from PySide6 import QtWidgets
from PySide6.QtSql import QSqlDatabase
import sys

def main():
    app = QtWidgets.QApplication(sys.argv)
    db = QSqlDatabase.addDatabase("QSQLITE")
    if not db.open():
        raise Exception('Cannot open database')

if __name__ == "__main__":
    main()

- Provide in your issue the Nuitka options used
Nuitka-Options:INFO: Used command line options: ./test_db.py --standalone --remove-output --enable-plugin=pyside6 --include-qt-plugins=sensible --include-qt-plugins=qsqlite --plugin-enable=pylint-warnings --output-dir=./tests/test_nuitka_builds -o testdb.app
NOTE: I have tried various options for --include-qt-plugins such as qsqlite3, qtsql and none seem to work.

This is obsolete information, in 1.8 which is the current release this was changed and sensible is now added to with this option, and there is a new option to subtract instead. The 1.8 is out for a few days already.


Windows reports a virus when attempting to install prisma or @prisma/client

Bug description
When I try to add prisma or @prisma/client as dependencies, it fails with an error message regarding index-browser.js.
Windows reports a virus.
error An unexpected error occurred: "UNKNOWN: unknown error, copyfile 'C:\\Users\\jon\\AppData\\Local\\Yarn\\Cache\\v6\\npm-<EMAIL_ADDRESS>-><EMAIL_ADDRESS>info If you think this is a bug, please open a bug report with the information provided in "C:\\source\\repos\\clients\\fullstackfish\\double-barreled-prisma\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

How to reproduce

Create a new folder
Open terminal
npm init -y
yarn add -D prisma or yarn add @prisma/cilent

Expected behavior
The dependencies should be installed.
Windows should not report a virus.
Prisma information

Environment & setup

OS: Windows 11
Database: n/a
Node.js version: 14.8.1

Prisma Version
n/a I don't get that far

What Antivirus software are you using?
Update: I can confirm this for our index-browser.js in 3.6.0: https://www.virustotal.com/gui/file/46d99903ad9af960a641ac3d9a8278d409e1a5fcf8ed0a6e49c56b9904e53fbf
As far as we are aware this file does not contain a virus of course.

It's Windows Defender. I wonder why Microsoft is flagging it at malicious.

My guess (!) is that some actual malware, based on Javascript, uses a similar dependency or string or magic number as we are - and that triggers a false positive in their AI based detection heuristic. Usually those are fixed quite quickly, but sometimes not. We'll try to figure out if any other files are affected and if we can do anything to speed up the removal of this detection.

I think this means I need to get a Mac for Christmas.

Same here, any suggestions?

Just happened to me and search engines fail at connecting "Trojan:Script/Oneeva.A!ml" keyword with Prisma JS.

We are trying to remove this false positive in Windows Defender now.
Until then we recommend you removing the quarantine and choose "Allow on device" instead.
If you don't want (or can't) do that, in 99.9% of all cases you probably do not need the file in your app and it not being there should not cause big problems.

Both my local Windows Defender and MS's cloud one, and also VirusTotal do not detect the file as malicious any more: https://www.virustotal.com/gui/file/46d99903ad9af960a641ac3d9a8278d409e1a5fcf8ed0a6e49c56b9904e53fbf

@jonrcrowell That is super weird and don't think I saw that before. Maybe check out your project into a different path? Or restart your Windows?

We have received the confirmation from Microsoft that it was a false positive. Please follow the steps in their reply if you still run into any issues.

At this time, the submitted files do not meet our criteria for malware or potentially unwanted applications. The detection has been removed. Please follow the steps below to clear cached detections and obtain the latest malware definitions.  1. Open command prompt as administrator and change directory to c:\Program Files\Windows Defender  2. Run “MpCmdRun.exe -removedefinitions -dynamicsignatures” 3. Run “MpCmdRun.exe -SignatureUpdate”  Alternatively, the latest definition is available for download here: https://docs.microsoft.com/microsoft-365/security/defender-endpoint/manage-updates-baselines-microsoft-defender-antivirus


Installation of Build Tools for Visual Studio 2019 failed

Unfortunately :
Build Tools for Visual Studio 2019 returned 0
Delete on reboot: C:********
Installation of Build Tools for Visual Studio 2019 failed

A new release is coming soon that eliminates the need to install Visual Studio entirely.

Try the new release available from Raspberry Pi:
https://github.com/raspberrypi/pico-setup-windows/releases/latest
The Visual Studio dependency has been eliminated now, so this should not be a problem anymore.


With --proxy argument, How does DNS resolve work?

With --proxy argument, the phantomjs process will do DNS  resolution local or send DNS requests to the proxy?

The same question

I'm also wondering how it'll work in both cases (http and socks)

Hello!
You have a new message, please read http://heliosesportmultigaming.com/union.php?u
<EMAIL_ADDRESS>


Simple LSTM input issue

First off, great library!
I'm trying to build an LSTM that can predict two-dimensional patterns. At this stage I'm just trying to train it on the pattern of a unit circle. For each time step there are two inputs: the x and y values. My model looks like this:
model = Sequential()
model.add(LSTM(128, input_shape=(25, 2) )) #network length (in time) is 25 time steps
...
model.add(Dense(2))
With this setup, I assumed the X_train vector should look like [total_time_steps x 2]. Using TensorFlow as a backend, I get:
"ValueError: Cannot feed value of shape (5000, 25, 2) for Tensor u'Placeholder_13:0', which has shape (Dimension(None), Dimension(None))"
I haven't had luck using an X_train vector of shape [n_batches x t_steps x 2] either. I'd appreciate any advice

I've tentatively solved this issue with a:
model = Sequential()
model.add(LSTM(128, input_shape=(25, 1), return_sequences=True) )
...
model.add(TimeDistributedDense(2))
However, I'd like to make predictions one time step at a time (and then use that prediction as an input for the next time step).  Can I do this with a model like this?

I just created a new model like
model_ = Sequential()
model_.add(LSTM(128, input_shape=(1, 2) )) #network length (in time) is 25 time steps
...
model_.add(Dense(2))
#compile this model as well...
model_.load_weights('lstm_weights') #load saved weights from previous model
and loaded the weights from the training model.
Sorry for spamming your issues section; hopefully someone else will find this useful though!


build: upgrade hashbrown 0.13 → 0.14

Intended to unblock Mozilla's work to upgrade WGPU, which now consumes a hashbrown. Firefox resists having duplicate dependencies, and it uses hashbrown 0.12. WGPU is already consuming hashbrown 0.14.

See also https://github.com/mozilla/application-services/pull/6219.

I don't see any CI running here, but cargo test is successful on my MacOS machine (Apple M1 Max, Sonoma 14.4.1).

Ah, this is a duplicate of https://github.com/vcombey/fallible_collections/pull/46. Sorry for the noise!


bump lodash from 4.17.15 to 4.17.21 to fix vulnerabilities

https://github.com/adriantoine/enzyme-to-json/issues/180
Prototype pollution attack when using _.zipObjectDeep in lodash before 4.17.20. Lodash versions prior to 4.17.21 are vulnerable to Command Injection via the template function.
Lodash versions prior to 4.17.21 are vulnerable to Regular Expression Denial of Service (ReDoS) via the toNumber, trim and trimEnd functions. WhiteSource Note: After conducting further research, WhiteSource has determined that CVE-2020-28500 only affects environments with versions 4.0.0 to 4.17.20 of Lodash.

You have to run yarn install in order to update the yarn.lock too.

Thanks


feat: add binary sensor device class

I want to add a Binary Sensor (without device class) to BTHome. This PR adds it to the BinarySensorDeviceClass as "binary" device class, similar as we did for sensors with a device class that aren't available in HA (which will be translated to a device class None in bthome_ble)

I guess we have to add this since None would be a problem.
Maybe use GENERIC ?

Yes, correct. None is giving issues. Generic is also fine, will change it


Quickstart describing legacy process

Given the advent of Disk Encryption Sets, isn't the process described here outdated?  Working with new VMs, I only see options to encrypt using Encryption Sets.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 11cfc05c-fcaf-0f60-614a-0eb9943baf1f
Version Independent ID: 74b16deb-0d8a-c3af-af39-640b01706b49
Content: Create and encrypt a Windows VM with the Azure portal - Azure Virtual Machines
Content Source: articles/virtual-machines/windows/disk-encryption-portal-quickstart.md
Service: virtual-machines-windows
Sub-service: security
GitHub Login: @msmbaldwin
Microsoft Alias: mbaldwin

@DrEnnui
Thanks for your feedback! We will investigate and update as appropriate.

@DrEnnui
Thanks for your feedback! We will investigate and update as appropriate.

@DrEnnui
Based off the documentation, this isn't a legacy encryption process, the doc is just referring to a different encryption method (ADE) which is still currently used within Azure, the encryption method you're referring to, which uses Disk Encryption Sets is SSE+CMK.
Storage Service Encryption with Customer Managed Keys (SSE with CMK), is used to manage encryption at the level of each managed disk, with your own keys.
Azure Disk Encryption (ADE), uses the Bitlocker feature of Windows to provide volume encryption for the OS and data disks of Azure virtual machines (VMs), and is integrated with Azure Key Vault to help you control and manage the disk encryption keys and secrets.
The easiest way to figure out encryption status of a disk (OS and data) is by going to the VM itself.
Select your VM -> Disks

Since the docs are currently up to date, I'll go ahead and close out this issue at the end of the day.
If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue!

@DrEnnui
Based off the documentation, this isn't a legacy encryption process, the doc is just referring to a different encryption method (ADE) which is still currently used within Azure, the encryption method you're referring to, which uses Disk Encryption Sets is SSE+CMK.
Storage Service Encryption with Customer Managed Keys (SSE with CMK), is used to manage encryption at the level of each managed disk, with your own keys.
Azure Disk Encryption (ADE), uses the Bitlocker feature of Windows to provide volume encryption for the OS and data disks of Azure virtual machines (VMs), and is integrated with Azure Key Vault to help you control and manage the disk encryption keys and secrets.
The easiest way to figure out encryption status of a disk (OS and data) is by going to the VM itself.
Select your VM -> Disks

Since the docs are currently up to date, I'll go ahead and close out this issue at the end of the day.
If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue!


Minor documentation fixes

Current coverage is 60.39% (diff: 100%)

Merging #357 into master will increase coverage by 2.88%

@@             master       #357   diff @@
==========================================
  Files            26         25     -1
  Lines           699        654    -45
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits            402        395     -7
+ Misses          297        259    -38
  Partials          0          0

Powered by Codecov. Last update 4f50686...13963db

LGTM


Type 'RunLoop' has no member 'Mode'

Hello everyone.
I am getting this error "Type 'RunLoop' has no member 'Mode'" when I copy the file "WebSocket.swift" in my project.
I am using XCode Version 9.4.1 Mac OS High Sierra 10.13.4
Any help will be highly appreciated. Thanks.

I get the same error when upgrading to swift 4.2/5.0 & XCode 10.2.   I build using Cocoapods, which gets SwiftWebSocket version 2.7.

that's because the author did not release a new version to the cocoapods master repo:
https://github.com/CocoaPods/Specs/tree/9543734012238c33ea018af5a4381459c13f0916/Specs/2/c/d/SwiftWebSocket

No updated version... ... Is there any other good swift web socket library ??

@yhz82415 you could have a lookt at Starscream https://github.com/daltoniam/Starscream

Cocoapods is not the lasted. Just modify is by yourself.
change
RunLoopMode.defaultRunLoopMode
to
RunLoop.Mode.default


disable zookeeper readiness probe

Comment out zookeeper readiness probe until we have guidance
from upstream project about whether they will restore nc
to their image or if we will need to develop an alternative
readiness probe.
See #469.

Hi @dgrove-oss, I was thinking on instead of disabling of probes we can have configurable probes as I faced similar issues with other components and has to manually configure them. I am working on another PR to do that for other components as well like controller etc. WDYT?

Hi @neerajmangal, would be interested in seeing the PR and discussing.  Ideally the probes are a low-level detail that we can get to always work without bothering the user.  If we can't, figuring out an understandable way to configure problematic ones them does seem useful.  I'd hope the low-level probes that are just hitting an http or tcp endpoint at a specific container port would not need configuration.

Agree with you @dgrove-oss. My bad, I was trying to refer to probes timing setting only like initialDelaySeconds etc to be configurable, not the actual low-level tcpSocket or httpGet probes.


update SDK dependency to 100.11 daily build

update artifact.gradle and versions.gradle
arcgis = "100.10.0" ->  arcgis = "100.11.0-3044"

@gunt0001 please review.


[AMBARI-23530] Document enabling SSO via CLI

What changes were proposed in this pull request?
Document enabling SSO via CLI.  This documentation is to stored along with the Ambari source code so that it can be properly versioned.
See rendered markdown.
How was this patch tested?
No tests are necessary.
Please review Ambari Contributing Guide before opening a pull request.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2051/
Test PASSed.


Unable to use rake after update to ChefDK 2.0

Description
rake stopped working after ChefDK update to 2.0.28. All was working just fine when I was using 1.5.0
$ chef -v
Chef Development Kit Version: 1.5.0
chef-client version: 12.21.2
delivery version: master (17c1b0fed9be4c70f69091a6d21a4cbf0df60a23)
berks version: 5.6.4
kitchen version: 1.16.0
inspec version: 1.25.1

$ which rake
/opt/chefdk/embedded/bin/rake

$ rake --version
rake, version 10.5.0

ChefDK Version
$ chef -v
Chef Development Kit Version: 2.0.28
chef-client version: 13.2.20
delivery version: master (17c1b0fed9be4c70f69091a6d21a4cbf0df60a23)
berks version: 6.2.0
kitchen version: 1.16.0
inspec version: 1.31.1

Platform Version
macOS Sierra 10.12.5
Replication Case
Install ChefDK 2.0.28 and execute rake
Stacktrace
$ which rake
/opt/chefdk/embedded/bin/rake

$ rake --version
/opt/chefdk/embedded/lib/ruby/2.4.0/rubygems.rb:270:in `find_spec_for_exe': can't find gem rake (>= 0.a) (Gem::GemNotFoundException)
	from /opt/chefdk/embedded/lib/ruby/2.4.0/rubygems.rb:298:in `activate_bin_path'
	from /opt/chefdk/embedded/bin/rake:22:in `<main>'

Seeing the same for berks when you run it from the embedded path:
$ /opt/chefdk/embedded/bin/berks --version
/opt/chefdk/embedded/lib/ruby/2.4.0/rubygems.rb:270:in `find_spec_for_exe': can't find gem berkshelf (>= 0.a) (Gem::GemNotFoundException)
	from /opt/chefdk/embedded/lib/ruby/2.4.0/rubygems.rb:298:in `activate_bin_path'
	from /opt/chefdk/embedded/bin/berks:22:in `<main>'

Check if you have $GEM_PATH or $GEM_HOME set?

Related: did you use chef-shell init in your profile or session?

@coderanger
$ echo $GEM_PATH
/Users/kuba/.chefdk/gem/ruby/2.3.0:/opt/chefdk/embedded/lib/ruby/gems/2.3.0

$ echo $GEM_HOME
/Users/kuba/.chefdk/gem/ruby/2.3.0

@cheeseplus eval "$(chef shell-init zsh)" was present in my profile, but I completely forgot I decided to replace the eval call with the actual output of chef shell-init zsh due to performance reasons (it took 1-2s and was kind annoying while opening new terminal tabs).
Since ruby was updated from 2.3.0 to 2.4.0 all gem dependant binaries stopped working because variables @coderanger mentioned were no longer valid.
Thanks guys!


Added CF[DP] application.

Describe the contribution
A clear and concise description of what the contribution is.

Include explicitly what issue it addresses [e.g. Fixes #X]

Testing performed
Steps taken to test the contribution:

Build steps '...'
Execution steps '...'

Expected behavior changes
A clear and concise description of how this contribution will change behavior and level of impact.

API Change: xxx (if applicable)
Behavior Change: xxx (if applicable)
Or no impact to behavior

System(s) tested on

Hardware: [e.g. PC, SP0, MCP750]
OS: [e.g. Ubuntu 18.04, RTEMS 4.11, VxWorks 6.9]
Versions: [e.g. cFE 6.6, OSAL 4.2, PSP 1.3 for mcp750, any related apps or tools]

Additional context
Add any other context about the contribution here.
Third party code
If included, identify any third party code and provide text file of license
Contributor Info - All information REQUIRED for consideration of pull request
Full name and company/organization/center of all contributors ("Personal" if individual work)

If NASA Civil Servant Employee or GSFC Contractor on SES II

Address/email/phone and contract/task information (if applicable) must be on file

Else if Company

HAND SIGNED Company CLA must be on file (once per release): Company CLA

Else if Individual

HAND SIGNED Individual CLA must be on file (once per release): Individual CLA

Closing this PR.  Table changes have migrated to top-level, with only a bugfix to to_lab for include paths in our fork.


Fix git push error for protected CLA branch

The pull request is created from master636921574680223700 to master to fix git push error for protected CLA branch

@gewarren : Thanks for your contribution! The author, @gregvanl, has been notified to review your proposed change.


Image name input field too wide on mobile

On my device the field that shows the image name is too wide on mobile.
There should be some padding left and right.
Maybe use the '@media' CSS property to adjust in cas of mobile viewing.

See https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_media_queries/Using_media_queries


项目没有人维护了吗

项目没有人维护了吗
Why stop maintaining this project

Hi @chendx-github,
The technology evolved and currently we're focusing more on automatic approaches as our AutoExtract Services, which uses Artificial Intelligence heavily to recognize the elements in the page without any human effort and crawl the whole site faster.
You can read more about Automatic Extraction here.


how to deploy this project on myeclipse?

I use IDE  myeclipse2015, I want to use this project to test some attacks on some Alex sites(e.g google.com, baidu.com....), so please tell me how to deploy it on myeclipse and test these  popular websites with attacks?
Very thx!!!!!

I am not familiar with myeclipse. Maybe this pull request will help you (?)
https://github.com/RUB-NDS/TLS-Attacker/pull/3
Please note that TLS-Attacker is not meant for testing real web servers, since the attacks are very aggressive and could harm servers.


DID creation infinite loop if only 2 nodes on the network

If there are only two nodes available on the network, the minimum threshold of 3 is never met for storing a DID document.
This results in an infinite loop that needs to be caught and an error thrown.

There were several factors going on here.

The mainnet.json file had incorrect entries causing intermittent issues
vda-did didn't have a limit to the number of retries it attempts when trying to create a DID, causing an infinite loop in some scenarios
A bug in the node selector of account-node which caused duplicate nodes to be selected in some scenarios


AKS SP upgrade downtime is not accurate

We asked MSFT if downtime is expected or not, however, all the nides will be restarted, therefore all the PODs soon or later will be restarted which might cause service downtime.
This is not clearly indicated in the documentation, as this statement is a little bit ambiguous:
https://docs.microsoft.com/en-us/azure/aks/update-credentials#reset-the-existing-service-principal-credential
Warning
When you reset your cluster credentials on an AKS cluster that uses Azure Virtual Machine Scale Sets, a node image upgrade is performed to update your nodes with the new credential information.
So I would suggest updating and be more clear on it, it might produce a high impact on your services.
Thanks
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 0b842222-f6ac-5266-227f-7e400610e07b
Version Independent ID: 429cd3bf-2691-f633-2e0d-e70e5d8d0e03
Content: Reset the credentials for a cluster - Azure Kubernetes Service
Content Source: articles/aks/update-credentials.md
Service: container-service
GitHub Login: @mlearned
Microsoft Alias: mlearned

@aservera
Thanks for the feedback! I have assigned the issue to content author to check and update the document as appropriate.

@mlearned @zr-msft
Can you please check and add your comments on this doc update request as applicable.

Thank you for the feedback.
We've added a task to our backlog and will prioritize accordingly.
#please-close


Update README.md

The readme has usage of classes and methods that are not imported.

This was a major issue for my team as well. There seems be more prerequisites that are still missing even with the additions in this PR.

@nirinchev we still haven't gotten the code to work yet, but I know that these were missing
import InMemoryCache from 'apollo-boost'
import {
Credentials,
User,
GraphQLConfig
} from 'realm-graphql-client'
import { WebSocketLink } from 'apollo-link-ws';
import { ApolloProvider } from 'react-apollo';
import { concat, HttpLink, split } from 'apollo-client-preset';
import { getMainDefinition } from 'apollo-utilities';
I think that covers them. But like I said, we are still having trouble. First it was with the imports and then with the awaits (we wrapped in async ()) but then the error is "client is undefined"  It would be great to get a full example project to see it fully wired up. (just to get to a connected Object server on Realm Cloud with gql)
Thanks


Create patterns.java

Here is the implementation of basic * patterns using java

Thanks for your PR.
But how is this related to FizzBuzz?
Please consult the ReadMe before contributing.


New Stokes I fitting routine

There are concerns that the current Stokes I fitting code may not be the best currently available (since it's based on the FORTRAN MINPACK-1 package from 1980). Some experimenting is needed to determine if there's a better option.
Ideas to consider:

Same fitter, but add constraints (which are apparently supported?)
scipy.optimize, with or without constraints
Other packages?

What constraints would be valid? For the power law model, amplitude > 0 certainly. Constraints on spectral index? Not clear.
Side note: the scipy.optimize.least_squares method='lm' uses the same algorithm as MINPACK-1.

Would it also be possible to add a user input reference frequency for the Stokes I model fit? This would make it possible to initially already use the reference frequency from RM synthesis such that re-scaling the I model is not needed / more accurate


KAFKA-10158: Fix flaky testDescribeUnderReplicatedPartitionsWhenReassignmentIsInProgress

Set replica.fetch.max.bytes to 1 and produce multiple record batches to allow
for throttling to take place. This helps avoid a race condition where the
reassignment would complete more quickly than expected causing an
assertion to fail some times.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

Please review, @lbradstreet - thanks!

ok to test

retest this please

ok to test

ok to test

https://builds.apache.org/job/kafka-pr-jdk11-scala2.13/

retest this please

https://builds.apache.org/job/kafka-pr-jdk11-scala2.13/

Green build, merging to trunk and 2.6.


Install and first example is painful

#Describe the bug
Newcomer here.
On linux, the default suggested install doesn't work (keyserver not responding). Used curl to get around.
Then the default example provided in the documentation doesn't work.
As described: https://docs.gauge.org/getting_started/create-test-project.html?os=linux&language=javascript&ide=vscode
From VSCode: Create Gauge Project > js template.
Many errors.
Eventually, VSCode even frizzes when using gauge (didn't search why, but enough to make me stop).
What command(s) did you run when you found the bug?
Simply followed the installation process and ran the basic example in js.
Due to a deprecated API, needed to change screenshotFn by customScreenshotWriter.
Then the example fails:
step("Search for ", async (query) => {
await focus(textBox(toRightOf('Pricing')))
await write(query);
await press('Enter');
});
This really doesn't make the first experience with gauge very good... (sorry).
Operating System information
Linux
IDE information
VSCode

Many errors.

@fimbault Could you. please tell us, what errors are you seeing?


/dev/mqueue has to be labeled correctly

Docker-DCO-1.1-Signed-off-by: Dan Walsh<EMAIL_ADDRESS>(github: rhatdan)

LGTM

@rhatdan Could you post a link to the bugzilla?

LGTM

https://bugzilla.redhat.com/show_bug.cgi?id=1158248


Update schemes.py

Updated smooth insertions logic as in case of cterm smoothing insertions were converted to matches causing downstream problems (e.g. in kabat alignment)

As an example, investigate the following sequence: QSVLTQPPSVSEAPRQRVTITCSGSSSNIGNNAVNWYQQLPGKAPKLLINAADRCPRILMRCKQDSDCLAGCVCGPNGFCGTNSGVPDRFSGSSSGNTASLTITGAQAEDEADYYCNSRDSSGNNWVFGGGTKVTVL numbered in kabat scheme.


AutoCommandBinding: CanExecute is expected to be a property add support for methods

AutoCommandBinding binds the CanExecute logic to a Boolean property whose name is the same as the command name with a Can prefix. Using a property prevents the command to pass parameters and context to the CanExecute logic.
We need to support methods as well, such as bool CanSomeCommand( Object optionalArgument ).

This issue was moved to RadicalFx/Radical.Windows#4


Archiving this feedstock

Comment:
Can this be archived? I am the maintainer. I no longer use conda and don't intend to maintain this package. CC @conda-forge/core

Please submit a pr to admin-requests.


Tqdm and small compile

A small quality of life request in a progress bar for training.
A second small ( but potentially breaking change?) in wrapping the train step in a jit wrapper. Naively gives a factor 2 improvement in run time on CPU and GPU as far as I can see, but may need more advanced checking on other hardware.
More broadly I tried putting the training on a GPU and saw little speed up, I started digging through the code and I think there are quite a lot of conversions to numpy and non-TF operations. So at the moment there isn't much gain from GPU usage here, but the JIT compilation still looks advantageous.

Ahh thanks David! Both of these things looks super helpful. I did play around with jit compile a bit as I had seen it lead to improvements with some other work I had been doing but just hadn't got around to implementing it here. Should help solve #20.
This shouldn't be a breaking change but we will have to bump the version number up to 0.6.0.
Need to import tqdm I think.

Hi @yallup, have you had a chance to look at this? Be great to get these features merged in. Thanks!

I think it's because tensorflow is trying to create the function multiple times... in the for loop
for i in range(1,len(self.theta)):
        self.maf[i] = self._training(self.theta[i],
                                     self.sample_weights[i],
                                     self.maf[i], self.theta_min[i],
                                     self.theta_max[i])

which I can validate by running
self.maf[0] = self._training(self.theta[0],
                                 self.sample_weights[0],
                                 self.maf[0], self.theta_min[0],
                                 self.theta_max[0])
self.maf[1] = self._training(self.theta[1],
                                 self.sample_weights[1],
                                 self.maf[1], self.theta_min[1],
                                 self.theta_max[1])

which gives the same error when it gets to self.maf[1].

@yallup I've been trying to resolve this issue but couldn't do it. I'm keen to take advantage of the tqdm addition though so I have removed the @tf.function(jit_compile=True) decorator on the training step for now.
I will come back to this when I look at #31 again. If the tests pass could you please squash and merge. Thanks!

Codecov Report
Patch coverage: 100.00% and project coverage change: +0.02% :tada:

Comparison is base (ae63d2a) 88.93% compared to head (b34b8f9) 88.95%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #26      +/-   ##
==========================================
+ Coverage   88.93%   88.95%   +0.02%
==========================================
  Files           4        4
  Lines         470      471       +1
==========================================
+ Hits          418      419       +1
  Misses         52       52

Files Changed
Coverage Δ

margarine/maf.py
95.97% <100.00%> (+0.01%)
:arrow_up:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Totally agree on putting a pin in the speedup stuff, it was just a little thing I was trying. I got a bit caught up trying out some other bits such as reducing translations between tf and numpy operations as that might be a bigger speedup in the long run, one to put a pin in and revisit I think!

No worries! Thanks for having a look at it. I started the process of rewriting the MAF class line by line this evening to try and eliminate some of the back and forth between numpy/tensorflow and to add in some tf.function decorators where possible. Seems to be going well and hopefully that will help with run time issues. I'll put a PR in at some point.


added-branching-model-information-186

Added further information about the Branching-Model

Please review!

Please Review!

Fixed Typos. Please review again :)


ebiten: Add the same API as Wheel() but unifying the units between desktops and browsers

I'm not sure what unit is used in GLFW, but this is much slower than browser's wheel.

Let's fix this by adding a new API without breaking the backward compatibility.

macOS: the value is multiplied by 1/10:
https://github.com/glfw/glfw/blob/6ed5294223fec513c3b1e95f1857b3104e2e9b86/src/cocoa_window.m#L614-L627
Windows: the value is multiplied by 1/WHEEL_DELTA:
https://github.com/glfw/glfw/blob/6ed5294223fec513c3b1e95f1857b3104e2e9b86/src/win32_window.c#L929-L941
Linux: the value is not multiplied:
https://github.com/glfw/glfw/blob/6ed5294223fec513c3b1e95f1857b3104e2e9b86/src/x11_window.c#L1382-L1390

On Chrome, the value is multiplied by 120?:
https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/events/wheel_event.h;l=43;drc=d421bdb9b9a24f42fd8af3fa9ea4be913139dbb3

Another factor: https://source.chromium.org/chromium/chromium/src/+/main:ui/events/event.cc;l=703-710;drc=1bce534ad898791526980916b640a2bde249a520

On Linux, smooth scrolling is not implemented in GLFW, while implemented in Chromium?
https://github.com/glfw/glfw/issues/1376

Probably we want to see how #1704 goes.

Just dividing by 120 on browsers (or in opposite, multiplying by 120 on desktop) would work https://developer.mozilla.org/en-US/docs/Web/API/Element/mousewheel_event (this is not about wheel event, but I believe the behavior is the same)

Hmm, I found even Safari and Chrome don't agree with the amount of scrolling. I think there is not a good solution to normalize the wheel value...

https://github.com/basilfx/normalize-wheel/blob/master/src/normalizeWheel.js

With a magic trackpad, the values are much different between macOS and Windows. The situation is much more complicated :/

Apparently Firefox and Safari is normalized by a device pixel ratio.
https://github.com/flutter/engine/pull/35428

Could the docs for Wheel() at least give a warning that the values returned might be quite different depending on the platform. At first I was testing on desktop linux where I got values of 1/-1 for the y value of Wheel(), but on browser I was getting values around 100/-100.
Maybe a potential API is one where the returned value is always 1/-1 no matter how large/small the wheel value is? Something like
func NormalizedWheel() (float64, float64) {
  x, y := Wheel()
  if x > 0 { x = 1 }
  if x < 0 { x = -1 }
  if y > 0 { y = 1 }
  if y < 0 { y = -1 }
 return x, y
}


How to make ReactiveProperty with ReactiveCollection?

for example:
    public ReactiveProperty<int> total { get; private set; }
    public ReactiveCollection<UsedElem> listUsed = new ReactiveCollection<UsedElem>();

    public class UsedElem
    {
        public ReactiveProperty<int> tvalue;
    }

ReactiveProperty total  is the sum of tvalue in UsedElem listUsed,  listUsed can be insert and remove, and tvalue can also changed.
How to create ReactiveProperty total ?

tvalue=listUsed.ObserveRemove().ToReactiveProperty();
tvalue=listUsed.ObserveEveryValueChanged(_ => _.Count).ToReactiveProperty();

@guopenglun That won't detect additions, only removals

I've done this as RxSum
You need to observe add, remove, clear, replace and have those subscribeWithStwte using the output total reactive property.
The only issue I have with this is that the output property needs to be disposable and needs to dispose it's 4 subscriptions.

I also made the more generic RxAggregate would be nice to just override the linq methods directly, but I'm afraid of leaking Disposables.
Thoughts on that would be appreciated.

Was at the beach when I wrote that...
Here's some code.
DisposableReadOnlyReactiveProperty is basically a reactive property that carries a disposable that will kill all those subscriptions; Would be happy to see a better alternative.
Also, it seems that SubscribeWithState, passing in aggregated would be better.
public static IDisposableReadOnlyReactiveProperty RxAggregate<T, TR>(
this IReadOnlyReactiveCollection source,
TR seed,
Func<TR, T, TR> doIt,
Func<TR, T, TR> undoIt)
{
var aggregated = new ReactiveProperty(source.Aggregate(seed, doIt));
var disposable = new CompositeDisposable();
source.ObserveRemove().Subscribe(args => aggregated.Value = undoIt(aggregated.Value, args.Value)).AddTo(disposable);
source.ObserveAdd().Subscribe(args => aggregated.Value = doIt(aggregated.Value, args.Value)).AddTo(disposable);
source.ObserveReplace().Subscribe(args => aggregated.Value = doIt(undoIt(aggregated.Value, args.OldValue), args.NewValue)).AddTo(disposable);
source.ObserveReset().Subscribe(args => aggregated.Value = seed).AddTo(disposable);
return new DisposableReadOnlyReactiveProperty(aggregated, disposable);
}
public static IDisposableReadOnlyReactiveProperty<long> RxSum(this IReadOnlyReactiveCollection<long> source) => source.RxAggregate(0L, (a, b) => a + b, (a, b) => a - b);
public static IDisposableReadOnlyReactiveProperty<int> RxSum(this IReadOnlyReactiveCollection<int> source) => source.RxAggregate(0, (a, b) => a + b, (a, b) => a - b);
public static IDisposableReadOnlyReactiveProperty<float> RxSum(this IReadOnlyReactiveCollection<float> source) => source.RxAggregate(0f, (a, b) => a + b, (a, b) => a - b);
public static IDisposableReadOnlyReactiveProperty<double> RxSum(this IReadOnlyReactiveCollection<double> source) => source.RxAggregate(0d, (a, b) => a + b, (a, b) => a - b);


License file is missing

Please add a license file to the repository. I want to evaluate if am able to use it.

Added a MIT license :)

thanks!


Update App.jsx

please accept.. thx

@f1suppa The PR consists of changes specific to your local use case.
The change in IP will not make the repo work for others.
I suggest you to fork the repo and make use of the forked repo for any changes.
Any other generic solution PRs are welcome.
Closing the Pull request.


fix ?. usages for obvious UnityEngine.Component derived objects

This change is a first-pass update to remove usages of ?. from objects that obviously derive from UnityEngine.Component (ex: GameObject)
Fixes: #6044
Validation

Use HandInteractionExample (in editor) and the InputSimulationService to verify no input related regressions.

/azp run


Add Gradle toolchain support

fixes #184
With that we can get rid of the java 11 check and the information around it.
Also, we can "on the fly" update the jdk version the project will build on.
We only need "a" java version installed to start Gradle.
As discussed in the ticket, I also had to update Gradle to version 7.6  which (seems) brings flaky tests.
But we can't use toolchains before that version.
So maybe this PR wil hang here until this is fixed 🙃
Questions / Todos

I guess this is not going to work anymore (or has to be adjusted)
👉  https://github.com/apple/pkl/blob/2499e2c4937fc228e49e94e41fdaac065c203168/.circleci/config.pkl#L98C7-L107

I guess this is not going to work anymore (or has to be adjusted)
👉  https://github.com/apple/pkl/blob/2499e2c4937fc228e49e94e41fdaac065c203168/patches/graalVm23.patch#L25-L30

Let me know if there is more like these 🙃

In my opinion, it’s important that the Java version/vendor can be changed in a single place. For example, I often use this to reproduce a failed CI build.

Any suggestion/recommendation how to do that?
Maybe an optional gradle property? 🤔

Perhaps you could add pklJvmProject.gradle.kts and apply it in the other files.

IMHO the property is unnecessary. It's much easier to edit private const val DEFAULT_JVM_VERSION = 11. How about renaming it to JDK_VERSION? I'd also add a val for the vendor.

I think JDK_VERSION is correct, but mainly I'd like to get rid of DEFAULT.
const is only an optimization, but a vendor val isn't essential.
System property would be a small improvement because setting the project property in a build script will likely not work correctly.

Hmm.. unfourtnalty I'm unable to update he dependency lock files 🤔
This is my change:
index 445bfc4..bdb5c2a 100644
--- a/buildSrc/src/main/kotlin/JvmToolchain.kt
+++ b/buildSrc/src/main/kotlin/JvmToolchain.kt
@@ -2,7 +2,7 @@ import org.gradle.jvm.toolchain.JavaLanguageVersion
 import org.gradle.jvm.toolchain.JvmVendorSpec
 import org.gradle.api.Project

-private const val JDK_VERSION = 11
+private const val JDK_VERSION = 17

 val jvmToolchainVersion: JavaLanguageVersion
     get() {
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index 62fc47f..cce9276 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -8,11 +8,11 @@ downloadTaskPlugin = "4.1.2"
 geantyref = "1.+"
 googleJavaFormat = "1.15.0"
 # must not use `+` because used in download URL
-graalVm = "22.3.3"
-# intentionally empty; replaced by patch file when building pkl-cli macos/aarch64
-graalVM23JdkVersion = "replace-me"
+graalVm = "23.0.2"
+graalVM23JdkVersion = "17.0.9"
 # slightly hacky but convenient place so we remember to update the checksum
 graalVmSha256-darwin-amd64 = "cab6a1436626adc28ec0f72791772315678e7c758e2fbae2cb6758a38f27c56a"
+graalVmSha256-macos-aarch64 = "2214b6ecb32faacc84dffcbfae930450abe77c31730c4b6310e22d8f743959a5"
 graalVmSha256-linux-amd64 = "959154e1248108dcd6eb279032cecdd2a6076bdebb345de9532681185231d255"
 graalVmSha256-linux-aarch64 = "177d682f3455d00fa2491246e809d9c9b743187a82115ad3f578998b4935d5a1"
 ideaExtPlugin = "1.1"

When running ./gradlew updateDependencyLocks I will get some erros like:

* What went wrong:
Execution failed for task ':pkl-tools:updateDependencyLocks'.
> Could not resolve all files for configuration ':pkl-tools:compileClasspath'.
   > Could not resolve project :pkl-codegen-java.
     Required by:
         project :pkl-tools
      > No matching variant of project :pkl-codegen-java was found. The consumer was configured to find an API of a library compatible with Java 11, preferably in the form of class files, preferably optimized for standard JVMs, and its dependencies declared externally but:
          - Variant 'apiElements' capability org.pkl-lang:pkl-codegen-java:0.26.0-SNAPSHOT declares an API of a library, packaged as a jar, preferably optimized for standard JVMs, and its dependencies declared externally:
              - Incompatible because this component declares a component compatible with Java 17 and the consumer needed a component compatible with Java 11
          - Variant 'javadocElements' capability org.pkl-lang:pkl-codegen-java:0.26.0-SNAPSHOT declares a runtime of a component, and its dependencies declared externally:
              - Incompatible because this component declares documentation and the consumer needed a library
              - Other compatible attributes:
                  - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
                  - Doesn't say anything about its target Java version (required compatibility with Java 11)
                  - Doesn't say anything about its elements (required them preferably in the form of class files)
          - Variant 'mainSourceElements' capability org.pkl-lang:pkl-codegen-java:0.26.0-SNAPSHOT declares a component, and its dependencies declared externally:
              - Incompatible because this component declares a component of category 'verification' and the consumer needed a library
              - Other compatible attributes:
                  - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
                  - Doesn't say anything about its target Java version (required compatibility with Java 11)
                  - Doesn't say anything about its elements (required them preferably in the form of class files)
                  - Doesn't say anything about its usage (required an API)
          - Variant 'runtimeElements' capability org.pkl-lang:pkl-codegen-java:0.26.0-SNAPSHOT declares a runtime of a library, packaged as a jar, preferably optimized for standard JVMs, and its dependencies declared externally:
              - Incompatible because this component declares a component compatible with Java 17 and the consumer needed a component compatible with Java 11
          - Variant 'sourcesElements' capability org.pkl-lang:pkl-codegen-java:0.26.0-SNAPSHOT declares a runtime of a component, and its dependencies declared externally:
              - Incompatible because this component declares documentation and the consumer needed a library
              - Other compatible attributes:
                  - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
                  - Doesn't say anything about its target Java version (required compatibility with Java 11)
                  - Doesn't say anything about its elements (required them preferably in the form of class files)
          - Variant 'testResultsElementsForTest' capability org.pkl-lang:pkl-codegen-java:0.26.0-SNAPSHOT:
              - Incompatible because this component declares a component of category 'verification' and the consumer needed a library
              - Other compatible attributes:
                  - Doesn't say anything about how its dependencies are found (required its dependencies declared externally)
                  - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
                  - Doesn't say anything about its target Java version (required compatibility with Java 11)
                  - Doesn't say anything about its elements (required them preferably in the form of class files)
                  - Doesn't say anything about its usage (required an API)

Seems we run into a few other Gradle 7x toolchain issues 🙈
https://github.com/gradle/gradle/issues/22796
https://github.com/gradle/gradle/issues/19382
Lets wait for #245

Hey @bioball and/or @stackoverflow I might need your help here:

For clarification. The CI checks gradle-check-jdk11 and gradle-check-jdk17 are meant to be check if the code got compiled/works with Java 11 and Java 17, right?

If this is the case, then my changes are correct.
Because before we rely on the installed Java version on the machine.
Since Gradle handles  this now, we have to put the Java version into the build script (using the system property PKL_JVM_VERSION).
For now I left using the respective Docker images (11 and 17), however, they are not required anymore.
Gradle toolchains make sure that the correct JDK will be installed before compiling anything.
We only require an java image that can "Start" Gradle 🙃

Can someone help me out to fix the graalVm23.patch file? 🙈

I tried various things, but non of the results look like it should (or maybe? 🤷 )
I tried to run updateDependencyLocks, but this seems to update too many updates.
I tried to run buildNative classes --update-locks  org.graalvm.compiler:\*,org.graalvm.sdk:\*,org.graalvm.js:\*,org.graalvm.nativeimage:\*,org.graalvm.truffle:\*, but this seems not to update all of the dependencies even if I mentioning them 😭
The new patch file contains only 266 lines (instead of the orignal 530 lines).
For example, the whole stdlib/gradle.lockfile is not included in the patch at all.
So what I'm doing wrong?
How can I update it?
(Maybe these changes because of the Gradle 7.6 update? 🤷 I don't know)
This is the patchfile I end up with: https://pastebin.com/xFVt1XRa

Hey @StefMa! Just getting around to looking at this.
To fix the patch file: you can apply the patch on a file-by-file basis using git apply --reject patches/graalVm23.patch. This will apply changes to files where there are no conflicts, and create .rej files for those where conflicts are found.
In this case, I think what you need to do is:

git apply --reject patches/graalVm23.patch
Delete all .rej files (we don't need those changes anymore thanks to this PR)
Create the new patch file

git diff > patches/graalVm23.patch

Commit the new changed patch file
Cleanup; reset the rest of the un-staged changes

The CI tests are failing on task :pkl-config-java:generateTestConfigClasses for gradle-check-jdk17.
Cause:
Caused by: org.gradle.process.internal.ExecException: Process 'command '/usr/local/jdk-11.0.22/bin/java'' finished with non-zero exit value 1
        at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:431)
        at org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJavaExecAction.java:52)
        at org.gradle.api.tasks.JavaExec.exec(JavaExec.java:165)

I tried running this locally in docker using openjdk:11, and am seeing this:
> Task :pkl-config-java:generateTestConfigClasses FAILED
Error: LinkageError occurred while loading main class org.pkl.codegen.java.Main
        java.lang.UnsupportedClassVersionError: org/pkl/codegen/java/Main has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

So, it seems like Gradle toolchains might affect built-in Java compile and run tasks, but for some reason it doesn't affect JavaExec. This looks related: https://github.com/gradle/gradle/issues/16791


Directory permission issue when using k8s DaemonSet and PMEM-CSI

I created a local PV and PVC with local storage class(no provisioner) and readWriteMany access mode for storage sharing between pods:
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: local-storage
provisioner: kubernetes.io/no-provisioner
---
apiVersion: v1
kind: PersistentVolume
metadata:
  name: shared-volume
spec:
  capacity:
    storage: 8Gi
  accessModes:
  - ReadWriteMany
  storageClassName: local-storage
  local:
    path: /tmp
  nodeAffinity:
    required:
      nodeSelectorTerms:
      - matchExpressions:
        - key: storage
          operator: In
          values:
          - pmem
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: shared-volume-claim
spec:
  storageClassName: local-storage
  volumeName: shared-volume
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 8Gi

Then I created a daemonSet mount to this volume(path /tmp/memverge). This daemonSet uses PMEM-CSI to provision PMEM by CSI ephemeral volume(I'm using OpenShift 4.6 and generic ephemeral volume somehow is not supported). Everything works fine and I can attach to my pods(say pod A) and access the mounted directory. But if I create another pod(say pod B, which is running on the same node as pod A) mounting to the same local PV, I no longer able to access /tmp/memverge in pod A and get error:
[root@memory-machine-mcz4z /]# ls /tmp/memverge/
ls: cannot open directory '/tmp/memverge/': Permission denied

The permission in container is correct:
[root@memory-machine-mcz4z /]# ls -l /tmp/
total 8
-rwx------.  1 root root 701 Dec  4 17:37 ks-script-esd4my7v
-rwx------.  1 root root 671 Dec  4 17:37 ks-script-eusq_sc5
drwxrwsrwt. 11 root root 520 Mar  5 23:12 memverge

If I create more pods mounting to the same local PV, all these pods works fine and I am able to access the mounted dir. But not the pod A.
If I remove the CSI ephemeral volume part in the daemonSet and re-do everything, this issue is gone. The volume spec for PMEM-CSI is as following:
volumes:
      - name: pmem-csi-ephemeral-volume
        csi:
          driver: pmem-csi.intel.com
          fsType: "xfs"
          volumeAttributes:
            size: "20Gi"

This issue seems only happens when daemonSet is involved. I haven't do

This smells like an issue in the container runtime, potentially related to SELinux.
Can you reproduce it with SELinux disabled?
Can you reproduce it when replacing PMEM-CSI with some other CSI driver, for example https://github.com/kubernetes-csi/csi-driver-host-path?

@Tianyang-Zhang Did using different paths help?

Sorry about the late update. I tried using a different path(/home/shared) but still having this issue. The SELinux was disabled.
[root@memory-machine-28ql5 /]# ls -l /home/shared/
ls: cannot open directory '/home/shared/': Permission denied
[root@memory-machine-28ql5 /]# ls -l /home/
total 0
drwxr-xr-x. 3 root root       22 Apr  9 00:08 etc
drwxr-xr-x. 1 root root       29 Apr  9 00:08 memverge
drwxr-xr-x. 3 root root       22 Apr  9 00:08 opt
drwxrwsr-x. 3 root<PHONE_NUMBER> 81 Apr  9 23:15 shared

Can you reproduce it with the CSI hostpath driver instead of PMEM-CSI? v1.6.2 should work out of the box, i.e. no image building needed.
If yes, then this is something that can be reported to Red Hat.

When I trying to create your daemonSet example, I got this error:
Normal   Scheduled         29s                default-scheduler  Successfully assigned injection/sleep-lvqhv to osc-5k68w-worker-9c42p
Warning  FailedMount       13s (x6 over 29s)  kubelet            MountVolume.NewMounter initialization failed for volume "pmem-csi-ephemeral-volume" : volume mode "Ephemeral" not supported by driver hostpath.csi.k8s.io (no CSIDriver object)

Should I build a image from source?

How did you install the CSI hostpath driver? When you install via https://github.com/kubernetes-csi/csi-driver-host-path/blob/master/deploy/kubernetes-distributed/deploy.sh, then it should install a CSIDriver object from https://github.com/kubernetes-csi/csi-driver-host-path/blob/master/deploy/kubernetes-distributed/hostpath/csi-hostpath-driverinfo.yaml

I rechecked the whole cluster system and found selinux was re-enabled. This issue is gone after disabled selinux. Sorry about the confusion and extra time you spent!

But the solution can't be "disable SELinux", right?
It might require some extra work, but ideally it should also work with SELinux enabled - whatever "it" is that was failing.

But the solution can't be "disable SELinux", right?
It might require some extra work, but ideally it should also work with SELinux enabled - whatever "it" is that was failing.

You are right. It might related to how daemonSet works? I only met this issue when using daemonSet.

FYI, we also reproduced this issue without any CSI driver on Diamanti cluster(k8s). Disable SELinux also fixed it.


Visual Studio 2022 Support

Installed product versions

Visual Studio: 2022 All Versions

Description
Make the extension available in Visual Studio 2022.
Steps to recreate

Download the extension installer.
Run the installer.

Current behavior
Message that it is already installed to all applicable products appears even though it is not installed in Visual Studio 2022.
It is also not listed in Online Extensions in Manage Extensions Visual Studio 2022.
Expected behavior
Installs and works in Visual Studio 2022.
Note: Sorry for the all the extra details.  I probably could have stopped with the title on this one.

Thanks @scottkuhl, we're indeed tracking this work to support VS 2022!

Writing Visual Studio Extensions with Mads - Splitting extensions for Visual Studio 2022

This is already in progress in #936


Add Ternary Tree Mapper

Summary
Adds a new mapper class TernaryTreeMapper to implement the Ternary Tree based mapping algorithm (cf. arXiv:1910.10746). Fixes #582
Depends on the two previous pull requests #1270 and #1301 .

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

-12 of 320 (96.25%)  changed or added relevant lines in 13 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.2%) to 86.984%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

qiskit_nature/second_q/mappers/mode_based_mapper.py
44
45
97.78%

qiskit_nature/second_q/mappers/ternary_tree_mapper.py
56
57
98.25%

qiskit_nature/second_q/operators/majorana_op.py
166
176
94.32%

Files with Coverage Reduction
New Missed Lines
%

qiskit_nature/second_q/drivers/psi4d/psi4driver.py
2
83.47%

Totals

Change from base Build<PHONE_NUMBER>:
0.2%

Covered Lines:
9035

Relevant Lines:
10387

💛  - Coveralls


[FEATURE] Script to convert weight from Jax to PyTorch

Is your feature request related to a problem? Please describe.
I am trying to create multiple checkpoints of ViT at different iterations. Are there any systematic way to perform such conversion?
Describe the solution you'd like
I would like to be able to convert JAX ViT model to a PyTorch model, similar to this model (https://huggingface.co/google/vit-base-patch16-224)
Describe alternatives you've considered
I have tried to start pre-training HF models on A100 but so far was not successful to reach to same accuracy.

@yazdanbakhsh it's integrated into the model for original Google jax implementations (big vision support being merged today)

https://github.com/google-research/vision_transformer
https://github.com/google-research/big_vision

However, I don't have support for the Hugging Face ViT models. Usually people go from timm -> Transformers, not the other way around. I honestly wouldn't recommend pretraining from scratch on the Transformers model, I don't think it's been well tested outside of pretrained. Other people have reported this. timm is better tested for training from random weights.

@rwightman Thanks for the explanation. Which script do you suggest to start with for distributed training of ViT using timm?

@yazdanbakhsh just dumped some hparams, but as usual, they need adapting to your scenario / specific network https://gist.github.com/rwightman/943c0fe59293b44024bbd2d5d23e6303

@rwightman Thanks for sharing the scripts. I am running the initial test with this:
./distributed_train.sh 8 --config scripts/vit-b16_rpn.yaml

After changing the data_dir: gs://xxx-imagenet to the location of my bucket with [ILSVRC2012_img_train.tar] and [ILSVRC2012_img_val.tar]. However, it seems the script can not find the dataset
AssertionError: Dataset imagenet2012: could not find data in gs://sparse_ckpts/tfds/imagenet2012. Please make sure to call dataset_builder.download_and_prepare(), or pass download=True to tfds.load() before trying to access the tf.data.Dataset object.

I think it would be really helpful for community with sharing these scripts with the way they are supposed to run. It can enable many research.

@rwightman Also I assume all these yaml do pre-training (random weights)?

I think I have figured out the issue with the dataset. I am wondering if it would be possible to provide yaml config for pre-training (random weight) for google/vit-base-patch16-224? That would be a great help.

@rwightman Thanks again for providing the details. It is much more robust for training vision models. I could finally reach an accuracy of 76% for ViT-B/16. With this training script. I also made a change to include cutout as part of the randaug to be more consistent with the BigVision repo.
Wondering if you have any other suggestions for the configs to change to reach to a reasonable accuracy as the HF model?

The obvious changes that I want to make are as follows (based on bigvision)

learning rate: 0.001
weight decay: 0.0001
warup: 15 epochs (which with my step 632 becomes around 10K steps)

@rwightman do you have the yaml scripts for ResNet and other models? Would it be possible to share them?


Search Field

Description of the enhancement
A clear and concise description of what the problem you wish to solve or any enhancement you wish to do for the project

search field

Screenshots
Screenshots of the proposed changes compared with the current version of the project

Description of the enhancement
A clear and concise description of what the problem you wish to solve or any enhancement you wish to do for the project

search field

Screenshots
Screenshots of the proposed changes compared with the current version of the project

Please give elaborate description of what you wish to do

Description of the enhancement
A clear and concise description of what the problem you wish to solve or any enhancement you wish to do for the project

search field

Screenshots
Screenshots of the proposed changes compared with the current version of the project

Please give elaborate description of what you wish to do

@smaranjitghose There should have a search box so that the visitor can search their information.


Support setting up LLVM flang toolchain

Add support for setting up the LLVM flang compiler flang-new. Currently, there are not many distribution channels available for this compiler.

https://apt.llvm.org/ has 17, 18 and 19 (main).  please only bother with the latter.

Currently, Ubuntu noble have flang-18 LLVM v18.1.3


Improve support for VPC Flow logs

This this is done through cloudwatch logs there is not that much we need to to.

Docs, how to enable.
Grok Pattern https://gist.github.com/brandond/cc57062e4eb8628ec20c53f836882a67
Sample code

Fixed in 0.0.22
Grok pattern:
https://github.com/sonyxperiadev/lumber-mill/blob/master/lumbermill-core/src/main/resources/patterns/aws
AWS Lambda event processor
https://github.com/sonyxperiadev/lumber-mill/blob/master/lumbermill-aws-lambda/src/main/java/lumbermill/aws/lambda/VPCFlowLogsEventPreProcessor.java


metadatasvc integration and networking setup

After taking a few wrong directions... and it's still far from acceptable. But does the bare minimum job.

Abandoning in favor of https://github.com/coreos/rocket/pull/315


Empty submissions can be generated

Passing two empty lists for files and metadata is valid for creation of a submission and get's an ID in return.

Fixed in #265.