nixos: How to use the latest version of miso?

I followed the README but nix only installs an older version (<IP_ADDRESS>) of miso. I think this is because the nix package store is not in sync with hackage. So I had to use the example mentioned in the README of <IP_ADDRESS>.
How do I use the latest miso which is <IP_ADDRESS> when using nix?

Ah, assuming you have followed the nix instructions on the README.md it appears that the rev is pointing to an old version of miso. I made an updated version and tar'd it up here: https://www.dropbox.com/s/6k53iz8f8031ltx/app.tgz?dl=0
You can cd into it and call nix-build or nix-shell -A env && cabal configure --ghcjs.
It has the following files in it:
Main.hs
module Main where

import Miso

main :: IO ()
main = putStrLn "foo"

app.cabal
name:                app
version:             <IP_ADDRESS>
synopsis:            First miso app
category:            Web
build-type:          Simple
cabal-version:       >=1.10

executable app
  main-is:             Main.hs
  build-depends:       base, miso
  default-language:    Haskell2010

app.nix
{ mkDerivation, base, miso, stdenv }:
mkDerivation {
  pname = "app";
  version = "<IP_ADDRESS>";
  src = ./.;
  isLibrary = false;
  isExecutable = true;
  executableHaskellDepends = [ base miso ];
  description = "First miso app";
  license = stdenv.lib.licenses.unfree;
}

default.nix
{ pkgs ? import <nixpkgs> {} }:
let
  result = import (pkgs.fetchFromGitHub {
    owner = "dmjio";
    repo = "miso";
    sha256 = "07v2wrinnvkcmrmrav5xngybbms4scqhrhprbfqyak20snr4ir1q";
    rev = "e2a3ac05f6b228c6060046fbdbf3d93c4232229c";
  }) {};
in pkgs.haskell.packages.ghcjs.callPackage ./app.nix {
  miso = result.miso-ghcjs;
}

Let me know if this has helped.

sha256 = "07v2wrinnvkcmrmrav5xngybbms4scqhrhprbfqyak20snr4ir1q";
rev = "e2a3ac05f6b228c6060046fbdbf3d93c4232229c";

Updating just these two lines successfully pulled versioin <IP_ADDRESS> during nix-build however the sample program mentioned in the README is failing to build. The source tree is here: https://github.com/srid/miso-hello
Main.hs:44:38:
    Couldn't match type ‘[Char]’ with ‘JSString’
    Expected type: MisoString
      Actual type: [Char]
    In the first argument of ‘text’, namely ‘"+"’
    In the expression: text "+"
    In the second argument of ‘button_’, namely ‘[text "+"]’

Main.hs:46:43:
    Couldn't match type ‘[Char]’ with ‘JSString’
    Expected type: MisoString
      Actual type: [Char]
    In the first argument of ‘text’, namely ‘"-"’
    In the expression: text "-"
    In the second argument of ‘button_’, namely ‘[text "-"]’

Applying the follow patch fixes it:
--- a/Main.hs
+++ b/Main.hs
@@ -41,7 +41,7 @@ updateModel SayHelloWorld m = m <# do
 -- | Constructs a virtual DOM from a model
 viewModel :: Model -> View Action
 viewModel x = div_ [] [
-   button_ [ onClick AddOne ] [ text "+" ]
+   button_ [ onClick AddOne ] [ text $ toMisoString "+" ]
  , text $ toMisoString (show x)
- , button_ [ onClick SubtractOne ] [ text "-" ]
+ , button_ [ onClick SubtractOne ] [ text $ toMisoString "-" ]
  ]

But is that in line with the <IP_ADDRESS> API?

Just one last question, and then this issue can be closed!
sha256 = "07v2wrinnvkcmrmrav5xngybbms4scqhrhprbfqyak20snr4ir1q";
rev = "e2a3ac05f6b228c6060046fbdbf3d93c4232229c";

I understand the rev to refer to the git commit hash, but what is this sha256 value and how to retrieve this for future latest releases?

@srid ah thank you. I will update the docs to fix that example.
To get hash,
nix-prefetch-git https://github.com/dmjio/miso
Initialized empty Git repository in /private/var/folders/x4/92d7c1vd7wl88gdw6668rnr80000gp/T/git-checkout-tmp-2ITGEzAn/miso/.git/
remote: Counting objects: 149, done.
remote: Compressing objects: 100% (120/120), done.
remote: Total 149 (delta 23), reused 88 (delta 12), pack-reused 0
Receiving objects: 100% (149/149), 120.33 KiB | 0 bytes/s, done.
Resolving deltas: 100% (23/23), done.
From https://github.com/dmjio/miso
 * branch            HEAD       -> FETCH_HEAD
