Simple sorting - how ?

My data layout is now as follows
Country, Product, Dates, Amount
It is fine Country and Product are sorted in ascending order first and then I wish the Dates field to appear in descending order. How to do this ?
I just cannot do custom sort of every single date and code it. Any easy way to do this ?
Thannks

Yes, you can write a normal sorting function without using sortAs
On Fri, Oct 27, 2017 at 03:23 hkbeer<EMAIL_ADDRESS>wrote:

My data layout is now as follows
Country, Product, Dates, Amount
It is fine Country and Product are sorted in ascending order first and
then I wish the Dates field to appear in descending order. How to do this ?
I just cannot do custom sort of every single date and code it. Any easy
way to do this ?
Thannks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/nicolaskruchten/pivottable/issues/818, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAMbAwTUhbxiSM_n--qOEibXfw3fJXHrks5swYTggaJpZM4QIpYq
.

Thanks. How to simple normal sort descending order for a particular dimension ? Pls help to post simple code. Appreciate it in advance

If you want to use Moment.js to parse the dates then sorting by date for any supported format basically looks like this: https://jsfiddle.net/nicolaskruchten/8r45u464/
$("#output").pivot(
  [
  ["date","color"],
  ["15-12-17", "blue"],
  ["15-12-17", "red"],
  ["13-12-17", "blue"],
  ["16-12-17", "blue"],
  ["15-11-17", "red"],
  ["15-12-16", "yellow"],
  ["14-12-16", "yellow"]
  ],
  {
    rows: ["date"],  cols: ["color"],
    sorters:{
    	"date": function(a,b){
      	return moment(a, "DD-MM-YY").isAfter(moment(b, "DD-MM-YY"));
      }
    }
  });

It works for me, thank you so much.
Really appreciate this.

Great!

i also having the same issue in sorting how to customise sorting


rm incubating word

