With pre-releases, pip-compile sometimes adds local version hash, sometimes does not

pip-compile sometimes locks to a version with PEP 440 local version identifier, sometimes doesn't.
Environment Versions

OS Type: linux/KDE Neon (=Ubuntu 18.04 based)
Python version: 3.5.5
pip version:  9.0.1 and 19.0.3
pip-tools version: 3.6.0

Steps to replicate
This happens with package in our company's internal index (devpi), I'm not sure how to reproduce this with a package in PyPI. But maybe someone has similar experiences...
In this example dep is dependency for mypkg. There are 1.0.0 versions of both, but there's also 1.0.1.dev3 version of dep that I would like to test in conjunction.
Prepare:
$ pyenv virtualenv 3.5.5 foobar
...
$ pyenv activate foobar
...

No problem here:
$ rm -rf ~/.cache/pip-tools/
$ echo "\
dep == 1.0.1.dev3\
"  > requirements.in
$ pip-compile --no-header --no-index
dep == 1.0.1.dev3
$ echo "\
dep == 1.0.1.dev3\
mypkg == 1.0.0\
"  > requirements.in
$ pip-compile --no-header --no-index
dep == 1.0.1.dev3
mypkg == 1.0.0

So, dep==1.0.1.dev3 version always when dep is first pinned, and mypkg is added later.
However, here's the problem:
$ rm -rf ~/.cache/pip-tools/
$ echo "\
dep == 1.0.1.dev3\
mypkg == 1.0.0\
"  > requirements.in
$ pip-compile --no-header --no-index
dep == 1.0.1.dev3+gd7cef3b
mypkg == 1.0.0

So, in the failure scenario, dep gets +gd7cef3b local version, when it's in conjunction with mypkg.
Though, it also happens when mypkg is already resolved and when dep is changed to point to pre-release.
$ rm -rf ~/.cache/pip-tools/
$ echo "\
mypkg == 1.0.0\
"  > requirements.in
$ pip-compile --no-header --no-index
dep == 1.0.0
mypkg == 1.0.0
$ echo "\
dep == 1.0.1.dev3\
mypkg == 1.0.0\
"  > requirements.in
$ pip-compile --no-header --no-index
dep == 1.0.1.dev3+gd7cef3b
mypkg == 1.0.0

So it fails always when the mypkg dependency is present.
The local version is removed if I remove mypkg and only directly depend on dep:
$ echo "\
dep == 1.0.1.dev3\
"  > requirements.in
$ pip-compile --no-header --no-index
dep == 1.0.1.dev3

This only happens with pre-releases (as actual releases don't have local identifiers). I don't think global PyPI even accepts local versions.

Hello @tuukkamustonen,
Thank you for the report! Could you upload mypkg and dep on the Test PyPI. I mean not your real packages, but test packages like this one. Could you reproduce the bug on that env?

I will look into it, but I don't have time for that right now. Need to come back to this a bit later.

Still happening in 4.1.0. I really need to check this.

Working on #1114 I've possibly tracked down the issue. pip resolver searches all candidates matched to the version, cut down local version identifier (e.g., "+gd7cef3")  and get maximum from the list of cut versions, that's why the result is so arbitrary.
Suppose you have the following installation candidates for foo=1.0.0:

foo=1.0.0, url=http://index-url/foo-1.0.0.tar.gz
foo=1.0.0+dev, url=file:///tmp/path/to/package
foo=1.0.0+b02632, utl=git@github.com:user/foo.git@02632

pip transforms these candidates to install requirements (see https://github.com/jazzband/pip-tools/issues/1114#issuecomment-617167490 for the traceback):

foo=1.0.0, url=http://index-url/foo-1.0.0.tar.gz
foo=1.0.0, url=file:///tmp/path/to/package
foo=1.0.0, utl=git@github.com:user/foo.git@02632

and then gets a package with a max version, thus the result of max() would be arbitrary due to all candidates have the same version.

It could be a pip bug. I'll try to provide reproducible steps.

Just wanted to update: we recently migrated from devpi to Artifactory and the issue persists. So, I would say it's at least not index-specific.

Could you test it with pip-compile --resolver backtracking?

Unfortunately, I've switched a new employer and don't have the issue producing code/setup at hand anymore 🤷🏻♂
There seems to be little traffic in this ticket, so you might want to close it and wait for someone else to report the same 🤔

I'll close this based on the above. Thanks!


nav pop is called too many times in platform.registerBackButtonAction()

Ionic version:  (check one with "x")
[ ] 1.x
[ x] 2.x
I'm submitting a ...  (check one with "x")
[x ] bug report (possible bug)
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:

On overriding hardware back button , nav pop() inside registerBackButtonAction() is called multiple times.
(check related code). I don't think I am calling nav pop() more than once.

Expected behavior:

nav.pop() to fire once according to the condition's.
Related code:
platform.registerBackButtonAction(() => {
                  let tabNav=this.tabs.getActiveChildNav();
                if(this.nav.canGoBack()){
                  this.nav.pop();
                }else{
                    if(tabNav['_views'].length > 1){
                        this.tabs.viewCtrl['_nav'].pop();
                    }else if(tabNav['_views'].length == 1){
                      platform.exitApp();
                    }
                }
          });

Reason for overriding back button:
because of this issue https://github.com/driftyco/ionic/issues/9827 , I am overriding back button inside popoverpage just to dismiss the popup.
On didDismiss , I override again as in related code.
Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
Your system information:

 ordova CLI: 6.3.1
Ionic Framework Version: 2.0.1
Ionic CLI Version: 2.1.8
Ionic App Lib Version: 2.1.4
Ionic App Scripts Version: 1.1.4
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v4.1.0
Xcode version: Not installed

registerBackButtonAction() does not override the default implementation, it just subscribes to the events.

Oh !  I consider it as overriding because once I register it , hardware back button stops working. If , it was just subscribing then default behaviour of navigation should not break.  Hardware button not working once registering , is it an existing issue ?

@uzumakinaruto123 sorry!! you were right, it does override it. Taking a look


Update Ocean to be based on v6.0.0

Final testing before I do the release.

https://github.com/sociomantic-tsunami/ocean/releases/tag/v6.0.0

Ping ?


Handle cases where INamespaceSymbol is not available for a using directive

Fixes #343

@pdelvo Can you review this?

I think this fixes it.


Add station names to channelInfoList

Taken from:
https://github.com/mediathekview/zapp/blob/master/app/src/main/res/raw/channels.json

Thank you very much for this pull request. This looks reasonable and I'll look into it as soon as I have some spare time (hopefully this month).
Are you planning on consuming the API with another app (which is totally fine - purely out of interest)?

Yes, using it here: https://github.com/jspricke/radio/blob/master/tv#L38

And thanks a lot for providing the API, btw!

@jspricke Your changes are now live! Thanks again for your contribution :)


request to merge updated lupus, letter, and magic datasets

element-wise comparisons with primary sources:
magic: https://colab.research.google.com/drive/1T9P59K3rdZVurnzkmtxvQVGvY_FbpZHG?usp=sharing
lupus: https://colab.research.google.com/drive/1uPDjGP2daFmU5HiZyYHJaY2Q-HhvrQmH?usp=sharing
letter: https://colab.research.google.com/drive/16X2WUmffPApQYVC6oO7ocs76qNP7EUso?usp=sharing

Redirect to #131 so that the update data files action could run (I have set it to not run on a master branch, and the PR is from a forked master branch).


aws-c-cal: 0.5.17 -> 0.5.18

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/aws-c-cal/versions.
meta.description for aws-c-cal is: "AWS Crypto Abstraction Layer "
meta.homepage for aws-c-cal is: "https://github.com/awslabs/aws-c-cal"
meta.changelog for aws-c-cal is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.5.18 with grep in /nix/store/3irhffzx1gwcgwhsd0gs8rg7xwsg3s79-aws-c-cal-0.5.18
found 0.5.18 in filename of file in /nix/store/3irhffzx1gwcgwhsd0gs8rg7xwsg3s79-aws-c-cal-0.5.18

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

278 total rebuild path(s)

278 package rebuild(s)

First fifty rebuilds by attrpath
appvm
arrow-cpp
arrow-glib
aws-c-auth
aws-c-cal
aws-c-event-stream
aws-c-http
aws-c-io
aws-c-mqtt
aws-c-s3
aws-crt-cpp
aws-sdk-cpp
bundix
cabal2nix
cached-nix-shell
cachix
colmena
comma
common-updater-scripts
crate2nix
crystal2nix
dep2nix
dydisnix
fusionInventory
gnome.gnome-packagekit
gnome.gnome-software
gnome.simple-scan
go2nix
haskellPackages.cabal2nix-unstable
haskellPackages.cachix
haskellPackages.hercules-ci-agent
haskellPackages.hercules-ci-cli
haskellPackages.hercules-ci-cnix-expr
haskellPackages.hercules-ci-cnix-store
haskellPackages.nix-paths
haskellPackages.nvfetcher
haskellPackages.update-nix-fetchgit
hci
hercules-ci-agent
home-assistant-component-tests.environment_canada
home-manager
hydra_unstable
intensity-normalization
libnixxml
libsForQt5.discover
libsForQt5.packagekit-qt
libsForQt512.discover
libsForQt512.packagekit-qt
libsForQt514.discover
libsForQt514.packagekit-qt

Instructions to test this update (click to expand)

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

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

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/3irhffzx1gwcgwhsd0gs8rg7xwsg3s79-aws-c-cal-0.5.18
ls -la /nix/store/3irhffzx1gwcgwhsd0gs8rg7xwsg3s79-aws-c-cal-0.5.18/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review took longer than 45m and timed out

Maintainer pings
cc @orivej for testing.

@ofborg eval
@ofborg build


[CLU] enable pyright,verifytypes,samples for type checking

mypy was already enabled.

API change check
API changes are not detected in this pull request.


Pylintify postbuild.py

It's always nicer to have prettier code.
Removed "Quitting early" message, as there's an error message anyway if we are quitting early.

Not fully tested yet on hydra container due to building issues, joinemm/mnokka, please test in your containers if you can.

This is really pretty code!


Cannot resolve module installed in a childmodule or submodule

A. Main project's package.json contains app-services subModule listed in dependencies
dependencies: { "app-services": "^1.0.0" ..... }

B. The sub module "app-services" has a BackboneJS dependency, etc
dependencies: { "backbone": "^1.2.3",,,,, }

C. BackboneJS gets installed in app-services successfully during the build of Main project
D. In Main app's src/index.js, it has the code below on the first line
import Backbone from 'backbone';

E. However during build, webpack is complaining that it cannot resolve the module
ERROR in ./src/index.js
Module not found: Error: Cannot resolve module 'backbone' in /home/devuser/projects/Rekon/src

F. We don't want to add/install backbone in Parent since it's already being installed in app-services submodule. We want to re-use it.

Then you need to use npm dedupe to avoid redundancy.

That means, our dedupe is not working. I first heard this dedupe too yesterday from my teammate. He said using dedupe caused more issues. Does everyone in the team has to run npm dedupe?

I missed your instructions above because I just woke up. :) So how is that alias created? Can you please show an example?