Switched to a new branch 'fetchgit'
removing `.git'...

git revision is e2a3ac05f6b228c6060046fbdbf3d93c4232229c
path is /nix/store/yypcp3v5bnyfnh2nalilhklvca16pybv-miso
git human-readable version is -- none --
Commit date is 2017-08-04 11:38:52 -0700
hash is 07v2wrinnvkcmrmrav5xngybbms4scqhrhprbfqyak20snr4ir1q
{
  "url": "https://github.com/dmjio/miso",
  "rev": "e2a3ac05f6b228c6060046fbdbf3d93c4232229c",
  "date": "2017-08-04T11:38:52-07:00",
  "sha256": "07v2wrinnvkcmrmrav5xngybbms4scqhrhprbfqyak20snr4ir1q",
  "fetchSubmodules": true
}

You might need to install it with nix-env -iA nix-prefetch-git -f '<nixpkgs>'
Alternatively, just put the wrong hash, and nix will prompt you to enter the correct one.

Re:example, try
[nix-shell:~/Desktop/miso]$ cabal clean && cabal configure -fexamples --ghcjs && cabal build

@srid, oh it needs {-# LANGUAGE OverloadedStrings #-}

@srid sorry for the confusion, have applied this fix https://github.com/haskell-miso/miso/commit/36959c729888f7c0e204beba0e2d00a7b0b1323a

Closing since fixed :) @srid

@dmjio Thanks! It worked.
As for the hash, don't you think the README will need to be updated with the new rev/has on each release? Otherwise your (new) users of nix will end up using older versions ...

@srid, yes it probably will. We should probably make a stub,

{ pkgs ? import <nixpkgs> {} }:
let
  result = import (pkgs.fetchFromGitHub {
    owner = "dmjio";
    repo = "miso";
    sha256 = "you hash goes here"; # example 07v2wrinnvkcmrmrav5xngybbms4scqhrhprbfqyak20snr4ir1q;
    rev = "your rev goes here"; # example "e2a3ac05f6b228c6060046fbdbf3d93c4232229c";
  }) {};
in pkgs.haskell.packages.ghcjs.callPackage ./app.nix {
  miso = result.miso-ghcjs;
}

This kind of descends into requiring us to provide more nix knowledge, we might need a "Just enough nix" section.

I have been using NixOS on Linode since yesterday (primarily to develop with Miso, but maybe to make it my main dev machine) ... so I could provide some help with that.
I was hoping there would be some sort of automatic way, maybe pull directly from GitHub release tag or some such thing without having to compute the hash .... I'll see ....

But then I hear that to use cool things like intero+emacs they recommend Slack (and not nix) ... so perhaps I should look into a compound nix+Slack setup ... oh my, the possibilities ...

:) they seem endless. Honestly, I like nix since most deps. are cached. With stack you have to build ghcjs from scratch.
nix-shell -p 'haskell.packages.ghcjs.ghcWithPackages (p: with p; [ miso ])'

Can put you into a shell with ghcjs and miso w/o building anything, simply pulling from a cache. It's a huge win. Also, afaik, stack doesn't have a binary cache. Nixpkgs also just uses stackage LTS versions.


Allow Disabling Image Name Validation

This check has the potential to break some workflows for mirroring images to private registries such as kbld.
It would be helpful to have an option to disable the image name validation since this it's only a sanity check and not a functional test.

potential to break some workflows for mirroring images to private registries such as kbld.

the registry / org are not checked by the validation. the image name validation checks the images matches  <image-name>.Dockerfile (or make <image-name>) from this repo.

@mythi Yes, exactly. Checking the name of the image isn't exactly particularly effective (Rook, by contrast, checks that the supplied Ceph image actually has Ceph installed and of a sufficient version), IMO.
I'm not asking for the default behaviour to change, but rather a way to turn off this validation with a CLI arg or environment variable (or both).

We may need to revisit the validation also for other reasons (e.g., to allow users to use image sha's as versions) at some point. Is there anything that's blocking you right now?

@mythi Yes, currently this blocks me from air-gapping my cluster using my current workflows (via kbld and imgpkg).


Expanding Malayalam normalization rules. Add Unit test

Thank you @kavyamanohar for your PR. I will merge it soon


⚠ AGEG website (redirect) has degraded performance

In e850dc2, AGEG website (redirect) (https://ageg.ca/) experienced degraded performance:

HTTP code: 200
Response time: 2078 ms

Resolved: AGEG website (redirect) performance has improved in 8691719.


Add Collider::make_mut

Added Collider::material_mut, spell-checked the whole file and converted imperatives to descriptions.

Great, thanks!
The CI failure is unrelated to this PR.


Changed onReady to onData to align with Komposer documentation.

Changed onReady to onData in documents-list.js container. Arguments now align with Komposer documentation.
Tests are passing as well.
Fixes #131.

Merged!


Bump the sledgehammer bindgen version

The new version of sledgehammer bindgen uses a class instead of globals to work towards fixing https://github.com/DioxusLabs/dioxus/issues/1907

This conflicts with #1974 so I'm going cherry pick some changes out of it.... Thank you for doing this!!


Add serialization for Address object

Is your feature request related to a problem?
No response
Describe the solution you'd like
Add serialization for Address object
Additional context
No response
Epic
No response

no need. A converter already exists


[Question]: VectorStore deletion - nodes and/or documents

Question Validation

[X] I have searched both the documentation and discord for an answer.

Question
Wanted to confirm my understanding of a VectorStore's delete functionality. I'm particularly interested in the OpensearchVectorStore, so I'll use that as an example.
This class' delete function accepts ref_doc_id as argument; as I understand it, this is meant to be a Document ID. Indeed, when building a VectorStoreIndex over an OpensearchVectorStore and calling e.g. index.update_ref_doc(Document), I see that the Document's ID gets passed as argument.
However, this OpensearchVectorStore unit test calls delete using a Node ID. After merging this change, delete works when given a Document ID (previously it was erroring out), but no longer seems to work when given a Node ID.
Can this function be called with either a Node ID or a Document ID? Or is the unit test incorrect? Feel like I'm missing something here. @logan-markewich

@logan-markewich if you confirm that this unit test is incorrect, I'll make an MR to fix it so that it tests deletion of Documents rather than Nodes.

@wdeaderick indeed, it should only be deleting based on a document ID, rather than a node id. Probably that test should be updated

MR updating it https://github.com/run-llama/llama_index/pull/11981


New feedback - ID 143

User input 1 (by Natalie Torsen- sharepoint ID143)
Testing

@ntorsen I'm closing this as it seems like a test.


Problems with 2.46: All Services missing, Sensors Missing

Region and Brand of car
EU / KIA E NIRO
Version of the integration
2.46
Describe the bug
All Services are not working after Updating to 2.46
Logger: homeassistant.core
Source: core.py:1624
First occurred: 09:53:05 (11 occurrences)
Last logged: 09:53:05
Unable to remove unknown service kia_uvo/start_charge
Unable to remove unknown service kia_uvo/stop_charge
Unable to remove unknown service kia_uvo/set_charge_limits
Unable to remove unknown service kia_uvo/open_charge_port
Unable to remove unknown service kia_uvo/close_charge_port
Sensors are missing after Update:
sensor.e_niro_target_range_of_charce_dc
sensor.e_niro_target_range_of_charce_ac

regarding the missing services:
Integration deleted, HA restarted. Added integration: services back.
Deleting without restarting HA does not help.
I have set the Geocoded Location option. Integration reloaded, the geocoded location sensor was then available, but the services were gone again.
After another HA restart, the services are now available again.

Now it looks good.
What I did:

Geocoded location was switched on during upgrade of integration.
Services were missing.
Turned off Geocoded location.
Restarted HA.
Services came back.
Turned back on Geocoded locations.
Restarted HA.
Both services and geocoded location works.

When reloading the integration, all services will be lost. I don't think it has anything to do with geocoded location.

You are right, I just tested it.
When I restart HA the services come back but when the integration is reloaded they are gone.

We might need to move the call async_setup_services from async_setup to async_setup_entry.
This should add the services back after they are removed because of reloading.

Please retest on the latest build.

I have retested on the latest build.
I confirm the issue is fixed now.
Thanks for the quick actions.

Good Morning, the Services Issue is fixed, but the target_range_of_charce_dc and target_range_of_charce_ac Sensors are still missing.

2.0.48 is released.  Please test it out.  Hoping it solves those sensors.

Thx a lot, both Sensors are working now, great !

Great thanks for following up!


Fullscreen toggle animation

In fullscreen toggle animation, other windows disappear and screen flashes with wallpaper. Can we instead have the animation over existing windows.

dupe of #683


[USERSNAP] When I try to search by DRep's name isn't working as you see in the attached image .png, it only works when searching by DRep's ID.

Taken at: https://gov.tools/drep_directory
Fields:

Add a comment: When I try to search by DRep's name isn't working as you see in the attached image .png, it only works when searching by DRep's ID.

Browser: Chrome 128 (Linux)
Screen size: 1366x768
Open #117 in Usersnap
Powered by Usersnap.

duplicate issue https://github.com/IntersectMBO/govtool/issues/1950


Add TOTP QR code to dev docs

This adds a QR code for the TOTP secret added to the development environment in #16256 to the dev docs.

You can see it here: https://warehouse--16438.org.readthedocs.build/development/getting-started.html


Can I use this library?

I'am wonder how I can use zend-navigation in zend-expressive. I found this repository (zend-expressive-navigation) and this issue: https://github.com/zendframework/zend-navigation/issues/56.
Do I need zend-expressive-navigation to include easy zend-navigation? Is there any documentation how to do it? Why can't I find this repo on packagist.org? What is the current status?

After messing around for a while, I managed to install the package. Please update your composer.json and add the repo:
"repositories": [
    // maybe you have other repos already
    {
      "url": "https://github.com/froschdesign/zend-expressive-navigation.git",
      "type": "git"
    }
  ],

Then install it:
$ composer require zendframework/zend-expressive-navigation:dev-master

Now you can use it. I will give it a try right now.

I have this up and running in a project that I just converted from ZF2 to Expressive, but I had to comment out a few lines in NavigationMiddlewareFactory to get it to behave as I expected. As an example, if my navigation was called Zend\Navigation\Example, it kept forcing me to (also) have a navigation with the default name Zend\Navigation\Navigation.
I have the same Composer repositories config as above, plus the following configuration:
Pipeline:
// Zend\Expressive\Navigation\Middleware\NavigationMiddleware
$app->pipe(NavigationMiddleware::class);

Dependencies:
// Zend\Expressive\Navigation\Service\ExpressiveNavigationAbstractServiceFactory
'Zend\Navigation\Example' => ExpressiveNavigationAbstractServiceFactory::class,

The following is the code that I removed. I'm not really sure of its purpose! To me it reads "if you have exactly one navigation container, add another with the default name. Eh? If it were "=== 0" that might make some sense. Dunno!
        if (\count($names) === 1) {
            $this->containerNames[] = Navigation::class;
            return $this->containerNames;
        }

Please note that I added a quick start here:
https://github.com/froschdesign/zend-expressive-navigation/issues/2
But I have to admit, that I did not use the Navigation View Helper so far.

@fadoe
Ralf has answered a part of your question. (Thanks to @RalfEggert!)

Do I need zend-expressive-navigation to include easy zend-navigation?

Yes, if you use a zend-expressive based application.

Why can't I find this repo on packagist.org? What is the current status?

The work on this component is still ongoing. After that the repository will move to the zendframework organisation and then it will be at packagist.org.
In the meantime you can use this repository as shown above or described in the Composer documentation.

@kgrey
Please create a new issue report for your problem. Thanks!


Add tests/e2e/local OWNERS file

As we have put some common util functions into the file tests/e2e/local/common_*.sh, Approvers in the original minikube and vagrant sub-directories should still have the privilege to approve the codes in these files.
I am just copying the OWNERS file from tests/e2e/local/minikube and tests/e2e/local/vagrant to the parent directory - without adding or deleting anyone :)
/cc @costinm @sdake @hklai @gargnupur @kimikowang @JimmyCYJ Please take a look when you have chance :) THANKS!

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: sebastienvas
If they are not already assigned, you can assign the PR to them by writing /assign @sebastienvas in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

tests/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Hi @m1093782566. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

/assign @baodongli @costinm

Thanks!
Please remove https://github.com/istio/istio/blob/master/tests/e2e/local/vagrant/OWNERS and https://github.com/istio/istio/blob/master/tests/e2e/local/minikube/OWNERS since there is no point to dup. =)

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: baodongli
If they are not already assigned, you can assign the PR to them by writing /assign @baodongli in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

tests/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hklai
Done.
BTW, an /ok-to-test please :)

/ok-to-test

@baodongli @costinm
Could you please approve this PR so that we can find proper approvers for codebase directory test/e2e/local

/lgtm

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: rshriram
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

tests/OWNERS [rshriram]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Exception: In serializer: Storage capacity [53] exceeded while writing value of size [1]

Summary:
I am one of the developers of the epinowcast package which uses stan via cmdstan and cmdstanr. The latest cmdstan release (v2.32.0) gives the above error for some model formulations (including our default) resulting in CI failures across all platforms we test on which worked as expected on v2.31.0 and earlier versions). Model specifications that cause issues are only those that have no intercept for one of our submodules which has a range of impacts in the stan code but the line indicated by the error is a simple integer declaration in the data section of the model (happy to go into more details of exactly what is happening here but assuming it isn't key).
As per the error message reporting this here but given our fairly complex use case and the experimental nature of epinowcast it is very possible the bug is ours (if that is the case any pointers as to where we have gone wrong would be appreciated).
Any pointers as to the kinds of thing that can trigger this error would also help as we look into it in more detail.
Very happy to move this to another repository or the forums etc. depending on where it best fits.
Reproducible Steps:
There is a reprex here using epinowcast: https://github.com/epinowcast/epinowcast/issues/246#issuecomment-1520401890
Stan code: https://github.com/epinowcast/epinowcast/blob/develop/inst/stan/epinowcast.stan
Data: https://drive.google.com/file/d/1ORPb40YFhaZI5CJGayko2DBxJ_9dt_c8/view?usp=share_link
Initital conditions: https://drive.google.com/file/d/1PkmGhqDp3C6KiWkbcPlQ3gHckTCORkiE/view?usp=share_link
Note this is fairly involved and removed from the stan code. I am working on trying to isolate the issue with a simple reprex. without making use of any of our package machinery.
Current Output:
#> Running MCMC with 2 sequential chains, with 2 thread(s) per chain...
#>
#> Chain 1 Unrecoverable error evaluating the log probability at the initial value.
#> Chain 1 Exception: In serializer: Storage capacity [53] exceeded while writing value of size [1] from position [53]. This is an internal error, if you see it please report it as an issue on the Stan github repository. (found before start of program)
#> Chain 1 Exception: In serializer: Storage capacity [53] exceeded while writing value of size [1] from position [53]. This is an internal error, if you see it please report it as an issue on the Stan github repository. (found before start of program)
#> Chain 1 Exception: In serializer: Storage capacity [53] exceeded while writing value of size [1] from position [53]. This is an internal error, if you see it please report it as an issue on the Stan github repository. (found before start of program)
#> Warning: Chain 1 finished unexpectedly!
#> Chain 2 Unrecoverable error evaluating the log probability at the initial value.
#> Chain 2 Exception: In serializer: Storage capacity [53] exceeded while writing value of size [1] from position [53]. This is an internal error, if you see it please report it as an issue on the Stan github repository. (found before start of program)
#> Chain 2 Exception: In serializer: Storage capacity [53] exceeded while writing value of size [1] from position [53]. This is an internal error, if you see it please report it as an issue on the Stan github repository. (found before start of program)
#> Chain 2 Exception: In serializer: Storage capacity [53] exceeded while writing value of size [1] from position [53]. This is an internal error, if you see it please report it as an issue on the Stan github repository. (found before start of program)
#> Warning: Chain 2 finished unexpectedly!
#> Warning: All chains finished unexpectedly! Use the $output(chain_id) method for more information.
#> Warning: Use read_cmdstan_csv() to read the results of the failed chains.
#> Warning: No chains finished successfully. Unable to retrieve the fit.
#> Error: No chains finished successfully. Unable to retrieve the sampler diagnostics.

Expected Output:
A successful call to sample which returns a cmdstan object containing posterior draws etc.
Additional Information:
I've tested both locally and in CI keeping everything the same but changing between v2.31.0 and v2.32.0.
Something to flag is we are passing quite a lot of variables of different kinds so this might be quite a strange edge case (hence I guess triggering this error).
Current Version:
v2.32.0

@seabbs is there an easy way to get your reproducible example to produce just the data (and initialization, if it's supplied) files that are being passed to cmdstan ultimately? I'm currently installing the requirements for epinowcast in R, but if you could drop those files in JSON format somewhere I could try to debug with just your Stan code and that

@seabbs is there an easy way to get your reproducible example to produce just the data (and initialization, if it's supplied) files that are being passed to cmdstan ultimately? I'm currently installing the requirements for epinowcast in R, but if you could drop those files in JSON format somewhere I could try to debug with just your Stan code and that

Yes, I can do this. In a few hours of meetings at the moment but will try and get to this in the breaks.

I've pulled out the data and initial conditions as JSON (hopefully in the correct format etc.) and updated the issue above.

I've opened an issue about better errors for this sort of thing in https://github.com/stan-dev/stanc3/issues/1315 and PR which adds that in https://github.com/stan-dev/stanc3/pull/1316.
In any case, you should be able to fix the issue in your model as it stands by making sure the initial values you're passing are the correct shape/size for the model as written. It appears your current code is generating initializations which are the wrong shape for (at least): rep_beta_sd, refp_sd_int, refp_mean_int, expl_beta_sd, expr_beta_sd, expr_r_int and expr_lelatent_int.
Thank you again for reporting!

The mismatch between a dimension 0 object and actually supplying an initial value is the problem. This is caused by the variable expr_r_int in the repex you provided. It has size 0 (really the size is expr_fintercept ? 1 : 0, and expr_fintercept is 0) but in the inits json it is given a value:   "expr_r_int": 0.011131409787436,.

😍

In any case, you should be able to fix the issue in your model as it stands by making sure the initial values you're passing are the correct shape/size for the model as written. It appears your current code is generating initializations which are the wrong shape for (at least): rep_beta_sd, refp_sd_int, refp_mean_int, expl_beta_sd, expr_beta_sd, expr_r_int and expr_lelatent_int.

Nice one thanks. I think we were being lazy and abusing this before which has come around to bite us clearly!
Thanks for handling this so quickly and clearly.


feat: update app icon and add documentation

:tada: This PR is included in version 1.10.0-dev.4 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Crashes reported before being displayed

I'm running into an issue where a crash is being reported to the crash reporter service but the CLI is not actually displaying the error that was thrown.
Steps to reproduce:
mkdir audio
cd audio
t2 init
npm install tessel-av
wget http://www.stephaniequinn.com/Music/Vivaldi%20-%20Spring%20from%20Four%20Seasons.mp3 -O vivaldi.mp3
echo vivaldi.mp3 >> .tesselinclude
t2 run index.js

Output:
➜  audio t2 run index.js
INFO Looking for your Tessel...
INFO Connected to lyon.
INFO Building project.
INFO Writing project to RAM on lyon (550.4 kB)...
INFO Crash Reported: http://crash-reporter.tessel.io/

Perhaps an error is being thrown by the remote Node process and it's being gobbled by the crash reporter?

Did you try this with the crash reporter off?

That should not happen. Let me make sure that we don't swallow the real error. Also I should really update the message that says Crash Report submitted at... to include the fingerprint. We have that information.

Oops. Fat fingered the close issue button. My apologies. 🙃

Did you try this with the crash reporter off?

@rwaldron No, not yet but will do.
Also reported here: https://forums.tessel.io/t/red-error-led-on-boot-and-blue-led-blinking-forever/2401/4?u=jon


refactor: relocate and rename shared components

:tada: This PR is included in version 0.6.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Support undefined static imports with Option

extern "C" {
    type Crypto;
    #[wasm_bindgen(thread_local_v2, js_name = crypto)]
    static CRYPTO: Option<Crypto>;
}

This currently throws an error in JS if crypto is undefined.
This change would set CRYPTO to None instead.

The title of this PR doesn't make sense to me. If the global crypto variable was set to undefined, then wouldn't the imported value be JsValue::UNDEFINED (or whatever the constant is called)?
I think what you really mean is that it now supports undeclared variables, right? So for your example, crypto might not be defined by the browser/runtime, so just accessing it might give a ReferenceError at runtime. If so, then this is very different from the global variable being set to undefined. Please change the changelog entry if that's what you meant.
Also, please document this feature. Its behavior is not at all obvious. E.g. WBG doesn't support Option<JsValue> in functions at all, so it's surprising that it's allowed here. Globally defined variables set to undefined or null are also handled differently from just static FOO: JsValue.

The title of this PR doesn't make sense to me. If the global crypto variable was set to undefined, then wouldn't the imported value be JsValue::UNDEFINED (or whatever the constant is called)?

It would not, that's why Option<JsValue> isn't supported in the first place. I fixed OP.

I think what you really mean is that it now supports undeclared variables, right? So for your example, crypto might not be defined by the browser/runtime, so just accessing it might give a ReferenceError at runtime. If so, then this is very different from the global variable being set to undefined. Please change the changelog entry if that's what you meant.

Right, the distinction between undefined and undeclared wasn't quite clear to me. It should be noted that in either case it the output would be None.

Also, please document this feature. Its behavior is not at all obvious. E.g. WBG doesn't support Option<JsValue> in functions at all, so it's surprising that it's allowed here. Globally defined variables set to undefined or null are also handled differently from just static FOO: JsValue.

I might consider expanding this feature to cover JsValue as well, that would make sense.

Also, please document this feature. Its behavior is not at all obvious. E.g. WBG doesn't support Option<JsValue> in functions at all, so it's surprising that it's allowed here. Globally defined variables set to undefined or null are also handled differently from just static FOO: JsValue.

I might consider expanding this feature to cover JsValue as well, that would make sense.

Or not actually? As you said, this feature is not about undefined, its about undeclared.

Adjusted and added documentation.
So to be clear: this PR does not add support for Option<JsValue>!


Update request serializing for string parameters.

Currently parameters is an NSString on content type being 'application/x-www-form-urlencoded' but not handled. Also current validation of parameters is not fully covered.
Comments are added. Check my modification for details.

I have to complain about your README
"If one wanna contribute just create a pull request." and you have master branch protected and almost all the pull requests failed Travis-CI.
How to contribute should be claimed clearer I think.

@SlaunchaMan Hi Jeff have a look at this pr plz.

That's hard to use.


Need help to run/train restaurantbot

Rasa Core version:0.9.0a3
Rasa NLU:0.12.3
Python version: 2.7.6
Operating system (windows, osx, ...):ubuntu 16.0.4
Issue:
I have download the source code of rasa and try to run the restaurant-bot.
for run, I found make file in rastaurnatbot folder which have 2 command for train and run.
first i run
python -m rasa_nlu.train -c nlu_model_config.yml --fixed_model_name current \
 --data ./data/franken_data.json --path ./models/nlu

and then i got below output
/home/dishank/local/lib/python2.7/site-packages/h5py/__init__.py:34: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
Fitting 2 folds for each of 6 candidates, totalling 12 fits
[Parallel(n_jobs=1)]: Done  12 out of  12 | elapsed:    4.0s finished

and then i run
python -m rasa_core.run -d models/policy/current -u models/nlu/current

this command give below output
Content of domain file (if used & relevant):
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "build/bdist.linux-x86_64/egg/rasa_core/run.py", line 169, in <module>
  File "build/bdist.linux-x86_64/egg/rasa_core/run.py", line 148, in main
  File "build/bdist.linux-x86_64/egg/rasa_core/agent.py", line 57, in load
  File "build/bdist.linux-x86_64/egg/rasa_core/domain.py", line 427, in load
Exception: Failed to load domain specification from '/home/user/Downloads/rasa_core-master/examples/restaurantbot/models/policy/current/domain.yml'. File not found!

I think we have to train our dialogue. if yes then please help me with same or help me to run this bot.
Please help me to solve this problem.

Hi @rsreeni
did you figure out how to solve that error? I have the same issue now.


Q: How do i set up an authoritative DNS server on NixOS 21.05?

I've set up https://git.dotya.ml/RiXotStudio/system-management/src/branch/central/services/bind.nix expecting it to deploy working authoritative DNS server.
But using:
services.bind.zones = {
	"${config.networking.fqdn}" = {
	file = "/var/dns/${config.networking.fqdn}";
	master = true;
	masters = [ "<IP_ADDRESS>" ];
	};
};

Doesn't generate the zonefile in variable DNS dir.

The file option is meant to point to an existing zone file which contains the DNS records (this is how I use it).


[Feat] - Docs Upgrade - Linting and Pre-Commit Hooks

Description:

This PR adds Eslint to Lint .js | .jsx files
This PR adds Stylelint to Lint .css | .scss files
This PR adds Husky for pre-commit hook config
Fixes linting issues in JS and CSS files

Hello, I am a code review bot on flows.network.
It could take a few minutes for me to analyze this PR. Relax, grab a cup of coffee and check back later. Thanks!

@adithyaakrishna  There're some conflicts. Can you fix it first?

@alabulei1 Done :)

flows summarize

Hello, I am a code review bot on flows.network.
It could take a few minutes for me to analyze this PR. Relax, grab a cup of coffee and check back later. Thanks!

Hi  @adithyaakrishna,
Thanks. I have two questions:

What do you think about the following comment from ChatGPT? I'm not a JS developer, so I have to ask ChatGPT to help.

However, there is a potential issue: the .prettierrc file does not have a newline at the end of the file, which could cause issues with some tools and editors. This should be fixed before merging the pull request.`

