[benchmark] support non-float32 datatype

Description
Brief description of what this PR is about

If this change is a backward incompatible change, why must this change be made?
Interesting edge cases to note here

Codecov Report

Merging #944 (fa84ab8) into master (7ada140) will decrease coverage by 0.12%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #944      +/-   ##
============================================
- Coverage     70.21%   70.08%   -0.13%
+ Complexity     5089     5078      -11
============================================
  Files           502      502
  Lines         22477    22477
  Branches       2347     2347
============================================
- Hits          15783    15754      -29
- Misses         5448     5478      +30
+ Partials       1246     1245       -1

Impacted Files
Coverage Δ
Complexity Δ

...ain/java/ai/djl/modality/cv/util/NDImageUtils.java
48.68% <0.00%> (-14.48%)
18.00% <0.00%> (-2.00%)

...src/main/java/ai/djl/modality/Classifications.java
84.31% <0.00%> (-5.89%)
10.00% <0.00%> (-1.00%)

...djl/training/listener/LoggingTrainingListener.java
83.18% <0.00%> (-5.31%)
22.00% <0.00%> (-6.00%)

...gine/src/main/java/ai/djl/dlr/engine/DlrModel.java
53.12% <0.00%> (-3.13%)
4.00% <0.00%> (ø%)

api/src/main/java/ai/djl/training/Trainer.java
91.83% <0.00%> (-3.07%)
33.00% <0.00%> (-1.00%)

...ain/java/ai/djl/tensorflow/engine/TfNDManager.java
88.49% <0.00%> (-2.66%)
28.00% <0.00%> (-1.00%)

api/src/main/java/ai/djl/util/Platform.java
43.47% <0.00%> (-2.18%)
8.00% <0.00%> (ø%)

...g/src/main/java/ai/djl/serving/util/Connector.java
55.40% <0.00%> (-1.36%)
21.00% <0.00%> (ø%)

...ngine/src/main/java/ai/djl/mxnet/jna/LibUtils.java
42.23% <0.00%> (-1.25%)
15.00% <0.00%> (ø%)

...rc/main/java/ai/djl/paddlepaddle/jni/LibUtils.java
51.14% <0.00%> (ø)
14.00% <0.00%> (ø%)

... and 1 more

Continue to review full report at Codecov.

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


Don't insert newline into noop ArrowFunctionExpression

Input:
const f1 = () => {};
const f2 = function() {};

Output:
const f1 = () => {
};
const f2 = function() {};

I have a PR for this incoming.

merged 29045f0


test.check generators

This is an extraction from the last pull request (which I'm closing).

This ended up in PR #41


update license attribute

specifying the type and URL is deprecated:
https://docs.npmjs.com/files/package.json#license
http://npm1k.org/

Coverage decreased (-0.83%) to 99.17% when pulling d66689309bb4505d1e9f2ba32f22418f506f70ce on pgilad:patch-1 into 81a61ce1f5091167bf69cb9e360e9774fa6aefc8 on gulpjs:master.


Multiple Search Selection Dropdown Will Close and Re-open on Refocus

When using a multiple search selection dropdown, clicking on an input will immediately cause blur and click events causing the menu to hide and then immediately show again. Also cannot select items using pressing down keys.

Please resubmit with a test case


Promises fail to be resolved for Relay connection_type

Relay support in graphql-ruby suggests resolvers for a connection_type should be able to return an array. Expect that graphql-batch would support field resolver returning promise of an array in this scenario. It instead fails with exception No connection implementation to wrap GraphQL::Batch::Promise.
A workaround is to have the resolver wait for promise fulfillment by calling Promise#sync on the Loader#load/#load_many result.
@cjoudrey @dylanahsmith
For a repro, consider this script using graphql (0.19.4) and graphql-batch (0.2.4) on ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]:
require 'graphql/batch'

class ShopLoader < GraphQL::Batch::Loader
  def initialize(ctx)
  end

  def perform(ids)
    ids.each { |id| fulfill(id, OpenStruct.new({ id: id })) }
  end
end

class ShopResolver
  def self.call(obj, args, ctx)
    ShopLoader.for("ctx").load_many([ 1, 2, 3 ])
  end
end

ShopType = GraphQL::ObjectType.define do
  name "Shop"

  field :id do
    type types.ID
  end
end

QueryType = GraphQL::ObjectType.define do
  name "Query"

  field :shops do
    type types[ShopType]
    resolve ShopResolver
  end

  connection :shopsConnection, ShopType.connection_type do
    resolve ShopResolver
  end
end

Schema = GraphQL::Schema.define do
  query QueryType
end

Schema.query_execution_strategy = GraphQL::Batch::ExecutionStrategy
Schema.mutation_execution_strategy = GraphQL::Batch::MutationExecutionStrategy

puts "Array use of cache loader:"
puts Schema.execute("{ shops { id } }")
# {"data"=>{"shops"=>[{"id"=>"1"}, {"id"=>"2"}, {"id"=>"3"}]}}

puts "Connection use of cache loader:"
puts Schema.execute("{ shopsConnection { edges { node { id } } } }")
# /Users/jocarrie/.rvm/gems/ruby-2.3.0/gems/graphql-0.19.4/lib/graphql/relay/base_connection.rb:37:in `connection_for_nodes':
# No connection implementation to wrap GraphQL::Batch::Promise (#<GraphQL::Batch::Promise:0x007f8081152170>) (RuntimeError)
#   from /Users/jocarrie/.rvm/gems/ruby-2.3.0/gems/graphql-0.19.4/lib/graphql/relay/connection_resolve.rb:12:in `call'

Now that graphql-relay-ruby has been merged into graphql-ruby, we could probably be clearer about the fact that the relay code in graphql-ruby isn't supported by graphql-batch.
We mention in the README that

The loader class can be used from the resolve proc for a graphql field

and in this case you are trying to use the loader in a connection resolve proc, not on the field resolve proc.
You may be able to support this by using GraphQL::Relay::BaseConnection.register_connection_implementation.

Here's the simplest thing I could do convert over:
module GraphQL
  module Batch
    class SyncPromiseConnection < GraphQL::Relay::ArrayConnection
      private

      def nodes
        super.sync
      end
    end
  end
end

GraphQL::Relay::BaseConnection.register_connection_implementation(GraphQL::Batch::Promise, GraphQL::Batch::SyncPromiseConnection)

At least it lets this gem work by default with connections? Is it worth further investment?

Calling sync like that would prevent batching.
With graphql-ruby's new lazy execution API it will actually be possible to fix this upstream, so I'm going to consider this an upstream issue now and close the issue here.

Upstream fix here!
https://github.com/rmosolgo/graphql-ruby/pull/425

Is there an example on how to implement this? Using the association loader in the example folder would produce N+1 on connection types


ReadMe Proofreading

Starting a proofreading thread to consolidate errors and suggestions for improvements.

Confusing sentence because what does "all of these function" refer to?

Typo

Typo

Confusing sentence because what does "all of these function" refer to?

I meant the following functions.
Do you want to make a PR with the fixes?

Will do! I'll open a PR and let it collect the proofreading changes for you to merge at your convenience.

The two variable names should match.

Could you make a PR so that I don't have to got and search and update the Readme. would be great. If you haven't done a PR before I can help you if you want.


Violates Content Security Policy

Getting Error for Content Security Policy Violation at line no. 21 for imgdata variable.

jquery.percentageloader-0.2.js:21 Refused to load the image 'data:image/png;base64,iVBORw0KGgoAAAA and so on...
img-src https://mywebsite.com".

That's interesting - what browser is this happening on? Also, are you opening an HTML file locally directly or are you using some sort of server? Sometimes browsers are funny when opening static HTML with how they handle assets.
However, the image data is being populated via Javascript so it shouldn't violate cross-domain policy...

Hi Dave, I don't know what happened but it fixed now! I was getting this error on gc and ff browsers, and it was from server. How ever now it's disappears!
Thanks for reply.


Fixed #27671 -- Excluded .po files from source distribution.

https://code.djangoproject.com/ticket/27671

Closing per ticket.


Blog Post Page

It works but the post listing will display what is on the hero slider.
scopeweb/page-blog.php and scopeweb/templates/page-blog.twig

Any update on this? I think it may have been fixed by now, let me know if it has not.

I was mistyping so it is fixed now.


Added Azure PaaS Worker Role Deployment Scenario to Docs

Added Azure PaaS Worker Role Deployment Scenario to the docs; updated index.md to include new deployment scenario.

Man, this is awesome! thank you!

Happy to help :-)


UEB: Need support for arc over previous

UEB Math uses the following dot pattern to indicate arc over previous:
⠨⠸⠱
I believe the input symbol that should map to this functionality is U+2322. This character is already supported in Nemeth mode.

You're right that arc is U+2322. However, I don't know what a standalone 'arc' symbol is in UEB. Section 12 of the ICEB technical manual only lists what it should be for over an item, not standalone. My guess would be ⠸⠱ (dropping the first char), but that is ~ over an item. If you find something that shows what it is otherwise, let me know.

As I wrote this issue, I knew something felt wrong. Now I know what it is; you need a dot pattern to map directly to U+2322. I'll look, but I'm not optimistic I'll find anything.

Please close the issue if you don't find anything in the next few days.

I was unable to find a UEB character for arc.


