Merge consecutive free blocks at sweep time

A way would be to make the free list a doubly linked list, using the block memory for the additional fields.

Rebuilding completely the free list is an alternative to making a doubly linked list.


Local multiplayer

Adds support for local multiplayer
Things left to do:

[ ] Didn't implement the controlSprite API from the controller
[ ] Player connect/disconnect events
[ ] Set an icon and color

Moved everything under the controller category in a sub-group called "multiplayer".


fix(drizzle): expose db.drizzle.$client type

According to Drizzle 0.34.0 change

However, currently we do not expose this type

Only with SQLite the adapter itself had it, but this PR includes it to the declaration statement.
We need this NodePostgres & { $client } because this is how Drizzle defines it too:

From other side, I've been trying to understand why it could be useful to support a client connection.
I have a good example where it's probably better to use pg.Client in recent createDatabase:
https://github.com/payloadcms/payload/blob/ef8a5b1f3e94a4d12b96cee226ff0857cb33e887/packages/drizzle/src/postgres/createDatabase.ts#L59-L63
https://github.com/payloadcms/payload/blob/ef8a5b1f3e94a4d12b96cee226ff0857cb33e887/packages/drizzle/src/postgres/createDatabase.ts#L106-L109
I just needed a single time connection to the db (another one) without anything fancy. But we typically need to handle concurrent requests / transactions for which a client connection isn't designed.
It may be only useful in custom scripts.
It looks like Drizzle is going to another direction too, without needing to pass pool/client: https://github.com/drizzle-team/drizzle-orm/discussions/309
import { drizzle } from "drizzle-orm/node-postgres";

const db = drizzle(process.env.DATABASE_URL);
// or
const db = drizzle({
  connection: process.env.DATABASE_URL
});
const db = drizzle({
  connection: {
    user: "...",
    password: "...",
    host: "...",
    port: 4321,
    db: "...",
  },
});

// if you need to pass logger or schema
const db = drizzle({
  connection: process.env.DATABASE_URL,
  logger: true,
  schema: schema,
});


SSL SYSCALL error

PGSync version:
1.1.25
Postgres version:
9.6.18
Elasticsearch version:
Redis version:
Python version:
Problem Description:
After several minutes of polling the DB pgsync gives this error.  I tried setting the poll_timeout env var in my docker-compose.yml:
- POLL_TIMEOUT=5

Maybe there should be some retry code added?  I also noticed the connection is not retried if the database is disconnected for a bit.
Error Message (if any):
pgsync_1         | Polling db mydb: 0 cache items
pgsync_1         | Exception in thread Thread-8:
pgsync_1         | Traceback (most recent call last):
pgsync_1         |   File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
pgsync_1         |     self.run()
pgsync_1         |   File "/usr/local/lib/python3.7/threading.py", line 870, in run
pgsync_1         |     self._target(*self._args, **self._kwargs)
pgsync_1         |   File "/usr/local/lib/python3.7/site-packages/pgsync/sync.py", line 816, in poll_db
pgsync_1         |     conn.poll()
pgsync_1         | psycopg2.OperationalError: SSL SYSCALL error: EOF detected
pgsync_1         |
pgsync_1         |
pgsync_1         | 2021-02-01 17:26:19.695:ERROR:sqlalchemy.pool.impl.QueuePool: Exception during reset or similar
pgsync_1         | Traceback (most recent call last):
pgsync_1         |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 697, in _finalize_fairy
pgsync_1         |     fairy._reset(pool)
pgsync_1         |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 893, in _reset
pgsync_1         |     pool._dialect.do_rollback(self)
pgsync_1         |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 543, in do_rollback
pgsync_1         |     dbapi_connection.rollback()
pgsync_1         | psycopg2.InterfaceError: connection already closed
pgsync_1         | 2021-02-01 17:51:47.246:DEBUG:pgsync.sync: Truncating replication slot: mydb_amenities
pgsync_1         | 2021-02-01 17:51:47.250:ERROR:pgsync.base: Exception (psycopg2.OperationalError) SSL SYSCALL error: EOF detected

This has been reported before but I was unable to get more information get to the bottom of it.
I have seen reports of this on AWS.
Do you have access to the logs?

Can you search for the "terminating walsender process due to replication timeout" in the logs around the time the error occured
or any other clues around the time this error occurred

Nothing too striking here - looks like the connection went away from the client side.  I'm going to keep digging.  Here is part of our log in the meantime:
2021-02-01 18:00:11 UTC::@:[12345]:LOG:  checkpoint starting: time
2021-02-01 18:00:11 UTC::@:[12345]:LOG:  checkpoint complete: wrote 1 buffers (0.0%); 0 transaction log file(s) added, 0 removed, 1 recycled; write=0.126 s, sync=0.002 s, total=0.141 s; sync files=1, longest=0.002 s, average=0.002 s; distance=16383 kB, estimate=16390 kB
2021-02-01 18:05:11 UTC::@:[12345]:LOG:  checkpoint starting: time
2021-02-01 18:05:11 UTC::@:[12345]:LOG:  checkpoint complete: wrote 1 buffers (0.0%); 0 transaction log file(s) added, 0 removed, 1 recycled; write=0.126 s, sync=0.002 s, total=0.139 s; sync files=1, longest=0.002 s, average=0.002 s; distance=16384 kB, estimate=16390 kB
2021-02-01 18:10:12 UTC::@:[12345]:LOG:  checkpoint starting: time
2021-02-01 18:10:12 UTC::@:[12345]:LOG:  checkpoint complete: wrote 1 buffers (0.0%); 0 transaction log file(s) added, 0 removed, 1 recycled; write=0.127 s, sync=0.001 s, total=0.139 s; sync files=1, longest=0.001 s, average=0.001 s; distance=16384 kB, estimate=16389 kB
2021-02-01 18:15:12 UTC::@:[12345]:LOG:  checkpoint starting: time
2021-02-01 18:15:12 UTC::@:[12345]:LOG:  checkpoint complete: wrote 1 buffers (0.0%); 0 transaction log file(s) added, 0 removed, 1 recycled; write=0.126 s, sync=0.001 s, total=0.140 s; sync files=1, longest=0.001 s, average=0.001 s; distance=16384 kB, estimate=16388 kB
2021-02-01 18:20:12 UTC::@:[12345]:LOG:  checkpoint starting: time
2021-02-01 18:20:12 UTC::@:[12345]:LOG:  checkpoint complete: wrote 1 buffers (0.0%); 0 transaction log file(s) added, 0 removed, 1 recycled; write=0.127 s, sync=0.002 s, total=0.142 s; sync files=1, longest=0.002 s, average=0.002 s; distance=16384 kB, estimate=16388 kB
2021-02-01 18:25:12 UTC::@:[12345]:LOG:  checkpoint starting: time
2021-02-01 18:25:12 UTC::@:[12345]:LOG:  checkpoint complete: wrote 1 buffers (0.0%); 0 transaction log file(s) added, 0 removed, 1 recycled; write=0.126 s, sync=0.001 s, total=0.139 s; sync files=1, longest=0.001 s, average=0.001 s; distance=16384 kB, estimate=16387 kB
2021-02-01 18:30:12 UTC::@:[12345]:LOG:  checkpoint starting: time
2021-02-01 18:30:12 UTC::@:[12345]:LOG:  checkpoint complete: wrote 1 buffers (0.0%); 0 transaction log file(s) added, 0 removed, 1 recycled; write=0.127 s, sync=0.002 s, total=0.140 s; sync files=1, longest=0.002 s, average=0.002 s; distance=16384 kB, estimate=16387 kB
2021-02-01 18:35:13 UTC::@:[12345]:LOG:  checkpoint starting: time
2021-02-01 18:35:13 UTC::@:[12345]:LOG:  checkpoint complete: wrote 1 buffers (0.0%); 0 transaction log file(s) added, 0 removed, 1 recycled; write=0.125 s, sync=0.002 s, total=0.139 s; sync files=1, longest=0.002 s, average=0.002 s; distance=16384 kB, estimate=16387 kB
2021-02-01 18:38:38 UTC:<IP_ADDRESS>(61220):myuser@mydb:[32406]:LOG:  logical decoding found consistent point at 7C9/87008368
2021-02-01 18:38:38 UTC:<IP_ADDRESS>(61220):myuser@mydb:[32406]:DETAIL:  There are no running transactions.
2021-02-01 18:38:38 UTC:<IP_ADDRESS>(61220):myuser@mydb:[32406]:STATEMENT:  SELECT *
	FROM PG_CREATE_LOGICAL_REPLICATION_SLOT('mydb_amenities', 'test_decoding')
2021-02-01 18:39:25 UTC:<IP_ADDRESS>(61222):myuser@mydb:[960]:LOG:  starting logical decoding for slot "mydb_amenities"
2021-02-01 18:39:25 UTC:<IP_ADDRESS>(61222):myuser@mydb:[960]:DETAIL:  streaming transactions committing after 7C9/870083A0, reading WAL from 7C9/87008368
2021-02-01 18:39:25 UTC:<IP_ADDRESS>(61222):myuser@mydb:[960]:STATEMENT:  SELECT xid, data
	FROM PG_LOGICAL_SLOT_PEEK_CHANGES('mydb_amenities', NULL, NULL)
	WHERE CAST(CAST(xid AS TEXT) AS BIGINT) < 227800
2021-02-01 18:39:25 UTC:<IP_ADDRESS>(61222):myuser@mydb:[960]:LOG:  logical decoding found consistent point at 7C9/87008368
2021-02-01 18:39:25 UTC:<IP_ADDRESS>(61222):myuser@mydb:[960]:DETAIL:  There are no running transactions.
2021-02-01 18:39:25 UTC:<IP_ADDRESS>(61222):myuser@mydb:[960]:STATEMENT:  SELECT xid, data
	FROM PG_LOGICAL_SLOT_PEEK_CHANGES('mydb_amenities', NULL, NULL)
	WHERE CAST(CAST(xid AS TEXT) AS BIGINT) < 227800
2021-02-01 18:39:26 UTC:<IP_ADDRESS>(61228):myuser@mydb:[1573]:LOG:  starting logical decoding for slot "mydb_amenities"
2021-02-01 18:39:26 UTC:<IP_ADDRESS>(61228):myuser@mydb:[1573]:DETAIL:  streaming transactions committing after 7C9/870083A0, reading WAL from 7C9/870083A0
2021-02-01 18:39:26 UTC:<IP_ADDRESS>(61228):myuser@mydb:[1573]:STATEMENT:  SELECT xid, data
	FROM PG_LOGICAL_SLOT_PEEK_CHANGES('mydb_amenities', NULL, NULL)
	WHERE CAST(CAST(xid AS TEXT) AS BIGINT) >= 227800 AND CAST(CAST(xid AS TEXT) AS BIGINT) < 227801