Please fix the conflicts

@alabulei1 Oops! My bad, I missed adding the new line, I have fixed it with the above commit. Thanks for pointing it out :)
and I have fixed the conflicts also 👀

So ChatGPT's reviews are right?

@alabulei1 Yes, in this case, it is right. I am not sure about all the cases in the future, but the issue pointed out by ChatGPT is correct here

@alabulei1 I really like the pr-summary bot, but I feel sometimes its a bit too long to go through. I checked the repo for the same at, https://github.com/flows-network/github-pr-summary/blob/main/src/github-pr-summary.rs#L187 and I had this idea, what if the body is collapsible for each commit description?
For example, instead of like this,
Commit ef6e443e817a0b07a1d53756fe79dce2bb9474cc
The patch adds several packages including ESLint, Stylelint, Prettier, and Husky. It also includes updates to the dependencies in package-lock.json. There appear to be no conflicts with the changes and no potential problems are immediately evident. However, it would be worthwhile to review the configuration and implementation of the new packages and make sure they are integrated properly with existing code. It would also be useful to assess if this patch introduces any regressions or performance issues and if any additional testing or optimization is necessary.
How does this look?

[Commit ef6e443e817a0b07a1d53756fe79dce2bb9474cc](https://github.com/WasmEdge/WasmEdge/pull/67/commits/ef6e443e817a0b07a1d53756fe79dce2bb9474cc)
The patch adds several packages including ESLint, Stylelint, Prettier, and Husky. It also includes updates to the dependencies in package-lock.json. There appear to be no conflicts with the changes and no potential problems are immediately evident. However, it would be worthwhile to review the configuration and implementation of the new packages and make sure they are integrated properly with existing code. It would also be useful to assess if this patch introduces any regressions or performance issues and if any additional testing or optimization is necessary.

This was just a random thought that came to my mind 😶

@alabulei1 I really like the pr-summary bot, but I feel sometimes its a bit too long to go through. I checked the repo for the same at, https://github.com/flows-network/github-pr-summary/blob/main/src/github-pr-summary.rs#L187 and I had this idea, what if the body is collapsible for each commit description?
For example, instead of like this,
Commit ef6e443e817a0b07a1d53756fe79dce2bb9474cc
The patch adds several packages including ESLint, Stylelint, Prettier, and Husky. It also includes updates to the dependencies in package-lock.json. There appear to be no conflicts with the changes and no potential problems are immediately evident. However, it would be worthwhile to review the configuration and implementation of the new packages and make sure they are integrated properly with existing code. It would also be useful to assess if this patch introduces any regressions or performance issues and if any additional testing or optimization is necessary.
How does this look?
Commit ef6e443

This format looks great! We can also ask ChatGPT only give a summary.

Hi @adithyaakrishna
The collapsible commit sections look great! Can you raise a PR to the main branch of the bot template repo? https://github.com/flows-network/github-pr-summary
Thanks!

@juntao How abt we give the users of the bot an option or param to enable or disable collapsible commit description?
so that, instead of just one format, users customize how they want it and by setting collapsibleCommitDescription=true they will have the new format

Good idea!
Our current approach is to make the template as simple as possible. If the user wants to make changes, he can change his local copy of the bot source code.
So, let's make it easy to switch between collapsed and expanded commits in the code -- perhaps using variables like MODEL but not expose it as an environment var for the template. Thanks.


ERROR: Could not grant Managed Identity Operator permission for cluster

Extension name (the extension in question)
aks-preview
Bug description
While running az aks pod-identity --resource group $AKS_RG --cluster-name $AKS_NAME --namespace $NS --name $name --identity-resource-id /subscriptions/$SUBID/resourceGroups/$UAI_RG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/$IDENTITY_NAME  on a cluster with configured with User-Assigned Managed Identity there is a check done to verify that the AKS Identity has "Managed Identity Operator" role on the Identity we want to include as pod identity. The issue is that it is not enough with having the role on the Resource group of the Identity ($UAI_RG) but you must have it specifically on the Identity resource $IDENTITY_NAME.
This should be classified as a bug since a resource inherits from its resource group, but the script does take inheritance in account but instead requires the resource to have the role assignment.
To reproduce:

Existing AKS Cluster (v1.21.1) running with User-Assigned Managed Identity
Identity (that you want to add as Pod Identity) created in separate resource group
Run az aks pod-identity add command on AKS cluster

Workarounds:

Assign "Managed Identity Operator" role specifically on resource $IDENTITY_NAME ($UAI_RG is not enough)
Assign "User Access Administrator" role for the AKS UAI on $UAI_RG, thus enabling AKS UAI to grant "Managed Identity Operator" role on the resource

route to service team

@noamichael Seems to be similar to what I experienced, with the role assignment being expected to be on the specific resource rather than granted through inheritance (like it should for you given it is Contributor on the whole RG).
Service team: Any updates on this? My implemented work-around adds access requirements that I'd rather not grant at this specific level.

Having the exact same issue, it still tries to do a role assignment even if the cluster identity has "Managed Identity Operator" on subscription level.
Is there a possibility to fix this, so az aks pod-identity add  can handle if we set "Managed Identity Operator" for the cluster identity on a Subscription/Resource group-level?
Setting "Managed Identity Operator" on the specific identity to be used is not really feasible in my case

@bcho can you look into this?

Ack, this is because in the cli side, we listed only role assignments at identity level scope: https://github.com/Azure/azure-cli-extensions/blob/cc860fcc385634fb8d503240f41922832d082ba8/src/aks-preview/azext_aks_preview/custom.py#L4162 , where scope is the identity id). In this case we are unable to see the role assignments inherited from resource group / subscription.
I am working on a fix for this case, will post updates here.
cc @norshtein for the kubelet identity issue

The same issue for kubelet identity one. It is checking permission using identity resource ID as the scope, and cannot see the inherited permission. Will fix it..

Has this been released to aks-preview yet?

Has this been released to aks-preview yet?

Released with 0.5.34 version.
$ az extension show --name aks-preview --query version
"0.5.34"

Hey!
While trying to solve the issue I used the wrong Manage Identity. Using the same managed identity that was the control plane identity to have Managed Identity Operator at the subscription scope fixed our issue.


add root Collection and subclasses

see also

#5

Actually, why would we have subclasses? collections can have multiple slots for multi-valued, inlined-as-list sets of instances from multiple different classes


Potential README typo fix

I'm quite sure this title should be a singular 'Error handling' or alternatively 'Errors'. The same potential typo is on the Dart SDK side as well.
(I'm not a native speaker though, some samples from other places with this singular form:
https://expressjs.com/en/guide/error-handling.html
https://en.wikipedia.org/wiki/Exception_handling)
I found this project today, definitely trying this out!

I'm also not a native speaker, so I'm not sure which is the correct one.
Google-ing it seems that both are used, for example - https://www.ibm.com/docs/en/integration-bus/10.0?topic=extension-errors-exception-handling, although the singular form seems to be more common.
Let's not change it for now, since I'm planning updates to the SDKs anyway in relation to the ongoing users management improvements in https://github.com/pocketbase/pocketbase/issues/376.
I'll consider changing it when I refactor the README (the link in the TOC section also will have to be updated).


fix Moment.resolve_parameter not resolving all the expressions

Fixes #6778
Fix Moment.resolve_parameters to properly resolve symbolic expressions
Changed equality check from '!=' to 'is not' to handle cases where symbolic parameters are equivalent but not identical objects

Ensured that the method returns a new object only when a variable is resolved, maintaining efficient behavior.

Tested the fix with existing cases for Rx, Ry, and Rz gates to confirm correct behavior when parameters are resolved or remain unchanged.

this doesn't fully solve the issue ... this applies only the first part of my comment #6778 (comment), the second part is also needed

@NoureldinYosri and @dv8081 - I have pushed here the workaround suggested in https://github.com/quantumlib/Cirq/issues/6778#issuecomment-2479822452 and
verified the return-same-moment optimization below is covered by unit tests as before.
This was not happening if we required identity for initial and resolved operations.
PTAL.
https://github.com/quantumlib/Cirq/blob/f2c7330a0d31a2d1d194ed5eaa15f0d5f75baca0/cirq-core/cirq/circuits/moment.py#L281-L282


Drag tests

Description of the problem

Drag models are missing application tests. The QCM void fraction scheme is also missing a test
There are not sufficient unresolved CFD-DEM examples

Description of the solution

Create tests for each drag model as well as for the qcm void fraction scheme
Created two examples: a gas-solid spouted bed and the boycott effect of sedimenting particles

How Has This Been Tested?

No new feature has been introduced therefore nothing needs to be tested for.

Documentation

The documentation files that changed are:
examples/unresolved-cfd-dem/unresolved-cfd-dem.rst
examples/unresolved-cfd-dem//boycott-effect
examples/unresolved-cfd-dem/gas-solid-spouted-bed

Future changes
-N/A
Comments

N/A

All comments have been reviewed and applied :)

@blaisb The branch is already rebased :)