Improvements to cr_cut.py (C. Markwardt's suggestion)

The steps 3 to 6 of the script cr_cut.py could be replaced by a single command maketime:
maketime merged_detid14.lc merged_detid14.gti "RATE < 1.0" name=NAME value=VALUE compact=NO prefr=0.5 postfr=0.5 premax=4.0 postmax=4.0 time=TIME

I've been trying to implement the suggestion above; i.e., to make the gti file using maketime, rather than the more manual method with ftcopy, ftcalc, ftlist and ftcreate.  But I can't manage to obtain the same lightcurve after the cut.  Here are lightcurves with 16sec binning, with a cut at 3.0 c/s, first with the original version of cr_cut.py:

And now, two trials with maketime and different set of options:

for prefr=0.5 postfr=0.5 premax=4.0 postmax=4.0 as suggested by Craig. These options cut out a lot of GTIs.

for prefr=-1 postfr=-1 premax=-1 postmax=-1. This one is better, but some GTIs are still above the CR cut of 3.0 c/s.

The new version of the script replaces Steps 3 to 6 with:
cmd = [
    "maketime",
    lcfile,
    "gti.fits",
    '"RATE < {}"'.format(CRcut),
    "name=NAME value=VALUE compact=NO",
    "prefr=0.5 postfr=0.5 premax=4.0 postmax=4.0",     ### TRY 1
    #"prefr=-1 postfr=-1 premax=-1 postmax=-1",          ### TRY 2
    "time=TIME",
    "clobber=yes",
]

@paulray have you used maketime before ? Any idea about what could cause the differences ?
I've tried different combination of prefr, postfr, premax, postmax, but it's not clear to me what they actually do despite the
If I try again but on a lightcurve with 1 sec binning, the resulting lightcurve a more similar (by about 100 events, out of 30k), but the maketime method still end up creating a lot of GTIs (which are concatenated in the old method)

If it is generating GTIs that are abutting but not merged (i.e. the end of one GTI is equal to the start of the next one), you can join those (and do other cool stuff) with ftsdjustgti.  Check out the fhelp on that. Craig wrote it.

Of course, if the current version of cr_cut works, then maybe we don't need to fuss with the maketime alternative?

I can't seem to make it work with ftadjustgti and maketime, so as you suggested, we'll leave the current version ass is. Closing the issue.


Update README.md

Ⅰ. Describe what this PR did
update wasm-assemblyscript version to 0.0.4
Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 35.89%. Comparing base (ef31e09) to head (b5127b4).
Report is 39 commits behind head on main.

Additional details and impacted files

@@            Coverage Diff             @@
##             main    #1203      +/-   ##
==========================================
- Coverage   35.91%   35.89%   -0.02%
==========================================
  Files          69       69
  Lines       11576     9500    -2076
==========================================
- Hits         4157     3410     -747
+ Misses       7104     5774    -1330
- Partials      315      316       +1

see 67 files with indirect coverage changes


media and consume directory not found when mounted as nfs

I created a nfs network share with name "paperless" and usage "share". When starting paperless-ngx addon i see the following error message in the logs:
?: PAPERLESS_CONSUMPTION_DIR is set but doesn't exist.
	HINT: Create a directory at /share/paperless/consume
?: PAPERLESS_MEDIA_ROOT is set but doesn't exist.
	HINT: Create a directory at /share/paperless/media

the metioned folders do exist on the host. When I remove the network share, the addon starts without any issues.

When you mount the storage can you explore it from Home Assistant OS ?
It's generally ACL issue on your remote host, whan you can try is to disable the ACL so paperless will have unrestricted access to the share

How can I disable the ACL?

I don't known it on your storage server
You can also use docker exec into the add-on container to check if there's any error.
Look at your network share logs also you may have some clues

docker exec into the container helps me to solve the issue now: Inside the container the /share/paperless directory has no privileges. I changed this with chmod 0777 /share/paperless inside the container (on the host the privileges were already at 0777) and now the addon starts normally. I have no clue about the root cause.
Thanks for pointing me into the right direction.

Thanks you, I'll add a chown command to the init script as an attempt to fix this issue


build: tweak megalinter config for sql

Part of #1994

In this project tsql is not used, so tsqllint should be disabled.

MegaLinter also includes sqllfluff, but it is not currently enabled.
I am wondering if this is worth enabling.
Current errors from sqlfluff:
$ sqlfluff lint --dialect ansi  prql-compiler/tests/integration/data/chinook/schema.sql

== [prql-compiler/tests/integration/data/chinook/schema.sql] FAIL
L:   1 | P:   1 | LT05 | Line is too long (225 > 80).
                       | [layout.long_lines]
L:   1 | P:  22 | LT01 | Expected single whitespace between naked identifier and
                       | start bracket '('. [layout.spacing]
L:   2 | P:   1 | LT05 | Line is too long (251 > 80).
                       | [layout.long_lines]
L:   2 | P:  23 | LT01 | Expected single whitespace between naked identifier and
                       | start bracket '('. [layout.spacing]
L:   2 | P: 132 | RF04 | Keywords should not be used as identifiers.
                       | [references.keywords]
L:   3 | P:   1 | LT05 | Line is too long (288 > 80).
                       | [layout.long_lines]
L:   3 | P:  23 | LT01 | Expected single whitespace between naked identifier and
                       | start bracket '('. [layout.spacing]
L:   3 | P: 193 | RF04 | Keywords should not be used as identifiers.
                       | [references.keywords]
L:   4 | P:   1 | LT05 | Line is too long (189 > 80).
                       | [layout.long_lines]
L:   4 | P:  20 | LT01 | Expected single whitespace between naked identifier and
                       | start bracket '('. [layout.spacing]
L:   4 | P:  39 | RF06 | Unnecessary quoted identifier "name".
                       | [references.quoting]
L:   4 | P: 132 | RF06 | Unnecessary quoted identifier "milliseconds".
                       | [references.quoting]
L:   5 | P:  20 | LT01 | Expected single whitespace between naked identifier and
                       | start bracket '('. [layout.spacing]
L:   6 | P:  20 | LT01 | Expected single whitespace between naked identifier and
                       | start bracket '('. [layout.spacing]
L:   6 | P:  39 | RF06 | Unnecessary quoted identifier "name".
                       | [references.quoting]
L:   7 | P:  28 | LT01 | Expected single whitespace between naked identifier and
                       | start bracket '('. [layout.spacing]
L:   8 | P:  23 | LT01 | Expected single whitespace between naked identifier and
                       | start bracket '('. [layout.spacing]
L:   8 | P:  45 | RF06 | Unnecessary quoted identifier "name".
                       | [references.quoting]
L:   9 | P:  25 | LT01 | Expected single whitespace between naked identifier and
                       | start bracket '('. [layout.spacing]
L:   9 | P:  49 | RF06 | Unnecessary quoted identifier "name".
                       | [references.quoting]
L:  10 | P:  21 | LT01 | Expected single whitespace between naked identifier and
                       | start bracket '('. [layout.spacing]
L:  10 | P:  41 | RF06 | Unnecessary quoted identifier "name".
                       | [references.quoting]
L:  11 | P:   1 | LT05 | Line is too long (127 > 80).
                       | [layout.long_lines]
L:  11 | P:  27 | LT01 | Expected single whitespace between naked identifier and
                       | start bracket '('. [layout.spacing]

Given that most of our SQL is output from the PRQL compiler, I don't know how we'd manage that. (Except for outputting better SQL!)

Given that most of our SQL is output from the PRQL compiler, I don't know how we'd manage that. (Except for outputting better SQL!)

For now, the only target is https://github.com/PRQL/prql/blob/76bd7a43298330a45c05e5fa900d554d3a6d0eb4/prql-compiler/tests/integration/data/chinook/schema.sql.

sqlfluff is now enabled and has passed linting.
If it looks good, it can be merged.


Misspelling of "Cascade"

'NERDTreeCasadeOpenSingleChildDir' is misspelled, the word "Cascade" is misspelled as "Casade".
Certainly, the code should keep supporting the incorrect spelling, as users might have it in their .vimrc.

This has been fixed already. Should be closed.


fix three Chinese bugs

Fix:

[x] 从现在到六点
[x] 今晚7点到7点30
[x] 今晚八点到九点

Modify One Original Test Case: (ref time: 2016.11.7)

2点-明天4点

(2016.11.8 02:00:00 - 2016.11.8 04:00:00)  ->  (2016.11.7 02:00:00 - 2016.11.8 04:00:00)

@iamnwi,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.
It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

Closed as discussed offline.


Jokes Tutorial deployment problem: WARNING The app is listening on the incorrect address and will not be reachable by fly-proxy.

What version of Remix are you using?
1.16.1
Deployment info
Remix App Server
Are all your remix dependencies & dev-dependencies using the same version?

[X] Yes

Steps to Reproduce

Follow the exact steps from the Remix Jokes Tutorial (https://remix.run/docs/en/1.16.1/tutorials/jokes) and try also the last step which is the deployment
-- when i run fly deploy i get the errror:

fly deploy
==> Verifying app config
Validating /mnt/otherLinuxPartition/var/www/remix/remix_try1/remix-jokes/fly.toml
Platform: machines
✓ Configuration is valid
--> Verified app config
==> Building image
Remote builder fly-builder-old-shape-9722 ready
==> Creating build context
--> Creating build context done
==> Building image with Docker
--> docker host: 20.10.12 linux x86_64
[+] Building 0.5s (0/1)
[+] Building 1.3s (17/17) FINISHED
 => CACHED [internal] load remote build context                                                                                0.0s
 => CACHED copy /context /                                                                                0.0s
 => resolve image config for docker.io/docker/dockerfile:1                                                                                0.8s
 => CACHED docker-image://docker.io/docker/dockerfile:1@sha256:39b85bbfa7536a5feceb7372a0817649ecb2724562a38360f4d6a7782a409b14                                                                       0.0s
 => [internal] load metadata for docker.io/library/node:18.16.0-slim                                                                                0.3s
 => [base 1/2] FROM docker.io/library/node:18.16.0-slim@sha256:b175cd7f3358c399f7bcee9b1032b86b71b1afa4cfb4dd0db55d66f871475a3e                                                                       0.0s
 => CACHED [base 2/2] WORKDIR /app                                                                                0.0s
 => CACHED [build 1/8] RUN apt-get update -qq &&     apt-get install -y python-is-python3 pkg-config build-essential openssl                                                                          0.0s
 => CACHED [build 2/8] COPY --link package.json package-lock.json ./                                                                                0.0s
 => CACHED [build 3/8] RUN npm ci --include=dev                                                                                0.0s
 => CACHED [build 4/8] COPY --link prisma .                                                                                0.0s
 => CACHED [build 5/8] RUN npx prisma generate                                                                                0.0s
 => CACHED [build 6/8] COPY --link . .                                                                                0.0s
 => CACHED [build 7/8] RUN npm run build                                                                                0.0s
 => CACHED [build 8/8] RUN npm prune --omit=dev                                                                                0.0s
 => CACHED [stage-2 1/1] COPY --from=build /app /app                                                                                0.0s
 => exporting to image                                                                                0.0s
 => => exporting layers                                                                                0.0s
 => => writing image sha256:5715b183566b0dfbeccd5317a079e932e97f44b4228d7f708739fcd37cbd14ea                                                                                0.0s
 => => naming to registry.fly.io/remix-jokes-a:deployment-01H149D9JFJH0QQKJKJVEXGRX9                                                                                0.0s
--> Building image done
==> Pushing image to fly
The push refers to repository [registry.fly.io/remix-jokes-a]
94be62fc961d: Layer already exists
6cf7638db6c2: Layer already exists
e1c9e051b02b: Layer already exists
1c4ea8fac21d: Layer already exists
5baecc7caadb: Layer already exists
fa3e1fa14e04: Layer already exists
8cbe4b54fa88: Layer already exists
deployment-01H149D9JFJH0QQKJKJVEXGRX9: digest: sha256:0cb47aacabe4db5bdbab817a79df7ed6c9a46491aadf24017401516e20e5daa4 size: 1786
--> Pushing image done
image: registry.fly.io/remix-jokes-a:deployment-01H149D9JFJH0QQKJKJVEXGRX9
image size: 496 MB

Watch your app at https://fly.io/apps/remix-jokes-a/monitoring

Updating existing machines in 'remix-jokes-a' with rolling strategy
  [1/1] Machine 9080401a693987 [app] update finished: success

WARNING The app is listening on the incorrect address and will not be reachable by fly-proxy.
You can fix this by configuring your app to listen on the following addresses:
  - <IP_ADDRESS>:8080
Found these processes inside the machine with open listening sockets:
  PROCESS                                       | ADDRESSES
------------------------------------------------*--------------------------------------
  /.fly/hallpass                                | [fdaa:2:3adc:a7b:65:9a42:8240:2]:22
  node /app/node_modules/.bin/remix-serve build | [::]:3000
  Finished deploying

the error message is:

 WARNING The app is listening on the incorrect address and will not be reachable by fly-proxy.
You can fix this by configuring your app to listen on the following addresses:
  - <IP_ADDRESS>:8080

Expected Behavior

the deployment works without error, and i can access the app in the browser

Actual Behavior

the deployment produces an error and i cannot access the app in the browser

Question
How could i set the application to listen on <IP_ADDRESS>:8080 ?

CC/ @rubys

I'd have to see the Dockerfile and/or the fly.toml, but...

Typically the Dockerfile will set a PORT environment variable to 8080 and expect that your application will listen on that port.
Inside the fly.toml file there is a line that starts with internal_port =.  If you set it to 3000 and redeploy you won't need to change anything else.

For best results, report issues like these on https://community.fly.io/


fix connect metadata & add some test

Codecov Report

Merging #29 (87eefc7) into main (f734cfa) will increase coverage by 25.98%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##             main      #29       +/-   ##
===========================================
+ Coverage   30.68%   56.66%   +25.98%
===========================================
  Files           4        4
  Lines          88       90        +2
===========================================
+ Hits           27       51       +24
+ Misses         55       32       -23
- Partials        6        7        +1

Impacted Files
Coverage Δ

internal/pkg/config/config.go
33.33% <100.00%> (+33.33%)
:arrow_up:

internal/pkg/config/conn_metadata.go
86.36% <100.00%> (+86.36%)
: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 f734cfa...87eefc7. Read the comment docs.


gl commit why -o?

In comparison why not to drop -o argument? git behavior seems intuitive.

This sounds like a good idea to me


city chart: make more explorable + center your team

the team wanted something a little more explorable here to wrap it up, so i grabbed some code we had from a sortable table and adapted. it's in the jd-edits branch. i will send a pull request and you can use if you like it.

love it!


[Improvement][task sql] Improve creating function query

Search before asking

[X] I had searched in the issues and found no similar feature requirement.

Description
enhance creating temp function query
Use case
Current creating function query fail to handle all cases. For example,  Kyuubi was taken as a datasource  in DS,  it's more likely to get a problem when setting the share level of Kyuubi engine to user.
Related issues
No response
Are you willing to submit a PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

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

Is this optimized based on version 3.x or optimized based on version 2.x.

Is this optimized based on version 3.x or optimized based on version 2.x. @luoyedeyi
Both


gpuPicker adapt to screen resolution

Fix the position of xy screen coordinates on devices with different pixel ratios.

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Snapshot stored with reference name:
refs/pull/15330/merge
Test environment:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/15330/merge/index.html
To test a playground add it to the URL, for example:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/15330/merge/index.html#WGZLGJ#4600
Links to test babylon tools with this snapshot:
https://playground.babylonjs.com/?snapshot=refs/pull/15330/merge
https://sandbox.babylonjs.com/?snapshot=refs/pull/15330/merge
https://gui.babylonjs.com/?snapshot=refs/pull/15330/merge
https://nme.babylonjs.com/?snapshot=refs/pull/15330/merge
To test the snapshot in the playground with a playground ID add it after the snapshot query string:
https://playground.babylonjs.com/?snapshot=refs/pull/15330/merge#BCU1XR#0

WebGL2 visualization test reporter:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/15330/merge/testResults/webgl2playwright/index.html

Visualization tests for WebGPU (Experimental)
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/15330/merge/testResults/webgpuplaywright/index.html

@deltakosh
window.devicePixelRatio will not be available in Babylon.js Native. This could be an issue if GPUPicker was considered for native support.


Instalation failed on nodeJs 0.10

npm ERR<EMAIL_ADDRESS>install: `node install.js`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script.
npm ERR! This is most likely a problem with the phantomjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls phantomjs
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-40-generic
npm ERR! command "/home/travis/.nvm/v0.10.40/bin/node" "/home/travis/.nvm/v0.10.40/bin/npm" "install" "-g" "git://github.com/tars/tars-cli.git#63725d4416d7f759a0fc77faa2b5e8b4b7ec3387"
npm ERR! cwd /home/travis/build/tars/tars-cli
npm ERR! node -v v0.10.40
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

Sorry, but we don't maintain npm package, You should open this issue in the owner's repository: https://github.com/Medium/phantomjs


Linking with Xamarin.Android libraries fails

When trying to compile in Release mode with Xamarin.Android.Support.CustomTabs.CustomTabsIntent v25.1.1, the following error occurs:
Java.Interop.Tools.Diagnostics.XamarinAndroidException: error XA2006: Could not resolve reference to 'System.Void Android.Support.CustomTabs.CustomTabsIntent::LaunchUrl(Android.App.Activity,Android.Net.Uri)' (defined in assembly 'Plugin.Share, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null') with scope 'Xamarin.Android.Support.CustomTabs, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'. When the scope is different from the defining assembly, it usually means that the type is forwarded. ---> Mono.Cecil.ResolutionException: Failed to resolve System.Void Android.Support.CustomTabs.CustomTabsIntent::LaunchUrl(Android.App.Activity,Android.Net.Uri)

Duplicate of #43

I see it's marked as a duplicate, I'm facing the same issue. Downgrading has caused other issues in my build for me that are taking long to fix. Any idea on when a new version supporting v25 will be out?

Try: <IP_ADDRESS>-beta

<IP_ADDRESS>-beta is built against 25.1.1 and validated working in the test sample app on 25-1-1-support branch. 5.x will remain on 23.x support libraries

Thanks James!  Super fast - confirmed v<IP_ADDRESS> works perfectly.  Thanks again


Use nonce-based Content Security Policy

This updates our CSP to use nonces, provided by Django-csp. This shrinks the size of the CSP header by ~7x while increasing its security. The main mechanism of CSP enforcement is strict-dynamic mode, which requires a nonce (or hash) for any script element included in the html, but allows the creation of further script elements from trusted scripts (so we don't have to specifically allow a bunch of random third-party domains if we're already trusting their initiators).
Note: the unsafe-inline and https: bits are only for backwards compatibility with browsers that support CSP but not strict-dynamic. Modern browsers ignore these entries when strict-dynamic is set. Removing unsafe-eval and unsafe-inline from our CSP will increase its efficacy incredibly :)
Because we're much more secure-by-default, I've also removed a bunch of the other IMG/STYLE/etc CSP settings which are now less important (because XSS to then include bad domains/styles is harder).
Another important note: due to limitations in how Wagtail includes scripts in the admin, I've made admin pages exclude the CSP. This isn't actually a problem because these pages are excluded from the public website. The only other solution of this was to override several base wagtail templates, which seemed like a big maintenance headache (for no real benefit). One exception to this was this the wagtail userbar, which I needed to override so to get working.

Another important note: due to limitations in how Wagtail includes scripts in the admin, I've made admin pages exclude the CSP.

It does look like Wagtail has a route to get there, albeit it's been a long one: https://github.com/wagtail/wagtail/issues/1288

I have a few thoughts. Overall I think this is good, and I don't have much in the way of code review comments, just some additional questions:

I am curious how this plays with Akamai. Can we find a time slot to deploy it to beta?
Can we document, with a link to the django-csp docs (and maybe the MDN, or somewhere, CSP docs), when and where one needs to use request.csp_nonce?

It's unfortunate that we need to override the Wagtail userbar template, but this is clearly something others are doing to solve this exact problem, and Wagtail doesn't offer a good alternative solution.

nonce docs added in bfc4bef91066adf09c6510febe60ec1801e2906b
Happy to push to beta sometime sooh


Can't use your latest stable version

I develop a web app using angular latest version. I installed @angular/cli 1.0.5 and now i can't build my project.
This is a part of the error i got after the install.
ERROR in ./src/app/app.module.ts
Module not found: Error: Can't resolve 'app/app.component' in 'C:\Users\George Tzinos\Desktop\projects\document_management_frontend\documentManagement\src\app'
@ ./src/app/app.module.ts 20:0-40
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
My package.json
{
"name": "appit",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^4.1.3",
"@angular/common": "^4.1.3",
"@angular/compiler": "^4.1.3",
"@angular/core": "^4.1.3",
"@angular/flex-layout": "^2.0.0-beta.8",
"@angular/forms": "^4.1.3",
"@angular/http": "^4.1.3",
"@angular/material": "^2.0.0-beta.5",
"@angular/platform-browser": "^4.1.3",
"@angular/platform-browser-dynamic": "^4.1.3",
"@angular/router": "^4.1.3",
"": "0.0.1",
"core-js": "^2.4.1",
"file-saver": "^1.3.3",
"font-awesome": "^4.7.0",
"hammerjs": "^2.0.8",
"material-design-icons-iconfont": "^3.0.3",
"ng2-cookies": "^1.0.12",
"primeng": "^4.0.1",
"roboto-fontface": "^0.7.0",
"rxjs": "^5.4.0",
"socket.io-client": "^2.0.1",
"typings": "^2.1.1",
"zone.js": "^0.8.11"
},
"devDependencies": {
"@angular/cli": "1.0.5",
"@angular/compiler-cli": "^4.1.3",
"": "2.5.47",
"": "~7.0.22",
"codelyzer": "~3.0.1",
"jasmine-core": "~2.6.2",
"jasmine-spec-reporter": "~4.1.0",
"karma": "~1.7.0",
"karma-chrome-launcher": "~2.1.1",
"karma-cli": "~1.0.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"karma-coverage-istanbul-reporter": "^1.2.1",
"protractor": "~5.1.2",
"ts-node": "~3.0.4",
"tslint": "~5.3.2",
"typescript": "~2.3.3"
}
}