2021-02-01 18:39:26 UTC:<IP_ADDRESS>(61228):myuser@mydb:[1573]:LOG:  logical decoding found consistent point at 7C9/870083A0
2021-02-01 18:39:26 UTC:<IP_ADDRESS>(61228):myuser@mydb:[1573]:DETAIL:  There are no running transactions.
2021-02-01 18:39:26 UTC:<IP_ADDRESS>(61228):myuser@mydb:[1573]:STATEMENT:  SELECT xid, data
	FROM PG_LOGICAL_SLOT_PEEK_CHANGES('mydb_amenities', NULL, NULL)
	WHERE CAST(CAST(xid AS TEXT) AS BIGINT) >= 227800 AND CAST(CAST(xid AS TEXT) AS BIGINT) < 227801
2021-02-01 18:40:13 UTC::@:[12345]:LOG:  checkpoint starting: time
2021-02-01 18:40:14 UTC::@:[12345]:LOG:  checkpoint complete: wrote 8 buffers (0.0%); 0 transaction log file(s) added, 0 removed, 1 recycled; write=0.831 s, sync=0.002 s, total=0.845 s; sync files=7, longest=0.002 s, average=0.000 s; distance=16417 kB, estimate=16417 kB
2021-02-01 18:45:13 UTC::@:[12345]:LOG:  checkpoint starting: time
2021-02-01 18:45:13 UTC::@:[12345]:LOG:  checkpoint complete: wrote 3 buffers (0.0%); 0 transaction log file(s) added, 0 removed, 1 recycled; write=0.329 s, sync=0.004 s, total=0.343 s; sync files=3, longest=0.004 s, average=0.001 s; distance=16353 kB, estimate=16411 kB
2021-02-01 18:45:25 UTC:<IP_ADDRESS>(61228):myuser@mydb:[1573]:LOG:  could not receive data from client: Connection reset by peer
2021-02-01 18:45:25 UTC:<IP_ADDRESS>(61222):myuser@mydb:[960]:LOG:  could not receive data from client: Connection reset by peer
2021-02-01 18:49:51 UTC:<IP_ADDRESS>(61327):[unknown]@[unknown]:[10163]:LOG:  PID 25748 in cancel request did not match any process
2021-02-01 18:50:13 UTC::@:[12345]:LOG:  checkpoint starting: time
2021-02-01 18:50:13 UTC::@:[12345]:LOG:  checkpoint complete: wrote 3 buffers (0.0%); 0 transaction log file(s) added, 0 removed, 1 recycled; write=0.326 s, sync=0.001 s, total=0.338 s; sync files=3, longest=0.001 s, average=0.000 s; distance=16384 kB, estimate=16408 kB
2021-02-01 18:55:13 UTC::@:[12345]:LOG:  checkpoint starting: time
2021-02-01 18:55:14 UTC::@:[12345]:LOG:  checkpoint complete: wrote 5 buffers (0.0%); 0 transaction log file(s) added, 0 removed, 1 recycled; write=0.527 s, sync=0.002 s, total=0.541 s; sync files=5, longest=0.002 s, average=0.000 s; distance=16392 kB, estimate=16406 kB

A few updates

I tried to set wal_sender_timeout to 0 on the server (default is 30 I think)
It seems each time this happens it is always 5 minutes after the inital sync.
I reverted back to using the default POLL_TIMEOUT

POLL_TIMEOUT does have a direct impact on CPU utilization. Tune this to get closer to real-time
Can you let me know if this is still happening?
Looking at this thread I wonder if this has something to do with Postgres 9.x
Do you have the luxury of upgrading from Postgres 9.x?

Good to know when I do more load testing.
I saw that thread - we are on 9.6 but they mentioned 9.4, but it also sounded like maybe it could affect other versions. I think 'ssl_renegotiation_limit' is not an option > 9.5 - it is not configurable for us.
I think they are actually retiring 9.6 on AWS soon so the plan right now is to migrate (quite a coincidence ) maybe this week.
I will keep you updated.
One more question - if this issue is solved and the database connection is dropped due to say a network outage will pgsync currently re establish the connection?

I'm afraid PGSync will not attempt to re-establish a connection. This needs to happen at a different layer. You can look into pgbouncer for this. I have used it in the past and it is very robust. https://www.pgbouncer.org/
PGSync will ensure that the data is transactionally consistent. So even if connections are dropped and you restart, you will not lose data.

If you are getting this error frequently:
Can you please try these Postgres config parameters and values:
tcp_keepalives_idle: 60
tcp_keepalives_interval: 60
tcp_keepalives_count: 100

We were able to upgrade yesterday to postgres 10.15.  Still seeing the same issue.  It looks like the error occurs 5 minutes after the last DB transaction.  If I make some inserts into our table the error will occur 5 minutes after the last insert I made.  I will take a look at our config vars as listed above and give it a try.
Good to know about pgbouncer.  Shouldn't pgsync exit on error in a child thread so that the container exits?  Right now when this error happens pgsync container stays up but is not syncing.  It continues to use cpu.  This seems like a problematic condition.

I am still doing some research on the cause of this.
You are right pgsync should exit on an operational error. I have pushed some changes to master to address this

A few more notes:

I am using a VPN to connect to a private network with our RDS
I deployed pgbouncer and after 5 minutes got 2021-02-04 22:47:07.499 UTC [1] LOG S-0x7fa2ecb85350: db/user@ip:port closing because: server conn crashed? (age=404s) in session pool_mode
In transaction pool_mode I get warnings and DB changes don't get replicated (I probably am just missing something in the config for pool_mode here)

I have an AWS RDS test environment setup where I can experiment with different config variables etc.  I have tried idle_in_transaction_session_timeout and wal_sender_timeout.  If you have any tests / logs you want to run let me know.  This is the server log when the error occurs:
2021-02-06 20:04:03 UTC::@:[8589]:LOG: checkpoint starting: time
2021-02-06 20:04:04 UTC::@:[8589]:LOG: checkpoint complete: wrote 4 buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.403 s, sync=0.002 s, total=0.416 s; sync files=4, longest=0.002 s, average=0.000 s; distance=16373 kB, estimate=16373 kB
############# pgsync error here
2021-02-06 20:04:33 UTC::@:[8589]:LOG: checkpoint starting: time
2021-02-06 20:04:33 UTC::@:[8589]:LOG: checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.302 s, sync=0.002 s, total=0.313 s; sync files=3, longest=0.002 s, average=0.000 s; distance=11 kB, estimate=14736 kB
2021-02-06 20:05:03 UTC::@:[8589]:LOG: checkpoint starting: time
2021-02-06 20:05:03 UTC::@:[8589]:LOG: checkpoint complete: wrote 4 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.403 s, sync=0.002 s, total=0.414 s; sync files=3, longest=0.002 s, average=0.000 s; distance=20 kB, estimate=13265 kB

Yes, docker-compose on Mac.  I also just gave it a try on docker-compose in Windows with the same results.

I was looking at the other issues this thread and 61 which was showing the same message.  Tried using the suggested sysctls and it seems to have worked:
    sysctls:
        - net.ipv4.tcp_keepalive_time=200
        - net.ipv4.tcp_keepalive_intvl=200
        - net.ipv4.tcp_keepalive_probes=5

Going to keep testing before I close this but it is looking promising so far.

that's amazing! let me know if that resolves it.

I think this is resolved.  I have been connected to two different AWS RDS instances for several hours.

Thanks for debugging this. I will add these options to the docker-compose file

Closing this


go/types, types2: better error message for unsatisfied type constraint

The test case in src/internal/types/testdata/fixedbugs/issue57486.go reports the error
[2]any does not implement C2 ([2]any missing in int)

even though the [2]any is in the constraint (but not in the type set). Should provide a better error message.

cc: https://github.com/orgs/golang/teams/release to decide if the CL above is acceptable to submit for 1.20. The change only affects some error messages that are currently somewhat confusing. There's no impact on correct code.

CC @golang/release (not sure if the other link pings them)

Marking as release blocker simply for visibility: we certainly don't need this fix, but it produces a much better error message in some cases where currently the error message is very confusing. The change doesn't affect correct code at all, it's only run in case of a specific error.
Leaving for release team to decide. If ok, feel free to submit, the CL is up-to-date. Otherwise, move to 1.21. Thanks.

Given that it only affects error cases, this seems completely fine. Submitted.


Added canary url and stepfunction monitoring with sns email and slack…

… integration
Description
Creates a Cloudwatch Synthetic Canary to monitor the metrics.opensearch.org url and monitors the step functions for failure. If either of these fail, a message will be published to SNS, and will send email and slack notifications.
Issues Resolved
https://github.com/opensearch-project/opensearch-metrics/issues/37
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

LGTM, thanks @bshien.


Bug in Open SBML file (Menu)

There is something odd about the Open SBML in menu file. I don't know the situation is but sometimes opening a sbml files wipes out the currently edited file. I've seen it three times now but know know the pattern.

Cannot reproduce right now


Fix typos in CMakeLists.txt

@madebr: this looks ok to me, please review. (same thing is present in sdl2 branch.)

I went ahead and merged this, and cherry-picked to SDL2 branch as 32f931e917e4f78cc3fe4a247a437bdcf76590b8


API comparison to previous DOM package.

How does the API of this package compare to honnef.co/go/js/dom, a popular DOM package for GopherJS? /cc @dominikh
honnef.co/go/js/dom has issue dominikh/go-js-dom#57 to make API changes to make it possible to add WebAssembly support.
Just wanted to put this on your radar if it's not already, or ask about the design differences so I can understand this package better. Thanks!

This library was meant to be more opinionated and adapt Web APIs to Go in a more natural way.
Part of the goal is to also reflect the platform-agnostic nature of Go by providing libraries that cover other Web technologies that interoperate with the browser. Right now the package provides a symethric net-like implementation of WebSockets for both js and a server environment to cover Browser<->Server commpunication, and an implementation of native messaging to cover Browser<->Desktop communication. WebRTC will also be implemented to provide Browser<->Browser communication channel.
In the same spirit, it will provide high-level interfaces for Local/Session Storage and some of the KV backends for Go.
Thus, the end goal is to provide a set of ready-to-use solutions for common problems related to Web development in Go. I hope this answer your question :)

I see, thanks for the answer!

net-like implementation of WebSockets for both js

Just checking, are you familiar with https://github.com/gopherjs/websocket? You can use it if you don't wish to reimplement that functionality yourself.


[Bug] Android example broken

Describe the bug
One or more plugins requires compileSdkVersion 31
Warning: The plugin path_provider_android requires Android SDK version 31.
For more information about build configuration, see https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
One or more plugins require a higher Android SDK version.
Fix this issue by adding the following to /Users/ivan.semkin/Downloads/Dash-Chat-2-main/example/android/app/build.gradle:
android {
  compileSdkVersion 31
  ...
}

To Reproduce
Steps to reproduce the behavior:

Open example project
Try to build it on Android
See error

Expected behavior
Android example builds and launches
Environment

OS: macOS 12.4
Device: Android
Software/library Version 0.0.6 (latest)

also ext.kotlin_version is too old. gotta bump it to 1.6.10 as per https://stackoverflow.com/questions/67448034/module-was-compiled-with-an-incompatible-version-of-kotlin-the-binary-version

and well updating pubspec.lock in example wouldn't hurt as well

Thanks, I've fixed it


docs: Add Cookbook Chinese version of two articles

Add Cookbook Chinese version of two articles
issue #34
Hi I just translated two articles into Chinese

