feat: ed25519 signature example

Resolves #https://github.com/paritytech/capi/issues/682
Changes

Updates the test user public keys list to also have ed25119 keys
Abstract Sr25519 into a Keypair class and adds Ed25519
Adds transfer example using ED2519 signatures
Adds script for recreating test user public keys

Notes

import map change is a requirement from https://github.com/paulmillr/noble-ed25519/tree/1.7.3
Not using latest version of noble-ed25519 b/c it doesn't work
Using older version of main because main is currently broken on linux machines. See #821

Can you elaborate?

Running noble ed25519 on latest version gives me an error about sha512sync
vscode ➜ /workspaces/capi (feat/ed25519-signature-example) $ deno task run examples/ed25519_signature.ts
Task run deno task capi -- deno run -A -r=http://localhost:4646/ "examples/ed25519_signature.ts"
Task capi deno run -A main.ts --dbg "--" "deno" "run" "-A" "-r=http://localhost:4646/" "examples/ed25519_signature.ts"
Reusing existing Capi server at "http://localhost:4646/"
error: Uncaught (in promise) Error: etc.sha512Sync not set
const err = (m = ''): never => { throw new Error(m); }; // error helper, messes-up stack trace
                                       ^
    at err (https://deno.land/x/ed25519@2.0.0/index.ts:12:40)
    at sha512s (https://deno.land/x/ed25519@2.0.0/index.ts:193:47)
    at getExtendedPublicKey (https://deno.land/x/ed25519@2.0.0/index.ts:208:55)
    at Module.getPublicKey (https://deno.land/x/ed25519@2.0.0/index.ts:211:44)
    at Function.fromSecret (file:///workspaces/capi/crypto/Keypair.ts:32:26)
    at Sr25519.toEd25519 (file:///workspaces/capi/crypto/Keypair.ts:70:38)
    at file:///workspaces/capi/examples/ed25519_signature.ts:6:28

Can you use https://esm.sh/@noble/ed25519 instead?

Same error as above

There is already a script for this: https://github.com/paritytech/capi/blob/main/_tasks/generate_artifacts.ts#L30-L37

didn't see that mb

We don't use ed25519 anywhere else, so I'd like to keep the relevant logic contained to the example.

sounds good

Can you use https://esm.sh/@noble/ed25519 instead?

Same error as above

In that case, what about https://esm.sh/<EMAIL_ADDRESS>

https://esm.sh/<EMAIL_ADDRESS>
vscode ➜ /workspaces/capi (feat/ed25519-signature-example) $ deno task run examples/ed25519_signature.ts
Task run deno task capi -- deno run -A -r=http://localhost:4646/ "examples/ed25519_signature.ts"
Task capi deno run -A main.ts --dbg "--" "deno" "run" "-A" "-r=http://localhost:4646/" "examples/ed25519_signature.ts"
Reusing existing Capi server at "http://localhost:4646/"
error: Uncaught (in promise) Error: utils.sha512Sync must be set to use sync methods
    at Y (https://esm.sh/v113/@noble/ed25519@1.7.3/deno/ed25519.mjs:2:10289)
    at tt (https://esm.sh/v113/@noble/ed25519@1.7.3/deno/ed25519.mjs:2:10444)
    at Object.Zt [as sign] (https://esm.sh/v113/@noble/ed25519@1.7.3/deno/ed25519.mjs:2:10813)
    at Object.sign (file:///workspaces/capi/examples/ed25519_signature.ts:16:20)
    at Codec._encode (file:///workspaces/capi/frame_metadata/Extrinsic.ts:63:40)
    at Codec._encode (https://deno.land/x/scale@v0.11.0/codecs/lenPrefixed.ts:14:14)
    at Codec.encodeAsync (https://deno.land/x/scale@v0.11.0/common/codec.ts:122:10)
    at RunMap.fn (file:///workspaces/capi/fluent/CodecRune.ts:9:26)
    at RunMap._evaluate (file:///workspaces/capi/rune/ValueRune.ts:150:40)
    at async RunMap.evaluate (file:///workspaces/capi/rune/Rune.ts:222:14)


Region is missing when creating Arc for WINServer

Contact Details
No response
What happened?
Task: 04
Step: 10
Description of issue: Region is not populating when creatin a new ARC server for WINServer
Repro steps:

In the Add a server with Azure Arc page, select the Resource group you created earlier under Project details. Hint: RG-Defender

Fix:

Select "(US) East Us" from the drop-down list.

Lab
Lab 03 Exercise 01 Enable Microsoft Defender for Cloud
Relevant screenshots

Do you want to help us? 👏

[ ] Create a Pull Requestt by following this project's Contribution Guide

I noticed this too. I will add it.


Added react-is to package.json

Missing react-is devDep, so npm start is not working.

Closing this one as it seems to have gone stale.


Accounting for covariates

First off thanks for developing such a useful differential expression package!
I am wondering if it is possible to account for covariates when running edgeR through the Libra package? For example, RNA integrity number is a technical replicate-level covariate that is often included in differential expression models. I can't see any options for this in the run_de function.

We haven't yet put this in. We will add it in a coming update but please feel free to submit a PR if you want it quicker!

Good to hear that you will put it in an update! I ended up just writing my own function to run edgeR with covariates on the output from the to_pseudobulk function. Although I will note that any covariate I tried on my dataset gave me almost no significant results, so it is likely that the model is overfit...


FR: Provide a synchronous way to get the Instance ID

Operating System version: Android 9
Firebase SDK version: 17.0.0
Library version: ?
Firebase Product: Core

There is no way to synchronously get the FirebaseInstanceId token.
We use the firebase instance ID as part of our authentication scheme.  When the instance id token changes and the app has not been notified yet (no call to onNewToken), APIs fail, because the instance ID is invalid.  In this case, we want to intercept that failure response, refresh the firebase instance id, and retry.  However, because FirebaseInstanceId.getInstance().getInstanceId() returns a Task that always and can only callback to the MAIN thread with a result it makes it needlessly difficult to make this operation atomic.  The SDK should provide a synchronous way to get the token and trust clients to implement this responsibly in their code.

Wrong repo. This should be reported for the Android SDK.


Source button link: target page open in a new tab/window?

The link in a [source button] (https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/source-buttons.html) opens the corresponding target page, not in a new tab/window, but where we were when we clicked on it. During the editing session, we probably switch from pages to pages (for example, when submitting forms).
But if our changes to the source file(s) trigger a CI/CD regeneration of the documentation, we'd like to see the results. Unfortunately, we're a long way from the page we were on when we clicked on the 'source' button, and it's not easy to find it again.
It would therefore be interesting if the source button link could (optionally) open the corresponding target page in a new tab/window?

Seems like a good idea. In the meantime you can always Ctrl+click (in Firefox and I think also Chrome) to force links to open in new tabs.

oh, the pandora box ;-)
I suggest to read the following article on the pros and cons of opening links in a new tab: https://uxdesign.cc/linking-to-a-new-tab-vs-same-tab-f88b495d2187
In the described situation (source button) I think there is no reasons to force opening in a new tab:

it will not interupt any form filling (it's a static website)
we try to improve a11y including mobile-first good practicices
consistency: it would be the only button that open in a new tab in the whole site

I'm convinced by that article


DstScanlineSize?

First of all thanks for this amazing project!
I am doing my first tests with it, and I was wondering why the resizeImage method has a SrcScanlineSize arguments, but not a DstScanlineSize?
Best regards,
Peter

It was designed to produce a continuous image, however it may take a discontinous image as an option. I do not think even this option is much needed nowadays.

I also encountered this problem. I intended to place a thumbnail of an image in its inner area, but I couldn't do it without DstScanlineSize.

I hope it occupies the upper left corner, but because the DstScanlineSize cannot be set, it can only be like this. The target is equivalent to interlaced in two areas.

I think you should produce a new buffer. There is little practical sense to use AVIR as a bitmap blitter.


When I switch the list to render, there is a positioning problem

On the left is a list selection, and on the right is the operation area. When I switch the list to render different contents, if the last maximum offset is less than the current offset, the previous offset will be used as the offset value. This will cause a bug. I wrote a demo in the link to restore it. You can switch from five to four, or three to four.
https://codesandbox.io/s/wizardly-archimedes-1o1nx?file=/src/App.vue

On the left is a list selection, and on the right is the operation area. When I switch the list to render different contents, if the last maximum offset is less than the current offset, the previous offset will be used as the offset value. This will cause a bug. I wrote a demo in the link to restore it. You can switch from five to four, or three to four.
https://codesandbox.io/s/wizardly-archimedes-1o1nx?file=/src/App.vue

On the left is a list selection, and on the right is the operation area. When I switch the list to render different contents, if the last maximum offset is less than the current offset, the previous offset will be used as the offset value. This will cause a bug. I wrote a demo in the link to restore it. You can switch from five to four, or three to four.
https://codesandbox.io/s/wizardly-archimedes-1o1nx?file=/src/App.vue

The cause of the problem is that the Vue view has not been updated. It is OK to force the update with a variable. I updated the demo and the problem has been solved.


Old TLS libraries are missing from the websites

https://www.foundationdb.org/downloads/misc/joshua_tls_library.tar.gz is 404.
This prevents the Docker image from building.

They have since been moved to S3. Because we no longer support upgrade from old 5.x versions, these libraries are no longer needed in Docker images.


Generic interface parameters cannot be used in extends clause to extend from them

I am not sure it if this is a bug or a feature.
/* @flow */

// extends plain object with mongoose document properties

interface MongooseDocument<T> extends T  {
                            // ^ extends `T`. Could not resolve name
    toObject(): T;
}

type Account = {
    name: string,
    domains: Array<string>,
}

var a : ?MongooseDocument<Account> = null;

If this is a feature, what would be a supported way to handle above.
Thank you.

@mbergal Did you find a nice alternative to this pattern that satisfied the use-case?  I want to be able to type check a factory function that copies a template object passed as a parameter.

I was also looking to do this just now.


Dear Author,how can I run the demo_cpm_hand  with a video?

Dear Author,how can I run the demo_cpm_hand  with a video?  thx

Hi, I am also trying to do that, have you found a way to succeed about it? Could you share, or anyone else, who know how to give video as input and get an appropriate output, can share?

Hi @lilyswang and @DilaraSina ,
In theory its possible. In this repo, Kalman filter is implemented to track the hands and the initial position of the hand is assumed to be in the center of the frame. If in the input video, the hand initially or in any time frame is in the center then it could be detected. However, there is another approach which one can use and can be achieved by using the following steps.

Detect the hand in the frame (one can use body pose estimation or other hand detection algorithms).
Crop, zoom and pad the hand area such that the hand in the cropped image should cover max area and the size of the cropped image should be 256 x 256 pixels.
Pass it to  the joint point detector.

Hope it will help you :)
Thanks,
Asif

Thanks for your answer. In Readme file, it is said that 'You can also use video files like .avi, .mp4, .flv', as my understanding we can pass files with these extension and get an output, how can we do that?

Hi @DilaraSina,
If you just use the model from the code then you can pass any image you want to get the output. For e.g. read the video using OpenCV lib and pass each image to the model with criteria needed for the model i.e. 256 x 256 cropped image of the hand image with max area covered is hand.
Many Thanks,
Asif


Alignment issues in "contri.html"

Description
The team member description is not properly aligned with the images.

@aashimgarg I'm not contributing. I'll suggest leaving it unassigned so that there are issues to choose from for new contributors.

Ok Thanks @Lordtien


[SPARK-46937][SQL] Improve concurrency performance for FunctionRegistry

What changes were proposed in this pull request?
This PR propose to improve concurrency performance for FunctionRegistry.
Why are the changes needed?
Currently, SimpleFunctionRegistryBase adopted the mutable.Map caching function infos. The SimpleFunctionRegistryBase  guarded by this so as ensure security under multithreading.
Because all the mutable state are related to functionBuilders, we can delegate security to ConcurrentHashMap.
ConcurrentHashMap  has higher concurrency activity and responsiveness.
After this change, FunctionRegistry have better perf than before.
Does this PR introduce any user-facing change?
'No'.
How was this patch tested?
GA.
The benchmark test.
object FunctionRegistryBenchmark extends BenchmarkBase {

  override def runBenchmarkSuite(mainArgs: Array[String]): Unit = {
    runBenchmark("FunctionRegistry") {
      val iters = 1000000
      val threadNum = 4
      val functionRegistry = FunctionRegistry.builtin
      val names = FunctionRegistry.expressions.keys.toSeq
      val barrier = new CyclicBarrier(threadNum + 1)
      val threadPool = ThreadUtils.newDaemonFixedThreadPool(threadNum, "test-function-registry")
      val benchmark = new Benchmark("SimpleFunctionRegistry", iters, output = output)

      benchmark.addCase("only read") { _ =>
        for (_ <- 1 to threadNum) {
          threadPool.execute(new Runnable {
            val random = new Random()
            override def run(): Unit = {
              barrier.await()
              for (_ <- 1 to iters) {
                val name = names(random.nextInt(names.size))
                val fun = functionRegistry.lookupFunction(new FunctionIdentifier(name))
                assert(fun.map(_.getName).get == name)
                functionRegistry.listFunction()
              }
              barrier.await()
            }
          })
        }
        barrier.await()
        barrier.await()
      }

      benchmark.run()
    }
  }
}

The benchmark output before this PR.
Java HotSpot(TM) 64-Bit Server VM 17.0.9+11-LTS-201 on Mac OS X 10.14.6
Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz
SimpleFunctionRegistry:                   Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
------------------------------------------------------------------------------------------------------------------------
only read                                         54858          55043         261          0.0       54858.1       1.0X

The benchmark output after this PR.
Java HotSpot(TM) 64-Bit Server VM 17.0.9+11-LTS-201 on Mac OS X 10.14.6
Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz
SimpleFunctionRegistry:                   Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
------------------------------------------------------------------------------------------------------------------------
only read                                         20202          20264          88          0.0       20202.1       1.0X

Was this patch authored or co-authored using generative AI tooling?
'No'.

ping @cloud-fan @viirya @dongjoon-hyun


Can We save the LIME Tabular chart using matplotlib

I want to save the Lime Tabular chart using matplotlib..Sample chart is attached.

yes i found the solution
https://stackoverflow.com/questions/57274546/is-it-possible-to-use-output-file-instead-of-show-in-notebook-when-displaying-li


Is default execution context on Scala.js really queue?

The documentations for AsyncWordSpec says:

On both the JVM and Scala.js, the default execution context provided by ScalaTest's asynchronous testing styles confines execution to a single thread per test. On JavaScript, where single-threaded execution is the only possibility, the default execution context is scala.scalajs.concurrent.JSExecutionContext.Implicits.queue. On the JVM, the default execution context is a serial execution context provided by ScalaTest itself.

I am trying to verify this, but it seems to me even Scala.js uses SerialExecutionContext

I get a different behaviour in my tests when explicitly passing Future { ??? } (queue) instead of plain Future { ??? }
I get the same behaviour with plain Future { ??? } and with Future { ??? } (this.executionContext)
I do not see any source code for AsyncTestSuite other than https://github.com/scalatest/scalatest/blob/3.2.x-new/jvm/core/src/main/scala/org/scalatest/AsyncTestSuite.scala, which contains its own serialExecutionContext and does not reference the queue in any way.

While serialExecutionContext is working very similar to the JS queue context, one gets a different behavior when mixing them (i.e. some futures using one while some the other one). I am convinced the documentation is not accurate and should probably read:

On both the JVM and Scala.js, the default execution context provided by ScalaTest's asynchronous testing styles confines execution to a single thread per test. On both platforms the default execution context is a serial execution context provided by ScalaTest itself.

(It is possible I have overlooked something - in such case feel free to proved me wrong).

@OndrejSpanel I think you're right, as far as I can remember we changed both jvm and js to use the same SerialExecutionContext so that they are consistent on both jvm and js.  @bvenners Do you mind to confirm if that's correct by design?


MudBaseInput: Add "ShrinkLabel" parameter that prevents label from moving

Description

Adds support for a "Shrink" parameter to MudTextField, MudAutocomplete and MudSelect. The Shrink parameter prevents the label from moving down into the field when the field is empty. This is inspired by the prop of the same name in Material UI https://mui.com/material-ui/api/input-label/#input-label-prop-shrink
This partially fixes #1114
How Has This Been Tested?

This has been tested visually.
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[x] The PR is submitted to the correct branch (dev).
[x] My code follows the code style of this project.
[ ] I've added relevant tests.

LGTM with respect to the code changes. Would be nice to add to the docs so this new parameter is represented there.

@henon I added an example in TextFieldPage and changed the name of the property to "ShrinkLabel" to make it clear that its the label we are shrinking, not the input.

Thanks @Etzix

is this working? going through the playground it doesn't seem to be working:

Adding the property ShrinkLabel doesn't seem to apply the mud-shrink class:

Sorry if I'm commenting in the wrong place.

@headauto Due to a deploy issue (now fixed) the try.mudblazor.com was on the previous 6.15.0 version.
Now updated to 6.16.0 It should work.

It would be so nice to have a global setting for this instead of manually putting it everywhere...

That could still be done. We have MudGlobal for that. The inputs could take their default value from it.


chore: bump go-kong to v0.18.0

Codecov Report

Merging #378 (9465347) into main (8fa14fe) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main     #378   +/-   ##
=======================================
  Coverage   54.19%   54.19%
=======================================
  Files          61       61
  Lines        4971     4971
=======================================
  Hits         2694     2694
  Misses       1978     1978
  Partials      299      299

Impacted Files
Coverage Δ

utils/types.go
22.05% <0.00%> (ø)

Continue to review full report at Codecov.

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


Flow Modern ignores output path and writes generated files next to input queries

Specifically, for the input file foo/queries.graphql it always writes files to foo/__generated__/*, regardless of what output path is given.
If your source code is laid out to separate directories "read-only inputs -> generated source code" (for example, for easy build rules, for isolated paths for CI builds, etc), this is a challenge. With the current code the only way to avoid that is:

Create a temporary directory.
Copy the query file there.
Run apollo-codegen
Move the files from the temporary directory to your actual destination.

It would be helpful if output path were respected and the target directory name were customizable.

Thank you for filing this ticket and I agree that this should be done.
We went from 1 generated file to multiple generated files for various reasons, and just haven't had a chance to think about output path.
Can you give me an example of what your directory layout looks like + where you'd ultimately want files to go? I just want to make sure the implementation satisfies your use cases and any other use cases folks might have.

Sure. Currently as an input we have:

backend-queries/<backend-name>.graphql

Some codegen scripts write to:

src/gen/<backend-name>/*

Along with some system-specific code generation.
I don't think this directory layout is ideal, but flexibility is nice to have. The nice thing about separating the input and output directories like the above is that it's fairly easy to set up directory watchers or globbed Makefile rules.

the challenge with having flexibility around directory layout is knowing how much flexibility to offer.
right now, *-modern targets co-locate the queries intentionally so they're easy to find, since the type definitions are right next to your queries. it seems like this isn't ideal for tooling? what would be better for the tooling you have in mind?

Hi @lewisf, apollo-codegen already supports and documents an output option:
https://github.com/apollographql/apollo-codegen/blob/39c2f8e901f9211f4ab57eadd656c6bad24b6a8a/src/cli.js#L109-L113
The *-modern targets ignore it, though:
https://github.com/apollographql/apollo-codegen/blob/39c2f8e901f9211f4ab57eadd656c6bad24b6a8a/src/generate.ts#L73

@erydo ah -- this was added for other targets, and we should be able to add it for *-modern.
the only weirdness that needs to be considered is that the default behavior could not be configured via this option. What if we had two different sets of output related flags?
For outputting into a single directory:
--output ./

For colocation (default behavior):
--colocate --colocate-dir-name "__generated__"

And we can have a check that validates that only one of the options are being passed?

This issue is also the case with typescript-modern.

This seems to be fixed now. I really thing the for loop thing isn't a great solution for co-located queries.

I actually assumed that colocating types in __generated__ folders is intended behaviour. At least I'm used to it with relay. From what I can see, this is now not possible anymore.
Is this really the way to go? I found it quite hard to always reference a root directory or file that contains all my type definitions.
I haven't yet considered that this might have some benefits over the previous approach and it took me quite a while to figure out that colocating queries was possible with -modern targets. I feel that enforcing the output is not the best choice to be honest. Why don't we keep output optional, but for sure consider it during generation process in case it is set?
I would appreciate any links or discussions that might have already featured this topic to better understand why colocating might be a bad practice.

Apollo CLI now supports three methods of emitting modern types, which cover this issue!

__generated__ style: outputting files that match the original sources layout (default mode)
--outputFlat: split types but place all the files into a single folder (output arg must be a folder)
--outputFlat: place all types into a single file (output arg must be a file)


cmd: Add ls command.

Add ls to docker-app.
Usage
$ docker-app ls
REPOSITORY                              TAG                 IMAGE ID            CREATED             SIZE
wordpress.dockerapp                     1.2.1               ccd088148f5d        2 days ago          811B
wordpress.dockerapp                     1.2.0               622879a063af        5 days ago          749B
internal.dockerapp                      0.4.0               b7522105b6a6        2 weeks ago         522B

$ docker-app ls internal
REPOSITORY                              TAG                 IMAGE ID            CREATED             SIZE
internal.dockerapp                      0.4.0               b7522105b6a6        2 weeks ago         522B

Work in progress:

[x] Finish implementation
[x] e2e tests
[x] Support -q (so we can do docker-app ls -q | xargs docker image rm
[ ] (Change REPOSITORY to APPLICATION)

Closing in favor of #234


CIS CHeck Ensure the SQL Server’s MSSQL Service Account is Not an Administrator

Ensure the SQL Server’s MSSQL Service Account is Not an Administrator

Closed #749


NavLink onActive callback

Is there a way to know when the NavLink is active? something like this?:
<NavLink to="/mylink" activeClassName="active" onActive={this.doSomething} />

This is a bug tracker, not a support system. For usage questions, please use Stack Overflow or Reactiflux where there are a lot more people ready to help you out. Thanks!


Cleaning up master

I just wanted to tidy up the code, files and folders a bit.
Changes I have made:

Linted the code in main
Created a .pep config for other devs to use with autopep8
deleted random data files
created an data output folder
re-routed the data output in to the output folder
deleted notebook (isochrone experiments one)
deleted junk module - databasemods.py
updated the environment yaml  (this is the trickiest change) I suggest testing this by creating a new environment from it and seeing if the code runs.

Only need to look at these commits - they cover what I have described in the changes above

Fixed merge conflicts from #329 and then linted the new code using flake8.

Bug found when running pipeline after inserting .gitkeep files. Fixed in the above commit and whole pipeline tested.
Closes #341

Having some struggles with the new virtual environment. I'll preserve for now and detail the blockers i'm getting but may need to ask for help.

Okay. Let us know what the snags are and we can try to troubleshoot. It would be good to get a definitive dependencies list together as we approach version 1.0.

Just tried creating a new environment using the .environment.yml: conda env create --name SDG_yaml --file=environment.yml python=3.8 and ran into ResolvePackageNotFound errors.
This listed lots of packages under dependencies that couldn't be found. This is because the yaml contains platform specific build constraints e.g. =hf or =py38. I assume that the environment.yml was created in a linux environment?
I solved this by removing these (see attached environment_no_builds.yml) or you could add the --no-builds tag when creating the .yml.
environment_no_builds.zip
Creating the environment again got much further but left a few dependencies that still couldn't be resolved

This looks to be because they only exist for linux / mac os so I cant install them on my windows machine. Searching for a couple in anaconda cloud showed no version for windows, and there was nothing on PyPi. Hence, im not sure how we would deal with these dependencies if we wanted a user to create the environment on any OS.

If requirements txt works then let's use it!
I thought the conda envionment yaml was a bit more robust, but maybe the extra parameters in there make it more problematic when sharing over different OSs.
Has anyone used Poetry? Maybe this is a solution. Then again, if requirements.txt works, let's not do something else to 'fix' it.

This looks to be because they only exist for linux / mac

Yes they definitely look like *nixy libraries.

We updated the notes for developers in the docs when I joined the team and tested the process so should all work i.e. requirements.txt for packages

We have decided to make a requirements txt by hand, by:

looking at each .py file to see what third party imports are made, and make each a requirement
looking at the version numbers of those libraries from the environment yaml which has already been committed

Also:

Delete the environment yaml

Paige will create a new environment and try to run the pipeline.

Requirements.txt cleaned to just the required packages but having trouble setting up environment through conda as per instructions in the docs. The only way I can create the correct environment is pip install requirements.txt.
Suggesting we move this discussion to #203 (where I have left some comments on my issues) and then close this PR. The updated environment.yml has no effect on whether someone can setup an environment for the project because its currently not used.


VPN connection OK but Internet doesn't work!

Hi,
i set up an OpenVPN server on my Raspberry with pivpn script and this server configuration:
dev tun
proto udp
port 1194
ca /etc/openvpn/easy-rsa/pki/ca.crt
cert /etc/openvpn/easy-rsa/pki/issued/XXXXXXXX_7d38a7eb-1694-4f2d-ba01-6a8a68d80186.crt
key /etc/openvpn/easy-rsa/pki/private/XXXXXXXX_7d38a7eb-1694-4f2d-ba01-6a8a68d80186.key
dh /etc/openvpn/easy-rsa/pki/dh2048.pem
topology subnet
server <IP_ADDRESS> <IP_ADDRESS>
# Set your primary domain name server address for clients
push "dhcp-option DNS <IP_ADDRESS>"
push "dhcp-option DNS <IP_ADDRESS>"
# Prevent DNS leaks on Windows
push "block-outside-dns"
# Override the Client default gateway by using <IP_ADDRESS>/1 and
# <IP_ADDRESS>/1 rather than <IP_ADDRESS>/0. This has the benefit of
# overriding but not wiping out the original default gateway.
push "redirect-gateway def1"
client-to-client
client-config-dir /etc/openvpn/ccd
keepalive 15 120
remote-cert-tls client
tls-version-min 1.2
tls-auth /etc/openvpn/easy-rsa/pki/ta.key 0
cipher AES-256-CBC
auth SHA256
user openvpn
group openvpn
persist-key
persist-tun
crl-verify /etc/openvpn/crl.pem
status /var/log/openvpn-status.log 20
status-version 3
syslog
verb 3
#DuplicateCNs allow access control on a less-granular, per user basis.
#Remove # if you will manage access by user instead of device.
#duplicate-cn
# Generated for use by PiVPN.io

The client onfiguration is this (i deleted the personal informations such as the DNS name and the certificates/key):
client
dev tun
proto udp
remote [DNS]
resolv-retry infinite
nobind
key-direction 1
remote-cert-tls server
tls-version-min 1.2
verify-x509-name raspchri_7d38a7eb-1694-4f2d-ba01-6a8a68d80186 name
cipher AES-256-CBC
auth SHA256
auth-nocache
verb 3
<ca>
-----BEGIN CERTIFICATE-----
[CA_CERT]
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
[CERT]
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
[KEY]
-----END PRIVATE KEY-----
</key>
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
[OPENVPN_STATI_KEY]
-----END OpenVPN Static key V1-----
</tls-auth>

The problem is the client can connect correclty to the VPN server and navigate the local network but it doesn't navigate the Internet. When i try to open a web page i receive an error with the names resolution; during the installation i selected the Google DNS as DNS, but it seems not work.
Can anyone ehelp me understanding what i am doing wrong?
Thanks a lot in advance
Christian

Debug information would be helpful: pivpn -d as shown in the FAQ

@TinCanTech Hi, i can confirm you all the checks in the FAQ are OK (i tested it this mornign);
these are the other information:
sudo iptables -S
pi@raspchri:~ $ sudo iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-N f2b-sshd
-A INPUT -p tcp -m multiport --dports 22 -j f2b-sshd
-A INPUT -p tcp -m multiport --dports 22 -j f2b-sshd
-A INPUT -i wlan0 -p udp -m udp --dport 1194 -m comment --comment openvpn-input-rule -j ACCEPT
-A INPUT -p tcp -m multiport --dports 22 -j f2b-sshd
-A f2b-sshd -s <IP_ADDRESS>/32 -j REJECT --reject-with icmp-port-unreachable
-A f2b-sshd -s <IP_ADDRESS>/32 -j REJECT --reject-with icmp-port-unreachable
-A f2b-sshd -j RETURN
-A f2b-sshd -j RETURN
-A f2b-sshd -j RETURN
pi@raspchri:~ $

sudo iptables -t nat -S
pi@raspchri:~ $ sudo iptables -t nat -S
-P PREROUTING ACCEPT
-P INPUT ACCEPT
-P POSTROUTING ACCEPT
-P OUTPUT ACCEPT
-A POSTROUTING -s <IP_ADDRESS>/24 -o wlan0 -m comment --comment openvpn-nat-rule -j MASQUERADE
-A POSTROUTING -s <IP_ADDRESS>/24 -o wlan0 -m comment --comment openvpn-nat-rule -j MASQUERADE
-A POSTROUTING -s <IP_ADDRESS>/24 -o wlan0 -j MASQUERADE
pi@raspchri:~ $

pivpn -d
::: Generating Debug Output
::::            PiVPN debug              ::::
=============================================
::::            Latest commit            ::::
Branch: master
Commit: f8cb945af15a1ca0cf063475c6e1557c6e8da06c
Author: 4s3ti
Date: Fri Jun 10 16:10:57 2022 +0200
Summary: Merge branch 'test'
=============================================
::::        Installation settings        ::::
PLAT=Raspbian
OSCN=buster
USING_UFW=0
pivpnforceipv6route=0
IPv4dev=wlan0
dhcpReserv=1
IPv4addr=<IP_ADDRESS>/24
IPv4gw=<IP_ADDRESS>
install_user=pi
install_home=/home/pi
VPN=openvpn
pivpnPROTO=udp
pivpnPORT=1194
pivpnDNS1=<IP_ADDRESS>
pivpnDNS2=<IP_ADDRESS>
pivpnSEARCHDOMAIN=
pivpnHOST=REDACTED
TWO_POINT_FOUR=0
pivpnENCRYPT=2048
USE_PREDEFINED_DH_PARAM=1
INPUT_CHAIN_EDITED=1
FORWARD_CHAIN_EDITED=0
INPUT_CHAIN_EDITEDv6=
FORWARD_CHAIN_EDITEDv6=
pivpnDEV=tun0
pivpnNET=<IP_ADDRESS>
subnetClass=24
pivpnenableipv6=0
ALLOWED_IPS=""
UNATTUPG=0
INSTALLED_PACKAGES=(openvpn)
HELP_SHOWN=1
=============================================
::::  Server configuration shown below   ::::
dev tun
proto udp
port 1194
ca /etc/openvpn/easy-rsa/pki/ca.crt
cert /etc/openvpn/easy-rsa/pki/issued/raspchri_7d38a7eb-1694-4f2d-ba01-6a8a68d80186.crt
key /etc/openvpn/easy-rsa/pki/private/raspchri_7d38a7eb-1694-4f2d-ba01-6a8a68d80186.key
dh /etc/openvpn/easy-rsa/pki/dh2048.pem
topology subnet
server <IP_ADDRESS> <IP_ADDRESS>
# Set your primary domain name server address for clients
push "dhcp-option DNS <IP_ADDRESS>"
push "dhcp-option DNS <IP_ADDRESS>"
# Prevent DNS leaks on Windows
push "block-outside-dns"
# Override the Client default gateway by using <IP_ADDRESS>/1 and
# <IP_ADDRESS>/1 rather than <IP_ADDRESS>/0. This has the benefit of
# overriding but not wiping out the original default gateway.
push "redirect-gateway def1"
client-to-client
client-config-dir /etc/openvpn/ccd
keepalive 15 120
remote-cert-tls client
tls-version-min 1.2
tls-auth /etc/openvpn/easy-rsa/pki/ta.key 0
cipher AES-256-CBC
auth SHA256
user openvpn
group openvpn
persist-key
persist-tun
crl-verify /etc/openvpn/crl.pem
status /var/log/openvpn-status.log 20
status-version 3
syslog
verb 3
#DuplicateCNs allow access control on a less-granular, per user basis.
#Remove # if you will manage access by user instead of device.
#duplicate-cn
# Generated for use by PiVPN.io
=============================================
::::  Client template file shown below   ::::
client
dev tun
proto udp
remote REDACTED 1194
resolv-retry infinite
nobind
key-direction 1
remote-cert-tls server
tls-version-min 1.2
verify-x509-name raspchri_7d38a7eb-1694-4f2d-ba01-6a8a68d80186 name
cipher AES-256-CBC
auth SHA256
auth-nocache
verb 3
=============================================
::::    Recursive list of files in       ::::
::: /etc/openvpn/easy-rsa/pki shows below :::
/etc/openvpn/easy-rsa/pki/:
ca.crt
crl.pem
Default.txt
dh2048.pem
index.txt
index.txt.attr
index.txt.attr.old
index.txt.old
issued
lenovo.ovpn
openssl-easyrsa.cnf
private
revoked
safessl-easyrsa.cnf
serial
serial.old
smartphone.ovpn
ta.key
vars
vars.example

/etc/openvpn/easy-rsa/pki/issued:
lenovo.crt
raspchri_7d38a7eb-1694-4f2d-ba01-6a8a68d80186.crt
smartphone.crt

/etc/openvpn/easy-rsa/pki/private:
ca.key
lenovo.key
raspchri_7d38a7eb-1694-4f2d-ba01-6a8a68d80186.key
smartphone.key

/etc/openvpn/easy-rsa/pki/revoked:
private_by_serial
reqs_by_serial

/etc/openvpn/easy-rsa/pki/revoked/private_by_serial:
DE2AB18813ADE4F121500B9F48FF700D.key

/etc/openvpn/easy-rsa/pki/revoked/reqs_by_serial:
DE2AB18813ADE4F121500B9F48FF700D.req
=============================================
::::            Self check               ::::
:: [OK] IP forwarding is enabled
:: [OK] Iptables MASQUERADE rule set
:: [OK] Iptables INPUT rule set
:: [OK] OpenVPN is running
:: [OK] OpenVPN is enabled (it will automatically start on reboot)
:: [OK] OpenVPN is listening on port 1194/udp
=============================================
:::: Having trouble connecting?
::: Copy saved to /tmp/debug.log
:::

The strange thing is that now it is working!
I will try in the afternoon with other WiFi and internet connections to confirm you now it's OK....this is very strange!

The strange thing is that now it is working!

That is the reason to report here to pivpn.  Perhaps these guys can explain the mystery.
But .. at least it works, which is good news.

well its hard to tell, nothing looks wrong form the info provided. glad its working after restart. closing.


Set maya workspace on startup

You can delete this branch after merge. It's a misnomer at this point.

Looks good to me!


php artisan panel:crud create controller in subdirectory

Command php artisan panel:crud gallery creates controller and model.
But I want to keep all crud controllers in subdirectory app\Http\Controllers\Admin
How to do that?

right now is not possible to do that , would be great to send a pull request

@schel4ok : Just go to /config/panel.php and add the following line to the return array:
'controllers'      => '\\App\\Http\\Controllers\\Admin',
And put your crud controllers in the folder you called Admin.
It should work, at least with the latest version of panels.

@vramiguez thank you for your help


🐛 [bug] - Exercise with Kibana is not working as described

📝 Description
The exercise described here is not working as expected. After creating the index pattern for app-* and field @timestamp the index is created, but whenever one visits the Discover page one is being systematically redirected to the index creation step.
🚶 Steps to reproduce
Just repeat the instructions provided on this Kibana instance

OK.. i have created an RHPDS TL500 cluster OK (so new cluster, new TL500 tooling)
Kibana logging working ok for me i.e. i could not reproduce this.

Please feel free to reopen if you can debug more in your environment.

closing for now. could not reproduce.

On our cluster the problem still persists. @rmarting any chance you can have a look to understand the root cause?

I tested this exercise in a new and fresh OpenShift cluster and it is working as expected.
@fc7 :thinking: It seems that the cluster you are working on is not in the best situation. It could be a side effect of the stability issues during the week. I am not sure if we can find the root cause of this issue at this point. I agree with @eformat to close the issue for now and let's see if it is reproducible in the future.


Add Chinese Simplified Translation for Open Model Thread Group

Description
Add Chinese Simplified Translation for Open Model Thread Group
Motivation and Context
Add Chinese Simplified Translation for new component

Checklist:

[x] My code follows the code style of this project.
[x] I have updated the documentation accordingly.

@kaola89 , thanks for the contribution.
By the way, do you think it would make sense to make "schedule string" translatable?
E.g. what would be the proper Chinese for rate(3/sec) random_arrivals(1 min) rate(100/hour) random_arrivals(2 hour) rate(6/sec)?

@kaola89 , thanks for the contribution.
By the way, do you think it would make sense to make "schedule string" translatable? E.g. what would be the proper Chinese for rate(3/sec) random_arrivals(1 min) rate(100/hour) random_arrivals(2 hour) rate(6/sec)?

@vlsi
yeah,  I think local language will let user know their settings better. Do you have any plan to make them translatable? If need any support with Chinese, I would like to contribute with this.
Your case Chinsese like 速率(3/秒) 任意到达(1 分钟) 速率(100/小时) 任意到达(2 小时) 速率(6/秒)


Investigate Issues w/ JSON Parsing

Describe the issue
Error Log as follows:
[ERROR]	2023-07-22T22:30:17.648Z	f6861992-9bfd-43c9-b094-1f8eed195d45	Unable to retrieve replay JSON: Expecting value: line 1 column 1 (char 0)

I suspect it's caused by timeout to fetch replay JSON, which is causing issues since it can't be read properly.
Acceptance Criteria

[ ] Investigate root-cause
[ ] Find a solution (eg. increasing timeout)

Likely timeout issue after Beta / Prod re-testing. Increase timeout.

Aforementioned comment is the conclusion. Backfill has been configured in the cases where if timeouts occur and cause an influx of bad data, we can delete and try again.


[Concurrency] fix symbol linkage of asyncHandler class methods.

Fixes a TBD verification error.
rdar://72329062

@swift-ci smoke test and merge


Not a big deal, but super annoying

If you are on the organisms page and need to click "more" in order to select more than one of the not shown check boxes, it always reloads the page and closes the "more" list, so then you have to click "more" again, select the next check box, the list reloads and you have to click "more" and then select the next check box, wait for the list to reload and click more..... .... ....

no more issue on current production.


feat: elmls compatibility with elm-tooling

As stated in the elm-language-server docs – the default value of elm binaries should be an empty string so the language server searches for binaries as local project installs and only use global ones as fallback. If we specify it as the standard "global values" like this config is currently doing, we're just going straight to the fallback, breaking compatibility with local installs.
This change is essential for compatibility with tools like elm-tooling which is becoming the standard way of maintaining elm related tools with different versions per project.

Can we just drop the keys? Does this have implications for current users or should it continue to work without changes?

I'm not familiar with the innards of lspconfig but those are optional settings on the elm-language-server.
And yep! The current users should work just as usual since the fallback does exactly what the current implementation does.

Yup! Will do - I'm afk now but I'll let you know! Thanks

@mjlbach I tested your suggestion and it indeed works as expected without those properties. I updated the PR accordingly.


Right click inside Query value input field does NOT give context menu for Copy & Paste

Storage Explorer Version: March 2021 (Version 1.18.1)
Build Number:  20210304.5
Platform/OS: Windows 10
Architecture: x64
Regression From:  not known
Bug Description
Azure Storage Table -> Query -> Value input -> no right click context menu displayed
Steps to Reproduce
Open Azure Storage Table
Query
Right click in Value text field as fi to copy and paste
Expected Experience
Context menu with Copy & Paste
Actual Experience
Nothing happens. CTRL+V / CTRL+C works fine
Additional Context

Same for dialog box "Connect to Azure Storage", you can't right click and paste a SASUri into "Blob container or directory SAS URL", thus, if you have a SASUri in the clipboard, you can only click the box and use the keyboard (CTRL+C) to paste the SAURI. For highly automated actions such as copying from somewhere to the mentioned box, going to the keyboard when you are working with the mouse it's a significant slowdown.
Additionally, once you are on the keyboard, you expect that pressing ENTER corresponds to pressing the "Next" button, which doesn't happen. Same for the "Connect" button once you are on the next page.
A double click on a selection item (such as "How will you connect to the blob container?") in a wizard should also move to the next page, which again doesn't happen.
It would appear that a generic review for dialog boxes adhering to common Windows UI behaviours is needed.

This seems to be true for almost all of our input elements. Can we figure out why this is happening and understand what it would take to fix this?

Inputs by default in Electron do not have any context menus. The context menus would have to be created and attached to each input in the app to enable this functionality. The cost of doing so can be mitigated somewhat by the use of components.
Based on the size of the work here, I don't think we can make this into 1.33.0.


FEATURE: Ability to check-in/check-out on the same day

Unless I'm missing some configuration of the props, I don't see any way to enable users to check-in and check-out on the same day (I know it's a slightly odd edge case but we of course need this feature).
Any plan to support this?

It's indeed an odd edge case 🤔 There are some checks on the code to prevent the user from selecting the same day for checkin and checkout. I'm currently working on v2 that will be a major rewrite of this component. I'll add this feature in the roadmap

Yes, we're using the component to pull up historical data and we'd like the ability to just pull a day's worth of data.  We've worked around it by setting the max date to be tomorrow and telling users if they want to select a single day they select the day they want and then the "next" day.
It's certainly not the best UX solution, but it works without having to fork your code or do other hacky things.
But an option or setting to check-in/out on the same day would be much appreciated.

@nkoterba I'll release v2.0.0 soon, and you'll be able to set the minNights to 0 if you want to allow checkIn and checkOut on the same day.


Create a database based on a diagram

Based on a database diagram, we interpreted it and implemented the SQL needed to build a database.
Project requirements:

Take a look at the following database diagram for a clinic:

Create a file named schema_based_on_diagram.sql where you implement the database from the diagram.
Join tables from many-to-many relationships might not appear in the diagram, but you still need them.
Remember to add the FK indexes.

Thanks @t-yanick.


[asio, tinyobjloader] Update to new version

Related to #6618

asio: update to version 1.13.0
tinyobjloader: update to version 1.0.7

Duplicate with #6099, so I am closing this PR for now.


Travis status is misleading

Example:
https://travis-ci.org/dashpay/dash/jobs/446232091 -- success
but if you look at logs you'll see that it should be a failure actually - https://api.travis-ci.org/v3/job/446232091/log.txt

[1mTEST                           | PASSED | DURATION
wallet-hd.py                   | True   | 31 s
fundrawtransaction.py          | True   | 40 s
fundrawtransaction-hd.py       | True   | 64 s
walletbackup.py                | True   | 140 s
autoix-mempool.py              | False  | 377 s
p2p-autoinstantsend.py         | False  | 432 s
p2p-instantsend.py             | False  | 102 s
...
ALL                            | False  | 3502 s (accumulated)

Fixed via #2385


Fix renderTurboStream return

#15 incorrectly refactored the renderTurboStream method so that it always returns a rejected Promise.
This fixes that by returning properly when the contentType is correct.

And updated @marcelolx 👍

Thanks @excid3

oops sorry @excid3, that is my fault


Error running DreamView

OS: Ubuntu 18.04.3
Apollo source code
Apollo version: master branch ( I guess it would be 5)
I tried all the solutions in this link Debugging dreamview start after downloading pcl and building it with modified CMakeLists file and replacing it I get the following error (My cpu does not have FMA/FMA3 instructions):
(gdb) r
Starting program: /home/hadi/.cache/bazel/_bazel_hadi/540135163923dd7d5820f3ee4b306b32/execroot/apollo/bazel-out/local-dbg/bin/modules/dreamview/dreamview --flagfile=/apollo/modules/dreamview/conf/dreamview.conf
/home/hadi/.cache/bazel/_bazel_hadi/540135163923dd7d5820f3ee4b306b32/execroot/apollo/bazel-out/local-dbg/bin/modules/dreamview/dreamview: error while loading shared libraries: libpcl_common.so.1.9: cannot open shared object file: No such file or directory
[Inferior 1 (process 28506) exited with code 0177]

This is the old pcl backup
hadi@in_dev_docker:/apollo$ ls /usr/local/lib/pcl.origin
libpcl_common.so          libpcl_keypoints.so.1.9.1     libpcl_sample_consensus.so.1.9
libpcl_common.so.1.9      libpcl_ml.so                  libpcl_sample_consensus.so.1.9.1
libpcl_common.so.1.9.1    libpcl_ml.so.1.9              libpcl_search.so
libpcl_features.so        libpcl_ml.so.1.9.1            libpcl_search.so.1.9
libpcl_features.so.1.9    libpcl_octree.so              libpcl_search.so.1.9.1
libpcl_features.so.1.9.1  libpcl_octree.so.1.9          libpcl_segmentation.so
libpcl_filters.so         libpcl_octree.so.1.9.1        libpcl_segmentation.so.1.9
libpcl_filters.so.1.9     libpcl_outofcore.so           libpcl_segmentation.so.1.9.1
libpcl_filters.so.1.9.1   libpcl_outofcore.so.1.9       libpcl_stereo.so
libpcl_io.so              libpcl_outofcore.so.1.9.1     libpcl_stereo.so.1.9
libpcl_io.so.1.9          libpcl_people.so              libpcl_stereo.so.1.9.1
libpcl_io.so.1.9.1        libpcl_people.so.1.9          libpcl_surface.so
libpcl_io_ply.so          libpcl_people.so.1.9.1        libpcl_surface.so.1.9
libpcl_io_ply.so.1.9      libpcl_recognition.so         libpcl_surface.so.1.9.1
libpcl_io_ply.so.1.9.1    libpcl_recognition.so.1.9     libpcl_tracking.so
libpcl_kdtree.so          libpcl_recognition.so.1.9.1   libpcl_tracking.so.1.9
libpcl_kdtree.so.1.9      libpcl_registration.so        libpcl_tracking.so.1.9.1
libpcl_kdtree.so.1.9.1    libpcl_registration.so.1.9    libpcl_visualization.so
libpcl_keypoints.so       libpcl_registration.so.1.9.1  libpcl_visualization.so.1.9
libpcl_keypoints.so.1.9   libpcl_sample_consensus.so    libpcl_visualization.so.1.9.1

and this is the new one:
hadi@in_dev_docker:/apollo$ ls /usr/local/lib/libpcl*
/usr/local/lib/libpcl_common.so           /usr/local/lib/libpcl_octree.so.1.7.2
/usr/local/lib/libpcl_common.so.1.7       /usr/local/lib/libpcl_recognition.so
/usr/local/lib/libpcl_common.so.1.7.2     /usr/local/lib/libpcl_recognition.so.1.7
/usr/local/lib/libpcl_features.so         /usr/local/lib/libpcl_recognition.so.1.7.2
/usr/local/lib/libpcl_features.so.1.7     /usr/local/lib/libpcl_registration.so
/usr/local/lib/libpcl_features.so.1.7.2   /usr/local/lib/libpcl_registration.so.1.7
/usr/local/lib/libpcl_filters.so          /usr/local/lib/libpcl_registration.so.1.7.2
/usr/local/lib/libpcl_filters.so.1.7      /usr/local/lib/libpcl_sample_consensus.so
/usr/local/lib/libpcl_filters.so.1.7.2    /usr/local/lib/libpcl_sample_consensus.so.1.7
/usr/local/lib/libpcl_io.so               /usr/local/lib/libpcl_sample_consensus.so.1.7.2
/usr/local/lib/libpcl_io.so.1.7           /usr/local/lib/libpcl_search.so
/usr/local/lib/libpcl_io.so.1.7.2         /usr/local/lib/libpcl_search.so.1.7
/usr/local/lib/libpcl_io_ply.so           /usr/local/lib/libpcl_search.so.1.7.2
/usr/local/lib/libpcl_io_ply.so.1.7       /usr/local/lib/libpcl_segmentation.so
/usr/local/lib/libpcl_io_ply.so.1.7.2     /usr/local/lib/libpcl_segmentation.so.1.7
/usr/local/lib/libpcl_kdtree.so           /usr/local/lib/libpcl_segmentation.so.1.7.2
/usr/local/lib/libpcl_kdtree.so.1.7       /usr/local/lib/libpcl_surface.so
/usr/local/lib/libpcl_kdtree.so.1.7.2     /usr/local/lib/libpcl_surface.so.1.7
/usr/local/lib/libpcl_keypoints.so        /usr/local/lib/libpcl_surface.so.1.7.2
/usr/local/lib/libpcl_keypoints.so.1.7    /usr/local/lib/libpcl_tracking.so
/usr/local/lib/libpcl_keypoints.so.1.7.2  /usr/local/lib/libpcl_tracking.so.1.7
/usr/local/lib/libpcl_octree.so           /usr/local/lib/libpcl_tracking.so.1.7.2
/usr/local/lib/libpcl_octree.so.1.7

which version of pcl I should use with apollo?

Do you get any error message after switching pcl to v.1.7.2?

Yes, DreamView didn't started and complained about requiring pcl-1.9.1

the pcl lib has been upgraded to 1.9 recently, could you try installing pcl-1.9.1 instead? We will update the doc to reflect the latest change. Thank you!

Thank you very much, I get to see the DreamView in my browser. Where is tutorial of Using dream view.

I get this on my Screen :

You can see the Dreamview tutorial here


How to load after building on linux

sudo gdb -batch-silent -p $(pidof csgo_linux64) -ex "call (void*)__libc_dlopen_mode("$PWD/libOsiris.so", 2)"

https://github.com/kubo/injector works as well :D

better question tho is how did u manage to compile it lmfao


Are there any plans to make this compatible with Airflow 2

Not sure if this has been tested with Airflow 2 or if there are plans to make it compatible. Thanks for your contribution!

Airflow 2 不兼容这边有什么方案吗

airflow 2 什么时候能够兼容呢


Rec. 2020 Color Conversions RGB <-> Y'UV #7

These are the formulas and constants I used for the color conversion

Hi @karthiknadig, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Karthik Nadig). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

I'm planning to do a bit of DIrectXMath 3.12 work in the new year, and will look at adding this (as well as test coverage) then.
Thanks!

Looks good to me. I just need to add some test cases... Thanks!

Where did you get those formulas? I just wanted to double-check them.

I followed recommendations for the constants from here:
https://www.itu.int/dms_pubrec/itu-r/rec/bt/R-REC-BT.2020-2-201510-I!!PDF-E.pdf
https://www.itu.int/dms_pubrec/itu-r/rec/bt/R-REC-BT.2087-0-201510-I!!PDF-E.pdf

I've worked through the math a few times, and I get slightly different values:
For example for RGB to YUV (BT.2020) you have:
    static const XMVECTORF32 Scale0 = { { { 0.2627f, -0.1215f,  0.6150f, 0.0f } } };
    static const XMVECTORF32 Scale1 = { { { 0.6780f, -0.3136f, -0.5655f, 0.0f } } };
    static const XMVECTORF32 Scale2 = { { { 0.0593f,  0.4351f, -0.0495f, 0.0f } } };

I believe from my derivation that it should be:
    static const XMVECTORF32 Scale0 = { { { 0.2627f, -0.1215f,  0.6150f, 0.0f } } };
    static const XMVECTORF32 Scale1 = { { { 0.6780f, -0.3136f, -0.5655f, 0.0f } } };
    static const XMVECTORF32 Scale2 = { { { 0.0593f,  0.1884f /*!*/, -0.4946f /*!*/, 0.0f } } };

I can't really tell which one is right :/
Note that this function is supposed to convert from Linear SRGB to YUV in the BT.2020 colorspace, not gamma-corrected sRGB or other RGB color space.

The constants look right, but the matrix doesn't seem to match...

OK, I went through my derivation again and the math mistake was on my part rearranging. My formulation matches yours which is great. Looks like had a slight bug in your reverse implantation with the matrix.
Y' = Wr * r + Wg * g + Wb * b
U  = Umax * (b - Y') / (1 - Wb)
V  = Vmax * (r - Y') / (1 - Wr)

Y' = 0.2627 * r + 0.6780 * g + 0.0593 * b
U  = 0.4351 * (b - Y') / (1 - 0.0593)
V  = 0.6150 * (r - Y') / (1 - 0.2627)

Y' = 0.2627 * r + 0.6780 * g + 0.0593 * b
U  = 0.4351 * (b - Y') / 0.9407
V  = 0.6150 * (r - Y') / 0.7373

Y' = 0.2627 * r + 0.6780 * g + 0.0593 * b
U  = 0.4625 * (b - Y')
V  = 0.8341 * (r - Y')

Y' = 0.2627 * r + 0.6780 * g + 0.0593 * b
U  = 0.4625 * (b - (0.2627 * r + 0.6780 * g + 0.0593 * b))
V  = 0.8341 * (r - (0.2627 * r + 0.6780 * g + 0.0593 * b))

Y' = 0.2627 * r + 0.6780 * g + 0.0593 * b
U  = 0.4625 * (b - 0.2627 * r - 0.6780 * g - 0.0593 * b)
V  = 0.8341 * (r - 0.2627 * r - 0.6780 * g - 0.0593 * b)

Y' = 0.2627 * r + 0.6780 * g + 0.0593 * b
U  = 0.4625 * b - 0.4625 * 0.2627 * r - 0.4625 * 0.6780 * g - 0.4625 * 0.0593 * b
V  = 0.8341 * r - 0.8341 * 0.2627 * r - 0.8341 * 0.6780 * g - 0.8341 * 0.0593 * b

Y' = 0.2627 * r + 0.6780 * g + 0.0593 * b
U  = 0.4625 * b - 0.1215 * r - 0.3136 * g - 0.0274 * b
V  = 0.8341 * r - 0.2191 * r - 0.5655 * g - 0.0495 * b

Y' =  0.2627 * r + 0.6780 * g + 0.0593 * b
U  = -0.1215 * r - 0.3136 * g + 0.4625 * b - 0.0274 * b
V  =  0.8341 * r - 0.2191 * r - 0.5655 * g - 0.0495 * b

Y' = 0.2627 * r + 0.6780 * g + 0.0593 * b
U  = -0.1215 * r - 0.3136 * g + (0.4625 - 0.0274) * b
V  = (0.8341 - 0.2191) * r - 0.5655 * g - 0.0495 * b

Y' = 0.2627 * r + 0.6780 * g + 0.0593 * b
U  = -0.1215 * r - 0.3136 * g + 0.4351 * b
V  = 0.6150 * r - 0.5655 * g - 0.0495 * b

[0.2627      0.6780     0.0593  ]
[-0.1215     -0.3136    0.4351  ]
[0.6150      -0.5655    -0.0495 ]

Test updates in this commit

@walbourn Sorry saw this too late. Thank you for accepting the PR.

@karthiknadig  No problem. I just needed to work through the math and make sure I got the same answer.


command-line job submission?

The guide covers job submission via (a) the shiny app and (b) the fhwdlR package.
Question - is it possible to submit jobs directly from the gizmo/rhino command line?  If it's possible, that would likely be my preferred method (perhaps other users too).   Or maybe not - maybe once I get into the swing of things I'll see that's a big pain.
In any case, seems like a question worth addressing in the guide.

to clarify, I meant the linux command-line!
I notice the header of chapter 5 (on the fh.wdlR package) says it lets you submit jobs from the command-line.  Now that I've been through that material, I probably would use the R-command-line submission method: that looks very nice.
I'm still curious though - is there a direct way, without spinning up R or using the web shiny app?

The server has an API so the app and the R package are just wrappers for talking to the API.  if you start up a server, and then in your browser go to https://gizmok1:55555 (or whatever), you'll see the SWagger UI and you can futz around all you like with the endpoint definitions.  Then you can use any old command line tool to send workflows or do any of this stuff.

ha - just starting to play with that UI, I can TOTALLY see why doing it the R way is more appealing.
let me see if I understand right: you would use that swagger UI to produce an examplecurl command (it also submits the workflow).   Then maybe on another occasion, you could copy and modify that curl command, maybe playing with additional options listed in the swaggerUI, and then just copy-paste the curl command onto the rhino/gizmo command line to submit an additional job?

I had to use http rather than https in the URL to make that work (in Safari).
I'm not sure, but I suspect it might be worth a couple of sentences in the guide to say something like this:
There is another way you can interact with your cromwell server, via something called a swagger interface to the Cromwell API. That lets you submit workflows directly, and/or canhelp you figure out the syntax of curl commands you could use to submit jobs via the linux command line. We won't describe it in detail here, but if you want to explore it, use your web browser to point to http://gizmok1:55555/ (or whatever node:port combination your server is running on), and play with the resulting webpage.
To me it's a very natural question to ask, at least for people who've been working with sbatch for a while.  Just a quick play around there helps me see how it MIGHT be done, and helps me think about whether I want to go down the command-line road, or stick with the R package and/or the shiny app.

yup, these are all valid points and the main reason why I did not address the Swagger UI is that I actually don't think that We Collectively want to futz with supporting yet another interface in this instance.  I believe that documentation is in the cromwell docs and can always be shared during effective computing drop in hours, etc.  BUT I think in the beginner guide, likely the folks who'd ask about this might not be the intended audience I think.
I am thinking maybe WDL 102 could have a reference section for advanced users and configuration guidance that would link out to existing docs for people to explore on their own.  I'm going to transfer this issue to that repo so I can address it there!!!   Regardless, it's nice to see someone else understand how useful this tool can be for a variety of types of people and preferred ways of working!  There are so many ways to use it it's easy to try to boil the ocean when documenting it in a guide. ;)


Improved Bot Features and Navigation

Changes Introduced

Inline Keyboard Menus

Added inline keyboards for easier navigation.
Categories like Conversions, Fees, Volumes, Runes, General Info, and Contribute can now be accessed through an inline menu.
Inline buttons dynamically route users to submenus and actions.
New function: create_inline_keyboard() to simplify the creation of inline keyboards.

Callback Query Handlers

Implemented CallbackQueryHandler to handle inline button actions.
Navigation menus now work smoothly for conversions, fees, volumes, general information, and rune data.

Dynamic Input Handling

Added support for conversion inputs after selecting a conversion option from the menu.
Implemented handle_conversion_input() to handle user input for inline prompts.

Rune Data Handling

Integrated rune-specific inputs via inline menus:

Rune Information (runes_info)
Rune Floor Price (runes_floor_price)
Rune Market Cap (runes_market_cap)
General Rune Listings.

New Input Handler: handle_rune_input() for collecting and processing user rune queries dynamically.

Contribute Message

Added a contribute menu with inline buttons to:

Direct users to GitHub for bot development.
Display the support message and QR code for donations.

Function Added: show_contribute_message().

Improved Start Command

Refactored /start to display the inline keyboard menu directly for easy access.

Enhanced Error Handling

Improved error handling for:

CallbackQuery input.
Missing files (e.g., QR code).
Invalid user inputs in conversions or rune queries.

Command Cleanup

Reduced redundancy in command menus.
Unified user navigation flow with inline keyboards for better usability.

New Features

Inline Navigation: Users can now navigate menus and commands seamlessly.
Improved Rune Actions: Added dynamic handling for multiple rune queries.
Support and Contribution: Clear call-to-action for contributing and supporting the bot hosting.

Refactored Functions

start() refactored to include inline menus.
support() improved to handle missing QR code errors gracefully.
helper() updated with an inline keyboard for quick category access.

Hello Arkano,
Thank you so much for your first contribution to this repository! 🎉 Your work is really cool! It looks like way much better with this interface.
I noticed that v6.1 has been archived (thanks for taking care of that). Given this milestone, should we consider moving forward to v7.0? I'd love to hear your thoughts on this potential version bump.
Also, I noticed that in the conversion utilities, the sats <-> EUR conversion is missing. Would you be able to add it back to complete the full conversion chain: BTC <-> sats <-> EUR?
Looking forward to your feedback! 🙌


Equality Rewriting slows down on several assignments

In thie example, rewriting:
#false :- Final_Step != (Cardinality-1); Final_Step = #max { Step: status(Step,XT,YT,XD,YD) }; Cardinality = #count { Step,XT,YT,XD,YD: status(Step,XT,YT,XD,YD) }.

into
#false :- (Cardinality-1) != #max { Step: status(Step,XT,YT,XD,YD) }; Cardinality = #count { Step,XT,YT,XD,YD: status(Step,XT,YT,XD,YD) }.

is bad. It reduces the amount of rules from quadratic to linear but takes much more grounding/solving time.
This is because the assignment aggregates in the first version are replaced by a new rule and grounded only once, while in the new version the inner part of the aggregate has to be grounded over and over again.

aux1(Final_Step) :- Final_Step = #max { Step: status(Step,XT,YT,XD,YD) }.
aux2(Cardinality) :- Cardinality = #count { Step,XT,YT,XD,YD: status(Step,XT,YT,XD,YD) }.
#false :- Final_Step != (Cardinality-1); aux1(Final_Step), aux2(Cardinality).

Does not help as it produces a quadratic number of rules:
aux1(Final_Step) :- Final_Step = #max { Step: status(Step,XT,YT,XD,YD) }.
aux2(Cardinality) :- Cardinality = #count { Step,XT,YT,XD,YD: status(Step,XT,YT,XD,YD) }.
#false :- aux1(Final_Step), not aux2(Final_Step+1).

helps but disturbs the clasp equivalence preprocessing :D
While this one
aux1(Final_Step) :- Final_Step = #max { Step: status(Step,XT,YT,XD,YD) }.
aux2(Cardinality) :- Cardinality = #count { Step,XT,YT,XD,YD: status(Step,XT,YT,XD,YD) }.
#false :- not aux1(Final_Step-1), aux2(Final_Step).

is even faster but still struggles with equivalences.

#false :- not (Cardinality-1) = #max { Step: status(Step,XT,YT,XD,YD) }; Cardinality = #count { Step,XT,YT,XD,YD: status(Step,XT,YT,XD,YD) }.

is now used with somehow satisfactory results.


Flush buffer again after first "flush" event in daily-rotate-file transport

Same fix as 0c28041f6d62d515f5cda870c5ac450ff4a9fba1 (related to #150) but for the daily-rotate-file transport.
Will fix #567

Any chance you could add test coverage for this?

Thank you for your contribution As of<EMAIL_ADDRESS>this transport is now a stand-alone module: winston-daily-rotate-file. Please reopen this PR. We have opened a tracking issue there to ensure it is reviewed appropriately.


希望能提高打开文件夹的速度

Is your feature request related to a problem? Please describe.
当它打开文件夹很慢的时候，我总是很烦躁
Describe the solution you'd like
希望打开文件夹并显示器中的文件的速度可以和windows本身的资源管理器一样
Describe alternatives you've considered
null
Additional context
null

@1091515459 Can you fill out the issue template?

Merging with #3373


add event fired multiple times on collection

when listening to a collection's add event, the callback is triggered not once per collection.add([model1, model2, model3]) but once for every model added individually.
in my use case I want to add a bunch of models to a collection and then re-render my view once all models have been added. Backbone simply proxies through model events though so if you add 50 models to a collection, the add event is called 50 times and thus the whole view is rendered 50 times. This is unexpected behaviour since the collection method only takes arrays of models:
collection.add([model1, model2, model3])

rather than passing them in individual:
collection.add(model1);
collection.add(model1);
collection.add(model2);

I expect the same to be reflected in the event callback since I'm not listening to the model but the collection as a whole.
Is there currently a clean way of adapting a collection to support this behaviour or is this something that could be added into the core? I know this is expected behaviour at the moment so I'm not raising it as a bug but I'm not sure how useful it currently is.

dash_debug.txt
The quality changed many times in this log (i think 2 full cycles from highest to lowest)


googleapis font patch contains a file which gets removed

patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch includes a change to third_party/catapult/third_party/polymer/components/font-roboto/roboto.html
roboto.html gets removed (presumably after the above patch is applied) via third_party/catapult/third_party/polymer/components getting overwritten by a symlink to third_party/polymer/v1_0/components-chromium.
Directly extracting third_party/polymer/v1_0/components-chromium/font-roboto/roboto.html from the chromium xz tar archive reveals one line of code....
<link rel="stylesheet" href="chrome://resources/css/roboto.css">
Since this is identical to what the patch would have produced, the hunk relating to roboto.html can be removed from disable-fonts-googleapis-references.patch.
On debian there wouldn't normally have been any build errors unless one did a rebuild (in my case doing a pgo phase 2 rebuild), which throws an error about trying to patch a symlinked file.

First, please state the platform you're using or post your issues to ungoogled-chromium-debian. It's a bit confusing without any context.
Secondly, I don't want to change the patch because disable-fonts-googleapis-references.patch is a global patch, and symlinking is Debian-specific. We can just disable the symlink, since other Linux platforms are working fine.


Allow augmenting the global scope with new names

It would be great if TypeScript could model situations where new names are added to the global scope.
This was described by a team member as a desirable feature that could definitely be enabled in https://github.com/Microsoft/TypeScript/issues/7015#issuecomment-184943914. However that issue is closed, and I can't find any other open issue tracking the suggestion, so I opened this one.
A basic example:
// File: foo.ts

// Augment the global scope to add foo
declare global {
    var foo: Function;  // ERROR: Cannot introduce new top level names
}

// Implement foo
var fooImpl = () => {/***/};
foo = fooImpl;  // OK - compiler 'sees' global foo here
export default fooImpl;

// Reference foo
foo();          // OK - compiler 'sees' global foo here

Currently this produces a compiler error as shown above. Interestingly, the global foo is recognised at the two other sites where it is referenced in the example. So it appears this would already work just if the error message was suppressed.

Fixed by #8104?

Fixed by #8104?

@yortus indeed. Just tested and it works out of the box :rose:

Sweet! Thanks for checking @basarat


Add .readthedocs.yml hook for  auto doc build

Add a commit hook for auto building documentation (e.g., https://readthedocs.org/).

Done


CSIPSTR11 & CSIPSTR13: don't agree with MoSCoW classification

https://carlwilson.github.io/E-ARK-CSIP/specification/implementation/structure/folders/
CSIPSTR11: The representation folder MUST include a sub-folder named data which includes all data constituting the representation ;
CSIPSTR13: The representation folder CAN include a sub-folder named metadata which CAN include all metadata about the specific representation
Why data is mandatory & metadata is optional? Using SIP Update as an example (partial updates), we can have two scenarios regarding representations, where one of the folders will have no content:

Updating a specific representation metadata file (e.g. descriptive metadata)
Updating a specific representation file

IMHO, either we make both mandatory or both optional.

I think CSIPSTR13 is related to CSIPSTR5: The Information Package folder MUST include a folder named metadata, which MUST include at least all metadata relevant for the whole package
So in that sense a metadata and a data folder must be present. But it is tricky that we have two layers which leaves the question: where to put what?
I like the idea about SIP updates and IP deltas in general, but so far I guess they are not a part of the IP specs?

@PhillipTommerholt I've just mentioned the SIP Update because its a real use case. But, in the end of the day, the question we need to answer is: why one is mandatory and the other optional?

The point was that a CS IP package must have data split into representation folders but, at the same time, implementers might choose to keep all metadata in the root metadata folder. As such it's a must req for rep data and can for rep metadata.
There were quite a few reasons for this decision. One being that splitting metadata to root and representation might be intellectually challenging, another that for simple "two pdf file" IPs there is no practical need for splitting metadata into representations (esp in the case of a SIP or DIP).
My opinion is that the req's in CS IP should stay as is, but we might review whether the AIP spec should be stricter here?

@kuldaraas First of all, I'm questioning why one is mandatory & the other is optional, as use cases to support using one and not the other exists for both. And this is merely a technical matter.
Second, for example, an SIP or AIP can exist and not contain any data at all as they can simply contain metadata (SIP Update or AIP with a representation with metadata describing physical content).
Based on this, I would say that both data & metadata for representations CAN include a sub-folder.

Rewording of the principles has been made.


Add Amazon NL region to Marketplaces Enum

Hi there,
Amazon is currently expanding its business to the Netherlands and I've received their NL marketplace ID. I'm not really familiar with contributing to this project, so I preferred creating an issue instead :sweat_smile: I think the only line needed to add to the Marketplaces(Enum) class in mws/mws.py is the following:
NL = ('https://mws-eu.amazonservices.com', 'A1805IZSGTT6HS')
Not sure if it needs to be added elsewhere too.
Would appreciate if this could be added :-)

Hi @ceijssen I'm happy to sort this out, do you have a link to the docs for this Marketplace ID?
I'm checking their dev guide and its currently not listed. (Its not that I do not believe you!) but I'd like to just confirm its correct before adding.
Do you have any supporting docs from Amazon and I'll sort it out.
Cheers
Alex

Hi @Bobspadger thanks for the quick reply :-) I got it through an email from a contact at Amazon, I see it's not in the docs yet so I'll ask the contact if/when they can add it to the docs.

No problem.
If they have some info somewhere then I'll get on it.
It will most likely be in the develop branch - I'm not sure what version you are using ?

We're using 0.8.6. I'll try to find some online resources that mention the NL ID, I see our guy is on vacation now so it might take some time.

@Martijn-Kraan happy for me to close this now?

@Bobspadger Yes sure! Could you give me an indication here on when this will be on the production branch?

ah, ok, I'll take a look and see

@Bobspadger I see that The Netherlands is now listed in the marketplace webservices documentation Do you have any indication when it will be in the production branch as well?

@p-nilsson @ceijssen this is now done and in the master branch. I have just uploaded it to pypi as well.


Update  README

with information on new build-setup and local build instructions
closes: #763

@martha-thomae could you please add the documentation of how to build using oXygen XML?

Moreover the section on Validation is outdated

Working on this I get the impression it's a bit long for a README and probably should be split int several files after all content is up to date. What do you thing @musicEnfanthen?

Thanks a lot, @bwbohl !

Working on this I get the impression it's a bit long for a README and probably should be split int several files after all content is up to date. What do you thing @musicEnfanthen?

Not sure about that. There are much longer READMEs out there, and it's nice to have the most important information/instruction in one place. But of course, splitting things up can improve readability and overall structure (especially when it comes to different, independent build scenarios). E.g. Verovio's README follows such an approach: https://github.com/rism-digital/verovio#building-and-use-instructions-by-environment
Maybe it's an idea to stick with the one document for this PR, to have all the phrasings and contents updated and included, and to have another PR then to split things up?

thx @martha-thomae for adding and reviewing!

Thank you all for having a look at this. One section that I noticed that was missing was (maybe) at the very beginning, to point people to URLs where they can find the pre-built schemas. That would help those people who want to develop with MEI, but don't necessarily want to develop MEI itself.

thx @martha-thomae for adding and reviewing!

No problem, @bwbohl! Your documentation was pretty clear so it was easy to review. Thanks for your work!

Thank you all for having a look at this. One section that I noticed that was missing was (maybe) at the very beginning, to point people to URLs where they can find the pre-built schemas. That would help those people who want to develop with MEI, but don't necessarily want to develop MEI itself.

Perfect, we will add this. Thanks for taking a look, @ahankinson!

There's still one TODO that I see here: fixing the section on validation to use current schemata

thanks to everyone involved!


Ensure importer emits errors to stderr

Required for all non-trivial PRs

[ ] Rebased/mergable
[ ] Tests pass
[x] CHANGELOG.md updated

Fixes #8830.
One thing of note: previously the importer code had this to say:
log.Println("error writing batch: ", e)
// Output failed lines to STDOUT so users can capture lines that failed to import
fmt.Println(strings.Join(i.batch, "\n"))

I don't really see though why the batch needs to be emitted to stdout. If it's a batch that contains bad data (causing the write error) then I think it should be emitted to stderr. I have updated that accordingly.

Wrong feature branch.


Goals for lensing sprint week

This issue is to track our goals with @b-remy this week, towards getting as many results as we can for the paper:
Day 1: Tuesday
@b-remy : will look at #12
@EiffL : will look at #14
-> Goal for the end of the day: Having tested sampling, and MAP in the Gaussian case, and being able to train a DeepMass model
Day 2: Wednesday
@b-remy : Will look at the MAP in the full non-Gaussian case (things to do for instance: PS as a function of iterations)
@EiffL : Will look at sampling in the full non-Gaussian case
-> Goal for the end of the day: Up to date script for sampling and MAP in full non Gaussian case.
Day 3: Thursday
@b-remy : will look at #16 , #17
@EiffL : will look at #15
-> Goal for the end of the day: Have the main numerical results/tests for the paper.
Day 4: Friday
@b-remy and @EiffL : Application to real COSMOS, and what to check....
@b-remy and @EiffL : Paper writing \o/

I now have a python implementation of the Wiener posterior sampling (with a messenger field) for spin 2 fields with an assumed posterior. I can now convert in to a @jit jax function relatively easily. I'm busy most of today, but I have a few hours after 17h00 (France time).

Oh awesome! Well, if you have time to add something like this in a branch, we'll be able to run some tests against the full Gaussian case, I hope we'll find that the mean of posterior samples matches your Wiener filter when we only assume the Gaussian prior. Also, am I wrong in thinking the MAP is equal to the posterior mean in the Gaussian case ?

Ok, so for Day 1, I have a draft deepmass code, but haven't been able to test it yet :-| see here https://github.com/CosmoStat/jax-lensing/issues/14#issuecomment-784371819

Also, am I wrong in thinking the MAP is equal to the posterior mean in the Gaussian case ?

That's right - the posterior is symmetric Gaussian so the mean and MAP are the same

I've started a new branch for the Wiener sampling https://github.com/CosmoStat/jax-lensing/tree/gaussian_prior. I've been delayed slightly by Jax versioning, but now up and running .

Updated Plan for Thursday
This is what we aim to do today

Merge #22 (@b-remy  and @EiffL )
@b-remy will put the trained network in a shared space
@b-remy adds a script for the MAP (or maybe add an option to retrieve the MAP in existing script) -> Should go in a new branch, looks like this goes towards #11
@EiffL can look into annealed sampling in both Gaussian and Neural Score case, using the network trained by @b-remy

-> Goal at the end of the day:

Both MAP and Sampling full functional in Gaussian case
Try to have a working Neural Score sampling

I have everything in place for Wiener sampling with the cosmos data. I have the initial code in:
jax_lensing/wiener_sampling.py
and I have shear data, true kappa and mask in
data/ktng and data/COSMOS
But, I am missing the noise model - specifically the noise covariance matrix

This is the right place to find data, just mask sure you choose the file with 360 in their name to get maps 360x360.
For the noise model, we use a diagonal covariance matrix per component of shear with value 0.148. We evaluated the noise on the COSMOS shear map here:
https://github.com/CosmoStat/jax-lensing/blob/training-script/notebooks/KappaTNG_COSMOS_emulation.ipynb

Updated Plan for Friday
This is what we aim to do today
Main targets:

@b-remy will look at adding an NFW object in a map #16
@EiffL can look into annealed sampling in both Gaussian and Neural Score case, using the network trained by @b-remy

Bonus points:

MAP script
MAP with Neural Network

@b-remy  in
https://github.com/CosmoStat/jax-lensing/blob/training-script/notebooks/KappaTNG_COSMOS_emulation.ipynb the value seems not to be 0.148 -> noise_dist_std = 0.2

@NiallJeffrey The data std is 0.148 as you measure. I did the computation in the section Compare with True COSMOS shear noise of the notebook.
noise_dist_std = 0.2 is a parameter we use to train our denoiser, but not the exact std in the COSMOS map.


Add missing iOS icon sizes

After adding these new sizes my AppIcon is complete

Woohoo! Awesome stuff @robbiet480! Will merge, add you to the CHANGELOG.md and publish a new version now

Done, I've added you to the [CHANGELOG.md](./CHANGELOG.md)

Thanks!


Enable problem report tab on TeamCity

This change adds a new tab on the builds if a problem report HTML is generated.
Reviewing cheatsheet
Before merging the PR, comments starting with

❌ ❓must be fixed
🤔 💅 should be fixed
💭 may be fixed
🎉 celebrate happy things

The merge queue build has failed. Click here to see all failures.

Thanks @cobexer for taking care of this


White borders are back in 1.17

This problem is back in v1.17, I guess due to the recent changes around theming. The grey border is there to start with until you switch to another window and back (presumably it's part of the dark theme and doesn't get repainted until switching). Once you switch back it is white and will stay so even after closing/re-opening.
Steps to reproduce:

Delete settings.json and state.json
Open Terminal and switch to light theme
Border is grey
Alt tab to another window then back again
Border is now forever white

Originally posted by @harristom in https://github.com/microsoft/terminal/issues/6620#issuecomment-1406570765

1000% this is due to one of the last commits in #14536.
@harristom Which OS version are you on? Just to make sure I fix it for the right platform(s)

Windows 10
On Fri, 27 Jan 2023 at 17:36, Mike Griese @.***> wrote:

1000% this is due to one of the last commits in #14536
https://github.com/microsoft/terminal/pull/14536.
@harristom https://github.com/harristom Which OS version are you on?
Just to make sure I fix it for the right platform(s)
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/terminal/issues/14744#issuecomment-1406746829,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMGXBDY3HEAROJJF3HHT5NDWUP2R3ANCNFSM6AAAAAAUI4NT6Y
.
You are receiving this because you were mentioned.Message ID:
@.***>

Wait hold on, this is by design now? more or less. To try and tease this apart, I think there's two parts to this thread:

Part the first: The main issue here seems that when you switch to terminal light theme, the borders are white. Which is by-design now. We've got all these new toggles for different theme properties, we should probably actually respect the user's selected theme for the window. This is changed in 1.17, but seems like it changed to be more correct.
Part the second: "When I switch the terminal theme on Win10, the window border doesn't update till the window is unfocused/refocused", and I'm guessing that's a NCPAINT issue - we previously noted that the SetWindowAttribute thing in TerminalThemeHelpers needed to be before a NCPAINT. I'm betting that on win11, where that API is officially supported, they actually do force the NCPAINT when the API is called. On win 10, not so much.

Does all that make sense/?

Is it definitely by design? As mentioned in the original report and the PR fixing it the white border makes the Terminal look out of place compared to other apps which all use a grey border. Obviously it's only a very minor issue but it makes the app look out of place and hard to tell whether it has focus (since for other apps a darker border means focussed and a lighter one means unfocussed whereas Terminal is doing the opposite).

Sorry, the bot went haywire. As usual. I think this is worth talking about :)

Hey just found this camping in the backlog. This has kinda turned into a complex space now.

Before 1.17, we'd always use the dark theme border for the Terminal window, even in light mode.

(personally, I agree that was preferable, but that's my opinion)

Now in 1.17, we'll use the border color that matches the window.applicationTheme. In light mode, that means a white border.
BUT NOW IN 1.18: we added a pair of window.frame and window.unfocusedFrame theme properties in #15441. This will let a user override the frame color and use whatever.

UNFORTUNATELY, that API doesn't work on Windows 10, so this isn't necessarily immediately helpful for you, but it does work

I dunno how I feel about reverting the "the window frame follows the OS theme" bit (back to "always use the dark border"). I feel like this is more correct now, even if UWPs and Win32 apps have been using different borders for years.

discussion notes:

Sure, we should revert this back. So that null for window.border will always use the Dark theme border
While we're here, if people do use window.border on Windows 10, we should try to compute the lightness and use that to figure out what theme border to use (since the real RGB color API won't work there)


state aggregatew does not show changes

For the very first aggregated state (i.e. diff to empty notebook), changes to cells are not really visible:

That is because, the changes are aggregated into one state, and for this aggregate state that is nothing before it to compare it to. Thus, everything is new until the user executes of of order for the first time.
What is still missing in the recording above, is that the whole cell should be highlighted as new. However, my feeling is that the individual changes should also be represented somehow.
also later on, although there i don't see it probblematic because the difference to the last major change is clear:

possibly show the changes by the last state within in the aggregate

updating output shows the same output as the notebook:


On //e ProDOS 2.5.0.a2 Bitsy Bye locks up if 'Delete' key is pressed

Bitsy Bye locks up on //e when Del key is pressed

Bug

Description

On //e Bitsy Bye locks up if 'Delete' key is pressed
Expected Behavior

Should be able to select progams to run, tab to other volumes, etc
Actual Behavior

After booting ProDOS 2.5.0.a2 Bitsy Bye loads and works fine until 'Delete" key is pressed then the system locks up
Possible Fix

Steps to Reproduce

Boot ProDOS 2.5.0.a2
Press 'Delete" key
Attempt to tab to another volume or select a file to run

Context

Looking for issues with this new Alpha release
Your Environment

Hardware:

Apple //e Platinum, 80col, 4Mb Ramworks III, Fastchip //e, Super Serial, VidHD, CFFA3000
ProDOS8 version:
2.5.0.a2
Non-Operating System release software being used:
The new Bitsy Bye

Nice find! Fixed in 2.5.0.a3.


DJMcMayhem: Watch cabhit

DJMcMayhem requests the watch of the watch_keyword cabhit. See the Metasmoke search here and the Stack Exchange search here.

Coverage remained the same at 63.155% when pulling<PHONE_NUMBER>de788458c283fdf92c0bc181939627 on auto-blacklist-1512405080.815067 into 8a1c508fd5dc4e8e11b775fe00e3cc84eaddb24d on master.

!!/approve


Refactor style tag into separate css file

Hello there @anuragverma108! I would like to refactor the style tag in the html to its own separate css file within the project.

Please disregard

Thanks for creating the issue in WildGuard! The issue has been assigned to you.
Before you start working on your PR, please make sure to:

⭐ Star the repository if you haven't already.
Pull the latest changes to avoid any merge conflicts.
Attach before & after screenshots in your PR for clarity.
Include the issue number in your PR description for better tracking.

Don't forget to follow @anuragverma108 – Project Admin & @PriyaGhosal -Project Collaborator  – for more updates!
We're excited to see your contribution as part of Hacktoberfest 2024! 🎉
Happy open-source contributing!

Hey, can you please assign this issue to me?
Thank You


Update Client.php to handle null headers

Any request with options ['json' => $data, 'headers' => null] gives an exception on line 326 of Client.php:
Undefined index: _conditional in the Psr7\_caseless_remove() call on line 326

This seems like a bug to me, because the code itself says "Allows default headers to be unset", with a specific if ($options['headers'] === null) check:
https://github.com/guzzle/guzzle/blob/master/src/Client.php#L226-L229
When that if statement is true, it will currently always throw an exception in one of the applyOptions branches, because $defaults['_conditional'] must be an array.
When the headers key exists but is null, it seems better to set $defaults['_conditional'] to an empty array instead, this way headers => null is handled gracefully.

@Nyholm Any update on this? If anything is wrong with the change or test, I'd gladly fix it 😃


ProgressTrackingListener shall stop Context upon Exception

due to the design of Spark, the IOException would not trigger the shutdown of SparkContext
We shall capture IOException, and rethrow with an InterruptionException to stop that

resolved by https://github.com/hdinsight/spark-eventhubs/pull/41


SYSENG-1839: add support for apiserver_allowlist

Description
Adding support for apiserver_allowlist to restrict access to the kubernetes API server. Update of this field is not yet supported, so it must be provided during cluster creation.
Checklist

[ ] added release notes to Unreleased section in CHANGELOG.md, if user facing change

References
Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

The tests are likely gonna failing (as usual), therefore I'm fine with "forced" merges as well.


Use PyExifTool for titles.

https://smarnach.github.io/pyexiftool/
PyExifTool uses exiftool in batch mode rather than invoking exiftool for every file.

How can this be "batched"? Currently fulltext deals with a single path (or file obj). Also duster approach is "per-file".

We won't "batch" files, still process one-at-a-time. That would not change, the difference is:
exiftool /path/to/file1
exiftool /path/to/file2
exiftool /path/to/file3

vs.
exiftool -batch
cat /path/to/file1 > /tmp/exiftool.sock
cat /path/to/file2 > /tmp/exiftool.sock
cat /path/to/file3 > /tmp/exiftool.sock

Just means that the overhead of creating the exiftool process is eliminated (the process is recycled). Still a win even if we use batches of 1. Think of this the way that unoconv works, unoconv is a client that connects to LibreOffice/OpenOffice process running as a server. That server process can be persistent, and do many conversions over it's lifetime (instead of just one).

Implemented by #69. Closing.


Upgrade for PureScript 0.15

This updates the Bower dependencies for this library for PureScript 0.15.

❯ npx pulp test
* Building project in /Users/trh/Desktop/purescript-spec-quickcheck
           Src   Lib   All
Warnings   0     0     0
Errors     0     0     0
* Build successful.
* Running tests...
Math
  ✓ works
  ✓ works again

Summary
2/2 tests passed

* Tests OK.


bug: use getType() instead of toString()

https://github.com/googleapis/java-bigquery/blob/fa998baa32437a5e39670c5c7399c0945de56d52/samples/snippets/src/main/java/com/example/bigquery/ExtractTableToJson.java#L46
Code example
FormatOptions.json().toString(); // FormatOptions{format=NEWLINE_DELIMITED_JSON}
FormatOptions.json().getType(); // NEWLINE_DELIMITED_JSON
So you should use getType() here instead of toString().
This is my first time I submit issue on Github. Please forgive me if I made mistake.

Please submit a PR for this fix. Make sure you initial commit is: "docs(samples): update ExtractTableToJson sample"

Sorry. I made a mistake. It is right in main branch.
https://cloud.google.com/bigquery/docs/exporting-data#exporting_table_data
->
https://github.com/googleapis/java-bigquery/blob/fa998baa32437a5e39670c5c7399c0945de56d52/samples/snippets/src/main/java/com/example/bigquery/ExtractTableToCsv.java
This links from gcp page are not main branch. It makes me wrong.


add something like ruby un.rb or cmake -E for cross platform scripts

Feature Request
Add a crystal library like un.rb include it either as part of crystal.exe or shards.exe (crystal app or shards app) to add cross platform command line commands like
crystal -E mkdir_p "mydir"
crystal -E copy file, file2

Use this in the macros like find-llvm-config so that the macros function correctly on windows and linux/bsd .  Also encourage the use of this for post_install scripts,

Oh, I didn't know about un.rb. Looks interesting, like a mini busybox with a few selected commands.
I do not see how this would be useful for the Crystal compiler, though. With a small scope such as un.rb it would be by far insufficient for implementing relatively straightforward scripts such as find-llvm-config. And with more extensions to make it sufficient for more complex use cases, it'll end up being a complete shell and core utils implementation. That's most certainly out of scope for this project.
I could see some usefulnes for this as an internal tool for stdlib specs to replace a couple of platform-specific test helpers (such as https://github.com/crystal-lang/crystal/blob/15c66d05a67dbcbc5381cee49310ab7ed77b1a2e/spec/std/process_spec.cr#L8).

most shard builds I have seen use make with simple cmds like mkdir -p  or cp .  This will also help those shards be installable on windows

The way it works in Ruby is through a trick (-run => require "un") then ARGV is made available for the script to interpret. I'm afraid that would be very slow and inefficient in Crystal since it'd have to (re)compile an executable on each and every call.
Note: find-llvm-config doesn't just build on top of a few commands (command, cat, dirname and printf) it also involves control-flow, variables, environment variables, ..., in other words: a programming language of sort.
It could be interesting to have a nanoshell shard that would be compiled once and install itself as bin/nsh to expose some portable commands, but... that still wouldn't be portable, unless it also implements an interpreter.