I can confirm that I am having a similar error, with a similar message.

same

I too have the same error

Same here.  It looks like the module loader is completely broken:

ERROR in ./src/app/module/document-viewer/service/rest.base.service.ts
Module not found: Error: Can't resolve 'environments/environment' in '/mnt/d51d5afe-e5ab-4abc-9e5b-32f98be70b2c/src/CdiYarn/src/app/module/document-viewer/service'

Same here, having issues resolving multiple items.

There's a fix on the way.

1.0.6 has been release with a (supposed) fix.

Nice job @hansl - good to go.


Pattern Rotation Animation

Ok, first of all sorry for being a pain the ass,  lol :D
The pattern rotation works fine, but not with animation i get the following error.

Can I see your code pls?

Its same thing like this.
var patternImg3 = draw.pattern(306, 81, function(add) {
            add.image(baseUrlmedia + 'product/image'+data.img);
        }).x(menu3Limite3-3).y(212);
var menu3Img = draw.polyline([[menu3Limite3-3, 212], [(menu3Limite3+220), 212], [(menu3Limite4+220), 293], [menu3Limite4-3, 293]]).fill(patternImg3);

var menu3Wrapper = draw.polyline([[menu3Limite2, 255], [0, 255], [0,170], [menu3Limite1, 170]])
            .fill({color: 'transparent'})
            .stroke({width: 0})
            .attr('id', 'menu3Wrapper');

menu3Wrapper.mouseover(function(){
     patternImg.animate().rotate(15);
});

Any news about this ticket????
Thanks..

Nope sorry. I am very busy atm

Not so familiar with svg.js, but as a hacky workaround for the time, could you just animate it manually with transform inside an animate 'during' function...eg something like this..
http://jsfiddle.net/32yxud2k/2/
myRect.animate(2000).during( rotatePattern );