Embedding multimodal data for similarity search using 🤗 transformers, 🤗 datasets and FAISS
Simple RAG for GitHub issues using Hugging Face Zephyr and LangChain

@MKhalusova

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

cc @stevhliu can you please check the translation?

fine, I've already added zh-CN to the list of languages in .github/workflows/build_documentation.yml and in .github/workflows/build_pr_documentation.yml. thanks for pointing it out. @MKhalusova

Btw, if you'd like the PR review to move a bit faster, feel free to invite another Chinese-speaking community member who could review the translation.


Error when installing the module GroundingDINO

When I execute this commant !python -m pip install -e segment_anything, I get the following error :
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Obtaining file:///content/Grounded-Segment-Anything/GroundingDINO
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> See above for output.

We will fix this bug today

I think the issue is related to the torch version. I could run the demo correctly using the colab version: https://colab.research.google.com/github/camenduru/grounded-segment-anything-colab/blob/main/grounded-segment-anything-colab.ipynb

I think the issue is related to the torch version. I could run the demo correctly using the colab version: https://colab.research.google.com/github/camenduru/grounded-segment-anything-colab/blob/main/grounded-segment-anything-colab.ipynb

Thanks for reporting this issue! I think it's better for us to provide a more detailed environment settings for the users, we will refine it in README


IDLGenerator does not generate Java code for keyed topics.

When I use IDLGenerator to generate Java code for keyed topics. The generated code still use unkeyed topics. What am I missing? It can be verified by adding
publisherAttributes.getTopic().setTopicKind(TopicAttributes.TopicKind.WITH_KEY);
subscriberAttributes.getTopic().setTopicKind(TopicAttributes.TopicKind.WITH_KEY);
to
PublisherExample and SubscriberExample (here).
Then exception is thrown:
java.lang.IllegalArgumentException: Keyed topic needs getKey function
How can I properly use keyed topics?
Thank you.
Pavel

We have never tested keyed topics. I do not think the generator generates the correct code, and we have to add that functionality.
If it is for one or two classes, you can manually implement a getKey() function, but it's been a while since I looked at the format.

Ok. Thanks for the reply. I will try to implement it.

Hi. I am trying to manually implement a getKey() function but with no luck. What I did:
I created idl:
struct HelloWorld {     @Key long id;     string message; };
Generated HelloWorld.java and HelloWorldPubSubType.java by a generator.
I override getKey() function in HelloWroldPubSubType.java like this.
public void getKey(cz.urc.dds.idl.HelloWorld data, ByteBuffer target) {       if (this.isGetKeyDefined()) {           data.serializeKey(serializeCDR); //Throws java.lang.NullPointerException       }       try {          MessageDigest dig = MessageDigest.getInstance("MD5");          byte[] md5 = dig.digest();          for (int i=0; i < md5.length; ++i) {             target.put(i, md5[i]);          }       } catch (NoSuchAlgorithmException e) {          // TODO Auto-generated catch block          e.printStackTrace();       }    }
I implemented serializeKey() function like this.
   public void serializeKey(us.ihmc.idl.CDR scdr){       try {          scdr.write_type_2(this.id_);       } catch (Exception e)       {          System.out.println("serializeKey exception: " + e);       }    }
But its throws Throws java.lang.NullPointerException, because serializeCDR is not initialized.
Could you please provide me with some help or insight on what should I do?
PS:
When I do not implement the getKey method I get the
[RTPS_WRITER Warning] Changes in KEYED Writers need a valid instanceHandle -> Function eprosima::fastrtps::rtps::RTPSWriter::new_change
but the data are published and subscriber receives them.
Thank you.
Pavel


Add filetype to Phylopic script

Fixes

Related to #536 by @obulat
Description

This PR adds filetype and filesize to the list of data collected from the Phylopic API.
Testing Instructions

The tests for the script should pass.
Checklist

[x] My pull request has a descriptive title (not a vague title like Update index.md).
[x] My pull request targets the default branch of the repository (main) or a parent feature branch.
[x] My commit messages follow best practices.
[x] My code follows the established code style of the repository.
[x] I added or updated tests for the changes I made (if applicable).
[ ] I added or updated documentation (if applicable).
[x] I tried running the project locally and verified that there are no visible errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

I don't actually see filetype being added here. Am I missing something in the diff?

For the providers who don't specifically send filetype, we use the ImageStore to extract the filetype from the image URL. So, for Phylopic provider, the filetype will be added. But because the tests only look at what the script sends to ImageStore, and not what the ImageStore saves, this PR doesn't have it. I'll adjust the tests to include the check for filetype, too!


Add linting

As we are moving towards OpenMCT for next year and the lack of any tests to verify the functionality is preserved, this PR is going to be closed without merging :(


TPv2 Add Download Options Dialog to Generic Table

This PR adds a dialog to the download csv button on the TPv2 generic table. This dialog lets the user change what is downloaded including: filename, delimiter, headers, hidden columns, hidden rows, only selected rows.

Which Traffic Control components are affected by this PR?

Traffic Portal v2

What is the best way to verify this PR?
Verify tests and lint pass. Go-to any table and confirm the dialog works and options are respected.

PR submission checklist

[x] This PR has tests
[ ] This PR has documentation <!-- If not, please delete this text and explain why this PR does not need documentation. ->
[ ] This PR has a CHANGELOG.md entry
[x] This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

LGTM

@ntheanh201 To review the PR, go to https://github.com/apache/trafficcontrol/pull/7472/files and either approve the PR or request changes.
Once it is approved, I can merge :)


How to shard model across multiple gpus/train long sequences?

Hello,
Thank you for putting together and posting this code. I am interested in training on my own dataset, but my sequences are all around 800 in length which makes it very expensive in terms of gpu vram. So far, we found that we can fit 2-3 evoformer blocks, but would be interested in scaling up. We would prefer to avoid cropping the sequences to shorter lengths. One approach we were thinking of was sharding the model across our gpus to alleviate the vram use, but we've haven't had much success here. We've tried several sharding methods include isolating out the SSPF model and wrapping it a pytorch lightning wrapper and utilizing deepspeed but we run into issues where the model isn't actually sharding. We suspect these issues may be due to incompatibilities with the packages used and since the environment is very sensitive to these changes, we haven't had much luck with this route. Have you all tried model sharding when you were training or do you have any recommendations on how we should approach this? Thank you for your time and help!

Thank you for bringing attention to the project.
Regarding the model training engine, it's worth noting that the current implementation relies on detectron2, which unfortunately lacks support for model sharding. Additionally, there are sections of code related to PyTorch Lightning and Deepspeed, but they have been adopted from OpenFold and have not been actively used or tested within our project.
For managing GPU memory efficiently, you might want to explore mixed precision training. A helpful example configuration file can be found here.
If you're interested in ESM-based structure prediction, I recommend checking out the OpenFold repository. There, you can explore 'SoloSeq' features, which could prove beneficial for your research. OpenFold, much like our approach, employs sequence cropping during the training phase. However, it goes a step further by supporting longer sequences during the inference phase.
I hope these information will be helpful for your research!

Thank you for bringing this to our attention.
If you have any further questions, please feel free to reopen this issue, and we'll continue to assist you.
Thanks again for your report and collaboration!


Is photometric loss a l2 loss with sqrt or not?

In your paper, the photometric loss is a l2 loss with sqrt operation. But when computing gradients, sqrt operation always cause NAN. So, I just want to make sure if the photometric loss is a l2 loss with sqrt? If it is, can you give some suggestion on how to deal with the NAN situation.

It is a l2 loss with sqrt (L2,1 loss). I did not encounter with NAN during my training process. You can try to add a small number, e.g. 1e-5 inside sqrt to avoid NAN.

Maybe it's because of the initialization of the last full connect layer, when I tried again, NAN just disappeared. Thank you all the same.

@havefunbb
Hello, could you give me some advice on how to reimplenment the photometric loss function?


Templating issue template: base:92: bad character U+002F '/'

I am trying to substitute
annotations:
metallb.universe.tf/address-pool: system-pool
In template
annotations:
sharedVIPLabel:
addressPoolName: {{ .Annotations.metallb.universe.tf/address-pool }}
This gives me an error
template: base:92: bad character U+002F '/'.
Any idea how to solve this?

@nmathew The template parser is baulking at the / in your example above. What is this {{ .Annotations.metallb.universe.tf/address-pool }} meant to do? I am asking because I am unaware of a helm bulit-in object Annotations

Annotations is a map[string]string map, this we forms and passed to template engine.
One of the key in that map is "metallb.universe.tf/address-pool", and the value is "system-pool"

Can you please demonstrate using an example? I.e. something we can use to reproduce or recreate your example so we can test it out for ourselves. Thanks.

will update by tomorrow

ping.

I'm guessing that this is the annotations property in the Chart.yaml file.
Finding a good way to get at the information is hard, it turns out. You can't use get in templates because that expects a map[string]interface{} but gets a map[string]string. So, I wrote a template function that would do this...
{{/*
Get an annotation value
This can accept a name with a . or a / in it
*/}}
{{- define "example.annotationValue" -}}
{{- $annotations := first . -}}
{{- $key := last . -}}
{{ range $i, $e := $annotations -}}
{{- if eq $key $i }}
{{- $e }}
{{- end }}
{{- end }}
{{- end }}

Then you use it like...
{{ include "example.annotationValue" (list .Chart.Annotations "foo.io/bar") }}

Be sure to change "example" to the name of your chart. You can put that function in the _helpers.tpl file.
Does this help?

closing as answered/inactive. Let us know if you need further assistance.


Create support for Promises while waiting on Get/Post requests

Desired functionality is a pattern of chaining requests in a specific order that are triggered as a side effect of a user interaction.
Example

User presses a stop button
/status/change/stop POST request is sent
/status/refresh GET request is sent
Refreshed status data prompts relevant re-render of UI with newest status data

Create a simplePromise saga that takes a Promise and merges whatever it resolves to into the State

Support for mergeSaga merged in https://github.com/cashapp/misk-web/pull/641 that allows for asynchronous computation after a dispatched action.


make UFOWriter a subclass of UFOReader, use mixins for shared methods

UFOWriter is already sharing some methods with UFOReader.
I think it would make sense to make it a subclass so that it extends the reader class with its additional writer-specific methods, effectively becoming a UFOReaderWriter.
This would allow, for example, to use the same UFOWriter instance for initializing a Font object, do stuff with it, and finally writing to it inplace.
Comments?

I think a combined reader/writer class makes sense. Perhaps an alias UFOReaderWriter = UFOWriter could be introduced, to make it possible for client code to more clearly show what's going on?
I am wondering whether it would be simpler to merge the Plist reader and writer mixins into one class.

I am wondering whether it would be simpler to merge the Plist reader and writer mixins into one class.

the reason they are split is that UFOReader only needs the _getPlist method, UFOWriter and GlyphSet need both _getPlist and _writePlist

the reason they are split is that UFOReader only needs the _getPlist method, UFOWriter and GlyphSet need both _getPlist and _writePlist

I understand :) I was just wondering how bad it would be if the UFOReader class has a _writePlist method it will never use, especially if it makes the rest of the code a little simpler (one class less is one class less).

ah ok! ;)
it's private (underscore prefixed) so I guess it's ok