What is the purpose of the change
https://github.com/apache/incubator-dubbo/issues/4108
Brief changelog
XXXXX
Verifying this change
XXXXX
Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Make sure there is a GITHUB_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GITHUB issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Format the pull request title like [Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
[ ] Run mvn clean install -DskipTests=false & mvn clean test-compile failsafe:integration-test to make sure unit-test and integration-test pass.
[ ] If this contribution is large, please follow the Software Donation Guide.

Codecov Report

Merging #4110 into master will increase coverage by 0.09%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #4110      +/-   ##
============================================
+ Coverage     62.57%   62.67%   +0.09%
- Complexity      543      545       +2
============================================
  Files           762      762
  Lines         32752    32752
  Branches       5162     5162
============================================
+ Hits          20496    20528      +32
+ Misses         9896     9864      -32
  Partials       2360     2360

Impacted Files
Coverage Δ
Complexity Δ

.../apache/dubbo/remoting/transport/AbstractPeer.java
58.69% <0%> (-4.35%)
0% <0%> (ø)

...dubbo/rpc/protocol/dubbo/CallbackServiceCodec.java
80.88% <0%> (+0.73%)
0% <0%> (ø)
:arrow_down:

...dubbo/remoting/exchange/support/DefaultFuture.java
75.16% <0%> (+1.96%)
0% <0%> (ø)
:arrow_down:

...exchange/support/header/HeaderExchangeHandler.java
62.2% <0%> (+2.36%)
0% <0%> (ø)
:arrow_down:

...pache/dubbo/registry/support/AbstractRegistry.java
81.6% <0%> (+3.06%)
0% <0%> (ø)
:arrow_down:

...e/dubbo/remoting/transport/netty/NettyChannel.java
62.35% <0%> (+4.7%)
21% <0%> (+1%)
:arrow_up:

.../org/apache/dubbo/remoting/ExecutionException.java
21.05% <0%> (+5.26%)
0% <0%> (ø)
:arrow_down:

...ng/transport/dispatcher/all/AllChannelHandler.java
57.14% <0%> (+5.71%)
0% <0%> (ø)
:arrow_down:

.../remoting/transport/netty4/NettyServerHandler.java
71.42% <0%> (+9.52%)
0% <0%> (ø)
:arrow_down:

...che/dubbo/remoting/transport/mina/MinaChannel.java
53.94% <0%> (+10.52%)
17% <0%> (+1%)
:arrow_up:

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 3fc6909...30c37ee. Read the comment docs.

LGTM


[129838783] Add migration that sets submitted_at for old brief responses

For this pivotal story
For any brief response that does not have a submitted_at time, we add one based on the created_at time. As we will now be looking at submitted_at rather than created_at to indicate a submitted brief response, we need to migrate all older brief responses to have a submitted_at time.
This pull request should not be merged until this pull request has been deployed.

This should go after the frontend apps are setting submitted_at for all new responses. Otherwise we'll end up with new records that went through the old process and don't have the timestamp.

This line should be sufficient in the pull request that will go out beforehand?
https://github.com/alphagov/digitalmarketplace-api/blob/84f96ed575a5798a74aca0957ea0a693e259fef1/app/main/views/brief_responses.py#L56

Related front end pull request that sets submitted at for all new responses is up.

:+1: (even though it means I will have to renumber my migration)


iMCMC

Involutive MCMC framework https://arxiv.org/abs/2006.16653
I am using methods inside the State classes to allow for easy customization by the end user.
Includes examples of use to create an irreversible vanilla HMC algorithm.

Can we close this for now?


[stdlib] fixes warning: result of call to 'initialize(from:)' is unused

Fixes the following warnings:
+ /usr/local/bin/cmake --build <swift-source>/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64 -- -j4 all swift-test-stdlib-macosx-x86_64 swift-benchmark-macosx-x86_64
[966/1642] Generating <swift-source>/swift/macosx/x86_64/Swift.swiftmodule
<swift-source>/swift/stdlib/public/core/StringStorage.swift:81:14: warning: result of call to 'initialize(from:)' is unused
      buffer.initialize(from: UnsafeBufferPointer(start: start, count: count))
             ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

and
[1063/1642] Compiling <swift-source>/swift/stdlib/public/core/macosx/x86_64/Swift.o
<swift-source>/swift/stdlib/public/core/StringStorage.swift:81:14: warning: result of call to 'initialize(from:)' is unused
      buffer.initialize(from: UnsafeBufferPointer(start: start, count: count))
             ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The bounds check seems alright, so it's just removing the warning.

@swift-ci please smoke test
cc: @milseman

@swift-ci please test

Thanks for this, @nordicio!


Disable Glish on Bare Metal Machines

Description
This disables glish for bare metal machines by checking if the current Linode is bare metal
How to test
First you must authorize yourself for bare metal then create a bare metal linode and a non bare metal linode. Verify that the bare metal one has no glish and the non bare metal one does
Note: Not important but I went down a bunch of dead ends trying to use src/hooks/useExtendedLinode but because Lish is not a FC that didn't work. Then I thought about passing in the data from store.getState() in src/index.tsx because I misguidedly thought that perhaps Lish being a separate popup couldn't access the store and needed it passed in without realizing api calls work. TLDR - read documentation 🙃

As a side note for testing PR's like this, we could consider adding a Bare Metal Linode to the Mock Service Worker

Great idea, I'll add that to this PR!

I'm observing the same thing as @bnussman and agree with most of his suggestions. Another option for the tabs variable after moving it into the render() method is:
    const tabs = [
      /* NB: These must correspond to the routes inside the Switch */
      {
        title: 'Weblish',
        routeName: `${this.props.match.url}/weblish`,
      },
      !isBareMetal
        ? {
            title: 'Glish',
            routeName: `${this.props.match.url}/glish`,
          }
        : null,
    ].filter(Boolean) as Tab[];

where the Tab used for the type is imported from TabLinkList.tsx.
Perhaps some styling tweaks are also in order when the Glish tab is hidden (bottom white border)?

Done!

Nice job addressing feedback! Looks good 💻

thanks! I added a bare metal mock Linode, would you mind checking it? It appears the reason glish appears for the mocked bare metal is because api-v4/lib/linodes/linodes.js/getLinode 404s. Is this expected?

That 404 would be expected. You'd have to add something like this below, where the id of the Linode 26 matches the id of the Bare Metal Linoide returned in the */linode/instances mock.
rest.get('*/instances/26', async (req, res, ctx) => {
  return res(
    ctx.json(
      linodeFactory.build({
        type: 'metal',
      })
    )
  );
}),


[Bug] An unstable unit test:  ConcurrentHashMapUtilsTest.computeIfAbsent

Before Creating the Bug Report

[x] I found a bug, not just asking a question, which should be created in GitHub Discussions.

[X] I have searched the GitHub Issues and GitHub Discussions  of this repository and believe that this is not a duplicate.

[X] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.

Runtime platform environment
ubuntu 20.04
RocketMQ version
develop
JDK Version
No response
Describe the Bug
failed detail :
java.lang.IllegalStateException: Recursive update
	at org.apache.rocketmq.common.utils.ConcurrentHashMapUtilsTest.lambda$3(ConcurrentHashMapUtilsTest.java:39)
	at org.apache.rocketmq.common.utils.ConcurrentHashMapUtilsTest.computeIfAbsent(ConcurrentHashMapUtilsTest.java:39)

Steps to Reproduce
by running
mvn test

What Did You Expect to See?
Test should pass
What Did You See Instead?
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project rocketmq-common: There are test failures.

Additional Context
No response

#asign


Removed import that might cause compilation error due to ambiguity

Maybe we should also remove all imports from all the templates and qualify the classes on their usages.
WDYT @ricardozanini?

I think it's a good idea. Can you elaborate a little bit more in an issue, so we can have it documented?

I think it's a good idea. Can you elaborate a little bit more in an issue, so we can have it documented?

Issue created: https://github.com/quarkiverse/quarkus-openapi-generator/issues/103

@ricardozanini the PR description was not clear and might led you to misunderstand it.
Sorry for that.
I updated the PR description.


Athena query fails with error GENERIC_INTERNAL_ERROR: page is empty on reading parquet

**Version: 3.8.4
**Runtime Version: .NET Core 3.1
**OS: Windows

This has now been resolved. It wasnt an issue with parquet.net. Instead of passing a list of null values for a missing column I was passing a single null. The parquet.net reader managed to read it fine as did other online tools. Athena didnt like it.
Thanks again.

This has now been resolved. It wasnt an issue with parquet.net. Instead of passing a list of null values for a missing column I was passing a single null. The parquet.net reader managed to read it fine as did other online tools. Athena didnt like it.
Thanks again.

See last comment

See last comment


Add deckURI to NodeExecutionData

Signed-off-by: Kevin Su<EMAIL_ADDRESS>TL;DR
Add deckURI to NodeExecutionData, so that Flyteconsole can retrieve the pre-signed deck URI and read the file.
Type

[ ] Bug Fix
[x] Feature
[ ] Plugin

Are all requirements met?

[ ] Code completed
[ ] Smoke tested
[ ] Unit tests added
[ ] Code documentation added
[ ] Any pending items have an associated Issue

Complete description
How did you fix the bug, make the feature etc. Link to any design docs etc
Tracking Issue
https://github.com/flyteorg/flyte/issues/2175
Follow-up issue
NA

cc @EngHabu @katrogan one question, I'm able to get a signed URL when using flytekit, but it doesn't work when I use curl. Anything I missed in this PR?
(base) ➜  ~ curl http://<IP_ADDRESS>:30081//api/v1/dataproxy/artifact_urn
Not Found
(base) ➜  ~ curl http://<IP_ADDRESS>:30081//api/v1/dataproxy/artifact_urn\?native_url\=deck.html
Not Found

@pingsutw why are there two slashes before api in the path?

Fixed it, we should register the data proxy handler in the HTTP server. https://github.com/flyteorg/flyteadmin/pull/413/files#diff-4ce88803abf59984cddcf6ab336c97b3231b0cb87f90e07f2f42e622e330f325R197-R201


[5.10][SILOpt] Fix mutable state in EagerSpecializer

Cherry-pick of: https://github.com/apple/swift/pull/70083

Explanation: On the first occurance of a @_specialize attribute with target: argument, onlyCreatePrespecializations would be set to true, preventing any subsequent pre-specializations with exported: false
Scope: Function pre-specialization
Issue: rdar://118554892
Risk: Low, fixes emission of previously emitted specializations without functional changes
Testing: Added regression test to the test suite
Reviewer: @eeckstein

@swift-ci test

@swift-ci test


IR Changes

This is partially in response to discussions regarding #185 and #184 and does the following:

merges MemoryStore into MemoryAssign, so that stores cannot be contained in other types of statements (which never made any sense to begin with)
make BProcedure and BProcedure have default parameter values - this is just cleanup
make Register take an Int as parameter instead of BitVecType - this is just nicer
splits Memory into StackMemory and SharedMemory - this means we can match memory accesses on type to determine whether shared memory is being accessed, instead of matching the name "mem" vs. "stack". This will allow there to be multiple stack region variables in the future, for instance
rename LocalAssign to Assign to avoid confusion about what 'local' means in this context
a little bit of commenting to provide clarity on some of the more confusing parts of the IR

Thinking about it a little further, Memory probably shouldn't be an Expr either

These were generally relics of the IR hewing closely to BAP and/or Boogie for convenience

The state register flags (ZF, NF, etc.) should probably be treated as globals and not locals because it probably isn't impossible the state of them in one procedure is relevant for the state in another procedure due to compiler optimisations?

This is a good start, some further ideas:

MemoryAssign(var mem: Memory, var index: Expr, var value: Expr assumes that the type of index and value is `BitVecType(size) with the size matching mem.addressSize and mem.valueSize respectively, this could be typechecked or we could make all of them more concrete.

A more out-there idea is to have a pointer expression which carries the memory region with it, and have memory region be a parameter of the pointer/address rather than of the store/load operation, but this would mean describing pointer arithmetic.

Now the only difference between Assign and MemoryAssign is whether the LHS is a scalar object or a map object which is clearer but it would help analyses if we could syntactically distinguish shared assigns from unshared assigns. For example the formalism has the three cases (unshared := unshared, shared := unshared, unshared := shared). With this modification we still need to do a full AST walk of the RHS expression to find variables and memory accesses and check whether they are shared or not.
There are still the implicit invariants below which would be nice to validate or have a comment

That the RHS of MemoryAssign does not contain a load expression.
That the RHS of Assign contains at most one load expression.

MemoryAssign assumes that the type of index and value is BitVecType(size) with the size matching mem.addressSize and mem.valueSize respectively, this could be typechecked (as in with conditional throw) or we could make all of them more concrete.

I am not sure how you make these types more concrete. If these do not match, obviously invalid Boogie is generated which is why I have not yet bothered to implement type checking for these sizes. That could still be done but it's hardly a priority.

Now the only difference between Assign and MemoryAssign is whether the LHS is a scalar object or a map object which is clearer but it would help analyses if we could syntactically distinguish shared assigns from unshared assigns. For example the formalism has the three cases (unshared := unshared, shared := unshared, unshared := shared). With this modification we still need to do a full AST walk of the RHS expression to find variables and memory accesses and check whether they are shared or not.

If a MemoryAssign is a write to shared state, then its mem parameter will be a SharedMemory.
Which analysis is all this important for?

A more out-there idea is to have a pointer expression which carries the memory region with it, and have memory region be a parameter of the pointer/address rather than of the store/load operation, but this would mean describing pointer arithmetic.

This sounds needlessly convoluted for no real benefit.

This is ready to merge @ailrst


DOC: add auto-generated API documentation

I'm going to merge to get this out there; we can iterate later if need be.


⚠ Bofrost.be has degraded performance

In 8e8810c, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1669 ms

Resolved: Bofrost.be performance has improved in ab86e03.


Added package/dev dependencies, removed CDN dependencies, toggle anima…

When I cloned this repository, I noticed:

npm install didn't install gulp or any of its dependencies
when I opened the index file without running a server, none of the styles or the javascript loaded because my computer didn't know what to do with protocol-relative URLs
the animation came from bottom-up, and left the same which didn't feel natural to me

So I:

added all of the gulp dependencies to package.json
changed the index file to use the downloaded dependencies
made the gulpfile copy the required css/js to /dist
removed the CDN dependencies - makes more sense for local development, which is probably what people are doing with this repo
changed the css to animate fading down and in + out and up

Messed up gitignore (ng-collapsible-block.js, ng-collapsible-block.css)

I did all of this w/o thinking - conflated the demo with the actual point of this repo. Please ignore.

I think adding the dev dependencies still makes sense though, some people might want to make changes and re-build.
The demo part could be moved to /demo actually, but that would require something like gulp-gh-pages to publish it to the gh-pages branch.
Anyway, if you make a pull request with the full list of dev dependencies I'd be happy to merge it :+1:


unison-ucm: M5g -> M5j

Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

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

1 package built:

unison-ucm

I guess we need someone to test darwin version ?

I guess we need someone to test darwin version ?

That would be me :)


Proxy Error

freaky@freakpi:~ $ docker logs --since 12h tesla-ble-http-proxy
2024/10/13 08:02:07 INFO TeslaBleHttpProxy 1.2.5 is loading ...
2024/10/13 08:02:07 ERRO failed to load private key. err="open key/private.pem: no such file or directory"
2024/10/13 08:02:07 WARN BleControl could not be initialized!
2024/10/13 08:02:07 INFO TeslaBleHttpProxy is running!
2024/10/13 08:03:13 INFO ECDSA private key generated and saved
2024/10/13 08:03:13 INFO ECDSA public key generated and saved
2024/10/13 08:03:13 INFO BleControl initialized
2024/10/13 08:03:38 can't accept: listner timed out

failed to connect to vehicle (A): context deadline exceeded
Hi did an apt upgrade yesterday and since then the proxy (im using it with evcc) istnt working. Today i uninstalled docker and pulled a new installation. Now im getting the same error (context deadline exceeded) when trying to pair to the vehicle as i have gotten in evcc log. Sry for bad english.
Thank you in advance for your help.
Best regards from germany
Basti

sudo apt install --reinstall pi-bluetooth bluez bluetooth
sudo reboot

did the job.

failed to connect to vehicle (A): ble: failed to enumerate device services: ATT request failed: input channel closed: io: read/write on closed pipe
didnt work. now i did get this error 1 time and then the one in the first post again and again.

Was an error in the builtin bluetooth device in my rpi4. bluetooth usb dongle as primary device is working.


Better country flags

I know to save on the size we are using native country flags here. To make this library more usable I think we need to consider adding custom flags. Current flags look really bad on some designs. Would it be possible to expose flags so that we can pass our own flag icons or any? I'm open to contribute to this as well.
For instance, we can use this pack with MIT pack;
https://iconscout.com/icon-pack/country-flags

Is this repo dead? why is this PR being stalled?

Any new on this one ?

It looks like all CountryPickerProps is already exposed. So no PR is needed. Above can be achieved by passing this;
  <PhoneInput countryPickerProps={{withEmoji: false, renderFlagButton: null}} />


rdma-core: 23 -> 23.1

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/rdma-core/versions.
meta.description for rdma-core is: '"RDMA Core Userspace Libraries and Daemons"'.
meta.homepage for rdma-core is: '"https://github.com/linux-rdma/rdma-core"
Release on GitHub
Compare changes on GitHub

Checks done (click to expand)

built on NixOS
/bin/sh passed the binary check.
1 of 1 passed binary check by having a zero exit code.
0 of 1 passed binary check by having the new version present in output.
found 23.1 with grep in /nix/store/fbc7hfb7j5kmc0vfj9jw5zvn6y0b9lh4-rdma-core-23.1
directory tree listing: https://gist.github.com/29a140b93dbfc5aa17efcedfc611f2c2
du listing: https://gist.github.com/803a3f3d88cd33ab46acfe933ea9e5ec

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

136 total rebuild path(s)
53 package rebuild(s)
53 x86_64-linux rebuild(s)
43 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
40 aarch64-linux rebuild(s)
First fifty rebuilds by attrpath
beegfs
cntk
dl-poly-classic-mpi
ethash
ethminer
freecad
getdp
globalarrays
gromacsDoubleMpi
gromacsMpi
haskellPackages.haskell-mpi
hdf5-mpi
hpl
infiniband-diags
ior
lammps-mpi
migrate
netcdf-mpi
neuron-full
neuron-mpi
openmolcas
openmpi
opensm
parmetis
python27Packages.baselines
python27Packages.cntk
python27Packages.dask-jobqueue
python27Packages.dask-mpi
python27Packages.dask-xgboost
python27Packages.distributed
python27Packages.h5py-mpi
python27Packages.mpi4py
python27Packages.neuron-mpi
python27Packages.neurotools
python27Packages.streamz
python37Packages.baselines
python37Packages.cntk
python37Packages.dask-jobqueue
python37Packages.dask-mpi
python37Packages.dask-xgboost
python37Packages.dftfit
python37Packages.distributed
python37Packages.h5py-mpi
python37Packages.lammps-cython
python37Packages.mpi4py
python37Packages.neuron-mpi
python37Packages.streamz
quantum-espresso-mpi
raxml-mpi
rdma-core

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/fbc7hfb7j5kmc0vfj9jw5zvn6y0b9lh4-rdma-core-23.1 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
Or, build yourself:
nix-build -A rdma-core https://github.com/r-ryantm/nixpkgs/archive/6ac02de3c36edc74597fe1c9fb9ed37e98a3071a.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/fbc7hfb7j5kmc0vfj9jw5zvn6y0b9lh4-rdma-core-23.1
ls -la /nix/store/fbc7hfb7j5kmc0vfj9jw5zvn6y0b9lh4-rdma-core-23.1/bin

cc @markuskowa for testing.

@GrahamcOfBorg build openmpi infiniband-diags opensm


$@ needs to be quoted for safe usage

#!/usr/bin/env bash
test ! "$@" && echo "Specify a key." && exit 1
KEYGRIPS="$(gpg --with-keygrip --list-secret-keys $@ | grep Keygrip | awk '{print $3}')"

Consider instead:
#!/usr/bin/env bash
(( $# )) || { echo "Specify a key." >&2; exit 1; }
KEYGRIPS=$(gpg --with-keygrip --list-secret-keys "$@" | awk '/Keygrip/ { print $3 }')

"$@" expands to an arbitrary number of arguments (which can be zero -- in which case test ! is treated like test -n '!' and has a truthy result), but test ! "$@" only works in a reasonable way if it expands to exactly one argument. test ! "$*", concatenating all arguments together into a single string, is probably closer to the original intended meaning; but since the shell is guaranteed to be bash, (( $# )) is both terser and more readable.
When unquoted, $@ acts exactly like an unquoted $*, with several undesirable behaviors: It doesn't honor original quoting, but instead word-splits the argument list and then attempts to process each item resulting from that as a glob. Using "$@" passes the original argument list through exactly as-is.

Thanks for the suggestion - would you mind sending a PR to make the necessary change?


Check if same user

1st user is login then the 2nd user is login
is there any features that checks the latest login user?, the 1st user will not authorize anymore.
this is base on graphql shield
const isReadingOwnAccount = rule()((parent, { id }, { user }) => {
return user && user.sub === id;
});
thank you...

Sorry, but I don't understand the code above. It seems to be disconnected from the use case.
Can you provide mode details?
What is the capability that you are pointing at in shield?

@jaymarkjairi I'm going to close this issue since it is unrelated to this package.


Dropdown scroll bar  does not appears on iOS

Scroll bar does not appears on ipad/iphone, works fine on desktop

any solution, because i faced the same problem . i can't scroll it on iphone

This workaround using css works for me; you have to sacrifice control of the height of the dropdown box.
.angucomplete-dropdown {
height: auto;
overflow-y: scroll;
max-height: auto;
-webkit-overflow-scrolling: touch;
}


RuntimeError: Unexpected ASGI message 'websocket.send', after sending 'websocket.close'

Hey !!

I am trying to build a chat server with two websocket endpoints. one for the room owners to create_room and second for others who wants to join the room.
I have 'Room' and 'RoomManager' classes. Room has list of members, and other room info. where as 'RoomManager' helps in creating rooms and accepting people into the room.
when a user tries to enter the room with room_id i am sending a request to the room_owner whether to add the member to the room. when user accepts I am adding the member to the list of memberes in the room.
when a new user tries to enter a room and the owner accept it (by sending 'yes')  I wanted to broadcast "xxxx has entered the room". when I try to broadcast it shows this error "RuntimeError: Unexpected ASGI message 'websocket.send', after sending 'websocket.close' ".  this is the link to repo. Please help me resolve the issue. I heard of sending ping pong frames but did not find docs to implement it.

files explanation in repo:

app.py : contains http and websocket endpoints
room_manager.py : has Room and RoomManager classes.
connection_manger.py: default connection manager provided by fastapi docs. used to store temporary connections before user is part of any room.

Below is the cmd logs:

H:\PYTHON\chats\src>uvicorn app:app --reload
INFO:     Uvicorn running on http://<IP_ADDRESS>:8000 (Press CTRL+C to quit)
INFO:     Started reloader process [12408] using watchgod
INFO:     Started server process [6908]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     ('<IP_ADDRESS>', 61529) - "WebSocket /create_room/{"room_name":"new room","owner_name":"owner","owner_id":"472a97ab-c5a8-456c-97e0-487346be2ac9"}" [accepted]
room_created || room_code: 9A9Ebf
connecet in manager:
INFO:     ('<IP_ADDRESS>', 61334) - "WebSocket /join_room/{"room_code":"9A9Ebf","username":"member 2","user_id":"6c47a7bf-325e-4ab8-ba56-9afa3a6c086c"}" [accepted]
self.active_members.keys() dict_keys(['6c47a7bf-325e-4ab8-ba56-9afa3a6c086c'])
self.active_rooms.keys():: dict_keys(['9A9Ebf'])
self.active_rooms[room_code]:: <room_manager.Room object at 0x000001ED9E6D3B70>
control inside Room.join_room:: {'room_code': '9A9Ebf', 'username': 'member 2', 'user_id': '6c47a7bf-325e-4ab8-ba56-9afa3a6c086c', 'ws': <starlette.websockets.WebSocket object at 0x000001ED9E709668>}
trying to send_personal_message to owner
user_id: 6c47a7bf-325e-4ab8-ba56-9afa3a6c086c
user in 105 : {'room_code': '9A9Ebf', 'username': 'member 2', 'user_id': '6c47a7bf-325e-4ab8-ba56-9afa3a6c086c', 'ws': <starlette.websockets.WebSocket object at 0x000001ED9E709668>}
userDetial sin 89: {'room_code': '9A9Ebf', 'username': 'member 2', 'user_id': '6c47a7bf-325e-4ab8-ba56-9afa3a6c086c', 'ws': <starlette.websockets.WebSocket object at 0x000001ED9E709668>}
ERROR:    Exception in ASGI application
Traceback (most recent call last):
File "c:\users\nandu\appdata\local\programs\python\python37\lib\site-packages\uvicorn\protocols\websockets\websockets_impl.py", line 171, in run_asgi
result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
File "c:\users\nandu\appdata\local\programs\python\python37\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 59, in call
return await self.app(scope, receive, send)
File "c:\users\nandu\appdata\local\programs\python\python37\lib\site-packages\fastapi\applications.py", line 199, in call
await super().call(scope, receive, send)
File "c:\users\nandu\appdata\local\programs\python\python37\lib\site-packages\starlette\applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "c:\users\nandu\appdata\local\programs\python\python37\lib\site-packages\starlette\middleware\errors.py", line 146, in call
await self.app(scope, receive, send)
File "c:\users\nandu\appdata\local\programs\python\python37\lib\site-packages\starlette\middleware\cors.py", line 70, in call
await self.app(scope, receive, send)
File "c:\users\nandu\appdata\local\programs\python\python37\lib\site-packages\starlette\exceptions.py", line 58, in call
await self.app(scope, receive, send)
File "c:\users\nandu\appdata\local\programs\python\python37\lib\site-packages\starlette\routing.py", line 580, in call
await route.handle(scope, receive, send)
File "c:\users\nandu\appdata\local\programs\python\python37\lib\site-packages\starlette\routing.py", line 297, in handle
await self.app(scope, receive, send)
File "c:\users\nandu\appdata\local\programs\python\python37\lib\site-packages\starlette\routing.py", line 68, in app
await func(session)
File "c:\users\nandu\appdata\local\programs\python\python37\lib\site-packages\fastapi\routing.py", line 260, in app
await dependant.call(**values)
File ".\app.py", line 89, in create_room
await room.listen_for_joiners()
File ".\room_manager.py", line 112, in listen_for_joiners
await self.add_user_to_room(user,user['ws'])
File ".\room_manager.py", line 93, in add_user_to_room
await self.broadcast_message(f"{user_details['username']} Has Entered The Chat.")
File ".\room_manager.py", line 79, in broadcast_message
await member_socket.send_text(message)
File "c:\users\nandu\appdata\local\programs\python\python37\lib\site-packages\starlette\websockets.py", line 128, in send_text
await self.send({"type": "websocket.send", "text": data})
File "c:\users\nandu\appdata\local\programs\python\python37\lib\site-packages\starlette\websockets.py", line 68, in send
await self._send(message)
File "c:\users\nandu\appdata\local\programs\python\python37\lib\site-packages\uvicorn\protocols\websockets\websockets_impl.py", line 249, in asgi_send
raise RuntimeError(msg % message_type)
RuntimeError: Unexpected ASGI message 'websocket.send', after sending 'websocket.close'.

Please refer to this closed issue. https://github.com/tiangolo/fastapi/issues/2370


Experimental update to generic reconciler-runtime

Moved to https://github.com/servicebinding/runtime/pull/261


Test automation

@ArthiIreddy @drbruce-git
Please see the above review.
I am wondering, if we should somehow also prune the dbb collections at the end of the tests. When I tested your PR, it left them on my DBB WebApp. Probably at the very end of test.groovy? And we also need to consider the cloning process of collection, which is implemented in zAppBuild .


Update documentation to be clear that native extensions cannot be developed using UWP / WinUI3

The docs contain the following text:
 The app installer must create a registry key and set the default value of the key to the full path of the native messaging host manifest file.

This registry update step is impossible from an MSIX package, because of the sandboxed nature of MSIX apps. In turn, this means that neither WinUI3 nor UWP can be used to develop native web extensions, because both require MSIX.
The docs need to be updated to clearly state which Windows technologies are compatible, so that you don't end up wasting ages doing down development dead ends.

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

ID: 6baf3ba3-2850-707d-fdfc-9b65f88655c7
Version Independent ID: 661b537b-bba6-cb07-9979-cddcc35421e3
Content: Native messaging - Microsoft Edge Developer documentation
Content Source: microsoft-edge/extensions-chromium/developer-guide/native-messaging.md
Service: microsoft-edge
Sub-service: extensions
GitHub Login: @MSEdgeTeam
Microsoft Alias: msedgedevrel

AB#51711492

In the meantime, I would suggest referring to the Windows app developer documentation for help on updating the registry on install. It seems like this article might help., if you're able to use the Windows Installer: https://learn.microsoft.com/en-us/windows/win32/msi/modifying-the-registry

Unfortunately the link above is for the obsolete MSI installer, which has been replaced by MSIX.
To clarify, the docs need to describe a workable path from:

The development of the WinUI3 native extension; and
Packaged as modern MSIX; and
Findable by Microsoft Edge.

Right now this appears impossible as MSIX (note the X - not the same as MSI) sandboxes applications (a good thing) and in so doing makes it impossible for Edge and a native extension from seeing each other.
The docs either need to explicitly state that WinUI+MSIX can be used to make extensions, or explicitly state that WinUI3/MSIX cannot be used to make extensions.
Right now the docs say nothing, leaving you investing tonnes of time making a WinUI3 app, only to discover it's impossible to deploy it.


Clarify exactly how to get to the configuration

The example snipppet is hard to apply for someone that may have completed the "install" step months ago and then come back to this howto to do configuration.

I agree with fabaff in this case. If an upstream doc is not correct, we should fix that.


ExcelImport: ImportAction and  ImportExtension.Caption() not Localized

Work problem:
there is no mapping of columns in the settings
Xpand.ExpressApp.ExcelImporter.Services.IsMatch compared no localized and localized values in new thread, because ValueManager not contains BOmodel
Reproduce:
you have external language, e.g. ru
you web app start in single language mode: ru
function: Xpand.ExpressApp.ExcelImporter.Controllers.ImportActionOnExecute
step one (good work):
line: var importParameters = ExcelImport.GetImportParameters();
run: CaptionHelper.GetMemberCaprion(<HasLocalizedmember>) == <LocalizedCaprion>
step two (crazy work):
line in Observable.Start async delegate
run: CaptionHelper.GetMemberCaprion(<HasLocalizedmember>) == <NO_LocalizedCaprion>
Desktop

OS: Windows 7
Browser Explorer10, Chrome
XAF 18.2.4, eXpand 18.2.404.0

Additional context
Referenced all XAF modules
Referenced eXpand:

for Module
-- external Security, Validation
-- internal (build in solution) ExcelImporter

for Module.Web
-- external Security, Validation, Base, BaseImple
-- internal (build in solution) ExcelImporter.Web

for Web
-- external Security, Validation, Base, BaseImple, ExpressApp, AdditionalViewControlsProvider, AdditionalViewControlsProvider.Web, Dashboard, Logic, Security.Web, Validation.Web, Web, XtraDashboard.Web, Utils, ModelViewInheritance, Xpo
-- internal (build in solution) ExcelImporter, ExcelImporter.Web

WebApplication implement of Xpand.ExpressApp.Web.XpandWebApplication

thnks for reporting I will review and reply.
In the meantime I am very interested in this comment:

line in Observable.Start async delegate

so we speak about
https://github.com/eXpandFramework/eXpand/blob/e90d395a476a0e5b3ac316c5677391523f3ac44b/Xpand/Xpand.ExpressApp.Modules/ExcelImporter/Controllers/ExcelImportDetailViewController.cs#L110-L115
I agree that RX hides the technical, which can make the work look like crazy. However this me trying to play magician and guess what you really meant, or if there is actually a problem there.
Care to share more thoughts? Maybe there is space for improvement there.

I apologize, I did not express myself quite accurately.
I used a breakpoint before the function Observable.Start(async () =>{...} (step one) and inside it (step two)
e.g. line 110: var space = Application.CreateObjectSpace(ExcelImport.GetType());
This example is described to demonstrate the wrong behavior. The error itself lies inside the import function.
Function: Xpand.ExpressApp.ExcelImporter.Services.GetImportToObject
line 68:

importToTypeInfo.GetKeyMember()
i see this inner call stack in source code
-- Xpand.ExpressApp.ExcelImporter.BusinessObjects.ExcelColumnMap.MemberInfo
--- Xpand.ExpressApp.ExcelImporter.BusinessObjects.ExcelColumnMap.FindMember
---- Xpand.ExpressApp.ExcelImporter.Services.ImportExtension.FindMember
----- Xpand.ExpressApp.ExcelImporter.Services.ImportExtension.IsMatch
------ CaptionHelper.GetMemberCaption(info) // Returns an invalid value (NO_LocalizedCaption).

At the moment, I decide whether to debug XAF, to understand how CaptionHalper works

CaptionHelper has a static instance of the model thats it.
btw can you share your sample?

As for the import functions at the moment, I have added a function to select my own key field for the import object and reference books for attributes (necessary because the source files all have a strange format)
and is currently busy developing import hierarchical structures. hierarchy format:

in one column by the pattern "nnn.nnn. ... .nnn"
in two referring columns, ID and Parent

Be sure to share the development)

Текущий проект не могу отправить, но вот попробовать создать простой пример могу, скоро вышлю

thnks and try to speak English :)

thnks and try to speak English :)

Oh, sorry, earned :)

I cannot send the current project, but I can try to create a simple example, I will send it out soon

I had an incident when creating an example of an error; (. I could easily reproduce Caption Helper's incapacity, but could not show that an error occurred (went through all the breackpoints and everything was OK). I can assume that the state described earlier is This is a rare case or my mistake. I'm sorry that I confused you (Nevertheless, I have put an example in which my revision is already there with manual adjustment of the key field, and judging by the debugging of the source code, it works! But does not save changes to the strategy Update and create
CaptionHelperErrorSample.zip

Nevertheless, I have put an example in which my revision is already there with manual adjustment of the key field, and judging by the debugging of the source code, it works! But does not save changes to the strategy Update and create

you code should be very abstract judging from your words :). However as I said my resources are limited and I will appreciate some details on what to do with your sample and what you have changed and for what reason. No need for an essay just a basic outline please.

To save your time, I tested the Refresh mode and created it with the ExtselImport standard library.
Object name field Contract not updated, although I added the attribute [ExcelImportKey ("Code")] for this object
namespace CaptionHelperErrorSample.Module.BusinessObjects
{
[NavigationItem("Default")]
[DefaultProperty("Name")]
[ExcelImportKey("Code")]
public class Contract : BaseObject
{
public Contract(Session session)
: base(session)
{
}
[Size(255)]
public string Code { get; set; }
[Size(SizeAttribute.Unlimited)]
public string Name { get; set; }
}
}
Ps
Regarding changes in source files:

class ImportExtension
-- function GetImportToObject: Criteria of Key
-- function Import: custom Reference Key
class ExcelImport
-- property GetKeyMember: add custom key property
class ExcelColumnMapMemberTypeValue
-- property IsKeyMember, PropertyKeyMemberName, PropertyKeyMember
class ExcelColumnMap
-- property IsKeyMember

Today, my working day has come to an end, until tomorrow and have a good evening)

Thanks for the time authoring so many changes, however I noticed that you did not set the application language to Ru, once set I was able to map and import all 2 rows with success. Try it and let me know please.

Unfortunately, I do not explain well, but I will always try.
Step 1:
Database is empty
Step 2:
Import - database is full
Step 3:
changing the value of one non-key field in the program
Step 3:
attempt to re-import in the "Update and create" method
Passing through the code in debug mode, I found that the changes occur correctly, but then they are not saved, although ObjectSpacw.IsModified == false after asynchronous saving
https://github.com/eXpandFramework/eXpand/blob/18.2/Xpand/Xpand.ExpressApp.Modules/ExcelImporter/Controllers/ExcelImportDetailViewController.cs:114
P.S.
I decided to install Devekspress at home and make a branch with my own modifications to the githab

i can reproduce the case even on Ru language, working on it as well.

I decided to install Devekspress at home and make a branch with my own modifications to the githab
PR are welcome of course just try to be descriptive and short, if possible.

Passing through the code in debug mode, I found that the changes occur correctly, but then they are not saved, although ObjectSpacw.IsModified == false after asynchronous saving

this draws the attention to you bussiness object declarations which are wrong. With Xpo you need to use
        public string Code{
            get => _code;
            set => SetPropertyValue(nameof(Code), ref _code, value);
        }

and not just automatic properties else IObjectSpace does not know that is modified.

When I checked, the ObjectSpace was changed to a string.
await ObjectSpace.WhenCommiting (). FirstAsync ();
after the line and next steps it was marked as unchanged, although nothing has changed in the database
When I can change the code and test it, I'll let you know
Thank you so much for your help.

Good afternoon!
I was finally able to get back to work!
Thank you, your comment about anonymous property helped me. However, I don’t quite understand why ObjectSpace at first knows that it is changed, and for asynchronous saving it forgets about changes ... But for now this does not prevent me from working)
P.S.
I almost finished the import, I hope the other day to fill it. Unfortunately, I have to develop it for version 18.2.4. Tell me how to transfer the changes to the project?

ObjectSpace at first knows that it is changed, and for asynchronous saving it forgets about changes

you somehow against the RX async implementation used, however I promise you it has nothing to do with async, it is a classic xpo question.

Tell me how to transfer the changes to the project?

in english please :)

in english please :)

I'll start my thought from afar:

I have not yet shared my work on GitHub
all the more relevant (hopefully) developments that are made in the outdated version

How do I see this for myself:

I fork the 18.2.4 version
making changes
I make a commit
I create Issues with the offer of the function and a link to my fork

I'm right?

oh yes that can work, or even just post your commit in a related post and I could cherry pick no need to synchronize the universe every time, or feel free to discuss problems here, we will find a solution.

thank you very much!

Good day!
Recently, I have a lot of work. Because of this, the importer cannot be finished. At the moment, I have not implemented 2 more major functions. Also not yet engaged in optimization.
My question is: Can I create an example to evaluate the functionality and download it here?
Such a question arose because of the complicated interface and algorithms.
Thank!

sure if it works I can evaluate and even integrate the ideas

Closing issue for age. Feel free to reopen it at any time.
.Thank you for your contribution.


svg (d3.js) rendering is prevented by ionic

I raised this as an issue with ionic but they suggested also to post it here
I created a simple game using d3.js, but when including the ionic CSS in the project,
the game will not repaint.
but only in chrome (current chrome = Version 40.0.2214.115 (64-bit)
) for me. firefox, safari are both ok, as well as canary (chrome 42.x )
https://github.com/driftyco/ionic/issues/3159#issuecomment-75972024
resizing the window will cause a repaint to trigger.
any suggestions what this might be?
the game can be seen here, but clicking the "lets play" button has no effect in chrome
http://chatu.meteor.com/pairs/ant1
ionic team suggested

you need to call $ionicScrollDelegate.resize() after you update the svg

but i dont think that's implemented in meteoric? So i was trying to understand better what it does.
$ionicScrollDelegate.resize()  just looks like a stub function, is this the actual implementation?

Interesting, we're having a similar issue with Chrome not repainting our UI when using HTML5 video elements and WebRTC calls. Seems like they might be related. We'll dig into it this week.

yeh ive seen a lot of other graphic glitches, eg like below - which is screenshot from an android phone.
i think ionic is causing with how all the ionContent or ionView is going into a div,
which is then scrollable
different from just the page being scrollable
thats how they get the full-page transitions
but the browser doesnt handle it too well...
not sure what ways around that. for every benefit (fancy page transitions) theres a drawback (janky performance and glitching)
perhaps the android native scrolling will help this?
http://forum.ionicframework.com/t/native-scrolling-android-testers-wanted/17059


Export's "BOX H" in annotations reports wrong height

Current Behavior
views/pages/exports.ejs
BOX H field exports the image height
Expected Behavior
views/pages/exports.ejs
BOX H field exports the annotation height

Pull request made #51
Fixed two places in app.js where box.y was being assigned to Box H instead of box.h.
e.g. from
fields['Box H'] = typeof(box.h) !== 'undefined' ? box.y : '';
to
fields['Box H'] = typeof(box.h) !== 'undefined' ? box.h : '';


What are the general principles of the VC, VC_SQRT and KR normalization methods?

hello,
I used juicer_tools to dump my Hi-C data recently. In juicer's dump you provided three normalization methods: VC, VC_SQRT, KR, and I want to know what are the principles of them. I searched them on the internet and your paper(Rao et al. 2014), but only find KR.
I have to know about the  normalization method of Hi-C in my study, so would you tell me the general principles of the three normalization method in your tools? Or some relative materails and references is good.
Thank you!
Yours,
J.Wan

Hello,
Please look at the supplementary materials of the Cell 2014 paper - there
is a long discussion of normalization techniques.  VC is vanilla coverage.
Best
Neva
On Sat, May 20, 2017 at 10:50 AM, Jing Wan<EMAIL_ADDRESS>wrote:

hello,
I used juicer_tools to dump my Hi-C data recently. In juicer's dump you
provided three normalization methods: VC, VC_SQRT, KR, and I want to know
what are the principles of them. I searched them on the internet and your
paper(Rao et al. 2014), but only find KR.
I have to know about the normalization method of Hi-C in my study, so
would you tell me the general principles of the three normalization method
in your tools? Or some relative materails and references is good.
Thank you!
Yours,
J.Wan
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/theaidenlab/juicer/issues/19, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABWiWxtCovNCGjjwEjRVB5HKEBlMR8uwks5r7qlYgaJpZM4NhPIs
.

--
Neva Cherniavsky Durand, Ph.D.
Staff Scientist, Aiden Lab
www.aidenlab.org

FYI,
VC: vanilla coverage (overcorrects low coverage loci)
VC_SQRT: square root vanilla coverage (creates a matrix whose row and column sums are all approximately equal)
KR : Knight and Ruiz normalization (works at both low and high resolutions.)
Ref: Knight, P., and Ruiz, D. (2012). A fast algorithm for matrix balancing. IMA J. Numer. Anal. Published online October 26, 2012. http://dx.doi.org/10.1093/imanum/drs019.
Took me quite a time to dig out this info. I hope it helps.


No task to suspend in defer

0.13.0 works.
require 'celluloid'

class A
  include Celluloid

  def bla(&block)
    defer do
      yield 1
    end
  end
end

a = A.new
a.bla{|c| p c }

E, [2013-05-02T04:30:02.423694 #6142] ERROR -- : A crashed!
RuntimeError: No task to suspend
	/home/kostya/.rvm/gems/ruby-2.0.0-p0/gems/celluloid-0.14.0.pre/lib/celluloid/proxies/block_proxy.rb:21:in `block in to_proc'
	1.rb:9:in `block in bla'
	/home/kostya/.rvm/gems/ruby-2.0.0-p0/gems/celluloid-0.14.0.pre/lib/celluloid/calls.rb:25:in `call'
	/home/kostya/.rvm/gems/ruby-2.0.0-p0/gems/celluloid-0.14.0.pre/lib/celluloid/calls.rb:25:in `public_send'
	/home/kostya/.rvm/gems/ruby-2.0.0-p0/gems/celluloid-0.14.0.pre/lib/celluloid/calls.rb:25:in `dispatch'
	/home/kostya/.rvm/gems/ruby-2.0.0-p0/gems/celluloid-0.14.0.pre/lib/celluloid/calls.rb:67:in `dispatch'
	/home/kostya/.rvm/gems/ruby-2.0.0-p0/gems/celluloid-0.14.0.pre/lib/celluloid/future.rb:21:in `block in initialize'
	/home/kostya/.rvm/gems/ruby-2.0.0-p0/gems/celluloid-0.14.0.pre/lib/celluloid/internal_pool.rb:59:in `call'
	/home/kostya/.rvm/gems/ruby-2.0.0-p0/gems/celluloid-0.14.0.pre/lib/celluloid/internal_pool.rb:59:in `block in create'
	(celluloid):0:in `remote procedure call'
	/home/kostya/.rvm/gems/ruby-2.0.0-p0/gems/celluloid-0.14.0.pre/lib/celluloid/future.rb:114:in `value'
	/home/kostya/.rvm/gems/ruby-2.0.0-p0/gems/celluloid-0.14.0.pre/lib/celluloid/future.rb:78:in `value'
	/home/kostya/.rvm/gems/ruby-2.0.0-p0/gems/celluloid-0.14.0.pre/lib/celluloid.rb:477:in `defer'
	1.rb:8:in `bla'
	/home/kostya/.rvm/gems/ruby-2.0.0-p0/gems/celluloid-0.14.0.pre/lib/celluloid/calls.rb:25:in `public_send'
	/home/kostya/.rvm/gems/ruby-2.0.0-p0/gems/celluloid-0.14.0.pre/lib/celluloid/calls.rb:25:in `dispatch'
	/home/kostya/.rvm/gems/ruby-2.0.0-p0/gems/celluloid-0.14.0.pre/lib/celluloid/calls.rb:67:in `dispatch'
	/home/kostya/.rvm/gems/ruby-2.0.0-p0/gems/celluloid-0.14.0.pre/lib/celluloid/actor.rb:328:in `block in handle_message'
	/home/kostya/.rvm/gems/ruby-2.0.0-p0/gems/celluloid-0.14.0.pre/lib/celluloid/tasks.rb:42:in `block in initialize'
	/home/kostya/.rvm/gems/ruby-2.0.0-p0/gems/celluloid-0.14.0.pre/lib/celluloid/tasks/task_fiber.rb:9:in `block in create'

This has introduced instability I'm afraid.


--localstatedir= Question?

Did you know that "xrdp" always creates a "run" sub-directory below whatever is put in --localstatedir=
So, if I try to run xrdp as a non-root user, and I want the localstatedir=/run/xrdp, then "xrdp" creates
/run/xrdp/run
Now, "xrdp-sesman" doesn't do this and as it has to start first, it thus implies a ExecStartPre script to create "/run/xrdp/run" with correct permissions.
Of course, I could use --nodaemon, but that floods messages into syslog/journalctl
Is this intentional behavour?
Thanks

Morning John,
I've had a trawl through the affected code area histories in xrdp and xrdp-sesman.
The functionality to create the pid directory (localstatedir) was implemented in xrdp in 2012 in commit 62bf3c61f530024284c56a126a407c537220e28f.
At the time, the corresponding feature was not added to sesman.
Back in those days we'll have been using the init.d script to start xrdp services. This script starts xrdp, and then starts xrdp-sesman if required. Arguably there's a race condition here if the localstatedir doesn't exist.
So I think the actual answer to your question is that this isn't intentional behaviour, but is rather historical behaviour.
As to running the xrdp process as a non-root user, it's something I've also given a bit of thought to. It's attractive from a security perspective but has a number of design problems which would need to be solved. A couple are:-

Unless sesman is also running as non-root (which makes starting sessions challenging), a different localstatedir is probably required. A simple workaround is to start as root and then drop privileges.
The sockets created by the user's chansrv process need to be connected to when a session is resumed. At the moment xrdp can do this as it's running as root. If it's running as a restricted user, this functionality will not be available. This one's a bit tricky, as connecting to chansrv effectively gives you access to a lot of information available to the session. It's possible these connections needs to be reworked to go in the other direction, but it's not obvious how, or at least not to me.

I hope I've (largely) understood where you're coming from, and that's useful. If you've got any comments on my thoughts above I'd very much like them - I may be missing something obvious.

Hello Matt
Thank you for your detailed and updated answer. And thank you all for the excellent xrdp software which is always my first choice for remote access.
We have somewhat overlapped, as I have been and compiling and installing as root xrdp for many years, and also only just realised Debian/Ubuntu run as a non-root account. Hence my thoughts as to how I could always install your latest build with my own script. See https://github.com/jradxl/xrdp-build-install. (I could of just used the Deb Sources, but was interested in trying myself)
It does seem to work, but I don't know if it's total right yet!
Do you think running xrdp as non-root is more secure, as some of my uses of xrdp are public facing?
Perhaps you could write a quick Wiki entry on how to do it, and perhaps thinking of support this non-root method in the future.
Thanks again
John

Hi John,
I've had a (very) quick look at your script, and it seems to be working along the right lines in that it's doing all the things that the Debian patch seems to do.
The three things that spring to mind that would be difficult for xrdp as non-root are creating the log file, creating the PID file and accessing the sockets dir. I can see you've got the first and third of these covered but not the second (I might have missed it). Is the PID file being created, and does systemctl stop xrdp work as expected?
Personally I'm a big fan of only running things as root if they absolutely need to, so I think that this is a worthwhile thing to investigate. However, running any kind of directly-connected internet service which simply uses username/password to authenticate is risky these days. A more secure option would be to set up a jump server facing the internet which you then use to reach the actual target server. You can then use 2FA to authenticate to the jump server before connecting to the target. guacamole [apache.org] might be worth a look for XRDP - it's something I've played with recently. It may, or may not suit your particular use case(s).
The project as a whole has taken a decision not to support running xrdp as non-root directly, but rather to leave this to the distros to patch - see the comments on #464. However, the project is also amenable to patches which aren't intrusive - see neutrinolabs/xorgxrdp#110 . Personally I'm happy with this approach. I really like your idea of a wiki entry however. I'll do some research first so that I'm up to speed with the Debian patch and its implications then I'll knock something up and let you know - I'd appreciate it if you can review it for me.
Thanks for the constructive comments.

Thank you for reporting and as Matt says, it is historical behaviour and worth addressing.

John,
Sorry it's taken a while to get back to you. There turns out to be quite a bit of complexity in the Debian package which I hadn't appreciated.
Could you have a look at these two pages on my local Wiki?

https://github.com/matt335672/xrdp/wiki/Running-the-xrdp-process-as-a-non-root
https://github.com/matt335672/xrdp/wiki/The-socksdir-directory

I think these cover the detail you need, but I'd really appreciate another couple of eyes to look at them before I add them to the main wiki.
@mirabilos - I've attempted to document some of the excellent work you've done getting the xrdp daemon running as non-root  on Debian. I may have some things wrong, so if you've got time to cast your eye over the two local pages above that could be very useful.
Thanks very much

Dear MattThank you so much for writing these two documents, and my apologise for a bit of delay in responding.
They are excellent and catch very succinctly what I perceived the Debian package to do, and helped me understand in greater detail what is necessary to run xrdp as non-root. I just wonder whether the "xrdp process" document would benefit from a final conclusions paragraph, as I am just left wondering whether the Neutrinolabs' team think of this as interesting but unimportant, or whether you will adopt this method.
Linux packages go out of date so easily, that many I'm sure, like me, regularly return to your source code which builds so quickly and easily, but perhaps don't realise xrdp is running as root.
Meanwhile, after thinking this through, I have, on my four hobbyist public VMs from various suppliers, denied access to 3389, and now connect via a SSH tunnel.
I had no idea it was so that was so easy to set that up using Remmina.
Thanks again, and I look forward to seeing them published!And thanks again for the Xrdp software - I wish I had the brain to understand even half of it!
Best wishes in these strange virus avoiding times...John
On Monday, 23 March 2020, 17:32:11 GMT, matt335672<EMAIL_ADDRESS>wrote:

John,
Sorry it's taken a while to get back to you. There turns out to be quite a bit of complexity in the Debian package which I hadn't appreciated.
Could you have a look at these two pages on my local Wiki?

https://github.com/matt335672/xrdp/wiki/Running-the-xrdp-process-as-a-non-root
https://github.com/matt335672/xrdp/wiki/The-socksdir-directory

I think these cover the detail you need, but I'd really appreciate another couple of eyes to look at them before I add them to the main wiki.
@mirabilos - I've attempted to document some of the excellent work you've done getting the xrdp daemon running as non-root on Debian. I may have some things wrong, so if you've got time to cast your eye over the two local pages above that could be very useful.
Thanks very much
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Hi John,
Your message was very timely - I'd just remembered I needed to chase this up!
The pages are moved to the main Wiki now. I can see where you're coming from as regards a 'final conclusions' paragraph, and if this was a commercial environment rather than an open source project I'd certainly add it, particularly as security is becoming more and more important. I'm just a contributor here however, and I'm not going to rock any boats.
Tunnelling over ssh is a great idea if you've got a decent connection - if you've got the ssh port open anyway you're in no way increasing the attack surface, and it's so beautifully simple. The only real disadvantage of this approach that I can see is the 'TCP over TCP' problem, so if the connection is flaky you might have to consider more sophisticated approaches.
Thanks for the kind words, and best wishes to you too,
--
Matt


Automatically detect Bolt or Lerna

Since both of these have standard configurations, you can automatically detect which is being used based on where their configuration is.

Thanks . 😃


RepoNotRequired: add version and help

Adds version and help to the list git operations that do not require a repo.
This allows posh-git to be imported properly without warnings. I'm unsure though if this is unnecessary given the recommendations @StartAutomating gave to @dahlbyk in https://github.com/dahlbyk/posh-git/issues/912.
However, setting posh-git aside for a second, I don't think it would hurt to merge this PR since I don't believe version and help require a repo and it would be annoying to have to cd into a repo directory to see my git version.
Example warnings from posh-git (version 1.1.0) and ugit (version 0.2.9) when importing both modules in the same session.

I ran the Tests after making the changes and they passed.

Great!  I've created issue #79 to attach to this update.

Looks good, thank you!!


[WIP][hlm-707]: Integration

Added loggers
Made syncUp async
Updating sync status in database
Updating error details (if any) in database
Related refactoring to account for requestInfo for calls to other services
JUnits added/modified
Minor fixes/formatting

Closing this as the approach is not finalised yet. The branch still remains.


gofmt

Just ran
gofmt -w .

on the project root. That's all.
https://blog.golang.org/go-fmt-your-code

I made this PR with a project going on over at https://github.com/rotblauer/gofmt-att, and it's definitely a work in progress. So if I got something wrong, or this is annoying at all, please file an issue over there and we'll sort it out.

The master branch is defunct. The branches actively maintained are release-branch.v5 and release-branch.v6.


race condition between claimReward() and opening a channel again?

claimReward() works only when the TokenNetwork contract has no ChannelState between the two participants.
https://github.com/raiden-network/raiden-contracts/blob/c6e94549c7296204b61742da174ef102961bbeb3/raiden_contracts/contracts/services/MonitoringService.sol#L258
So if I don't want to pay a MS, I can call TokenNetwork openChannel(me, partner, something) before the MS calls claimReward().  Then claimReward() will see Openned, and the MS won't get the reward.  Is this correct?

This is because the MS contract is outdated. This PR https://github.com/raiden-network/raiden-contracts/pull/360/files should fix the issue, as it also references the channel_identifier. This makes the distinction between the old and new channel.

I see, and I agree.


E-Mail dosnt work anymore

Ater updating to current git, huginn fails to send emails. I always get connection refused. If i connect with nc to the specified port/ip in .env, it works.
Unfortunately, the backtrace dosnt show any values, how to tackle this?

I've dumped the network traffic. It tries to connect to ::1, then <IP_ADDRESS> port 25. In my config i have another ip and port 587 (ie, .env).

after  bundle update it worked again.

Good!


Feature Request: Format Selection with Prettier

Is it possible to set up the integrated prettier plugin to format a selection in the buffer without saving the file? I often run a dev server in watch mode and I would like to be able to preview the changes before I save the file. @Akin909 the plugin is fantastic, thanks for adding it! Is this something that can be easily added?

@parkerault I think the prettier module comes with a format selection method and I briefly considered adding it on the first pass but with all the things that still needed implementation at that point it seemed overly ambitious at the time.
I should be able to add that without too much trouble the main thing to figure out is how oni getting and setting a visual selection works (haven't worked with that part of oni's api yet), but have seen bits of it so should be fine 😆.

Little bit offtop maybe, but I would like to see the ability to format not-yet-saved-and-named file (when you just open a new instance of oni). My motivation is that I'm copying pieces of json from the logs of VM, pasting it in oni and want to format the output right away, without save a named file

Yeah, ideally it would operate on buffers, not files, so you could format an arbitrary amount of text without saving to disk.

Its probably worth making an issue for that (ie formatting the buffer without saving).
I think the reason currently that isn't possible is due to the attempted grabbing of the custom prettierrc
https://github.com/onivim/oni/blob/eefa28326c872bbf3673282014f45252ccb8b385/extensions/oni-plugin-prettier/index.js#L102
Since an unsaved file does not have have a filePath it fails, due to
https://github.com/onivim/oni/blob/eefa28326c872bbf3673282014f45252ccb8b385/extensions/oni-plugin-prettier/index.js#L54-L63
If the logic here could be updated then it should work fine.
Can the check just be swapped to instead of throwing an error we return some known empty value? The next step after that is comparing if the default or file specific config should be used, so the worst case is that the default config is applied.
(This can all be tested with the command in the Ctrl-P menu).
As for the actual issue, as mentioned it doesn't seem to hard to get prettier itself to work, its more the getting the correct region in. I think we can use something like the  following:
Oni.editors.activeEditor.neovim.eval(`getpos("v")`)

Which returns [BufferNum, Line, Col, Offset] of the start of the visual region, and then we can just use Oni.editors.activeEditor.activeBuffer.cursor to get the current cursor position to work out the end of the cursor. That gives the start and end of the visual region.
It can probably be assumed we only care about the line numbers, since I can't think of a time someone would only want to format from a given column to another?


net: ieee802154: Add new config options

Add IEEE802154_CONFIG_PROMISCUOUS and IEEE802154_CONFIG_PAN_COORDINATOR config options.

@rlubos, would this allow for building an NCP radio sniffer with https://openthread.io/guides/pyspinel/sniffer?

@markus-becker-tridonic-com I haven' tested the sniffer solution so i can' tell for sure.
Promiscuous mode is certainly needed for a sniffer, so if it was the only missing piece then indeed, there's a chance it would work (not I've only added implementation of this config for nRF).


[FIRTrace updateTraceWithSessionId]_block_invoke

Describe the bug
This is a bug from the Firebase SDK, that we are seeing through this plugin: https://github.com/firebase/firebase-ios-sdk/issues/2019
Essentially a large number of our users are experiencing crashing due to Crashlytics.
To Reproduce
Steps to reproduce the behavior:

App Starts with Cordova-plugin-firebase
Certain performance triggers cause Firebase SDK to crash

Expected behavior
No App should Crash due to the presence of an Analytics / Crash monitoring solution
Plugin Version
cordova-plugin-firebase 2.0.5 "Google Firebase Plugin"
Desktop (please complete the following information):
Smartphone (please complete the following information):

Device: iPhone(s)
OS: iOS 11.4.1 and 12.0.2

Additional context
Following the bug report directly on Firebase SDK, the solution appears to be to update the Firebase plugin to 5.11 making sure the performance SDK within Firebase is 2.2.
Additionally there are some notes around back end fixes, but these I believe are with Google and are outside of this plugins scope.

@soumak77  Hey Brian, I hope all is well?
I was trying to upgrade the Firebase Frameworks for iOS but I couldn't see how you obtained some of the Frameworks like: FirebaseAuth.framework from CocoaPods it only gives me src, do you build from src, or obtain the frameworks another way?

Found the link: Integrate without CocoaPods.  I will do a PR with the latest, hopefully that will resolve.

I have added a PR #937, I have also been using this in my production project and have seen the crash no longer reported for the version with this upgrade, everything appears to be working.  I am however struggling with the CI on the PR, so any help gratefully received.


List data files to include

Write out filenames, types, and what they contain

First pass at this:

File Name
Description/comments/questions

lake_metadata.csv
include column for whether the lake is included in each model w T/F?

lake_locations.zip
Should just be lat/long?

lake_config.nml
Should just be the one file I think … (don't need the config.json that is used in others)?

lake_temperature_observations.zip

meteorological_inputs_nldas.zip

meteorological_inputs_gcm.zip

lake_temp_preds_glm_nldas.zip

lake_temp_preds_glm_gcm.zip

lake_temp_preds_lstm_nldas.zip

lake_temp_metrics_glm_nldas.csv

lake_temp_metrics_glm_gcm.csv

Let's list out what lake attributes we are actually using so that we can include in a single metadata file!

Which lake attributes Andy uses, to be merged with Lindsay's table and included in a single metadata file (and which file in model-prep we can find them)

Lake attribute
model-prep origin file

Max depth
????

The list I initially wrote did not include any evaluation files. We did include evaluation-specific files in the MN TOHA release but not in the previous Midwest release.

Do we have a ready-made way to match lakes to states?

Yes! That crosswalk exists here: https://github.com/USGS-R/lake-temperature-model-prep/blob/main/2_crosswalk_munge.yml#L167

The list I initially wrote did not include any evaluation files. We did include evaluation-specific files in the MN TOHA release but not in the previous Midwest release.

I did a fair bit of initial evaluation work, but I don't have ready-made eval files. Just one that gives three overall performance stats (RMSE, median RMSE over all lakes, mean RMSE over all lakes).

File Name
Description/comments/questions

lake_metadata.csv
include column for whether the lake is included in each model w T/F?

lake_locations.zip
Spatial zip

lake_temperature_observations.zip

meteorological_inputs_nldas.zip

meteorological_inputs_gcm.zip

lake_temp_preds_glm_nldas.nc

lake_temp_preds_glm_gcm.nc

lake_temp_preds_lstm_nldas.nc

lake_temp_metrics_glm_nldas.csv

lake_temp_metrics_glm_gcm.csv

I'm now wondering how necessary the meteorological inputs are to include ... ?

For now, logging my scripts/progress on each of the files here. Pretty good progress but still have some work to do on the meteo files.
library(sf)
library(tidyverse)

##### lake_metadata.csv #####

# This file was sent by Andy
lstm_metadata <- read_csv('in_data/lake_metadata_lstm.csv') %>%
  select(site_id, area, elevation, state, lstm_group, lstm_predictions)

lake_centroids_sf <- readRDS('../lake-temperature-model-prep/2_crosswalk_munge/out/centroid_lakes_sf.rds')
lake_gnis_names <- readRDS('../lake-temperature-model-prep/2_crosswalk_munge/out/gnisname_nhdhr_xwalk.rds')
lake_depths <- readRDS('../lake-temperature-model-prep/7_config_merge/out/nml_lake_depth_values.rds') %>% ungroup() # Only available for ~15k lakes

lake_metadata <- lake_centroids_sf %>%
  st_coordinates() %>%
  as_tibble() %>%
  mutate(site_id = lake_centroids_sf$site_id) %>%
  left_join(lake_gnis_names, by = "site_id") %>%
  left_join(lake_depths, by = "site_id") %>%
  # ADD LSTM-specific metadata
  left_join(lstm_metadata, by = "site_id") %>%
  # Remove sites that don't have any LSTM predictions (those are outside of our scope)
  filter(lstm_predictions) %>%
  # Rename and organize final columns
  select(site_id,
         lake_name = GNIS_Name,
         state,
         centroid_lat = Y,
         centroid_lon = X,
         depth = lake_depth,
         area,
         elevation,
         ea_lstm_group = lstm_group)

# TODO: Still need to add these columns:
# NLDAS filepath (e.g. `readRDS('../lake-temperature-model-prep/7_config_merge/out/nml_meteo_fl_values.rds')`)
# GCM filepath (NA if none)
# EA-LSTM predictions available - T (all are true)
# GLM-NLDAS predictions available - T/F
# GLM-GCM predictions available - T/F

##### lake_hypsography.csv #####

# Lake hypsography CSV creation
H_A_list <- readRDS('../lake-temperature-model-prep/7_config_merge/out/nml_H_A_values.rds')
hypso_list <- purrr::map(H_A_list, function(H_A_df) {
  H_A_df %>%
    mutate(depths = max(H) - H, areas = A) %>%
    arrange(depths) %>%
    select(depths, areas)
})
hypso_df <- purrr::map_df(hypso_list, ~as.data.frame(.x), .id="site_id")
write_csv(hypso_df, 'lake_hypsography.csv')

##### lake_locations.zip #####

lake_centroids_sf <- readRDS('../lake-temperature-model-prep/2_crosswalk_munge/out/centroid_lakes_sf.rds')
lstm_lakes <- read_csv('in_data/lake_metadata_lstm.csv') %>% filter(lstm_predictions) %>% pull(site_id)
lake_centroids_sf_lstm <- lake_centroids_sf %>% filter(site_id %in% lstm_lakes)
write_sf(lake_centroids_sf_lstm, 'lake_locations.shp')
shp_files <- sprintf('lake_locations.%s', c('shp', 'shx', 'dbf', 'prj'))
zip::zip('lake_locations.zip', files = shp_files)
file.remove(shp_files)

##### lake_temperature_observations.zip #####

temp_obs_all <- arrow::read_feather('../lake-temperature-model-prep/7b_temp_merge/out/temp_data_with_sources.feather') %>%
  filter(date >= as.Date('1980-01-01')) %>%
  select(-source_id)
length(unique(temp_obs_all$site_id)) # 8,965 lakes with at least one observation

temp_obs_fn <- 'lake_temperature_observations.csv'
write_csv(temp_obs_all, temp_obs_fn)
zip::zip('lake_temperature_observations.zip', files = temp_obs_fn)
file.remove(temp_obs_fn)

##### meteorological_inputs_nldas.zip #####

# TODO

##### meteorological_inputs_gcm.zip #####

# TODO

##### ACTUAL TEMP PREDICTIONS #####

# TODO: Hayley and Andy are working on these

##### lake_temperature_metrics_glm_nldas.csv #####

# Need to do this on Tallgrass
nldas_metrics <- read_csv('../lake-temperature-out/3_summarize/out/annual_metrics_glm3_pb0nldas.csv')
write_csv(nldas_metrics, 'lake_temperature_metrics_glm_nldas.csv')

##### lake_temperature_metrics_glm_gcm.csv #####

# Need to do this on Tallgrass
gcm_metrics <- read_csv('../lake-temperature-out/3_summarize/out/annual_metrics_glm3_pb0gcm.csv')
write_csv(gcm_metrics, 'lake_temperature_metrics_glm_gcm.csv')

##### lake_id_xwalk.csv #####

# TODO: Jordan made this file and shared on Slack. I need to find it

Working on defining the ids & deciding which to include:

IADNR_ID = Iowa Department of Natural Resources
IN_CLP_ID = Indiana Clean Lakes Program
IN_DNR_ID =
Iowa_ID = These are supposedly from Iowa DNR, but differ from the values in IADNR_ID and don't appear on the IA DNR website. There are 18 from this column that don't have a matching IADNR_ID
ISRO_ID =
LAGOS_ID =
MGLP_ID =
MICORPS_ID = Michigan Clean Water Corps
MNDOW_ID =
MO_USACE_ID = Missouri US Army Corps of Engineers
Navico_ID =
NDGF_ID =
SD_ID =
UNDERC_ID = University of Notre Dame Environmental Research Center
UNIV_MO_ID = University of Minnesota
WBIC_ID = Wisconsin DNR's WaterBody Id Code
WINSLOW_ID = An earlier release of modeled lake temperature data, Winslow et al 2017

I think I can help with some of these, Lindsay

IOWA_ID = These are supposedly from Iowa DNR, but differ from the values in IADNR_ID and don't appear on the IA DNR website. There are 18 from this column that don't have a matching IADNR_ID

Yes, I see you found the metadata. These lakes were part of a data rescue attempt. I couldn't find any info about them on any publicly available website. Grace Wilkerson manually provided the lat/longs. I'm pretty sure the ones missing spatial info are supposed to be filtered out of the munged dataset.
IN_DNR = Indiana DNR (metadata)
SD_ID = South Dakota Department of Environment and Natural Resources (metadata)

OK, let's exclude the Iowa_ID column as they are likely only useful in our model prep pipeline and not for users of this data release.

See final list https://github.com/padilla410/lake-temp-lstm-static-data-release/pull/18#issuecomment-1429869652


[functional tests] remove outdated file 'utils_tests.rs'

Motivation
File utils_tests.rs is outdated and its test cases are identical with the test cases of preprocessor_tests.rs.
Have you read the Contributing Guidelines on pull requests?
Yes.
Test Plan
(Share your test plan here. If you changed code, please provide us with clear instructions for verifying that your changes work.)
cargo xtest
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/libra/website, and link to your PR here.)

@bors-libra r+
if someone wants it back, they can easily use the revision history.
cc: @dariorussi @sblackshear

:pushpin: Commit dad5026 has been approved by davidiw

:hourglass: Testing commit dad502670515b1aff686dbbbffb865bcfc756213 with merge fbad3ca2edc093f09b9ea599bca41b3ad79f45cb...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: davidiw
Pushing fbad3ca2edc093f09b9ea599bca41b3ad79f45cb to master...


add SearchableBill model - experimental full-text-search support

Coverage increased (+0.01%) to 98.946% when pulling a8946b6d35bd2415384d7f9ec542cde31beac40c on bill-search into 4e54f344b0ac12a8a742a9d8743a8f911a6ffde1 on master.


Deprecate moved IO utilities

Description
This PR re-adds the public functions that were moved in #4706 to their original locations (to initially avoid breaking any public usage of these) and deprecates them, so we can remove these later while giving developers a warning.
I identified some usage of these in plugins, so it's probably worth softly deprecating these rather breaking people for v0.4.17.
To provide public alternatives, I also added some extra definitions to napari_builtins.io. I'm not sure if we want to support those in the long term future, so better ideas and/or more targeted deprecation messages are welcome.
I created this PR with a main base as I'm not sure when the next release from main will be (i.e. v0.4.18 vs. v0.5.0) or if that matters for deprecation.
Type of change

[x] Bug-fix (non-breaking change which fixes an issue)

How has this been tested?

[ ] manually tested importing some of the existing targets
[ ] all existing tests pass with my change

Final checklist:

[ ] My PR is the minimum possible work for the desired functionality
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] If I included new strings, I have used trans. to make them localizable.
For more information see our translations guide.

@Czaki : I added you as a reviewer because you suggested changes like this for v0.4.17. Feel free to suggest alternative implementations here.
@tlambert03 : I added you as a reviewer because you're the author of #4706

@Czaki : I'm planning to bring this in for v0.4.17 to avoid the associated API breakage there. Please take another look when you can, then I'll merge this to main and will cherry pick the commit to the v0.4.17x branch.


提示：invalid_api_key

What operating system are you using?
windows10
What browser are you using?
Chrome
Describe the bug
添加了gpt的apikey 提示：invalid_api_key
What prompt did you enter?
No response
Console Logs
No response
Participation

[ ] I am willing to submit a pull request for this issue.

Please give more information about deploying. e.g. Which target did you deploy, where did you enter the api-key?
Then reopen it.


Upgrade coursier to 2.0.0-RC4-1 and use binary by default

fetch-scala now has --jar option to force download of jar
Binary distributions are available for 64-bit Linux and 64-bit MacOS
This PR also introduces sha256 checking for the coursier download as an added safety mechanism.
We use coursier in wit for Scala dependency fetching as well as in api-scala-sifive's wake rules for dependency resolution. We have to invoke coursier for every unique set of dependencies (ie. every Scala project in the workspace) whenever fetching dependencies via wit fetch-scala or when wake is determining the classpath for compilation or execution.
The startup time ends up mattering a lot. Compared to 0.11.0, wit fetch-scala is a little bit faster for clean fetching, and much faster for invocations when there is no downloading to do (like running wit fetch-scala just to check everything is downloaded, or wake getting compilation classpaths):
For a large design, fresh installs are 17% faster with this PR, but when there isn't anything to do, it is 75% faster (and almost all of the remaining time is due to the Scala compiler bridge fetcher, a separate problem).
0.11.0
Fresh Install: ~35s
Nothing to do: ~20s
This PR
Fresh Install: ~29s
Nothing to do: ~5s

I'm going to merge this after https://github.com/sifive/wit/pull/171 which will go into 0.11.1 while this is 0.12.0


Detox Primitive ReferenceError: Element is not defined

potentially related issues
https://github.com/wix/detox/issues/795
Description
I am new to using Detox but it appears to me that primitives are not being properly set as jest globals following the setup and usage guides I could find in the documentation. I get the code in the console ReferenceError: element is not defined. Maybe there is a way to improve the logging to clarify these config errors for good
Repo to reproduce:
https://github.com/Kielan/OnyxWalletReactNative
Detox v8.1.6^
Node v8.9.4,
React Native v0.56.0
Device iphone 7 sim release and debug,
Xcode v and macOS Versions
Device and verbose Detox logs

ReferenceError: element is not defined

  14 | })
  15 |
> 16 | it(':ios: shows splash screen and then login', async () => {
     |                                                ^
  17 |   await expect(element(by.label('animateLoginLabel'))).toBeVisible()

This is a usage question.


[fix] (inverted index v2) fix inverted index format is lost during a schema change

Proposed changes
fix inverted index format is lost during a schema change
Issue Number: close #xxx

run buildall


Cleanup db connections for Resque workers

Attempt to fix:
could not receive data from client: Connection reset by peer

As per [Heroku docs][1].
[1]: https://devcenter.heroku.com/articles/forked-pg-connections#resque-ruby-queuing

Looks good. :facepunch:


store: fix goroutine leak check

I took @tmrts' patch from https://github.com/coreos/rkt/pull/2517 in order to fix https://github.com/coreos/rkt/issues/2459#issuecomment-222138267.

can someone explain how this works? by my read the goroutine was a hung Close syscall? Why would this fix that?

I don't know, I wanted to give it a try. We'll figure it out after the release.

I think we should keep the stricter package-specific pattern check until we identify it actually causing issues.

sorry, didn't mean to cancel your semaphore build.

Superseded by #2770.


[BUG]: JSON parse error when event=pull_request and action=milestoned

What happened?
Message:
System.Text.Json.JsonException : The JSON value could not be converted to Octokit.Webhooks.Events.PullRequestEvent. Path: $ | LineNumber: 0 | BytePositionInLine: 30483.
Stack Trace:
WebhookConverter1.Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options) JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan1 utf8Json, JsonTypeInfo jsonTypeInfo, Nullable1 actualByteCount) JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan1 json, JsonTypeInfo jsonTypeInfo)
JsonSerializer.Deserialize[TValue](String json, JsonSerializerOptions options)
WebhookEventProcessor.DeserializeWebhookEvent(WebhookHeaders headers, String body)
Versions
Octokit.Webhooks.net v1.3.5
Relevant log output
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Root cause might be "milestoned" action was not handled in JSON converter. Consider making it not throw exception.

Thanks for the bug report. It looks like it was added to https://github.com/github/rest-api-description recently. I usually pull types from https://github.com/octokit/webhooks, but it hasn't been updated yet.
For not throwing, this should be resolved with #98


how to set date format like "Month D, Yr"

Hi,
Please let me know how can i set the date format like this "Month D, Yr" for ex: December 16, 2019.
I have tried with this : outputFormat: "MM"+" "+"dd"+", "+"yyyy"
i am getting like this "12 12, 2019"
actually I want the output like this "December 16, 2019"
please suggest me a solution

Got the solutions
inputFormat: ["MMMM.DD.YYYY"],
outputFormat: "MMMM"+" "+"dd"+", "+"yyyy"


Where is container-linux-config-transpiler program?

The documentation just refers to container-linux-config-transpiler without stating where the program is

Closing as a duplicate of https://github.com/coreos/docs/issues/1112.
For reference, the first page you mentioned links to https://coreos.com/os/docs/latest/provisioning.html (which is the proper doc page regarding provisioning), and that one describes what ct is and where to download it.
But I still agree that some doc changes are needed, and left some more comments directly in #1112. Thanks for reporting!

That's so much reading just to get down to ct!
There should be a 15-second startup doc :)

I agree, that's exactly my comment in https://github.com/coreos/docs/issues/1112#issuecomment-311598334.


Add version: Tableau.Desktop version 23.3.345

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.5 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow
This is an update from a Vanity URL to the actual download URL for the latest version 23.3.345.

This is an update from a Vanity URL to the actual download URL for the latest version.


Generate common files across taipy repos

This PR addresses Issue #106
PS: Any reviewed changes will be immediately addressed.

@trgiangdo Thanks for the detailed explanation of the issue.

@trgiangdo I have raised a new Pull request. Pls review it. Thank you.

Close due to duplicated


defined blade_complement_type trait

Change-Id: I8e2e44f97602581cedd5a3583f65ae77b414e87c

Codecov Report
Attention: Patch coverage is 85.71429% with 3 lines in your changes missing coverage. Please review.

Project coverage is 69.11%. Comparing base (79ff378) to head (dbde16f).

Files with missing lines
Patch %
Lines

rigid_geometric_algebra/blade_complement_type.hpp
0.00%
3 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #58      +/-   ##
==========================================
+ Coverage   67.72%   69.11%   +1.38%
==========================================
  Files          21       23       +2
  Lines         251      272      +21
  Branches        5        7       +2
==========================================
+ Hits          170      188      +18
- Misses         81       84       +3

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


Log on Flyte Deck

TL;DR
Display stdout and log on flyte deck
import pandas as pd

from flytekit import task, workflow, logger
from flytekit.deck.deck import log_on_deck
from flytekit.image_spec import ImageSpec

new_flytekit = "git+https://github.com/flyteorg/flytekit@aab764d73871da58847206d868ca94e60242a5b3"
image_spec = ImageSpec(packages=[new_flytekit],
                       apt_packages=["git"],
                       registry="pingsutw",
                       env={"FLYTE_SDK_LOGGING_LEVEL": "10"})

@task(disable_deck=False, container_image=image_spec)
@log_on_deck
def t1():
    print("hello")
    print("flyte")
    logger.error("error")
    logger.warning("warning")
    logger.debug("debug")
    print("pandas dataframe")
    df = pd.DataFrame({"Name": ["Tom", "Joseph"], "Age": [1, 22]})
    print(df)
    return

@workflow
def wf():
    t1()

if __name__ == '__main__':
    wf()

Type

[ ] Bug Fix
[x] Feature
[ ] Plugin

Are all requirements met?

[ ] Code completed
[ ] Smoke tested
[ ] Unit tests added
[ ] Code documentation added
[ ] Any pending items have an associated Issue

Complete description
^^^
Tracking Issue
NA
Follow-up issue
NA

Interesting, but I would rather make it so that we can selective log things to deck?
For example,
flytekit.deck.log(...)
I am not opposed to having this, but this can be dangerous?


Add dU5k M3Igb VkgN Wsxbg ~P~ by Phyrnna

Song Name
dU5k M3Igb VkgN Wsxbg ~P~
Artist Name
Phyrnna
Source
Youtube
Youtube Link
1dASVE8VAGE
Direct File Link
No response
Song ID
10004851
Start Offset [ms]
0
Extra
Created from Auto Nong.
Created for level: 108738730

accept


Switch error handling setup to quick_main! macro from error-chain

Right now the error handling pattern suggested by the cookbook's 'about' page, and used in at least some of the examples, looks similar to quick_main!. Seems like we should just use that.
Switch the existing examples to replace 'main' with 'quick_main!', and update the about page.
cc @dtolnay @Yamakaky

quick_main! was maid for that usecase ^^

quick_main! was maid for that usecase ^^
I can do that

Using following form will hide part of doctest boilerplate from rendering but still allow for the code to compile and run under skeptic.

```
# fn main() {
#    run().unwrap();
# }
```

It might make the existing snippets more ergonomic without the need to pull error-chain as dependency (or even hide error-chain noise if required)
cc @brson

Given that we don't have playground links (see #32), there needs to be a way to copy and run these examples. I would prefer not to hide main so that you can copy into a main.rs and expect it to work.

Yes, I want to not hide code in the cookbook, have the examples say everything they are doing.


[material-ui] Next 13: Prop types error on children when using async component

          This shouldn't be closed. It's an issue with MUI not accepting async components.

I have the following:
<Stack>   <Component />   <AsyncComponent /> </Stack>
Within <AsyncComponent> I have:
return await Promise.all( someArray.map( async () =>
test
 ) )
This throws the same error.
Originally posted by @Nik-Novak in https://github.com/mui/material-ui/issues/35676#issuecomment-2015148810
Search keywords:

Hey @Nik-Novak, thanks for opening the issue! Could you provide a minimal reproduction? It helps us troubleshoot. A live example would be perfect. This StackBlitz sandbox template may be a good starting point.


Clean up apt-get artifacts to reduce image sizes

Updates the Dockerfile generation scripts to include cleanup for apt-get's extraneous artifacts
This removes 30 MB from the base family and 20 MB from the included family. In production, it will reduce the included family by 50 MB because it will inherit 30 MB less from the base family + 20 MB reduction in the image itself.
There's a lot of bloat in the browsers family of images. They have several RUN commands that call apt-get and fail to clean up, so there's a few hundred MB of bloat from those in the final included family. It's hard to fix at this point because we don't have generators for them and we don't want to modify the image tags already published.

your article speaks volumes to me: https://mtlynch.io/notes/cypress-vs-playwright/

Hi, thanks for the PR, and sorry for the slow reply @mtlynch.
I will try and get some :eyes: on this asap. Are you able to rebase and  resolve the conflicts? If not, we can pick it up.

Thanks @mtlynch, that was fast!
I will take responsibility for finding reviewers and getting this merged by the end of 2022.

@lmiller1990 - Great, thanks!


Webpack

Setup webpack action and update readme
File changes:

.ts
tsx
css

We are not use webpack, We need to use only NodeJs.
https://github.com/KurnakovMaksim/jiraF/issues/82


[Feature] Support cluster location for input/output topic

The Java runtime has supported cluster location in https://github.com/apache/pulsar/issues/8320
The Go and Python functions will support cluster location in https://github.com/apache/pulsar/issues/8754
We need to provide similar support when running functions in Function Mesh.

The feature's PR https://github.com/apache/pulsar/pull/8434 has been reverted in https://github.com/apache/pulsar/pull/10843, so we close this issue


Return not indenting properly

Indentation doesn't seem to be working properly.

When pushing Enter to go to the next line to add fields in a type, it indents one tab forward.

Vim Version

VIM - Vi IMproved 8.1 (2018 May 18, compiled Jan 31 2019 16:43:52)
macOS version
Included patches: 1-850
Compiled by Homebrew
Huge version without GUI.

Also after comments

@redreceipt I'm having trouble reproducing this. Which of these indentation-related settings do you have enabled?
:set autoindent?
:set cindent?
:set smartindent?

Here's my vim settings
https://gist.github.com/redreceipt/65d2dd8b505b5441a6d81b5392f7e933

This seems to only happen when using a GraphQL template string within a JavaScript buffer. If I'm working in a standalone .graphql file, the indentation rules work as expected.
I'm not sure how to approach this yet because the way we "embed" the GraphQL syntax rules within the JavaScript file type is a little tricky:
https://github.com/jparise/vim-graphql/blob/142f34682e7536d0e0a9d9ebb312fe68677dd241/after/syntax/javascript/graphql.vim#L12-L13
... so it might take me some time to produce a solution that does a similar thing for indentation.

It looks like the most promising approach involves overriding the JavaScript file type's indentexpr with one that applies the GraphQL-specific indentation rules within the tagged template region and defers to the JavaScript rules otherwise.

How might we configure this to format the GQL inside of the gql tags? I'm mostly using graphql syntax inside my Javascript files and I'm not sure how to configure the plugin to auto-format the syntax. Thanks for this plugin!


⚠ GreatPosterWall has degraded performance

In dd9faca, GreatPosterWall ($GPW) experienced degraded performance:

HTTP code: 200
Response time: 2352 ms

Resolved: GreatPosterWall performance has improved in a513195.