function rotatePattern( val ) {
  pattern.transform({ rotation: val * 45 } )
}

I fixed the problem but there is much more to do!
So lets talk about user intended behavior:
What do you think the following calls will/should do:
element.animate().rotate(15).scale(2).rotate(50)
element.animate().rotate(15).rotate(15)
element.animate().scale(2).scale(2)

And what do you think this ones will do:
element.rotate(15).scale(2).rotate(50)
element.rotate(15).rotate(15)
element.scale(2).scale(2)

That is very important for me to know! Meanwhile I will prepare the commit for this fix

I don't know svg.js much, but quick thoughts...
Would it not make sense to make it equivalent to what would happen in svg, eg transform='rotate(15) scale(2) rotate(50)' (apart from the obvious differences like transform origin)..
animate is a bit fiddlier ? I guess you may want to animate the individual elements value each time (rather than interpolate the matrix).

thx @ibrierley for your valuable thoughts!
What you say makes perfectly sense. I myself came to this point. Until now svg.js always set absolute values so if you scale, translate and scale again it will overwrite the first scale. There is a relative-flag to ovewrite this behavior but I strongly think it should be the other way round.
Animating stuff is difficult, yes. But its not the math which causes problems (in svg.js everything is done with matrix interpolation so that is not a thing).
You just dont know what a call to element.animate().something() will do to the element.
e.g.

should it animate TO the value given
should it animate BY the value given (so multiple calls will animate it further)

Its kinda the same problem (relative, absolute) and I feel like it should be relative, too. However rotational animation is hard to tame (when you interpolate a matrix you cannot define if clockwise or anticlockwise) and thats why there is an additonal parameter - but only one. So multiple calls to rotate in ONE animation chain will fail.
For me its important to know what the user THING it does just by looking on the function call.

There is my custom solution with SnapSVG: http://jsfiddle.net/L7jgm7uu/
I try to implement on SVG.js with user suggestion here, without success: http://jsfiddle.net/reocL50v/6/

I guess consistency is the key here, as peoples existing code (if I understand right, as mentioned not so familiar with svg.js yet) would default to 'TO', you probably don't want to change that and break stuff (sorry if I'm misunderstanding)?
Could you include a relative method...no idea if this would work, or if its a good idea ?
myrect.animate().relative().rotate(45)
myrect.animate().absolute().transform(20,20).relative().rotate(20)

GrupoWebex, try http://jsfiddle.net/reocL50v/7/
I think its the version of svg.js on the original fiddle thats causing an extra issue.

Frame definition and a defined function call should be great which can be a custom function or predefined function (on svg.js).
But problem is not here, problem is animation (relative or absolute) is not working, so i think defined item get wrong update params on recursive animation.

@GrupoWebex this issue aims to find a way to implement the animation in a proper way. The current implementation is broken but cant be fixed without thinking about the problem I mentioned here.
So its in the first place a discussion about the user intended behavior and not about fixing the problem in the first place

Might also be worth clarifying, what is broken in the current implementation. Is something broken, or just not well understood/described (which is part of svg transforms in itself typically for most).

Sorry for spam, another alternative maybe actually having rotateTo, rotateBy etc methods to remove any amiguity (and leave old original methods intact for compatibility).

Whats broken:
Rotation doenst work in a correct manner. e.g. when you run several animations which should rotate the element by a certain degree it will first rotate in one direction but every other call will rotate in the other direction.
Example: https://jsfiddle.net/k37nuzLs/1/
Thats the most mentioned error I realized so far.
The problem with animated rotation is always the same. When you use matrices to rotate an element you can only rotate it in the range of 0-360°. As soon as the value is over 360 the element spins back. Thast the only reason we have a parameter which tracks rotation in the code. But as you can see it doenst work as it should.
I dont know if there are more errors with animations. However imo the animation-modul is quite confusing. The normal behavior should be relative since you are chaning the transformations.
The rotateTo/rotateBy methods would be a huge clarification. I just wanted to avoid this doubling for every transformation (even if its done for move, x and y, too (see dmove, dx, dy)).

Direction on rotate should be implemented with +- number signs on deegres. That is perfect to not cause any confusion...
Queued animations hasn't any problem since after() + animate() delay option work well. Extra function for working more easy, will be good too.

@GrupoWebex the implementation with +- would lead to LOTS OF confusing:
el.rotate(45) // rotates to 45
el.rotate(+45) // does the same
el.rotate(-45) // rotates 45 back? or rotates to -45?

The value -45° is a valid and therefore you cant missuse it as indicator of the direction.
Its however common sense that the value is always animated in the which one is higher direction.
So 45 to 300 will always rotate the one way and 300 to 45 the other way round. If you want to rotate further you have to write 300 to 360 + 45 = 405 instead

Maybe logic of (+-)number can be defined if you are on left or right from center (cx).
left to cx: positive go up, negative go down
right to cx: negative go up, positive go down

Just thinking about intuition, not sure if this is a related bug, or I'm not using it right, but I would probably expect these two rects to be in the same place for example...the scale being ignored for the rotation is what I'm guessing. I note the order of transform doesn't seem to make any difference.
https://jsfiddle.net/k37nuzLs/9/

i think it is a inline function problem.
Testing: https://jsfiddle.net/k37nuzLs/12/

Oh yes, its probably as the inline version isn't scaling from the centre, and taking 0,0 I would imagine. Ignore me!

looks like the relative flag gets ignored. I guess I have to rewrite the whole rotation thing...
I tested the rotation with 0,0 and its still is not the same.
@GrupoWebex: we are not d3 and we are not parsing strings to get transformation relative/absolute. Furtermore in your example I dont know if the rotation is relative or absolute either so it doenst seems that intuitive to me

I'm wondering if its related to this bit of code...
 if (relative) {

//        o.rotation += this.param && this.param.rotation != null ?
//          this.param.rotation :
//          matrix.extract().rotation
}
If I comment that out, it seems to work on rotations, but I'm not familiar enough with the code to know if thats needed for some reason elsewhere. Is that because is the rotation is being applied to the existing matrix anyway maybe, so doesn't need to be added there again ?

Hm that could be a problem. Looks like you add the rotation to the already present rotation and rotate with this value instead of the right one. However the animation example still doesnt work

I also note like 1850:
(this.param.to.rotation - this.param.from.rotation * 2) * pos
Any reason for the * 2 ?
That seems to help a bit with some oddness, but maybe still issues with
relativity.
Ian
On Thu, Nov 5, 2015 at 4:23 PM, Ulrich-Matthias Schäfer <
<EMAIL_ADDRESS>wrote:

Hm that could be a problem. Looks like you add the rotation to the already
present rotation and rotate with this value instead of the right one.
However the animation example still doesnt work
—
Reply to this email directly or view it on GitHub
https://github.com/wout/svg.js/issues/385#issuecomment-154111041.


moving hands

is there any way to make hands moving in x and y axis

Hello, yes there is. You can fetch the screen space x,y coordinate of the
wrist in Python then after recieving that in Unity transform the hand
accordingly.
On Thu, Feb 15, 2024, 2:50 PM EmircanLalecan, @.***>
wrote:

is there any way to make hands moving in x and y axis
—
Reply to this email directly, view it on GitHub
https://github.com/ganeshsar/UnityPythonMediaPipeHands/issues/2, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AO5J5VWTBHSNOQNPN4RRMIDYTZ7KHAVCNFSM6AAAAABDLANDBGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEZTONJQHEYDKNY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Profile page, and main page filtering

This adds the profile page petitions and solutions to look through
Also adds in the main page filtering by scope. This is not finished yet but should be close.
I will pull in main after @Kyle-Mie merges his other branches in first

Going to need to create new component or something for showing our own solutions in the profile page. There is no link right now to the original petition.
Also what does approving a petition do? shouldn't you have to review the solutions inside to approve those and not the petition itself


Wav2Vec: loss curve

Could you provide loss curve that you get during training wav2vec?

Hi,
Did you handle this? I want to plot the loss curve, too. Thank you!

@Oktai15

@sgxthsat2019 unfortunately, no, I didn’t resolve problem

Hi both !
I'm working on VQ-wav2vec, but adding the option --tensorboard-logdir /path/to/tensorboard_logdir should solve your problem.
Then, you'll just have to call tensorboard --logdir=/path/to/tensorboard_logdir to display the tensorboard interface, showing you the validation loss (amongst other things)
I haven't found the way to store this information under a .json file format or something similar though ...


[Navigation Animation]

Use SimpleAnimatedNavHost to add two pages and set a jump animation similar to ios page exitTransition : slideOutHorizontally( targetOffsetX = { fullWidth -> (-(fullWidth * 0.1)).toInt() }, animationSpec = tween(animationDuration) ) popEnterTransition: slideInHorizontally( initialOffsetX = { fullWidth -> (-(fullWidth * 0.1)).toInt() }, animationSpec = tween(animationDuration) ) 2. Route to the second page, perform pop in the second page, then you will see that the first page covers the second page to perform the entry animation, and the second page will perform the exit animation at the bottom.
video url:
https://issuetracker.google.com/action/issues/246664224/attachments/38881411?download=true

This has to do with z-order which is a dup of #1160


register a key derivation path

Description/Reasoning

discuss, pick & register our key derivation path: https://github.com/satoshilabs/slips/blob/master/slip-0044.md
update the network/sdk to incorporate it

Registered here https://github.com/satoshilabs/slips/pull/1191#event-5602217346
the axelar KDP is    620   | 0x8000026c | AXL    | Axelar


install uaa standalone on ubuntu 14.04  failed

Hi expert,
My environment: ubuntu 14.04 LTS ,java version 1.7.0. install uaa standalone.
after run ./gradlew run get below error. any suggestions, thanks.
FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring root project 'cloudfoundry-identity-parent'.

Could not resolve all dependencies for configuration ':classpath'.
Could not download gradle-cargo-plugin.jar (org.gradle.api.plugins:gradle-cargo-plugin:1.5)
Could not get resource 'https://jcenter.bintray.com/org/gradle/api/plugins/gradle-cargo-plugin/1.5/gradle-cargo-plugin-1.5.jar'.
Could not GET 'https://jcenter.bintray.com/org/gradle/api/plugins/gradle-cargo-plugin/1.5/gradle-cargo-plugin-1.5.jar'.
peer not authenticated

Clicking on the link https://jcenter.bintray.com/org/gradle/api/plugins/gradle-cargo-plugin/1.5/gradle-cargo-plugin-1.5.jar downloads the JAR for me.
Are you behind a proxy? If so, read up on proxy settings for gradle at
https://docs.gradle.org/current/userguide/build_environment.html


TOML/YAML Parsing int64, uint64, uint, time.Duration

Love the library, thank you all for working on it.
Ran into an issue when using toml/yaml imports, int64, uint64, uint and time.Duration are not parsed.
For example:
test.toml
test-int=5
test-int-64=9223372036854775807
test-uint-64=100
test-uint=50
# test-duration="4m49s"

test.yaml
test-int: 5
test-int-64:<PHONE_NUMBER>854775807
test-uint-64: 100
test-uint: 50
# test-duration: "4m49s"

main.go:
package main