I'll put all the three shared methods under the same _UFOBaseIO class and use that as parent for all UFOReader, UFOWriter and GlyphSet

If merging UFOReader and UFOWriter has to terrible consequences for the read functionality, would it be an idea to just do:
class UFOReaderWriter(...):
    ...

UFOReader = UFOReaderWriter  #b/w compat
UFOWriter = UFOReaderWriter  #b/w compat

hm.... :thinking:
i'll have to think about that.

the __init__ methods of UFOReader and UFOWriter are still very different from each other, and for good reasons. Maybe that's not a good idea. Anyway, I can't think straight now, it's late here. Let's keep thinking

Also: @typesupply's opinion on such a change would be valuable.
Originally, it made sense to have separate reader and writer classes. With all the common functionality fs and all) perhaps that idea makes less sense now. Not sure, just wondering.

Good point. Let's not move too fast here.

I've been trying to remember why we separated the reader and writer instead of merging the two, but I can't recall. glifLib.GlyphSet was already in existence and in use, so we had _some_reason for not following that same model. I remember discussing the split model on iChat with @justvanrossum way back in the day but I don't recall the contents of the conversation.
I'm not opposed to a unified reader/writer now. My only hesitation at the moment is that I haven't had time to think through this issue and, given the complexities of .zip, a unified reader/writer could make that even more difficult. It could also make it easier. I dunno, it makes my head hurt right now. I'm deep in drawing work right now so the code/logic part of my brain is non-functional.

No problem Tal!
Anyway this PR as it stands is quite conservative, does’t change the public API (besides adding the UFOReaderWriter alias) not change the current behaviour of the existing reader and writer.
So I guess we can merge and continue to experiment with this until we familiarise with this new fs world?

So I guess we can merge and continue to experiment with this until we familiarise with this new fs world?

Fine with me!

Hm, my comment was meant to go to the last commit, the one changing the return value of readInfo(). Just to be clear.

Ok, no big deal, I’ll revert for now.

@justvanrossum btw thanks for keeping an eye on this!
I guess I should merge after the CI passes, otherwise I'm tempted to keep tinkering.

Yeah, looks good so far, let's not add unrelated changes :)

Why not just have one UFOReaderWriter object?

Why not just have one UFOReaderWriter object?

this PR is a cautious step towards that direction.


When the "EnableEmailUserName" is set to true, tenant creation flow is breaking due to email is passed as null to the backend

Reproduction Steps:

Get a latest wum updated pack of identity server 5.7.0
Then start the identity server and go and create a tenant. It is successful. Please note that when creating the tenant the below email field is visible now,

Now enable the below property in the carbon.xml file
 <EnableEmailUserName>true</EnableEmailUserName>
Now you will see that the "Email" field is not visible. As below.

So when we try to create a tenant below error is shown in the UI.

The issue was the logic of the add_tenant.jsp code here[1]
[1] - https://github.com/wso2/carbon-multitenancy/blob/0e0a4f8c0ffb01da7ab92db45aed7ea28a89f53b/components/tenant-mgt/org.wso2.carbon.tenant.mgt.ui/src/main/resources/web/tenant-mgt/add_tenant.jsp#L292

@LahiruLS ,
Did you provide an email for Admin Username? When you make <EnableEmailUserName>true</EnableEmailUserName> the Admin Username should be an email. I have tried the same and it worked properly. Can u please check and verify?

@DMHP
Thank you for the clarification. I have tested again. It is working as expected.


HMS-3162: test: boot generated image and ensure ssh is working

This PR adds the extra check that the generated image from podman run osbuild-deploy-container can actually boot in qemu and will open the ssh port.

@mvo5 looks the action is not yet working well with RH ranch :(
It fails to report the correct URL seems.
That would be:
http://artifacts.osci.redhat.com/testing-farm/54e53734-4050-45df-abff-c79e365d354c/
So seems tests run, but they failed on:
E               FileNotFoundError: [Errno 2] No such file or directory: 'qemu-system-x86_64'

@mvo5 never mind, you need to adjust tf_scope to private:
https://github.com/sclorg/testing-farm-as-github-action/blob/main/action.yml#L78

Needs a rebase and conflict resolution.


Implement ReplaceFiles action

ReplaceFiles is the basis for operations like compaction or changing the file format: replace a set of files with new files that contain the same data rewritten.

Merged.


flash <IP_ADDRESS>7

Thank you for the contribution. It was merged directly as ad7ef65bd4c0b1f36b7793fd5db52f21bf0d0237 to keep commit history cleaner. Your contribution is still credited to you.


LastTargetScriptsFolder from another project preventing creation

I have a value in LastTargetScriptsFolder which corresponds to another project, which prevents me from creating a collection as that path doesn't exist in the primary project. As a workaround I can clear the editor pref.

I make sure to update all of this to be project based! Thanks for the report!


[Feat Request] Introduce session check when running spec

Is your feature request related to a problem? Please describe
When running tests, there's a good change that we either forget to log in or that a session that we obtained earlier has expired.
If this is the case, we are blocked on the login page and the tool performs a series of retries that will lead to an unclear error after timing out.
Describe the solution you'd like
I'm suggesting a solution that I've implemented in the E-Bikes sample app.
Let's save a timestamp when we generate the env file with the login URL:
https://github.com/trailheadapps/ebikes-lwc/blob/main/scripts/generate-login-url.js#L36
In our spec, we then read the timestamp and figure out if if the session has expired:
https://github.com/trailheadapps/ebikes-lwc/blob/main/force-app/test/utam/page-explorer.spec.js#L27
If this is the case, we abort the test with a clear error message.
https://github.com/trailheadapps/ebikes-lwc/blob/main/force-app/test/utam/page-explorer.spec.js#L31

Hi @pozil, that's indeed an improvement and a great suggestion, do you feel like implementing a PR for this?


Add files via upload

Added The Sicilian Bull to the Contributors list

Hi  @denisjlanza, I'm quite elated about your pull request. I wanna evolve this project to addresses various problems faced by first-time contributors. I'd love to learn about your journey in open source community, the problems, pain points you had etc.
Could you explain how you felt when you went through the tutorial, made a pull request and learned that I merged it?
We’ve recently added social share  to our web app. Could you please go to https://roshanjossey.github.io/first-contributions/#social-share and share your first contribution to open source?
Also, check out projects with easy issues while you’re there.

I'm having a really hard time figuring this out. I changed the file but when I typed git status it didn't show anything is changed. In GitHub I could see the change and I pushed it to add-The-Sicilian-Bull branch but when I went to the repo on the web here, the changed file didn't show up. So the only way I got it up there was by directly uploading it on the Website. I don't think that's the correct way to do it.

Could you help me with the issues I'm having? Idk whether to use GitBash or GitHub GUI or how to use either one.

@denisjlanza, I'm not exactly sure what is the problem. If you're in the right directory, all git commands should work.


Cleanup: add docker build to README and CONTRIBUTING to cover godep

Godep kicks in. This PR updates the document to cover how to compile swarm with it.
Signed-off-by: Chanwit Kaewkasi<EMAIL_ADDRESS>

I'd much prefer to just recommend:
$ docker build -t swarm .
$ docker run swarm ...

+1 @bfirsh suggested direction.  The docker-machine build happens in a container and the binaries end up on the host via bind mount, this has been working out really well for us and makes it quite simple to get started developing docker-machine on a new computer.

I am not working only amd64. Basically, docker build is not my option to port swarm to other platforms.

I believe we need to overhaul the README to also take into account that we're going to have an "official" image soon.
Which means that the first paragraph on getting started should be something like docker run swarm, as most people don't care about building and compiling from source.
I agree we have to talk about godep - I'm wondering if it should be in the README or CONTRIBUTING, since those steps are meant for developers?
/cc @SvenDowideit

I am not working only on amd64. Basically, docker build is not my option to port swarm to other platforms.

docker-machine uses gox for this (it will spit out binaries for all platforms and arches supported by Go by default IIRC - on docker-machine it is set to default to all possible combinations of Linux/Windows/OSX and amd64/i386).
It is also possible to specify manually using GOOS or GOARCH environment variables if needed.  If the environment is set up correctly and cgo dependencies are not used cross-compilation shouldn't be an issue.

@nathanleclaire Thank you for pointing this out.
@aluzzardi Yep, I agreed that godep related documents would be in CONTRIBUTING.
So what suggested by @bfirsh and @nathanleclaire should be put into README. But it seems to not be ready yet.
Shall we remove the installation paragraph out of README at the moment and wait until the build process via docker available then?

After reading the new Dockerfile, I tweaked README to add docker build.
CONTRIBUTING may still need to cover how to godep save and godep restore properly when we want to add new dependencies.

ping @aluzzardi @vieux

@chanwit we are waiting to have the official image to integrate your changes in a Contributing.md document

@vieux thank you for letting me know. I'll try to keep up with those changes to make the doc valid.

@chanwit can you please rebase

@vieux thanks for the ping. I've rebased and finaized things.

@aluzzardi @vieux could you please take a look.
Thank you.

@aluzzardi @SvenDowideit can you take a look at this ?

ping @SvenDowideit

@SvenDowideit can you take a look ?

LGTM - sorry @chanwit a rebase will be needed.

ping @chanwit

Sorry for being late @SvenDowideit @vieux. The doc has been rebased.

Coverage remained the same at 39.12% when pulling 5333b845298f25d0ebca0bf1fcafeb84a02e977e on chanwit:doc-setup-godep into 904c720ea5490a44c06c1e766dfa24bf75a0d75e on docker:master.

LGTM


If deploy two app service plans into a workspace they cannot integrate with the same subnet

Describe the bug
A limitation of Azure Web Apps is each app service plan must have a dedicated vnet for vnet integration. This means if deploy two workspace services with their own app service plans vnet integration fails on the second.
Steps to reproduce

Deploy Guacamole into a workspace
Deploy InnerEye Inference into the workspace

Possible resolution - deploy app service plan into the workspace rather than with the workspace-service

As an initial fix will deploy the app service plan in to our base workspace template.
There may be a requirement down the line to install an app service environment, into a workspace, but this brings deployment overhead.


make separate cloud build step for each py version

fixes #69

Okay, this didn't really make it any faster. So... never mind!

Okay, this didn't really make it any faster. So... never mind!

But there are ways to speed it up!  You can run the different environments in parallel and also run tests only on files in the PR. We do it in python-docs-samples, but I haven't had time to look into implementing it in this repo yet.

But there are ways to speed it up!  You can run the different environments in parallel and also run tests only on files in the PR. We do it in python-docs-samples, but I haven't had time to look into implementing it in this repo yet.


Project dead?

Pull requests ignored and no commits in almost a year. Is liquid-rails dead?

sadness :(

I hope no. We use liquid and liquid-rails right now in production really a lot.
@inopinatus what do you trying to add?


[Enhancement] Improve UI for contributor button

The button can be designed and improved in UI and aligned in the Navbar
[to be completed after issue #213 ]

I would like to work on this issue.
Please assign it to me under JWOC'2024.

@Priyanshi662 i would like to work on this issue under JWOC'24

The button can be designed and improved in UI and aligned in the Navbar [to be completed after issue #213 ]

@Priyanshi662 please assign me this issue

Please assign me this issue @Priyanshi662 i have completed by previous issue.

@Priyanshi662 please assign this issue to me


[DONE] Update content/community/nav.yml

hi everyone !
translate file content/community/nav.yml

done!


git credential manager: update name/links

The Git Fundamentals team has changed the name of the Git Credential Manager Core tool to Git Credential Manager. The team has also migrated the repository into its own org. Updating the documentation in this repo to reflect these changes.

@ldennington : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@steved0x Could you review this pull request?
I clicked through all the new links. In docs/repos/git/set-up-credential-managers.md, line 41, the bookmarks in both links don't seem to be found; the link goes to the top of the page.

@ldennington : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@steved0x Could you review this pull request?
I clicked through all the new links. In docs/repos/git/set-up-credential-managers.md, line 41, the bookmarks in both links don't seem to be found; the link goes to the top of the page.

Thanks for the heads up! I've fixed up those links.

@ktoliver, @steved0x - is there any further action I need to take before this PR is reviewed?

@steved0x @vijayma @MaximMalygin Could one of you review the proposed changes?
Thanks!
@ldennington A member of the content team or a Product Manager needs to review the pull request and approve it; then, the PR review team can merge.

@ktoliver Both of those links took me to the right spot on the page so I approved this PR and am signing off.

#sign-off

Thank you @steved0x! Is there any further action I should take to help get this PR merged?


Puget doesn't respect overriden clojure.core/print-method for records

In several of my libraries, I have created custom print behavior for my data structures.  I do this by implementing clojure.core/print-method for that data structure, which takes care of pr/print and then I add a method for clojure.core/pprint.
For example:
(defrecord Not [literal])

(defmethod clojure.core/print-method Not [x writer]
  (binding [*out* writer]
    (print "(! ")
    (pr (:literal x))
    (print ")")))

(. clojure.pprint/simple-dispatch addMethod Not #(clojure.core/print-method % *out*))

With the rise in popularity of puget as the printer of choice for cider, I'm finding it inconvenient that puget ignores my hooks into clojure's printing system, and continues to print records in its own default way.
Would you consider a pull-request that changes visit-record to first check whether print-method is implemented for the record, and when it is, use pr-handler instead?
Is there another good way to handle this?

One of the original motivations for writing Puget was that Clojure's built-in print-method and kin are subject to global modification. I needed a printer that was canonical and that also meant I needed to ensure it would be fully configurable with a local dispatch function. Later on, this expanded to colorization and the broader use as a REPL pretty-printer. Which is perhaps a long way of saying that deferring to print-method implementations would go against that original design.
Given the above, there's no way to globally change Puget's behavior with respect to your custom types, but you can use its dispatch mechanism to choose a different representation within a specific REPL or project. I'm not an emacs user, so I'm not familiar with how you would wire this up in CIDER, but as an example, whidbey has the notion of escape types which are rendered with print-method instead of Puget's normal formatters. You should be able to configure something similar.
Happy to help with any configuration questions along that route!


Error on hot restart. "Trying to create an already created platform view, view id: 0"

Hello. I'm getting this error after a hot restart of the app.
It seems like the view is not removed when the parent is diposed.
E/flutter (31072): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Trying to create an already created platform view, view id: 0
E/flutter (31072):      at io.flutter.plugin.platform.PlatformViewsController$1.createPlatformView(PlatformViewsController.java:85)
E/flutter (31072):      at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:96)
E/flutter (31072):      at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:60)
E/flutter (31072):      at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:231)
E/flutter (31072):      at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:93)
E/flutter (31072):      at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:642)
E/flutter (31072):      at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter (31072):      at android.os.MessageQueue.next(MessageQueue.java:323)
E/flutter (31072):      at android.os.Looper.loop(Looper.java:135)
E/flutter (31072):      at android.app.ActivityThread.main(ActivityThread.java:5417)
E/flutter (31072):      at java.lang.reflect.Method.invoke(Native Method)
E/flutter (31072):      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
E/flutter (31072):      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
E/flutter (31072): , null)
E/flutter (31072): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:569:7)
E/flutter (31072): #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:321:33)
E/flutter (31072): <asynchronous suspension>
E/flutter (31072): #2      AndroidViewController._create (package:flutter/src/services/platform_views.dart:640:54)
E/flutter (31072): #3      AndroidViewController.setSize (package:flutter/src/services/platform_views.dart:557:14)
E/flutter (31072): #4      RenderAndroidView._sizePlatformView (package:flutter/src/rendering/platform_view.dart:174:29)
E/flutter (31072): #5      RenderAndroidView.performResize (package:flutter/src/rendering/platform_view.dart:155:5)
E/flutter (31072): #6      RenderObject.layout (package:flutter/src/rendering/object.dart:1703:9)
E/flutter (31072): #7      RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (31072): #8      RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
E/flutter (31072): #9      RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:259:13)
E/flutter (31072): #10     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
E/flutter (31072): #11     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (31072): #12     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
E/flutter (31072): #13     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (31072): #14     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
E/flutter (31072): #15     RenderSliverMultiBoxAdaptor.insertAndLayoutChild (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:492:13)
E/flutter (31072): #16     RenderSliverList.performLayout.advance (package:flutter/src/rendering/sliver_list.dart:195:19)
E/flutter (31072): #17     RenderSliverList.performLayout (package:flutter/src/rendering/sliver_list.dart:238:19)
E/flutter (31072): #18     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
E/flutter (31072): #19     RenderSliverEdgeInsetsPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:134:11)
E/flutter (31072): #20     RenderSliverPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:373:11)
E/flutter (31072): #21     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
E/flutter (31072): #22     RenderViewportBase.layoutChildSequence (package:flutter/src/rendering/viewport.dart:410:13)
E/flutter (31072): #23     RenderViewport._attemptLayout (package:flutter/src/rendering/viewport.dart:1367:12)
E/flutter (31072): #24     RenderViewport.performLayout (package:flutter/src/rendering/viewport.dart:1285:20)
E/flutter (31072): #25     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
E/flutter (31072): #26     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (31072): #27     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
E/flutter (31072): #28     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:105:13)
E/flutter (31072): #29     RenderObject.layout (package:flutter/src/rendering/object.dart:1724:7)
E/flutter (31072): #30     RenderProxyBoxMixin.performLayou

