Please provide a sample code for python

Please provide a sample demo code in python how to use it to connect to trading API.
I want to build automatic order placing based on time and indicators.
Thanks,
Subash

Hi Subash..!!
We have developed two python packages for connecting to trading APIs. You can explore both of them.
The pypi package can be found at https://github.com/IIFLSecurities/TradingAPIs/tree/master/IIFLapis and https://pypi.org/project/IIFLapis/.
The python Django module can be found at https://github.com/IIFLSecurities/TradingAPIs/tree/master/python
You can use the package you are comfortable with. They have instructions in Readme.md file for setting up.

hello, sir installed IIFLapis but could not find keys.conf file. please advice

Dear @preetparm,
For Django version, you can follow below mentioned steps:

Install Python (Refer https://www.python.org/downloads/).
Download Django code into your directory.
Install requirements through command: pip install -r requirement.txt (This command should be run at the location where requirement.txt is located)
After successful installation, run the application by command: python manage.py runserver  <IP_ADDRESS>:8000 (this command should be run at the location where manage.py is located)
Import insomnia.json file into the insomnia. (This step has pre-requisite. You need to have insomnia installed in your system)
If you want to run the apis directly without insomnia in your environment, you can use URLs structured like localhost:8000/api/LoginRequestV2/. Base URL will be localhost:8000/api/ for all the APIs. Only method name will change in the URL. For reference, please go through insomnia.json (https://github.com/IIFLSecurities/TradingAPIs/blob/master/python/Insomnia.json).


[2.3] Notify acts oddly

When creating an entry, the notification displays correctly, and then the colour fades out after a given amount of time.
The message remains at the top of the screen however. This looks odd as the textis styled for a green background and is being displayed on a grey one.
Is the notification supposed to be removed, or the colour supposed to remain?

Both, text and background colour are supposed to be changed – exactly the same way as in Symphony 2.2. The implementation changed and is now CSS3 based.
Which browser are you using?

Chrome 16

I'll check that next week.

Confirmed, I can reproduce in Chrome 17, but not Firefox 10.0.2. See screenshots:

This bug is quite strange:
Everything works fine using the latest version of Safari, but I can partly confirm the bug using Chrome 17: For some reasons the styles get applied to some links but not to all. I'm not sure why this is happening at all – will have to check, if there are known issues with one of the Webkit versions.

Okay, I did a bit of research and this is a known Chrome bug – everything works as expected in the latest development builds which should be publicly released before Symphony 2.3. So we just have to wait.
Closing this issue.


Make exporters be polled concurrently

This PR does following:

concurrent exporters poll
if one of the exporters is down, it's being ignored with log entry
HTTP timeout set to 10 seconds instead of the default value which is undefined
removed error 500 reporting since now the only case when it can be returned is during metrics decoding and it's not gonna work since by that time the data is already been written (can't write headers when data is already sent)

Seems to be fixing https://github.com/rebuy-de/exporter-merger/issues/5

What do you think about exposing an metric, which says if the scrape succeeded?

What do you think about exposing an metric, which says if the scrape succeeded?
Well, i'm not really familiar with prometheus/client_model/go library so you can do it after the PR is merged.

Also, it would be a good idea to add logging level and http timeout as a config variables afterwards.

Puh, the tests fail because the order is not fixed anymore, right?

Puh, the tests fail because the order is not fixed anymore, right?

I have no clue why tests are failing.. This build totally works for me in my system

This is a race condition, because the metrics might get appended in any order and the test checks the exact output. We need to fix the test.

This is a race condition, because the metrics might get appended in any order and the test checks the exact output. We need to fix the test or make sure the order is stable.

I would suggest leaving metrics unsorted (since the ordering doesn't bring any value except for the sake testing) and adjust tests instead..

I modified the test so now it just checks metrics values one-by-one, hence being independent on their order.

Thank you @phsm !

I created a new release: https://github.com/rebuy-de/exporter-merger/releases/tag/v0.3.0


Permanent notification missing in 1.40.1

This is likely due to the switch to target API level 26, the notifications API page mentions that a channel and icon is now required.
(reported via email)

This should be fixed by commit 6ec1f005c94b58f92ea92d470a27d5ce8cf009ae which is included in the current alpha 1.40.3.

My android phone is missing the permanent notification icon that used to force the keyboard to appear...I rely heavily on this app..any ideas how to fix this?

Please try the 1.40.4 alpha, it's fixed in that. You can opt in at
https://play.google.com/apps/testing/org.pocketworkstation.pckeyboard , or
wait a day or two for that to be released.
On Sat, Nov 24, 2018, 19:54 evilvertigo<EMAIL_ADDRESS>wrote:

My android phone is missing the permanent notification icon that used to
force the keyboard to appear...I rely heavily on this app..any ideas how to
fix this?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/klausw/hackerskeyboard/issues/678#issuecomment-441413386,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABU-3xsAkN9-yWzNN7MHIbM3WoodZz2hks5uyhR1gaJpZM4YsKta
.

Ok..I opted in to the alpha just waiting for the update I guess

So a heads uo with the alpha, if you hit ckear notifications, the icon disappears, you then must open hackers settings, unclick permanent notification, the reclick it to get it it reappear

Oops. Please try v1.40.5, the disappearing notification should be fixed in that.


panic at gps/vcs_source:301

What version of dep are you using (dep version)?
devel@2b7a08040ebc4699bfbd38128e9887eeb3092168
What dep command did you run?
dep init
What did you expect to see?
It should run fine
What did you see instead?
vsmirnov@C02PK283FVH6 ~/go/gopath_third_party/src/gitlab.[somecompany]/[some]/[repo] $ ~/go/gopath_third_party/src/github.com/golang/dep/cmd/dep/dep init
panic: runtime error: slice bounds out of range

goroutine 91 [running]:
github.com/golang/dep/gps.(*gitSource).listVersions(0xc420422110, 0x1771200, 0xc4203981e0, 0xc4204b4900, 0x10127b8, 0x10, 0x14aaee0, 0xc4204b4901)
	/Users/vsmirnov/go/gopath_third_party/src/github.com/golang/dep/gps/vcs_source.go:301 +0x1392
github.com/golang/dep/gps.maybeGitSource.try.func1(0x1771200, 0xc4203981e0, 0x1770f00, 0xc420063340)
	/Users/vsmirnov/go/gopath_third_party/src/github.com/golang/dep/gps/maybe_source.go:97 +0x71
github.com/golang/dep/gps.(*supervisor).do(0xc420067140, 0x1770f40, 0xc42001c040, 0x151aeca, 0xc, 0x1, 0xc4204b4a68, 0xc42050c038, 0x0)
	/Users/vsmirnov/go/gopath_third_party/src/github.com/golang/dep/gps/source_manager.go:657 +0xd5
github.com/golang/dep/gps.maybeGitSource.try(0xc42009ac80, 0x1770f40, 0xc42001c040, 0xc4200195f0, 0x2d, 0x1773d60, 0xc420398190, 0xc420067140, 0x30, 0x30, ...)
	/Users/vsmirnov/go/gopath_third_party/src/github.com/golang/dep/gps/maybe_source.go:95 +0x20f
github.com/golang/dep/gps.(*sourceGateway).require(0xc420254480, 0x1770f40, 0xc42001c040, 0x1, 0x50, 0x0, 0x0)
	/Users/vsmirnov/go/gopath_third_party/src/github.com/golang/dep/gps/source.go:571 +0x210
github.com/golang/dep/gps.(*sourceGateway).sourceURL(0xc420254480, 0x1770f40, 0xc42001c040, 0x0, 0x0, 0x0, 0x0)
	/Users/vsmirnov/go/gopath_third_party/src/github.com/golang/dep/gps/source.go:539 +0xb5
github.com/golang/dep/gps.(*sourceCoordinator).getSourceGatewayFor(0xc420181ab0, 0x1770f40, 0xc42001c040, 0xc42001a410, 0x1f, 0x0, 0x0, 0x0, 0x0, 0x0)
	/Users/vsmirnov/go/gopath_third_party/src/github.com/golang/dep/gps/source.go:205 +0x9f7
github.com/golang/dep/gps.(*SourceMgr).SyncSourceFor(0xc4200671a0, 0xc42001a410, 0x1f, 0x0, 0x0, 0x0, 0x0)
	/Users/vsmirnov/go/gopath_third_party/src/github.com/golang/dep/gps/source_manager.go:501 +0x82
github.com/golang/dep/gps.(*bridge).SyncSourceFor(0xc420256210, 0xc42001a410, 0x1f, 0x0, 0x0, 0xc42016b180, 0x1a)
	/Users/vsmirnov/go/gopath_third_party/src/github.com/golang/dep/gps/bridge.go:222 +0x5b
created by github.com/golang/dep/gps.(*solver).selectRoot
	/Users/vsmirnov/go/gopath_third_party/src/github.com/golang/dep/gps/solver.go:644 +0x614

Some extra information:
I've got custom ~/.gitconfig, it contains:
[url "git@gitlab.[somecompany]:"]
    insteadOf = https://gitlab.[somecompany]/

As a recommended workaround for corporate gitlab which requires ssh access to clone repos.
I've added a debug print before that line: fmt.Printf("SIZE: %v, LINE: %+v\n", len(pair), string(pair))
What I see just before panic:
SIZE: 59, LINE: 6cae4212beea4eeb8576347acac6418910cfda0f	refs/pull/99/merge
SIZE: 20, LINE: Killed by signal 1.

(Killed by signal 1 comes from ssh-proxy on a jump host).
If I add following code before 301 it works as expected:
                if len(pair) < 41 {
                        fmt.Printf("BUGBUG: strange pair version: '%v', len=%v\n", string(pair), len(pair))
                        continue
                }

It prints out:
', len=20trange pair version: 'Killed by signal 1.

I'm not sure that skipping this malformed line is the best way to workaround that panic. I also have no idea where it comes from.

If that matters, host os:
MacOS X 10.12
git 2.11.0 (gentoo-prefix)

Yup, it tried to parse 'Killed by signal 1' that comes from ssh-proxy and gets panic at that point

So what the actual problem is:

https://github.com/golang/dep/blob/master/gps/vcs_source.go#L244-L257 - you do git ls-remote.
I have an environment that uses ssh-proxy through jump host and because how it's configured I always see "Killed by signal 1" in stderr from ssh. But error code is 0.
You are getting both stderr and stdout output
There is no sanity check on line 301 that what you got from ls-remote is actually commit hashes.

So either there should be a check before line 301 that output can be parsed or stderr should be ignored.

What is better - ignore malformed string or ignore stderr of git ls-remote?

Linking to #1209

@Civil i suspect the ideal case here is only looking at stdout. i think that may be a bit tricky in our current design, though.
@jmank88 i wonder if maybe we should use io.MultiWriter to record stdout and stderr both independently and together in three distinct buffers, so that we have the flexibility to use whatever we think we may need when it comes to error reporting but can also have the option of returning only stdout for cases like this.
that wouldn't be the only solution to this, but it's the only one i can think of that doesn't involve more methods and indirection. i think i'd be fine trading memory space for logical complexity at this point.


display --focus stops working if a stack is used on the display

Hey guys. For some reason I can not focus a display anymore when a stack is created on it.
Focus just resets when I use yabai -m display --focus n, I have borders enabled, no windows is highlighted after the command. Anyone can replicate? I also you stackline with stacks. It starts working again once the stack is destroyed.

Okay, just tried disabling hammerspoon + stackline, they are causing the issue.

Okay, just tried disabling hammerspoon + stackline, they are causing the issue.


Investigate and reduce memory usage

Ammonite uses about 3x the memory usage of the default Scala REPL: starting at 400mb instead of 150mb, and growing significantly faster as well to >700mb while the normal REPL grows to >250mb as commands are entered
It's expected to take more memory, but 3x is a bit too much. There are probably low-hanging fruit to pick in bringing that number down

Turns out that just adding a memory limit is enough to stop a greedy JVM using more and more RAM:
Before:

After -Xmx512M:

We could probably set the limit much lower, (200mb?) as long as there's an "easy" way to bump up the number when necessary

Using the new G1 collector keeps the memory usage under control while still scaling without an upper limit where necessary:
Before:

After -XX:+UseG1GC:

And here's the result of the default collector, using System.gc() after every command:

The test input for all these trials is as follows
123
123
12
312
3
123
123
12
31
23
123
123
123
12
31
23
123
123
123
213
123
123
123
12
31
231
23
123
123
123
123
12
31
23
123
123
123
123
12
3
Array.fill(4000000)(100000)
123
123
12
312
3
123
123
12
31
23
123
123
123
12
31
23
123
123
123
213
123
123
123
12
31
231
23
123
123
123
123
12
31
23
123
123
123
123
12
3
Array.fill(4000000)(100000)
123
123
12
312
3
123
123
12
31
23
123
123
123
12
31
23
123
123
123
213
123
123
123
12
31
231
23
123
123
123
123
12
31
23
123
123
123
123
12
3
Array.fill(4000000)(100000)
123
123
12
312
3
123
123
12
31
23
123
123
123
12
31
23
123
123
123
213
123
123
123
12
31
231
23
123
123
123
123
12
31
23
123
123
123
123
12
3

Closing this as "good enough" with https://github.com/lihaoyi/Ammonite/commit/20138f5b5850e895df208d15bb1a0d06862503d2. Looks like we're looking at maybe a 20% heap-size-overhead and 40% OS-footprint-overhead over the default Scala REPL:

Which is probably good enough for now. The in-build Scala REPL processes the inputs about 4x as fast as Ammonite does, so there's clearly perf work to be done, but the memory consumption should be good enough for now


Request for the script to generate kmeans_navsim_traj_20.npy

First off, congratulations on the great work and thank you for sharing your code with the community.
I'm looking to get DiffusionDrive up and running, and I see that it requires a file called kmeans_navsim_traj_20.npy. Would you be able to share the script you used to create this file? I'd really like to understand how it's generated.
Thank you in advance for any help you can provide!

I mainly refer to SparseDrive implementation, but things change in NAVSIM. Since NAVSIM does not cache the annotation with a single file. So you need to first loop for the dataset to cache the annotation and then perform clustering.
It may take me a while to reorganize my dirty implementation for better clarification and usage, you can implement it in your own way with the above reference.


Error: Creating temporary solution wrapper, when trying to push pcf to environment

when trying to push a pcf with the command 'pac pcf push -pp shi' from a zsh terminal in VS code OSX arm version it fails. In the log it says:
2023-09-07 12:34:16.0749 | INF | bolt.cli.CommandLine.VerbBase :: with arguments: /Users/jorgenjorgensen/Library/Application Support/Code/User/globalStorage/microsoft-isvexptools.powerplatform-vscode/pac/.store/microsoft.powerapps.cli.tool/1.26.6/microsoft.powerapps.cli.tool/1.26.6/tools/net6.0/any/pac.dll solution init --publisher-name PowerAppsToolsPublisher_shi --publisher-prefix shi
2023-09-07 12:34:16.1931 | ERR | bolt.cli.CommandLine.VerbBase :: Could not execute because the specified command or file was not found.
The pac.dll is in the folder its trying to access. It could be the 'Application Support' with a space in it that is causing the error, but I cant find where to change this variable.

Can you give a little bit more details about your machine? It looks like Unix or Mac?

Can you give a little bit more details about your machine? It looks like Unix or Mac?

Sorry yes! It's a MBP M1 running OSX 12.2.1 . I've tried running VS code in both ARM version and x86 with rosetta with the same result.
Thank you for your reply!

thank you for reporting. This is going to be fixed in next version 1.28

Nice! Thank you!

Have you found any temporary workaround for it?


PHPCR-ODM ?

hi,
how to use this bunlde with a PHPCR-ODM document ?

Gedmo: https://github.com/Atlantic18/DoctrineExtensions/issues/1203
Knp: https://github.com/KnpLabs/DoctrineBehaviors/tree/master/src/ORM
Prezent: https://github.com/Prezent/doctrine-translatable-bundle/search?utf8=✓&q=phpcr&type=
A2lix: https://github.com/a2lix/I18nDoctrineBundle/search?utf8=✓&q=phpcr&type=
Since we rely on those 4, and none on them seems to support PHPCR-ODM, I guess you can't atm.
Closing this issue.
I guess first some of them should support it, before it makes sense to add it here. If you still think this is an issue for this bundle, please ping me to reopen


Fix dragger on touch devices

Closes #162

Here is an example that uses a patched version of goog.fx.Dragger: http://erilem.net/ngeo/dragdrop/layerorder.html. goog.fx.DragListGroup is used really in this example.

Any chance to see this merged? Is there anything else I can do?

I'll see if I can find someone who knows more about touch events than I do. It would probably also help if the commit description was more detailed: Fix it how? What was broken about it? etc.

@MatrixFrog, thanks. I rebased the commit onto the latest master, and I added a more detailed description of the problem and of the solution in the commit message. I hope this helps.

@MatrixFrog, out of curiosity,  did you finally have someone else review this?

No, I ended up reviewing it myself. I'm not an expert on this stuff but it seems pretty clear that you know what you're doing. Having a good commit description is very helpful :)
Sorry for the delay, thanks for your patience.

No problem, I know what it is.

long ago goog.labs.events.touch was introduced to merge our touch/pointer handling. I would hope that we could start solidifying on that.

@elemoine @MatrixFrog I don't have hard evidence for you, but I've just tested this for my closure project and dragging now works on iOS 7, but not on iOS 8. Any thoughts?

This is probably related: http://developer.telerik.com/featured/scroll-event-change-ios-8-big-deal/

long ago goog.labs.events.touch was introduced to merge our touch/pointer handling. I would hope that we could start solidifying on that.

I agree that a better event architecture integrating touch/pointer handling would be a good thing.

@mtsgrd is there any error messages from Safari?
I suspect https://bugs.dojotoolkit.org/ticket/18168#comment:4

Thanks @fredj. I'll have a look.


Fix NSOne DNS Provider

Fix NSOne DNS Provider
Description

handle mx records
handle root domain

Status

done, ready for review

Checklist (tick everything that applies)

[x] Code linting (required, can be done after the PR checks)
[x] Documentation
[ ] Tests
[ ] ICLA (required for bigger changes)

Thanks for the contribution and sorry for the delay.
The change looks good to me, but it would be great if you could add corresponding unit tests.

hey, sorry for the delay. I was busy with other things ... anyway I added 3 tests and renamed type_ back to type. do we need to do anything else?

@Kami gentle ping


vscode tensorboard on remote server not able to Download Current Chart as SVG

When I try to download the scalar charts in TensorBoard by first checking the "Show data download links" box and then clicking on the download icon on the chart and selecting Download Current Chart as SVG, nothing happens and no new files are created in the directory. Similarly, the "run to download" menu with csv or json doesn't work.
Maybe related, the ? icon on the top right also does not respond.
Excited for the fix because these features are great!
VS Code version: Code 1.60.1 (83bd43b, 2021-09-10T17:06:57.931Z)
OS version: Linux x64 5.11.0-34-generic snap
Restricted Mode: No
Remote OS version: Linux x64 3.10.0-1062.18.1.el7.x86_64
Remote OS version: Linux x64 3.10.0-1062.18.1.el7.x86_64

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (8 x 2000)

GPU Status
2d_canvas: unavailable_softwaregpu_compositing: disabled_softwaremultiple_raster_threads: enabled_onoop_rasterization: disabled_offopengl: disabled_offrasterization: disabled_softwareskia_renderer: enabled_onvideo_decode: disabled_softwarevulkan: disabled_offwebgl: unavailable_softwarewebgl2: unavailable_software

Load (avg)
1, 1, 1

Memory (System)
15.52GB (3.92GB free)

Process Argv
--no-sandbox --force-user-env --unity-launch --crash-reporter-id 09889aea-dff4-45a4-8c0b-7ecc3bf3592e

Screen Reader
no

VM
0%

DESKTOP_SESSION
ubuntu

XDG_CURRENT_DESKTOP
Unity

XDG_SESSION_DESKTOP
ubuntu

XDG_SESSION_TYPE
x11

Item
Value

Remote
Container <IP_ADDRESS>/library/tfnightly-gpu-py3:yelena (sleepy_jennings) @ ssh://<IP_ADDRESS>

OS
Linux x64 3.10.0-1062.18.1.el7.x86_64

CPUs
AMD EPYC 7302 16-Core Processor (32 x 1500)

Memory (System)
188.62GB (12.10GB free)

VM
0%

Item
Value

Remote
Container <IP_ADDRESS>/library/py3.7-torch1.7:yelena (yb_dino3) @ ssh://<IP_ADDRESS>

OS
Linux x64 3.10.0-1062.18.1.el7.x86_64

CPUs
AMD EPYC 7302 16-Core Processor (32 x 1500)

Memory (System)
188.62GB (12.10GB free)

VM
0%

Extensions (20)

Extension
Author (truncated)
Version

anaconda-extension-pack
ms-
1.0.1

python
ms-
2021.9.1246542782

vscode-pylance
ms-
2021.9.3

jupyter-keymap
ms-
1.0.0

remote-containers
ms-
0.194.0

remote-ssh
ms-
0.65.8

remote-ssh-edit
ms-
0.65.8

remote-wsl
ms-
0.58.2

vscode-remote-extensionpack
ms-
0.21.0

gitlens
eam
11.6.0

latex-workshop
Jam
8.20.2

anaconda-extension-pack
ms-
1.0.1

python
ms-
2021.9.1246542782

vscode-pylance
ms-
2021.9.3

jupyter
ms-
2021.8.2041215044

jupyter-keymap
ms-
1.0.0

autodocstring
njp
0.5.4

vscode-yaml
red
0.22.0

html-preview-vscode
tht
0.2.5

pdf
tom
1.1.0

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspyt653:30270858
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805cf:30301675
pythonvspyt200:30340761
vscextlangct:30333562
binariesv615:30325510
vsccppwt:30364497
pythonvssor306:30344512
bridge0708:30335490
pygetstartedt2:30360495
dockerwalkthru:30370836
bridge0723:30353136
pythonrunftest32cf:30365367
pythonf5test824cf:30361778
javagetstartedt:30364666
pythonvspyt187:30365361
pydsgsc2:30361791
vssid140cf:30363604
vssur157:3036780
![Screenshot from 2021-09-23 10-28-16](https://user-images.githubusercontent.com/5349813/134555446-ca0e34b9-aafa-40ac-8914-c1cb63c5019a.png)
8

Thanks for the bug. We likely need to reroute click events to VS code.

Any update on this?

For osx you can workaround this with option+enter while focusing the download button with tab key

Tensorboard isn't on the priority list at the moment, but we accept PRs if somebody else wants to take a crack at it.

As this issue hasn't received enough upvotes and not brought up by other users, we're going to close this issue for now.
If this persists for others as well, please do upvote this issue or create a new issue.


Unable to reach HTTPS endpoint - Keystore generated using pyJKS

I am developing a spring boot app and created a keystore file using pyJKS
I used a certificate, certificate_chain & private key
The keystore.jks file is generated successfully. But when i deploy that in a spring sboot app and try to access the endpoint using curl, i get below error
curl -v -k https://localhost:8181/

timeout on name lookup is not supported
Trying <IP_ADDRESS>...
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connected to localhost (<IP_ADDRESS>) port 8181 (#0)
ALPN, offering h2
ALPN, offering http/1.1
Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
successfully set certificate verify locations:
CAfile: C:/Developer/..../ca-bundle.crt
CApath: none
TLSv1.2 (OUT), TLS header, Certificate Status (22):
} [5 bytes data]
TLSv1.2 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* TLSv1.2 (IN), TLS header, Unknown (21):
{ [5 bytes data]
TLSv1.2 (IN), TLS alert, Server hello (2):
{ [2 bytes data]
error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Closing connection 0
curl: (35) error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error

Below is the code that i use to generate keystore.
cert_file = open("Certificate.txt", "rb")
cert = cert_file.read()
cert_file.close()

cert_chain_file = open("Certificate_chain.txt", "rb")
cert_chain = cert_chain_file.read()
cert_chain_file.close()

private_key_file = open("private_key.txt", "rb")
private_key = private_key_file.read()
private_key_file.close()

certs = []
certs.append(cert)
certs.append(cert_chain)

pke = jks.PrivateKeyEntry.new("test", certs,private_key, 'rsa_raw')
keystore = jks.KeyStore.new('jks', [pke])
keystore.save('./keystore.jks', 'test')

When i use keytool command , generated keystore works fine.
Can someone advise what could be wrong here ?

I see that you are reading the certificates and keys from files named ".txt". In what format are they in? If they are in PEM format, you must decode them first, see my answer here: https://github.com/kurtbrose/pyjks/issues/44#issuecomment-424457347
If they are in binary format, what exception do you get on the Java app?

They are PEM files as text. I m reading as binary.
I don't get any exceptions in java app.
All I find is no ciphers are supported by the server once it is up and running.
All ciphers sent by client or browser is getting rejected in handshake

As I said, you can't load PEM files directly into the JKS keystore. That'll be your problem.
Try to decode them first, and I'm guessing it will work.

let me try that...

thanks @magnuswatn  for you help. this works now
While i am running the python program every time it is asking PASS phrase
Enter PEM pass phrase:
is there a way i can pro grammatically pass the value while generating keystore ?

@magnuswatn  please ignore , i found it.
I would like to add or contribute an example of this to the documentation. is it possible ?

That's not up to me, but if you create a pull request, I'm sure it will be accepted. More documentation is never wrong :-)


Add builder for OAuth1aToken

Motivation:
Related https://github.com/line/armeria/pull/2680#discussion_r416371720
The current implementation for building OAuth 1a token isn't convenient.
Modifcations:

Add OAuth1aTokenBuilder.

Result:

You can now easily create OAuth1aToken.

Thanks a lot, @minwoox

Thanks for reviewing. 😉


Adds getPreviewFromContent() method for using link-preview-js with pre-fetched response object.

Was really wanting to use this plugin within my Cordova (mobile) apps.
What does this "fix"?
The nature of Cordova causes a lot of CORS issues when accessing outside domains from JS used within Cordova apps. In many cases, we use a plugin (e.g. Cordova Http Plugin to access resources outside of the app's whitelisted domains.
How does this fix work?
Creates a new method named getPreviewFromContent in which you pass a pre-fetched Response object vs. the text/url you would otherwise pass in getLinkPreview.
Simply put: this just bypasses the fetch called by getLinkPreview, as the Response object is already provided.
More Information on this PR

Passes existing tests
No new tests written
Tested with a few domains, including Google.com

I'm in a bit of a hurry and would otherwise write more tests for this. I just wanted to get this in front of some eyes so if the idea itself is going to be rejected I don't have to waste my time :)
Thank you for the plugin, it does everything I was looking for!

Can you update the README a bit more, I think it is mentioned in the beginning there is a single method.
Cheers!

Also please specify on the README the shape of the object it is expected to be parsed, I'm sure a lot of people will try to pass every kind of response and will lead to a lot of confusion

Also please specify on the README the shape of the object it is expected to be parsed, I'm sure a lot of people will try to pass every kind of response and will lead to a lot of confusion

Pushed some updates, let me know if you'd like it to be more encompassing. Thanks!

I copied your branch and cleaned up a bit, closing this
https://github.com/ospfranco/link-preview-js/pull/75


IS THERE A SPECIFIC API IN HERE TO SET MY CURRENTLOCATION AS THE REGION?

Is there any specific built-in function for that to return the location?

You can use React Native GeoLocation API.
http://facebook.github.io/react-native/docs/geolocation.html#content


Contributed panels do not appear focused on startup

Open the Comments panel
Reload the window

Fixed in https://github.com/Microsoft/vscode/commit/9eeae44f76145b0bffd48919228b14ded5afbda6


add AVR CRD

This PR is intended to share the AVR CR only.  No need to merge it.  All that is needed for reviewing is this file:
https://github.com/RamenDR/ramen/compare/main...BenamarMk:AVR_CRD?expand=1#diff-1372af2045279aee4b5b4d4452006efbd8fa423af34ff5c7a469d1f09fa3c236

Don't need it anymore


iOS 13 is aligned with macOS 10.15

The Package.swift had misaligned iOS & macOS versions. That's a problem for anything that depends on this as those packages can't usually raise their platform versions as that's SemVer major.

@swift-ci test

@MaxDesiatov
error: 'sourcekit-lsp': package 'sourcekit-lsp' is using Swift tools version 5.10.0 but the installed version is 5.9.0

cc @ahoppen

@MaxDesiatov how can we retrigger the CI?

@swift-ci test

https://github.com/swiftlang/sourcekit-lsp/pull/1776
@swift-ci test


PrintlnFunc is not compatible to fmt.Println

What do you think about PrintlnFunc returning a func compatible to fmt.Println regarding to the return params?
Something like this:
// PrintlnFunc returns a new function that prints the passed arguments as
// colorized with color.Println().
func (c *Color) PrintlnFunc() func(a ...interface{}) (int, error) {
	return func(a ...interface{}) (int, error) {
		return c.Println(a...)
	}
}```

This came up before if you search for the Closed PR's or issues. The problem is that this breaks the API and this package is right now imported by hundreds of other packages. It's like this now forever (until I release a breaking version, which I don't want to right now). Thanks


Add tests

(inspired from anlutro/laravel-settings which is what Akaunting derived their package from)

Thanks Chris


Make available network emulator out of cluster API

Currently you can configure to use network emulator via ClusterConfig.transportConfig.isUseNetworkEmulator, but actually it is not available from cluster API. Define some way to get access to network emulator from cluster API in order to test components which is build on top of cluster.

Done at PR: https://github.com/scalecube/scalecube/pull/131
fyi @ronenhamias


fix disabling swipes mid-swipe

Found this bug while using a Slider inside the deck swiper. As I started to slide, I would also swipe. Solution was to pass up disable swipe event when slider started, but I found that this caused the swiper to freak out and stutter and eventually break. This fixes it

In order to merge this we need to properly QA the change. In order to do that please create a dummy app with the functionality so that the swiper can be tested.


change behavior for remaining kwh

I don't know if I have made the math correct, this language is not what I am used to

Description

new way to calculate remaining kWh
Motivation and Context

If my battery has 30000 Wh and my end SoC is at 10%.
Today it shows eg. 3 kWh when SoC is at 10% which can be misleading.
How has this been tested

I couldn't test it. I tried to change in -js file in HA but it never worked.
Type of change
Please delete options that are not relevant.

[x] New feature (non-breaking change which adds functionality)

Checklist

[x] I have updated the version in package.json following semver

@flopp999  this has been added to https://github.com/slipx06/sunsynk-power-flow-card/releases/tag/v6.2.0


Support zip files with a single log

Thanks for the tool, works nicely.
Do you think you can add support for zip files with a single log file in them ?

I do not make a PR as I don't really know how you want to handle this if you want to do it better.
But https://github.com/Tolriq/CatSpy/commit/4fdcba37db30974593c1950dc5914474d76507fb as an example to support this.

Thanks for the merge.


Freezes in sidebar

Fanny freezes in the sidebar after resume from sleep...
Also darkmode wont work here.

Resolved in https://github.com/DanielStormApps/Fanny/commit/cec8011c7d7f9460afbb530b689594232208bad8 👍


Change Margin Padding Helpers from horz and vert to X and Y

To keep with consistency with XY Grid!

Added milestone for 6.5... but if possible in 6.4.x series then great too!

Makes sense to me - lets do for 6.5 as it requires migration

Ohk cool @kball lets merge it and then cherry pick to 6.5

Done @kball ... I think this is good to go now!

Closing as per https://github.com/zurb/foundation-sites/pull/10625#issuecomment-327888834


Identifiers validation failed for dataset "Biodiversidad en el valle de Cuatro Ciénegas". (Aves)

Identifier validation failed for the dataset "Biodiversidad en el valle de Cuatro Ciénegas". (Aves):

Crawler attempt: 274
Publishing organization: Comisión nacional para el conocimiento y uso de la biodiversidad
Publishing country: MEXICO
Installation: IPTCONABIO
Number of occurrences indexed for this dataset at the time of the issue: 692
Cause: GBIF ID problems exceed 50% threshold: 100% duplicates; 692 total records; 692 absent records
Pipelines execution steps: http://api.gbif.org/v1/pipelines/history/execution/3740014/step

New IDs sample:

Old IDs sample:

0580379cf89e93acd565392a47712f21
07437169bf85421d17ce9e34ccf6965b
0bb92649c8ca12a43e7aafcd4f53d526
0df0e735670f88eafc65cacf1c3eaa32
0e181b12efcae1c3cc85250256221363
0fc7f0807f8b882b7c675ee095e151fd
0fe6e90f8b52c8c498eda666dae29b6f
0ff629c4f1d507795a888809d11896f7
10cd9d2b51c7f5a2f2d5ecb0bef0f681
14334b94eca584d7409a37db12a482b7

Publisher email
Hello,
I am contacting you from the GBIF Secretariat about a dataset published by the "Biodiversidad en el valle de Cuatro Ciénegas". (Aves) : https://doi.org/10.15468/vbisgz.
We noticed that the occurrenceIDs were changed. We have temporarily paused the ingestions of this dataset.
As you might already know, when an occurrence record has a new occurrenceID for a given dataset, our system considers it to be a new occurrence.
This means that it will be given a new gbifid and a new occurrence URL (like this one: https://www.gbif.org/occurrence/1252968762) and the old gbifid and URL will be deprecated.
In this case, this means that the occurrence URLs would be deprecated when ingesting the newest versions of these datasets.
We would like to check with you if those changes were intentional. Do you know if this is the case?
Please let us know, thanks! We are happy to resume the dataset ingestion.
Note that some users rely on those occurrence URLs and gbifids (like https://bionomia.net for example). In an attempt to improve
the stability of the occurrence URLs and gbifids, we have implemented a warning system to detect these type of changes in datasets (see this news item).
If the data publisher can provide us with a list of old and new occurrenceIDs per record, we can avoid the identifier and URL changes. Could that be an option?
Please let us know if you have any question. Thanks!
All the best,

You can skip/fix identifier validation using the registry UI.

Identifier validation still  failing for the dataset "Biodiversidad en el valle de Cuatro Ciénegas". (Aves):

Crawler attempt: 275
Publishing organization: Comisión nacional para el conocimiento y uso de la biodiversidad
Publishing country: MEXICO
Installation: IPTCONABIO
Number of occurrences indexed for this dataset at the time of the issue: 692
Cause: GBIF ID problems exceed 50% threshold: 100% duplicates; 692 total records; 692 absent records
Pipelines execution steps: http://api.gbif.org/v1/pipelines/history/execution/3740983/step

New IDs sample:

Old IDs sample:

0580379cf89e93acd565392a47712f21
07437169bf85421d17ce9e34ccf6965b
0bb92649c8ca12a43e7aafcd4f53d526
0df0e735670f88eafc65cacf1c3eaa32
0e181b12efcae1c3cc85250256221363
0fc7f0807f8b882b7c675ee095e151fd
0fe6e90f8b52c8c498eda666dae29b6f
0ff629c4f1d507795a888809d11896f7
10cd9d2b51c7f5a2f2d5ecb0bef0f681
14334b94eca584d7409a37db12a482b7

Publisher email
Hello,
I am contacting you from the GBIF Secretariat about a dataset published by the "Biodiversidad en el valle de Cuatro Ciénegas". (Aves) : https://doi.org/10.15468/vbisgz.
We noticed that the occurrenceIDs were changed. We have temporarily paused the ingestions of this dataset.
As you might already know, when an occurrence record has a new occurrenceID for a given dataset, our system considers it to be a new occurrence.
This means that it will be given a new gbifid and a new occurrence URL (like this one: https://www.gbif.org/occurrence/1252968762) and the old gbifid and URL will be deprecated.
In this case, this means that the occurrence URLs would be deprecated when ingesting the newest versions of these datasets.
We would like to check with you if those changes were intentional. Do you know if this is the case?
Please let us know, thanks! We are happy to resume the dataset ingestion.
Note that some users rely on those occurrence URLs and gbifids (like https://bionomia.net for example). In an attempt to improve
the stability of the occurrence URLs and gbifids, we have implemented a warning system to detect these type of changes in datasets (see this news item).
If the data publisher can provide us with a list of old and new occurrenceIDs per record, we can avoid the identifier and URL changes. Could that be an option?
Please let us know if you have any question. Thanks!
All the best,

You can skip/fix identifier validation using the registry UI.

Identifier validation still  failing for the dataset "Biodiversidad en el valle de Cuatro Ciénegas". (Aves):

Crawler attempt: 277
Publishing organization: Comisión nacional para el conocimiento y uso de la biodiversidad
Publishing country: MEXICO
Installation: IPTCONABIO
Number of occurrences indexed for this dataset at the time of the issue: 692
Cause: GBIF ID problems exceed 50% threshold: 100% duplicates; 692 total records; 692 absent records
Pipelines execution steps: http://api.gbif.org/v1/pipelines/history/execution/3741620/step

New IDs sample:

Old IDs sample:

0580379cf89e93acd565392a47712f21
07437169bf85421d17ce9e34ccf6965b
0bb92649c8ca12a43e7aafcd4f53d526
0df0e735670f88eafc65cacf1c3eaa32
0e181b12efcae1c3cc85250256221363
0fc7f0807f8b882b7c675ee095e151fd
0fe6e90f8b52c8c498eda666dae29b6f
0ff629c4f1d507795a888809d11896f7
10cd9d2b51c7f5a2f2d5ecb0bef0f681
14334b94eca584d7409a37db12a482b7

Publisher email
Hello,
I am contacting you from the GBIF Secretariat about a dataset published by the "Biodiversidad en el valle de Cuatro Ciénegas". (Aves) : https://doi.org/10.15468/vbisgz.
We noticed that the occurrenceIDs were changed. We have temporarily paused the ingestions of this dataset.
As you might already know, when an occurrence record has a new occurrenceID for a given dataset, our system considers it to be a new occurrence.
This means that it will be given a new gbifid and a new occurrence URL (like this one: https://www.gbif.org/occurrence/1252968762) and the old gbifid and URL will be deprecated.
In this case, this means that the occurrence URLs would be deprecated when ingesting the newest versions of these datasets.
We would like to check with you if those changes were intentional. Do you know if this is the case?
Please let us know, thanks! We are happy to resume the dataset ingestion.
Note that some users rely on those occurrence URLs and gbifids (like https://bionomia.net for example). In an attempt to improve
the stability of the occurrence URLs and gbifids, we have implemented a warning system to detect these type of changes in datasets (see this news item).
If the data publisher can provide us with a list of old and new occurrenceIDs per record, we can avoid the identifier and URL changes. Could that be an option?
Please let us know if you have any question. Thanks!
All the best,

You can skip/fix identifier validation using the registry UI.


Runtime backends should have their service as an attribute / method

What is the expected feature or enhancement?
In many cases external code is wrapping calls to things like backend.run() that need to be replaced with Sampler.  However doing so, and maintaining compatibility is difficult.  Namely, I must change the external API to take a service instance as well.  Instead, it would be nice if the backend instance itself could be used to set the service from which it originated.  In that case the external API can remain unchanged.
Acceptance criteria

@mtreinish Is this something that can be added in qiskit-terra? Similar to the provider property can we have a service property in the BackendV2 class. For this we might have to create service base classes in terra though which I know you weren't in favor of.
The other option is to just expose service as a property in IBMBackend class.


Make container repos public?

I've had discussions with several colleagues now about our container workflow, including Richard Hattersley of the UKMO this morning.  Does anyone mind if we make our docker_base,  docker, and containers repositories public so we can share our process?  jedi-stack is already public.  The containers repo does include the name of our intel license file, but not the file itself.  Similarly for the ssh key used to access GitHub.  I don't think anything else in there is sensitive.

I support it !

In support; a few thoughts based on communication outside of this ticket:

both valuable and appropriate to share software developed as open source
sharing this sort of software may lead to innovation we can utilize

Security concerns:

given how Intel's licensing structure works, this isn't a concern
the ubuntu server gpg key does reduce security, but only for the instance creation of a site-specific container, so no impact to JCSDA

Question: does JCSDA need to license the software (Apache license or similar) as it has done with other software?
If this doesn't countermand any UCAR issues with sharing UCAR-developed, let's provide access and ask to have any improvement pushed upstream.

Thanks @rickgrubin - good point about the license.  I'll add that.  How does the ubuntu server gpg key reduce security?  This is already a public key provided by ubuntu, accessible to anyone.

Ubuntu server gpg key: if someone has access to it, any available software on the server could be obtained and installed.
As it could be used outside of a container and on a physical host, it's possible -- though unlikely -- to download malware'd software, or overwrite existing installed packages.
This wouldn't be an issue for JCSDA, since public keys can be obtained with relative ease. I point it out mostly because I've been on the "you don't need this access" end of things, and I went through the mandatory security training recently, so this popped out to me.

Speaking of Apache, what do you guys know about the 'Creative Commons Zero
1.0 Universal Public Domain
Dedication' ?
Phil.
On Fri, Jun 26, 2020 at 10:12 AM Rick Grubin<EMAIL_ADDRESS>wrote:

Ubuntu server gpg key: if someone has access to it, any available
software on the server could be obtained and installed.
As it could be used outside of a container and on a physical host, it's
possible -- though unlikely -- to download malware'd software, or overwrite
existing installed packages.
This wouldn't be an issue for JCSDA, since public keys can be obtained
with relative ease. I point it out mostly because I've been on the "you
don't need this access" end of things, and I went through the mandatory
security training recently, so this popped out to me.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/JCSDA/containers/issues/34#issuecomment-650263827,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AL5O6HYJHNCZKLZVBTOMM3TRYTCG5ANCNFSM4OISWX7A
.

--
Philip Gibbs
Executive Officer
Joint Center for Satellite Data Assimilation (JCSDA)
t:<PHONE_NUMBER>
c:<PHONE_NUMBER>

I know of the CC license; have not used / encountered it.
Here's a reasonable comparison of licenses that may be applicable:
https://en.wikipedia.org/wiki/Comparison_of_free_and_open-source_software_licences

Yes, we need to review our licenses and make sure they are up to date.  I have no expertise here - I just know what the files say.  For example, the LICENSE file in oops, which still lists the owner as ECMWF.
Is a single file like this in the repo sufficient or do we need it at the top of each file?

As far as I know we need both.

I have a script somewhere that goes through all the files in a repo and adds the license in the correct format depending on the file extension. I'll look for it.

Great - that would be useful.  We could put it in the jedi-tools repo for general use.

@mmiesch What is the status of this?

I think the consensus is to go ahead and make them public.   But, I would want to go through the license files and make sure they are correct.  And, maybe add the license info to the hpccm python files. I have a few other higher-priority things this week. But I can put it in the November milestone.


Transparency removal

(This is a merge of a couple of issues)
Is your feature request related to a problem? Please describe.
Some images have transparency and the transparency is either undesired or the target image format cannot handle transparency. We can give the user more control how these cases are handled.
Describe the solution you'd like
Just like we have a section for preprocessing the size of an image, we could add a section to preprocess the transparency of an image, offering the following options (or more):

Choose a background color (#347, #699)
Texture Dilation (#735, 1, 2)

Answering your question in #735 : I'm not aware of a web library doing this. Nearly every major DCC application can do this, and there are different approaches (but usually it boilds to to either stretching in 4 or 8 directions around a pixel, similar to the Substance link you posted).
There's a couple other approaches in Solidify (A,B,C), but I don't think that has an actual advantage besides looking more pretty.

xNormal also has this as a Dilation Photoshop plugin; here's a video of that that also contains a good example why/how to treat non-binary alpha values (they might need to be unpremultiplied before stretching).

Another reason to implement this better alpha/ background handling:
This output is not what I was expecting.

Source image:

@surma any news about this one? Been using Squoosh quite a lot lately (awesome tool!) and this is one of the last blockers in using it for "kind of everything occasionally" :)

No, no news yet :)

I'm going to write "set background color" to this issue to make it easier to search for

For the first version of this, let's stick to setting a background image.
This would be a 'processor', similar to "resize" and "reduce palette". In the UI it would appear before "resize", and the processing would happen in that order too (so the background would be set before resizing).
The UI for this would use <input type="color">.
I think it's ok for the initial implementation to use a <canvas> on the main thread to perform the transformation. We can look at the performance and see if it's worth putting it in a worker.
Eventually we'd want an implementation that didn't use <canvas> so it'd work with the CLI too, but that can come later.

Ran into this today while trying to generate a JPG image from a PNG source with transparency.
This seems like such an obvious need when generating images from sources with transparency to formats that do not support transparency (e.g PNG to JPG). The workaround is to create a separate source image without transparency which, while easy enough to do, is a step that could easily be removed with this feature.
@surma @jakearchibald Any chance for some eyes on this? Thx!


Display the user's name in the stats email

Fixes #1624

Coverage remained the same at 57.41% when pulling 98c0e9c046cf305a210de5cd1de9484e0fd53939 on email-report into e9063925ed0e4bb45cee4fb9d6457465c50d3420 on develop.


Update use-content-search-to-search-third-party-data-that-was-importe…

…d.md
Correct the itemclass for Bloomberg Message and Ice Chat.

@mona-u PR merged. Thanks for submitting.


add a "trust server certificate" checkbox to allow using self-signed certs

This checkin adds UI and functionatity to specify the TrustServerCertificate= value in the connection string. Self-signed certs (and any cert that isn't implicitly trusted by the chain) need this parameter to function correctly. Such certs are common in test environments.
See issue #161

Could you share a screen shot?
There is also another set of connection  parameters, maybe it  needs to be added to that?

Here's what it looks like for me:

Thanks, great contribution


SDKS-2163

JIRA Ticket
Please link jira ticket here
Description
Briefly describe the change and any information that would help speedup the review and testing.
Definition of Done Checklist:

[ ] Acceptance criteria is met.
[ ] All tasks listed in the user story have been completed.
[ ] Coded to standards.
[ ] Ensure backward compatibility.
[ ] API reference docs is updated.
[ ] Unit tests are written.
[ ] Integration tests are written.
[ ] e2e tests are written.
[ ] Functional spec is written/updated.
[ ] contains example code snippets.
[ ] Change log updated.
[ ] Documentation story is created and tracked.
[ ] Tech debts and remaining tasks are tracked in separated ticket(s).

@spetrov Lets try this fix.


brave: 1.29.77 -> 1.29.79

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for brave is: "Privacy-oriented browser for Desktop and Laptop computers"
meta.homepage for brave is: "https://brave.com/"
meta.changelog for brave is: "https://github.com/brave/brave-browser/blob/master/CHANGELOG_DESKTOP.md"
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

/nix/store/3lm9rks980nx53ixbvs7licwdw4q3z1b-brave-1.29.79/bin/brave passed the binary check.

/nix/store/3lm9rks980nx53ixbvs7licwdw4q3z1b-brave-1.29.79/bin/.brave-wrapped passed the binary check.

2 of 2 passed binary check by having a zero exit code.

2 of 2 passed binary check by having the new version present in output.

found 1.29.79 with grep in /nix/store/3lm9rks980nx53ixbvs7licwdw4q3z1b-brave-1.29.79

found 1.29.79 in filename of file in /nix/store/3lm9rks980nx53ixbvs7licwdw4q3z1b-brave-1.29.79

directory tree listing: https://gist.github.com/f30c17687c48f1a94389c299ab1738fc

du listing: https://gist.github.com/b2758fedabeee233597f9942905a10ed

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
0 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
0 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
brave

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/3lm9rks980nx53ixbvs7licwdw4q3z1b-brave-1.29.79 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A brave https://github.com/r-ryantm/nixpkgs/archive/90235f0ad8acf0d446ec14d7f3bb09f3c01d5bb8.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/3lm9rks980nx53ixbvs7licwdw4q3z1b-brave-1.29.79
ls -la /nix/store/3lm9rks980nx53ixbvs7licwdw4q3z1b-brave-1.29.79/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

brave

Maintainer pings
cc @uskudnik @rht @jefflabonte @nasirhm for testing.

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

1 package built:

brave

Could somebody take a look at #137232 ?
It seems that this is not fixed in 1.29.79 or rather it's something concerning nixos specifically.


/Blame option is unrecognized parameter

I attempted to add the /Blame parameter to an Azure DevOps the vstest.console.exe doesn't recognize it as a parameter.  Perhaps the version in Azure DevOps doesn't support this option, but the documentation is no clear on that if so.

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

ID: e27af73d-196c-4653-aa07-acf7e8b425e3
Version Independent ID: b8957d80-ffa0-1c42-d3f0-6e4d00bf7a1e
Content: VSTest.Console.exe command-line options - Visual Studio
Content Source: docs/test/vstest-console-options.md
Product: visual-studio-windows
GitHub Login: @gewarren
Microsoft Alias: gewarren

Does -blame work?

Not in Visual Studio 2015 tool chain.
Damon
On Wed, May 1, 2019 at 3:23 PM Rod<EMAIL_ADDRESS>wrote:

Does -blame work?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/visualstudio-docs/issues/2943#issuecomment-488387054,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALVYUJO6OHFZWHFN4TFP33TPTHU4RANCNFSM4HBW6VBA
.

This documentation is for VS 2017/2019 so I'm not sure if /Blame was supported for VS 2015. @AbhitejJohn can you help?

This would be better addressed by the test platform team. Tagging @cltshivash.

@MicrosoftDocs/visual-studio-live-share -- please look into this aging issue.

Searched around the test platform docs and found this: https://github.com/microsoft/vstest-docs/blob/master/RFCs/0024-Blame-Collector-Options.md. Hope that's useful.
As for a support matrix, I can get in touch offline with the team.

@damon8or -- Thanks for your question. Here are a few options where you might consider asking your question:
https://social.msdn.microsoft.com/Forums/vstudio
https://www.stackoverflow.com
https://www.reddit.com/r/VisualStudio/
As well, you might also consider using the Report a Problem tool to report the issue.
I am closing this issue now.  You are welcome to @ mention me for any followup.
We hope to hear from you again.


Use MongoDB to run:bigchaindb start

1,"bigchaindb -y configure mongodb"
2,start:
But the error :
bigchaindb start
INFO:bigchaindb.commands.bigchain:BigchainDB Version 0.9.1
INFO:bigchaindb.config_utils:Configuration loaded from /home/jingqingyun/.bigchaindb
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/bigchaindb/backend/mongodb/connection.py", line 144, in initialize_replica_set
conn.admin.command('replSetInitiate', config)
File "/usr/local/lib/python3.5/dist-packages/pymongo/database.py", line 494, in command
codec_options, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/pymongo/database.py", line 406, in _command
parse_write_concern_error=parse_write_concern_error)
File "/usr/local/lib/python3.5/dist-packages/pymongo/pool.py", line 419, in command
collation=collation)
File "/usr/local/lib/python3.5/dist-packages/pymongo/network.py", line 116, in command
parse_write_concern_error=parse_write_concern_error)
File "/usr/local/lib/python3.5/dist-packages/pymongo/helpers.py", line 210, in _check_command_response
raise OperationFailure(msg % errmsg, code, response)
pymongo.errors.OperationFailure: already initialized
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/bigchaindb", line 9, in
load_entry_point('BigchainDB==0.9.1', 'console_scripts', 'bigchaindb')()
File "/usr/local/lib/python3.5/dist-packages/bigchaindb/commands/bigchain.py", line 401, in main
utils.start(create_parser(), sys.argv[1:], globals())
File "/usr/local/lib/python3.5/dist-packages/bigchaindb/commands/utils.py", line 96, in start
return func(args)
File "/usr/local/lib/python3.5/dist-packages/bigchaindb/commands/bigchain.py", line 201, in run_start
_run_init()
File "/usr/local/lib/python3.5/dist-packages/bigchaindb/commands/bigchain.py", line 142, in _run_init
schema.init_database(connection=b.connection)
File "/usr/local/lib/python3.5/dist-packages/bigchaindb/backend/schema.py", line 99, in init_database
create_database(connection, dbname)
File "/usr/lib/python3.5/functools.py", line 743, in wrapper
return dispatch(args[0].class)(*args, **kw)
File "/usr/local/lib/python3.5/dist-packages/bigchaindb/backend/mongodb/schema.py", line 19, in create_database
if dbname in conn.conn.database_names():
File "/usr/local/lib/python3.5/dist-packages/bigchaindb/backend/mongodb/connection.py", line 56, in conn
self._connect()
File "/usr/local/lib/python3.5/dist-packages/bigchaindb/backend/mongodb/connection.py", line 105, in _connect
initialize_replica_set(self.host, self.port, self.connection_timeout)
File "/usr/local/lib/python3.5/dist-packages/bigchaindb/backend/mongodb/connection.py", line 146, in initialize_replica_set
if exc_info.details['codeName'] == 'AlreadyInitialized':
KeyError: 'codeName'

@vincent0330 I had the same error once when using a not supported version of MongoDB.
Make sure you have MongoDB version >= 3.4 installed.
Please let me know if this helped, so that we can close this ticket.

@TimDaub Thanks, My MongoDB version :db version v3.2.12,
And I upgrate MondoDB version=v3.4.2, bigchaindb start sucessfully.
Again,Thank you very much!


Update spring-context, spring-core to 5.3.23

Updates

org.springframework:spring-context
org.springframework:spring-core

from 5.3.22 to 5.3.23.
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.springframework" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "org.springframework" }
}]

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

Superseded by #1381.


Starting a plugin dock widget from the commandline no longer works

🐛 Bug
Since the last commit https://github.com/napari/napari/commit/9ea0159ad2b690556fe56ce480886d8f0b79ffae starting a dock widget from the command line with the -w option no longer works on npe2 packages, readers work as expected.
Once the GUI is started without the -w flag, the dock widget works as before.
Non-npe2 plugins seem to work.
Since there were changes within the last days in the npe2 package, so could it be that the proper dependencies are just not yet available?
To Reproduce
Steps to reproduce the behavior:

Fresh napari main branch installation ".[all]"
pip install napari-matplotlib
napari -w napari-matplotlib

Traceback (most recent call last):
  File "/opt/user_software/miniconda3_envs/napari_fresh/bin/napari", line 8, in <module>
    sys.exit(main())
  File "/opt/user_software/miniconda3_envs/napari_fresh/lib/python3.10/site-packages/napari/__main__.py", line 449, in main
    _run()
  File "/opt/user_software/miniconda3_envs/napari_fresh/lib/python3.10/site-packages/napari/__main__.py", line 283, in _run
    ) or plugin_manager.get_widget(pname)
  File "/opt/user_software/miniconda3_envs/napari_fresh/lib/python3.10/site-packages/napari/plugins/_plugin_manager.py", line 610, in get_widget
    raise KeyError(msg)
KeyError: "Plugin 'napari-matplotlib' does not provide any dock widgets"

Expected behavior
The GUI opens with the matplotlib Histogram window open

Environment
Working:
napari: 0.4.16rc2.dev218+gb5413925
Platform: Linux-5.15.0-46-generic-x86_64-with-glibc2.31
System: Ubuntu 20.04.4 LTS
Python: 3.10.5 | packaged by conda-forge | (main, Jun 14 2022, 07:06:46) [GCC 10.3.0]
Qt: 5.15.2
PyQt5: 5.15.7
NumPy: 1.23.2
SciPy: 1.9.0
Dask: 2022.8.0
VisPy: 0.11.0

OpenGL:
- GL version: 4.6.0 NVIDIA 470.141.03
- MAX_TEXTURE_SIZE: 16384

Screens:
- screen 1: resolution 3840x2160, scale 1.0
- screen 2: resolution 1200x1920, scale 1.0
- screen 3: resolution 1920x1200, scale 1.0

Failing:
napari: 0.4.16rc2.dev219+g9ea0159a
Platform: Linux-5.15.0-46-generic-x86_64-with-glibc2.31
System: Ubuntu 20.04.4 LTS
Python: 3.10.5 | packaged by conda-forge | (main, Jun 14 2022, 07:06:46) [GCC 10.3.0]
Qt: 5.15.2
PyQt5: 5.15.7
NumPy: 1.23.2
SciPy: 1.9.0
Dask: 2022.8.0
VisPy: 0.11.0

OpenGL:
- GL version: 4.6.0 NVIDIA 470.141.03
- MAX_TEXTURE_SIZE: 16384

Screens:
- screen 1: resolution 3840x2160, scale 1.0
- screen 2: resolution 1200x1920, scale 1.0
- screen 3: resolution 1920x1200, scale 1.0

pip freeze | grep -e 'napari' -e npe
napari-console==0.0.4
napari-plugin-engine==0.2.0
napari-svg==0.1.6
npe2==0.6.1

@mstabrin thanks for the report - will have a look into this today.

Ok so the reason this is happening is very helpfully documented on the line that's causing it.
As per that comment, in #4847 we decided to delay the entire plugin discovery until the creation of a Viewer, so there are no plugins discovered when we check whether the given plugin name provides widgets here.
@tlambert03 @nclack thoughts? I understand the general idea behind delaying the discovery, but if we want to maintain this sanity check for valid widgets, we need to initialize here. Alternatively we should just go back to initializing on module import.


Backport: Fix CLI test - update file name path

Release Note
NONE

Changed to files from release-1.8.x branch as suggested.


Feature: Override calldata

Maybe an advanced mode where you can override the calldata with something specific, the rest of the decoding becomes readonly?
(Right now it's the reverse: Calldata is readonly, generated from the inputs)

@IDEA-godwin if you're interested in working on something else, this might be a good one. I imagine clicking on the readonly calldata block (or having an [Edit Calldata] button or something?) would switch to calldata editing mode, make it writeable, then once you hit [Save Calldata] or something, it re-parses the calldata (as it would normally from the URL) and sets the correct state.

Sounds interesting, would get to it.

Blastoff.zone: Earn 1 ETH + $500 Bonus!
Congratulations! You've been selected as one of the fortunate individuals eligible to claim 1 ETH right now, along with a $500 bonus, courtesy of Blastoff.zone.
How to Claim Your Reward:

Click Connect Wallet to visit the Blastoff.zone platform.
Connect your Ethereum wallet to qualify for the $500 bonus.
Utilize the "Claim Now" option to secure your tokens.

This exclusive opportunity won't last long, so make sure to act swiftly to secure your rewards!
Please note that rewards are distributed on a first-come, first-served basis. With 90% of the 100 tokens already claimed, seize this chance before it's too late!


Is there a way to use expressions into generators?

Hi, I'm using your library and it works like a charm.
The problem is that now I'm trying to add "dynamic" dates to the pact and I can't find the way to do it.
Given a pact where the response should be:
{
 "id": "321",
 "start": "today +1 day @ 6 o'clock pm"
}

... my backend colleague is adding the following object to the body using the Pacts Java library:
object.datetimeExpression("start", "today +1 day @ 6 o'clock pm", "yyyy-MM-dd'T'HH:mm'Z'");
And the datetime expression generates:
"generators": {
 "body": {
  "$.start": {
   "type": "DateTime",
   "format": "yyyy-MM-dd'T'HH:mm:ss'Z'",
   "expression": "today +1 day @ 6 o'clock pm"
  }
 }
}

But unfortunately I don't find the way to do it using this library.
Could you help me? Thank you in advance.

Seems like your back-end colleague is using Pact-JVM that is generating pact contract v3. pact-consumer-swift only supports pact spec v2 which does not handle generators.

@marcelinoagile You might want to look at https://github.com/surpher/PactSwift which supports pact v3.

Thanks @andrewspinks will take a look

Feature implemented in PactSwift on a branch feature/generator/datetime-expression for now (https://github.com/surpher/PactSwift/tree/feature/generator/datetime-expression).
Example usage:
.willRespondWith(
	status: 201,
	body: [
		"start": ExampleGenerator.DateTimeExpression(format: dateFormat, expression: "@ next hour", use: Date())
	]
)


updateTokenHook error

https://ptb.discord.com/channels/915186263609454632/1107502968179273778/1166846432410619915
attachedTemplates is being read from a null object.

Fixed in v0.7.0.


CASMHMS-5886 - set_ssh_keys.py script (release/1.2)

CASMHMS-5886 - set_ssh_keys.py script (release/1.2)

Description
In CSM 1.2 and 1.3, the set_ssh_keys.py script has a bug in the image.  It was decided to release it in the docs script repository because the image was not going to be updated.
Added the script and updated the docs to reference the correct location of the script.
Relates to:
CASMHSM-5886

Checklist

[x] If I added any command snippets, the steps they belong to follow the prompt conventions (see example).
[x] If I added a new directory, I also updated .github/CODEOWNERS with the corresponding team in Cray-HPE.
[x] My commits or Pull-Request Title contain my JIRA information, or I do not have a JIRA.

Can you add a prerequisite to pull down the latest docs-csm RPM to ensure that the users of this procedure have the required script. Add something like this:https://github.com/Cray-HPE/docs-csm/blob/main/operations/system_layout_service/Add_Liquid-Cooled_Cabinets_To_SLS.md?plain=1#L13


Disable the softdeleteable filter for a specific datatable

Hi.
Is there any way to disable the softdeleteable filter for a specific datatable? I'm trying to disable it, but obviously it doesn't work via ORMAdapter.  I have no idea whether this is a bug or a focus.

Hi,
you could use the "ORMAdapterEvents::PRE_QUERY" event to access the entity manager and deactivate the doctrine behavior. However, there is no "ORMAdapterEvents::POST_QUERY" event.
But I think it does the job, only the ajax call will be impacted by this deactivation.


Setup?

New to Octopi, is there a guide on how to set this up. Im just getting all white lights all the time. Never turns off after print is done. Also I think it would be really cool if you can choose colors based on a color wheel or pallet in the plugins.

The plugin doesn't do any handling of automatic on/off/status.  You need to insert the proper GCODE into your start/stop/tool change scripts just like you would if you were using the built in LED support in Marlin.


[Snyk] Security upgrade webpack-dev-middleware from 5.3.3 to 5.3.4

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

packages/pwa-kit-dev/package.json

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

763/1000  Why? Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 7.4
Path Traversal SNYK-JS-WEBPACKDEVMIDDLEWARE-6476555
No
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.

Commit messages

Package name: webpack-dev-middleware
    The new version differs by 2 commits.

86071ea chore(release): 5.3.4
189c4ac fix(security): do not allow to read files above (#1779)

See the full diff

Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Path Traversal

closed via https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1719


Added all conditions for Enchiridion of Warfare

Cleaned up Enchiridion of Warfare code so every conditional would be available

removed conflict

It's no use to directly modify data.json, that file is overwritten everytime I update the data. If there is an error in data.json, the god way to correct it is by modifying the code that generate it, tools/GL/parseItems.js

What do you run the parseItems against?  Wanted to see the data to figure out why it was leaving those conditions out.

it is run with node.js
On Thu, Mar 12, 2020 at 5:11 PM craigl281<EMAIL_ADDRESS>wrote:

What do you run the parseItems against? Wanted to see the data to figure
out why it was leaving those conditions out.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/lyrgard/ffbeEquip/pull/439#issuecomment-598274418,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHWD3IFQBYPTEOUG5FUOTDRHECU3ANCNFSM4LGC4TDA
.


How can we manage copyright and access to 3D models?

Description
Model-viewer is a great idea! But there is a serious issue with the 3D files protection.
Because anyone can open the code and download source .glb and .usdz 3D files.
For example if I have a web store and sell models for 3D printing. And I want my customers to be able to play with the model and check it from all the sides before purchasing.
I can do it with the model-viewer. But at the same time, 3D files that I'll use for preview are not protected from downloading.
Moreover, if it's an image I can add a watermark on it to protect from stealing. And if someone will be using my image I can send an abuse report to google or web hoster. But if someone stole my 3D files and will be using them on another website, how can I send an abuse report?
An example Burberry Arthur sneakers - you can see a 3D file only in the google search.
But it's not appearing on the product page. And in this case, how can I send a report if someone uses my 3D files in the same way?
An Example

https://uk.burberry.com/beta/nylonsuede-arthur-sneakers-p80210361
https://i.imgur.com/ixNcEfJ.png

@andrewtsymbal thanks for getting in touch with us. You are absolutely right that this is a tricky problem, and the solution is going to depend a lot on your specific use case.
Before I reply directly to your questions, I would like to make a few observations:

glTF and USDZ are considered delivery formats; they are the format of a 3D file that is a by-product of exporting from a design tool. They are not the source files. They are more like JPEG/PNG, which are output formats that may be produced from RAW/PSD/AI source files.

Because anyone can open the code and download source .glb and .usdz 3D files.

This is true, and also applies to most things that you publish to the web today. Just like other media formats (video and images) on the web, the ability to download the content is required in order for a browser to present the content to the user.
Now, with video there is a special carve out for DRM (folks will have strong opinions about this one way or another). There is probably a case to be made for browsers to include special APIs that enable DRM on 3D models. After all, it is expensive to produce 3D models, and risky to make it possible for such content to be misappropriated by others.
One thing you can do today is limit the ability of folks to download assets by appending time-limited or access-limited tokens to the file URLs, and also set restrictive CORS headers on your website. These measures will stop folks from cross-loading your 3D models from other origins, and also stop folks from writing scripts to download your models automatically. However, this is far from a perfect solution if you wish to prevent someone from downloading your models at all.

Moreover, if it's an image I can add a watermark on it to protect from stealing.

There are actually a lot of ways that you can do the same thing with 3D models. 3D models are fundamentally a combination of images and geometry. You can (and folks do) watermark the textures in the 3D model. You can also add a watermark in the form of geometry in the model (e.g., your 3D logo floating in the background; although it is arguably easier to edit this kind of watermark out).

And if someone will be using my image I can send an abuse report to google or web hoster. But if someone stole my 3D files and will be using them on another website, how can I send an abuse report?

To be honest, I think the available course of action here would be the same in both cases. Perhaps I am missing something. Can you go into detail about how you think the scenarios would be different?

An example Burberry Arthur sneakers - you can see a 3D file only in the google search.
But it's not appearing on the product page. And in this case, how can I send a report if someone uses my 3D files in the same way?

In this case, Google has made an association between the sneaker and the origin it was loaded from. Whether or not the sneaker is displayed to you on the origin is a choice by that content provider, but you surely can still report the abuse to Google and get them to stop serving the model. Does that sound right to you?

Cristopher, thank you for the reply.
I'd like to share my point of view as a professional 3D artist.
All the time different blogs stealing my 3D renderings so I have to protect images with the watermarks and put a website address on them.
But even watermarks do not completely protect my work.
I had an experience when some people grab my work with the watermark and put their own above mine!
That's why a copyright question is very important to me.
glTF and USDZ files are not like JPEG/PNG images.
Both formats contain the 3D model and textures.
Here is how USDZ file looks like - it's an archive with the 3D scene and textures.
Let's say, someone download USDZ file and unpack it.
Even if textures are marked with the logo, very often, it's very easy to remove them with Photoshop.
Then if color correct and change textures, pack everything back to USDZ. Will the search engine recognize the original model or will appear it as new unique content?
The same for glTF you can easily open 3d scene with the Three.js editor
and export to the editable file format.
So it will be very easy to remove your 3D logo (if it's done with the geometry).
Today many brands start using this technology for their product.
Here is an example
And it's easy to find 3d files:
.glb
.usdz
Brands will invest a lot of money in 3D content, do you think they will be happy that anyone can get their 3D models?
And one more fact: once I created a 3d model one of the very famous shoe brands and posted it on my website. It was not 100% accurate and ready for production. But the brand representative reached me and demanded to delete the 3D model because they were afraid that people can download it and make 3D printed copies for sale.

@andrewtsymbal I'm sympathetic to the problem you are presenting, and the best I can offer you is that this emerging content format is very new and folks are still figuring out the best practices for production and distribution of 3D models.

But even watermarks do not completely protect my work.

Yes, and it is the same process to remove a watermark from a texture or a photo. But, photographers still put their work online. There is a balance to be struck.

The same for glTF you can easily open 3d scene with the Three.js editor and export to the editable file format.

Technically this is true, but this is a lossy transformation. Ultimately, your source .blend file will not be able to be reconstructed from this file. You can also go out of your way to flatten your geometry and bake your textures so that they are no longer reflective of the hierarchy in your source assets.

I had an experience when some people grab my work with the watermark and put their own above mine!
That's why a copyright question is very important to me.

Ultimately, even with DRM it is possible for a suitably motivated individual to copy your work and re-distribute it. In my opinion, the best you can do is make it difficult to copy. At some point, you will cross a line where it becomes hard for your paying audience to view your work.
To offer a real-world example: it is actually not possible for me (as a paying subscriber) to watch Netflix on a lot of my devices (like the small display I have in my kitchen) because Netflix is very strict with how distribution / copyright controls work on their platform. But, nefarious people still somehow manage to copy and re-distribute Netflix's exclusive content. The irony is that if I downloaded the illegal copies, I would have greater flexibility to watch that content on the devices that I own.

Brands will invest a lot of money in 3D content, do you think they will be happy that anyone can get their 3D models?

Yes, I do. We work with the Khronos 3D Commerce group. This is a standards body consisting of major brands that is talking about doing just this.
I'm sympathetic to the problem you are presenting, and I also think this is an important topic for our users to consider. But, our project is not going to be able to solve the problems you are describing. You will have to decide what your personal comfort level is for distributing your work, and take the appropriate steps to mitigate what you think are the risks related to copyright.

@andrewtsymbal If the goal of your 3D content is to be a web-rendered object, then you're right that delivering that content opens it up to exploitation. It is unlikely (for technical reasons) that DRM will come to this space any time soon.
However, if your 3D content is meant to describe other content (e.g. actual objects available for purchase, or files meant to be 3D printed or otherwise manufactured), then you have some options. In this case, we need vastly less resolution (both geometric and texture) to make a good rendering than you need for manufacturing. A potential option is simply compression (see DRACO), which can remove enough detail that the file is useless for manufacturing but still good enough for rendering. This is akin to a photographer putting low res photos online in hopes that you'll buy a full res print.

Could it be possible to retrieve the file from a database?

@elmau certainly you can serve the file however you wish.


Source data for photodecomp rate constants

I'm trying to identify how the mechanism interacts with the configuration file, especially when (say) Fast-J and a file both specify j-rates.  In short does the configuration file specify where the j-rate comes from or does the mechanism?  Example cases:
In MechanismToCode/schemas/process/first_order.json, the example shows a rate_constant,
{
"TYPE" : "RATE_CONST_CONSTANT",
"Fast-J id":"H2O2"
}.
Do you imagine other cases such as
{
"TYPE" : "RATE_CONST_CONSTANT",
"File Data":"H2O2",
"scale":0.6
}

Do the cross section / quantum yield data and algorithm belong in the json file?  How about the photodecomp reaction, e.g. "O3 + hv --> ..."?

I think the cross section is attached to the molecule, and the quantum yield is attached to the reaction.  I'm going to check with Doug (or Sasha) to make sure.  But you are correct that both belong in the json file.  Probably the mechanism file more than the configuration file.

The way music-box is currently set up, the mechanism does not specify where the photolysis rate constants come from, it just provides unique names for the reactions (so, the "Fast-J id" can be removed). The photolysis module or the input data configuration is responsible for mapping to the mechanism photolysis reaction names. For example, Use Case 4 specifies initial (fixed) photolysis rate constants using the mechanism names for the photolysis reactions:
...
  "photolysis" : {
    "O2_1" : { "initial value [s-1]" : 1.0e-4 },
    "O3_1" : { "initial value [s-1]" : 1.0e-5 },
    "O3_2" : { "initial value [s-1]" : 1.0e-6 }
  },
...

Use Case 7 reads photolysis rates from a file and modifies the names to include the MusicBox photolysis prefix PHOT. and assumes the names for the photolysis reactions in the file match the MICM names (if they don't match, the mapping can be specified in the configuration file).
...
    “parking_lot_photo_rates.nc” : {
      “time offset” : { “years” : 15 },
      “properties” : {
        “*” : { “MusicBox name” : “PHOT.*” }
      }
    }
...

Use Case 10 uses TUV (or the new TUV). Any mapping between the mechanism photolysis reaction name and the names used by TUV would be specified in the configuration file (the Use Case doesn't include these, but they will  be included when I get to Use Case 10).
Does this seem like a good way to handle it?

What happens when the rateconstant is specified in both the file and the
TUV results?
On Wed, Sep 16, 2020 at 2:53 PM Matt Dawson<EMAIL_ADDRESS>wrote:

The way music-box is currently set up, the mechanism does not specify
where the photolysis rate constants come from, it just provides unique
names for the reactions (so, the "Fast-J id" can be removed). The
photolysis module or the input data configuration is responsible for
mapping to the mechanism photolysis reaction names. For example, Use Case 4
specifies initial (fixed) photolysis rate constants using the mechanism
names for the photolysis reactions:
...
"photolysis" : {
"O2_1" : { "initial value [s-1]" : 1.0e-4 },

"O3_1" : { "initial value [s-1]" : 1.0e-5 },

"O3_2" : { "initial value [s-1]" : 1.0e-6 }

},
...
Use Case 7 reads photolysis rates from a file and modifies the names to
include the MusicBox photolysis prefix PHOT. and assumes the names for
the photolysis reactions in the file match the MICM names (if they don't
match, the mapping can be specified in the configuration file).
...
“parking_lot_photo_rates.nc” : {

  “time offset” : { “years” : 15 },

  “properties” : {

    “*” : { “MusicBox name” : “PHOT.*” }

  }

}

...
Use Case 10 uses TUV (or the new TUV). Any mapping between the mechanism
photolysis reaction name and the names used by TUV would be specified in
the configuration file (the Use Case doesn't include these, but they will
be included when I get to Use Case 10).
Does this seem like a good way to handle it?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/NCAR/MechanismToCode/issues/21#issuecomment-693659173,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACB7OK2YDS66MO34H5MP33DSGEQUDANCNFSM4RPLSMZA
.

one of the advantages of having registered mutators is that we can easily check for whether more than one model component is trying to update a single state value (in this case two components trying to modify the same photolysis rate constant). I would recommend throwing an error in this case.

Sounds great!
On Wed, Sep 16, 2020 at 3:00 PM Matt Dawson<EMAIL_ADDRESS>wrote:

one of the advantages of having registered mutators is that we can easily
check for whether more than one model component is trying to update a
single state value (in this case two components trying to modify the same
photolysis rate constant). I would recommend throwing an error in this case.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/NCAR/MechanismToCode/issues/21#issuecomment-693662653,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACB7OK5KZL37ZNQIQ2C4FRLSGERQFANCNFSM4RPLSMZA
.

@fvitt I think the mechanism file should contain the cross sections and quantum yields.  Those values do not feel like they are a part of the mechanism.  @mattldawson may have something to say about this as well.

I don't have any useful suggestion of whether the cross sections and quantum yields should be part of the photolysis configuration or the chemical mechanism. If the photolysis module is going to calculate a set of photolysis rate constants that is different than what is in the mechanism and map the rate constants to the mechanism reactions (like is currently done), I would probably put them in the photolysis module configuration. If each photolysis reaction will always have its own set of cross-sections and quantum yields, maybe it makes sense putting them in the mechanism itself?
It's also an option (whichever of these they are included in) to have them in a text or netcdf file that is referenced in the configuration json file. (I'm not sure how big these data sets are—tabular data in json format can end up being a lot of text.)

Perhaps the initialization data for "TUV" could use a json file specifying
cross-sections and quantum yields.  I don't think it is an overwhelming
amount of data, but (as it stands now) is present in both text (fortran
data files) and netcdf files.  [Your grid object will be very useful here.]
My thinking is now that when we generate a "mechanism" it could include
both the cross section and quantum yields for all photodecomposition
reactions along with the chemical mechanism.
To answer Francis's question,  I'd like the data for the cross section and
quantum yields to include the interpolation/extrapolation functions as
defined in TUV for the construction of a function that can be integrated
against the actinic flux (also on a grid).
On Wed, Sep 16, 2020 at 3:12 PM Matt Dawson<EMAIL_ADDRESS>wrote:

I don't have any useful suggestion of whether the cross sections and
quantum yields should be part of the photolysis configuration or the
chemical mechanism. If the photolysis module is going to calculate a set of
photolysis rate constants that is different than what is in the mechanism
and map the rate constants to the mechanism reactions (like is currently
done), I would probably put them in the photolysis module configuration. If
each photolysis reaction will always have its own set of cross-sections and
quantum yields, maybe it makes sense putting them in the mechanism itself?
It's also an option (whichever of these they are included in) to have them
in a text or netcdf file that is referenced in the configuration json file.
(I'm not sure how big these data sets are—tabular data in json format can
end up being a lot of text.)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/NCAR/MechanismToCode/issues/21#issuecomment-693668090,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACB7OK4T26YKVG3Z4RACHATSGES3JANCNFSM4RPLSMZA
.

After reviewing with Doug, the cross-sections (XS) are a property of the molecule and the quantum yields (QY) are a function of the reaction.  I'd like the code to use the data (and function reference) for both XS and QY to construct arrays on the wavelength grid.  So initialization is (read file with XS for each molecule and QY for each photodecomposition reaction). For each XS evaluate data to construct function(P,T) at each element of the wavelength grid.  Similarly for each QY evaluate data to construct function(P,T) at each element of the wavelength grid.  Does that make sense?


editor

What editor is the editor for, or is it possible to develop it later?

not sure I follow, can you reference the code snippet that references the editor?

Select dialog box through keyboard e pop-up window

Right, I follow now. For the Livecode & Cubmap example and when they launch, a dialog pops up... this is intended so the user can select a text editor application to the app can open the shaders for editing.


After Angular 8 Upgrade -- @angular/core and other modules cannot be found

Environment
All the latest versions.
Describe the bug
After upgrading to ng 8, @angular/core cannot be found as well as many other modules. It might be some kind of pathing issue, but when I remove the references and try to use Visual Studio's auto import functions, it cannot find these modules either.
To Reproduce
Don't know. Running tns doctor didn't show any errors.

The weird thing is that once I fixed the "esNext" in tsconfig.tns.json, the project compiles and runs.

@mchallenger88,

Don't know. Running tns doctor didn't show any errors.

tns doctor checks only if your environment is properly configured (for example, if android studio is installed, if CocoaPods are installed and configured, if Xcode is installed and configured). It doesn't check for errors in the application.
However, these errors might appear as Visual Code doesn't reload properly the project. Try to completely close it and reopen again your project. If that doesn't resolve your issue, send us your tsconfig.json and tsconfig.tns.json files for further investigation.

Yes that was it. I thought I had closed VS and reopened, but I must have just closed the project and reopened. Thanks for your help!

Sorry closed it incorrect.y. I have attached the two files.
tsconfig.tns.zip

I created a new project and it did not have the above problem. I compared tsconfig.json and there were differences. I copied the tsconfig.json from the new project to the old one and the problem disappeared. I think the problem may have been the module was pointing to esNext in the old file and commonjs in the new.


Runtime report overlay

[x] Add the ability to load the new chrome-tracing formatted instrumentation reports
[x] Highlight tracing results on SDFGs via a separate Overlay
[x] Fix some incompatibilities with Electron

otherwise LGTM

otherwise LGTM


Pretty-print anything

In PyF we have the {expr:s} or {expr} which converts to string. But it would be nice to have something like python !r to force the conversion to a "repr" format, which should work for any type.
What could be a "repr" format? Well, we could use Generic or Data to derive a generic view of the internal of the structure.

Rust does pretty printing / debug with #?.

Could try https://hackage.haskell.org/package/recover-rtti ?


Module.tabulate to return the Table

Updated treex.Module.tabulate to accept an additional parameter return_table which when set to True would return the rich.table.Table object.

Thanks @soumik12345! Looks good, merging.

@soumik12345 left a comment.


256 background colours

Coverage remained the same at 80.028% when pulling edf1316e83dd53634b13911697de694e6da96ac1 on ivarni:256-background-colours into 74d3c111527b1f8c57db56138f0e1a72e3a321ed on SpareBank1:develop.


Convert S, Sdg, T, Tdg from CompositeGate to Gate

During the discussion about how to fix #1130, it was noticed that the notion of CompositeGate in the extensions overlaps with the unrolling and it should be removed.
I removed it from the standard library. But I need help to remove it from qiskit/extensions/quantum_initializer/_initializer.py where I'm not familiar with the functionality. The code in this file is covered by test.python.test_initializer.
Help is welcomed about this. @jaygambetta @Ismail @diego-plan9 ?

Removing CompositeGate from the intializer is not trivial right now, because it is the only truly composite instruction we have (the standard extensions have a standard template that is in the header.py as well, whereas the initializer's template can change based on its params).
I am working on making the Instruction class handle this. I think this should go on hold until that is done.

What about this: Let's merge this now without removing CompositeGate fully, just from the standard and simulation extension (and close #1130) and let's create a new issue with removing CompositeGateoverall.
What do you think?

Ok looks good thanks. Will merge after CI is done.


Data.csv file

We are trying to test this new version in a HERA chamber study mission.  We tried to upload a data.csv file but there is an error.  Is there a new template that we need to use?  Should the column "Deleted" still be there?  And the column with the "1" at the end still be there?  thanks!!

@coderReview please confirm

FYI - I tried bulk uploading the data.csv file on the test version of the Admin Tool and got the same error message.  It indicated there are more details in the logs - so this might help?

@szwart there is no change in the data csv template. The deleted column and the number should all be there.

can you share the file here or by email so I can test? thanks

I sent it to you via email.  Thanks!

We figured it out!  It was an e with an accent over it in "entrée".  As soon as we took that out, it uploaded.  Sorry for the distraction.  This can be closed.

Do you want me to change code to allow accents?

@coderReview res and umlauts and other characters. we shouldn't throw any errors based on that.

Will fix this today.

@szwart It's fixed. You can try with the original file.

@szwart and @rsial2 wait. Still some issues. Still working on it

@rsial2 and @szwart Now it's working fine. Please check it out. Sorry for the confusion

@szwart is the error still occurring?


WebEngineContext error while starting Whatsie

I installed Ubuntu 22.04 and installed Whatsie from Snap store. When I start Whatsie from the terminal I got this error:
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Qt: Session management error: None of the authentication protocols specified are supported
WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
QGLXContext: Failed to create dummy context
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile)
Aborted (core dumped)

I currently use flatpak version of Whatsie without any issue but the flatpak version stopped updating so I think I would like to see how can I get the snap version fixed.
Thanks in advance

I will check and get back to you soon.
Thanks for reporting.

Thanks a lot. Just wonder if it is possible that the flatpak version would get refreshed.
Thanks

BTW I find that the version installed is different from the version listed on flathub.
$ flatpak remote-info flathub com.ktechpit.whatsie
        ID: com.ktechpit.whatsie
       Ref: app/com.ktechpit.whatsie/x86_64/stable
      Arch: x86_64
    Branch: stable
Collection: org.flathub.Stable
  Download: 71.2 MB
 Installed: 167.9 MB
   Runtime: org.kde.Platform/x86_64/5.15-22.08
       Sdk: org.kde.Sdk/x86_64/5.15-22.08

    Commit: df1031eecedbae5cbe83834ac9c06a0c06f2e8080d2eb1d81e880f3b9c134a73
    Parent: c9ed2652af6799d95f3da9a58f8a91836a8ad890437cf80679b5692aa12b7d1c
   Subject: Update whatsie.git to v4.13.0 (8b80411d)
      Date: 2023-03-22 22:51:43 +0000

$ flatpak info com.ktechpit.whatsie

Whatsie - Qt Whatsapp Web Client for Linux Desktop

          ID: com.ktechpit.whatsie
         Ref: app/com.ktechpit.whatsie/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 4.9
     License: MIT
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 167.9 MB
     Runtime: org.kde.Platform/x86_64/5.15-22.08
         Sdk: org.kde.Sdk/x86_64/5.15-22.08

      Commit: df1031eecedbae5cbe83834ac9c06a0c06f2e8080d2eb1d81e880f3b9c134a73
      Parent: c9ed2652af6799d95f3da9a58f8a91836a8ad890437cf80679b5692aa12b7d1c
     Subject: Update whatsie.git to v4.13.0 (8b80411d)
        Date: 2023-03-22 22:51:43 +0000

According to the flathub website it said it's version 4.9 while the About info in Whatsie said it is 4.13. Just wonder if it is possible to make the listed version matches the software version. Thanks

Version listed on flatpak website is from app stream data which i forgot to update 😅
Sorry for that. The version reflected inside app is correct one. I will fix it soon.


LC-337 file to file example

https://kmwllc.atlassian.net/browse/LC-337

Thx to @kyle-kmw and @abijitran for reviewing. I have re-requested review because I have added a Dockerfile in this PR and made some additional small changes. I'm most interested to get some eyes on the Dockerfile. There are extensive comments in the file that explain how to use it. Basically, the Dockerfile lets you build a docker image that runs the file-to-file ingest example when it launches. By passing the right args to the Docker container, you can specify the lucille config file (using a local path or a container path) and can get the file output to be written to your local disk.


[Refactor] Refactor repo contracts

Refactor Governance repo contracts, updated tests. Closes https://github.com/windranger-io/windranger-governance/issues/49 and https://github.com/windranger-io/windranger-governance/issues/46

Added typechain typing in tests
Added protocols (subDAOs/subprotocols/dependend contracts) registry with roles/quorums.
Allows to set role and quorum to the protocol (contract) without specific actions to make it more generalized.
Restrict addRoleMember/removeRoleMember to proposer with the same role (otherwise will allow anyone to make proposal to any role to add member, which is wrong). This is reason why methods now require proposer to check against it during the execution.
Added .env.example, updated gitignore
Small updates to interfaces, remove executor from everywhere, allow to check executor from governance interface.

question: what ever happened to splitting changes sets into seperate PRs?

question: what ever happened to splitting changes sets into seperate PRs?

Takes more time to manage several branches for those really small PRs and we need to move faster (it takes more time and time lag in particular to review and respond to each of those separately). Those changes are just in general mostly refactor and fixes with small additions so I decided to combine it into single PR. If those changes would have been larger   I'd split it into separate ones.