import (
	"fmt"
	"os"
	"time"

	"gopkg.in/urfave/cli.v1"
	"gopkg.in/urfave/cli.v1/altsrc"
)

func main() {
	app := cli.NewApp()

	var (
		testInt64    int64
		testUint64   uint64
		testUint     uint
		testInt      int
		testDuration time.Duration
	)

	app.Flags = []cli.Flag{
		altsrc.NewInt64Flag(cli.Int64Flag{
			Name:        "test-int-64",
			Destination: &testInt64,
		}),
		altsrc.NewUint64Flag(cli.Uint64Flag{
			Name:        "test-uint-64",
			Destination: &testUint64,
		}),
		altsrc.NewUintFlag(cli.UintFlag{
			Name:        "test-uint",
			Destination: &testUint,
		}),
		altsrc.NewIntFlag(cli.IntFlag{
			Name:        "test-int",
			Destination: &testInt,
		}),
		altsrc.NewDurationFlag(cli.DurationFlag{
			Name:        "test-duration",
			Destination: &testDuration,
		}),
		cli.StringFlag{
			Name: "config, c",
		},
	}

	app.Action = func(c *cli.Context) error {
		fmt.Println(testInt)
		fmt.Println(testInt64)
		fmt.Println(testUint64)
		fmt.Println(testUint)
		fmt.Println(testDuration)
		return nil
	}

	// TOML:
	app.Before = altsrc.InitInputSourceWithContext(app.Flags, altsrc.NewTomlSourceFromFlagFunc("config"))

	// YAML:
	// app.Before = altsrc.InitInputSourceWithContext(app.Flags, altsrc.NewYamlSourceFromFlagFunc("config"))
	app.Run(os.Args)
}

Running this with YAML or TOML results in the same outputs.
Results from running  with test-duration comented out:
go run main.go -c test.toml
go run main.go -c test.yaml
5
0
0
0
0s

Running with test-duration:
Mismatched type for flag 'test-duration'. Expected 'duration' but actual is 'string'
exit status 1

Hiya! There's a known issue with the current implementation of the CLI, where altsrc is generally clunky and poorly documented. My current idea is that I'm going to move all of the altsrc functionality into the main package in some way, and that's how all of the "altsrc is weird and different???" issues people are having will get resolved. I'm tracking that work here => https://github.com/urfave/cli/issues/833


Add symlinks to common version abbreviations

I'm not entirely sure if this will work or if these values need to be transfered to a heroku backend elsewhere also.
My reasoning behind this change is that some people (at least me) don't care about minor versions and don't write code that will break on minor versions.
By symlinking the versions, you can allow people to say "I'm sure it will only work in python-2" and always get the newest python 2 or "I'm sure it only works in python 3.4".
Just food (and a PR) for thought.

I like this idea, but there are a few things that prevent me from merging this:

a lot of hard-to-track builds would have to be made every time there's a new release.
the way app version-tracking currently works, you wouldn't get upgrades automatically.

A better approach would be to add these links on the server side (s3), where the packages themselves live.
So, we'd have to give these links a way to "resolve" (like a redirect) on the server side, and this would be done with S3.

Yeah, I wasn't sure if adding them here would really do anything.

@kennethreitz so what do you think we do with this PR. Close it?

for now, yes


zsh-fzy should take arbitrary fzy configuration

I'd like to be able to pass in the -l flag to get more rows.
If you agree, I'll create a PR?

@hlascelles: I'll be happy to review and merge a PR. How are you planning to implement this?

I suppose ENV would be the easiest?
There are a number of switches, and they may change in the future, so probably best to have something like this at the top of your ~/.zshrc:
ZSH_FZY_HISTORY_SWITCHES='-l 25 -s -j 4'
ZSH_FZY_CD_SWITCHES='-l 15 -s -j 8'
ZSH_FZY_FILE_SWITCHES='-l 35 -j 2'

I'm not sure if there is a better convention that the word "SWITCHES".

@hlascelles: Using environment variables sounds good to me. Provided that those will be defined and used in Zsh, it would be nice to have them be array variables:
declare -a ZSH_FZY_HISTORY_FLAGS=( -l 25 -s -j 4 )
declare -a ZSH_FZY_CD_FLAGS=( -l 15 -s -j 8 )
declare -a ZSH_FZY_FILE_FLAGS=( -l 35 -j 2 )

Then when expanding them there won't be quoting and expansion issues, the following will always pass one parameter to the command per array element:
fzy "${ZSH_FZY_HISTORY_FLAGS[@]}" ...

Also, if it's needed to filter flags, iterating over an array is much easier than having to parse the contents of a string variable. WDYT?

Good idea. I've created a PR.
After a few seconds thought I realised I had no desire for such fine grained control. I wonder who would. So I Kept It Simple with just one. https://github.com/aperezdc/zsh-fzy/pull/6


Fixing sporadicly failing tests

The JUnitTestClassLoader test has been failing
consistently on OSX. Refactored the test to use
a temp directory every time instead of a class
variable.
The DependentTest has been having sporadic
failures for a combination which involves a class
that has methods (with dependent methods) and when
running in parallel. The failure is due to the fact
that the test assumes that the invocation order
is deterministic. This is not the case.

@juherr - Please take another look now.


Welcome Cog changes

[ ] Adding randomized greetings
[ ] Fix missing channels/servers bugs
[ ] Add roles on join

missing channels should be fixed

[ ] Add welcome cog to master

TBH, I think you can atleast PR it over to master, I think we can both handle the bugfixes required if there are any needed.

aikaterna commented on Nov 22, 2016 • edited red-cogs#36
[p]welcomeset msg list only returns non-bot welcomes in the list.
*May want to include bot welcome messages under [p]welcomeset bot list
*May also not be relevant until there's more than one bot welcome message, like the random queue on user welcome messages.
[p]welcomeset bot role with no argument returns Error in command 'welcomeset bot role' - AttributeError: 'NoneType' object has no attribute 'name'
Traceback (most recent call last):
  File "C:\Users\user\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\ext\commands\bot.py", line 252, in _run_extra
    yield from coro(*args, **kwargs)
  File "C:\Red-DiscordBot\cogs\message_economy.py", line 59, in process_message
    server = message.server.id
AttributeError: 'NoneType' object has no attribute 'id'

In the [p]welcomeset bot role [role] help, you may want to add that you need to encapsulate roles with spaces within double quotes.
From a user standpoint, it still has the issue where a bot can't add a bot to it's same permission level - that you mentioned in your first post.

[x] won't list bot msgs until they are also random
[ ] welcomeset bot role w/out args -> error
[ ] help welcomeset bot role -> enclose multiword with spaces
[ ] check permissions. May not do this yet


Kraken: speedup symbol lookup in trade stream

Kraken uses special symbols (ADA/CAD rather than ADACAD)
a recent bugfix fa2534ec7ec0c7b400bc5cb584e353ac62486bf9 now sets the WS name as an alternate name
the ExchangeMarket is looked up for each symbol name to pull out the alternate name
while it attempts to use caching, it is not actually able to use the cache, bc once it hits the await MakeJsonRequestAsync(), the next select statement progresses so OnGetMarketSymbolsMetadataAsync() is called for every symbol
by priming the cache first, this allows the cache to populate first before the select statement, thus hitting OnGetMarketSymbolsMetadataAsync() once
this is a hacky way to fix this problem, unless @jjxtra can think of a more elegant way?

Could we just call OnGetMarketSymbolsMetadataAsync to prime the cache instead?

I tried that, but that doesn't seem to prime it...

Maybe just await PopulateExchangeMarketsAsync(false); is needed

that works


Q: How to see connected peers when running wireguard-ui in docker?

Hello,
I've wireguard engine and wireguard-ui running in docker as containers. I've specified WGUI_CONFIG_FILE_PATH for wg0.conf and can use wireguard-ui to create new peers and everything works, but I can't see any of them connected in the web gui (connected peers). Is there anything I can do? Thanks in advance!

This is documented in the readme. Just follow the docker part, worked for me!

I have the same issue like @dev9209 . There is not much information in the Docker Part. Can you tell me, what i need to do exactly.
I also have wireguard and wireguard-ui running as docker containers.
Thank you!

I have also exactly the same issue, this is my docker-compose file:
version: "3"

services:
  wg:
    image: ngoduykhanh/wireguard-ui:latest
    container_name: wgui
    cap_add:
      - NET_ADMIN
    network_mode: host
    environment:
      - SENDGRID_API_KEY
      - EMAIL_FROM_ADDRESS
      - EMAIL_FROM_NAME
      - SESSION_SECRET
      - WGUI_USERNAME=alpha
      - WGUI_PASSWORD=this-unusual-password
      - WG_CONF_TEMPLATE
      - WGUI_MANAGE_START=true
      - WGUI_MANAGE_RESTART=true
    logging:
      driver: json-file
      options:
        max-size: 50m
    volumes:
      - ./db:/app/db
      - /home/user/docker/wireguard-vpn/config:/etc/wireguard