This seems to be Flutter issue: https://github.com/flutter/flutter/issues/47935


Add file context resource

Basically this is a copy of the port provider for managing file resources. I had to create it to get mysql running which is why I added it as an example. The noregex_filespec for sure needs to be expanded but it fits all examples I have found so far.

Thanks for your contribution! I added 2 comments, comment / modify.

@joerg I made a new minor version. Please rebase and add use_selinux wrapper


Comments section disappeared after moving to GitLab pages

I'm trying to move my blog to HTTPS, and since GitLab Pages supports HTTPS for custom domains, but GitHub doesn't, I set up an initial repo in GitLab using the Gem version. After some fidgeting, the blog is up and running but the comments section disappeared. See below page for example:
https://asarkar.gitlab.io/technical/spring-cloud-config/
I've comments enabled in _config.yml using staticman and it works fine locally. If you've Docker installed, you can run the following command and the site will come up on port 4000.
curl -sSL https://raw.githubusercontent.com/asarkar/non-compos-mentis/master/docker-compose.yml | docker-compose -f - up -d

It may be due to my mistake. Will reopen ticket after checking again. Thanks for the awesome theme.

For the record, the following changes fixed the issue, although I've no clue why:
name                     : &name "Abhijit Sarkar"
 description              : "thoughts().random()"
 url                      : "https://asarkar.gitlab.io"
-# baseurl                  : ""
+baseurl                  : # the subpath of your site, e.g. "/blog"
+repository               : "asarkar/asarkar.gitlab.io"

Not sure I don't use GitLab. Maybe your paths weren't https and the browser wasn't loading something because it thought it was insecure.
You can verify that by opening your browser's web development tools and checking the console for errors.

FYI, you can get HTTPS on GitHub pages with a custom domain using CloudFlare.
Having said that, I still recommenced GitLab due to its gem-based theme support. You can see how I implemented it here: https://gitlab.com/ohadschn/ohadschn.gitlab.io/blob/master/.gitlab-ci.yml.

Moved to Netlify, as they have everything I need, for free. I can keep my code on GitHub (not GH Pages), and Netlify will manage deploy, SSL cert and DNS. Really cool! I didn't really liked GitLab, they have close to 10k bugs open, which doesn't say much about their quality, and they deploy fails randomly.

@asarkar well to be fair Netlify is not open source so you don't know how many bugs they would have had open...

@ohadschn True, but I opened 2 tickets and they responded within a few hours. For a free account, it's impressive customer service.

@asarkar agreed. And to be honest I can't say the same about GitLab, where it seems they largely ignore user issues, or at best respond after more than a week. Still, I'm happy with what they offer so far, so to each his own...


[Bug]: openvpn-install fails to install on Arch Linux Arm

Make sure your check these beforehand!

[X] Issues - https://github.com/angristan/openvpn-install/issues
[X] README and FAQ - https://github.com/angristan/openvpn-install
[X] Wiki - https://github.com/angristan/openvpn-install/wiki
[X] Discussions - https://github.com/angristan/openvpn-install/discussions