Inline nbd/util/diff

fixes adobe-community/issues#19458
fixes adobe-community/issues#19553

I'd consider extracting instead, as it's used in at least pro2-ui too

Inlining seems fine for now, since we still don't have a clear path for what we want to do with the util stuff inside nbd.

Yeah, ideally we wouldn't be using it at all. I tried switching it out for a 3rd party module and had failing tests. Given the time constraints on this project, I'd like to punt that work until we either pull this out into a separate module and update it everywhere or find a suitable 3rd party substitute.

ok


Connect using SSH tunnel

Everything works fine until you want to connect to a postgres server that sits behind firewall.
The only option in this case is to use ssh tunnels. In order to make it work, user has to use ssh to establish connection with a remote machine. Example:
ssh -Ng -L 5433:localhost:5432<EMAIL_ADDRESS>
This should work on linux and osx but not on windows, which does not have a standard ssh
binary available. I've been digging around to find any good and stable example on how to run
ssh tunnel programmatically with Go. No luck yet.
Having ability to connect to a behind-firewall postgres instance is very useful and i tend to just go ahead
and implement "experimental" support for this feature using good old exec.Command that'll spawn ssh
and establish a tunnel. I have already tried this solution and it works great (except when internet connection is shitty), client code that communicates with postgres server does not have to be changed at all. But it makes pgweb environment-dependent, which is not great.
Would like to get some feedback or even examples on how to get this feature done.
@cbandy @pvh any thoughts?

Closing this issue for now. SSH support might be added some day.


NN179 isn't imported

It's not imported, and we're giving away the NN, that's bad

Was getting discarded due to a bad address, fixed via the spreadsheet


Fix ARM64 build by replacing "aarch64" string with "arm64"

This is a trivial PR that fix build.py on ARM64 architecture.
It appears as a straightforward fix to issue #7390.

This looks good! Could you please sign the CLA?

Done!

@tcheneau Thank you!


Error on MacOS with calling function on sliced arrays

I'm getting a compilation error on MacOS on this function. It compiles just fine in linux :(
I have attached the error output.
error.txt
import numpy as np

#pythran export test(float[][])
def test(x):
    auxFun(x[0:1024,])  # <- Fails
    #auxFun(x)          # <- Compiles

#pythran export auxFun(float [][])
def auxFun(x):
    xx = x[0:1024,]
    X = np.fft.rfft(np.sum(xx,axis=1), 1024, 0)
    return X

Confirmed this is fixed at https://github.com/serge-sans-paille/pythran/commit/c3dd1ef72aa7de51d84ab25ea4d936101d8a5802 on both mac os and linux


Updating docs as per #85 and #88

Docs update to add testing to contributing.md and update documentation on templates.

Signed-off-by: Karthik Ganeshram<EMAIL_ADDRESS>

Update documentation as current information about the template objects is incorrect about the env object in the documentation and included fixes to other references of it.


