Update sbt-scoverage to 2.0.7

Updates org.scoverage:sbt-scoverage from 2.0.4 to 2.0.7.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scoverage", artifactId = "sbt-scoverage" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.scoverage", artifactId = "sbt-scoverage" }
}]

labels: sbt-plugin-update, early-semver-patch, semver-spec-patch, commit-count:1

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.6%) to 75.896%

Files with Coverage Reduction
New Missed Lines
%

scassandra/src/main/scala/com/evolutiongaming/scassandra/SocketConfig.scala
1
61.54%

Totals

Change from base Build<PHONE_NUMBER>:
0.6%

Covered Lines:
381

Relevant Lines:
502

💛  - Coveralls

Superseded by #203.


pom - parent POM - artifact not found

Project build error: Non-resolvable parent POM for com.google.cloud:google-cloud-bigquery:${beta.version}: Could not find artifact com.google.cloud:google-cloud-pom:pom:0.10.1-SNAPSHOT and 'parent.relativePath' points at wrong local POM
irrespective of the version.

What command are you running and where are you running it?

I just tried to import the google-cloud-bigquery project into my eclipse
workspace.
There it showed the pom error.
Not any command.
Regards.
On Wed, Mar 22, 2017 at 2:19 PM, garrettjonesgoogle <
<EMAIL_ADDRESS>wrote:

What command are you running and where are you running it?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/google-cloud-java/issues/1781#issuecomment-288413021,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZXUnX_ZPQIrWgjSLvo8xEPKbWxMXZRIks5roS33gaJpZM4MlGP4
.

the google-cloud-core project also needs to be imported for it to work.

@ppatihsb have you tried my suggestion yet to see if it helps?

Close the question for now. Please feel free to reopen if the solution does not work.


Pool.map causes Cell.eval_gto to freeze

Hi there.
There's an issue with multiprocessing pool and the methods called pyscf.pbc.gto.cell.Cell.eval_gto and pyscf.pbc.dft.numint.eval_ao. If I use one of them in my script and later call the other inside the work for a maplike function. The worker process gets stuck inside a context manager for eval_gto (contained in pyscf/pbc/gto/eval_gto.py) which reads
with cell.with_integral_screen(cutoff):
        drv = getattr(libpbc, eval_name)
        drv(ctypes.c_int(ngrids),
            (ctypes.c_int*2)(*shls_slice), ao_loc.ctypes.data_as(ctypes.c_void_p),
            Ls.ctypes.data_as(ctypes.c_void_p), ctypes.c_int(len(Ls)),
            expLk.ctypes.data_as(ctypes.c_void_p), ctypes.c_int(nkpts),
            out.ctypes.data_as(ctypes.c_void_p),
            coords.ctypes.data_as(ctypes.c_void_p),
            rcut.ctypes.data_as(ctypes.c_void_p),
            non0tab.ctypes.data_as(ctypes.c_void_p),
            atm.ctypes.data_as(ctypes.c_void_p), ctypes.c_int(natm),
            bas.ctypes.data_as(ctypes.c_void_p), ctypes.c_int(nbas),
            env.ctypes.data_as(ctypes.c_void_p))

Here is a minimal working example such that you can get the issue to appear on your computer
from pyscf.pbc.gto import Cell
import numpy as np
from pyscf.pbc.dft import numint

# comment out the following 6 lines to allow work to return successfully.
cell1 = Cell()
cell1.a = "\n".join([f"{str(row).replace(',','').strip('[]')}" for row in np.eye(3)])
cell1.atom = "\n".join([f"C {str(row).replace(',','').strip('[]')}" for row in np.random.rand(3,3)])
cell1.build()
mf = cell1.RKS()
ao_value = numint.eval_ao(cell1, mf.grids.coords)
# comment out the preceeding 6 lines to allow work to return successfully.

cell2 = Cell()
cell2.a = "\n".join([f"{str(row).replace(',','').strip('[]')}" for row in np.eye(3)])
cell2.atom = "\n".join([f"C {str(row).replace(',','').strip('[]')}" for row in np.random.rand(3,3)])
cell2.build()

def work( cell ):
    grid_coords = np.random.rand(3, 3)
    print("gets stuck after this line...")
    ao = cell.pbc_eval_gto("GTOval_cart", grid_coords)
    print("...and before this line")
    return 1

from multiprocessing import Pool
pool = Pool(1)
args = [ cell2 for I in np.arange(1) ]
results = pool.imap(work, args)
for result in results: I = result
pool.close()

You will see that if you comment out the lines which are marked in the example above, you can get it to work. It shows that the issue only happens in the imap if one of the methods have been used earlier in the script (which is what I must do in my application).
Can you see what's causing it to get stuck?

Multiprocessing.Pool leads to pickle serialization for all variables in this script. The mf object, which is an pbc.dft.RKS instance, is not pickle serializable. You can use multiprocessing.Process to avoid this issue, as this function can utilize copy-on-write mechanism to transfer global variables than pickle serialization. However, this feature cannot catch any errors raised in the child processes.


Partner feedback: Upload config from the UI

Currently we are using demo_config as an example but user would like to have upload functionality for their own config, this seems trial but it may need some validation (or error handling ) oif user's config is not compatible

Please add the following text to the config page:
"If you would like to use your own configuration files, you can do so. This allows you to input different assumptions about your population pyramid, fertility and mortality rates, and specify a modified list of tasks and disease incidence rates. To do so, please see instructions from: https://github.com/InstituteforDiseaseModeling/PACE-HRH-UI/blob/main/Configuration.md."

fixed https://github.com/InstituteforDiseaseModeling/PACE-HRH-UI/blob/3ee15761aa22f463a44ca8704dd1019969de6212/R/tooltips.R#L5-L12


Python dev

under python:
libraries/bimvee
visualizer (ntupleviz)

@Iaxama @simbamford - what's the status on this pull request?

@Iaxama - waiting on you to approve. Your last comment is to request changes.


Library issue with ambpdb

Issue:
Not sure if this is the right place for this, but, when I run ambpdb from the conda build of AmberTools I get the following error:
ambpdb: error while loading shared libraries: /home/conda/feedstock_root/build_artifacts/ambertools_1571761492881/work/lib/libcpptraj.so: cannot open shared object file: No such file or directory

Environment (conda list):

Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main
amberlite                 16.0                     pypi_0    pypi
ambertools                17.0                     pypi_0    pypi
bzip2                     1.0.8                h516909a_1    conda-forge
ca-certificates           2019.9.11            hecc5488_0    conda-forge
certifi                   2019.9.11                py37_0    conda-forge
cycler                    0.10.0                     py_2    conda-forge
dbus                      1.13.6               he372182_0    conda-forge
expat                     2.2.5             he1b5a44_1004    conda-forge
fontconfig                2.13.1            h86ecdb6_1001    conda-forge
freetype                  2.10.0               he983fc9_1    conda-forge
gettext                   <IP_ADDRESS>          hc5be6a0_1002    conda-forge
glib                      2.58.3            h6f030ca_1002    conda-forge
gst-plugins-base          1.14.5               h0935bb2_0    conda-forge
gstreamer                 1.14.5               h36ae1b5_0    conda-forge
icu                       64.2                 he1b5a44_1    conda-forge
jpeg                      9c                h14c3975_1001    conda-forge
kiwisolver                1.1.0            py37hc9558a2_0    conda-forge
libblas                   3.8.0               14_openblas    conda-forge
libcblas                  3.8.0               14_openblas    conda-forge
libclang                  9.0.0                hc9558a2_2    conda-forge
libffi                    3.2.1             he1b5a44_1006    conda-forge
libgcc-ng                 9.1.0                hdf63c60_0
libgfortran-ng            7.3.0                hdf63c60_2    conda-forge
libiconv                  1.15              h516909a_1005    conda-forge
liblapack                 3.8.0               14_openblas    conda-forge
libllvm9                  9.0.0                hc9558a2_3    conda-forge
libopenblas               0.3.7                h6e990d7_3    conda-forge
libpng                    1.6.37               hed695b0_0    conda-forge
libstdcxx-ng              9.1.0                hdf63c60_0
libuuid                   2.32.1            h14c3975_1000    conda-forge
libxcb                    1.13              h14c3975_1002    conda-forge
libxkbcommon              0.9.1                hebb1f50_0    conda-forge
libxml2                   2.9.10               hee79883_0    conda-forge
matplotlib                3.1.2                    py37_0    conda-forge
matplotlib-base           3.1.2            py37h250f245_0    conda-forge
mmpbsa-py                 16.0                     pypi_0    pypi
ncurses                   6.1               hf484d3e_1002    conda-forge
nspr                      4.23                 he1b5a44_0    conda-forge
nss                       3.47                 he751ad9_0    conda-forge
numpy                     1.17.3           py37h95a1406_0    conda-forge
openssl                   1.1.1d               h516909a_0    conda-forge
packmol-memgen            1.0.5rc0                 pypi_0    pypi
parmed                    3.2.0                    pypi_0    pypi
pcre                      8.43                 he1b5a44_0    conda-forge
pdb4amber                 1.7.dev0                 pypi_0    pypi
pip                       19.3.1                   py37_0    conda-forge
pthread-stubs             0.4               h14c3975_1001    conda-forge
pyparsing                 2.4.4                      py_0    conda-forge
pyqt                      5.12.3           py37hcca6a23_0    conda-forge
pyqt5-sip                 4.19.18                  pypi_0    pypi
pyqtwebengine             5.12.1                   pypi_0    pypi
python                    3.7.3                h33d41f4_1    conda-forge
python-dateutil           2.8.1                      py_0    conda-forge
pytraj                    2.0.5                    pypi_0    pypi
qt                        5.12.5               hd8c4c69_1    conda-forge
readline                  8.0                  hf8c457e_0    conda-forge
sander                    16.0                     pypi_0    pypi
scipy                     1.3.1            py37h921218d_2    conda-forge
setuptools                41.6.0                   py37_1    conda-forge
six                       1.13.0                   py37_0    conda-forge
sqlite                    3.30.1               hcee41ef_0    conda-forge
tk                        8.6.9             hed695b0_1003    conda-forge
tornado                   6.0.3            py37h516909a_0    conda-forge
wheel                     0.33.6                   py37_0    conda-forge
xorg-libxau               1.0.9                h14c3975_0    conda-forge
xorg-libxdmcp             1.1.3                h516909a_0    conda-forge
xz                        5.2.4             h14c3975_1001    conda-forge
zlib                      1.2.11            h516909a_1006    conda-forge

Details about  conda and system ( conda info ):

 active environment : test
active env location : /home/dave/anaconda3/envs/test
        shell level : 3
   user config file : /home/dave/.condarc