I got it working. All I did was to upgrade node to 5.5.0 and npm to 3.7.1. It's not a webpack issue. It's an npm binary issue specifically! dedupe is working perfectly on this version :)


SqlRetryLogic propogation from SqlConnection to SqlCommand

Currently (AFAIK), creating a new SqlCommand, doesn't copy the SqlRetryLogic configuration from the connection.
Wondering if there is a plan to support this ability?

Thanks for bringing this to our attention.  When you add a SqlRetryLogic in the SqlConnection and creating the SqlCommand using that connection and get the SqlDataReader from it using ExecuteReader and you can see in the source that it does use the retry logic, however, there is another bug logged for .NET Framework when not directly using the ExecuteReader from SqlDataAdapter where it references DbDataAdapter's implementation which lacks the retry logic as noted in this issue https://github.com/dotnet/SqlClient/issues/1591 and https://github.com/dotnet/SqlClient/pull/1606 was created to address it; however, due to the fact that .NET Core did not require this fix required some further investigation which is why the PR is still opened.

Also, could you provide a repro sample to confirm if it's the same issue as mentioned above?


chore: version packages

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
<EMAIL_ADDRESS>Note: Version bump only for package @stacks/auth
<EMAIL_ADDRESS>Note: Version bump only for package @stacks/cli
<EMAIL_ADDRESS>Note: Version bump only for package @stacks/storage
<EMAIL_ADDRESS>Note: Version bump only for package @stacks/wallet-sdk

Codecov Report

Merging #1443 (37ab8fc) into master (0406085) will increase coverage by 0.02%.
The diff coverage is 90.00%.

:exclamation: Current head 37ab8fc differs from pull request most recent head 1b25145. Consider uploading reports for the commit 1b25145 to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##           master    #1443      +/-   ##
==========================================
+ Coverage   63.76%   63.79%   +0.02%
==========================================
  Files         116      116
  Lines        8500     8506       +6
  Branches     1895     1895
==========================================
+ Hits         5420     5426       +6
  Misses       2823     2823
  Partials      257      257

Impacted Files
Coverage Δ

packages/cli/src/argparse.ts
15.16% <0.00%> (ø)

packages/cli/src/cli.ts
22.94% <ø> (ø)

packages/cli/src/keys.ts
60.91% <ø> (ø)

packages/cli/src/utils.ts
33.05% <ø> (ø)

packages/network/src/network.ts
57.29% <ø> (ø)

packages/wallet-sdk/src/triplesec.ts
25.00% <ø> (ø)

packages/auth/src/index.ts
100.00% <100.00%> (ø)

packages/auth/src/messages.ts
83.09% <100.00%> (+0.24%)
:arrow_up:

packages/auth/src/userSession.ts
54.10% <100.00%> (+0.31%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Remix Cloudflare Pages - Your worker called response.clone()

What version of Remix are you using?
Remix 1.16.1 and Wrangler version 3.0.1
Are all your remix dependencies & dev-dependencies using the same version?

[X] Yes

Steps to Reproduce
Setup project using Remix Cloudflare Pages Template
Then upgrade Wrangler package from 2.7.0 to 3.0.1
Expected Behavior
Should not log any warnings to the console
Actual Behavior
When using wrangler (powered by Miniflare and workerd), I get the following warning logged to the console when executing any actions:
Your worker called response.clone(), but did not read the body of both clones.
This is wasteful, as it forces the system to buffer the entire response body in
memory, rather than streaming it through.

This may cause your worker to be unexpectedly terminated for going over
the memory limit. If you only meant to copy the response headers and
metadata (e.g. in order to be able to modify them), use
`new Response(response.body, response)` instead.

Could track it down to this section of the code:
https://github.com/remix-run/remix/blob/880ab96ba02ac1d565028c9c8cbf9d98ca1edeb3/packages/remix-cloudflare-pages/worker.ts#L57-L60
Should be replaced with
response = await context.env.ASSETS.fetch(
 context.request.url,
 new Response(response.body, response)
);

The cause could also be because of the workers-sdk pages-asset-server. https://github.com/cloudflare/workers-sdk/blob/main/packages/pages-shared/asset-server/handler.ts#L340

I realized the suggested workaround above is passing a Response object to ASSETS.fetch(), which feels weird to me. I feel like we should strive to pass a Request object to ASSETS.fetch() instead. I think the Request object would do a better job of preserving important request info like the HTTP method, such as HEAD/GET/OPTIONS, which may affect how ASSETS.fetch() responds?
I've only tested in local wrangler dev mode so far, but the following seems to working for different incoming requests without showing the request.clone() error message:
const isGetOrHead = ['GET', 'HEAD'].includes(
  context.request.method.toUpperCase(),
);

const requestInit: RequestInit = isGetOrHead
  ? {}
  : {
      body: '',
    };

response = await context.env.ASSETS.fetch(
  new Request(context.request, requestInit),
);

Basically I am wrapping the original request with a new request that just has one difference. The original body is overridden with a fake body empty string "". I'm not exactly sure how ASSETS.fetch() handles POST requests and so on but I'm pretty sure it doesn't actually matter what the body is.
As defined in the Request specification:

If either init["body"] exists and is non-null or inputBody is non-null, and request’s method is GET or HEAD, then throw a TypeError.

This approach causes a TypeError when the request is GET or HEAD. So I made sure to check the method type before overriding the body or not.
Still testing it out but wanted to share the snippet in case it could be helpful!


Custom reporter and event handling

I'm writing my own reporter and on failure taking a screenshot and saving to disc. But it seems that the event onEnd doesn't wait for my event onFailure to finish.
The process ends after on end and my screenshots is never saved to disc.
Tried to push my promises in onFailure to an array and in onEnd use Promise.settle but that doesn't work.
Is there any way of running onEnd first after all other events has finished?

+1
I have a similar problem where I am trying to get a reporter to post the results to testrail, but mocha will not wait for callbacks or promises and just kills the reporter when the tests end.

@jaydlawrence  Nice to know there are peeps out there looking to do testrail mocha integration.
Did you guys have any luck with this ?

It does not, I believe it is related to Process event exit.  I was able to successfully fork and do some additional work.

I know Runner#run will invoke end game processing. But the reporter's onEnd handler should have been registered to run prior to the runner's handler.
After your reporter registers your end handler, where does it show up positionally?
runner.listeners('end').forEach(function(func) {
  console.log(func.toString());
});

It can be forced to the front using this method instead of Emitter#on
runner.prependListener('end', onReporterEnd);

@axelssonHakan, @jaydlawrence, @carsonreinke:
Do any of you have code that demonstrates the problem for testing?

Hello there, does any of participants have update in this issue? I'm currently trying to write custom reporter to azure devops for Cypress and facing same issue (async HTTP request call at the end of run isn't proceeded).

This open question has existed for quite a while without a concrete answer. Per #5027 we've moved question-asking to Discord. If you're reading this and interested, please:

Search other issues for what you're trying to do
Ask there or StackOverflow

Cheers!


Integrate newrelic instrumentation with proctor

I want to instrument the code, enable application-level metrics for proctord.
So that,
In the case of buggy behaviour, I can correctly diagnose the root cause of the problem.

Closed by https://github.com/gojektech/proctor/pull/48


Can I get phoneme-level and its confidence score?

Hello everyone, I know Faster-whisper provides the probability for each word. I am search phoneme-level and its confidence score with Faster-whisper but I stuck. If you know how to get it, please let me know.
Thank you so much.

whisper is not phoneme-based, use other programs to convert words to phoneme

whisper is not phoneme-based, use other programs to convert words to phoneme

I not mean this. Your way is convert text to to phoneme. I want to get phoneme  and get its probability with audio. Not with text.

i understand what u mean but no


Add support for 286, AT class hardware

Emulate AT class machines.

This will need to be in a fork or a companion project.


Unavailable library dart:ffi and missing type errors when trying to run on web

This stackexchange post and simolus3/drift#2355 is probably related to this, but I do not know what to do with that info.
Trying to run this small pet project of mine throws the error below.
Steps to Reproduce

Clone https://github.com/chrsrns/habit-tracker-flutter
Run flutter run -d chrome

Error output
output-log.txt
Launching lib/main.dart on Chrome in debug mode...
Warning: In index.html:37: Local variable for "serviceWorkerVersion" is deprecated. Use "{{flutter_service_worker_version}}" template token instead.
Warning: In index.html:46: "FlutterLoader.loadEntrypoint" is deprecated. Use "FlutterLoader.load" instead.
/home/user/.pub-cache/hosted/pub.dev/sqlite3-2.4.2/lib/src/ffi/api.dart:1:8: Error: Dart library 'dart:ffi' is not available on this platform.
import 'dart:ffi';
       ^
Context: The unavailable library 'dart:ffi' is imported through these packages:

    web_entrypoint.dart => package:cohabit => package:sqlite3 => dart:ffi
    web_entrypoint.dart => package:cohabit => package:sqlite3 => package:ffi => dart:ffi