add kubevirt live migration optimize

Pull Request

[ ] Make sure you have followed Kube-OVN Code Style.

What type of this PR
Examples of user facing changes:

Features
Bug fixes
Docs
Tests

Which issue(s) this PR fixes
Fixes #(issue-number)

@changluyi

这些我们自己加的， 用不到你就删了

Thank you for this enhancement @changluyi, this seems to work pretty well. I'm getting about 600ms of cut-off (measured using ICMP at a rate of 0.01 pps)
Minor fix I just pushed: https://github.com/kubeovn/kube-ovn/pull/4816
It is impossible to test this code on v1.14 if deployed using Helm.


Bag-level predictions do not correspond to unique samples?

Report
Thanks for the great work!
I'm trying to print out bag-level predictions (i.e. for each donor). I'm following the classification with MIL tutorial (https://multimil.readthedocs.io/en/latest/notebooks/mil_classification.html) and after finishing training and calling mil.get_model_output() this is what adata looks like:
AnnData object with n_obs × n_vars = 359595 × 30     obs: "3'_or_5'", 'BMI', 'age_or_mean_of_age_range', 'age_range', 'anatomical_region_ccf_score', 'ancestry', 'assay', 'cause_of_death', 'cell_type', 'core_or_extension', 'dataset', 'development_stage', 'disease', 'donor_id', 'fresh_or_frozen', 'log10_total_counts', 'lung_condition', 'mixed_ancestry', 'sample', 'scanvi_label', 'sequencing_platform', 'sex', 'smoking_status', 'study', 'subject_type', 'suspension_type', 'tissue', 'tissue_coarse_unharmonized', 'tissue_detailed_unharmonized', 'tissue_dissociation_protocol', 'tissue_level_2', 'tissue_level_3', 'tissue_sampling_method', 'total_counts', 'ann_level_1_label_final', 'ann_level_2_label_final', 'ann_level_3_label_final', 'ann_level_4_label_final', 'ann_level_5_label_final', 'ref', '_scvi_batch', 'cell_attn', 'bags', 'predicted_disease'     uns: '_scvi_uuid', '_scvi_manager_uuid', 'bag_true_disease', 'bag_full_predictions_disease'     obsm: 'X_umap', '_scvi_extra_categorical_covs', 'full_predictions_disease'
I'm interested in getting a single prediction/label for each unique sample (namely for each unique value of adata.obs['sample']).
In the tutorial dataset there are 108 unique samples when I print len(np.unique(adata.obs['sample'])).
But when I looked at len(adata.uns['bag_full_predictions_disease']), there are  2816 predictions corresponding to 2816 bags. (Namely, len(np.unique(adata.obs['bags'])) which is 2816). But there should only be 108 unique samples, and hence 108 unique bags.
Is this the right way to get sample-level predictions (i.e. one prediction for each of the 108 unique samples)?
Thanks in advance!
Version information
No response

Hi @patricks-lab! Thanks for you interest in our work and sorry for the late reply! Exactly, so each sample is split up into multiple bags to allow the training in mini-batches. I would take the average of all bags corresponding to a sample to get a unique sample representation.


Use a clean git repo in the production search-api.het.io instance

Following #78 & https://github.com/greenelab/connectivity-search-backend/pull/80, I noticed the following unstaged change in the git repo on search-api.het.io:
diff --git a/dj_hetmech/settings.py b/dj_hetmech/settings.py
index 9b9bdd9..691968f 100644
--- a/dj_hetmech/settings.py
+++ b/dj_hetmech/settings.py
@@ -29,7 +29,7 @@ with open(path) as read_file:
 SECRET_KEY = 'secret_not_yet_set'

 # SECURITY WARNING: don't run with debug turned on in production!
-DEBUG = True
+DEBUG = False

 ALLOWED_HOSTS = ['localhost', 'search-api.het.io', ]

This seems problematic to me. If we change settings.py it could cause the git pull --ff-only to fail. There must be a more robust way of setting DEBUG false? For example, by way of an environment variable or other option passed to django? @dongbohu what do you think?

Good point. I think we can set DEBUG and SECRET_KEY in secrets.yml. If they are not found in secrets.yml, default them to:
SECRET_KEY = 'secret_not_yet_set'
DEBUG = True

Do you want to include that in the PR that you are working on now?

Good point. I think we can set DEBUG and SECRET_KEY in secrets.yml. If they are not found in secrets.yml, default them to:
SECRET_KEY = 'secret_not_yet_set'
DEBUG = True

Do you want to include that in the PR that you are working on now?

I created a local branch on serch-api.ht.io, so its local main branch is in sync with the repo. When your changes are merged, git pull --ff-only should be okay.

I created a local branch on serch-api.ht.io, so its local main branch is in sync with the repo. When your changes are merged, git pull --ff-only should be okay.

Good point. I think we can set DEBUG and SECRET_KEY in secrets.yml. If they are not found in secrets.yml, default them to:

I like this idea.

Do you want to include that in the PR that you are working on now?

Would prefer to have this as a separate PR.

When your changes are merged, git pull --ff-only should be okay.

So the instance is currently not on the main branch?

Good point. I think we can set DEBUG and SECRET_KEY in secrets.yml. If they are not found in secrets.yml, default them to:

I like this idea.

Do you want to include that in the PR that you are working on now?

Would prefer to have this as a separate PR.

When your changes are merged, git pull --ff-only should be okay.

So the instance is currently not on the main branch?

I found DEBUG was True in the evening, so I created a new branch and set it
to False, then deployed it on production. We can have deploy it on "main"
branch after this is fixed.
On Fri, Jan 8, 2021 at 10:20 PM Daniel Himmelstein<EMAIL_ADDRESS>wrote:

Good point. I think we can set DEBUG and SECRET_KEY in secrets.yml. If
they are not found in secrets.yml, default them to:
I like this idea.
Do you want to include that in the PR that you are working on now?
Would prefer to have this as a separate PR.
When your changes are merged, git pull --ff-only should be okay.
So the instance is currently not on the main branch?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/greenelab/connectivity-search-backend/issues/81#issuecomment-757086799,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADTOURLNNCR7OS44GCYMLETSY7DQFANCNFSM4V3GRATA
.

I found DEBUG was True in the evening, so I created a new branch and set it
to False, then deployed it on production. We can have deploy it on "main"
branch after this is fixed.
On Fri, Jan 8, 2021 at 10:20 PM Daniel Himmelstein<EMAIL_ADDRESS>wrote:

Good point. I think we can set DEBUG and SECRET_KEY in secrets.yml. If
they are not found in secrets.yml, default them to:
I like this idea.
Do you want to include that in the PR that you are working on now?
Would prefer to have this as a separate PR.
When your changes are merged, git pull --ff-only should be okay.
So the instance is currently not on the main branch?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/greenelab/connectivity-search-backend/issues/81#issuecomment-757086799,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADTOURLNNCR7OS44GCYMLETSY7DQFANCNFSM4V3GRATA
.

I filed a quick PR #82 for this issue.

I filed a quick PR #82 for this issue.


Country data updates

What has been done

Netherlands - add dynamic formatting mask
Dominican Republic - added formatting mask and area codes
Puerto Rico - added formatting mask

:tada: This PR is included in version 4.3.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Nvidia HEVC Encoding error

Is there any tutorial or additional help on getting h264_nvenc fully operational in dizquetv? h264 files transcode normally with h264_nvenc in ffmpeg, but HEVC files fail and ffmpeg log reports "10 bit encoding no supported" and "No capable devices found".
GPU is PNY Quadro P2200. Latest-nvidia (1.4.3) running in Docker on an Unraid 6.9.2 server.

Same issue here with a P2000 running in Docker on a Ubuntu 20.04 host.  Is there a way to enable debug logging for ffmpeg in the dizquetv docker image?  Maybe that'll help us out a bit.

I think hevc transcoding is a more premium feature not supported in some nvidia cards.
Also you have to enable nvidia runtime in docker.

I think hevc transcoding is a more premium feature not supported in some nvidia cards.
Also you have to enable nvidia runtime in docker.

According to Nvidia documentation, I should be able to encode/decode HEVC 10 bit unless I'm reading that wrong. I've got "runtime: nvidia" in my docker-compose file, and I can transcode h264 content just fine.  It's almost like the GPU isn't showing up correctly to ffmpeg inside docker?

According to Nvidia documentation, the P2000 and P2200 should be able to encode/decode HEVC 10 bit unless I'm reading that wrong. I've got "runtime: nvidia" in my docker-compose file, and I can transcode h264 content via hardware acceleration just fine.

The Plex docker on unraid words perfectly with the p2200; it transcodes HEVC 10 bit with no problem. I followed all available instructions for getting a nvidia GPU working in docker (including runtime=nvidia).

It's almost like the GPU isn't showing up correctly to ffmpeg inside docker?

This looks like the case for me. ffmpeg log in dizquetv reports "10 bit encoding no supported" and "No capable devices found".

I think the error message is being misinterpreted. When you use the encoder h264_nvenc and the message says 10 bit encoding no supported it is saying that the h264 encoder does not support encoding 10-bit content, which is true for all hardware encoders; only software encoders support 10-bit h264. Simply changing to hevc_nvenc should get it going, as the P2000 supports HEVC 10-bit encoding according to https://developer.nvidia.com/video-encode-and-decode-gpu-support-matrix-new


Deploy PetClinic microservices using azd

Deploy PetClinic microservices using azd
Current problems:

application name is not aligned. (spring-petclinic-customer-service -> customer-service)
DB access still have issue, will investigate further.

Please fix the check failure:

Please fix the check failure:

Please fix the check failure:

This failure is expected, because it's fixed word in Env Var. Is there any way to escape this detection?
optional:configserver:XXX


Cellpose

Right now, we only allow cellpose to treat every channel individually, but it also has the capacity to do full cell segmentation based on a nuclear and a membrane marker. We need to be able to apply both modes.

Also, cellpose somehow broke in the most recent release, needs to be addressed in one update

Seems like the pip version is okay, but the conda one isn't, need to investigate further

We should also enable users to upload custom-trained models.

The possibility of doing full-cell segmentation has been addressed in #82. Custom-trained models still need to be implemented.

Users can simply use custom models by providing the path to the model instead of the default 'cyto3' model. I will not include this in the docs for now, as cellpose already has quite extensive documentation on how to do this, see here. In addition, when fine-tuning, users use the cellpose GUI anyway, so they can also just run the segmentation on there directly and simply upload the resulting segmentation masks into the spatialproteomics object.


Add support for iojs

Add support for iojs 2.x by referencing Telerik forks of Fibers and
NodObjC packages.

:+1:

:+1:


Add placeholders for internal imports.

This is to assist with importing changes to the internal repository.

+cc @damienmg


Feature discussion: support for custom exporters

TL;DR What do you think of adding support for custom exporters?
Background
Using the ConsoleLogRecordExporter with pino-opentelemetry-transport, I noticed that the colorization doesn't work locally. This happens because the logger is in a worker thread and process.stdout is not a TTY.
I opened open-telemetry/opentelemetry-js#4524 to add an option to ConsoleLogRecordExporter that would force colorization. However, the OpenTelemetry team suggested implementing a custom exporter as they do not want to expand the API for ConsoleLogRecordExporter (which currently takes no options).
Ultimately, I will likely stick with my workaround of using process.env.FORCE_COLOR=1. But this is what got me thinking about otlp-logger supporting custom exporters.
Design
A custom exporter just needs to implement the LogRecordExporter interface. The API could look something like this:
const logger = getOtlpLogger({
  loggerName: 'my-app',
  resourceAttributes: {/* ... */},
  serviceVersion: '1.0.0',
  logRecordProcessorOptions: {
    recordProcessorType: 'batch',
    exporterOptions: {
      path: path.join(__dirname, 'my-exporter'), // or just 'name-of-custom-exporter-package'
      export: 'LogExporter', // optional, assumes default export when omitted
      options: {/* ... */} // optional
    }
  }
})

Hello @10xLaCroixDrinker,
do you think this would complicate the interface or confuse the users?
My understanding of the spec is that a finite number of exporters match the protocols supported by the collectors. I could be wrong, so please correct me if you are aware of counterexamples in the wild.
Even if that is not 100% the case, I assume that the average user would expect and use those three, so I would like to prioritize that over other use cases. In general, I am open to adding this if does not degrade the standard use-cases.


fix(openapi): use existing spec path to avoid overwrite path

What this PR does / why we need it:
If existing spec path is found, do not init a new one.
Found the bug when writing readme; If we define multiple methods for the same url, only the last one exists in final api spec, all others will be overwritten.
Which issue(s) this PR fixes (optional, close the issue(s) when PR gets merged):
Special notes for your reviewer:
/cc @liubog2008
Release note:

NONE

@liubog2008 can you add more unit test in the package (also covers this bug)?

There is a fatal bug... I'll fix it today = =
This PR can't fix the real problem

see #137

SGTM
/close


add valid uri prefix

#6805
recent uri transformer change caused the issue, now it is required to pass in a valid uri instead of a guid, otherwise a connection not found error would occur when connection is established. fixing the occurrence for the profiler feature.

agreed. I don't have much background on why we are using uri instead of just guid for connections.


The terminal process "cmd.exe /k" terminated with exit code: 1.

VS Code Version: 1.54.1
OS Version: Windows 10 20H2 Build 19042.572

Steps to Reproduce:

Open terminal
Execute help command
Execute exit command

My configuration for terminal
Settings
  "terminal.integrated.shell.windows": "cmd.exe",
  "terminal.integrated.shellArgs.windows": "/k D:\\Root\\Server\\htdocs\\commands.bat",

commands.bat file content
@echo off

@REM System---------------------------------------------------------------------------

doskey ls=dir /w /ogn /p
doskey ll=dir /a /ogn /p
doskey cp=copy $*
doskey mv=move $*

@REM END System-----------------------------------------------------------------------

Does this issue occur when all extensions are disabled?: Yes

@meganrogge Another thing when I user Command Prompt with this setting
"terminal.integrated.shellArgs.windows": "/k D:\\Root\\Server\\htdocs\\commands.bat",

Its adds weird padding before it even when I run cls command to clear any previous lines
Steps to Reproduce:

Change setting to "terminal.integrated.shell.windows": "cmd.exe", and open first terminal
Remove "terminal.integrated.shell.windows": "cmd.exe", to use default Power Shell again
Split terminal to get side by side Command Prompt and Power Shell

@Tyriar Any info for this issue ?

@meganrogge Any info about this ?

I'm unable to reproduce this. When you click Select Default Shell, what's the powershell path listed there? Does it reproduce in insider's?

Oh that's the wrong setting sorry, it was terminal.integrated.showExitAlert


feat: Avoid line numbers in neo-minimap window

Hi !
Is there a simple way to avoid displaying line numbers in the neo-minimap window ?
It would be nice to have an option to disable this.

It's not possible in the current version. I'll take a look at this.

No probems and no rush !


UVI Request

--- UVI JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from v2.6.34 to before v4.19.199",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=dae52d009fc950b5c209260d50fcc000f5becd3c",
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ec731c6ef564ee6fc101fc5d73e3a3a953d09a00"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "dae52d009fc950b5c209260d50fcc000f5becd3c",
      "note": "introduced"
    },
    {
      "type": "commit",
      "value": "ec731c6ef564ee6fc101fc5d73e3a3a953d09a00",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "media: ngene: Fix out-of-bounds bug in ngene_command_config_free_buf()\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v4.19.199 by commit ec731c6ef564ee6fc101fc5d73e3a3a953d09a00, it was introduced in version v2.6.34 by commit dae52d009fc950b5c209260d50fcc000f5becd3c. For more details please see the references link."
}
--- UVI JSON ---