There are two ways to make the status page working when having wireguard and wireguard-ui as containers.
1: Set the network_mode on both containers to host (haven't tried myself but according to #317 (comment) this works)

Example
version: '3'

services:
  wireguard:
    image: linuxserver/wireguard:latest
    container_name: wireguard
    cap_add:
      - NET_ADMIN
    network_mode: host
    volumes:
      - ./config:/config

  wireguard-ui:
    image: ngoduykhanh/wireguard-ui:latest
    container_name: wireguard-ui
    depends_on:
      - wireguard
    cap_add:
      - NET_ADMIN
    network_mode: host
    environment:
      - SENDGRID_API_KEY
      - EMAIL_FROM_ADDRESS
      - EMAIL_FROM_NAME
      - SESSION_SECRET
      - WGUI_USERNAME=alpha
      - WGUI_PASSWORD=this-unusual-password
      - WG_CONF_TEMPLATE
      - WGUI_MANAGE_START=false
      - WGUI_MANAGE_RESTART=false
    logging:
      driver: json-file
      options:
        max-size: 50m
    volumes:
      - ./db:/app/db
      - ./config:/etc/wireguard

2: Set the network_mode on the wireguard-ui container to service:<name of your wireguard container>

Example
version: '3'

services:
  wireguard:
    image: linuxserver/wireguard:latest
    container_name: wireguard
    cap_add:
      - NET_ADMIN
    volumes:
      - ./config:/config
    ports:
      # port of the wireguard server
      - 51820:51820/udp
      # port for wireguard-ui. this must be set here as the `wireguard-ui` container joins the network of this container and hasn't its own network over which it could publish the ports
      - 5000:5000

  wireguard-ui:
    image: ngoduykhanh/wireguard-ui:latest
    container_name: wireguard-ui
    depends_on:
      - wireguard
    cap_add:
      - NET_ADMIN
    # this is the important line:
    network_mode: service:wireguard
    environment:
      - SENDGRID_API_KEY
      - EMAIL_FROM_ADDRESS
      - EMAIL_FROM_NAME
      - SESSION_SECRET
      - WGUI_USERNAME=alpha
      - WGUI_PASSWORD=this-unusual-password
      - WG_CONF_TEMPLATE
      - WGUI_MANAGE_START=false
      - WGUI_MANAGE_RESTART=false
    logging:
      driver: json-file
      options:
        max-size: 50m
    volumes:
      - ./db:/app/db
      - ./config:/etc/wireguard

I couldn't set it to either of the options suggested by @bytedream due to contraints on my setup.
So I created a small project to get a separate dashboard up and running that shows the status: https://github.com/JorisM/wireguard-status -> works for me for now.


typo in readme instructions

running tests now during development, copy/pasting from README, caught small typo

@djdebonis  check out this slickness:
cat README.md | grep python3 | bash

automatically tries to run every example command in the README.


[SPARK-9730][SQL] Add Full Outer Join support for SortMergeJoin

JIRA: https://issues.apache.org/jira/browse/SPARK-9730
This patch adds the Full Outer Join support for SortMergeJoin. A new class SortMergeFullJoinScanner is added to scan rows from left and right iterators. FullOuterIterator is simply a wrapper of type RowIterator to consume joined rows from SortMergeFullJoinScanner.

Merged build triggered.

Merged build started.

Test build #41425 has started for   PR 8383 at commit 5703d56.

Test build #41425 has finished for   PR 8383 at commit 5703d56.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/41425/
Test PASSed.

/cc @JoshRosen

Maybe modify rules in SparkStrategies.EquiJoinSelection to enable this?

@adrian-wang Thanks. I have modified it in local, but forgotten to commit it. I will update this later.

Merged build triggered.

Merged build started.

Test build #41442 has started for   PR 8383 at commit ddc5f82.

Test build #41442 has finished for   PR 8383 at commit ddc5f82.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/41442/
Test FAILed.

Merged build triggered.

Merged build started.

Test build #41451 has started for   PR 8383 at commit 4a3178b.

Test build #41451 has finished for   PR 8383 at commit 4a3178b.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/41451/
Test FAILed.

Merged build triggered.

Merged build started.

Test build #41457 has started for   PR 8383 at commit 06e0f74.

Test build #41457 has finished for   PR 8383 at commit 06e0f74.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/41457/
Test FAILed.

retest this please.

Merged build triggered.

Merged build started.

Test build #41488 has started for   PR 8383 at commit 06e0f74.

Test build #41488 timed out     for PR 8383 at commit 06e0f74     after a configured wait of 175m.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/41488/
Test FAILed.

retest this please.

Merged build triggered.

Merged build started.

Test build #41508 has started for   PR 8383 at commit 06e0f74.

Test build #41508 has finished for   PR 8383 at commit 06e0f74.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/41508/
Test FAILed.

retest this please.

Merged build triggered.

Merged build started.

Test build #41522 has started for   PR 8383 at commit 06e0f74.

Test build #41522 has finished for   PR 8383 at commit 06e0f74.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/41522/
Test FAILed.

Merged build finished. Test FAILed.

Unrelated failure happens too frequently.

retest this please.

Merged build triggered.

Merged build started.

Test build #41531 has started for   PR 8383 at commit 06e0f74.

Test build #41531 has finished for   PR 8383 at commit 06e0f74.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/41531/
Test PASSed.

Merged build triggered.

Merged build started.

Test build #41538 has started for   PR 8383 at commit 0559a40.

Test build #41538 has finished for   PR 8383 at commit 0559a40.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/41538/
Test FAILed.

Merged build triggered.

Merged build started.

Test build #41595 has started for   PR 8383 at commit 27b6044.

Test build #41595 has finished for   PR 8383 at commit 27b6044.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/41595/
Test PASSed.

Merged build finished. Test PASSed.

@davies @JoshRosen

Merged build triggered.

Merged build started.

Test build #41936 has started for   PR 8383 at commit addf5fe.

Test build #41936 has finished for   PR 8383 at commit addf5fe.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/41936/
Test PASSed.

@viirya Thanks for working on this, this patch is still over complicated, do you mind me to take over it?

@viirya I had created #8579. If you'd like to continue to work on this one, feel free to pull that one into this one.

@davies Thanks for comment and continuing this patch. I still added new commits to fix the problems you mentioned. But free feel to merge #8579 when it is ready. I will close this after that.

Merged build triggered.

Merged build started.

Test build #41958 has started for   PR 8383 at commit 62cc7e3.

Test build #41958 has finished for   PR 8383 at commit 62cc7e3.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/41958/
Test PASSed.


replace unique_lock with scoped_lock

Found we use unique_lock a lot. Replace some unique_lock with scoped_lock to avoid overhead.


Fix for -ContinueFormatting

This fixes an issue with the -ContinueFormatting switch for Add-WordTable where it was not formatting the last row of table data.
I've checked and this change doesn't seem to break -ContinueFormatting on Add-WordText which shares the same function.

Thank you. My mistake :)


Header1 not processed if it is the first line

I'm having a problem with the following mark-down:
# Main header
This is a very simple file

## Section 1
This is section 1

## Section 2
This is section 2

In the format above, the first header '# Main header' is not correctly processed and the resulting HTML looks like this:

# Main header
This is a very simple file

Section 1

etc

Interesting, if I have 1st level headers further down my MD file, they are correctly parsed to HTML H1's. Also if I make the first line an empty line, I get the output below which is closer to what I want but ideally I'd rather not have the opening P

Main header

This is a very simple file

etc

Is this something to do with the CommonMark spec or am I doing something wrong or is it actually a bug?
My code looks like this. This is an MVC Action. The file itself is passed in a simple form.
C Sharp
        [HttpPost]
        public ActionResult Viewer(FormCollection collection)
        {
            //read file in incoming form to a string
            var files = GetFilesFromForm(Request.Files);
            var fileMd = Encoding.UTF8.GetString(files.FirstOrDefault());

            //get full html string from md
            var fileHTML = string.Empty;
            using (var writer = new StringWriter())
            {
                CommonMarkConverter.ProcessStage3(CommonMarkConverter.Parse(fileMd), writer);
                fileHTML += writer.ToString();
            }

            //view model
            var viewModel = new ViewerViewModel()
            {
                ConvertedHtml = fileHTML
            };

            return View(viewModel);
        }