Detailed import paths for (some of) the these imports:

    web_entrypoint.dart => package:cohabit/main.dart => package:cohabit/landing_screen.dart => package:cohabit/home_page.dart => package:cohabit/nav_destinations.dart => package:cohabit/habit_list_page.dart =>
    package:sqlite3/sqlite3.dart => package:sqlite3/src/ffi/api.dart => dart:ffi
    web_entrypoint.dart => package:cohabit/main.dart => package:cohabit/landing_screen.dart => package:cohabit/home_page.dart => package:cohabit/nav_destinations.dart => package:cohabit/habit_list_page.dart =>
    package:sqlite3/sqlite3.dart => package:sqlite3/src/ffi/api.dart => package:sqlite3/open.dart => package:sqlite3/src/ffi/load_library.dart => dart:ffi
    web_entrypoint.dart => package:cohabit/main.dart => package:cohabit/landing_screen.dart => package:cohabit/home_page.dart => package:cohabit/nav_destinations.dart => package:cohabit/habit_list_page.dart =>
    package:sqlite3/sqlite3.dart => package:sqlite3/src/ffi/api.dart => package:sqlite3/open.dart => dart:ffi
    web_entrypoint.dart => package:cohabit/main.dart => package:cohabit/landing_screen.dart => package:cohabit/home_page.dart => package:cohabit/nav_destinations.dart => package:cohabit/habit_list_page.dart =>
    package:sqlite3/sqlite3.dart => package:sqlite3/src/ffi/api.dart => package:sqlite3/src/ffi/implementation.dart => dart:ffi
    web_entrypoint.dart => package:cohabit/main.dart => package:cohabit/landing_screen.dart => package:cohabit/home_page.dart => package:cohabit/nav_destinations.dart => package:cohabit/habit_list_page.dart =>
    package:sqlite3/sqlite3.dart => package:sqlite3/src/ffi/api.dart => package:sqlite3/src/ffi/implementation.dart => package:sqlite3/src/ffi/bindings.dart => dart:ffi
    web_entrypoint.dart => package:cohabit/main.dart => package:cohabit/landing_screen.dart => package:cohabit/home_page.dart => package:cohabit/nav_destinations.dart => package:cohabit/habit_list_page.dart =>
    package:sqlite3/sqlite3.dart => package:sqlite3/src/ffi/api.dart => package:sqlite3/src/ffi/implementation.dart => package:sqlite3/src/ffi/bindings.dart => package:sqlite3/src/ffi/memory.dart => dart:ffi
    web_entrypoint.dart => package:cohabit/main.dart => package:cohabit/landing_screen.dart => package:cohabit/home_page.dart => package:cohabit/nav_destinations.dart => package:cohabit/habit_list_page.dart =>
    package:sqlite3/sqlite3.dart => package:sqlite3/src/ffi/api.dart => package:sqlite3/src/ffi/implementation.dart => package:sqlite3/src/ffi/bindings.dart => package:sqlite3/src/ffi/memory.dart => package:ffi/ffi.dart =>
    package:ffi/src/allocation.dart => dart:ffi
    web_entrypoint.dart => package:cohabit/main.dart => package:cohabit/landing_screen.dart => package:cohabit/home_page.dart => package:cohabit/nav_destinations.dart => package:cohabit/habit_list_page.dart =>
    package:sqlite3/sqlite3.dart => package:sqlite3/src/ffi/api.dart => package:sqlite3/src/ffi/implementation.dart => package:sqlite3/src/ffi/bindings.dart => package:sqlite3/src/ffi/memory.dart => package:ffi/ffi.dart =>
    package:ffi/src/arena.dart => dart:ffi
    web_entrypoint.dart => package:cohabit/main.dart => package:cohabit/landing_screen.dart => package:cohabit/home_page.dart => package:cohabit/nav_destinations.dart => package:cohabit/habit_list_page.dart =>
    package:sqlite3/sqlite3.dart => package:sqlite3/src/ffi/api.dart => package:sqlite3/src/ffi/implementation.dart => package:sqlite3/src/ffi/bindings.dart => package:sqlite3/src/ffi/memory.dart => package:ffi/ffi.dart =>
    package:ffi/src/utf8.dart => dart:ffi
    web_entrypoint.dart => package:cohabit/main.dart => package:cohabit/landing_screen.dart => package:cohabit/home_page.dart => package:cohabit/nav_destinations.dart => package:cohabit/habit_list_page.dart =>
    package:sqlite3/sqlite3.dart => package:sqlite3/src/ffi/api.dart => package:sqlite3/src/ffi/implementation.dart => package:sqlite3/src/ffi/bindings.dart => package:sqlite3/src/ffi/memory.dart => package:ffi/ffi.dart =>
    package:ffi/src/utf16.dart => dart:ffi
    web_entrypoint.dart => package:cohabit/main.dart => package:cohabit/landing_screen.dart => package:cohabit/home_page.dart => package:cohabit/nav_destinations.dart => package:cohabit/habit_list_page.dart =>
    package:sqlite3/sqlite3.dart => package:sqlite3/src/ffi/api.dart => package:sqlite3/src/ffi/implementation.dart => package:sqlite3/src/ffi/bindings.dart => package:sqlite3/src/ffi/memory.dart => package:sqlite3/src/ffi/sqlite3.g.dart
    => dart:ffi
    web_entrypoint.dart => package:cohabit/main.dart => package:cohabit/landing_screen.dart => package:cohabit/home_page.dart => package:cohabit/nav_destinations.dart => package:cohabit/habit_list_page.dart =>
    package:sqlite3/sqlite3.dart => package:sqlite3/src/ffi/api.dart => package:sqlite3/src/ffi/implementation.dart => package:sqlite3/src/ffi/bindings.dart => package:sqlite3/src/ffi/sqlite3.g.dart => dart:ffi
    web_entrypoint.dart => package:cohabit/main.dart => package:cohabit/landing_screen.dart => package:cohabit/home_page.dart => package:cohabit/nav_destinations.dart => package:cohabit/habit_list_page.dart =>
    package:sqlite3/sqlite3.dart => package:sqlite3/src/ffi/api.dart => package:sqlite3/src/ffi/implementation.dart => package:sqlite3/src/ffi/memory.dart => dart:ffi
    web_entrypoint.dart => package:cohabit/main.dart => package:cohabit/landing_screen.dart => package:cohabit/home_page.dart => package:cohabit/nav_destinations.dart => package:cohabit/habit_list_page.dart =>
    package:sqlite3/sqlite3.dart => package:sqlite3/src/ffi/api.dart => package:sqlite3/src/ffi/implementation.dart => package:sqlite3/src/ffi/memory.dart => package:ffi/ffi.dart => package:ffi/src/allocation.dart => dart:ffi
    web_entrypoint.dart => package:cohabit/main.dart => package:cohabit/landing_screen.dart => package:cohabit/home_page.dart => package:cohabit/nav_destinations.dart => package:cohabit/habit_list_page.dart =>
    package:sqlite3/sqlite3.dart => package:sqlite3/src/ffi/api.dart => package:sqlite3/src/ffi/implementation.dart => package:sqlite3/src/ffi/memory.dart => package:ffi/ffi.dart => package:ffi/src/arena.dart => dart:ffi
    web_entrypoint.dart => package:cohabit/main.dart => package:cohabit/landing_screen.dart => package:cohabit/home_page.dart => package:cohabit/nav_destinations.dart => package:cohabit/habit_list_page.dart =>
    package:sqlite3/sqlite3.dart => package:sqlite3/src/ffi/api.dart => package:sqlite3/src/ffi/implementation.dart => package:sqlite3/src/ffi/memory.dart => package:ffi/ffi.dart => package:ffi/src/utf8.dart => dart:ffi
    web_entrypoint.dart => package:cohabit/main.dart => package:cohabit/landing_screen.dart => package:cohabit/home_page.dart => package:cohabit/nav_destinations.dart => package:cohabit/habit_list_page.dart =>
    package:sqlite3/sqlite3.dart => package:sqlite3/src/ffi/api.dart => package:sqlite3/src/ffi/implementation.dart => package:sqlite3/src/ffi/memory.dart => package:ffi/ffi.dart => package:ffi/src/utf16.dart => dart:ffi
    web_entrypoint.dart => package:cohabit/main.dart => package:cohabit/landing_screen.dart => package:cohabit/home_page.dart => package:cohabit/nav_destinations.dart => package:cohabit/habit_list_page.dart =>
    package:sqlite3/sqlite3.dart => package:sqlite3/src/ffi/api.dart => package:sqlite3/src/ffi/implementation.dart => package:sqlite3/src/ffi/memory.dart => package:sqlite3/src/ffi/sqlite3.g.dart => dart:ffi
    web_entrypoint.dart => package:cohabit/main.dart => package:cohabit/landing_screen.dart => package:cohabit/home_page.dart => package:cohabit/nav_destinations.dart => package:cohabit/habit_list_page.dart =>
    package:sqlite3/sqlite3.dart => package:sqlite3/src/ffi/api.dart => package:sqlite3/src/ffi/implementation.dart => package:sqlite3/src/ffi/sqlite3.g.dart => dart:ffi

/home/user/.pub-cache/hosted/pub.dev/sqlite3-2.4.2/lib/open.dart:5:8: Error: Dart library 'dart:ffi' is not available on this platform.
import 'dart:ffi';
       ^
/home/user/.pub-cache/hosted/pub.dev/sqlite3-2.4.2/lib/src/ffi/implementation.dart:1:8: Error: Dart library 'dart:ffi' is not available on this platform.
import 'dart:ffi';
       ^
/home/user/.pub-cache/hosted/pub.dev/sqlite3-2.4.2/lib/src/ffi/load_library.dart:1:8: Error: Dart library 'dart:ffi' is not available on this platform.
import 'dart:ffi';
       ^
/home/user/.pub-cache/hosted/pub.dev/sqlite3-2.4.2/lib/src/ffi/bindings.dart:3:8: Error: Dart library 'dart:ffi' is not available on this platform.
import 'dart:ffi';
       ^
/home/user/.pub-cache/hosted/pub.dev/sqlite3-2.4.2/lib/src/ffi/memory.dart:2:8: Error: Dart library 'dart:ffi' is not available on this platform.
import 'dart:ffi';
       ^
/home/user/.pub-cache/hosted/pub.dev/sqlite3-2.4.2/lib/src/ffi/sqlite3.g.dart:5:8: Error: Dart library 'dart:ffi' is not available on this platform.
import 'dart:ffi' as ffi;
       ^
/home/user/.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/allocation.dart:5:8: Error: Dart library 'dart:ffi' is not available on this platform.
import 'dart:ffi';
       ^
/home/user/.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/arena.dart:8:8: Error: Dart library 'dart:ffi' is not available on this platform.
import 'dart:ffi';
       ^
...
...
...
/home/user/.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:95:11: Error: 'Pointer' isn't a type.
    final Pointer<Uint16> result = allocator<Uint16>(units.length + 1);
          ^^^^^^^
/home/user/.pub-cache/hosted/pub.dev/ffi-2.1.2/lib/src/utf16.dart:95:46: Error: 'Uint16' isn't a type.
    final Pointer<Uint16> result = allocator<Uint16>(units.length + 1);
                                             ^^^^^^
Unhandled exception:
Unsupported operation: Unsupported invalid type InvalidType(<invalid>) (InvalidType). Encountered while compiling file:///home/user/.pub-cache/hosted/pub.dev/sqlite3-2.4.2/lib/src/ffi/implementation.dart, which contains the type:
FunctionType(FfiSqlite3 Function(<invalid>)).
#0      ProgramCompiler._typeCompilationError (package:dev_compiler/src/kernel/compiler.dart:3236)
#1      ProgramCompiler._emitType (package:dev_compiler/src/kernel/compiler.dart:3197)
#2      ProgramCompiler._emitClassSignature (package:dev_compiler/src/kernel/compiler.dart:1570)
#3      ProgramCompiler._emitClassDeclaration (package:dev_compiler/src/kernel/compiler.dart:962)
#4      ProgramCompiler._emitClass (package:dev_compiler/src/kernel/compiler.dart:819)
#5      List.forEach (dart:core-patch/growable_array.dart:416)
#6      ProgramCompiler._emitLibrary (package:dev_compiler/src/kernel/compiler.dart:757)
#7      List.forEach (dart:core-patch/growable_array.dart:416)
#8      ProgramCompiler.emitModule (package:dev_compiler/src/kernel/compiler.dart:486)
#9      IncrementalJavaScriptBundler.compile (package:frontend_server/src/javascript_bundle.dart:223)
#10     FrontendCompiler.writeJavaScriptBundle (package:frontend_server/frontend_server.dart:801)
<asynchronous suspension>
#11     FrontendCompiler.compile (package:frontend_server/frontend_server.dart:661)
<asynchronous suspension>
#12     listenAndCompile.<anonymous closure> (package:frontend_server/frontend_server.dart:1311)
<asynchronous suspension>
the Dart compiler exited unexpectedly.
Waiting for connection from debug service on Chrome...             12.9s
Failed to compile application.