This issue has been assigned UVI-2021-1001361


Pantry integration

The branch cannot be automatically merged, so I will have to resolve the conflicts in assets/js/recipe-breakdown.js

The merge conflict is resolved, with both parts of the code working just fine together.


Unexpect strerror() output (IDFGH-4295)

Environment

Module or chip used: ESP32-WROOM-32E
IDF version: v4.3-dev-1901-g178b122c145c
Build System: idf.py
Compiler version: xtensa-esp32-elf-gcc (crosstool-NG esp-2020r3) 8.4.0
Operating System: Linux
Power Supply: USB

Problem Description
I notice the issue because I try to convert 113 errno to human readable string by
strerror(113), and I got "Software caused connection abort".
But in lwIP, the errno 113 is #define  EHOSTUNREACH   113  /* No route to host */.
So I would expect strerror(113) return "No route to host"
Expected Behavior
expect strerror(113) return "No route to host"
Actual Behavior
strerror(113) return "Software caused connection abort"
Code to reproduce this issue

{
        int i;
        for (i = 1; i < 128; i++)
        printf("%d %s\r\n", i, strerror(i));
}

Run above code snip on ESP32, I got:
1 Not owner
2 No such file or directory
3 No such process
4 Interrupted system call
5 I/O error
6 No such device or address
7 Arg list too long
8 Exec format error
9 Bad file number
10 No children
11 No more processes
12 Not enough space
13 Permission denied
14 Bad address
15
16 Device or resource busy
17 File exists
18 Cross-device link
19 No such device
20 Not a directory
21 Is a directory
22 Invalid argument
23 Too many open files in system
24 File descriptor value too large
25 Not a character device
26 Text file busy
27 File too large
28 No space left on device
29 Illegal seek
30 Read-only file system
31 Too many links
32 Broken pipe
33 Mathematics argument out of domain of function
34 Result too large
35 No message of desired type
36 Identifier removed
37
38
39
40
41
42
43
44
45 Deadlock
46 No lock
47
48
49
50
51
52
53
54
55
56
57
58
59
60 Not a stream
61 No data
62 Stream ioctl timeout
63 No stream resources
64
65
66
67 Virtual circuit is gone
68
69
70
71 Protocol error
72
73
74 Multihop attempted
75
76
77 Bad message
78
79
80
81
82
83
84
85
86
87
88 Function not implemented
89
90 Directory not empty
91 File or path name too long
92 Too many symbolic links
93
94
95 Operation not supported on socket
96
97
98
99
100
101
102
103
104 Connection reset by peer
105 No buffer space available
106 Address family not supported by protocol family
107 Protocol wrong type for socket
108 Socket operation on non-socket
109 Protocol not available
110
111 Connection refused
112 Address already in use
113 Software caused connection abort
114 Network is unreachable
115 Network interface is not configured
116 Connection timed out
117 Host is down
118 Host is unreachable
119 Connection already in progress
120 Socket already connected
121 Destination address required
122 Message too long
123 Unknown protocol
124
125 Address not available
126 Connection aborted by network
127 Socket is already connected

@AxelLin LwIP provides its own errno definitions only if LWIP_PROVIDE_ERRNO macro is defined. This shouldn't be the case in ESP-IDF, errno values should come from newlib. The value used for EHOSTUNREACH in newlib is different, but it is consistent with strerror output:
printf("%s\n", strerror(EHOSTUNREACH));

prints "Host is unreachable".
If you are seeing that EHOSTUNREACH is expanded to value 113 by the preprocessor somewhere, this is unexpected. Please give more details if this is the case.

Use examples/protocols/sockets/tcp_client snip code as example.
I only made below change in the example code:
-            ESP_LOGE(TAG, "Socket unable to connect: errno %d", errno);
+            ESP_LOGE(TAG, "Socket unable to connect: errno %d %s", errno, strerror(errno));

I make the example application to connect an unreachable IP:
I (3564) esp_netif_handlers: example_connect: sta ip: <IP_ADDRESS>, mask: <IP_ADDRESS>, gw: <IP_ADDRESS>
I (3564) example_connect: Got IPv4 event: Interface "example_connect: sta" address: <IP_ADDRESS>
I (3574) example_connect: Connected to example_connect: sta
I (3574) example_connect: - IPv4 address: <IP_ADDRESS>
I (3584) example: Socket created, connecting to <IP_ADDRESS>:3333
W (3594) wifi:idx:1 (ifx:0, d8:47:32:7c:34:ba), tid:0, ssn:0, winSize:64
E (12844) example: Socket unable to connect: errno 113 Software caused connection abort
I would expect the strerror(errno) shows "No route to host" in this case.
So I'm confused, and would like to check the errno and the corresponding error strings.
Did I miss something?

Looks like it will return errno 118 (Host is unreachable) only when the netif is down.

Just for reference, https://github.com/espressif/newlib-esp32/blob/master/newlib/libc/include/sys/errno.h

Hi, did you solve this issue? I'm having the same problem!


For each fund or lab, add a field in the form for the guide url. If exist, display a button on the fund/lab page as well as the application with link.

UX Tasks

[ ] Mockup UI

I should add that the button on the form page is sticky, like the apply button elsewhere on the site.

as discussed with @tmsndrs:
The application guide button will link to the specific page within the guide for that fund. There will be a new field on the public page to allow the admin to point to the correct page.
The alternative is linking to a more generic landing page for the guide and allowing the User to navigate from there.
Perhaps we need a better link to the guide across the site generally?

See all the other tickets with the label guide as well