HTML
        @using (Html.BeginForm("Viewer", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
        {

                    <input type="file" name="file" id="file" />

                    <input type="submit" class="button" value="Submit">

        }

Did you try reproducing this in the console application? Works without a hitch for me.

dump the chart codes of the output - it might be possible that your code does not handle utf-8 preamble (byte-order-mark) correctly and thus the # symbol is not actually the first in line.
Also you should be passing a stream to the parser, instead of reading everything into a string.


QUIC instead of TCP

https://en.wikipedia.org/wiki/QUIC
QUIC will probably replace TCP at some point. It's worth noting that QUIC has built-in encryption using TLS1.3. This implies normal TLS certificates.

It's possible that QUIC is something we would do in RSMP 4.

@marcgarba, would you consider QUIC/TLS as suitable way to encrypt messages, apart from the need to manage certificates?


Implemented FHIRPath 'as' filter and 'ofType' function

Consider the Observation:
{
  "resourceType": "Observation",
  "valueQuantity": { "value": 100, "unit": "mg" }
}

Consider the FHIRPath expression: value as CodeableConcept
Before: We would return the Quantity object (incorrect)
Now: We return empty array (correct)
(This is required for some in-development work to properly index CodeableConcept values)

Coverage decreased (-0.01%) to 94.355% when pulling d2e096f5ae873ff1022112519d23bf468f7515a6 on cody-fhirpath-as-filter into 632dc8153e0fae383bce0a0d4262bf1253a6b6b0 on main.


fix(css)!: remove default import in ssr dev

Description
Found from https://github.com/withastro/astro/issues/11811
In SSR dev, we still incorrectly support default imports of a CSS file (without queries). This feels like a bug fix, but technically I guess it affects frameworks like vitest that executes in SSR and serve mode?

I think Vinxi and Remix are relying on default export of ssrLoadModule without ?inline https://github.com/remix-run/remix/blob/c5292edb5997b0818105944b33da7c4cd4567511/packages/remix-dev/vite/styles.ts#L77-L79. Can you check ecosystem ci?
If this was meant to be deprecated already, then maybe it's okay to change though (also it might be just a one liner fix on their end?).

/ecosystem-ci run

Looks like astro, remix, and sveltekit all fails and likely related to the CSS handling, so this would be breaking then unfortunately. Let's move this to the next major then.

/ecosystem-ci run

From the initial ecosystem-ci run, this affected astro, remix and sveltekit, so perhaps we should delay merging this until we can get them passing in main so it's easier to narrow down the required migration. But either ways if we want to merge this now, I don't mind.


GPC_4T - Enable Alive Test - Basic ALU Operations

Enable Alive Test - Basic ALU Operations

[x] Add/Sub/Shift Imm/Register
[x] Jump/branch
[x] Write results to MMIO
[x] Test Self-Check -> if the MMIO DATA is as Expected Write to MMIO_Succesful Bit.

@SaarKadosh
Please push to origin the Alive test you work on.

alive.c
alive.c.s
alive.elf
alive_lef.txt
And you may remove the old test

Was done and not closed.


HHH-15487 - Remove support for PostgreSQL versions older than 10

Signed-off-by: Jan Schatteman<EMAIL_ADDRESS>

fails on pgsql 9.5, which makes sense if we just bumped the minimum version to 10; i guess we'd have to remove this CI task.


Documenting BufRead

I'm trying to read a stream containing several gzip files concatenated.
After some tests, I believe the functions in bufread::GzDecoder to read exactly the amount of bytes they need, and read::GzDecoder might read more. Apparently, I can call flate2::bufread::GzDecoder::new in a loop to get all my files.
However, either I missed something (and I'm sorry), or this is not too explicit in the current documentation. For example, the header of modules read and bufread appear to be the same, but since BufRead inherits Read, the two modules seem redundant.

The read modules are actually mostly for backwards compatibility and convenience at this point.
Seems like a good idea to have docs though! The code would probably look like: https://github.com/alexcrichton/flate2-rs/issues/41#issuecomment-219058833

I think this has been handled in the meantime, so I'm going to close.


Not able to add multiple media attachments

Not able to add multiple media attachments for AddMemberMessageRTQ api call...Below is my api call
Ebayr.call(:AddMemberMessageRTQ,:ItemID => "******" ,:MemberMessage => {:Body => Test, :MessageMedia => {:MediaName => "Test1",:MediaURL => "URL1"}, :MessageMedia => {:MediaName => "Test2",:MediaURL => "URL2"}, :ParentMessageID=> "ID" , :RecipientID=> "ID" })

Did you try a single MessageMedia key with an array? With your call above, the second reference simply overwrites the first. You could try playing around with the method here and see whether the test checks your requirements.

Yes i tried an array with multiple MessageMedia object but still it constructs only a single MessageMedia...

Weird. Can you post some code?

Was this ever fixed? I'm running into the same problem with the :PaymentMethods option (it's repeatable) but obviously you can't have 2 hash keys the same.

Oh, and if I try passing an array as the argument for :PaymentMethods it concats the two values into a single string i.e. CreditCardPayPal.

@neilturner77 - this test checks for that, and it's passing. Got some code?

Hi can you please give a sample on how to build multiple xml nodes for the outout selector.I am unable to build multiple OutputSelector...
Here is the code which i am using:
Ebayr.call(:GetItem, :DetailLevel => "ReturnAll", :ItemID => "ID", :OutputSelector => "PrimaryCategory",:OutputSelector => "SellingStatus")
Please provide a sample for the above...

hey bjjb i think the problem is that you test only check that self.xml can return a correct xml string. Whats happening here is that we are unable to insert a array dirrectly into the option hash eg({foo: 1, bar: 2, [{media: }]}). If we pass it only an array, delete can't select the hashes out of the array.

bjjb: issued a pull request.

@sathishceg @neilturner77  if you want to try my proposed patch you can get it with:
git clone https://github.com/SpeerJ/ebayr.git --branch patch-1 --single-branch
then enter the folder and build with:
gem build ebayr.gemspec
then install with:
gem install ebayr*.gem
the syntax is Ebayr.call(:call_name, :any_keywords, input: [{any_xml: xml_value}, {any_xml: xml_value}])
for example sathishceg's call would be Ebayr.call(:GetItem, input: [{:DetailLevel => "ReturnAll"}, {:ItemID => "ID"},{:OutputSelector => "PrimaryCategory"},{:OutputSelector => "SellingStatus"}])


When I use Julia to call tvm at arm server, find the error : CommandLine Error: Option 'aarch64-enable-ccmp' registered more than once! LLVM ERROR: inconsistency in registered CommandLine options

When I use Julia to call tvm at arm server, find the error:
: CommandLine Error: Option 'aarch64-enable-ccmp' registered more than once! LLVM ERROR: inconsistency in registered CommandLine options

Please open a new trouble shooting thread on https://discuss.tvm.ai/


Yen's algorithm buggy

Nicely written stuff, good use of Go.  But for Yen's you really have to collect all of the spurs and select the shortest one in each iteration k (maintain the B list in the algorithm's description).  Otherwise you will miss shortest paths.  Here is a test case that shows the problem.
package main
import (
"fmt"
"github.com/starwander/goraph"
)
func main() {
es := [][]int{{0, 1}, {0, 2}, {1, 2}, {2, 3}, {2, 4}, {3, 4}}
ws := []float64{1, 1, 1, 1, 1, 1}
g := goraph.NewGraph()
for i := 0; i < 5; i++ {
	g.AddVertex(i, nil)
}

for i := 0; i < len(es); i++ {
	g.AddEdge(es[i][0], es[i][1], ws[i], nil)
}
dist, paths, _ := g.Yen(0, 4, 5)

for i, p := range paths {
	if len(p) != 0 {
		fmt.Println(dist[i], p)
	}
}
// Output:
// 2 [0 2 4]
// 3 [0 1 2 4]
// 3 [0 2 3 4] <- missing
// 4 [0 1 2 3 4]

}

Sorry for the late reply. I've just come back from a holiday.
I will follow this issue soon and update ASAP.
Thanks!

Great, in the meantime I've worked out an implementation that works for my tests.  It follows the wikipedia description, although I guess I don't understand the stop early condition when the B list contains enough paths to fill out the top K list. Commented out that part as my interpretation of it caused shorter paths to be missed.
package shortestpath
import (
. "github.com/starwander/goraph"
"sort"
)
// entry in "B" list of Yen's algorithm
type b struct {
dist float64
path []Id
}
// KShortestPaths gets top k shortest loopless path between two vertex in the graph.
// https://en.wikipedia.org/wiki/Yen's_algorithm
// fix of github.com/starwander/goraph goraph.Yen, which is buggy
func KShortestPaths(graph *Graph, source, destination Id, topK int) ([]float64, [][]Id, error) {
var err error
var dijkstraDist map[Id]float64
var dijkstraPrev map[Id]Id
ADist := make([]float64, 0, topK)
A := make([][]Id, 0, topK)
B := make([]b, 0, topK)
dijkstraDist, dijkstraPrev, err = graph.Dijkstra(source)
if err != nil {
	return nil, nil, err
}
ADist = append(ADist, dijkstraDist[destination])
A = append(A, getPath(dijkstraPrev, destination))
for k := 1; k < topK; k++ {
	//		fmt.Println("k=", k, "topK=", topK)
	//		printDistPaths(k, ADist, A)
	for i := 0; i < len(A[k-1])-1; i++ {
		//			fmt.Println("A[k-1]=", A[k-1])
		spurNode := A[k-1][i]
		//			fmt.Println("i=",i,"spurNode=",spurNode)
		R := A[k-1][:i+1]
		//			fmt.Printf("R=%v\n", R)
		for _, p := range A {
			if len(p) >= len(R) && pathEqual(R, p[:i+1]) {
				//					fmt.Printf("disable (%v,%v)\n", p[i], p[i+1])
				graph.DisableEdge(p[i], p[i+1])
			}
		}
		//			fmt.Printf("disable %v\n", R[:i])
		graph.DisablePath(R[:i])

		dijkstraDist, dijkstraPrev, _ = graph.Dijkstra(spurNode)
		//			fmt.Printf("sp(%v,%v)=%f:%v\n",
		//				spurNode, destination, dijkstraDist[destination], getPath(dijkstraPrev, destination))
		S := getPath(dijkstraPrev, destination)
		//			fmt.Printf("S=%v\n", S)
		if len(S) != 0 { // make sure there is a path
			Ai := make([]Id, len(R)+len(S)-1)
			copy(Ai[:len(R)], R)
			copy(Ai[len(R):], S[1:])
			AiDist := graph.GetPathWeight(Ai)
			found := false
			for _, b := range B {
				if b.dist == AiDist && pathEqual(b.path, Ai) {
					found = true
					break
				}
			}
			if !found {
				B = append(B, b{AiDist, Ai})
			}
		}
		//			fmt.Println("B=", B)
		graph.Reset()
	}
	sort.Slice(B, func(i, j int) bool {
		return B[i].dist < B[j].dist
	})
	// according to the wikipedia page and Yen 1971 paper we should be able to quit early if B contains
	// enough paths to fill out the topK at this point:
	// if len(A) + len(B) >= topK {
	//     for i := 0; len(A) < topK; i++ {
	//	       ADist = append(ADist, B[i].dist)
	//	       A = append(A, B[i].path)
	//     }
	//     break;
	// }
	// B but I found it misses some shorter paths if we optimize to stop early like this
	if len(B) > 0 {
		ADist = append(ADist, B[0].dist)
		A = append(A, B[0].path)
		B = B[1:]
	} else {
		// all paths found
		break
	}
}

return ADist, A, nil

}
// KShortestIndependentPaths returns a list of paths which share no nodes, mostly just to have a common interface
// to the two KShortestPath algorithms in package goraph
func KShortestIndependentPaths(graph Graph, source, destination Id, topK int) ([]float64, [][]Id, error) {
return graph.Kisp(source, destination, topK)
}
/
func printDistPaths(k int, dist []float64, path [][]Id) {
fmt.Println("lendist=", len(dist), "lenpath=", len(path))
for i := 0; i < k; i++ {
fmt.Printf("A[%d]=%F:%v\n", i, dist[i], path[i])
}
}
*/
func pathEqual(p1, p2 []Id) bool {
if len(p1) != len(p2) {
return false
}
for i, n := range p1 {
if n != p2[i] {
return false
}
}
return true
}
func getPath(prev map[Id]Id, lastNode Id) (path []Id) {
prevNode := prev[lastNode]
if prevNode == nil {
return nil
}
reversePath := []Id{lastNode}
for ; prevNode != nil; prevNode = prev[prevNode] {
	reversePath = append(reversePath, prevNode)
}

path = make([]Id, len(reversePath))
for index, node := range reversePath {
	path[len(reversePath)-index-1] = node
}

return

}

Hi gsidebottom,
I've just solved the bug and the code has been already pushed.
Please update to the latest version and have a close look.
I'm going to close this issue. If there is any other problem, please feel free to re-open or submit a new one.
Very happy to have a discussion with you.  ^o^
B.R.
Ethan

Thanks, it passes my simple test above of course, and I see you implemented the quit early optimization that didn't work for me.  I'll try to remember the example where my quit early version didn't work to check yours out.
By the way, do you know about http://www.gonum.org/?  The have a very elaborate set of graph interfaces and algorithms, but sadly no K shortest paths or K shortest diverse paths.  Perhaps you could contribute a Yen and Kisp to them, would be a high profile move :).


GetOrderBook unmarshal error with "buy" or "sell" parameter

When executing bittrex.GetOrderBook("BTC-ETH", "buy", 10) an unmarshal error occurs:
json: cannot unmarshal array into Go value of type bittrex.OrderBook {[] []}
The same thing happens with "buy" changed to"sell". It does not occur when set to "both".
If "both" is the only valid option, then there's no point in passing it to the function, right?

https://github.com/toorop/go-bittrex/pull/20
fixed here


Support icons in mat-select trigger

Right now icons can be used in mat-option elements inside mat-select, but they don't show up on the trigger.
I know I can do this myself with mat-select-trigger, but it's complicated because it means referencing the logic for what to show both from the option and the trigger, and the default styling with an icon in the trigger is pretty bad; it expands the whole mat-form-field's height, and it's not easy to work around.

The feature makes sense for me, but my only concern is that it might become repetitive if you wanted to change the icon for all of the selects in an app. We can't add an injection token for it without introducing a dependency between material/select and material/icon.


Connect to Sense Server

I've tried to connect to Sense server but reached a point where I'm getting "Unauthorized (403)" error. Is it possible to pass credentials somehow?
Thanks!
Stefan

What's the authentication method on your server? Is the url correctly formatted, I.e make sure the slashes are correct.
When qsocks initializes it will do a GET request to the hub and if you have a active directory sso setup it will automatically sign you in (setting the correct cookie).
If you are using any other auth modules then windows there is no support for that right now.

AD is the authentication method.
What do you mean by "slashes are correct"?
Is it possible to post an example?

Ops, I forgot the most important thing facepalm
Qlik Sense has a whitelist to authorize which origins are allowed to talk websockets.
So you need to whitelist the extension origin in your proxy, origin should be
haifjhcobciacleiahcdnndlgankbdoa
But verify that by going to your extensions page in Chrome and look for the ID of the extension, that will be your origin to enter into the whitelist list in QMC. In QS 1.1 you will find it in QMC > Virtual Proxies > [Your Proxy] > Advanced

Btw, have you whitelisted your server in the proxy whitelist?
qsocks tries to connect over websockets so make sure your origin is in the list of approved hosts.

Well. So to make a long confusion short I initially thought you were raising the issue on the chrome extension SenseIt and not qsocks itself.  So anyways, disregard any previous communication.
This gist contains a sample on how to authenticate a user, grab a ticket and establish the connection to the QIX engine.
https://gist.github.com/mindspank/c623e3f0bcf448093feb

That works perfect!
Thanks!

I know it's still plenty of documentation missing. I will start making some updates, I did however push a new update which now does not force you to specify /app/3%transient in the host so just fyi.
If you do build something cool feel free to share as we are in desperate need of cool stuff to show off :)

A little late but finally managed to spend some time to start building something using qsocks.bundle.js - https://github.com/countnazgul/qlik-sense-chrome-devtools-extension