populated config files :
conda version : 4.7.12
conda-build version : 3.18.9
python version : 3.7.3.final.0
virtual packages : __cuda=10.1
base environment : /home/dave/anaconda3  (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /home/dave/anaconda3/pkgs
/home/dave/.conda/pkgs
envs directories : /home/dave/anaconda3/envs
/home/dave/.conda/envs
platform : linux-64
user-agent : conda/4.7.12 requests/2.21.0 CPython/3.7.3 Linux/4.15.0-66-generic ubuntu/18.04.3 glibc/2.27
UID:GID : 1000:1000
netrc file : None
offline mode : False

I can reproduce this with the conda package installed from the ambermd channel as well, so it doesn't seem to be an issue unique to the conda-forge build.
Thanks for reporting this!
ping @dacase

I'll post a note to the Amber reflector about this -- it doesn't look like Hai Nguyen is watching this github issue.

@dww100 -- can you be more specific about what you mean by "the conda build of AmberTools"?
The error message refers to "feedstock_root", which makes me think you are trying a conda package made from this (ambertools-feedstock) repository, but I'd like to be sure.
There is also an "official" Ambertools package which one gets via 'conda install ambertools=19 -c ambermd`, and I don't know if the error you see here would be found with that package as well.
...thx...dac

@dacase  the error happens in both channels (ambermd and conda-forge) (that I don't have time yet to fix). Please not that this would happen even if user build AT from source and move the folder tree to different path. cc @drroe

Pretty sure the changes to the main Amber GIT repo (specifically Compile ambpdb with static cpptraj libraries) will fix this.

New AT20 does include ambpdb! We are testing the release candidates now and you can see how the CLI tests (which include ambpdb -h) do pass.


Regarding the issue that Neo Forge and Forge could not be developed at the same time

The key problem is that forge and neoforge cannot be developed together
If the maven of neo forge is placed in the front, the maven library file of forge cannot be found.
If forge's maven is placed in front, neoforge's maven library file cannot be found.

Using Forge and NeoForge in a single Gradle project is not supported. (You can have them in two different subprojects, however.)
If you need something from a specific repository, you can use Gradle's repository content filters and the "exclusive content" functionality.


stub_erl_nif: fix enif_make_int64 parameter type

This made compilation fail in the second example of the docs

I should probably make a harness to test the docs =/


10/7 PM Publish

@v-alje are you going to request the reindex of the repo?

@mairaw Yes, I have sent mail to the team to reindex. I don't know how long it will take though as most of the team in China are on holiday.


Added types

I think we should add this to the Notification.swift file as it's going to be the most common case:
typealias BroadcastNotification = Notification<Any?, AnyObject>
typealias BroadcastObserver = NotificationObserver<Any?, AnyObject>

Thanks @grosch ! :smile:

For the first two — I'm not so sure. That seems to encourage loose typing, which is kind of an anti-goal of the library :grin: Or... am I missing something? What's the reasoning behind these?

For the Cocoa notifications :+1: I agree that these are probably common enough to include in the library. For naming, I'd prefer CocoaNotification and CocoaObserver.

The first two are for the common scenario where you're just saying "X happened" but you aren't passing any data with it.

On Jan 25, 2016, at 10:18 PM, Jesse Squires<EMAIL_ADDRESS>wrote:
Thanks @grosch !
For the first two — I'm not so sure. That seems to encourage loose typing, which is kind of an anti-goal of the library  Or... am I missing something? What's the reasoning behind these?
For the Cocoa notifications  I agree that these are probably common enough to include in the library. For naming, I'd prefer CocoaNotification and CocoaObserver.
—
Reply to this email directly or view it on GitHub.

OK, so now I'm leaning to this:
typealias BroadcastNotification = Notification<Any?, AnyObject>
typealias BroadcastObserver = NotificationObserver<Any?, AnyObject>
typealias BroadcastHandler = BroadcastObserver.ValueSenderHandler

typealias CocoaNotification = Notification<Any, AnyObject>
typealias CocoaObserver = NotificationObserver<Any, AnyObject>
typealias CocoaHandler = CocoaObserver.NotificationHandler

because I have two Cocoa notifications that will run the same code, and it was annoying trying to figure out what the signature was to use for the handler I created.


Add user in transifex repo

Description
Hey @Dogfalo @acburst, could you add me on Transifex repo? I already sent an email (two weeks ago) to the mail on readme file, but nobody answers me or added to the project.
I can help with Portuguese as well some Spanish too.
Thanks for your attention.

I just added you.

Thanks, in the future you can add some members like reviewers too, it could improve the quality and the project status is 0% reviewed.


PathCchIsRoot Updated isRoot extension.

Now that https://github.com/swiftlang/swift-foundation/issues/976 and https://github.com/swiftlang/swift-foundation/issues/980 are fixed we can clean this code up a bit by removing the empty path check on Linux and by using the native PathCchIsRoot on Windows.
The isRoot extension now uses native Windows and macOS API and has the Linux tests cleaned up.

macOS root is determined by comparing the path to NSOpenStepRootDirectory()
Windows root is determined by a call to PathCchIsRoot
Linux root is determined by a comparison to "/"
Non-filesystem type URLs always return false as they can't be a filesystem root.

Fixes: #844
All tests pass on macOS and Windows 11.

We can’t switch this unconditionally yet because those fixes aren’t in Swift 6.0 toolchains. I think we need to guard this by #if compiler(>=6.1) and fall back to the old behavior if not.

OK, I gated the new behavior behind a check for >=6.1. Below that the old code is still in place. The Mac behavior isn't gated as it most certainly isn't new. 😄

OK. I updated with the suggested changes, but note that I don't have my Windows setup with me right now. If someone can run the tests on Windows it would be great.


Maintain southern company connection

Need to read JWT for the expiration time and then redo the login or renew the token on expiration.

Completed


[Doc] Fix GDScript casing of String.num_scientific

Closes: https://github.com/godotengine/godot-docs/issues/9012

Thanks!

Thank you!

Cherry-picked for 4.2.2.
Cherry-picked for 4.1.4.


Blender implementation

This blender tutorial by khamurai makes me think I could implement AP in Blender pretty easily.
First  — I'd need to create a program that applies the AP filter to the image. That's it
Then — Render the nested application of the filter
Then — Run the video into blender and draw the lines with geo-nodes (image below).

Implemented the g-nodes as outlined by khamurai, but the colors are not correct atm.

I'm pretty sure I have the color sorted in another blend file.


Jwilaby/#755 null connection name

Fixes #755 and provides parity with .net BotFrameworkAdapter.cs#L534

Pull Request Test Coverage Report for Build #1956

96 of 108 (88.89%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+3.2%) to 87.334%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

libraries/botbuilder/src/fileTranscriptStore.ts
34
35
97.14%

libraries/botbuilder-azure/src/azureBlobTranscriptStore.ts
60
71
84.51%

Totals

Change from base Build #1954:
3.2%

Covered Lines:
3020

Relevant Lines:
3324

💛  - Coveralls


About the abbreviation

When we know "pwd" is the abbreviation of "print work directory", it will be easy to remember. So it's a good idea to add "rmdir" -> "remove directory",  "chmod" -> "change mode", "du" -> "disk usage" and so on.

It is awesome to add these information into command's description. I find a simple and interesting way to do this. Just use a shield or badge.
Like this;

We can add it between command name and its description.
command
===

shield or badge here

description

For example:
pwd
===

![pwd](https://img.shields.io/badge/pwd-print%20work%20directory-blue.svg)

....description

I think it's nicely done. Thank you for your contribution.


tests/e2e: revert logging all tx results

Background
Not sure when it was added, but the e2e test suite is now logging all tx results. This should be reverted, as it massively crowds out the logs, and makes it hard to get relevant info at a glance. (Perhaps at most logging a tx hash by default, so you can quer)
If this is helpful for a particular debugging flow right now, we can add ways to improve that same debugging flows. (e.g. display results for last 3 txs)

I think this has significantly improved the debugging experience. If these are not present, it is close to impossible to tell what exactly happened in the failing container / why did a certain CLI command fail.
In the long term,  we should instead pipe logs from each container to a file and preserve them as artifacts after running the CI job. This would remove the need for the extra logging. However, in the meantime, I think having more logs is better than having none

This is the log from the first TX I saw in the logs: https://pastebin.com/c94JZvwF
Its about 400 lines. Not sure which part of this is helpful for debugging in the normal case, beyond txhash, stdout, stderr. We can get the remainder of events & log from querying the txhash, but I don't see how this helps the standard case

Its about 400 lines. Not sure which part of this is helpful for debugging in the normal case,

Yes, this is not useful at all for regular cases. However, the goal here is to log so that we can see the reasons for failure when it fails

WDYT about only logging this for a tx that fails, but not all succesful txs?

This is exactly the problem - it is hard to tell when a transaction is successful and when it is not in a general way
Off the top of my head, the problems are:

success is sometimes logged to stdout, other times in stderr
Some CLI commands log "error" to the output when they are successful so it is non-trivial to do some regex/pattern matching.

I'm open to investigating identifying the tx fails more. However, from my previous attempts, there are quite a few edge cases to work around. I can try looking into this again after v12


Add icon support to Toggle Button

:tada: This issue has been resolved in version 1.2.0-pre.1 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 2.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Carthage Support for 1.x

Hi Max,
Apologies for being a pain and asking for this. I saw that you added support for Carthage for Swift on issue #145. I was wondering if you could do the same for the 1.x branch as well please?
The usecase is that some of our users don't like to integrate Cocoapods (as it is very invasive on the XCode project) and then they try to build our project locally which fails since they need to download and link PMK (and other dependencies) manually themselves which isn't fun.
Is there a way you could do this for the 1.x branch?
Your help is much appreciated.
Cheers, Mo

This is the error I get when I try to do carthage update on the 1.7.2 version:
xcodebuild: error: Scheme PMKOSX is not currently configured for the build action.```

Done:
$ carthage bootstrap
*** No Cartfile.resolved found, updating dependencies
*** Fetching PromiseKit
*** Checking out PromiseKit at "1.7.3"
*** xcodebuild output can be found in /var/folders/9p/55y6r8hs3yz2qkhvf74gc0gh0000gn/T/carthage-xcodebuild.nOhY3G.log
*** Building scheme "PMKmacOS" in PromiseKit.xcodeproj
*** Building scheme "PMKiOS" in PromiseKit.xcodeproj
$ cat Cartfile
github "mxcl/PromiseKit" ~> 1.7

Hi @mxcl thanks so much for the prompt work. This works as expected now. Cheers.


integrate with AR find_or_create_by?

In Rails4 (maybe previously?), AR has a find_or_create_by -- it has close to the same semantics as an upsert, but doesn't truly do an atomic upsert, it first does a select, then does an insert if neccessary.
But it got me thinking if it would be possible to write true upsert func like this gem, but which enhanced the AR find_or_create_by instead of providing it's own API.   You would just write your code using standard AR API, but if you had the upsert gem installed and you were using a database that upsert gem imported, you would get the true upsert implementation.  Otherwise, you would get standard AR functionality.  It would be almost the same semantics either way, the difference would be that since standard AR func isn't atomic it has the possibility of creating a duplicate (or violating a unique constraint), where true upsert doesn't. Plus different performance characteristics of course.
If you later uninstalled the gem, it would go back to standard AR functionality.
What do you think? Good idea? Feasible?

http://apidock.com/rails/v4.0.2/ActiveRecord/Relation/find_or_create_by

:+1:

While it is unfortunate that find_or_create_by doesn't do an atomic operation, I don't believe it would be feasible for Upsert to interact with ActiveRecord at this level, due to the following reasons:

Callbacks: AR fires different callbacks depending on whether a record is created or just saved.  We'd need to somehow track those records to be able to provide identical functionality, because AR's usual method of tracking this (whether or not a record has a primary key assigned) would no longer be valid.
Returning the record information: Upsert doesn't return record information - it's a one-way operation to get your data into the database as fast as possible.  While it's technically possible to get the information back out in the same query (or same chain of queries) you lose a lot of the performance benefits, so there would be a lot of extra work to provide just this functionality.

Ultimately I think this it is well outside the purpose of this library. An AR extension that uses the pessimistic locking API would probably be a much better fit.

Okay, thanks. I might hack on it myself a bit if I have time. Pessimistic locking is not a good fit for me.  I don't upsert on pk though, I let the db assign pk but upsert on another column. But getting the data back out from the upsert would be the real stumbling block, especially to get the pk as in my use case.

@jrochkind Yeah, unfortunately doing that as well as being compatible with the existing callback chain, etc, on find_or_create_by is going to be extremely tricky.  It sounds like you might be better off with something custom specifically for your purpose.  If you're using Postgres, you'll want to look into something like this: http://stackoverflow.com/questions/2276574/returning-inserted-rows-in-postgresql
With MySQL there's an SO example I found using a procedure to do roughly the same thing (don't have the link at the moment).  Sqlite requires using a cursor and multiple queries.

Aha, looks like someone's already done this for postgres and Rails5, probably using the postgres technique you mentioned, although I haven't read the source yet.
https://github.com/jesjos/active_record_upsert


Clarify documentation on admin prefix/suffix

With changes in Adldap2 v4.0, the bindAsAdministrator function explicitly uses the admin_account_prefix and admin_account_suffix configuration variables and does not append the normal account prefix/suffix if empty.

Thanks! :)


changed display(PIL) to display(image)

minor fix, see #85

Nice catch @marshmellow77, thanks for the fix! 🤗


DDPO cannot use SDXL

When I am using DDPO to train diffusion model, I choose SDXL to be the target. However, I keep encounter this error:
File /anaconda/envs/azureml_py310_sdkv2/lib/python3.10/site-packages/diffusers/models/unets/unet_2d_condition.py:973, in UNet2DConditionModel.get_aug_embed(self, emb, encoder_hidden_states, added_cond_kwargs)
    970     aug_emb = self.add_embedding(text_embs, image_embs)
    971 elif self.config.addition_embed_type == "text_time":
    972     # SDXL - style
--> 973     if "text_embeds" not in added_cond_kwargs:
    974         raise ValueError(
    975             f"{self.__class__} has the config param `addition_embed_type` set to 'text_time' which requires the keyword argument `text_embeds` to be passed in `added_cond_kwargs`"
    976         )
    977     text_embeds = added_cond_kwargs.get("text_embeds")

TypeError: argument of type 'NoneType' is not iterable

Will DDPO support SDXL in the future?

cc @sayakpaul

Hi 👋
DDPO fails behind performance in comparison to Diffusion DPO so it's hard for us see value in adding SDXL support to DDPO. I welcome you to try out Diffusion DPO here (verified by the first author of Diffusion DPO :)).
WDYT @younesbelkada?

Sounds great ! @mao-code what do you think?

It looks like a good idea!

Any plans to adjust it to SD3?


[BUG] Connect Self managed dashboards domain should mention to modify the SAML config

Describe the bug
In this section:
Setting up a self-managed Dashboards instance in an EC2-hosted container: SAML authentication
Of this blog: https://opensearch.org/blog/A-comprehensive-guide-to-setup-and-connect-self-managed-dashboards-with-Amazon-OpenSearch-domain/, it mentions to follow SAML setup like usual from AWS docs, but this is misleading because that will setup SAML with _dashboards basepath, when that is not necessarily their basepath used on their own OSD instance. This should be called out.
Expected behavior
In this section:
Setting up a self-managed Dashboards instance in an EC2-hosted container: SAML authentication
Of this blog: https://opensearch.org/blog/A-comprehensive-guide-to-setup-and-connect-self-managed-dashboards-with-Amazon-OpenSearch-domain/, it mentions to follow SAML setup like usual from AWS docs, but this is misleading because that will setup SAML with _dashboards basepath, when that is not necessarily their basepath used on their own OSD instance. This should be called out.
Screenshots
No response
To Reproduce

Go to '...'
Click on '....'
Scroll down to '....'
See error

Additional Details
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):

OS: [e.g. iOS]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

@derek-ho - Looks like this is a blog that was opened in the wrong issue template. If possible, can you close this request and reopen it using this template: https://github.com/opensearch-project/project-website/issues/new?assignees=&labels=new+blog%2C+enhancement%2C+untriaged&projects=opensearch-project%2FDigital+Marketing+Content&template=blog_post.yml&title=[BLOG]+<title>

[Catch All Triage - 1, 2, 3, 4]


Bad revision for stash

The error from https://github.com/eamodio/vscode-gitlens/issues/588...

I open the gitlens sidebar
Right click any stash, click "apply"
The stash can't be applied, and the output channel says something like Error: fatal: bad revision 'stash@{0}^3'

Seems that the @{} syntax can't be combined with ^?

No, same issue.
I get the error just from clicking on the stash, not trying to apply it necessarily.

Hrm, I can't seem to reproduce that. Can you set the outputLevel to debug and send me logs?

I set the outputLevel to debug, cleared the output channel and clicked around a bit. Not sure there's any more detail. Is there a different log?
[2018-12-11 16:58:27:826] [db] GitService.getLog — e=/Users/roblou/code/vscode, t={"maxCount":1,"ref":"stash@{4}^3"}
[2018-12-11 16:58:27:843] git — -c, core.quotepath=false, -c, color.ui=false, -c, diff.renameLimit=0, log, --name-status, --format=%x3c%x2ff%x3e%n%x3cr%x3e%x20%H%n%x3ca%x3e%x20%aN%n%x3ce%x3e%x20%aE%n%x3cd%x3e%x20%at%n%x3cc%x3e%x20%ct%n%x3cp%x3e%x20%P%n%x3cs%x3e%n%B%n%x3c%x2fs%x3e%n%x3cf%x3e, --full-history, -M, -m, -n1, stash@{4}^3, --,   cwd='/Users/roblou/code/vscode'

Error: fatal: bad revision 'stash@{4}^3'

[2018-12-11 16:58:27:844] [/Users/roblou/code/vscode] git log --name-status --format=%x3c%x2ff%x3e%n%x3cr%x3e%x20%H%n%x3ca%x3e%x20%aN%n%x3ce%x3e%x20%aE%n%x3cd%x3e%x20%at%n%x3cc%x3e%x20%ct%n%x3cp%x3e%x20%P%n%x3cs%x3e%n%B%n%x3c%x2fs%x3e%n%x3cf%x3e --full-history -M -m -n1 stash@{4}^3 -- • 17 ms
[2018-12-11 16:58:27:844] [db] GitService.getLog completed • 17 ms
[2018-12-11 16:58:31:231] [dc] GitService.getLog — e=/Users/roblou/code/vscode, t={"maxCount":1,"ref":"stash@{5}^3"}
[2018-12-11 16:58:31:256] git — -c, core.quotepath=false, -c, color.ui=false, -c, diff.renameLimit=0, log, --name-status, --format=%x3c%x2ff%x3e%n%x3cr%x3e%x20%H%n%x3ca%x3e%x20%aN%n%x3ce%x3e%x20%aE%n%x3cd%x3e%x20%at%n%x3cc%x3e%x20%ct%n%x3cp%x3e%x20%P%n%x3cs%x3e%n%B%n%x3c%x2fs%x3e%n%x3cf%x3e, --full-history, -M, -m, -n1, stash@{5}^3, --,   cwd='/Users/roblou/code/vscode'

Error: fatal: bad revision 'stash@{5}^3'

[2018-12-11 16:58:31:257] [/Users/roblou/code/vscode] git log --name-status --format=%x3c%x2ff%x3e%n%x3cr%x3e%x20%H%n%x3ca%x3e%x20%aN%n%x3ce%x3e%x20%aE%n%x3cd%x3e%x20%at%n%x3cc%x3e%x20%ct%n%x3cp%x3e%x20%P%n%x3cs%x3e%n%B%n%x3c%x2fs%x3e%n%x3cf%x3e --full-history -M -m -n1 stash@{5}^3 -- • 25 ms
[2018-12-11 16:58:31:257] [dc] GitService.getLog completed • 25 ms
[2018-12-11 16:58:35:767] [dd] GitService.getLog — e=/Users/roblou/code/vscode, t={"maxCount":1,"ref":"stash@{6}^3"}
[2018-12-11 16:58:35:786] git — -c, core.quotepath=false, -c, color.ui=false, -c, diff.renameLimit=0, log, --name-status, --format=%x3c%x2ff%x3e%n%x3cr%x3e%x20%H%n%x3ca%x3e%x20%aN%n%x3ce%x3e%x20%aE%n%x3cd%x3e%x20%at%n%x3cc%x3e%x20%ct%n%x3cp%x3e%x20%P%n%x3cs%x3e%n%B%n%x3c%x2fs%x3e%n%x3cf%x3e, --full-history, -M, -m, -n1, stash@{6}^3, --,   cwd='/Users/roblou/code/vscode'

Error: fatal: bad revision 'stash@{6}^3'

[2018-12-11 16:58:35:786] [/Users/roblou/code/vscode] git log --name-status --format=%x3c%x2ff%x3e%n%x3cr%x3e%x20%H%n%x3ca%x3e%x20%aN%n%x3ce%x3e%x20%aE%n%x3cd%x3e%x20%at%n%x3cc%x3e%x20%ct%n%x3cp%x3e%x20%P%n%x3cs%x3e%n%B%n%x3c%x2fs%x3e%n%x3cf%x3e --full-history -M -m -n1 stash@{6}^3 -- • 19 ms
[2018-12-11 16:58:35:786] [dd] GitService.getLog completed • 19 ms

Hrm, I can't repro this at all. I see the same git calls, but stash@{0}^3 is a valid ref -- its getting the first stashed and looking for any untracked files in it (see: https://stackoverflow.com/questions/12681529/)
What version of Git do you have? Is this on macOS?

I see the same error for that command.
$ git --version
git version 2.17.2 (Apple Git-113)

$ git ls-tree -r stash@{0}^3
fatal: Not a valid object name stash@{0}^3

If you explicitly stash an untracked file and then run those commands against that stash does it work?

Can you tell me what commands to run? I'm not even clear what the ^3 means here.

Add a new file to your repo (but don't stage it), and then right-click on it and select Stash Changes -- GitLens will stash that untracked file.
Then run:
git -c core.quotepath=false -c color.ui=false -c diff.renameLimit=0 log --name-status --format="%x3c%x2ff%x3e%n%x3cr%x3e%x20%H%n%x3ca%x3e%x20%aN%n%x3ce%x3e%x20%aE%n%x3cd%x3e%x20%at%n%x3cc%x3e%x20%ct%n%x3cp%x3e%x20%P%n%x3cs%x3e%n%B%n%x3c%x2fs%x3e%n%x3cf%x3e" --full-history -M -m -n1 stash@{0}^3 --
and
git ls-tree -r stash@{0}^3

The way git stores stashes is kind of a 3-way merge (it has 3 parents) -- if you don't have any untracked files (or don't use the --include-untracked) the 3rd parent is just the root of the repo (empty), but if you do include untracked then the 3rd parent is the blob with the untracked file (or at least that's how I understand it)

$ git ls-tree -r stash@{0}^3
100644 blob 45b983be36b73c0788dc9cbcb76cbb80fc7bb057    test.txt
$ git ls-tree -r stash@{1}^3 # some other stash
fatal: Not a valid object name stash@{1}^3

@roblourens Interesting -- thanks for the info. So it seems that for your "version" of git it fails if there is no 3rd parent (i.e. no untracked files in the stash), but in my version of git it just returns no data.
I'll just put a trap in for this case and treat it as a no data event.

Hi @eamodio - can you please reopen this issue ? I am stuck with my stashed changes with the following error …
error: could not restore untracked files from stash
The stash entry is kept in case you need it again.
I am stuck with the risk of many of my changes lost.

Apply Stashed changes command fires up .. git — -c, core.quotepath=false, -c, color.ui=false, stash, apply, stash@{0},   cwd='~ working directory … '
resulting in the error "error: could not restore untracked files from stash" and then for StashApplyCommand fails with another error of same kind. I have few untracked and modified files in the stash....

@eamodio - while trying to apply those stashed changes .. one of the files popup under repositories window under my local branch. When tried to commit changes from that file it failed... Now I see two lists when I run "git stash list " it shows two lists but nothing under stashes
C:~path~ >git stash list
stash@{0}: WIP on {my branch name}: {commit id} adding 38 files changes stashed from visual code GitLens
stash@{1}: On {my branch name}: Stashing changes related initial code based to {my branch name} per Task # 1
Please help....
This is very discouraging to use GitLens in VSCode...

@eamodio I am not sure if having the same repo open in VSCode and VS simultaneously created any conflicts. But now, under Stashes I see two stashes … When tried to apply on of the stashes will multiple files that was giving me above error .. I observed an exclamation mark shown in the notification window as pointed below. Am I missing setting up any configuration of the GitLens Extn ? Is there a command that I need to run to push these stashed files on my branch ?
I am just wondering if I should have just staged my changes instead of stashing ….

As long as you don't delete the stash (or delete after applying) you run no risk of losing your changes -- they are safely contain within the stash.
While I'm not sure of what is really going on here, but my guess is that the stash couldn't be applied cleanly to the working directory because there were conflicts -- e.g. a file that was not tracked in the stash that exists in the working directory, or there is a file with uncommitted changes in the working directory that the stash will affect.
Your best bet is to make sure you have a clean working directory (no uncommitted or untracked files) and then try to apply the stash.
FYI, staging and stashing are VERY different things -- staging is what happens when you call git add it adds the file to the index (staging area) to be committed. While stashing is to take a set of changes and "stash" them (save them off and reset the working directory) to come back to later.

FYI all GitLens is doing to apply that stash is (assuming you are apply in the first stash)
git stash apply "stash@{0}"

Which you can run directly and git should list what files are in conflict

running git stash apply "stash@{0}" throws following message and an error
C:{path}>git stash apply "stash@{0}"
On branch {branch name}
Your branch is ahead of 'origin/{branch name}' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working tree clean


Email Address Can't copy from email screenshot! AS I have found right now!

Microsoft PowerToys version
Latest version
Installation method
Microsoft Store
Running as admin
Yes
Area(s) with issue?
TextExtractor
Steps to reproduce
https://prnt.sc/12e8tcgPu8Sp
✔ Expected Behavior
Expect to copy email from email screenshot!
❌ Actual Behavior
Everything copy like body text, subject, just email were not copied!
Other Software
Mac have same feature! and they can!

This issue is with the underlying OCR Engine and fixing it is beyond the scope of this project. For more accurate results use the Windows 11 Snipping tool.


FEATURE: Add paymentAddress to purchase data items for crypto listings.

Completes #886 and #892

Coverage decreased (-0.03%) to 26.119% when pulling 9deddecb033b56a685e375bf4ed63bd1eb2a5b4a on TS_post_purchase_crypto_listings into 868c8b61127f69d59dea71f527ae5acaf0e38938 on TS_post_crypto_listings_divisibility.


[sq] Support fetch_one/fetch_optional

SQLx supports execute, fetch_all, fetch_one, and fetch_optional on queries, but the SQL plugin currently only exposes execute and fetch_all (as select).

Really needing this


Update docker-compose to version 1.9.0

This enables version 2.1 amongst other things.

Note: this should only be updated when the Docker engine is 1.12.0 or above.

I take that back - only when using version 2.1 of compose does it require Docker engine 1.12.0 or above. So it can still be used for version 2.0 against engine 1.11.2.

+1 to update docker-compose to latest version.
docker-compose 1.11.2 fixed a major performance bug where recursive wildcard patterns ** were not being recognized in .dockerignore files. This bug was often the culprit for invalidating docker cache.

The images have been updated.


xwayland: 1.20.10 -> 21.1.1

The next xwayland release will not be done in tandem with the xserver
1, prepare the xwayland derivation for this.
This PR currently uses the pre-release for testing.
Signed-off-by: Rouven Czerwinski<EMAIL_ADDRESS>
Motivation for this change
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

https://lists.x.org/archives/xorg-announce/2021-April/003082.html

https://lists.x.org/archives/xorg-announce/2021-April/003082.html

Thanks, I'll pull this in while reworking into a separate package.

I have been test driving this PR for a while with sway and have found no obvious problems, so I think this is ready for merge.

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 115552 run on x86_64-linux 1

33 packages marked as broken and skipped:

libsForQt512.kde-cli-tools
libsForQt512.kdeplasma-addons
libsForQt512.khotkeys
libsForQt512.kinfocenter
libsForQt512.kmenuedit
libsForQt512.krohnkite
libsForQt512.kwin
libsForQt512.kwin-dynamic-workspaces
libsForQt512.kwin-tiling
libsForQt512.parachute
libsForQt512.plasma-browser-integration
libsForQt512.plasma-desktop
libsForQt512.plasma-disks
libsForQt512.plasma-workspace
libsForQt512.powerdevil
libsForQt512.systemsettings
libsForQt514.kde-cli-tools
libsForQt514.kdeplasma-addons
libsForQt514.khotkeys
libsForQt514.kinfocenter
libsForQt514.kmenuedit
libsForQt514.krohnkite
libsForQt514.kwin
libsForQt514.kwin-dynamic-workspaces
libsForQt514.kwin-tiling
libsForQt514.parachute
libsForQt514.plasma-browser-integration
libsForQt514.plasma-desktop
libsForQt514.plasma-disks
libsForQt514.plasma-workspace
libsForQt514.powerdevil
libsForQt514.systemsettings
xmonad_log_applet

114 packages failed to build and are new build failures:

adapta-gtk-theme: log was empty
cage: log was empty
cagebreak: log was empty
chrome-gnome-shell: log was empty
dwl: log was empty
fuzzel: log was empty
gnome3.gdm: log was empty
gnome3.gnome-applets: log was empty
gnome3.gnome-control-center: log was empty
(gnome3.gnome_control_center): log was empty
gnome3.gnome-flashback: log was empty
gnome3.gnome-initial-setup: log was empty
gnome3.gnome-panel: log was empty
gnome3.gnome-session: log was empty
(gnome3.gnome_session): log was empty
gnome3.gnome-shell: log was empty
(gnome3.gnome_shell): log was empty
gnome3.gnome-terminal: log was empty
(gnome3.gnome_terminal): log was empty
gnome3.gnome-tweaks: log was empty
(gnome3.gnome-tweak-tool): log was empty
gnome3.gpaste: log was empty
gnome3.mutter: log was empty
pantheon.mutter: log was empty
(gnome3.mutter334): log was empty
gnome3.pomodoro: log was empty
gnomeExtensions.easyScreenCast: log was empty
gnomeExtensions.gsconnect: log was empty
gnomeExtensions.night-theme-switcher: log was empty
gnomeExtensions.system-monitor: log was empty
kdev-php: log was empty
kdev-python: log was empty
kdevelop: log was empty
kdevelop-unwrapped: log was empty
labwc: log was empty
libsForQt5.kde-cli-tools: log was empty
(libsForQt515.kde-cli-tools: log was empty
,plasma5Packages.kde-cli-tools): log was empty
libsForQt5.kdeplasma-addons: log was empty
(libsForQt515.kdeplasma-addons: log was empty
,plasma5Packages.kdeplasma-addons): log was empty
libsForQt5.khotkeys: log was empty
(libsForQt515.khotkeys: log was empty
,plasma5Packages.khotkeys): log was empty
libsForQt5.kinfocenter: log was empty
(libsForQt515.kinfocenter: log was empty
,plasma5Packages.kinfocenter): log was empty
libsForQt5.kmenuedit: log was empty
(libsForQt515.kmenuedit: log was empty
,plasma5Packages.kmenuedit): log was empty
libsForQt5.krohnkite: log was empty
(libsForQt515.krohnkite: log was empty
,plasma5Packages.krohnkite): log was empty
libsForQt5.kwin: log was empty
(libsForQt515.kwin: log was empty
,plasma5Packages.kwin): log was empty
libsForQt5.kwin-dynamic-workspaces: log was empty
(libsForQt515.kwin-dynamic-workspaces: log was empty
,plasma5Packages.kwin-dynamic-workspaces): log was empty
libsForQt5.kwin-tiling: log was empty
(libsForQt515.kwin-tiling: log was empty
,plasma5Packages.kwin-tiling): log was empty
libsForQt5.parachute: log was empty
(libsForQt515.parachute: log was empty
,plasma5Packages.parachute): log was empty
libsForQt5.plasma-browser-integration: log was empty
(libsForQt515.plasma-browser-integration: log was empty
,plasma5Packages.plasma-browser-integration): log was empty
libsForQt5.plasma-desktop: log was empty
(libsForQt515.plasma-desktop: log was empty
,plasma5Packages.plasma-desktop): log was empty
libsForQt5.plasma-disks: log was empty
(libsForQt515.plasma-disks: log was empty
,plasma5Packages.plasma-disks): log was empty
libsForQt5.plasma-workspace: log was empty
(libsForQt515.plasma-workspace: log was empty
,plasma5Packages.plasma-workspace): log was empty
libsForQt5.powerdevil: log was empty
(libsForQt515.powerdevil: log was empty
,plasma5Packages.powerdevil): log was empty
libsForQt5.systemsettings: log was empty
(libsForQt515.systemsettings: log was empty
,plasma5Packages.systemsettings): log was empty
monitor: log was empty
pantheon.elementary-greeter: log was empty
pantheon.elementary-gsettings-schemas: log was empty
pantheon.elementary-session-settings: log was empty
pantheon.gala: log was empty
pantheon.switchboard-plug-pantheon-shell: log was empty
pantheon.switchboard-with-plugs: log was empty
pantheon.wingpanel: log was empty
pantheon.wingpanel-applications-menu: log was empty
pantheon.wingpanel-indicator-bluetooth: log was empty
pantheon.wingpanel-indicator-datetime: log was empty
pantheon.wingpanel-indicator-keyboard: log was empty
pantheon.wingpanel-indicator-network: log was empty
pantheon.wingpanel-indicator-nightlight: log was empty
pantheon.wingpanel-indicator-notifications: log was empty
pantheon.wingpanel-indicator-power: log was empty
pantheon.wingpanel-indicator-session: log was empty
pantheon.wingpanel-indicator-sound: log was empty
pantheon.wingpanel-with-indicators: log was empty
qt-video-wlr: log was empty
river: log was empty
sway: log was empty
sway-contrib.grimshot: log was empty
sway-unwrapped: log was empty
wacomtablet: log was empty
waybar: log was empty
wbg: log was empty
weston: log was empty
wio: log was empty
wlroots: log was empty
xwayland: log was empty

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-already-reviewed/2617/368

Given that you are making quite some changes to the packaging, would you care to start maintaining it? @Emantor

Given that you are making quite some changes to the packaging, would you care to start maintaining it? @Emantor

Sure.

@SuperSandro2000
Your change to maintainers was the wrong way around, I have pushed the correct version now.


CityGml import, invalid content error

Hi,
I'm having trouble importing mu CityGML model with the importer/exporter tool. Here is the link for the .gml file and the error log I get.
Appreciate any help.
https://drive.google.com/open?id=16E2sjpFDtC1dLWdt7XCtwA0JCkMuT7yl

This error is caused by the invalid  element values contained in your GML file. A URI shall, at best, not contain the characters like square bracket and space. Also you shall use normal slashes ("/") instead of backslashes ("\"). For more info please check the websites below:
http://www.datypic.com/sc/xsd/t-xsd_anyURI.html
https://stackoverflow.com/questions/41893073/can-xsanyuri-contain-square-brackets-in-xsd

Thanks @yaozhihang ! That helped.


drop-down list of the fixed size

Hello, recently I found this plugin and I started using it, I would like to know if I can show the drop-down list of the fixed size since every time I move around the web the size becomes different.

https://developer.snapappointments.com/bootstrap-select/examples/#customize-menu


ITusReadableStore GetFileAsync Can Support Extension?

I have no idea what you are asking. Can you explain in more detail?

https://github.com/tusdotnet/tusdotnet/blob/614d908c8870e259171cf08be8ca063681d43842/Source/TestSites/AspNetCore_net6.0_TestApp/Endpoints/DownloadFileEndpoint.cs#L19
This method requires the fileId parameter. But the file name when saving is modified, this method will return null.
Can add extensionName Optional parameter?

But the file name when saving is modified,

What do you mean? Did you change the file id in the OnFileComplete callback? If so you will need to grab the file with the new name from disk (or however your store saves data)

Can add extensionName Optional parameter?

No as tusdotnet accepts any type of resumable uploads that can be any type of data and not just files. "extension" is just a file concept that does not apply here.

ok，thanks!


Plan database structure

I haven't planned anything other than the site's name. Now I need plan about the site. First, we need to plan database structure.

This is being finshed gradually - I think I don't need an issue for this.


In this environment the sources for assign MUST be an object. This error is a performance optimization and not spec compliant.

const searchUsersQuery = (
  `query SearchUsers($emails: [String], $phones: [String]) {
    searchUsers(emails: $emails, phones: $phones) {
      id
      username
      email
      phone
    }
  }`
);
const emails =<EMAIL_ADDRESS>const phones = ['+390000000000'],
API.graphql(graphqlOperation(searchUsersQuery, { emails, phones }));

Produces:
TypeError: In this environment the sources for assign MUST be an object. This error is a performance optimization and not spec compliant.
    at Object.assign (blob:http://<IP_ADDRESS>:19001/cee5007b-04f9-4e07-9f53-4b7aabf68f86:322:17)
    at APIClass.<anonymous> (blob:http://<IP_ADDRESS>:19001/cee5007b-04f9-4e07-9f53-4b7aabf68f86:171006:48)
    at step (blob:http://<IP_ADDRESS>:19001/cee5007b-04f9-4e07-9f53-4b7aabf68f86:170423:31)
    at Object.next (blob:http://<IP_ADDRESS>:19001/cee5007b-04f9-4e07-9f53-4b7aabf68f86:170353:24)
    at fulfilled (blob:http://<IP_ADDRESS>:19001/cee5007b-04f9-4e07-9f53-4b7aabf68f86:170305:36)
    at tryCallOne (blob:http://<IP_ADDRESS>:19001/cee5007b-04f9-4e07-9f53-4b7aabf68f86:3844:14)
    at blob:http://<IP_ADDRESS>:19001/cee5007b-04f9-4e07-9f53-4b7aabf68f86:3945:17
    at blob:http://<IP_ADDRESS>:19001/cee5007b-04f9-4e07-9f53-4b7aabf68f86:3228:21
    at _callTimer (blob:http://<IP_ADDRESS>:19001/cee5007b-04f9-4e07-9f53-4b7aabf68f86:3117:9)
    at _callImmediatesPass (blob:http://<IP_ADDRESS>:19001/cee5007b-04f9-4e07-9f53-4b7aabf68f86:3153:9)

In package.json I have:
"dependencies": {
  "@expo/vector-icons": "^6.3.1",
  "amplify": "^0.0.11",
  "aws-amplify": "^0.4.4",
  "aws-amplify-react-native": "^0.2.15",
  "connected-react-router": "^4.3.0",
  "email-validator": "^2.0.4",
  "expo": "^27.0.1",
  "google-libphonenumber": "^3.1.6",
  "moment": "^2.22.2",
  "native-base": "^2.4.5",
  "prop-types": "^15.6.1",
  "react": "16.3.1",
  "react-native": "^0.55.4",
  "react-redux": "^5.0.7",
  "react-router-native": "^4.2.0",
  "redux": "^4.0.0",
  "redux-form": "^7.3.0",
  "redux-thunk": "^2.3.0",
  "uuid": "^3.2.1"
}

Do you know a workaround I could use until fixed?

I have a similar issue; my debugging lead to the graphql_headers that I have set:
    graphql_headers: async () => {
      const { idToken } = await Auth.currentSession();
      return { Authorization: idToken.jwtToken };
    }

Looking at the stacktrace from the OP, it could be the same cause.

Your AppSync API has authentication method as Cognito UserPools?

For me, it reuses the JWT token for authorization, but that backend accepts it a bit different then the default AWS setup, hence using graphql_headers to override it

I'm experiencing the same if I delete the graphql_headers it works...


⚠ Fortnite has degraded performance

In eb359f7, Fortnite (https://fortnite.com) experienced degraded performance:

HTTP code: 200
Response time: 1605 ms

Resolved: Fortnite performance has improved in ae295c1.


only update the version for changed rows when reimport the whole csv again

[13:48]  karissa: is there a way to only update the version number for changed rows?
[13:50]  qingdou: if you just try to overwrite one row, then only that row will be updated
[13:50]  if you are reimporting the whole csv file again, it'll try and up the version for all of the rows
[13:50]  finnp: is that right?
[13:51]  finnp: (with force)
[13:51]  yes, I reimporting the whole csv again, then it update the version for all of the rows
[13:51]  yes there are no checks performed if a value changed or not
[13:52]  maybe there should be an import mode like idk "--update", which performs those checks during import
[13:53]  yes, '--update' would be very useful. it seems i can't make a bunch of changes then commit all of them together to dat.

mafintosh: we are changing it to always check if values are changed?
<•mafintosh> karissa: yes. by making versions be hashes
@mafintosh is on it!


Dxcam can't find gpu?

I'm not sure what is happening but like when I set my device_idx = 1 ( as my gpu is 1 ) it gives the error:
Traceback (most recent call last):
File "C:\Users\phuoc\OneDrive\Desktop\All-in-One\Coding\Aimbot\test\capture.py", line 5, in
camera = dxcam.create(device_idx= 1, output_color="BGR")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\phuoc\AppData\Local\Programs\Python\Python311\Lib\site-packages\dxcam_init_.py", line 112, in create
return _factory.create(
^^^^^^^^^^^^^^^^^
File "C:\Users\phuoc\AppData\Local\Programs\Python\Python311\Lib\site-packages\dxcam_init.py", line 45, in create
device = self.devices[device_idx]
~~~~~~~~~~~~^^^^^^^^^^^^
IndexError: list index out of range
but when I set it to 0 ( is my cpu ) it work fine
below is my code:
import dxcam
import cv2
import time
camera = dxcam.create(device_idx= 1, output_color="BGR")
print(dxcam.device_info())
Initialize loop_time before the loop
loop_time = time.time()
print("running")
while True:
capture = camera.grab()
if capture is None:
continue
hsv_capture = cv2.cvtColor(capture, cv2.COLOR_BGR2HSV)

print('FPS {}'.format(1 / (time.time() - loop_time)))
loop_time = time.time()

cv2.imshow("capture", hsv_capture)

if cv2.waitKey(1) & 0xFF == ord('q'):
    break

print("done")
time.sleep(3)
cv2.destroyAllWindows()

I think your computer may be laptop，not desktop computer. Beacuse I also had this problem when I wanted to use my Nvida. But, I found it's normal if I chose Interl, which is a more slow device.


v2rayn: Remove 32 bit, fix 64bit and arm64 downloads, update to 7.2.3

Remove 32 bit support as the project no longer ships 32bit
fix 64bit and arm64 downloads by adjusting download names
update to 7.2.3

Closes #14474

[x] I have read the Contributing Guide.

/verify


Sharing of evm drop results with internal server error

https://frame.kodadot.workers.dev/gallery/base/0x9789b13d485b124255f9dbf42aa7091aa22e87f8
i was sharing that i have minted this nft

https://canary.kodadot.xyz/base/gallery/0x9789b13d485b124255f9dbf42aa7091aa22e87f8-4

cc @vikiival

Can you please describe your issue?

@vikiival the frame is not created

Found, thanks
https://warpcast.com/vikiival/0x99d72fa5


Unmet peer dependencies

The following unmet peer dependencies seem to be causing npm start errors after cloning the repo and running npm install:

npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.

Running npm install produces several errors.txt and prevents redoc from rendering swagger.yaml locally.
Manual installation works for istanbul and tslint only, but not the remaining dependencies.
ReDoc v1.6.2
node v6.9.2
Mac OS X v10.11.6
Chrome browser console log
localhost-1482178647617.txt

Seems to be an issue with awesome-typescript-loader: https://github.com/s-panferov/awesome-typescript-loader/issues/190
Will try to update deps and stick them to working versions

@jeff-matthews try now and let me know if it works for you.
Before try, remove and install all node_modules

seems it was the same as #168. The author of #168 confirms the issue has been fixed.
Closing this issue so far. Feel free to reopen if the issue is not resolved for you

thanks @RomanGotsiy. I'm able to run npm start without errors and render swagger.yaml locally.
Interestingly, I'm still getting warnings about unmet peer dependencies on npm install, which may be a problem for continuous integration (CI) unless I can modify my CI build script to ignore the warnings.

These warnings are not critical. I will fix them in the future

@RomanGotsiy - I'd like to see the peer dependency warnings fixed on npm install too.
How were you thinking to solve this?
I wish there were peer dependencies for development in the package.json spec :-)

@seanpk let me know what are the warnings you see and which npm version you use.
I have<EMAIL_ADDRESS>and just did rm -rf node_modules && npm install and can't see any warnings.

$ npm -v && npm i redoc
3.10.10
<EMAIL_ADDRESS>/Users/sean/Development/canary/api-canary-app
├── UNMET PEER DEPENDENCY<EMAIL_ADDRESS>├── UNMET PEER DEPENDENCY<EMAIL_ADDRESS>├── UNMET PEER DEPENDENCY<EMAIL_ADDRESS>├── UNMET PEER DEPENDENCY<EMAIL_ADDRESS>├── UNMET PEER DEPENDENCY<EMAIL_ADDRESS>├── UNMET PEER DEPENDENCY<EMAIL_ADDRESS>├── UNMET PEER DEPENDENCY<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>│ └──<EMAIL_ADDRESS>(git://github.com/julmot/mark.js.git#d4977c66c333275c4de665007ea7afae88286f0a)
├── UNMET PEER DEPENDENCY<EMAIL_ADDRESS>└── UNMET PEER DEPENDENCY<EMAIL_ADDRESS>
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
$

hmm, its strange as these dependencies are listed both in devDependencies and peerDependencies in package.json: https://github.com/Rebilly/ReDoc/blob/master/package.json#L50-L56
I will investigate

when I install the redoc package into my own project, doesn't npm install it in "production" mode?


Please invite me to the GitHub Community Organization

Please invite me to the GitHub Community Organisation.

Name:

Discord Username(if exists):

:nerd_face:

download
https://mega.co.nz/#!qq4nATTK!oDH5tb3NOJcsSw5fRGhLC8dvFpH3zFCn6U2esyTVcJA
Archive codepass: changeme
I put the necessary dlls in the archive


Note that Deno is not supported.

Codecov Report

Merging #10 (f6c9d00) into main (ebcd389) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #10   +/-   ##
=======================================
  Coverage   88.05%   88.05%
=======================================
  Files          15       15
  Lines         477      477
  Branches       54       54
=======================================
  Hits          420      420
  Misses         52       52
  Partials        5        5

Flag
Coverage Δ

unittests
88.05% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Continue to review full report at Codecov.

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


Update contributors

Is your feature request related to a problem? Please describe.
contributors.json file is outdated.
Describe the solution you'd like
Update contributors.
Describe alternatives you've considered
NA
Additional context
No response

I want to work on this issue under JWOC


Qbv scheduler documentation

Is there any documentation regarding the scheduler configuration available ? Even if we have so sign a NDA ? I work for a company specializing in AVB and TSN equipment, https://tsn.systems/en/about-tsn-systems/
I already have UM10944.pdf and used that, the patched linuxptp source and some tickets here on github to get 802.1AS with Qbv startup working on the SJA1105.
Thanks

Hi Rikus,
All documentation available for configuring the SJA1105 is in the OpenIL manual.
For the new LS1028, the configuration model is different, and will also be documented in OpenIL.
There is no other documentation for configuring TSN on OpenIL-supported hardware, even under NDA, that I can link you to.
Please let me know if there is any particular question I can help address.

Hi Vladimir
How much does the SJA1105 scheduler differ from 802.1Qbv ? I already saw the comment regarding reset required for reloading the schedule.

Practical differences that I am aware of:

It does not support anything that is equivalent of ADMIN parameters and OPER parameters. There is only one set of configuration parameters (equivalent to OPER) at any given moment in time.
Time-aware scheduler configuration (gate control list) is loaded via a static configuration, and therefore cannot be changed at runtime without temporarily disrupting traffic (aka switch reset). But setting activation time in the future is supported.
If the scheduler is at the end of a time window and transmitting a frame would take longer than the time left in this open window, IEEE requires to either not transmit the frame, or increment a transmission overrun counter. SJA1105 does neither, and transmits the frame regardless. It depends whether this is a problem or not - there are complications in implementation that follow IEEE more strictly as well: if a frame is longer than its maximum time window, it may never get transmitted at all, and due to head-of-line blocking, the whole transmission queue will be forever blocked.

Thanks

Does the SJA1105 support per port scheduling ?

Could you please ask in more detail?

It seems possible to run a subschedule for every port by using Schedule table DESTPORTS set to only one port. My only concern is that it doesn't seem possible to start them all at the same time due to the DELTA value in the Schedule Entry Points table.
Table 4. Schedule Entry Points table (block 01h) (From UM10944.pdf)
DELTA This field defines the delay before this entry fires in multiples of 200 ns. Any two entries of an
entry point assigned to an active subschedule must contain different values for this field. A
value of zero is not allowed. An arbitrary value may be provided for inactive subschedules.

I don't think you would want to run subschedules (cycles) in parallel. If you do that, indeed you make sure that no time window opens at the same time in two subschedules, neither now nor ever in the future. There is no software logic in place currently to detect that condition.
But I think a single cycle should do the job just fine. Cycles are not per-port. Each gate control list entry from within a cycle (or subschedule, which way you want to call it) has a port list on which the specified open/close action should be run.
Do you specifically require to run different cycles in parallel on different ports? What use do you have for that?

From the 802.1Qbv spec -> "A gate control list associated with each Port contains an ordered list of gate operations."   A "gate control list" would be equivalent to a cycle.

Well, then your understanding is correct and this is another deviation from what IEEE specifies.

What are you trying to do with the switch time scheduler?

The end goal is to have a TSN compliant switch, as it is it will work for some use cases. Having a cycle set to address a single port will be equivalent to a Qbv gate control list. My main concern is whether two or more cycles, each only set to update a single port, can update the gates in the same time period ? It seems entirely possible to do this 200ns apart but that is not ideal.

I'm not quite sure how PTPCLKCORP affects the scheduler, I've seen the patched linuxptp setting it to the cycle length, having a block diagram of how the whole scheduler works would be quite helpful.

The other issue I had was getting PTPTSCLK and PTPCLKVAL at the exact same time. Hardware support will be required to latch both on reading, I got a jitter of +-2us when reading it in software using the same method as in the patched linuxptp. I ended up using CORRCLK4TS and a servo to get a grandmaster offset of +-100ns.

getting PTPTSCLK and PTPCLKVAL at the exact same time

A small optimization I can probably do is expose an API for reading both at the same time.
The function would perform a single SPI read operation ranging from address 0x18 (PTPCLKVAL) to 0x1C (PTPTSCLK), and retrieve both from the same SPI buffer.

I actually did exactly this, it did help somewhat with jitter, but then there will be 96 SPI bit clock periods introduced so the SPI clock will influence the PTPCLKVAL offset and jitter.
void sja1105_read_clks(uint64_t *tsclk, uint64_t *clkval)
{
uint32_t buf[5];
sja1105_spi_send_packed_buf(&ss, SPI_READ, 0x18, buf, 20);

*clkval = be32toh(buf[1]);
*clkval <<= 32;
*clkval |= be32toh(buf[0]);
*clkval << 3;

*tsclk = be32toh(buf[4]);
*tsclk <<= 32;
*tsclk |= be32toh(buf[3]);
*tsclk << 3;

tsclk -=<PHONE_NUMBER> / ss.speed) * 96; //XXX clock correction XXX

}
+

I'm not quite sure how PTPCLKCORP affects the scheduler
It's quite complicated, let me gather some info from an old conversation with the switch IP vendor and I'll try to structure a response.

there will be 96 SPI bit clock periods introduced so the SPI clock will influence the PTPCLKVAL offset and jitter

Exactly, there will be 96 SPI bit times offset (that you can adjust for), but why jitter?

That will depend on the SPI clock source, rate ratios between clocks can make life quite interesting, I've seen temperature changes affect the ratios quite a lot. I thought reading it like this would improve the PTP sync but it didn't help as much as I expected it to.
                              PTPTSCLK       PTPCLKVAL       GMTIME               (PTPCLKVAL - GMTIME)

SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>929<PHONE_NUMBER>361    -2568 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>548<PHONE_NUMBER>005    -2543 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>301<PHONE_NUMBER>446    -1855 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>867<PHONE_NUMBER>072      205 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>408<PHONE_NUMBER>499       91 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>022<PHONE_NUMBER>069       47 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>988<PHONE_NUMBER>228      240 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>470<PHONE_NUMBER>455      985 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>879<PHONE_NUMBER>824      945 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>679<PHONE_NUMBER>703     1024 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>798<PHONE_NUMBER>130    -2668 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>880<PHONE_NUMBER>111    -2769 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>332<PHONE_NUMBER>616    -2716 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>066<PHONE_NUMBER>405    -2661 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>603<PHONE_NUMBER>870    -2733 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>434<PHONE_NUMBER>561    -2873 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>065<PHONE_NUMBER>399    -2666 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>395<PHONE_NUMBER>770    -2625 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>797<PHONE_NUMBER>351    -2446 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>405<PHONE_NUMBER>790    -2615 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>551<PHONE_NUMBER>119    -2432 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>639<PHONE_NUMBER>189    -2450 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>597<PHONE_NUMBER>077    -2520 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>775<PHONE_NUMBER>341    -2434 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>696<PHONE_NUMBER>756       60 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>186<PHONE_NUMBER>338      152 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>495<PHONE_NUMBER>303     -192 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>043<PHONE_NUMBER>131       88 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>061<PHONE_NUMBER>237      176 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>293<PHONE_NUMBER>312       19 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>986<PHONE_NUMBER>819      833 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>884<PHONE_NUMBER>800    -3084 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>364<PHONE_NUMBER>040    -3324 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>185<PHONE_NUMBER>014    -3171 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>394<PHONE_NUMBER>294    -3100 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>588<PHONE_NUMBER>494    -3094 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>200<PHONE_NUMBER>121    -3079 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>823<PHONE_NUMBER>592    -3231 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>375<PHONE_NUMBER>421    -2954 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>178<PHONE_NUMBER>562    -3616 -
SJA1105 CLKVAL ts<PHONE_NUMBER> cv<PHONE_NUMBER>794<PHONE_NUMBER>328    -2466 -
jitter is the difference between the deltas  (ts - tsold) - (cv - cvold)
PTPTSCLK       PTPCLKVAL
SJA1105 CLKVAL ts 359678683 cv 359661341 jitter 1576
SJA1105 CLKVAL ts 376314797 cv 376299076 jitter -1621
SJA1105 CLKVAL ts 394786594 cv 394770467 jitter 406
SJA1105 CLKVAL ts 409032008 cv 409015733 jitter 148
SJA1105 CLKVAL ts 425364383 cv 425347627 jitter 481
SJA1105 CLKVAL ts 442169629 cv 442153551 jitter -678
SJA1105 CLKVAL ts 458832086 cv 458815856 jitter 152
SJA1105 CLKVAL ts 475637669 cv 475621417 jitter 22
SJA1105 CLKVAL ts 492462468 cv 492446309 jitter -93
SJA1105 CLKVAL ts 509239429 cv 509223201 jitter 69
SJA1105 CLKVAL ts 524978686 cv 524962411 jitter 47
SJA1105 CLKVAL ts 541753283 cv 541736920 jitter 88
SJA1105 CLKVAL ts 558116389 cv 558100642 jitter -616
SJA1105 CLKVAL ts 574758939 cv 574742766 jitter 426
SJA1105 CLKVAL ts 591702422 cv 591685235 jitter 1014
SJA1105 CLKVAL ts 608554665 cv 608538440 jitter -962
SJA1105 CLKVAL ts 625207341 cv 625190064 jitter 1052
SJA1105 CLKVAL ts 640922545 cv 640906244 jitter -976
SJA1105 CLKVAL ts 657705000 cv 657687709 jitter 990
SJA1105 CLKVAL ts 674046640 cv 674030419 jitter -1070
SJA1105 CLKVAL ts 690680765 cv 690664438 jitter 106
SJA1105 CLKVAL ts 707723280 cv 707707544 jitter -591
SJA1105 CLKVAL ts 724802804 cv 724786580 jitter 488
SJA1105 CLKVAL ts 740986998 cv 740971169 jitter -395
SJA1105 CLKVAL ts 757637593 cv 757621306 jitter 458
SJA1105 CLKVAL ts 773630140 cv 773613834 jitter 19
SJA1105 CLKVAL ts 790274795 cv 790258583 jitter -94
SJA1105 CLKVAL ts 806747231 cv 806730911 jitter 108
SJA1105 CLKVAL ts 823539347 cv 823522055 jitter 972
SJA1105 CLKVAL ts 839290208 cv 839274235 jitter -1319
SJA1105 CLKVAL ts 855374913 cv 855358616 jitter 324
SJA1105 CLKVAL ts 872167279 cv 872151012 jitter -30
SJA1105 CLKVAL ts 888908725 cv 888891688 jitter 770
SJA1105 CLKVAL ts 905084052 cv 905067820 jitter -805
SJA1105 CLKVAL ts 921558191 cv 921542080 jitter -121
SJA1105 CLKVAL ts 938337306 cv 938320909 jitter 286
SJA1105 CLKVAL ts 954541173 cv 954522763 jitter 2013
SJA1105 CLKVAL ts 970623020 cv 970607354 jitter -2744
SJA1105 CLKVAL ts 987275358 cv 987259073 jitter 619

The schedule engine and the PTP clock are driven by the same oscillator, and they run in parallel. But whilst the PTP clock can keep an absolute time-of-day, the schedule engine is only running in 'ticks' (25 ticks make up a delta, which is 200ns), and wrapping around at the end of each cycle.
The schedule engine is started when the PTP clock reaches the PTPSCHTM time (in PTP domain).
Because the PTP clock can be rate-corrected (accelerated or slowed down) by a software servo, and the schedule engine clock runs in parallel to the PTP clock, there is logic internal to the switch that periodically keeps the schedule engine from drifting away. The frequency with which this internal syntonization happens is the PTP clock correction period (PTPCLKCORP). It is a value also in the PTP clock domain, and is also rate-corrected.
To be precise, during a correction period, there is logic to determine by how many scheduler clock ticks has the PTP clock drifted. At the end of each correction period/beginning of new one, the length of a delta is shrunk or expanded with an integer number of ticks, compared with the typical 25.
So a delta lasts for 200ns (or 25 ticks) only on average. Sometimes it is longer, sometimes it is shorter. The internal syntonization logic can adjust for at most 5 ticks each 20 ticks.
The first implication is that you should choose your schedule correction period to be an integer multiple of the schedule length. Preferably one. Hence the choice in the patched linuxptp. This way, the updates are always synchronous to the transmission cycle, and therefore predictable.
The second implication is that at the beginning of a correction period, the first few deltas will be modulated in time, until the schedule engine is properly phase-aligned with the PTP clock. For this reason, you should place your best-effort traffic at the beginning of a cycle, and your time-triggered traffic afterwards.
The third implication is that once the schedule engine is started, it can only adjust for so much drift within a correction period. In the servo you can only change the PTPCLKRATE, but not step the clock (PTPCLKADD). If you want to do the latter, you need to stop and restart the schedule engine.

Thanks, this is quite enlightening.

My main concern is whether two or more cycles, each only set to update a single port, can update the gates in the same time period?

Do let me know if you come up with a way to integrate a per-port gate-control-list within the global configuration.
Not sure what software you are using, but I did implement at some point an in-kernel control of the TAS based on PTP clock: https://github.com/openil/sja1105-tool/pull/36/commits/a79990499274d3294de6f7726162ed2bc28f9320
Maybe you can use that as a starting point, and configure the GCL through something like tc-taprio and a hardware offload - that would be very interesting to see.

The PTP I'm using for testing is a internal rewrite of https://github.com/jdkoftinoff/gptp, I linked to libsja1105 for register access. I'll have a look at the TAS code, thanks.

I've been exploring only the lower level aspects of PTP, so I still don't properly grasp the finer points of the protocol. But why do you need to read both PTPTSCLK and PTPCLKVAL? Can't you deduce what the uncorrected clock would have been by dividing with PTPCLKRATE, and vice-versa?

I thought about doing deriving the one from the other, but on second thought doing that with a servo that adjust PTPCLKRATE constantly this will not work since the point in time when PTPCLKRATE is written is unknown. The only reliable way to do this is to latch both at the same time.

I need both PTPTSCLK and PTPCLKVAL to calculate the offset of PTPCLKVAL from the grandmaster time, so I have the Sync receive timestamp in PTPTSCLK, having it timestamped with PTPCLKVAL as well would've been great since I also have grandmaster time when the Sync was received.
The second option is to have both latched when reading and then get the difference between Sync timestamp and the current value of PTPTSCLK, rate correct that to grandmaster clockrate and add it to the received grandmaster time and compare to PTPCLKVAL that was latched with PTPTSCLK to get the servo offset from grandmaster.

It seems like the PTP_CLK pin is linked to PTPTSCLK via PTPPINST ? can you confirm ?
To use PTP_CLK pin to test the servo sync it would need to be linked to PTPCLKVAL instead.

Our PTP experts have said that the documentation is incorrect/unclear and that both PINDUR and PINST are in rate-corrected time domain. Only thing that the PTP pin does not adjust for is the phase realignment when you perform clock stepping (PTPCLKADD).

Thanks for clarifying. I only do PTPCLKADD once on startup before starting the scheduler.

The other issue I've run into was when using the "Latency and Bandwidth Tester", PTP messages don't go through anymore and then the schedulers go out of sync and everything comes apart. I think a reasonable solution would be to put PTP messages and other control traffic on priority 7. What do you think ?

You mean the priority of multicast frames trapped to the CPU? I believe that setting is held in the HOSTPRIO field within the static config XML. Could you try?

I'll try that and maybe use <ip link add link eth2 name eth2.107 type vlan id 107 egress-qos-map 0:7 ingress-qos-map 7:0> and use that network interface for PTP ?

It depends on what you're trying to do.
My above comment with HOSTPRIO is only applicable if the switch does trap the PTP frames to the CPU (I'm talking about the MAC_FLTRES and management routes mechanism). Within OpenIL this was used to implement the E2E TC, but otherwise no.
Synchronization of eth2 over PTP-unaware switch ports is not quite how things are supposed to work, and that is the reason why the synchronized Qbv demo is packaged the way it is, with PTP running over eth0. Typically you'd want to run the PTP over the swp2/swp3/swp4/swp5 SJA1105 netdevices themselves, and the Linux driver would install the multicast trapping and forwarding rules, and collect timestamps for trapped PTP frames. This way, the timestamps given to the servo would actually reflect further propagation delays such as those incurred by Qbv.
But this is not something that is packaged into OpenIL for SJA1105.
Then with Qbv you'd have to consider the effect of asymmetrical path delays, and figure out a way to only send PTP messages in-band with the Qbv window, so as to avoid these delays.
I am unclear whether you are using the patched OpenIL linuxptp for this test, or your gptp rewrite that you just linked to.

I'm using OpenIL with a custom gptp (802.1AS) with an interface layer to the SJA1105. The packets are sent via eth2.107 and timestamps retrieved over SPI using libsja1105, so there is only 1 cable between the switches. The LS1021A is not synced at the moment.
Getting the forwarding rules to work was a bit tricky, but fortunately there was some example code on the OpenIL Github repository. It seems like some delay on PTP packet egress is not a problem, it just takes longer to retrieve the timestamp.

FYI in the upstream PTP driver for SJA1105 i ended up implementing timestamping based on the free-running counter: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/tree/drivers/net/dsa/sja1105/sja1105_ptp.c
I plan on configuring the time-aware scheduler some time in the future using the tc-taprio offload submitted by Vinicius Costa Gomez in net-next. Actually there has been some activity on the Synopsys stmmac driver already and that can be used as an example on how to interact with this qdisc: https://lkml.org/lkml/2019/6/18/522.
Of course, right now there are no operations on the PTP hardware clock in the upstream driver yet, and those are a must if you're going to use Qbv... This is just a heads up in case you want to submit some of your work to Linux.


RP2040 MicroMod w/ MicroMod Lora infinite loops

Multiple places either crash or have garbage values on the MicroMod Lora and RP2040 processor board.
So far, I have narrowed down a single problem area (though I know that there are more than that):

endPacket() will infinite loop, effectively crashing the pico (note: in async mode, it doesn't enter an infinite loop, but I have not verified if it sends data or not)

Hardware: using MicroMod RP2040 with MicroMod Function Lora. This is in function board slot 0.
the tutorial on how to use it (which unfortunately uses the mbed core for the rp2040, which I don't want to use): https://learn.sparkfun.com/tutorials/1w-lora-micromod-function-board-hookup-guide/all#peer-to-peer-example
I am for sure (checked it like 3 times) that the pins are defined properly in my code - https://github.com/Python380/RP2040MicroModLoRa. Sorry for not making a fork (didn't think I would need to)

Hi @Python380
Can you try reading the value of the REG_IRQ_FLAGS Register and check if appropriate flags are set correctly?
Also, please share the code snippet you are running, or are you using an example code? I'll try if I can recreate the issue.
For other issues, I wrote the code using pico-sdk which handles printf function differently. Check the solution mentioned in this post once, if it solves your issue.
If you are able to solve the issue, please create a pull request so it no one else faces any issues.

In the repo I mentioned in the issue, I am using the sender and receiver examples, both of which are modified in ways I probably haven't documented. The main library has also been modified slightly (I can't remember what I changed and what I didn't in the main library)

I am starting my radios at 915E6, could you explain why the preset was 500E6?
Do you have examples of what the SPX1276 registers should look like?

sorry - SX1276

The data sheet that I found seems to indicate that the module is in standby...
register 0x01 = 0x81 = 0b10000001

bit 7: LoRa: 1
bits 6-5: Modulation: FSK
rsvd
bit 3: low frequency: 0
bit 2-0: mode: 001 (standby)

**

**
Is this normal?

Or in LoRa specific section, its the same outcome, but some bits mean different things:

All of the register addresses are the same as datasheet - can't really find anything else out of the ordinary...

Got transmit to supposedly work... My module required some additional changes to the code. It has RX & TX trigger/enable pins to make the module transmit and/or receive.
Unfortunately, I was unable to get receive to work properly yet.

known good Arduino MBed core code does not receive transmissions

Some people were having issues with RX coz the printf type handling wasn't correct and was seeing garbage data when reading.

Fixing the printf type handling didn't help...


[topgen] Support for unmanaged external resets

Tops may specify resets that are completely managed externally, i.e., with a dedicated reset manager in the uncore environment of an integrated OpenTitan. Feeding that reset to the internal reset manager is not necessary and just adds complexity in the configuration.
To address this, this PR introduces support for unmanaged external resets, allowing them to operate independently from the internal reset manager. To define an unmanaged reset, simply add an entry to the top-level unmanaged_resets list. Once defined, these resets can be used like any other reset for IP instantiation and crossbar mapping.
Additionally, when routing IP alerts to the alert manager, the alert manager requires a reset status signal to know if the reset for the alert’s IP is currently active. For unmanaged external resets, it's assumed that the top-level external environment already has knowledge of the reset status. Topgen creates a dedicated LPG for every external reset. The reset status signal is routed at top-level and connected to the associated group to the alert manager.

@andreaskurth @rswarbrick Thanks for the review. I updated the PR accordingly.

CHANGE AUTHORIZED: hw/top_earlgrey/data/top_earlgrey.hjson
Only a comment is added; no functional change.

CHANGE AUTHORIZED: hw/top_earlgrey/data/top_earlgrey.hjson
Only a comment is added; no functional change.


Implement XX key agreement protocol

https://github.com/ockam-network/proposals/issues/14

 Implement XX key agreement protocol in C


Fixed incorrect yaml code formatting in tutorial.md

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: mrdfuse sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

@mrdfuse what's the problem with YAML formatting here? Just see a few spaces being added to the YAML spec?

@asridharan without those spaces the code block didn't format correctly:

@asridharan without those spaces the code block didn't format correctly:

@mrdfuse sorry didn't follow, what didn't format properly? The markdown rendering?

? I have included a screenshot of how it looks like now, the entire code is rendered OUTSIDE the code area in one continuous line, instead of formatted content inside the markdown area.

@mrdfuse sorry for the back and forth and but not sure where you are seeing the rendering. On Github it looks fine:
https://github.com/Azure/application-gateway-kubernetes-ingress/blob/master/docs/tutorial.md
and it also looks fine on github pages:
https://azure.github.io/application-gateway-kubernetes-ingress/docs/tutorial.html
Are you seeing this in a different browser? A bit odd the screen shot you are describing.

I'm seeing the same as @mrdfuse. This is my screen on the github page.

I'm using Chrome.


Error: Error building site: TOCSS: failed to transform "css/style.scss" (text/x-scss): "D:/shekharverma/themes/FixIt/assets/css/_core/_common.scss:58:23": Undefined variable: "$orders".[BUG] Some problem ...

Describe the bug 描述你遇到的错误
I Updated to latest version of your theme but got this error when running command "hugo server"
I commented
@each $key, $value in $orders {
  .order-#{$key} {
    order: #{$value} !important;
  }
}

in file /themes/FixIt/assets/css/_core/_common.scss and it worked
Expected behavior 期待的行为
Hugo server will be able to run without any error
Screenshots 屏幕截图

Build Environment 构建环境

OS : windos 10
Theme version 2.17 release
Hugo Version - hugo v0.108.0-a0d64a46e36dd2f503bfd5ba1a5807b900df231d+extended windows/amd64 BuildDate=2022-12-06T13:37:56Z VendorInfo=gohugoio

Preview Environment 预览环境
No response
Additional Information 补充信息
No response

Please check if this file is included in your project: assets/css/_partials/_maps/_utilities.scss. Or could you show me your project source code?

Yes , the file is their in the source code.
But its still showing this error

Yes , the file is their in the source code. But its still showing this error

I'm sorry:(, I can't reproduce this bug.

This is the error i'm getting now
But the same config file and contents folder is working on the older version of FixIt theme.
Can you please help me with fixing this issue

if your using FixIt version >=v0.2.17, you should change the parameter footer.siteTime of your config as below:
    [params.footer.siteTime]
      enable = false
      animate = true
      icon = "fa-solid fa-heartbeat"
      pre = ""
      value = "" # e.g. "2021-12-18T16:15:22+08:00"

It fixed the footer related error but the orignal issue remains the same.

The issue was due to my custom CSS. It was confilicting with the same.
It's resolved now
Thankyou


#3691: Add moreh_adam op to tt_dnn

This PR implements adam operation to tt_dnn library. (Related issue : https://github.com/tenstorrent-metal/tt-metal/issues/3691)

Dear code owners (@mywoodstock , @davorchap , @tt-aho , @TT-BrianLiu),
could you please take some time to review the PR?
Thank you very much in advance for your time and support.
CC. @razorback3 , @ilkoo-lee


Configure Dependabot version updates

Why:
To keep our dependencies up to date.
What's being changed:
This configures Dependabot version updates
for both Bundler and npm dependencies in this repo.
When merged, Dependabot will check for npm packages and ruby gems that can
be updated, and open up pull requests for these.
Check off the following:

[ ] All of the tests are passing.
[ ] I have reviewed my changes in staging.
[x] For content changes, I have reviewed the localization checklist
[x] For content changes, I have reviewed the Content style guide for GitHub Docs.

Thanks for the PR @jurre! I'll send it over to @github/docs-engineering to review 🌟

Hi @jurre 👋🏼
Thanks for taking the time to open this pull request. Earlier this year we used Dependabot on this project for a month or two, but found the updates to be more noisy than useful, and we ended up removing it from the project. Now we only get Dependabot updates for dependencies that have security vulnerabilities.
I'm going to close this pull request, as I don't think it's what the project needs right now. If you want to discuss this further, please open an issue. I'd be happy to brainstorm about how we can keep our deps up to date without creating too much churn.


Add flatpickr's dark theme.

We have three reasons for including the theme in this manner:

With the timestamp feature, flatpickr will be more regularly
visible to the users.
Flatpickr CSS is not scoped so we cannot fiddle with the classes
to change the theme without changing any CSS when running the
app. See https://github.com/flatpickr/flatpickr/issues/2168.
We do not actually support SCSS, so we cannot use nested imports
to scope the CSS without copying it.

We eventually want to remove the static/third/flatpickr directory.
Fixes #10607.
Also, we add a commit to reload webpack when postcss config is changed.

Testing Plan:
Manual testing.
GIFs or Screenshots:

We do not actually support SCSS, so we cannot use nested imports
to scope the CSS without copying it.

Is this something we can change?  It would be much nicer if we could write it this way:
body.night-mode {
   # import flatpickr dark theme
}

I'm trying to do that (again) but not succeeding. Here's what I have:
@use postcss-import();
@use postcss-prefixwrap("body.night-mode");
@import "../../../node_modules/flatpickr/dist/themes/dark.css";

Which should work in theory, but its proving tough to debug. I tagged this as [WIP] after it looked like this new approach can work.

@timabbott This feels good to me. We didn't have to copy any of the CSS anywhere. Only our postcss config looks bigger now, but its still easy to read so I think this is a good path forward.
I still think we should advertise that we don't actually use scss.
https://twitter.com/postcss/status/661645290622083073?lang=en suggests using .pcss as the extension, and I just want to use anything other than css/scss so it is obvious to anyone looking at the code that there is something else at play and they dig around the docs or ask on chat when stuck instead of wondering why their changes to include some scss feature are not working and not throwing any error either.

@andersk what do you think about this version?

@andersk @timabbott this version handles the media query bit too and well enough that we can revert a previous commit that moved pygments dark styles to night_mode.scss. #15554 was the original issue for that.
I couldn't find any plugin that just appended a raw block and that felt like the most general solution here, so I published https://www.npmjs.com/package/postcss-raw-append for our use.
I also added some tests for our resulting config. We can advertise these tests in our dev docs too for testing small bits of CSS and seeing what the output is.

Replaced with #19550. We might reimplement the unit tests part of this PR some other time.


Search History Persisted

Is there any way to persist the search history? It's frustrating to have to re-type in a query each time.

Currently, there is no such a way.
You can try let g:Lf_RememberLastSearch = 1 to see if it meets your requirement.


validation set

Hi!
I started training your model on my data, and after some reserach I did not manage to understand how the validation set should be made in terms of directories! I know it's timm library, but I was wondering if you could help me.
My training data il like this: -/train/0/class1/ .....jpeg
class2/ .....
class3/....
class4/....
How and where should I position my validation folder?

Hello,
The default is val/, but it can be overridden using the --val-split argument.


Loading brainreg directories fails with napari 0.4.18rc2

With napari==0.4.18rc2, specifying a specific reader:
viewer.open(file, plugin="brainglobe-napari-io.brainreg_read_dir_standard_space")

gives
ValueError: There is no registered plugin named 'brainglobe-napari-io.brainreg_read_dir_standard_space'.
Names of plugins offering readers are: set()

This prevents data from being loaded, and thus the whole plugin from working. I've asked on the napari zulip if there's a solution.

https://github.com/napari/napari/issues/6012

Fixed by https://github.com/napari/napari/pull/6013 and works in napari==0.4.18rc3


Viosock: Fix Socket Reference Management

The Socket driver stores socket-related data in memory associated with file objects representing the sockets. It uses WdfObjectReference/WdfObjectDereference to track ownership and protect sockets being in use from deletion. However, these routines do not affect reference count of the underlying FILE_OBJECT structures (served by Object Manager) -- they work only with the reference count of the WDF object wrapped around the FILE_OBJECT structure. Thus, when the underlying FILE_OBJECT is deleted, WdfObjectReference does not protect the socket context from deallocation.
This commit fixes this issue by introducing VioSockReference and VioSockDereference which also work with reference count of the wrapped FILE_OBJECT structures. Also, VioSockClose is replaced with VioSockCleanup – the latter one is invoked when the last handle for a file object (FILE_OBJECT, not WDFFILEOBJECT) gets closed (the former one is invoked when the last reference is gone -- which does not happen if VioSock(De)reference are used). For usermode, this makes no difference since user applications work only with handles, not pointer references to file objects.

I ran into some issues during the second day of testing (all worked fine before that), thus, I suspend this PR until I resolve the problems.

I ran into some issues during the second day of testing (all worked fine before that), thus, I suspend this PR until I resolve the problems.

The issues were not related to this bug, thus, I mark this as ready to merge. I did no changes to the code or commit message, just the branch was moved above the master.

Waiting for CI to pass before merging