@danblah Is this needed on top of the per field help links?

@frjo Are you asking whether each field will need a help link/button to the guide url? Or where the button should appear on the application? Or a completely different question...

@fourthletter The help link per field is a done deal and will get deployed soon.
The question is about the need for a help link for the page/form on top of that.

@saoun This is now on test for testing. I have added one example at this fund, https://test-apply.opentech.fund/admin/pages/726/edit/
The resulting application guide link/button can be seen here:

https://test.opentech.fund/funds/rapid-response-fund/ (the public fund page)
https://test-apply.opentech.fund/rapid-response-fund/ (the application form)

So you add the guide link on the fund or lab and it shows up on the public page and the application form for the fund or lab.


stats: adds metrics sink with ack

Description: Replace the metrics sink from the envoy one to a custom one. The custom metrics sink comes with ack function on the grpc stream.
Risk Level: High
Testing: Local and ci unit tests and integration tests
Co-authored-by: Jose Nino<EMAIL_ADDRESS>Signed-off-by: Jingwei Hao<EMAIL_ADDRESS>

re-opened as https://github.com/envoyproxy/envoy-mobile/pull/1183


Advanced split of data samples among partners

Closes 108

I just resolved simple conflicts (following the recent PR merge).


[Gssoc'21] Not good for mobile view

Describe the bug
Every thing is just too small for mobile version

i want to make them large and responsive like this . I have to write media queries.

To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

Okay @arpit456jain

@vigneshshettyin there is a lot of use of this in the website (wrong use of comment brackets)

can I correct them or they are here intentionally.??

Correct it @arpit456jain

ok @vigneshshettyin

@vigneshshettyin kindly review my PR

@vigneshshettyin kindly review my PR

Okay @arpit456jain


migrate builder.testbot.netcore21 to xunit

#4039

Hi @mrivera-ms, we reviewed this issue and the project is already using xUnit so there's no migration needed. Thanks

Thank you @denscollo . Closing this issue.


TJTelecomManager  usage

Can someone show an example of how to use TJTelecomManager?
I try to make a call to a number, wait few seconds and terminate the call, also I need to get some status of the call: no answer, answered, invalid number and any types of available statuses.

This is how you would obtain an instance of it:
uses
  System.Permissions,
  Androidapi.JNI.JavaTypes, Androidapi.JNI.GraphicsContentViewText, Androidapi.Helpers, Androidapi.JNI.Net, Androidapi.JNI.Os,
  DW.Androidapi.JNI.Telecom;

function GetTelecomManager: JTelecomManager;
var
  LObject: JObject;
begin
  Result := nil;
  LObject := TAndroidHelper.Context.getSystemService(TJContext.JavaClass.TELECOM_SERVICE);
  if LObject <> nil then
    Result := TJTelecomManager.Wrap(LObject);
end;

To place a call:
function Call(const ANumber: string): Boolean;
var
  LManager: JTelecomManager;
  LUri: Jnet_Uri;
begin
  Result := False;
  LManager := GetTelecomManager;
  if LManager <> nil then
  begin
    LUri := TJnet_Uri.JavaClass.Parse(StringToJString('tel:' + ANumber));
    LManager.placeCall(LUri, TJBundle.JavaClass.EMPTY);
  end;
end;

..and call this function this way:
  Call('123456789'); // for example

Note that making calls requires the CALL_PHONE permission, which can be set in the Dangerous Permissions section of the Permissions item of the Project Options. As it is classified as dangerous, you will need to request the permission at runtime, e.g:
procedure RequestCallPermissions;
begin
PermissionsService.RequestPermissions(['android.permission.CALL_PHONE'],
procedure(const APermissions: TClassicStringDynArray; const AGrantResults: TClassicPermissionStatusDynArray)
begin
if AGrantResults[0] = TPermissionStatus.Granted then
begin
// Can now make calls
end;
end
);
end;
I haven't actually tested this code - I am just going by the documentation: https://developer.android.com/reference/android/telecom/TelecomManager

Thanks for the example.
How to terminate a call after some time?
And how to get status of calls (invalid number, no answer from destination, answered, and any other types of statuses)?

How to terminate a call after some time?

Use the endCall method, e.g:
  LManager.endCall;

And how to get status of calls (invalid number, no answer from destination, answered, and any other types of statuses)?

The easiest way would be to use Delphi's built-in phone dialer service. The details for handling changes in call state are here: https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Mobile_Tutorial:Using_the_Phone_Dialer_on_Mobile_Devices(iOS_and_Android)#Detecting_the_Call_State_Changes
In future, for just asking questions, please use an online forum or chat room as detailed here: https://github.com/DelphiWorlds/HowTo/blob/main/Readme.md e.g. Delphi Praxis etc. You will have a much wider audience of developers to answer your questions

Thanks for the reply.
Please don't get upset about my questions, of course I also used google searches and consulted all kinds of resources.
The question regarding the status of the call was to find out if there are other data available besides those exposed in the documentation and the examples in FMX.
Now I have answered my questions, for which I thank you.


Look at typeshed for better autocompletion of standard library types

For better autocompletion of standard library types, we should refer to typeshed. For example enumerate should be properly typed as https://github.com/python/typeshed/blob/6d6250f10963b8ad7aeeba387c8d48dc9d0cb92b/stdlib/builtins.pyi#L910.
I didn't do this yet in #64.

Originally posted by @dlech in https://github.com/pybricks/pybricks-api/commit/a0ea0d8ca0ad3ff8e055a30ae77a682f06ca3dfd#commitcomment-53598577

Now that we have separated the docstrings from the actual typing, this seems fixed.
If any particular types need improving, we can do that now without altering the docs. The specific change to range above has already been reverted to the correct class type.


website: Adjust height of header container

This modifes the view height of the header container to be 50% insted of 100%. This makes the website much more useable.
Signed-off-by: Kyle Mestery<EMAIL_ADDRESS>

Examples of how this now looks:


Source control shouldn't show nested repo that has been .gitignored

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.74.1 1ad8d514439d5077d2b0b7ee64d2ce82a9308e5a x64
OS Version: Arch Linux

Steps to Reproduce:

Open a git repo
Clone another repo inside of it
Add the repo from 2) to 1)'s .gitignore
Open the source control tab
Notice the second repo appearing there, but it is .gitignored

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding, and happy coding!


Assertion functions do not work with arrow functions

Bug Report
Assertion functions do not work when using arrow functions.
🔎 Search Terms
ts2775, arrow functions, assertion functions
🕗 Version & Regression Information
Assertion functions were introduced in 3.7. The behavior has been the same since that version.
This is the behavior in every version I tried, and I reviewed the FAQ for entries about it.
⏯ Playground Link
Playground link with relevant code
💻 Code
function assertOne(val: unknown): asserts val is string {
  if (typeof val !== "string") {
    throw new Error("Not a string!");
  }
}

const assertTwo = (val: unknown): asserts val is string => {
  if (typeof val !== "string") {
    throw new Error("Not a string!");
  }
}

function main(str: unknown) {
  assertOne(str); // works
  assertTwo(str); // "Assertions require every name in the call target to be declared with an explicit type annotation. (ts2775)"
  return str;
}

🙁 Actual behavior
assertOne() works. assertTwo() (although nearly identical) shows the following type checking error:
Assertions require every name in the call target to be declared with an explicit type annotation. (ts2775)

🙂 Expected behavior
assertTwo() should not show any type checking error.

Duplicate of #34523

Thanks @xiBread!
This is indeed a duplicate, so I will close.


Fix Mail action in "Send to" from the original story view not including the URL