post a torrent of a pre-indexed insight database to avoid sync time

Suggested by @jgarzik

+1

+1 for this...

Mostly relevant for https://github.com/bitpay/bitcore-node now, and could be relevant for running on devices without much CPU. However with headers first sync, it may not be that helpful in general?

Indexing times are around the same time as the initial block download, and around 12-24 hours, bandwidth largely the bottleneck.


Tidy up config

Description
Just a little restructuring of the configuration file, removing superfluous fields and reorganize a bit. Also renaming the file to hugo.toml as per Hugo recommendation.
Related issues
Fix #96
Checklist
You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[x] I have read the contributing guidelines and the code of conduct.
[x] I have followed the documentation style.

Additional information

2023-03-20T09:08:35.027414Z	Cloning repository...
2023-03-20T09:08:35.99841Z	From https://github.com/united-manufacturing-hub/umh.docs.umh.app
2023-03-20T09:08:35.998969Z	 * branch            286058b1771970d965bbc4b5f77f2b1d406c2a11 -> FETCH_HEAD
2023-03-20T09:08:35.999163Z
2023-03-20T09:08:39.929492Z	Filtering content:  15% (24/154)
Filtering content:  16% (25/154), 13.64 MiB | 22.04 MiB/s
Filtering content:  17% (27/154), 13.64 MiB | 22.04 MiB/s
Filtering content:  18% (28/154), 13.64 MiB | 22.04 MiB/s
Filtering content:  19% (30/154), 13.64 MiB | 22.04 MiB/s
Filtering content:  20% (31/154), 13.64 MiB | 22.04 MiB/s
Filtering content:  21% (33/154), 13.64 MiB | 22.04 MiB/s
Filtering content:  22% (34/154), 13.64 MiB | 22.04 MiB/s
Filtering content:  23% (36/154), 13.64 MiB | 22.04 MiB/s
Filtering content:  24% (37/154), 13.64 MiB | 22.04 MiB/s
Filtering content:  25% (39/154), 13.64 MiB | 22.04 MiB/s
Filtering content:  26% (41/154), 13.64 MiB | 22.04 MiB/s
Filtering content:  27% (42/154), 13.64 MiB | 22.04 MiB/s
Filtering content:  28% (44/154), 13.64 MiB | 22.04 MiB/s
Filtering content:  29% (45/154), 13.64 MiB | 22.04 MiB/s
Filtering content:  30% (47/154), 13.64 MiB | 22.04 MiB/s
Filtering content:  31% (48/154), 13.64 MiB | 22.04 MiB/s
Filtering content:  32% (50/154), 13.64 MiB | 22.04 MiB/s
Filtering content:  33% (51/154), 13.64 MiB | 22.04 MiB/s
Filtering content:  34% (53/154), 13.64 MiB | 22.04 MiB/s
Filtering content:  35% (54/154), 13.64 MiB | 22.04 MiB/s
Filtering content:  36% (56/154), 13.64 MiB | 22.04 MiB/s
Filtering content:  37% (57/154), 13.64 MiB | 22.04 MiB/s
Filtering content:  38% (59/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  39% (61/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  40% (62/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  41% (64/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  42% (65/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  43% (67/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  44% (68/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  45% (70/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  46% (71/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  47% (73/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  48% (74/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  49% (76/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  50% (77/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  51% (79/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  52% (81/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  53% (82/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  54% (84/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  55% (85/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  56% (87/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  57% (88/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  58% (90/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  59% (91/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  60% (93/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  61% (94/154), 16.47 MiB | 13.85 MiB/s
Filtering content:  62% (96/154), 17.15 MiB | 9.79 MiB/s
Filtering content:  63% (98/154), 17.15 MiB | 9.79 MiB/s
Filtering content:  64% (99/154), 17.15 MiB | 9.79 MiB/s
Filtering content:  65% (101/154), 17.15 MiB | 9.79 MiB/s
Filtering content:  66% (102/154), 17.15 MiB | 9.79 MiB/s
Filtering content:  67% (104/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  68% (105/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  69% (107/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  70% (108/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  71% (110/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  72% (111/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  73% (113/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  74% (114/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  75% (116/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  75% (117/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  76% (118/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  77% (119/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  78% (121/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  79% (122/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  80% (124/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  81% (125/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  82% (127/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  83% (128/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  84% (130/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  85% (131/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  86% (133/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  87% (134/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  88% (136/154), 17.56 MiB | 7.04 MiB/s
Filtering content:  89% (138/154), 26.64 MiB | 9.00 MiB/s
Filtering content:  90% (139/154), 26.64 MiB | 9.00 MiB/s
Filtering content:  91% (141/154), 26.64 MiB | 9.00 MiB/s
Filtering content:  92% (142/154), 26.64 MiB | 9.00 MiB/s
Filtering content:  93% (144/154), 26.64 MiB | 9.00 MiB/s
Filtering content:  94% (145/154), 26.64 MiB | 9.00 MiB/s
Filtering content:  95% (147/154), 26.64 MiB | 9.00 MiB/s
Filtering content:  96% (148/154), 26.64 MiB | 9.00 MiB/s
Filtering content:  97% (150/154), 26.64 MiB | 9.00 MiB/s
Filtering content:  98% (151/154), 26.64 MiB | 9.00 MiB/s
Filtering content:  99% (153/154), 26.64 MiB | 9.00 MiB/s
Filtering content: 100% (154/154), 26.64 MiB | 9.00 MiB/s
Filtering content: 100% (154/154), 26.75 MiB | 7.55 MiB/s, done.
2023-03-20T09:08:39.930089Z	HEAD is now at 286058b Merge branch 'main' into chore/96/tidy-up-config
2023-03-20T09:08:39.930279Z
2023-03-20T09:08:41.29499Z	Submodule 'umh.docs.umh.app/themes/docsy' (https://github.com/google/docsy) registered for path 'umh.docs.umh.app/themes/docsy'
2023-03-20T09:08:41.295561Z	Cloning into '/opt/buildhome/clone/umh.docs.umh.app/themes/docsy'...
2023-03-20T09:08:41.295743Z	Submodule path 'umh.docs.umh.app/themes/docsy': checked out '5597d435dc74ce68240e0c3871addf24567493b0'
2023-03-20T09:08:41.295876Z
2023-03-20T09:08:41.329012Z	Success: Finished cloning repository files
2023-03-20T09:08:42.046373Z	Installing dependencies
2023-03-20T09:08:42.057192Z	Python version set to 2.7
2023-03-20T09:08:45.712185Z	Downloading and installing node v16.17.0...
2023-03-20T09:08:46.175445Z	Downloading https://nodejs.org/dist/v16.17.0/node-v16.17.0-linux-x64.tar.xz...
2023-03-20T09:08:46.603607Z	Computing checksum with sha256sum
2023-03-20T09:08:46.737452Z	Checksums matched!
2023-03-20T09:08:51.194693Z	Now using node v16.17.0 (npm v8.15.0)
2023-03-20T09:08:51.641313Z	Started restoring cached build plugins
2023-03-20T09:08:51.654931Z	Finished restoring cached build plugins
2023-03-20T09:08:52.201564Z	Attempting ruby version 2.7.1, read from environment
2023-03-20T09:08:55.866452Z	Using ruby version 2.7.1
2023-03-20T09:08:56.220882Z	Using PHP version 5.6
2023-03-20T09:08:56.379142Z	5.2 is already installed.
2023-03-20T09:08:56.408499Z	Using Swift version 5.2
2023-03-20T09:08:56.408836Z	Installing Hugo v0.85.0
2023-03-20T09:08:57.779614Z	hugo v0.85.0-724D5DB5+extended linux/amd64 BuildDate=2021-07-05T10:46:28Z VendorInfo=gohugoio
2023-03-20T09:08:57.784149Z	Started restoring cached go cache
2023-03-20T09:08:57.802839Z	Finished restoring cached go cache
2023-03-20T09:08:57.94685Z	go version go1.14.4 linux/amd64
2023-03-20T09:08:57.962593Z	go version go1.14.4 linux/amd64
2023-03-20T09:08:57.965356Z	Installing missing commands
2023-03-20T09:08:57.965588Z	Verify run directory
2023-03-20T09:08:57.965824Z	Executing user command: git lfs install && git submodule update -f --init --recursive && cd umh.docs.umh.app/themes/docsy && npm install && cd ../.. && npm install postcss-cli autoprefixer && [[ $SKIP_IMAGE_OPTIMIZATION = false ]] && (cd ./static/images && npx --yes avif --overwrite --verbose --input="**/*.{jpg,png}" && cd ../..) || echo "Skipping image optimization" && hugo --gc --minify
2023-03-20T09:08:58.049279Z	Updated git hooks.
2023-03-20T09:08:58.049579Z	Git LFS initialized.
2023-03-20T09:08:58.40529Z	Submodule path 'umh.docs.umh.app/themes/docsy': checked out '5597d435dc74ce68240e0c3871addf24567493b0'
2023-03-20T09:09:03.322483Z	npm WARN deprecated<EMAIL_ADDRESS>You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
2023-03-20T09:09:06.473592Z
2023-03-20T09:09:06.473937Z	added 178 packages, and audited 179 packages in 8s
2023-03-20T09:09:06.474113Z
2023-03-20T09:09:06.474231Z	42 packages are looking for funding
2023-03-20T09:09:06.474354Z	  run `npm fund` for details
2023-03-20T09:09:06.475129Z
2023-03-20T09:09:06.475381Z	found 0 vulnerabilities
2023-03-20T09:09:09.57206Z
2023-03-20T09:09:09.572805Z	added 74 packages, and audited 75 packages in 3s
2023-03-20T09:09:09.573169Z
2023-03-20T09:09:09.57332Z	18 packages are looking for funding
2023-03-20T09:09:09.57368Z	  run `npm fund` for details
2023-03-20T09:09:09.573861Z
2023-03-20T09:09:09.574284Z	found 0 vulnerabilities
2023-03-20T09:09:09.585325Z	Skipping image optimization
2023-03-20T09:09:09.623949Z	Error: Unable to locate config file or config directory. Perhaps you need to create a new site.
2023-03-20T09:09:09.624249Z	       Run `hugo help new` for details.
2023-03-20T09:09:09.624407Z
2023-03-20T09:09:09.624572Z	Total in 1 ms
2023-03-20T09:09:09.631515Z	Failed: build command exited with code: 255
2023-03-20T09:09:10.851416Z	Failed: an internal error occurred

Please update Hugo to latest version in CF

Which version do you want me to set it to? Please also note this:
https://developers.cloudflare.com/pages/platform/known-issues/#build-configuration

It's weird because these lines in the logs says that it's installing Hugo v0.85.0
2023-03-20T09:08:56.408836Z	Installing Hugo v0.85.0
2023-03-20T09:08:57.779614Z	hugo v0.85.0-724D5DB5+extended linux/amd64 BuildDate=2021-07-05T10:46:28Z VendorInfo=gohugoio

Version v0.111.3 should be fine, I don't know why CF is ignoring the env variable and just installing an older version

@JeremyTheocharis I already upgraded it, thats why i reacted to the msg