The core package:sqlite3/sqlite3.dart import doesn't work on the web, and never will as it depends on dart:ffi. Getting sqlite3 to run on the web is pretty complex due to varying browser support, and none of that is implemented in the core sqlite3 package. I strongly suggest using a wrapper like drift or sqflite (with sqflite_common_ffi_web for the web) which takes care of this for you.
You can work around this problem by replacing most of your package:sqlite3/sqlite3.dart imports with package:sqlite3/common.dart, Database with CommonDatabase and so on. Then the only remaining challenge is how you open sqlite3 databases on the web, for which this section of the readme provides some ideas.

I see. I get it now. It seems I accidentally imported package:sqlite3/sqlite3.dart somewhere in the code. Sorry for the noise and thank you for the time.


java: Fixed documentation generation for Java

Signed-off-by: Mircea Bardac<EMAIL_ADDRESS>

Merged with 2db72217d52ccacc385c7996198c194fb8642afb. please make sure to use unix line endings in your files.


Fix asset paths when baseURL has sub-folder

Hi @budparr,
https://themes.gohugo.io/theme/gohugo-theme-ananke/, a case where baseURL contains sub-folder, is not rendering correctly.  It appears that absURL behaves differently when the path is prefixed with a / slash.  The fix is to simply remove that leading slash.
The documentation at https://gohugo.io/functions/absurl/ does not seem to mention this fact explicitly.  Maybe we should fix the hugoDocs too.
See also #97
Thanks!

Thank you, @anthonyfok I'll try to go through this tonight. I've been totally swamped this week.

You are very welcome @budparr!  No hurries, nothing urgent, whenever you have time.
On second thought, relURL would work just as well absURL, and would make the generated HTML files slightly smaller, but that is entirely your preference, of course.  :-)

I typically use relURL. Not sure why I would have done differently here.

I typically use relURL. Not sure why I would have done differently here.

It might be due to @anddongyangli's suggestion in #97 where he said: "We might want to set absolute URLs for these assets based on the configured baseURL".
I have changed the absURL to relURL and pushed a new commit to this pull request for your convenience.  :-)  No rush, whenever you have free time.  Cheers!

Actually, forget my "ping" for now, especially if you are busy.
Now I am suspecting that Hugo's absURL is buggy because its current behaviour differs from that in Hugo 0.14.  In the current release, relURL is fine with a leading slash, but absURL is not, and that is inconsistent.  Hmm...  Need more investigation.

Thank you @anthonyfok I'm actually fine with the change, I just haven't had time to run it myself, which I try to do. But I'm going to merge this since that's broken. Thanks for keeping on me about this.


[MM-50460] - Long distance from the right

Summary
Unclickable area in empty post textbox
Fixes https://github.com/mattermost/mattermost-server/issues/22393
Demo video
https://www.loom.com/share/e44d9047b48e4230827b28bf3134e6fd
Release note
Fixes unclickable area in empty post textbox

This code was written and reviewed by GitStart Community. Growing future engineers, one PR at a time.

Hello @gitstart,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

E2E tests not automatically triggered, because PR has no approval yet. Please ask a developer to review and then try again to attach the QA label.

Hey there!, Thank you for your PR.
Webapp is now part of mattermost monorepo now at https://github.com/mattermost/mattermost-server/tree/master/webapp Would you be interested in opening the PR over there?

The web app now lives in the webapp/channels over in https://github.com/mattermost/mattermost-server. We decided to move it to be a monorepo to make both development and our CI pipelines easier, but it's unfortunately disruptive right now. We've updated our setup docs and added some steps for migrating to working with the monorepo.
Copying the changes over there hopefully shouldn't be too hard. There's a few changes to file paths (such as the code living in a dedicated src subdirectory), but most things should look the same as they do now.
Let us know if you could use any help with this. Hopefully the process is smooth.

@hmhealey the PR has been moved to a monorepo. https://github.com/mattermost/mattermost-server/pull/22722 cc @M-ZubairAhmed


go-torch can't run flamegraph.pl on windows

Hello!
I have this error on Windows
>  go-torch.exe /u http://localhost:6060
INFO[21:43:35] Run pprof command: go tool pprof -raw -seconds 30 http://localhost:6060/debug/pprof/profile
FATAL[21:44:05] Failed: could not generate flame graph: fork/exec D:\src\github\FlameGraph\flamegraph.pl: %1 is not a valid Win32 application.

perl.exe and flamegraph.pl were added in PATH
If this line
https://github.com/uber/go-torch/blob/master/renderer/flamegraph.go#L76
is replaced by
return runScript("perl", append([]string{flameGraph}, args...), graphInput)

so everything works correctly.

Someone should probably submit a PR with:

import "runtime"

if runtime.GOOS == "windows" {
	return runScript("perl", append([]string{flameGraph}, args...), graphInput)
}

return runScript(flameGraph, args, graphInput)

可以请问下这是为什么吗？


How to get RGB color at sampled 3D points

Hi Alex,
I am wondering how to extract RGB colors at sampled 3D points from a trained ckpt.npz. I tried to compute the 3D points as a pts = torch.Tensor of size (N, 3) and call grid.sample(pts), and it returns me sample_sigmas and samples_rgb. But the returned samples_rgb has a shape of (N, 27), I am assuming this is the Spherical Harmonics coefficients at the given samples? I am wondering how to extract RGB colors from the predicted SH then?
Or I am doing it the wrong way, is there another way to achieve this?
Thank you very much for your answer!
Best regards,
Mengkun

Yes, these should be the spherical harmonic coefficients. To decode them into RGB you'll need to choose a view direction and evaluate the spherical harmonics of degree 2 (https://github.com/sxyu/svox2/blob/master/svox2/utils.py#L115), which will give you 9 basis values. Now for each color channel you have 9 coefficients (totaling the 27 numbers in each row of samples_rgb) and 9 basis values (from evaluating the spherical harmonics with your view direction), and their dot product gives you the corresponding color value (RGB). You can see an example of this here: https://github.com/sxyu/svox2/blob/master/svox2/svox2.py#L776 (in the gradcheck version of the code).

Yes, these should be the spherical harmonic coefficients. To decode them into RGB you'll need to choose a view direction and evaluate the spherical harmonics of degree 2 (https://github.com/sxyu/svox2/blob/master/svox2/utils.py#L115), which will give you 9 basis values. Now for each color channel you have 9 coefficients (totaling the 27 numbers in each row of samples_rgb) and 9 basis values (from evaluating the spherical harmonics with your view direction), and their dot product gives you the corresponding color value (RGB). You can see an example of this here: https://github.com/sxyu/svox2/blob/master/svox2/svox2.py#L776 (in the gradcheck version of the code).

Thank you very much Sara!

@sarafridov Hi, I want to raise a question about decoding RGB part. I am not so sure about choosing a view direction part for calculating 9 basis values. Is it correct to get the view direction array from rays_d of get_batchified_rays function? After training plenoxel model, I found out that number of nonzero sh_coefficients are way smaller than the number of view direction for an image. In this case, should we just randomly sample the view direction and insert into eval_sh_base function?