After 1bbb0fc7e04b90c02305335db00d3ffc7fcf0905 the original URL is no longer included as a separate activity item, so we need to include it in the mail body directly.
Mailing from the story view directly not affected, there we include the URL in the text (done by NewsBlurAppDelegate's showSendTo:withUrl:authorName:text:title:feedTitle:images:)

What about a subject? Do you think we should lose the original story's title?

Subject appears to be handled by subjectForActivityType:

I wish that were true, but in my testing it doesn't show up. Each share extension works differently and Mail seems to ignore subjectForActivityType: and uses the title key from the itemForActivityType dict.

I'm still seeing the subject show up on iOS 9.2 when running a build with this commit.

Ok, it's all set for v5.1, which includes four themes (and a new dark mode), iPad pro support, and numerous smaller changes. Expect it around mid to late January.


unable to get base currency and quote currency from currencyPair after today's build

HI,
seems like might be related to the latest 4.0.0-SNAPSHOT  on https://oss.sonatype.org/content/repositories/snapshots with today's time stamp.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project cointrader: Compilation failure: Compilation failure:
[ERROR] /Users/douggieclarke/Development/cointrader/src/main/java/org/cryptocoinpartners/schema/SpecificOrder.java:[140,87] cannot find symbol
[ERROR] symbol:   variable baseSymbol
[ERROR] location: class com.xeiam.xchange.currency.CurrencyPair
[ERROR] /Users/douggieclarke/Development/cointrader/src/main/java/org/cryptocoinpartners/schema/SpecificOrder.java:[141,61] cannot find symbol
[ERROR] symbol:   variable counterSymbol
[ERROR] location: class com.xeiam.xchange.currency.CurrencyPair

@baffo32 Any ideas?

Hi
It is odd, the fields are public in the com.xeiam.xchange.currency.CurrencyPair class:
public final String baseSymbol;
public final String counterSymbol;

here is the call I am making:
limitOrder.getCurrencyPair().counterSymbol.toUpperCase() where limitorder is an instance of com.xeiam.xchange.dto.trade.LimitOrder

wonder if the merge did not pick evertyhing up, in source I see

public final String baseSymbol;
public final String counterSymbol;

public final Currency base;
public final Currency counter;

trying to build from source.

seems to work for source, might have been a classh in my repo

I intended to delete the baseSymbol and counterSymbol fields and replace them with base and counter in the patch merged thus morning.  Will check

I don't find a 4.0.0-SNAPSHOT on https://oss.sonatype.org/content/repositories/snapshots .  But yeah I changed counterSymbol/baseSymbol to counter/base so code using them will need an update.

It's definitely there: https://oss.sonatype.org/content/groups/public/com/xeiam/xchange/xchange-core/4.0.0-SNAPSHOT/

Thanks, I found it on sonatype.  Looks like the code usually the library just needed to be updated.
I couldn't reproduce the issue using intellij.  I think whatever IDE was being used perhaps had some decompilation cached from the snapshot jar.


Xml contains Chinese, which will become garbled

This bug is annoying, can you fix it?

中文乱码是自带print.lua 导致的，用自己项目的log库就可以了嘛！

Closing due to lack of context and detailed information.


Encode Hackathon - create an example NFT marketplace (1155 and 721 paid using HRC20/ONE)

Description
Related to the Encode Hackathon, this bounty is for promotion of the Harmony Marketplace SDK and to
Using the Harmony Marketplace SDK, create an NFT Marketplace to allow a user to buy/sell HRC721 and HRC1155 tokens using HRC20 tokens or ONE tokens
Context
The purpose of this bounty is to demonstrate the creation of a marketplace using the SDK. Create a project that will showcase the SDK to be used to create a functional NFT Marketplace that supports the listing of NFT-standard tokens (1155/721) and the purchase of tokens using HRC20/ONE tokens.
Stretch goal: lock up 10% of the value of ONE tokens on-chain to be staked for each purchase that is sent to the token lister in ONE year. If listed in other tokens, swap the tokens to ONE first
Acceptance Criteria

[ ] Demonstrate the use of the SDK to integrate with the blockchain and the HRC standards
[ ] User registers their address
[ ] User buys HRC721/HRC1155 token using ONE
[ ] User buys HRC721/HRC1155 token using HRC20 token
[ ] User sells HRC721/HRC1155 token to sell for ONE
[ ] User sells HRC721/HRC1155 token to sell for HRC20 token
[ ] User sets the royalties percentage
[ ] Dapp to capture royalties for platform owner and original creator
[ ] Demo video
[ ] Opensource (MIT / BSD) github
[ ] Github documentation describing the use of SDK to integrate the above
[ ] Working website that can be demonstrated

Reward
$3000 USD in ONE tokens

@jacksteroo please review and confirm

Confirmed.
Working website must be of production quality, similar to marketplaces such as OpenSea, NFTKey, TofuNFT, Magic Eden, NFTically, etc.  Demo video should be informational, think Coursera or Udemy, limit to 10 minutes.


Update tag for new cmake version requirement

Update tag for new commit after merging https://github.com/ros2/Mimick/pull/15
Testing --packages-up-to rcutils

Linux
Linux-aarch64
macOS
Windows

Signed-off-by: Stephen Brawner<EMAIL_ADDRESS>

Windows is yellow because the cmake version warnings are now only caused by googletest. Importantly the one caused by Mimick has been resolved.


The last batch seems to be dropped when extracting flows.

NOTE:
I have searched related issues but cannot get the expected help.
I have carefully read docs in this repo.
Hi, there. I've encountered a problem when trying to extracting flows using denseflow. My bash code is shown below:
denseflow /home/yangtan/HDD2/dataset/IKEA_ASM/ANU_ikea_dataset_video_480p/Lack_Side_Table/0012_oak_table_02_01_2019_08_16_11_20/dev3/images/scan_video.avi -o=/home/yangtan/HDD2/dataset/IKEA_ASM/ANU_ikea_dataset_video_480p/Lack_Side_Table/0012_oak_table_02_01_2019_08_16_11_20/dev3/flows -b=20 -a=tvl1 -s=1 -v
and the output in terminal is as following:
"/home/yangtan/HDD2/dataset/IKEA_ASM/ANU_ikea_dataset_video_480p/Lack_Side_Table/0012_oak_table_02_01_2019_08_16_11_20/dev3/images/scan_video.avi", frames ≈ 2420
push frames gray, video_flow_idx 0, batch_size 512
push frames gray, video_flow_idx 511, batch_size 512
push frames gray, video_flow_idx 1023, batch_size 512
push frames gray, video_flow_idx 1535, batch_size 512
frames_gray_queue full, waiting...
push frames gray, video_flow_idx 2047, batch_size 372
loaded video "/home/yangtan/HDD2/dataset/IKEA_ASM/ANU_ikea_dataset_video_480p/Lack_Side_Table/0012_oak_table_02_01_2019_08_16_11_20/dev3/images/scan_video.avi", 2420 frames
load frames exit.
1 videos (2420 frames, 2419 tvl1 flows) processed, using 20.238s, decoding speed 119.577fps, flow speed 119.528fps

This video was processed before the flows' extraction. It was 1920x1080 with 25fps at first and was adapted to 720x480 with 16fps later using ffmpeg.
The problem is that there are only 2047x2 flow files (flow_[x/y]_00000.jpg ~ flow_[x/y]_02046].jpg) in my output directory. It seems that the last batch whose batch_size is 372 has been dropped. Do you have any possible ideas to get this problem solved?

Did you solve this issue ??

Did you solve this issue ??
Hi, actually I didn't solve it. However, I found that maintaining the original resolution of the video (extracted frames) can alleviate this problem to some extent.

Did you solve this issue ??

Hi, actually I didn't solve it. However, I found that maintaining the original resolution of the video (extracted frames) can alleviate this problem to some extent.


python38Packages.azure-mgmt-recoveryservices: 1.0.0 -> 2.0.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python38Packages.azure-mgmt-recoveryservices is: "This is the Microsoft Azure Recovery Services Client Library"
meta.homepage for python38Packages.azure-mgmt-recoveryservices is: "https://github.com/Azure/azure-sdk-for-python"
meta.changelog for python38Packages.azure-mgmt-recoveryservices is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

Warning: a test defined in passthru.tests did not pass

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

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

found 2.0.0 with grep in /nix/store/w47wqm6021x3vvhk9ac3s43d3mflp3w7-python3.8-azure-mgmt-recoveryservices-2.0.0

found 2.0.0 in filename of file in /nix/store/w47wqm6021x3vvhk9ac3s43d3mflp3w7-python3.8-azure-mgmt-recoveryservices-2.0.0

directory tree listing: https://gist.github.com/8ca9f2facad434eec8aac66f26beb40d

du listing: https://gist.github.com/08d23ed739d9208c5851d64a8c65469d

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

12 total rebuild path(s)

3 package rebuild(s)

3 x86_64-linux rebuild(s)
3 i686-linux rebuild(s)
3 x86_64-darwin rebuild(s)
3 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
azure-cli
python38Packages.azure-mgmt-recoveryservices
python39Packages.azure-mgmt-recoveryservices

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/w47wqm6021x3vvhk9ac3s43d3mflp3w7-python3.8-azure-mgmt-recoveryservices-2.0.0 \
  --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 python38Packages.azure-mgmt-recoveryservices https://github.com/r-ryantm/nixpkgs/archive/49a6095090bc6be2082f24fa45232b01f017ef3e.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/w47wqm6021x3vvhk9ac3s43d3mflp3w7-python3.8-azure-mgmt-recoveryservices-2.0.0
ls -la /nix/store/w47wqm6021x3vvhk9ac3s43d3mflp3w7-python3.8-azure-mgmt-recoveryservices-2.0.0/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 @mwilsoncoding for testing.

error: hash mismatch in fixed-output derivation '/nix/store/044yy26qyl2jza5zi9hrv9dwy5hbwsgj-azure-mgmt-recoveryservices-1.0.0.zip.drv':
         specified: sha256-6ueUdgIyI5+KkyjV3hdAVl/3DRYSopIclgl0a6VnHmw=
            got:    sha256-q4cQjA1c4n2AWDtL+tlmrQcEncvA6awoxkqmu9rmTiI=

why does it try to download 1.0.0


fix: apply changes to the latest version

Pull Request

[x] Make sure you have followed Kube-OVN Code Style.

What type of this PR
Examples of user facing changes:

Bug fixes

c.config.KubeOvnClient.KubeovnV1().Subnets().Update should be applied on the latest subnet, func formatSubnet should return the latest version subnet（same problem to vlan and vpc update）
Which issue(s) this PR fixes
WHAT

🤖[deprecated] Generated by Copilot at 4f0444f
Refactor and optimize some functions related to subnet, vlan, vpc, and vip initialization and status update in pkg/controller. Reduce unnecessary deep copies and controller arguments, and make the functions return updated objects. Use the Update method instead of the deprecated PatchSync method in the e2e test.

🤖[deprecated] Generated by Copilot at 4f0444f

Oh we're the coders of the Controller struct
And we make it better with every pull request
We refactor and update with skill and with zest
Heave away, me hearties, heave away

HOW

🤖[deprecated] Generated by Copilot at 4f0444f

Change formatSubnet, calcDualSubnetStatusIP, and calcSubnetStatusIP functions to methods of the Controller struct and remove the c parameter (link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link). This makes the code more consistent and concise, and avoids passing the controller as an argument to every function that needs it.

hi @oilbeater could you help review this? thanks

Nice catch! @zcq98


ENYO-5576: QA sample for Scroller with resizable items

Checklist

[x] I have read and understand the contribution guide

[x] A CHANGELOG entry is included

[ ] At least one test case is included for this feature or bug fix

[x] Documentation was added or is not needed

[ ] This is an API breaking change

Issue Resolved / Feature Added
QA Sample for Scroller with resizable items.
Resolution
Update the qa-sample to verify Scroller with resizable items.
Links
[ENYO-5576]
[GT-25618]

@Sangwook-Lee
Today, the commit changing sampler directories was merged to develop branch. Please refresh your branch.


Add support for a UserSelectionProvider into the Bolt transport

As discussed, something along what SDN6 provides:
@API(status = API.Status.STABLE, since = "6.2")
@FunctionalInterface
public interface UserSelectionProvider {

	UserSelection getUserSelection();

	/**
	 * A user selection provider always selecting the connected user.
	 *
	 * @return A provider for using the connected user.
	 */
	static UserSelectionProvider getDefaultSelectionProvider() {

		return DefaultUserSelectionProvider.INSTANCE;
	}
}

enum DefaultUserSelectionProvider implements UserSelectionProvider {
	INSTANCE;

	@Override
	public UserSelection getUserSelection() {
		return UserSelection.connectedUser();
	}
}

While at it, consider adding a corresponding database selection provider as well.
cc @meistermeier

Merge with 517288fb and c16bcd48


Add candle, CNDL

Hi! What is your PR about?

[ ] Add or edit a skin
[✅ ] Add a custom domain for your space
[ ] Add an alias to migrate your space

I don't think you should edit this file, you can reopen the PR if needed.


[Popover] Unable to preventDefault inside passive event listener invocation.

Describe the bug
console error : Unable to preventDefault inside passive event listener invocation.
To Reproduce
Steps to reproduce the behavior:

Go to https://www.radix-vue.com/components/popover.html
F12

Screenshots If applicable, add screenshots to help explain your problem.
https://github.com/radix-vue/radix-vue/assets/40693636/15e31cfd-94c6-4a9b-861f-7bd74ddefe31

@onmax  this PR https://github.com/radix-vue/radix-vue/pull/251 does fix the issue with preventDefault right? 😁 By using the useEmitsCancellableEvents