Server OS
Arch Linux Arm
OpenVPN version
OpenVPN 2.5.7 [git:makepkg/a0f9a3e9404c8321+] armv7l-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Jun  2 2022
Client
Linux arch linux arm 5.15.56-3-rpi-ARCH #1 SMP Fri Aug 12 04:20:40 MDT 2022 armv7l GNU/Linux
What is the bug?
Similar to
https://github.com/angristan/openvpn-install/issues/420 and https://github.com/angristan/openvpn-install/issues/363
I've tried on multiple machines and I end up in the same error. On my previous install of Arch Linux Arm it worked without issues. I've tried copying the easyrsa binaries to the openvpn-install script location, however it still fails to generate keys and certs.
Relevant log output
--2022-08-19 07:33:43--  https://github.com/OpenVPN/easy-rsa/releases/download/v3.0.7/EasyRSA-3.0.7.tgz
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving github.com (github.com)... <IP_ADDRESS>
Connecting to github.com (github.com)|<IP_ADDRESS>|:443... connected.
The certificate has expired

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
./openvpn-install.sh: line 731: ./easyrsa: No such file or directory
./openvpn-install.sh: line 732: ./easyrsa: No such file or directory
./openvpn-install.sh: line 739: ./easyrsa: No such file or directory
./openvpn-install.sh: line 740: ./easyrsa: No such file or directory
2022-08-19 07:33:43 WARNING: Using --genkey --secret filename is DEPRECATED.  Use --genkey secret filename instead.
cp: cannot stat 'pki/ca.crt': No such file or directory
cp: cannot stat 'pki/private/ca.key': No such file or directory
cp: cannot stat 'pki/issued/server_mFlb9YE2ASgfQNe5.crt': No such file or directory
cp: cannot stat 'pki/private/server_mFlb9YE2ASgfQNe5.key': No such file or directory
cp: cannot stat '/etc/openvpn/easy-rsa/pki/crl.pem': No such file or directory
chmod: cannot access '/etc/openvpn/crl.pem': No such file or directory
* Applying /usr/lib/sysctl.d/10-arch.conf ...
fs.inotify.max_user_instances = 1024
fs.inotify.max_user_watches = 524288
* Applying /usr/lib/sysctl.d/50-coredump.conf ...
kernel.core_pattern = |/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h
kernel.core_pipe_limit = 16
fs.suid_dumpable = 2
* Applying /usr/lib/sysctl.d/50-default.conf ...
kernel.sysrq = 16
kernel.core_uses_pid = 1
net.ipv4.conf.default.rp_filter = 2
sysctl: setting key "net.ipv4.conf.all.rp_filter": Invalid argument
net.ipv4.conf.default.accept_source_route = 0
sysctl: setting key "net.ipv4.conf.all.accept_source_route": Invalid argument
net.ipv4.conf.default.promote_secondaries = 1
sysctl: setting key "net.ipv4.conf.all.promote_secondaries": Invalid argument
net.ipv4.ping_group_range = 0<PHONE_NUMBER>
net.core.default_qdisc = fq_codel
fs.protected_hardlinks = 1
fs.protected_symlinks = 1
fs.protected_regular = 1
fs.protected_fifos = 1
* Applying /etc/sysctl.d/99-openvpn.conf ...
net.ipv4.ip_forward = 1
Created symlink<EMAIL_ADDRESS>-><EMAIL_ADDRESS>Job for<EMAIL_ADDRESS>failed because the control process exited with error code.
See "systemctl status<EMAIL_ADDRESS>and "journalctl -xeu<EMAIL_ADDRESS>for details.
Created symlink /etc/systemd/system/multi-user.target.wants/iptables-openvpn.service -> /etc/systemd/system/iptables-openvpn.service.

$ sudo systemctl status<EMAIL_ADDRESS>*<EMAIL_ADDRESS>- OpenVPN service for server
     Loaded: loaded<EMAIL_ADDRESS>enabled; preset: disabled)
     Active: activating (auto-restart) (Result: exit-code) since Fri 2022-08-19 07:41:25 UTC; 3s ago
       Docs: man:openvpn(8)
             https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
             https://community.openvpn.net/openvpn/wiki/HOWTO
    Process: 2380 ExecStart=/usr/bin/openvpn --status /run/openvpn-server/status-server.log --status-version 2 --suppress-timestamps --config server.conf (code=exited, status=1/FAILURE)
   Main PID: 2380 (code=exited, status=1/FAILURE)
        CPU: 132ms

Aug 19 07:41:25 alarmpi systemd[1]<EMAIL_ADDRESS>Main process exited, code=exited, status=1/FAILURE
Aug 19 07:41:25 alarmpi systemd[1]<EMAIL_ADDRESS>Failed with result 'exit-code'.
Aug 19 07:41:25 alarmpi systemd[1]: Failed to start OpenVPN service for server.
Aug 19 07:41:30 alarmpi systemd[1]<EMAIL_ADDRESS>Scheduled restart job, restart counter is at 82.
Aug 19 07:41:30 alarmpi systemd[1]: Stopped OpenVPN service for server.
Aug 19 07:41:30 alarmpi systemd[1]: Starting OpenVPN service for server...
Aug 19 07:41:31 alarmpi openvpn[2397]: Consider setting groups/curves preference with tls-groups instead of forcing a specific curve with ecdh-curve.
Aug 19 07:41:31 alarmpi openvpn[2397]: Note: Treating option '--ncp-ciphers' as  '--data-ciphers' (renamed in OpenVPN 2.5).
Aug 19 07:41:31 alarmpi openvpn[2397]: Options error: --ca fails with 'ca.crt': No such file or directory (errno=2)
Aug 19 07:41:31 alarmpi openvpn[2397]: Options error: --cert fails with 'server_mFlb9YE2ASgfQNe5.crt': No such file or directory (errno=2)
Aug 19 07:41:31 alarmpi openvpn[2397]: WARNING: cannot stat file 'server_mFlb9YE2ASgfQNe5.key': No such file or directory (errno=2)
Aug 19 07:41:31 alarmpi openvpn[2397]: Options error: --key fails with 'server_mFlb9YE2ASgfQNe5.key': No such file or directory (errno=2)
Aug 19 07:41:31 alarmpi openvpn[2397]: Options error: --crl-verify fails with 'crl.pem': No such file or directory (errno=2)
Aug 19 07:41:31 alarmpi openvpn[2397]: Options error: --status fails with '/var/log/openvpn/status.log': Permission denied (errno=13)
Aug 19 07:41:31 alarmpi openvpn[2397]: Options error: Please correct these errors.
Aug 19 07:41:31 alarmpi openvpn[2397]: Use --help for more information.
Aug 19 07:41:31 alarmpi systemd[1]<EMAIL_ADDRESS>Main process exited, code=exited, status=1/FAILURE
Aug 19 07:41:31 alarmpi systemd[1]<EMAIL_ADDRESS>Failed with result 'exit-code'.
Aug 19 07:41:31 alarmpi systemd[1]: Failed to start OpenVPN service for server.
Aug 19 07:41:36 alarmpi systemd[1]<EMAIL_ADDRESS>Scheduled restart job, restart counter is at 83.
Aug 19 07:41:36 alarmpi systemd[1]: Stopped OpenVPN service for server.
Aug 19 07:41:36 alarmpi systemd[1]: Starting OpenVPN service for server...
Aug 19 07:41:38 alarmpi openvpn[2408]: Consider setting groups/curves preference with tls-groups instead of forcing a specific curve with ecdh-curve.
Aug 19 07:41:38 alarmpi openvpn[2408]: Note: Treating option '--ncp-ciphers' as  '--data-ciphers' (renamed in OpenVPN 2.5).
Aug 19 07:41:38 alarmpi openvpn[2408]: Options error: --ca fails with 'ca.crt': No such file or directory (errno=2)
Aug 19 07:41:38 alarmpi openvpn[2408]: Options error: --cert fails with 'server_mFlb9YE2ASgfQNe5.crt': No such file or directory (errno=2)

I had the same issue. The client device could not connect to the server with this error SIGUSR1[soft,connection-reset] received, process restarting because the server hadn't properly started. I fixed it using these commands, run as root.
chown openvpn:network /etc/openvpn/ca.cert
chown openvpn:network /etc/openvpn/server_*
chown -R openvpn:network /var/log/openvpn

The The certificate has expired error looks like a CA issue on your system :)

As for @Rijul-A's errors, see https://github.com/angristan/openvpn-install/issues/788

I have finally figured out how to solve my issues.
I had to change /etc/iptables/add-openvpn-rules.sh and /etc/iptables/rm-openvpn-rules.sh
#!/bin/sh
iptables -t nat -D POSTROUTING -s <IP_ADDRESS>/24 -o eth -j MASQUERADE
iptables -D INPUT -i tun0 -j ACCEPT
iptables -D FORWARD -i eth0 -o tun0 -j ACCEPT
iptables -D FORWARD -i tun0 -o eth0 -j ACCEPT
iptables -D INPUT -i eth0 -p udp --dport 3333 -j ACCEPT

TO
#!/bin/sh
iptables -t nat -D POSTROUTING -s <IP_ADDRESS>/24 -o end0 -j MASQUERADE
iptables -D INPUT -i tun0 -j ACCEPT
iptables -D FORWARD -i end0 -o tun0 -j ACCEPT
iptables -D FORWARD -i tun0 -o end0 -j ACCEPT
iptables -D INPUT -i end0 -p udp --dport 3333 -j ACCEPT

And had to change the owner and group of /etc/openvpn to openvpn:network so that files would load correctly.
Then run systemctl restart iptables-openvpn
And run systemctl restart openvpn-server@server


freeze certain atom's coordinates during optimization

Is there any method in pyscf to freeze certain atom's coordinates during optimization?

duplicate with #1666.

It can not work. I tried to do that by modified dump_mol_geometry() fucntion in geomopt.addons.py, where I added "new_coords[:2] = old_coords[:2]" between "new_coords = numpy.asarray(new_coords)" and "dx = new_coords - old_coords". At the same time, I set the gradients at the first two atoms zero.

However, I think it isn't theoretically rigorous.

What did you mean by "it cannot work"? I believe the constraints param works.

I means that the coordinates of the frozen atoms still changes during optimization.

Here's an example in which we can see the distance between atom 1 and 2 unchanged.
mol = gto.M(atom='''
C       1.1879  -0.3829 0.0000
C       0.0000  0.5526  0.0000
O       -1.1867 -0.2472 0.0000
H       -1.9237 0.3850  0.0000
H       2.0985  0.2306  0.0000
H       1.1184  -1.0093 0.8869
H       1.1184  -1.0093 -0.8869
H       -0.0227 1.1812  0.8852
H       -0.0227 1.1812  -0.8852
            ''', basis='3-21g'
, verbose=4).build()

print(gto.inter_distance(mol))

mf = mol.RKS(xc='pbe,pbe')
params = {"constraints": "cons.txt"} # freeze 1 2
mol1 = optimize(mf, **params)

print(gto.inter_distance(mol1))