Yes, the view direction is just the normalized ray direction (you can see an example here: https://github.com/sxyu/svox2/blob/master/svox2/svox2.py#L663).
I'm not sure what you mean by "the number of nonzero sh_coefficients" or "the number of view directions for an image" -- the sh coefficients are associated to each voxel, and the view directions are associated to each ray. Each ray passes through many voxels, and each image has many rays (one per pixel). All the voxels along a ray should use the same view direction matching the ray.

@sarafridov Thank you for the kind explanation! Well understood.
 # [B', 3, n_sh_coeffs]
            rgb_sh = rgb.reshape(-1, 3, self.basis_dim)
            rgb = torch.clamp_min(
                torch.sum(sh_mult.unsqueeze(-2) * rgb_sh, dim=-1) + 0.5,
                0.0,
            )  # [B', 3]

The part troubles me the most is this part of code. When I load the sh coefficients from pretrained model, and reshape into  (B, 3, 9), this B value does not match with the input resolution H*W of each image, which is also the number of rays in each image as you mention in the reply. How should I assign each voxel containing 27 sh coefficients to each view direction (ray) of the image?
Thank you for the kind reply!

I'm not sure exactly what you are doing, but if you are directly loading the pretrained sh coefficients then there should be one set of coefficients for each occupied voxel (not per pixel). Then to render an image you need to compute the corresponding rays (one ray per pixel), and evaluate the model (ie do the interpolation) at each 3D sample along each ray. This evaluation will produce one set of (interpolated) sh coefficients per ray sample, which you can then composite along the ray to get a color. This should be done automatically in the code if you reload a saved model in place of the initialized model.

@sarafridov Thanks for your feedback. What I am trying to do is extracting a 3D RGB voxel representations, not 2D RGB images. Since 3D voxels need to be demonstrated in all given directions, I am unsure of how to input view directions from all poses to eval_sh_base function and obtain sh bases that match the number of voxels.
Thanks for your kind reply again. Hope you have a good day!

Oh I see, if you want a 3D RGB grid then you will not be able to handle view-dependent color. But in that case you can just pick a random direction and use the same direction everywhere to evaluate the SH into RGB.
Another thing to be aware of if you want a 3D RGB grid is that our data structure is a sparse grid rather than directly a dense 3D grid, so depending what you want you might need to do some postprocessing to get out a dense grid.

@sarafridov Thank you for the explanation. Sorry to bother you again, but I want to ask one more question.
Let's say I select input direction from one pose and input image resolution is M by N. The number of view direction for that pose would be MxN rays. Also, we set number of voxels as K voxels. When I try to decode RGB, MxN does not equal to K.
There might be voxels that rays go through, while there are also voxels that rays do not fall onto. I want to ask if the below code tries to mask out 3D points that rays do not fall onto, especially sh_mult = sh_mult[mask]. I found out that out_rgb is shape (B, ..) and rgb_sh further below is in shape (B', ..).
Thanks for your kind reply!
        gsz = self._grid_size()
        gsz_cu = gsz.to(device=dirs.device)
        t1 = (-0.5 - origins) * invdirs
        t2 = (gsz_cu - 0.5 - origins) * invdirs

       ...

        origins_ini = origins
        dirs_ini = dirs

        mask = t <= tmax
        good_indices = good_indices[mask]
        origins = origins[mask]
        dirs = dirs[mask]

        #  invdirs = invdirs[mask]
        del invdirs
        t = t[mask]
        sh_mult = sh_mult[mask]
        tmax = tmax[mask]

There's no reason to expect MxN to equal K. Each ray will pass through multiple voxels, some voxels may have multiple rays pass through them, and some voxels may not be touched by a ray. Rather, each ray has many 3D sample points along it, and each of these sample points takes a value from interpolating the neighboring voxels.
As for the code snippet, it was written by my coauthor Alex, but I believe what he's doing is just masking out any samples that fall too far from the camera, along each ray.

@sarafridov Thanks for your explanation!
May I ask one more question?
def sample(self, points: torch.Tensor,
               use_kernel: bool = True,
               grid_coords: bool = False,
               want_colors: bool = True):
        """
        Grid sampling with trilinear interpolation.
        Behaves like torch.nn.functional.grid_sample
        with padding mode border and align_corners=False (better for multi-resolution).
        Any voxel with link < 0 (empty) is considered to have 0 values in all channels
        prior to interpolating.
        :param points: torch.Tensor, (N, 3)
        :param use_kernel: bool, if false uses pure PyTorch version even if on CUDA.
        :param grid_coords: bool, if true then uses grid coordinates ([-0.5, reso[i]-0.5 ] in each dimension);
                                  more numerically exact for resampling
        :param want_colors: bool, if true (default) returns density and colors,
                            else returns density and a dummy tensor to be ignored
                            (much faster)
        :return: (density, color)
        """

What does this sparse_grid.sample function do? I saw that this function is not used during training process? Does this function used for decoding RGB color from sampled 3D points? Is the return value RGB color mean sh_coefficients?
Thank you for the efforts.

Again, the code was written by my coauthor, but my guess would be that the function is used in grid upsampling, where we increase the grid resolution during training. If the function doesn't take a view direction as input, then it is probably returning "color" as interpolated SH coefficients rather than RGB.

Hi I have been playing with this paper also. I am wondering whether for a given sample S_R ray R (so many samples per R), the interpolation of the S_R is actually the SH of the rays from the camera to the neighboring voxels, multiplied by the interpolation coefficients, OR whether it is the direction of R, used in the SH of the neighboring voxels, multiplied by the interpolation coefficients.

We interpolate the SH coefficients from the neighboring voxels, then evaluate at the current ray direction to get RGB color.

Hi Sara, thanks for answering so fast! I think I understand, but just to make sure, in mathematical notation.
Imagine you have a point p = R(t) being a sampling of ray R, and p is inside some cube where the vertices are v1, ..., v8, for simplicity assume that we have only one spherical harmonic or one color, so we only have {S} as a vector space (1-dim instead of 27-dim).
Do you say to use the orientation of R in all of the vertices v1, ..., v8 for the computation of the value of the pixel using S, or some rays R1, ... R8, which would correspond to the rays going from the same camera as R, but going to the pixels v1, ... , v8, i.e. that there would be t1, ..., t8 such that R1(t1) = v1, ..., R8(t8) = v8.
So if a1, ..., a8 are the interpolation coefficients, is the result of a render :
color = a1 * SH(R) + ... + a8 * SH(R)    (case 1)
or
color = a1 * SH(R1) + ... + a8 * SH(R8)    (case 2)
In second case it seems we would need to calculate the values of the sphericals 8 times instead of 1, but also might be more precise? I apologize for not being more precise first time I asked the question. Thank you for your time.

Let $a_i$ be the interpolation coefficient for neighbor $i$ (as in your notation), and let $v_i$ be the SH coefficient stored at neighbor $i$.
I think what we do is equivalent to your case 1; we do:
$v = a_1 v_1 + ... + a_8 v_8$ [trilinear interpolation]
$RGB = v \cdot SH(R)$ [evaluate SH and apply coefficients]
We interpolate the SH coefficients themselves, then evaluate them into color once, after interpolation.

Thanks!


Is there any Live Editor available?

Hi all,
Thanks for your awesome job on live-tour-lab !
Do you know if a live editor exist for this project?
Thanks !

Just see that in the README: https://github.com/SpectivOfficial/live-tour-lab/blame/master/README.md#L278


WIP: Approach for resolving #6232

Will need review from @dstufft and @woodruffw
If they approve... needs tests/etc
Fixes #6232.

@dstufft do you have a preference for which approach to take here?

Offered another approach based on feedback from @dstufft, though I'm still feeling really icky about how much we're having to bubble through.

This item is a beta blocker https://github.com/pypa/warehouse/milestone/17 so it'd be nice to address this month so we can send out a pypi-announce email around Halloween (security is spooky!).

I would like to wrap up the beta of the API token feature and email out an announcement to get more people using the feature. Thus: @ewdurbin could you please rebase this, and then @dstufft could you review it, so we can finish getting this merged and then get more people uploading with API tokens?
Thanks.


I don't understand why my champion image is error?

I did all the steps according to the correct procedure, but when it was time to ban pick champion, the system displayed the champion image is error.
How can i fix it?

Hi 👋🏼 ,
I'm not sure what could be causing this issue. Please consult the ban-picks project for that as they maintain the overlay.


mitmproxy 8.0.0 cannot read files with flow format version 18

Flow file corrupted: mitmproxy 8.0.0 cannot read files with flow format version 18, please update mitmproxy.
Done!

As the error message says - please use the latest release.


fileType gets added on to the end of the URL when attempting to load track

Our audio files are stored on Amazon S3 where their name is a random set of characters without an extension.  This library is adding on the audio type file extension (e.g. '.mp3' ) to the URL of the audio file.  This is causing S3 to return a 403 as that file with the extension does not exist.  This should only be adding on an extension or simply playing the track in that format after it has been retrieved to avoid situations like this where the library can not even download the file.

After further testing this seems to always be adding ".mp3" to the source regardless of the Mixer options or detect object (I've set it to only detect m4a).

hey Jason,
for a quick monkey patch, comment out this line: https://github.com/heliosdesign/helios-audio-mixer/blob/master/helios-audio-mixer.js#L491
we should probably take the detecting-what-file-types-your-browser-can-play functionality out of this library entirely; it'd be better as a separate module. next version 😄

Thanks, I got it working by commenting out those lines.

this is addressed in the 1.0 development build, we no longer make any assumptions about file names.


luminati-proxy v1.113.585 Data center IP Lost

hi！
Since I updated it last time, I will ask all of them.luminati-proxy Why after the version upgrade“,Data center IP” Features Lost?
thank you

Hi!
It seems that you opened this issue in the wrong repository.


Remove Cesium3DTilesStyle ready, readyPromise, and constructor option in 1.96

https://github.com/CesiumGS/cesium/pull/10348 deprecated Cesium3DTilesStyle.ready, Cesium3DTilesStyle.readyPromise, and Resource or string parameters for the Cesium3DTilesStyle constructor.

@ggetz it seems like this issue is still open even though 1.96 was released?


Better startup documentation

Based on our first user to try and install MCM in a novel context, we need better documentation for how to startup that process. Typical GitHub users are developers and can be assumed to know the basics of installing packages and working within python. However, our users will hopefully include some (many?) people that have extensive stats package experience and some coding experience, but may not be fluent with packages and the command line.
So, we should write a super simple script for how you could install everything that you'd ever need to run and work with MCM on a clean machine for that audience.

I do not know if this thought is related to your issue....if we can come up with a notebook that can be run on google colab, then users will be able to run microsim without any modifications to their own personal computer....


Resolve as Factory method

Proposal :
Allow passing factory-function to resolve-property
Expectation:
MyStateConfig.js
 $stateProvider
        .state('app.home', {
            parent: 'app',
            params: {
              a:"", b:"",c:"",d:"", e:""
            },
            url: '/home',
            component: 'aaHome',
            resolve: ['$stateParams', ($stateParams)=>$stateParams]  //here we return object e.g {a:"21", b:"32",...}
        }
       });

MyComponent.js
{
    bindings: {
        a: '@',
        b: '@',
        c: '@',
        d: '@',
        e: '@'
    },
    template
}

Reality
 $stateProvider
        .state('app.home', {
            parent: 'app',
            params: {
              a:"", b:"",c:"",d:"", e:""
            },
            url: '/home',
            component: 'aaHome',
            resolve: {
                  a: ['$stateParams', ($stateParams)=>$stateParams.a] ,
                  b: ['$stateParams', ($stateParams)=>$stateParams.b] ,
                  c: ['$stateParams', ($stateParams)=>$stateParams.c] ,
                  d: ['$stateParams', ($stateParams)=>$stateParams.d] ,
                  e: ['$stateParams', ($stateParams)=>$stateParams.e]
//a lot boilerplate code here
            }
        }
       });

I think some simple helper functions can help reduce the boilerplate a lot.  For instance, if you regularly use this pattern of exposing the parameters as resolves, you can write a helper to build the resolve: block for you, such as:
// Makes one resolve from one param name
const param2resolve = param => ({
  token: param,
  useFactory: ($transition$) =>
      $transition$.params()[param],
  deps: ['$transition$']
});

// Makes an array of resolves from an array of param names
const params2resolve = (...paramNames) =>
    paramNames.reduce((acc, paramName) => acc.concat(param2resolve(paramName)), []);

 ...
 resolve: params2resolve('a', 'b', 'c', 'd', 'e')
 ...

http://plnkr.co/edit/hXTUZb5F8ik5vMZvTLPT?p=preview

yeah, I solved my issue this way, but what if I need some date from server? As I understand correctly ui-router - it is a feature that provide routing to any component/view, so why should I adapt my view to router and not vice versa?

so why should I adapt my view to router and not vice versa

I do not understand... I think we adjusted the resolve to match what the view inputs.  How do you mean you adapt your view because of the router?

Alternatively, here's a hook you can use to implement the behavior you requested originally:
app.run(($injector, $transitions) => {
  const resolveFactoryHook = (trans, state) => {
    let locals = { $transition$: trans, $state$: state }
    // inject the state definition's `resolveFactory`
    let newResolves = $injector.invoke(state.resolveFactory, null, locals);

    Object.keys(newResolves)
        .map(key => new Resolvable({ token: key, resolveFn: () => newResolves[key], data: newResolves[key] }))
        .forEach(resolvable => trans.addResolvable(resolvable, state));
  }

  // only invoke the hook when the state being entered has a `resolveFactory`
  let criteria = { entering: (state) => !!state.resolveFactory };
  $transitions.onEnter(criteria, resolveFactoryHook);
})

To use this hook, put resolveFactory: on your state instead of resolve:
http://plnkr.co/edit/Bj6DFOOyB52dTYgaDKWH?p=preview


Modify TimeSlicedOutput#emit mechanizm to fit BufferedOutput#emit way

Current TimeSlicedOutput#emit emits records to buffer one by one.
It causes inconsistent state when queue has a problem.
For example, some records are stored into buffers and
raises BufferQueueLimitError. In this situation,
logs are duplicated if input plugin retries.
BufferedOutput and ObjectBufferedOutput uses another way.
These outputs format all records into data chunk first.
New behaviour is more safer than current TimeSlicedOutput way.
@sonots @tagomoris Could you check this patch? It increases temporary memory usage but current behaviour should be fixed.

LGTM, except for failing tests :D

If there is no concern, I will merge this today.


Srf#createB2BUA with ws/wss endpoints

Hi Dave,
I can't seem to connect 2 ws/wss endpoints together. I keep getting 503 error. Both my UA were able to register fine. Can send invite fine but the createB2BUA errors out. My feeling is I'm not correctly giving it the correct uri parameter. I can get this to work with a non ws.
I have tried using these for the uri
sip:user@serverip;transport=ws
sip:user@serverip;transport=wss
sip:5u3qdt9g@rcrfaf1aghbt.invalid;transport=ws
sip:5u3qdt9g@rcrfaf1aghbt.invalid;transport=wss
sip:<receiver>:<rport>; transport=ws
sip:<receiver>:<rport>; transport=wss
Thanks in advance

I will look into it.  So basically the scenario is two endpoints each register over wss (or ws) and then one calls the other?

Found more stuff might be useful or interesting
If you register one UA and you call your self it works.
Alink to the websocket sip spec https://tools.ietf.org/id/draft-ietf-sipcore-sip-websocket-01.html#implementation_guidelines_client that might explain browser vendors implementation for the weird looking uri on the webrtc stack

Hmm, I am testing on my own server and using https://github.com/davehorton/simple-drachtio-registrar and I am able to connect, register, and then place a call between the two.
Can you verify my results so I can understand the difference between our setups?  You can use wss://tighthead.drachtio.org:4433 as the server, and these two sets of credentials:
name: John Doe
sip uri<EMAIL_ADDRESS>auth username: user1
password: pass123

name: Jane Doe
sip uri<EMAIL_ADDRESS>auth username: user2
password: pass123

👍 Yeah I can confirm your server is working!!

Hi Dave I got it!! I got a fix. Its a race. I just need to give some time for drachtio server to process things. Just to give you some context of what I'm doing. Its a mobile to mobile app.

UA1 calling UA2
UA1 sends an invite to drachtio/node then i simulate a pause of execution using setTimeout and an eventEmitter
drachtio/node then sends a voip push through apn/gcm to UA2
voip push wakes up UA2 device and do register
that register emits a signal that resumes UA1 invite execution

I just put a 500ms delay just before emitting the signal that un pauses the execution. And its working now 👍
What do you think of this 500ms delay? Is there a better approach to this?
Thanks!

Ah, ok this makes sense then.  I think your solution sounds fine.
I do know of another customer that has taken a slightly different approach. When the INVITE from UA1 comes in, they park the call (on a freeswitch server, in their case) and send a push notification to UA2, which responds by sending an INVITE to the server which connects to and unparks the first call.  (The push notification includes a parking slot id that is used in the INVITE to identify the parked call to connect to).  Its obviously a bit more complicated but eliminates any race condition is a bit more snappy in terms of connecting the call.

Hmm this is interesting. Will keep this in mind. Haven't completely build what I have in mind yet but curious later to compare numbers on snappiness  😄 Also I'll be using coturn instead of freeswitch for media.
Closing this issue
Thanks again!


feat: show stack in unhandled rejection

Related #208, #211
Make it friendly for user or developer.

Before:
Unhandled rejection is detected. Worker of 'popup_preview' will be reloaded: RangeError: Invalid count value: -1

After:
Unhandled rejection is detected. Worker of 'popup_preview' will be reloaded: RangeError: Invalid count value: -1
    at String.repeat (<anonymous>)
    at getHighlights (file:///path/to/vim/denops/popup_preview/markdown.ts:253:23)
    at async getStylizeCommands (file:///path/to/vim/denops/popup_preview/markdown.ts:273:22)
    at async DocHandler.showFloating (file:///path/to/vim/denops/popup_preview/documentation.ts:66:19)


Paginate page attribute

Is there a way to keep the page attribute in the link even when you go to the first page?
The problem I'm having is that I want to keep in a cookies the page my user is in. So that when they edit an entry they can save it without having to go through the process of returning manually to the page with the modified entry.
So I stock the page attribute in a cookie but that cause the link to first page to display the last page that was viewed. If the link generated would forcefully add the attribute page=1 my problem would be solve.
I know it is not really a kaminari problem, but is there a little way around this like an attribute I can use or a way to overwrite the link for the [first, precedent, 1] button ?

It's actually implemented and you can use params_on_first_page config.
Gemfile:
gem 'kaminari', github: 'amatsuda/kaminari'

config/initializes/kaminari.rb
Kaminari.configure do |config|

  ...

  config.params_on_first_page = true
end

@yuki24 when this feature is planned to be released?


let cellHeight be accessible to objc by using NSNumber instead of CGF…

@farshidce merged. Thanks!


Add skip button

Sometimes documents are not loading, so it has to be possible to skip the document


Add Doc-set to Dash Open-source contribution

This is just a reminder:

required steps are here
Eexample

Arrow is not yet discoverable for alfredo.
I am not sure, but I think the aforementioned issue is related to this.


Registering custom languages

Hello @serdarciplak ,
I'm curious if you're still supporting this library, seems like no new contributions since December.
I'm actually quite interested, in using this one in a big project, and it is important to me, if there's activity/support, otherwise I will probably have to respectfully clone it if issues come up.

Hi @David-Moreira
I'm actively maintaining the repo. But if you're asking for 7/24 instant support, I cannot guarantee that as you may guess.
Due to the nature of open source, you can fork any repo anytime. If I were you, I would start using this repo. If I need changes and I cannot get responses as I need, I would go fork it then. But that's all your choice. Take care :)

Thanks @serdarciplak
Personally I already needed some features like setting a new language, monarch provider, completion tokens, markers... If you'd like to eventually add to your project.
But this is already a nice starting point.
Alot of "plumbing" already done and that's awesome.

Some features you need may already be implemented. I've tried to keep everything in parallel to the original Monaco Editor javascript API. So, you may check how to do something in the original way, and then check out if BlazorMonaco supports it. Please let me know if you still need something to be implemented and I'll check it out.
For example, you already can set a new language on BlazorMonaco.
The original API way :
var model = editor.getModel();
monaco.editor.setModelLanguage(model, 'csharp');

BlazorMonaco way :
var model = await editor.GetModel();
await MonacoEditor.SetModelLanguage(model, "csharp");

Hello @serdarciplak
Yea there's quite alot of stuff already implemented, thank you for your work.
What I meant by new language is registering a custom one.
I am not wrong to say that these are missing am I?
// Register a new language
monaco.languages.register({ id: 'mySpecialLanguage' });

// Register a completion item provider for the new language
monaco.languages.registerCompletionItemProvider('mySpecialLanguage', {

// Register a tokens provider for the language
monaco.languages.setMonarchTokensProvider('mySpecialLanguage', {

https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-custom-languages

You're right. You cannot register custom languages in Blazor yet. As of now, you can register the language in Javascript and use it in Blazor.

BlazorMonaco way :
var model = await editor.GetModel();
await MonacoEditor.SetModelLanguage(model, "csharp");

In case anyone else stumbles upon this: as of this writing, the correct way is to use the Global static class. Example:
var model = await editor.GetModel();
await Global.SetModelLanguage(model, "csharp");

@serdarciplak Please do correct me if I'm wrong! 😄

Yes, that's correct. The SetModelLanguage method is moved to the BlazorMonaco.Editor.Global class in a newer release.


chore: Add page load trace with resource, paint and navigation spans (#34957)

Description

[!TIP]
Add a TL;DR when the description is longer than 500 words or extremely technical (helps the content, marketing, and DevRel team).
Please also include relevant motivation and context. List any dependencies that are required for this change. Add links to Notion, Figma or any other documents that might be relevant to the PR.

Fixes #Issue Number
or
Fixes Issue URL

[!WARNING]
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.

Automation
/ok-to-test<EMAIL_ADDRESS>:mag: Cypress test results

[!CAUTION]
If you modify the content in this section, you are likely to disrupt the CI result for your PR.

Communication
Should the DevRel and Marketing teams inform users about this change?

[ ] Yes
[ ] No

/ok-to-test tags="Sanity"


Change rules of indenting for spaces

Hello,
even though #28724 did not find much traction i was toying around with editor code to the point when I decided it's worthwhile to create draft PR of this improvement if not for merge then for future reference. This PR fixes multiple issues with spaces indentation and brings more consistency into this mechanic. I'd like to point out that those 'small issues' are really big annoyance in my everyday work with godot - that's why I decided to take time to fix them.
FEATURES AND FIXES
When talking about spaces indenting in Godot editor there are five main cases to consider - clicking backspace without selection, tab and shift+tab without selection and tab and shift+tab with selection. Each of this cases has unique (and somewhat duplicated) code that provides indenting mechanism. As you will see I extracted some common methods but reality is that what we need is only two functions that handle indenting and unindenting - that is however, distant future (that I will be more than happy to work on if this subject gains some traction and support).
At this point it is worth noting that even though I carried out pretty careful testing efforts this code is pretty complicated and it has some regression potential.
All below examples use space indentation with 4 spaces indent size, my work did not concern any of tabs issues. All screenshots of old behavior come from Godot 3.1 (I did not notice any changes to this on master)
Backspace at selection
In Godot there is feature that if you hit backspace (with no selection) and  there is only indentation before cursor the text gets unindented by configured indentation_size. This feature is standard in any IDE but Godot's implementation had two issues:

If cursor column is less then indentation_size feature does not work and spaces are removed one by one
Number of removed spaces was always equal to indentation_size - this means that if you hit accidental space you cant delete it easily with backspace because it will move you back to one-off position of previous indentation level. To visualize see below gif where I only click backspace (notice the indentation level is off by two and it remains so until all spaces get delete from the line).

I fixed it - when unindenting code first deletes spaces up until closest full indentation level and then removes whole levels. Feature works too if cursor column is smaller than indentation_size. Notice how at first two spaces are removed and then at next backspace click whole indentation level disappears.

Unindenting with shift+tab
It is very similar as in 'Backspace at selection'. Code was always removing number of spaces equal to indentation_size. Example below - as you can see line  22 is slightly off (two spaces more than correct indentation level) and shift tabbing does not bring it to round indentation level - it just removes 4 spaces in this case.

I fixed it! Just as before - first we remove enough spaces so that cursor ends up at full indentation level and then we remove whole level as before:

Indenting with tab
Similar issue - tabbing was always adding four spaces to the line. Usually when indenting you want to move stuff at cursor to new indentation level. Old mechanic:

My 'improvement' (not total fix since it still depends on cursor position in relation to the closest indent level - maybe we should look at position of first non-whitespace character?). Please notice how we at first 'even up' word after cursor to nearest selection and only at next tabs we move by whole indentation level:

Indenting selection with tab and unindenting with shift+tab
Now it is where fun begins. Select something (can be multi-line) and hit that tab. I was actually unable to find similar feature in any of IDEs I'm using (QT-Creator, Intellij IDEA, Sublime Text) since there tab or untab when having selection would delete it but Godot attempts to indent all lines with selection. I kept this feature and improved it a bit. Here are the issues with current implementation:

Selection changes weirdly when using this mechanic.
Cursor moves weirdly (it is because correct cursor offset was only supported for tabs!)
We always only insert indent_size number of spaces at the beginning of the line not caring for correct indentation level.

Preview of old mechanic:

Similar stuff was going on for unindenting selection, Not aligning to closest indentation level, moving selection and cursor. See (the cursor moves is me just holding shift+tab!):

I fixed cursor and selection changes issue (it keeps on same selection all the time - I thought it is ok) and also move text at first to closest full indentation level at first. My version with single line selection:

And with multiline:

To be honest this part of the feature was most difficult to implement as it is not so obvious how it should work.
I think adding or improving this PR would be huge QOL improvement for Godot which would bring its indentation mechanics if not on par then close to other modern IDEs.
Thanks for reading. Have a nice day.:)

See Code style guidelines for details on formatting.

We discussed this in PR meeting today, and the feature seems good. @Paulb23 should have a look as he's among the most familiar with TextEdit code.
I see that those changes are specific to space-based indentation. Did you check that the indentation behaviour is equivalent when using tab-based indentation? And what about a mix of tabs and spaces, e.g. <tab><space><space><cursor>print("heya") and pressing Backspace?

I did not test this code with mix but my guess is that it will improve mixed case when space indentation is active. I will verify it and provide feedback.
As a side-note is there any place where tests for this code could be added? I spent vast majority of time on this testing and considering various edge cases - it would be good to automate this process.

So it seems that in your example if tabs indentation is on then spaces will be removed one by one but if spaces indentation is on then code assumes every indentation character is space and will attempt to even up to closest indent as if it was . This seems pretty extreme edge case (who would use tabs and have spaces indentation on?) but if you think it should be fixed I can do it.

It sounds like it should be fine as is. If we run into some corner cases while using the feature, we can discuss how to handle them further.

Thanks!


Added into_frames implementation for gifs

This will resolve #725 by implementing the into_frames function for gifs

Looks good.

Merging.


Feature request: Hidden and wireframe parameters in show_object and show_all

When using show_object() or show_all() it would be nice to be able to control what is the default hidden (eye icon) and wireframe mode of the rendered objects.
If the user changes the visibility on the UI via the eye icon or the wireframe icon, these should be kept or not based on something like set_defaults(reset_camera=Camera.KEEP_VISIBILITY) or similar.
Proposed API:
show_object(thing, visibility=False, wiremode=True)

show_all(hidden=*objects, wiremode=*objects)

You might want to look at set_viewer_config (exposed from ocp_vscode):
set_viewer_config(states={"/Group/p": [1,0], "/Group/p2":[0,1]})

You address each object by the full path from top, here /Group/ joined with p  or p2

And
status()["states"]
# {'/Group/p': [1, 0], '/Group/p2': [0, 1], '/Group/c': [1, 1]}

provides the current settings


fix(watch): replace instance unmounted with scope inactive

Ref: https://github.com/vuejs/core/pull/7330#issuecomment-1872461341
This is solution 2, low risk.
Solution 1: #9948

/ecosystem-ci run


python311Packages.axis: 58 -> 60

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python311Packages.axis is: Python library for communicating with devices from Axis Communications
meta.homepage for python311Packages.axis is: https://github.com/Kane610/axis
meta.changelog for python311Packages.axis is: https://github.com/Kane610/axis/releases/tag/v59
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 59 with grep in /nix/store/b7bpc266f2m8zl98n18zqi07f68hikhv-python3.11-axis-59
found 59 in filename of file in /nix/store/b7bpc266f2m8zl98n18zqi07f68hikhv-python3.11-axis-59

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

3 total rebuild path(s)

3 package rebuild(s)

First fifty rebuilds by attrpath
home-assistant-component-tests.axis
python311Packages.axis
python312Packages.axis

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/b7bpc266f2m8zl98n18zqi07f68hikhv-python3.11-axis-59 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

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

Or:
nix build github:r-ryantm/nixpkgs/af9ce02cdc8c79ec377d43738c00f1b4df2784cf#python311Packages.axis

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/b7bpc266f2m8zl98n18zqi07f68hikhv-python3.11-axis-59
ls -la /nix/store/b7bpc266f2m8zl98n18zqi07f68hikhv-python3.11-axis-59/bin

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

1 package failed to build:

home-assistant-component-tests.axis

4 packages built:

python311Packages.axis
python311Packages.axis.dist
python312Packages.axis
python312Packages.axis.dist

Maintainer pings
cc @fabaff for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python311Packages.axis is: Python library for communicating with devices from Axis Communications
meta.homepage for python311Packages.axis is: https://github.com/Kane610/axis
meta.changelog for python311Packages.axis is: https://github.com/Kane610/axis/releases/tag/v60
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 60 with grep in /nix/store/h8y62ap7mf0prx3y5fz3289brfcgaym4-python3.11-axis-60
found 60 in filename of file in /nix/store/h8y62ap7mf0prx3y5fz3289brfcgaym4-python3.11-axis-60

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

3 total rebuild path(s)

3 package rebuild(s)

First fifty rebuilds by attrpath
home-assistant-component-tests.axis
python311Packages.axis
python312Packages.axis

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/h8y62ap7mf0prx3y5fz3289brfcgaym4-python3.11-axis-60 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

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

Or:
nix build github:r-ryantm/nixpkgs/617331e12b99850a7f343a28b5b16a4c7582db1e#python311Packages.axis

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/h8y62ap7mf0prx3y5fz3289brfcgaym4-python3.11-axis-60
ls -la /nix/store/h8y62ap7mf0prx3y5fz3289brfcgaym4-python3.11-axis-60/bin

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

1 package failed to build:

home-assistant-component-tests.axis

4 packages built:

python311Packages.axis
python311Packages.axis.dist
python312Packages.axis
python312Packages.axis.dist

Maintainer pings
cc @fabaff for testing.


Add sigmoid op

Adds a sigmoid op
In TTNN runtime, this will call ::ttnn::sigmoid(), but there's also a ::ttnn::sigmoid_accurate(), something to keep an eye on once we start running stuff and analyzing accuracy

Please add a test in one of the folders dedicated to unary ops. :)

Please add a test in one of the folders dedicated to unary ops. :)

Oh lol, I actually added the test, but forgot to git add it 😅


Cannot install @highlightjs/cdn-assets using npm

Describe the issue/behavior that seems buggy
Cannot install cdn-assets into local vscode project using npm.
Sample Code or Instructions to Reproduce
Copy/past the snippet to install from https://www.npmjs.com/package/@highlightjs/cdn-assets
Enter:
npm i @highlightjs/cdn-assets

Response:
npm ERR! code E404
npm ERR! 404 Not Found - GET https://npm.pkg.github.com/@highlightjs%2fcdn-assets - npm package "cdn-assets" does not exist under owner "highlightjs"
npm ERR! 404
npm ERR! 404  '@highlightjs/cdn-assets@*' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:

Expected behavior
Should install the dependency in my project. I can install highlight.js, but that isn't what I need.
Additional context
Logfile:
0 verbose cli /Users/<myusername>/.nvm/versions/node/v18.17.1/bin/node /Users/<myusername>/.nvm/versions/node/v18.17.1/bin/npm
1 info using<EMAIL_ADDRESS>2 info using<EMAIL_ADDRESS>3 timing npm:load:whichnode Completed in 1ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:/Users/<myusername>/.nvm/versions/node/v18.17.1/lib/node_modules/npm/npmrc Completed in 0ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/Users/<myusername>/Documents/VSCode/highlightjs-apex/.npmrc Completed in 2ms
10 timing config:load:project Completed in 3ms
11 timing config:load:file:/Users/<myusername>/.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:/Users/<myusername>/.nvm/versions/node/v18.17.1/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:setEnvs Completed in 1ms
16 timing config:load Completed in 7ms
17 timing npm:load:configload Completed in 7ms
18 timing config:load:flatten Completed in 1ms
19 timing npm:load:mkdirpcache Completed in 0ms
20 timing npm:load:mkdirplogs Completed in 0ms
21 verbose title npm install @highlightjs/cdn-assets
22 verbose argv "install" "@highlightjs/cdn-assets"
23 timing npm:load:setTitle Completed in 6ms
24 timing npm:load:display Completed in 0ms
25 verbose logfile logs-max:10 dir:/Users/<myusername>/.npm/_logs/2023-11-09T00_44_13_346Z-
26 verbose logfile /Users/<myusername>/.npm/_logs/2023-11-09T00_44_13_346Z-debug-0.log
27 timing npm:load:logFile Completed in 4ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 25ms
31 timing arborist:ctor Completed in 0ms
32 silly logfile start cleaning logs, removing 1 files
33 silly logfile done cleaning log files
34 timing idealTree:init Completed in 23ms
35 timing idealTree:userRequests Completed in 1ms
36 silly idealTree buildDeps
37 silly fetch manifest @highlightjs/cdn-assets@*
38 timing arborist:ctor Completed in 0ms
39 http fetch GET 404 https://npm.pkg.github.com/@highlightjs%2fcdn-assets 229ms (cache skip)
40 http fetch GET 404 https://npm.pkg.github.com/@highlightjs%2fcdn-assets 136ms (cache skip)
41 silly placeDep ROOT @highlightjs/cdn-assets@ OK for<EMAIL_ADDRESS>want: *
42 timing idealTree:#root Completed in 374ms
43 timing idealTree:node_modules/@highlightjs/cdn-assets Completed in 0ms
44 timing idealTree:buildDeps Completed in 374ms
45 timing idealTree:fixDepFlags Completed in 1ms
46 timing idealTree Completed in 402ms
47 timing command:install Completed in 407ms
48 verbose stack HttpErrorGeneral: 404 Not Found - GET https://npm.pkg.github.com/@highlightjs%2fcdn-assets - npm package "cdn-assets" does not exist under owner "highlightjs"
48 verbose stack     at /Users/<myusername>/.nvm/versions/node/v18.17.1/lib/node_modules/npm/node_modules/npm-registry-fetch/lib/check-response.js:95:15
48 verbose stack     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
48 verbose stack     at async RegistryFetcher.packument (/Users/<myusername>/.nvm/versions/node/v18.17.1/lib/node_modules/npm/node_modules/pacote/lib/registry.js:87:19)
48 verbose stack     at async RegistryFetcher.manifest (/Users/<myusername>/.nvm/versions/node/v18.17.1/lib/node_modules/npm/node_modules/pacote/lib/registry.js:118:23)
48 verbose stack     at async #nodeFromEdge (/Users/<myusername>/.nvm/versions/node/v18.17.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1049:19)
48 verbose stack     at async #buildDepStep (/Users/<myusername>/.nvm/versions/node/v18.17.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:917:11)
48 verbose stack     at async Arborist.buildIdealTree (/Users/<myusername>/.nvm/versions/node/v18.17.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:196:7)
48 verbose stack     at async Promise.all (index 1)
48 verbose stack     at async Arborist.reify (/Users/<myusername>/.nvm/versions/node/v18.17.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:159:5)
48 verbose stack     at async Install.exec (/Users/<myusername>/.nvm/versions/node/v18.17.1/lib/node_modules/npm/lib/commands/install.js:152:5)
49 verbose statusCode 404
50 verbose pkgid @highlightjs/cdn-assets@*
51 verbose cwd /Users/<myusername>/Documents/VSCode/highlightjs-apex
52 verbose Darwin 23.1.0
53 verbose node v18.17.1
54 verbose npm  v10.2.3
55 error code E404
56 error 404 Not Found - GET https://npm.pkg.github.com/@highlightjs%2fcdn-assets - npm package "cdn-assets" does not exist under owner "highlightjs"
57 error 404
58 error 404  '@highlightjs/cdn-assets@*' is not in this registry.
59 error 404
59 error 404 Note that you can also install from a
60 error 404 tarball, folder, http url, or git url.
61 verbose exit 1
62 timing npm Completed in 511ms
63 verbose unfinished npm timer reify<PHONE_NUMBER>444
64 verbose unfinished npm timer reify:loadTrees<PHONE_NUMBER>448
65 verbose code 1
66 error A complete log of this run can be found in: /Users/<myusername>/.npm/_logs/2023-11-09T00_44_13_346Z-debug-0.log

No idea? Worked here, first attempt.

probably PBKAC. Will keep trying.

Found problem: Had .npmrc file with @highlightjs:registry=https://npm.pkg.github.com
No idea why. Commented line and everything was great - will figure out why it was there.


Support Job master audit log

What changes are proposed in this pull request?
Support job master print the user access audit log to a log file just like file system master audit log
Why are the changes needed?
We want to record each job submitter and access user information.
Does this PR introduce any user facing changes?
No

@yuzhu Please take a look at this feature, believe this can helps forks! 😄

@yuzhu PTAL, thanks

@maobaolong Please take a look at the conflict.  the rest looks good. Thanks for this PR!

@yuzhu Thanks for your review, resolved the conflict.

alluxio-bot, merge this please


Fix #1230 Change result testing to current culture

All UnitTest.Areas.Admin.ViewModels Percentage test failed on my system as it's use "." decimal separator instead of NumberFormat.NumberDecimalSeparator in assertment
result.ShouldBe("0.0"); failed in cultures with comma decimal separators

@tonysurma, is culture and globalization something we need to worry about yet, or is it on the technical backlog?

@mgmccarthy We need to ensure that at least the tests function correctly invariant of the culture of the machine running them. I've never had to think about it before!

@mgmccarthy - @stevejgordon is right.  Not a concern today, will be someday so need to not make the later impossible and certainly need to make sure tests can run

I am going to merge this and then we should see if we can find a way to run tests 'independent' of current culture so each test doesn't need to specify it explicitly (until we go multiculture/language and then we will deal with it explicitly then)


Create nutrition_facts.py

Location
Specify chapters and sections here.

Chapter(s): 11
Section(s): 11.6

Changes

add nutrition_facts.py
nutrition_facts.py is supposed to be an example of using ** before a parameter to make it accept an undefined amount of keyword arguments.

@chrehall68 I clarified the instructions a bit with the last two sentences. Could you check it out?

Changes look good, @BenVN123. Thanks for adding those clarifying instructions.


docs: Fix misspelling of src attribute

@kylebuch8 It looks like the Travis CI passed but is having a difficult time reporting that back to PRs occasionally.  I've been seeing this from time-to-time in the last couple of weeks.


Multiple entries for doxygenStripFromPath

Hello,
I'm just starting with sphinx and exhale using it with CMake. CMake allows to generate setup.py where variables like @CMAKE_SOURCE_DIR@ and @CMAKE_BINARY_DIR@ are replaced by real paths during generating. The CMAKE_BINARY_DIR holds the path to the out of source build. These path I wan't to remove now. As you know Doxygen has STRIP_FROM_PATH for this which allows multiple entries. I failed with this to try this with doxygenStripFromPath too. Are multiple entries supported (my impression is not) and if yes, what is the syntax for this? The documentation isn't clear regards this.

Currently only one path is allowed for the exhale configuration side.  Kind of a frustrating design flaw you've found, the exhale configuration variable doxygenStripFromPath was mostly a hack and I didn't consider multiple entries...  On the interface level in conf.py it can be updated to allow str or list[str].
Sorry for the long delay.  I have some questions on your usage

CMake allows to generate setup.py where variables like @CMAKE_SOURCE_DIR@ and @CMAKE_BINARY_DIR@ are replaced by real paths during generating.

Do you mean conf.py for sphinx?  (Not setup.py)?  I ask because the above change sounds like it will resolve your scenario.  Long term I think I just want to remove that configuration variable, it may be better to just parse it from the other user configs and/or possibly default it to something sane rather than it being required.  Thoughts welcome :slightly_smiling_face:


Music Visualizer

This is playing around making a graphic visualizer using the Stand Up Maths theme tune from:
https://standupmaths.bandcamp.com/track/stand-up-maths-theme
I realize this would probably be hard to sync up, but it was fun to try anyway. At the moment the music starts playing immediately
This uses the P5 FFT function to split up the frequency spectrum and display it up the tree. There are some scaling magic numbers to make it look better.
https://editor.p5js.org/rendermaniac/sketches/mtEViRIKG

Thanks for this, super excited about it! Hopefully Matt can give it a shot because I'm curious to see how well it syncs up.

I probably should have added a countdown - maybe next time!


Fix glTF serializer light orientation issues

see: https://github.com/BabylonJS/Babylon.js/issues/7377#issuecomment-586203022
This PR is intended to address issues with export and round-tripping of punctual lights via glTF.
A fix was made to the yaw angle calculation of a punctual non-point light node when exported from a right hand scene.
Changes were made to the _applyExtension contract to allow for null nodes to be returned to the extension export caller after being processed via the extension handler function. _applyExtension now ONLY returns the processed node, and can return null.

Linting and documentation fails

RIGHT on time ;)


Application deploy in GitHub Page

Deploy my Portfolio website using GitHub Pages.
Update the README to include a link to the online version.

Finished the deploy of my portfolio.


Add cmake and fix OMP

Add cmake build rules.
Fix OMP compilation error in VS2022.
OpenMP can be turn off on windows.

I don't think I'll add cmake to the project. What is cmake fixing here that can't be done in our Makefile?

Also - we already have a CMake PR https://github.com/karpathy/llm.c/pull/59

I don't think I'll add cmake to the project. What is cmake fixing here that can't be done in our Makefile?

Adding cmake is nothing to do with bug fix, it's a combined commit. Cmake could be really helpful for cross-platform development when project grows big and configurations become more and more complicated, and more friendly to those who favor IDEs, like visual studio.  But i also respected what you decide here.
By the way, the fix is on another PR (https://github.com/karpathy/llm.c/pull/460)


The page is not rendering server side.

The page does not render server side and everything is just a script that is running on client side.

very high TBT and other core metrics

using import { Render } from "@measured/puck/rsc"

was my fault


Support file upload on Topic component

It would be nice if the Post model had a content_images relationship, the same way the Winter.Blog Post model does.
The Topic component should have a "onProcessUpload" AJAX handler to verify the file extensions of the files being uploaded and then would returns the urls of the files on the server.
The frontend process should be developed by the website programmer so it could be attached to a file upload lib like dropzone, or a custom code.
Currently toying with this ATM and will submit a draft PR later.

As discussed with @mjauvin, this could be done with a third-party plugin so I'll publish this with a plugin extension.


Feature/ivyportal 16667 page titles logic lts

Update page title

@lmluat-axonivy please check my review. thank you

thank you I have updated the code, please check


Upgrade to spring boot 2.1.9

Coverage remained the same at 56.403% when pulling ca4588b51e11579496d047be3b4675c599dbb82b on upgrade-springboot into e1b652c226c2adaefda2f3f7739a55bd6a4be8ad on master.


dataset

Hi, thanks for your great work!
I noticed that the meshes of your DG-Mesh Dataset miss texture files.
Regarding the NeuralActor dataset, you mentioned "will release the processed data if approved". I am wondering what is the status of getting approved.

Hi, thanks for pointing this out! At this time, we have only released the rendered images and their geometry GT in our DG-Mesh dataset. :) Regarding the NeuralActor dataset, unfortunately, I cannot provide an accurate date for its release. If you are working on a research project and need the data immediately, I suggest applying for access to the official NeuralActor dataset here and I can share my post-processing scripts with you. Please let us know if you have any further questions!

Thanks for your reply!
I am interested in the DG-Mesh Dataset with textured meshes because I would like to test on a dynamic multi-view dataset with GT meshes, which is hardly available in the community. So it would be interesting if you could release the texture files as well.

Hi,
I am also looking for a dynamic multi-view dataset with GT meshes.
@Isabella98Liu Do you plan on releasing the texture files? This would be very helpful for my master thesis. :)


CARDS-2109 - Patient portal: the "Submit my answers" button should show some indication that submission is in progress once pressed

See CARDS-2109 on Jira.
Changes overview:

Disabled the Submit button and changed its label to "Submitting" while the submission request is in progress

Testing:

start prems
as admin, create a visit for ED (the shortest survey, for easy testing)
as patient, fill out the survey
once arrived to the Review screen, from the browser's dev tools > network, throttle the connection to the slowest available (but not offline)
click on "Submit my answers" and notice the button change

tested post merge