The third numbers in [[0. 2.85734255 4.49466488 ...] and [[0. 2.85734255 4.48597837 ...] are different.

Yeah, because I freezed "1 2" in cons.txt so only the distance between atom 1 and 2 is fixed.

I write a cons.txt file as
$freeze
distance 1,2
, and I use that like this：
with open('cons.txt','r') as f:
cons = f.read()
params = {"constraints": cons}
It can not freeze the two atoms.

By "freeze the two atoms" you mean freeze the distance between them or freeze all of their cartesian coordinates?

yes

The script I provided above should work. It should be distance 1 2 instead of distance 1,2 in txt I think.

There is something wrong still. The calculation results

probably the cons can only be a filename instead of file content.

I tried that and the result was the same as the picture above. Can you repeat that example?

Thanks for your help. I repeat the reasonable result. The different optimizers,  "from pyscf.geomopt.geometric_solver import optimize" and "from pyscf.geomopt.berny_solver import optimize", were used by you and me, respectively. The geomopt.berny_solver may not surpport this function for the optimization at the constrains.

And the geometric_solver supports that.

Hi @Haskiy , thanks for your question. Has it been resolved?

Yes. However, this can be done by geometric_solver as hebrewsnabla said.


[Increased] test coverage

Coverage increased (+7.7%) to 41.494% when pulling 4714f9ce947f1ed55b62dc50a998bb0f574b7071 on Drogglbecher:master into 8f23abf4b113d8517856ddcebe82cfa5413b4b60 on rust-leipzig:master.


allow returning file details in JSON

I'm proposing a patch that allows fs.Stats file info to be returned in JSON. This is be enabled by the jsonStat option. The stat fields properties are screened to only pass a machine-neutral subset (ie. not exposing user ids, device ids, etc.). Also, the isFile() and isDirectory() function return values are encoded as properties.
Any thoughts on this?

I'm not sure that the selection of properties returned is quite right. Perhaps it would make sense to depart from the fs.Stats format and come up with a better list of relevant properties. (Eg. type=[file|dir], readable, writable, created, modified, etc.)

Ah, also, I guess I used some too-newfangled JS in my testing code. I'll revise that.

I like this idea, sorry this repo has been on the side lines for a while. Any interest in rebasing it to the latest master / making the JS change you mentioned?

I’ve also created a PR for this.
https://github.com/expressjs/serve-index/issues/74
My implementation is slightly different in that it adheres to the W3 File API:

name
size
type
lastModified

Type is “inode/directory” for dirs.
With my string of commits the goal is to provide the same subset of data to all of the serveIndex template functions (plain, json, html) and pave a way forward for separating the security and functionality from the view and layout so that it’s easy to publish and use a “theme” module to handle diverse needs rather than having to fork serve-index itself and potentially fall behind.
Does that work for your use case? Or do you specifically need access time and the date of creation?


2 Questions/Issues

I tried the tool and noticed two potential limitations so far:

you cannot have different columns with the same name. It would be useful to be at least able to have the displayed column name be different from its internal "label" (i.e. distinguish caption from label)
when stopping the VI using a .Net datagrid, the .Net container ends up empty. It would be nice to be able to still use the object even if the VI is not running.

Other comments/questions:

is it possible to justify the display on a column by column, row by row or cell by cell basis? How?
The up or down triangle appearing when clicking on a column header are not visible by default or even after such a sorting action has been applied to a column. This could result in some confusion (such as "did I already sort this column?")

Anyway, looking good so far! keep up the good work.

Thanks for the feedback.  I'll look into these issues.
Unfortunately, the one of the container blanking out after stopping the VI, its impossible to change and simple a way that LabVIEW allocates the .net container at run time.  It is annoying though I agree to not be able to see it when the VI is not running, don't think there is anyway around it.

I think you can use the set cell style VI to already set justification, but it will also override the default style colors, which you don't likely want. You can look inside that VI to see how to set rows/column styles though, as you could pull out the style, then just override the justification in a custom VI.  Otherwise, that will have to be added as a custom method.

Thanks for the answers. The Edit mode problem is a none issue for standalone apps. What about the distinction between label and caption for columns (and I suppose the same issue exists for row labels)?
On a different topic, I have cloned your repository, but using LV 2015, I can't really contribute to the project, or everything would become illegible to your LV 2014. I suspect this is a general problem of LV. Although you would think that everything there is in a diagram could very well be saved in a text file... Anyone at NI reading this?

The columns names use data binding from the data table directly, so do need them to be unique.  There are labels and names though in the .net elements so as you suggest, it's likely easy to add both and be more flexible.  Rows likely are the same, but I've never personally used row labels, so not sure how that would need to be.
As for 2014vs2015, if you can contribute in 2015, that is fine with me.  i start this in 14 but may just upgrade.  My plan is to produce releases in mulitple versions as packed libraries so they can easily be used / installed with a VIP and pallettes anyway, so then they will have to be saved back to each version for release.  Definitley a pain in Labview, but workable.  If you ask me, those contributing will define the versions as I'd rather have help in 2015 then none if I'm using something older.
As to NI.  I've chatted with Burt Snover at NI about this control, as he is curious about it and contributing possible for use in his tag databus engine.  He raised similar concerns about versioning, and would likely use 2013 since for release.  Again, if its done with packed libraries for each version though, it won't matter.

Added a new properties to the columns, CAPTION, which allows a different caption to be used for display text, and allowing duplicates.  The original name is used for data binding this way, the CAPTION is simply the display.  You can leave it blank as in the example and it will inherit from the name.


An example of a "versionSpec" range should be provided

# What is the range format?
"~> 2.4"
">= 2.3.1", "< 2.4"

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

ID: 02568f8b-6928-c8f1-178a-79e4cb0d93e2
Version Independent ID: 1107622c-4165-dcff-741a-279757b35323
Content: Use Ruby Version
Content Source: docs/pipelines/tasks/tool/use-ruby-version.md
Product: devops
GitHub Login: @erickson-doug
Microsoft Alias: dastahel

Examples are now provided here.  Please reopen this issue if we can provide additional help.


Fix toc breakpoint

To be reviewed by @jfy133

@nf-core-bot fix linting

I have a feeling I broke the side-nav scroll, hang on


Is this admin still active?

@genxstylez I'm working in an automatic-generated admin panel powered by GraphQL, React.js and graphene. This is how I think this project will evolve.

@syrusakbary sounds pretty cool, need a hand?


New plugin API specification proposal

This is a proposed specification for a new plugin API for Sia-UI.  I have included the most simple, basic features which I think should be included.  We should discuss the outlined functionality and amend the spec with any additional functionality which we desire.  All built-in plugins will be rewritten to utilize the new plugin API.

I've now rewritten this specification around the idea of using Redux to encapsulate all UI state in the main UI, and providing a simple eventemitter and action dispatcher object for Plugin authors to use in order to implement their desired functionality.

revised and rebased.

Later, lets go through the doc folder and update the tutorials there.


Installation of bes-domain causes SEVERE errors

[Build] 16.1 fix7 06.04.2017
[Steps to reproduce]

fill out properties files for ctmg installation
call ant -f build-db initDB
call ant -f build-glassfish.xml SETUP

[Expected result]
no SEVERE errors in logfile
[Observed result]
SEVERE errors in server.log
[Details]
This error occurs several times:
[2017-04-06T10:55:55.550+0200] [glassfish 4.1] [SEVERE] [] [javax.resourceadapter.mqjmsra] [tid: _ThreadID=19 _ThreadName=RunLevelControllerThread-1491468880634] [timeMillis:<PHONE_NUMBER>550] [levelValue: 1000] [[
Unable to generate UID:[C4060]: Login failed:  user=guest, broker=localhost:8176(54107)]]

Closed as duplicate of #671

verified 16.1 fix7 final delivery


feat: add range based exponential buckets in histogram

The current implementation does not have a range based exponential bucket function.
This can be useful in scenarios where the end user doesn't want to perform manual calculations for extracting the required buckets, especially when multiple different ranges are to be used for different histograms.
Similar implementation is provided in the golang client as well.
https://github.com/prometheus/client_golang/blob/5d584e2717ef525673736d72cd1d12e304f243d7/prometheus/histogram.go#L125

@mxinden please check!
Thank you

@mxinden Thanks for the review! Have addressed them with some small follow ups, please take a look whenever you get a chance.


feat: add table flags

Adds table flags formerly in cli-ux
Usage
export default class EnvList extends Command {
  public static flags = {
    all: Flags.boolean({
      summary: messages.getMessage('flags.all.summary'),
      char: 'a',
    }),
    ...Flags.table(), // adds all table related flags
  };

}

@W-10255961@

Hmm... do we even need this? EnvList doesn't use the flags from cli-ux. I don't want to tightly couple this to the args that the cli-ux table takes.

Hmm... do we even need this? EnvList doesn't use the flags from cli-ux. I don't want to tightly couple this to the args that the cli-ux table takes.

That's a good question, I was wondering the same... I think it's a nice thing to keep for the community. I'm assume someone out there is using it

I'd prefer not to merge this cuz I can easily see becoming outdated and/or breaking if the cli-ux table options change but if you guys think it's better for the community this way then that's fine too. I'd just add a comment about how these need to reflect the table options.


Multiple speakers in the same Proposal

I already received more than two questions about that or something like it (Commonly are just two speakers in the same proposal).

I think we can have a coauthors field in proposal model, and it receives an email and check if user exists. What do you think?


More comments

Add more code comments giving an overview of what determine-basal is doing. Also removes some old comments and TODOs that we're never likely to do, and removes an old unused var missed in a previous cleanup.

This should be a no-op, so I'll merge tomorrow. If someone can give it a quick look over before that, even better.

LGTM other than one question about comment placement


Incorrect symmetry in mapping of TNSK2 ligand pair?

Hi,
I'm running through some of the new ligands from https://github.com/openforcefield/protein-ligand-benchmark/pull/52 and I noticed a rather odd mapping for at least one of the edges.
For the transformation of lig_5d to lig_5p of the TNSK2 set (edge.zip), it appears that the default mapping generated by perses.rjmc.atom_mapping.AtomMapperfor has the wrong symmetry for the central ring, and the tert-butanol?
Here's the 2D mapping:

And a 3D render of the mapping (7 A x direction translation in positions, matching sphere colors indicate a set of mapped atoms):

Here's a gist notebook with the code details: https://gist.github.com/IAlibay/089f614665ab3a10d076990ba8cd8024
Relevant library versions:

perses version 0.10.1
openeye-toolkits 2022.1.1
openff-tookit 0.10.6

@ialibay: Thanks for catching this! A few things could be going on here:

We may not be enumerating all symmetry-equivalent valid atom mappings, so only the flipped middle ring mapping get enumerated
We may not be using a small enough threshold for atom correspondence such that the flipped middle ring mapping is permitted as a geometrically valid mapping
I can't recall if we are scoring by geometry or simply filtering by it. I seem to recall we are only filtering by it and then scoring by number of matched atoms. If so, we may need to score by RMS deviation of mapped atoms as well.

I think the key to debugging this will be to have the atom mapper print out all valid mappings and the scores for these mappings, and then see which of the above cases might be going on here. That will help us identify how to fix it.
If it can't easily be fixed, we may need to rethink the strategy of enumerating all valid mappings via graph matchings and then filtering/scoring them by geometry.
@IAlibay : This 3D visualization is beautiful! It would be fantastic if this ended up in a module that we could use to automatically generate 3D atom mapping visualizations one could explore interactively or non-interactively.

@jchodera
Apologies I don't have much time to hunt for bugs this week, but I'll try and see if I can have a deeper dive through the rjmc code next week.
Running
all_mappings = atom_mapper.get_all_mappings(molecule_1, molecule_2)

Returns a list with a single mapping, which as you mention would probably mean that all the symmetry-equivalent options are not being enumerated.
Turning off use_positions does lead to two mappings being identified, but for some reason they both have the same new_to_old mapping (and by extension the same score)?
re: visualization
We're hoping we'll move a version of this into openfe soon to do something similar. There might be an avenue to synch up to tooling in the future if we do move the atom mapping objects into gufe. That being said I think this might end up being a longer term thing (especially since I don't think we can move the visualisation tools into gufe).
In the short term, once I've added this into openfe I'm happy to add a version that's tailored to rjmc's AtomMapping if you're interested.

we could use to automatically generate 3D atom mapping visualizations one could explore interactively or non-interactively.

On that point though, 3Dmol.js isn't really geared towards saving images (unless there's been some new updates on that front), so you'd be mostly limited to interactive visualisation.

As for the central ring I think the symmetry is okay. I cannot reproduce the atom mapping you posted in https://github.com/choderalab/perses/issues/1078#issue-1320869760 , I get the following

Which seems ok to me.
One of the issues that I can see is that the ligands are actually different from what the atom mapping shows. I'm very bad with chemistry naming so I'll just point the difference I see as follows

But as you can see in the mapping above, this is not shown as a difference. I tested with a simple cyclohexane to cyclohexene to confirm that this is not detected as a difference when doing the mapping. That is, bond orders are not taken into account, which may not be that important, but not sure. Just wanted to share this.

@ijpulidos can you post your starting SDF files and the code you used? (if different from what's in the gist)

Which seems ok to me.

Have you checked in 3d?

One of the issues that I can see is that the ligands are actually different from what the atom mapping shows.

Is that actually a difference? Isn't it a bond in an aromatic ring either way?

@ijpulidos can you post your starting SDF files and the code you used? (if different from what's in the gist)

It is the same as in the gist. I just realized that you actually have the same atom mapping in the gist as mine, it's just different in the description of this issue.

@IAlibay : Upon looking at this more closely, this doesn't look like a problem case: Even though perses maps atoms to the other side of the ring, the atoms are entirely chemically equivalent, meaning the parameters will not change, and this will not impact the free energy calculation.
We're worried this might be a problem if this happens where, say, the orange atom is a fluorine, and then perses decides to turn an F -> H and an H -> F on the other side of the molecule. Could you give this a try? We're happy to reopen this if you can find a failure case that would actually impact the calculation.

@jchodera whilst this doesn't impact the resultant hybrid force field, doesn't this cause an issue with the positions? If I remember correctly the perses code averages out the coordinates from both end states, so wouldn't you get a strangely squashed ring as your initial conformer? (granted it'll probably minimise out)
I'll investigate this further on my end, there's something else odd with this edge that causes simulation failures on our end irrespective of the mapping.


feat(bot): tell users if they are not authorized to do stuff

fixes: #1509
/cc @robertsLando since you'll want to do the same in your repo

Can there be users that can do things like create device files without them having maintainer status? Hopefully this becomes less of an issue but I can’t help people as well with device files requests if I can’t invoke the bot...

Can there be users that can do things like create device files without them having maintainer status? Hopefully this becomes less of an issue but I can’t help people as well with device files requests if I can’t invoke the bot...

Yeah, we can totally make exceptions (e.g. for you). It just does not work for every user because they'd need write access to the repo in order to edit what the bot has imported.

Yeah, we can totally make exceptions (e.g. for you). It just does not work for every user because they'd need write access to the repo in order to edit what the bot has imported.

Thanks! Just trying to help out where I can...

Thanks! Just trying to help out where I can...


CYF London | Gislaine DellaBella | Module-User-Focused-Data | Week 2

Learners, PR Template
Self checklist

[X] I have committed my files one by one, on purpose, and for a reason
[X] I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
[X] I have tested my changes
[X] My changes follow the style guide
[X] My changes meet the requirements of this task

Changelist
Hi Volunteer,
First, thank you for reviewing my code.
Considerations:
I'm still confused about Github (I'mean very lost!) and need to study and practice more to use it properly. I overwrote my branches from the last exercise and this one, and I lost my commits. Even though I tried to find a solution for the error, I'm still lost. So, I decided to open a new branch until I learn it properly.
Also, I want to ride the inputs Size and Color, I had the code to hide the inputs for Color and Size but couldn’t find a solution to show the elements as clicked. I will try to sort that out later.
The reason I’m not fixing it now is that I don’t want to
Thank you,
Gislaine
https://dellabella-form.netlify.app/

 behind.

`

.

Good evening Sally,
Thank you for spending your Sunday time reviewing our codes. 💐
Also, @SallyMcGrath, reading my comment again, I realized I didn’t finish my sentence when I wrote, "The reason I’m not fixing it now is that I don’t want to..." The last part was supposed to be, "I don’t want to fall behind." I was tired that night and didn’t check it properly. I didn’t mean to be rude. 🤦🏻♀
Have a good week,

Good evening Sally, Thank you for spending your Sunday time reviewing our codes. 💐
Also, @SallyMcGrath, reading my comment again, I realized I didn’t finish my sentence when I wrote, "The reason I’m not fixing it now is that I don’t want to..." The last part was supposed to be, "I don’t want to fall behind." I was tired that night and didn’t check it properly. I didn’t mean to be rude. 🤦🏻♀
Also i spend time today learning about Githhub & command line it is starting to get into my mind :)
Have a good week,

Your sentence made me laugh! Sometimes I just "don't want to" as well. 😉
There are some games about Git that sometimes can help, though really the most help is to just keep going with it and trying, as you are doing.
https://learngitbranching.js.org/
https://nodeschool.io/


webforai can now be run from the cli

By simply running npx webforai, you can now convert URLs or local HTML files to Markdown.
This tool supports both interactive input and command-line arguments for specifying source and output paths, enabling intuitive and efficient usage.
Examples of usage

npx webforai https://example.com example.md
npx webforai https://example.com --loader=playwright

I'm starting to wonder what to do with the lisence notation in build.ts. As it is, every time someone edits build.ts, the name will increase.
packages/webforai/build.ts
@moons-14

Here's a natural translation of the given text:
The license of Honojs states:
Copyright (c) 2021 - present, Yusuke Wada and Hono contributors

Similarly, for this repository's license, if we add the phrase "webforai contributors" to the license in all files, there would likely be no need to specifically mention my name.

I'd like to implement a few more additional features, so the merge can wait.

We implemented all the features we wanted to implement.
All that's left is the license.

TODO: Ensure that the test does not fail after editing the README


Module not working..

there is an error in getting token.

@shhossain Don't know if this is still relevant to you, but newer routers are using sha256 instead of sha1. I tested that locally and now it's working again.


Support for Pi2

Super nice work!
I just tried your code on a Raspberry Pi 2 and it worked out of the box (Waveshare 3.5B).
However, the lowest/best CDIV value I could achieve was 12, everything lower ended in a non-usable picture ;) But with this value I already got a smooth result.
Btw for me N64 games on Retropie only work with disabled DMA, just to let you know (at least the ones I tried).

Thanks, nice to hear!
Not sure what the DMA thing is about. Perhaps N64 emulators utilize some specific DMA channels on their own, you could try changing the used DMA channels to see if that might help. CDIV=12 on WaveShare 3.5B sounds excellent performance, that's better than what I was able to do - my WaveShare 3.5B display maxes out at CDIV=14.


Add more styles

Since 42b3ffcd it has been possible to build in styles. There aren't currently very many of these.
Let's add some more styles to ConTabs.

Hi Tom its my first time creating a PR i apologise i didnt see that we needed to start a convo first

@ErsinDagli No worries! I'll reply to the PR #58

NB: I'm closing this issue now.
I think it's best in future for styles to be posted to their own issues like we've done with #61 and #64.
PS @ErsinDagli Your PR is still open. Please let me know if you're still working on it or if you'd like me to finish it. Either way is fine! 😄  - Tom

G’day Tom,
Sorry for the late reply, thanks for the tips just been caught up with work, will do my best to finish it over the weekend.
cheers

From: Tom Wright<EMAIL_ADDRESS>Sent: Wednesday, November 21, 2018 9:08:32 PM
To: tdwright/contabs
Cc: Ersin Dagli; Mention
Subject: Re: [tdwright/contabs] Add more styles (#11)
NB: I'm closing this issue now.
I think it's best in future for styles to be posted to their own issues like we've done with #61https://github.com/tdwright/contabs/issues/61 and #64https://github.com/tdwright/contabs/issues/64.
PS @ErsinDaglihttps://github.com/ErsinDagli Your PR is still open. Please let me know if you're still working on it or if you'd like me to finish it. Either way is fine! 😄 - Tom
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/tdwright/contabs/issues/11#issuecomment-440607470, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AnrDBIriSidqj0PCeuVMpSj3nhyS_WmBks5uxSYggaJpZM4QehGR.

G'day from Melbourne mate!
No worries at all. I know what it's like trying to fit life around work. Just glad you haven't gone and disappeared!


fix settings page title is not updating

Notes for Reviewers
This PR fixes #7304
Signed commits

[x] Yes, I signed my commits.

@Meyazhagan One more thing While you're at it, The same issue exits on the /user/preferences page as well.
It'd be great if you could add fixes to that too in the same PR.

@8rxn I updated the changes. Take a look


Responsive dashboard

Made dashboard responsive

Codbase also affecting to Login and Signup page

@thestarsahil I have made some changes

I saw the Changes ...Great  work !
@Swapnil-Singh-99
Time for Using DSA conceptual part here !


Move freq folder creation to formatpath

Closes #3.

Updated unit tests and manually tested, it works:


[ggj] generate example of ApiCallContext.withRetrySettings on client

https://github.com/googleapis/gax-java/pull/1238 introduced a new feature to the ApiCallContext that allows end users to supply RetrySetttings to be used for a single method invocation. The examples and documentation in the PR are generic, and show how to create an entirely new RetrySettings instance to supply via withRetrySettings, but there is API specific documentation that ggj could generate that would greatly help users. We should generate a single, client-level example of configuring RetrySettings via the ApiCallContext in the GAPIC layer that utilizes that GAPIC's StubSettings class as a base RetrySettings to modify. An example usage is as follows:
LanguageServiceClient client = LanguageServiceClient.create();

// In order to adjust the RetrySettings on a per-call basis, modify the default settings
// and supply it via the ApiCallContext.
RetrySettings retrySettings =
  client
    .getSettings()
      .analyzeSentimentSettings()
      .getRetrySettings()
        .toBuilder()
          .setTotalTimeout(Duration.ofSeconds(10L))
          .builder();

ApiCallContext callContext = GrpcCallContext.createDefault().withRetrySettings(retrySettings);

client.analyzeSentimentCallable().call(request, callContext);

Note: The spacing is probably off there.
A similar existing example in LanguageServiceStubSettings.
I'm thinking it would be generated in this client-level doc comment block somewhere.
cc: @miraleung

cc @olavloite we are going to try to generate specific examples of using withRetrySettings for GAPICs.


High vulnerability on td-agent 4.2.0 Nokogiri gem

Hi,
I am using td-agent 4.2.0 rpm which bundles Nokogiri 1.12.5. Below CVE are reported on it.
Nokogiri updated two of its packaged dependencies, fixing the following vulnerabilities:

Use after free in Blink XSLT allowed a remote attacker to potentially exploit heap corruption via a crafted HTML page. [CVE-2021-30560]
Use-after-free of ID and IDREF attributes. [CVE-2022-23308]

Affected Components:
RubyGem: nokogiri ≤ 1.13.1
Please let me know the impact of this vulnerability and fix plan for the same.

nokogiri gem is mainly required for fluent-plugin-parser-winevt_xml gem.
Thus, if you don't use it, it has nothing to do with you.


fix: improve import map error

:tada: This PR is included in version 2.5.4 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Contributed for Hacktoberfest - Error 404 Not found

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
So I checked that address:
https://community.sensenet.com/docs/admin-ui/command-palette/
In the part described to click:

Is something missing? See something that needs fixing? I propose to change here.

Redirect to Url does not exist:
https://github.com/SenseNet/sensenet.github.io/blob/master/docs/admin-ui/command-palette.md

Hey @crisgit ,
thank you for bringing this to our attention! As we work to fix the link, you can find the document here