[Suggestion] Implement session caching clearing method

In case I change the password, the session is still cached and the old session will be used. I suggest that you implement a method that can be called any time when the user or password is changed, that will clear the session variable.
Thank you very much!

Also, I made this little change (in the login method), to get if the used login credentials are incorrect:
$response = Request::post(Endpoints::LOGIN_URL, $headers, ['username' => $this->sessionUsername, 'password' => $this->sessionPassword]);             if ($response->code !== 200) {                 throw new InstagramAuthException('Response code is ' . $response->code . '. Body: ' . $response->body . ' Something went wrong. Please report issue.');             }             else             {                 if($response->body->authenticated != '1')                 {                     throw new InstagramAuthException('Invalid login credentials used.');                 }             }

@sfatfarma hello!
Thank you for issue.
Yes it may be useful.
If you have time feel free to create pull request

FYI. If you have changed password you can force login by providint true in login method.
https://github.com/postaddictme/instagram-php-scraper/blob/master/src/InstagramScraper/Instagram.php#L509

ok thanks :)

Another (noob) question: why do you require the login to be called when public content can be viewed on Instagram also if the user is not logged in (valid for the ?__a=1 paramenter, also)?

@statfarma visit https://www.instagram.com/explore/tags/instagram from a browser that is not signed in!

@jetonr tried it and it displays pictures and info. The single difference is the sign in popup... I'm confused

Now again public content can be viewed without loggin in! @raiym

yup

@jetonr @sfatfarma thanks.
It is weird. Let's wait for some time to see what happens next.


Predict Sept 2017 tweet test data. Plot graph to compare sentiments and BTC price

Hackathon Event Details
https://www.meetup.com/Machine-Learning-Tokyo/events/253704639/
What was done

Applied trained Bi-LSTM model to predict Sept 2017 tweet test data.
Vectorized Sept 2017 tweet test data.
Compared predicted sentiments with BTC price. Plotted from 2017-09-01T00:00:00 UTC to 2017-09-01T01:29:00 UTC.

Thanks so much, John!

You're welcome, Suzana!
No worries, seriously I don't mind cleaning data because it is like solving puzzles!
Anyway, have a good week. See you this coming Saturday!
Cheers,
John

From: Suzana Ilić<EMAIL_ADDRESS>Sent: Monday, September 3, 2018 11:02 PM
To: suzana-ilic/quantifying_hype
Cc: John Lau; Author
Subject: Re: [suzana-ilic/quantifying_hype] Predict Sept 2017 tweet test data. Plot graph to compare sentiments and BTC price (#2)
Thanks so much, John!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsuzana-ilic%2Fquantifying_hype%2Fpull%2F2%23issuecomment-418124506&data=02|01||5181e4cd6179445b8d0e08d611a5dc26|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636715801393760875&sdata=pLoWafzjLNf%2Bio1kbpbzgHAOqj4%2Bq9CR3Zf6dIZ64rI%3D&reserved=0, or mute the threadhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAutbH7yGzx0UlG89LiU7f-vxrIJ8oSYks5uXTZpgaJpZM4WXpeV&data=02|01||5181e4cd6179445b8d0e08d611a5dc26|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636715801393760875&sdata=4kKS5z%2FlHZ%2BgVxBYjjfJXBwyiWQNaOdWmWGg6rOahnE%3D&reserved=0.


Azure File Sync firewall whitelist URLs for India regions is missing

Azure File sync service region availability shows it is available in India regions
https://docs.microsoft.com/en-us/azure/storage/files/storage-sync-files-planning#region-availability
But the exact Azure file sync URL in region wise guidance is missing in the list: https://docs.microsoft.com/en-us/azure/storage/files/storage-sync-files-firewall-and-proxy#firewall
Kindly update\

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

ID: e517794d-c237-f052-8445-0280c2ba9ecd
Version Independent ID: 36721ebd-be22-f1e6-882a-83f6d54a1b12
Content: Azure File Sync on-premises firewall and proxy settings
Content Source: articles/storage/files/storage-sync-files-firewall-and-proxy.md
Service: storage
GitHub Login: @fauhse
Microsoft Alias: fauhse

@infosatheesh2020 Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

Please assign to @SibonayK - transition of ownership in the team.

@SibonayK - Have you made this update yet?
@roygara - FYI

#reassign:@roygara

@infosatheesh2020 thanks for reaching out, we appreciate it! We'll be updating the doc with India and a few other missing regions shortly. It should be live by the end of the day. :)

#please-close


Uninstall unneeded programs

Cowboy please tell me, how i can remove programs installed with your .dotfiles?
Ex: ReaMote64, REAPER64, Moom...etc

I have some info in the README about how to maintain your own fork of this repo. That will allow you do upstream changes only as you need.
https://github.com/cowboy/dotfiles#heed-this-critically-important-warning-before-you-install


Op registration: linalg

Part of #6692.
Depends on #6820.

Jenkins, test  this please

Jenkins CI test (for commit<PHONE_NUMBER>2b8d0b7c7d7b1de31e2abc425550b6, target branch master) succeeded!

LGTM

Removing to-be-backported as we decided not to backport non-critical PRs.


fix(#408): update to mason_logger-v0.1.0-dev.9

Description
Fixes #408
Update code to work with new progress API enhancements from mason_logger-v0.1.0-dev.9.
Type of Change

[ ] ✨ New feature (non-breaking change which adds functionality)
[x] 🛠 Bug fix (non-breaking change which fixes an issue)
[ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🧹 Code refactor
[ ] ✅ Build configuration change
[ ] 📝 Documentation
[ ] 🗑 Chore

Thanks for the PR! This should be resolved by https://github.com/VeryGoodOpenSource/very_good_cli/pull/411, sorry for the inconvenience!


Meeting Agenda for 2022-06-03

Agenda Items:

[ ] Aim to finalize product in next 2 weeks
[ ] Discuss how to integrate modelled data into dashboard

As a separate tab or toggle switches in existing tabs ?

Dashboard Questions:

[ ] How many decimals should we round confidence intervals to? (Some intervals are small and will round to the rate itself)
[ ] Should we use existing CI data (not modelled data) for error bars / confidence intervals?
[ ] Data dictionary variables different from table column names

Modeling Questions:

Follow-up: With the current gamma model, 84% of incidence rate data, 91% of HSC prevalence rate data, and 98% of life prevalence rate data were able to be modelled.
Tweedie distribution can accommodate 0 values for rare diseases but INLA implementation is experimental. Would it still be useful to generate these models?

Action Items:

[ ] Reminder : next week's meeting moved to Thursday June 9,  11am

Notes:
Data Dictionary:

[ ] Match with the variable names in downloadable dataset headers

Data table:

[ ] Keep Numerator and Denominator because it changes depending on the rate (number of new cases and population at risk for incidence, total number and population for prevalence)
[ ] Year: clarify and display as fiscal year when possible (2001/02)
[ ] Decimal points: reduce to 2 decimals for CIs
[ ] Variance columns: drop it from the display but keep it in the download data


MNT: rerender

Hi! This is the friendly automated conda-forge-webservice.
I've rerendered the recipe as instructed in #2.
Here's a checklist to do before merging.

[ ] Bump the build number if needed.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.
I do have some suggestions for making it better though...
For recipe:

Whenever possible python packages should use pip. See https://conda-forge.org/docs/meta.html#use-pip

@conda-forge/core - shouldn't rerender add python3.7 support automatically? What am I missing here?


[Discussion] General Set Diagrams

Thank you for starting this code repository for rendering Venn diagrams. I started this discussion to give a place for the community to come together to talk about the drawing of more general set diagrams with the hopes that such a discussion will be helpful for considering the future roadmap of cetz-venn. This will be more challenging but I'm hoping that it'll be nutritious food for thought.
According to Wikipedia, Venn diagrams are a special cass of Euler diagrams that show sets being overlapped in every possible way. This distinction is illustrated in this figure:

Taken to their most general form, diagrams involving sets could look like these:
1.

2.

3.

Sometimes, a set is depicted with a non-simple shape deliberately:
4.

One question that might be worth pondering is whether more sophisticated mechanisms are required for drawing such general set diagrams using only code, and if so, whether such sophistication might exceed cetz-venn's vision. Penrose, a project at CMU, allows users to render general set diagrams using code (Link to Penrose's set diagram example). Having played around with Penrose a tiny bit, as an end-user, I think there's room to simplify the logic required from the end-user, in turn simplifying the effort on the end-user's part.
I wouldn't call myself an expert in set diagrams, nor in the rendering of set diagrams, making it a prudent idea to question my propositions 😄 .
Thank you for reading.

I am open to adding more diagram types, but I would also like to keep this package small and simple – as of now.


ci: use CTest to drive Bigtable integration tests

For the CMake-based builds use CTest to run the Bigtable integration
tests. This allows us to parallelize the tests. This PR is a really
small improvement, we also need to parallelize the examples, and the
benchmark smoke test. But it serves as a good prototype.
Part of the work for #3489

This change is

google/cloud/bigtable/ci/run_integration_tests.sh, line 40 at r2 (raw file):
Previously, mr-salty (Todd Derr) wrote…
we don't need this loop or the TODO(#441) anymore

meant this to have a '?' after it...


software bug the job has benn created but the operations status nerver been updated

Describe the version
version about:

kubean
kubespray
kubenetes
what CNI and itsversion

Describe the bug
A clear and concise description of what the bug is.
batch-add-nodes-lwn2j-job" already exists
W0902 07:50:20.264803       1 controller.go:427] create job kpanda-calico-ops-batch-add-nodes-lwn2j-job for kuBeanClusterOp kpanda-calico-ops-batch-add-nodes-lwn2j
E0902 07:50:20.273289       1 controller.go:285] jobs.batch "kubean-kpanda-calico-ops-batch-add-nodes-lwn2j-job" already exists
W0902 07:50:21.847108       1 controller.go:427] create job kpanda-calico-ops-batch-add-nodes-lwn2j-job for kuBeanClusterOp kpanda-calico-ops-batch-add-nodes-lwn2j
E0902 07:50:21.855365       1 controller.go:285] jobs.batch "kubean-kpanda-calico-ops-batch-add-nodes-lwn2j-job" already exists
W0902 07:50:23.663799       1 controller.go:119] Delete KuBeanClusterOps: name: kpanda-calico-ops-create-cluster-pw2cw, createTime: 2022-08-31 06:20:00 +0000 UTC
W0902 07:50:24.651101       1 controller.go:427] create job kpanda-calico-ops-batch-add-nodes-lwn2j-job for kuBeanClusterOp kpanda-calico-ops-batch-add-nodes-lwn2j
E0902 07:50:24.666193       1 controller.go:285] jobs.batch "kubean-kpanda-calico-ops-batch-add-nodes-lwn2j-job" already exists
W0902 07:50:30.242196       1 controller.go:427] create job kpanda-calico-ops-batch-add-nodes-lwn2j-job for kuBeanClusterOp kpanda-calico-ops-batch-add-nodes-lwn2j
E0902 07:50:30.249527       1 controller.go:285] jobs.batch "kubean-kpanda-calico-ops-batch-add-nodes-lwn2j-job" already exists
W0902 07:50:32.218333       1 controller.go:96] update cluster kpanda-calico status.condition
W0902 07:50:40.867012       1 controller.go:427] create job kpanda-calico-ops-batch-add-nodes-lwn2j-job for kuBeanClusterOp kpanda-calico-ops-batch-add-nodes-lwn2j
E0902 07:50:40.900049       1 controller.go:285] jobs.batch "kubean-kpanda-calico-ops-batch-add-nodes-lwn2j-job" already exists
W0902 07:51:01.657133       1 controller.go:427] create job kpanda-calico-ops-batch-add-nodes-lwn2j-job for kuBeanClusterOp kpanda-calico-ops-batch-add-nodes-lwn2j
E0902 07:51:01.678211       1 controller.go:285] jobs.batch "kubean-kpanda-calico-ops-batch-add-nodes-lwn2j-job" already exists
W0902 07:51:42.847353       1 controller.go:427] create job kpanda-calico-ops-batch-add-nodes-lwn2j-job for kuBeanClusterOp kpanda-calico-ops-batch-add-nodes-lwn2j
E0902 07:51:42.872416       1 controller.go:285] jobs.batch "kubean-kpanda-calico-ops-batch-add-nodes-lwn2j-job" already exists
W0902 07:53:05.043479       1 controller.go:427] create job kpanda-calico-ops-batch-add-nodes-lwn2j-job for kuBeanClusterOp kpanda-calico-ops-batch-add-nodes-lwn2j
E0902 07:53:05.072472       1 controller.go:285] jobs.batch "kubean-kpanda-calico-ops-batch-add-nodes-lwn2j-job" already exists
W0902 07:55:49.239901       1 controller.go:427] create job kpanda-calico-ops-batch-add-nodes-lwn2j-job for kuBeanClusterOp kpanda-calico-ops-batch-add-nodes-lwn2j
E0902 07:55:49.269505       1 controller.go:285] jobs.batch "kubean-kpanda-calico-ops-batch-add-nodes-lwn2j-job" already exists
How To Reproduce
Steps to reproduce the issue:
Expected behavior
A clear and concise description of what you expected to happen.
update the operations status
Screenshots and log
If applicable, add screenshots and log to help explain your problem.

Additional context
Add any other context about the problem here.

/kind bug

fix in #113
https://github.com/kubean-io/kubean/pull/113/files#diff-dff1bd047861717411b5249b25bf3cba4278d8821051f305ca25d29efbf47c49R417


proposal: testing: fail if the same test function is defined in both the _test and non-_test packages

(This proposal prompted by https://go-review.googlesource.com/c/go/+/488855/10//COMMIT_MSG#22.)
If a Go package has both an internal test (package example) and an external test (package example_test), the resulting test binary runs the Test, Fuzz, Example, and Benchmark functions from both packages.
If a TestMain function is defined in both packages, test setup fails with multiple definitions of TestMain.
However, if other testing functions are defined in both packages, they are both run. That leads to a number of confusing effects:

The same test name can be shown with two different results (say, PASS and SKIP, or PASS and FAIL), even if the test flags only request to run each package once. That may confuse tools that ingest test results.
If the tests run in parallel, logs and JSON events for the two tests may be interleaved, with no way to distinguish the two. (t.Log messages will list the correct file and line number, but log messages originating in helper functions may be completely ambiguous.)
It is impossible to use the -run flag to run only one of the two tests but not the other.

For the above reasons, I propose that a test binary that defines two different Test, Fuzz, Example, or Benchmark functions with the same name should fail at run-time.
(A GODEBUG setting should be used to restrict this failure to only tests whose go version is at least the release in which this change is introduced.)

Alternately, this could be implemented as a vet check, included in the subset of vet checks run by default during go test.
However, I prefer the testing approach: the cmd/vet alternative seems more difficult to implement (especially in a way that complies with #56986), and either way it would cause go test of the package to fail.

Why fail at runtime rather than failing when cmd/go generates the _testmain.go file?

Failing at run time allows a user to revert to the prior behavior easily using a //go:debug directive. Failing at generation time would make it a hard break for any existing duplicated tests when updating the go version.


Azure Quantum plugin implementation

This commit provides an implementation of a plugin that interfaces with the Azure Quantum cloud platform.

Thanks @danclaudino! It's great to see QIR support in XACC 🚀


Added OneShot trait for &mut Ads1x1x

This is useful if, for example, you're using a mutable reference instead of owning the ADS1x1x struct. For example, if you have multiple sensors connected to different channels.

Thanks @David-OConnor. Can you provide an example function where this is necessary?
This works fine, for example: (You can paste this code at the end of the tests/tier1.rs file to run it)
use embedded_hal::adc::OneShot;
use ads1x1x::{ic, interface, mode, Ads1x1x};
use embedded_hal_mock::i2c::{Mock as I2cMock};

fn read(dev: &mut Ads1x1x<interface::I2cInterface<I2cMock>, ic::Ads1013, ic::Resolution12Bit, mode::OneShot>) {
    assert_would_block!(dev.read(&mut channel::DifferentialA0A1));
}

#[test]
fn read_if_measurement_in_progress() {
    let config = Config::default().with_low(BF::OS);
    let transactions = [I2cTrans::write_read(
        DEV_ADDR,
        vec![Register::CONFIG],
        vec![config.msb(), config.lsb()],
    )];
    let mut dev = new_ads1013(&transactions);
    read(&mut dev);
    destroy_ads1013(dev);
}

This is required if you're using the embedded-hal::adc::OneShot trait, vice specifying the type explicitly as in your example.

I am afraid I cannot reproduce the error. This code builds fine when putting it in tests/tier1.rs:
use embedded_hal::adc::{Channel, OneShot};
use ads1x1x::{ic, interface, mode, Ads1x1x};
use embedded_hal_mock::i2c::{Mock as I2cMock};

fn read<A, ADC, C>(dev: &mut A, c: &mut C)
where
        A: OneShot<ADC, i16, C>,
        C: Channel<ADC>,
{
    assert_would_block!(dev.read(c));
}

#[test]
fn read_if_measurement_in_progress() {
    let config = Config::default().with_low(BF::OS);
    let transactions = [I2cTrans::write_read(
        DEV_ADDR,
        vec![Register::CONFIG],
        vec![config.msb(), config.lsb()],
    )];
    let mut dev = new_ads1013(&transactions);
    read(&mut dev, &mut channel::DifferentialA0A1);
    destroy_ads1013(dev);
}

Closing due to git issues.


Special characters?

The files from Portugal cause very strange artifacts.
          {
            "name": "xsd",
            "description": "General XSD schema validation",
            "valid": false,
            "error_count": 32,
            "errors": [
              {
                "message": "\u0005\ufffd\ufffd\ufffd\u0007",
                "line": 65535,
                "type": "xsd"
              },
              {
                "message": "u\ufffd*\\O^?",
                "line": 65535,
                "type": "xsd"
              },
              {
                "message": "\ufffd\ufffd*\\O^?",
                "line": 65535,
                "type": "xsd"
              },
              {
                "message": "\ufffd\ufffd*\\O^?",
                "line": 65535,
                "type": "xsd"
              },

Combined with other issues into Issue #83


.build activate bug

I have change some code in aishell, and i export the model successfully. When i run in local build ,and then ,the bug show.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.

What did you changed?

What did you changed?

I copy attention.py and  rename it to self_atte.py . And then encoder.py call this self_atte,  decoder.py 's left call self_atte, right block call the old attention.py . And i add a math formula in function forward of self_atte . This is what i changed

Somebody can help?

Try the pretrained model wenet released.

Try the pretrained model wenet released.

It is normal when using pretrained model

Try the pretrained model wenet released.

It is normal when using pretrained model


TFLite parser failing to parse ssd sample model

When loading the same tflite model used in the object detection sample, the model appears to parse incorrectly. The subgraph is there and the nodes appear correct. The various operator options appear correct as well, corresponding to options for conv2d and other operators you would expect.
However, the operator_codes that the subgraph nodes should map to are mysteriously all "0" which corresponds to the "ADD" operator, and thus the network construction fails. The exact exception is an input size mismatch (the ADD operator takes two inputs, so an exception is thrown).
The schema file I'm using is the one provided in the tensorflow repository, but I've also tested generating the schema myself from the version three schema file (which matches the version of the tflite model).
I've verified that the model I've downloaded looks correct in a tflite viewer (Netron). Do you have any idea why the parser might be doing this?

Hi @jeremyong
Our object detection sample https://github.com/ARM-software/armnn/blob/branches/armnn_20_11/samples/ObjectDetection/Readme.md uses a model downloaded from https://storage.googleapis.com/download.tensorflow.org/models/tflite/coco_ssd_mobilenet_v1_1.0_quant_2018_06_29.zip is that the one you're using? If not can you provide a link to the model you're using?
That model should be made up mostly of DepthwiseConvolution and Convolution operations with some Reshape and Logistic operations. There should be no Add operations in it.
Best regards,
Mike

Hey Mike, yes that’s the model I’m using and I do expext conv and depth
conv layers as well. That seems to be present in the subgraph but the
operator identifiers themselves don’t seem to be parsing correctly. I get
that this is a weird issue so I’ll try to dig more later today. Thanks!
On Tue, Dec 15, 2020 at 5:02 AM MikeJKelly<EMAIL_ADDRESS>wrote:

Hi @jeremyong https://github.com/jeremyong
Our object detection sample
https://github.com/ARM-software/armnn/blob/branches/armnn_20_11/samples/ObjectDetection/Readme.md
uses a model downloaded from
https://storage.googleapis.com/download.tensorflow.org/models/tflite/coco_ssd_mobilenet_v1_1.0_quant_2018_06_29.zip
is that the one you're using? If not can you provide a link to the model
you're using?
That model should be made up mostly of DepthwiseConvolution and
Convolution operations with some Reshape and Logistic operations. There
should be no Add operations in it.
Best regards,
Mike
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ARM-software/armnn/issues/483#issuecomment-745244999,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAB5CJIYVFIKKETMUAKXJBLSU5F6LANCNFSM4U37CTIA
.

@jeremyong @MikeJKelly
Try this patch and it should fix the problem:
https://review.mlplatform.org/c/ml/armnn/+/4779/1/src/armnnTfLiteParser/TfLiteParser.cpp
I assume you are using tensorflow 2.4+ version with a v3a schema.

@jeremyong @MikeJKelly
Try this patch and it should fix the problem:
https://review.mlplatform.org/c/ml/armnn/+/4779/1/src/armnnTfLiteParser/TfLiteParser.cpp
I assume you are using tensorflow 2.4+ version with a v3a schema.

Thank you @ek9852 I'm just trying that patch now.

Thank you @ek9852 I'm just trying that patch now.

Closing as we now have support for versions of TFlite later than 2.3.1 where the new operator builtin_codes were introduced. ArmNN should parse this model correctly now.
Best regards,
Mike


Display full name of repository in list

Consider the following:

One of these is the main repository; the other one is my personal fork. There's no way of telling which is which without hovering over them and looking at the URL.
Drone 0.3 did not have this problem, as it showed the full repository name, with group. This patch changes the dashboard in 0.4 to do the same thing.

Yikes, I never thought of this. It would definitely break teams that do a fork + pull request workflow.

 You should sign our Contributor License Agreement in order to get your pull request merged.Wolfgang Faust seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account ([for further information, click here] (https://help.github.com/articles/why-are-my-commits-linked-to-the-wrong-user/#commits-are-not-linked-to-any-user)).

I'm wondering if the fix for this is to resolve the lack of avatar? What remote are you using that no avatar exits?  If you see the example below we use avatar to differentiate ownership:

I'm using GitLab. I think even if it had identicons I'd prefer the name to be included as well. The search bar searches the full name, and it's confusing to be searching for something that doesn't show up. (Example: Imagine I have a fork of the ski package. Why do all of your repositories show up when I try to find it?)
Here's what it looks like with this patch:

+1

Gitlab doesn't show avatars by default, @bradrydzewski :

this is resolved in the new drone-ui repository. See screenshot

Looks nice! I assume this is only in the currently experimental 0.5 release?

Looks nice! I assume this is only in the currently experimental 0.5 release?

That's correct, and since 0.4 got a freeze it won't get backported


the accuracy is very low when using my own data training models(on board)

Hi,
when using my own data for training model, and instand of the ds_cnn_weights.h ,
recompile the kws_realtime_test.bin ,but on board(stm32f746) ,it's difficult to recongize.  but i test the model on pc,
the accuracy is very high.
python test.py --model_architecture ds_cnn --model_size_info 5 64 10 4 2 2 64 3 3 1 1 64 3 3 1 1 64 3 3 1 1 64 3 3 1 1    --dct_coefficient_count 10 --window_size_ms 40 --window_stride_ms 20  --checkpoint /opt/zsf_workspace/WorkSpace/SoundWorkSpace/ML-KWS-for-MCU/work/DS_CNN/DS_CNN1/training/best/ds_cnn_9750.ckpt-30000
2019-03-07 14:18:00.541952: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-03-07 14:18:00.571174: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2019-03-07 14:18:00.574544: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x41ee720 executing computations on platform Host. Devices:
2019-03-07 14:18:00.574588: I tensorflow/compiler/xla/service/service.cc:158]   StreamExecutor device (0): ,
WARNING:tensorflow:From /usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
WARNING:tensorflow:From /usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/confusion_matrix.py:193: to_int64 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.cast instead.
WARNING:tensorflow:From /usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/confusion_matrix.py:194: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.cast instead.
WARNING:tensorflow:From /usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py:1266: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.
Instructions for updating:
Use standard file APIs to check for files with this prefix.
INFO:tensorflow:Restoring parameters from /opt/zsf_workspace/WorkSpace/SoundWorkSpace/ML-KWS-for-MCU/work/DS_CNN/DS_CNN1/training/best/ds_cnn_9750.ckpt-30000
INFO:tensorflow:set_size=5686
INFO:tensorflow:Confusion Matrix:
[[505   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0]
[  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0]
[  0   0 512   0   0   0   0   0   0   0   0   0   0   0   0   0]
[  0   0   0 259   0   0   0   0   0   0   0   0   0   0   0   0]
[  0   0   0   0 260   0   0   0   0   0   0   0   0   0   0   0]
[  0   0   0   0   0 263   0   0   0   0   0   0   0   0   0   0]
[  0   0   0   0   0   0 233   0   0   0   0   0   0   0   0   0]
[  0   0   0   0   0   0   0 512   0   0   0   0   0   0   0   0]
[  0   0   0   0   0   0   0   0 343   0   0   0   0   0   0   0]
[  0   0   0   0   0   0   0   0   0 529   0   0   0   0   0   0]
[  0   0   0   0   0   0   0   0   0   0 253   0   0   0   0   0]
[  0   0   0   0   0   0   0   0   0   0   0 454   0   0   0   0]
[  0   0   0   0   0   0   0   0   0   0   0   0 283   0   0   0]
[  0   0   0   0   0   0   0   0   0   0   0   0   0 383   0   0]
[  0   0   0   0   0   0   0   0   0   0   0   0   0   0 521   0]
[  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 376]]
INFO:tensorflow:Training accuracy = 100.00% (N=5686)
INFO:tensorflow:set_size=721
INFO:tensorflow:Confusion Matrix:
[[66  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0]
[ 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0]
[ 0  0 61  0  0  0  0  0  0  0  0  0  0  0  0  0]
[ 0  0  0 31  1  0  0  0  0  0  1  0  0  0  0  0]
[ 0  0  0  1 35  0  1  0  0  0  0  0  0  0  0  0]
[ 0  0  2  0  2 28  0  0  0  0  0  0  0  0  0  0]
[ 0  0  0  0  1  0 35  0  0  0  0  0  0  0  0  0]
[ 0  0  0  0  0  0  0 74  0  0  0  0  0  0  0  1]
[ 0  0  0  0  0  0  0  1 31  0  0  0  0  0  0  1]
[ 0  0  1  0  0  0  0  0  0 53  0  0  0  0  0  0]
[ 0  0  2  0  0  0  0  0  0  0 26  0  2  0  0  0]
[ 0  0  0  0  0  2  0  0  0  0  0 70  0  0  0  0]
[ 0  0  0  0  0  1  0  0  0  0  0  0 25  0  0  0]
[ 0  0  0  0  0  0  0  0  0  0  0  0  0 47  0  0]
[ 0  0  0  0  0  0  0  0  0  0  0  0  0  0 67  0]
[ 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 52]]
INFO:tensorflow:Validation accuracy = 97.23% (N=721)
INFO:tensorflow:set_size=729
INFO:tensorflow:Confusion Matrix:
[[67  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0]
[ 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0]
[ 0  0 59  0  0  0  1  0  0  0  0  0  0  1  0  0]
[ 0  0  0 31  1  0  0  0  0  0  0  0  0  0  0  0]
[ 0  0  0  0 19  0  1  0  0  0  0  0  0  0  0  0]
[ 0  0  0  0  2 29  0  0  0  0  0  0  1  0  0  0]
[ 0  0  0  0  1  0 39  0  0  0  0  0  0  0  0  0]
[ 0  0  0  0  0  0  0 51  0  0  0  0  0  0  1  0]
[ 0  0  0  0  0  0  0  1 56  0  0  0  0  0  0  0]
[ 0  0  1  0  0  0  0  0  0 59  0  0  1  0  0  0]
[ 0  0  0  0  0  0  0  0  0  2 27  0  0  0  0  0]
[ 0  0  0  0  0  1  0  0  0  0  0 70  0  0  0  0]
[ 0  0  0  0  0  0  0  0  0  3  0  0 39  0  0  0]
[ 0  0  1  0  0  0  0  0  0  1  0  2  0 56  0  0]
[ 0  0  0  0  0  0  0  0  0  0  0  0  0  0 54  0]
[ 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 51]]
INFO:tensorflow:Test accuracy = 96.98% (N=729)
root@ubun:/opt/zsf_workspace/WorkSpace/SoundWorkSpace/ML-KWS-for-MCU# python quant_test.py --model_architecture ds_cnn --model_size_info 5 64 10 4 2 2 64 3 3 1 1 64 3 3 1 1 64 3 3 1 1 64 3 3 1 1    --dct_coefficient_count 10 --window_size_ms 40 --window_stride_ms 20  --checkpoint /opt/zsf_workspace/WorkSpace/SoundWorkSpace/ML-KWS-for-MCU/work/DS_CNN/DS_CNN1/training/best/ds_cnn_9750.ckpt-30000_bnfused --act_max 32 0 0 0 0 0 0 0 0 0 0 0
2019-03-07 14:47:18.762088: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-03-07 14:47:18.787024: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2019-03-07 14:47:18.790068: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x451b6b0 executing computations on platform Host. Devices:
2019-03-07 14:47:18.790111: I tensorflow/compiler/xla/service/service.cc:158]   StreamExecutor device (0): ,
WARNING:tensorflow:From /usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
WARNING:tensorflow:From /usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/confusion_matrix.py:193: to_int64 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.cast instead.
WARNING:tensorflow:From /usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/confusion_matrix.py:194: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.cast instead.
WARNING:tensorflow:From /usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py:1266: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.
Instructions for updating:
Use standard file APIs to check for files with this prefix.
INFO:tensorflow:Restoring parameters from /opt/zsf_workspace/WorkSpace/SoundWorkSpace/ML-KWS-for-MCU/work/DS_CNN/DS_CNN1/training/best/ds_cnn_9750.ckpt-30000_bnfused
DS-CNN_conv_1_weights_0 number of wts/bias: (10, 4, 1, 64) dec bits: 10 max: (0.078125,0.07804396) min: (-0.05859375,-0.05906091)
DS-CNN_conv_1_biases_0 number of wts/bias: (64,) dec bits: 8 max: (0.3125,0.31323364) min: (-0.23828125,-0.23821199)
DS-CNN_conv_ds_1_dw_conv_depthwise_weights_0 number of wts/bias: (3, 3, 64, 1) dec bits: 5 max: (3.5625,3.5662289) min: (-3.15625,-3.1511166)
DS-CNN_conv_ds_1_dw_conv_biases_0 number of wts/bias: (64,) dec bits: 6 max: (1.390625,1.3905205) min: (-1.0625,-1.0663435)
DS-CNN_conv_ds_1_pw_conv_weights_0 number of wts/bias: (1, 1, 64, 64) dec bits: 7 max: (0.84375,0.84409374) min: (-0.8125,-0.81246847)
DS-CNN_conv_ds_1_pw_conv_biases_0 number of wts/bias: (64,) dec bits: 6 max: (1.015625,1.0175782) min: (-1.0625,-1.0584457)
DS-CNN_conv_ds_2_dw_conv_depthwise_weights_0 number of wts/bias: (3, 3, 64, 1) dec bits: 5 max: (2.40625,2.4150395) min: (-2.34375,-2.3446453)
DS-CNN_conv_ds_2_dw_conv_biases_0 number of wts/bias: (64,) dec bits: 6 max: (1.40625,1.4129168) min: (-0.96875,-0.96886146)
DS-CNN_conv_ds_2_pw_conv_weights_0 number of wts/bias: (1, 1, 64, 64) dec bits: 7 max: (0.71875,0.7201497) min: (-0.875,-0.8777769)
DS-CNN_conv_ds_2_pw_conv_biases_0 number of wts/bias: (64,) dec bits: 6 max: (1.765625,1.7612783) min: (-1.1875,-1.1944273)
DS-CNN_conv_ds_3_dw_conv_depthwise_weights_0 number of wts/bias: (3, 3, 64, 1) dec bits: 6 max: (1.625,1.6269287) min: (-1.5,-1.4997675)
DS-CNN_conv_ds_3_dw_conv_biases_0 number of wts/bias: (64,) dec bits: 6 max: (1.5,1.5054036) min: (-1.375,-1.3712918)
DS-CNN_conv_ds_3_pw_conv_weights_0 number of wts/bias: (1, 1, 64, 64) dec bits: 7 max: (0.9140625,0.9122335) min: (-0.875,-0.87133324)
DS-CNN_conv_ds_3_pw_conv_biases_0 number of wts/bias: (64,) dec bits: 5 max: (1.25,1.2655265) min: (-2.15625,-2.146341)
DS-CNN_conv_ds_4_dw_conv_depthwise_weights_0 number of wts/bias: (3, 3, 64, 1) dec bits: 6 max: (1.90625,1.9060508) min: (-1.671875,-1.6707895)
DS-CNN_conv_ds_4_dw_conv_biases_0 number of wts/bias: (64,) dec bits: 6 max: (1.015625,1.0225885) min: (-1.28125,-1.2750894)
DS-CNN_conv_ds_4_pw_conv_weights_0 number of wts/bias: (1, 1, 64, 64) dec bits: 6 max: (0.984375,0.97935057) min: (-1.078125,-1.0792036)
DS-CNN_conv_ds_4_pw_conv_biases_0 number of wts/bias: (64,) dec bits: 6 max: (1.6875,1.6924481) min: (0.0,0.0039412514)
DS-CNN_fc1_weights_0 number of wts/bias: (64, 16) dec bits: 6 max: (1.25,1.2544212) min: (-1.53125,-1.5301858)
DS-CNN_fc1_biases_0 number of wts/bias: (16,) dec bits: 8 max: (0.25390625,0.25582832) min: (-0.21875,-0.2186358)
INFO:tensorflow:set_size=5686
INFO:tensorflow:Confusion Matrix:
[[  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 536]
[  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0]
[  0   0 499   0   0   0   0   0   0   0   0   1   0   0   0   0]
[  0   0   0 261   0   0   0   0   0   0   0   0   0   0   0   0]
[  0   0   0   0 255   0   0   0   0   0   0   0   0   0   0   0]
[  0   0   0   0   0 271   0   0   0   0   0   0   0   0   0   0]
[  0   0   0   0   0   0 273   0   0   0   0   0   0   0   0   0]
[  0   0   0   0   0   0   0 491   0   0   0   0   0   0   0   0]
[  0   0   0   0   0   0   0   0 335   0   0   0   0   0   0   0]
[  0   0   0   0   0   0   0   0   0 460   0   0   0   0   0   0]
[  0   0   0   0   0   0   0   0   0   0 275   0   0   0   0   0]
[  0   0   0   0   0   0   0   0   0   0   0 508   0   0   0   0]
[  0   0   0   0   0   0   0   0   0   0   0   0 243   0   0   0]
[  0   0   0   0   0   0   0   0   0   0   0   0   0 396   0   0]
[  0   0   0   0   0   0   0   0   0   0   0   0   0   0 520   0]
[  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 362]]
INFO:tensorflow:Training accuracy = 90.56% (N=5686)
INFO:tensorflow:set_size=721
INFO:tensorflow:Confusion Matrix:
[[ 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 66]
[ 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0]
[ 0  0 60  0  0  0  0  0  0  0  0  0  0  1  0  0]
[ 0  0  0 31  1  0  0  0  0  0  0  0  1  0  0  0]
[ 0  0  0  1 35  0  1  0  0  0  0  0  0  0  0  0]
[ 0  0  0  0  0 32  0  0  0  0  0  0  0  0  0  0]
[ 0  0  0  0  1  0 35  0  0  0  0  0  0  0  0  0]
[ 0  0  0  0  0  0  0 73  0  0  0  0  0  0  1  1]
[ 0  0  0  0  0  0  0  1 31  0  0  0  0  0  0  1]
[ 0  0  1  0  0  0  0  0  0 53  0  0  0  0  0  0]
[ 0  0  2  0  0  1  0  0  0  1 24  0  2  0  0  0]
[ 0  0  0  0  0  3  0  0  0  0  0 69  0  0  0  0]
[ 0  0  0  0  0  1  0  0  0  0  0  0 25  0  0  0]
[ 0  0  0  0  0  0  0  0  0  0  0  0  0 47  0  0]
[ 0  0  0  0  0  0  0  0  0  0  0  0  0  0 67  0]
[ 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 52]]
INFO:tensorflow:Validation accuracy = 87.93% (N=721)
INFO:tensorflow:set_size=729
INFO:tensorflow:Confusion Matrix:
[[ 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 67]
[ 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0]
[ 0  0 57  0  0  0  1  0  0  0  0  0  0  3  0  0]
[ 0  0  0 31  1  0  0  0  0  0  0  0  0  0  0  0]
[ 0  0  0  0 19  0  1  0  0  0  0  0  0  0  0  0]
[ 0  0  0  0  2 29  0  0  0  0  0  0  1  0  0  0]
[ 0  0  0  0  1  0 39  0  0  0  0  0  0  0  0  0]
[ 0  0  0  0  0  0  0 51  0  0  0  0  0  0  0  1]
[ 0  0  0  0  0  0  0  1 56  0  0  0  0  0  0  0]
[ 0  0  1  0  0  0  0  0  0 59  0  0  1  0  0  0]
[ 0  0  0  0  0  0  0  0  0  2 27  0  0  0  0  0]
[ 0  0  0  1  0  1  0  0  0  0  0 69  0  0  0  0]
[ 0  0  0  0  0  0  0  0  0  4  0  0 38  0  0  0]
[ 0  0  0  0  0  0  0  0  0  1  0  2  0 57  0  0]
[ 0  0  0  0  0  0  0  0  0  0  0  0  0  0 54  0]
[ 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 51]]
INFO:tensorflow:Test accuracy = 87.38% (N=729)

@lancezhangsf
I have encountered the same problem. Have you solved it?

in the quant_test.py, all the values of --act_max 32 0 0 0 0 0 0 0 0 0 0 0 has to be some power of two instead of zeros. Check out the quant_guide and re-read the quantization section again.
You need to calculate the bias shift and out shift for each layer and then put them in the cpp source code. It is not trivial, but definitely works.
Also check #68 , #51 and try reproducing the simple DNN example first. We all want high accuracy results but if you figure out one simple, it would be easier to extend the idea to any model in this work.

@bkanakietac
sorry to bother you.I am a novice who does not understand quantification, I can't understand how to calculate. If act_max=32,4,64,16, 8, shift is calculated. Input 32, ouput 8, three layers of hidden layers.

@bkanakietac
I calculated the last layer, wx=8 bias=10  bias need to be shifted right 。 But there is no option for the right shift 。

first of all, good that you figured some stuff. secondly, for the right shift, there is a problem. I had the same issue and logged #90 but no one responded.
So input to your last layer is Q4.3 and weights Q1.6 but bias is Qx.10. Try changing this input layer to Q2.5 and see if the accuracy is still maintained (or maybe better?) and then your bias shift will be zero. I did something similar.

@bkanaki
Thank you for your kind help.

@bkanakietac @ccnankai
Could you please tell me how to change the bias_shift and out_shift in cpp file
I have calculated the the dec_bits of every layer by using the quant_test.py,
I really do not understand, how to make use of dec_bits to adjust the bias (left or right)
It would be really helpful If some one could explain shortly with a example, I deployed my own model on to the board but it's always detecting one or two classes randomly,
In python version my model giving good accuracy but on board the word spotting is complete wrong,
I followed the all parameters from this tutorial.

So input to your last layer is Q5.2 and weights Q1.6 but bias is Qx.10. Try changing this input layer to Q3.4 and see if the accuracy is still maintained (or maybe better?) and then your bias shift will be zero. I did something similar.

@bkanaki how did you figure out the Qm.n format of the layers and how to change the m,n values of the layer?
can you please explain ?
Thanks

Read, experiment, repeat! Did you read the quantization guide above mentioned above? It is already decently documented with an example. All the relevant code is also in this repository. Explore!
As I had mentioned previously, it would be a good start to experiment with the DNN model because of its simplicity, but everyone just wants to use dscnn. 😒

@bkanaki
Thank you for your kind help.

I've had the same problem. how can I solve this problem?

first of all, good that you figured some stuff. secondly, for the right shift, there is a problem. I had the same issue and logged #90 but no one responded.
So input to your last layer is Q5.2 and weights Q1.6 but bias is Qx.10. Try changing this input layer to Q3.4 and see if the accuracy is still maintained (or maybe better?) and then your bias shift will be zero. I did something similar.

I've had the same problem. how can I solve this problem?

Read, experiment, repeat! Did you read the quantization guide above mentioned? It is already decently documented with an example. All the relevant code is also in this repository. Explore! The answer to your last question is in your previous comment.
As I had mentioned previously, it would be a good start to experiment with the DNN model because of its simplicity, but everyone just wants to use dscnn. 😒

@bkanakietac thank you for this comment,
I have calculated the bias shift and out_shift of each layer and I put them in cpp,the only  DNN model is working well but the DS_CNN model is not detecting the words properly at all,
I also tuned the recording window, averaging window len, detection threshold
if you have any idea, could you please tell me what still i need to consider.

first of all, good that you figured some stuff. secondly, for the right shift, there is a problem. I had the same issue and logged #90 but no one responded.
So input to your last layer is Q5.2 and weights Q1.6 but bias is Qx.10. Try changing this input layer to Q3.4 and see if the accuracy is still maintained (or maybe better?) and then your bias shift will be zero. I did something similar.

I've had the same problem. how can I solve this problem?

Seems like it's not supported:
https://github.com/ARM-software/CMSIS_5/issues/327#issuecomment-369690102
Adjust act_max might avoid that.


🐛 error access vscode extensions

Environment information
biome rage return :
Rage discovered this running server using an incompatible version of Biome.

Server:
  Version:                      1.1.2

yarn v3 on a monorepo.
What happened?
update vscode extension got an error:
Biome client: couldn't create connection to server.

/node_modules/.bin/biome: Permission denied

Discord asked me to run this command and it fixed the issue:
chmod +x ./node_modules/.bin/biome
been asked to reference this issue: https://github.com/rome/tools/pull/3800
Expected result
update the vscode extension and it works
Code of Conduct

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

It's been 2 months since the last message, I assume the bug is fixed.
If anybody happens to arrive here, please open a new issue.


Rst 1124

JIRA link (if applicable)
Change description
Various low risk gem updates
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[X] No

Mistake !!


MeasurementSummaryHash calculation is changed in SPDM 1.1 spec

1.1.1 says: it is MeasurementBlock[i].measurement, but 1.1.2 says: it is MeasurementBlock[i].
We probably need to remove the check for MeasurementSummaryHash.
Or if we really want to, then we need try-fail mechanism.
Ref: https://github.com/DMTF/SPDM-WG/issues/3218

It seems "the measurements can change between CHAL and GET_MEAS, so the endpoint cannot assume that they will stay the same." according to https://github.com/DMTF/SPDM-WG/issues/3219.
We need to remove the consistency check.


Update to Polymer JS v1.2.3

Also did a bit of cleanup (moved some classes into the src folder from polymer_interop.dart and exported them)

lgtm


Fix ci and revert #118

Reverting #234 because this was an incorrect change as the change meant the wrong version of poetry-core was used for testing against downstream poetry. See logs here.
Run poetry add ../poetry-core

Updating dependencies
Resolving dependencies...

Writing lock file

Package operations: 0 installs, 1 update, 0 removals

  • Updating cachecontrol (0.12.6 -> 0.12.10)
diff --git a/poetry.lock b/poetry.lock

Reverting #118 as this is a breaking change. The change needs to be reworked to support existing downstream usage. Alternatively, a change to poetry first to support list of files can also be made.
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― test_create_poetry ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

    def test_create_poetry():
        poetry = Factory().create_poetry(fixtures_dir / "sample_project")

        package = poetry.package

        assert package.name == "my-package"
        assert package.version.text == "1.2.3"
        assert package.description == "Some description."
        assert package.authors == ["Sébastien Eustace<EMAIL_ADDRESS>        assert package.license.id == "MIT"
>       assert (
            package.readme.relative_to(fixtures_dir).as_posix()
            == "sample_project/README.rst"
        )
E       AttributeError: 'ProjectPackage' object has no attribute 'readme'

tests/test_factory.py:34: AttributeError

fyi: @neersighted @wagnerluis1982

@abn how should I address the rework? I mean, do you have any suggestions, apart from avoid to rename the attributes?
BTW, do you have any instant messaging channel for discussing?

BTW, do you have any instant messaging channel for discussing?

You can join our [discord server]
(https://discord.com/invite/awxPgve).

I'm on the Poetry discord.
As suggestion, I'd say do not rename the attribute. And follow a sequence like this to avoid the failure (think it's only an issue in tests). This is off the top of my head, no real validation done.

Make poetry aware that package.readme can be a string or a list. Unsure if there are usages that might have an issue with this.
Always listify the readme property in core.
Once new release of core is cut and used by poetry, remove "is str or list" checks.


Bad error messages

Fails pointing to the equality and claiming that an SMT query failed

fn value_of (#a:Type) (r:ref a)
requires pts_to r 'v
returns v:a
ensures pts_to r 'v ** pure (v == 'v)
{
    'v
}

Points to the (!i) but fails saying expected int got stt int ....  which is a bit cryptic

fn four_fail ()
requires emp
returns i:int
ensures pure (i == 4)
{
    let mut i = 1;
    add i (!i);
    add i (!i);
    !i
}

This program fails to check blaming the entire program, instead of just the equality of a == c * y.
fn multiply_by_repeated_addition (x y:nat)
    requires emp
    returns z:nat
    ensures pure (z == x * y)
{
    let mut ctr = 0;
    let mut acc : nat = 0;
    while (
        let c = !ctr;
        (c < x)
    )
    invariant b.
    exists* c a.
        pts_to ctr c **
        pts_to acc a **
        pure (//0 <= c /\
              c <= x /\
              a == (c * y) /\
              b == (c < x))
    {
        let a = !acc;
        acc := a + y;
        let c = !ctr;
        ctr := c + 1;
    };
    !acc
}

If you forget a pure on an assertion, Pulse says that it cannot prove the assertion (instead of complaining about the type error).
```pulse
fn foo (n: nat) requires pure (n >= 42) ensures emp {
  assert (n >= 1);
  // - Tactic logged issue:
  // - Cannot prove:
  //     op_GreaterThanOrEqual n 1
  // - In the context:
  //     emp
}
```


fix error: non-constant-expression narrowing

compiling on OSX 10.9 results in a compile error.
error reported by g++:
2048.cpp:355:38: error: non-constant-expression cannot be narrowed from type 'int' to 'uint8_t'
      (aka 'unsigned char') in initializer list [-Wc++11-narrowing]
        trans_table_entry_t entry = {state.curdepth, res};
                                     ^~~~~~~~~~~~~~
2048.cpp:355:38: note: override this message by inserting an explicit cast
        trans_table_entry_t entry = {state.curdepth, res};
                                     ^~~~~~~~~~~~~~
                                     static_cast<uint8_t>( )

g++ --version output:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix

#37 just fixed this - please update. Thanks for submitting this pull request!


PR for --log-level argument gets ignored

In 10.15, the user provided log-level was only being given to scanning logger. That's why, the scanning logger was conforming to the log-level, but not job logger. After these changes, both should be able to conform to the needs


Does a task submission have to be novel?

Hi,
We are very interested in submitting three of our existing datasets for probing language models, as follows. We are not sure if that's okay if we have already have published papers about them (two accepted by EMNLP20 already and the other one is on arXiv and under review). Thanks!
[1] CommonGen (EMNLP20 Findings): https://inklab.usc.edu/CommonGen/   (text generation)
[2] NumerSense (EMNLP20): https://inklab.usc.edu/NumerSense/ (multiple-choice)
[3] RiddleSense  (Work in progress): https://inklab.usc.edu/RiddleSense/ (multiple-choice)

Oh, I just noticed this Novelty: Task submissions cannot be replicas of existing language modeling tasks. at the [review criteria] (https://github.com/google/BIG-bench/blob/main/docs/doc.md#review-criteria-for-submissions). So I guess the answer is no?

Oh, I just noticed this Novelty: Task submissions cannot be replicas of existing language modeling tasks. at the [review criteria] (https://github.com/google/BIG-bench/blob/main/docs/doc.md#review-criteria-for-submissions). So I guess the answer is no?

That sounds great! We would be happy to have you submit tasks! We are hoping to exclude tasks that a) are not the submitter's, or b) are common and have already been tested on models across scales. But appearing before in publication seems fine. We will make the readme more clear on this.

That sounds great! We would be happy to have you submit tasks! We are hoping to exclude tasks that a) are not the submitter's, or b) are common and have already been tested on models across scales. But appearing before in publication seems fine. We will make the readme more clear on this.

Thanks for setting this up! I think it's a great idea :-) I'm still a bit confused, even with the new readme update. One of the criteria is difficulty: "Tasks must not be easily solved by existing language models." But also, tasks cannot have previously been evaluated "systematically across model scales." But how can one know if their task is difficult without having evaluated it? And, if you've already written a paper about the task/evaluations (but there remains a gap between, e.g., RoBERTa and a human baseline) can you add the task?

Thanks for setting this up! I think it's a great idea :-) I'm still a bit confused, even with the new readme update. One of the criteria is difficulty: "Tasks must not be easily solved by existing language models." But also, tasks cannot have previously been evaluated "systematically across model scales." But how can one know if their task is difficult without having evaluated it? And, if you've already written a paper about the task/evaluations (but there remains a gap between, e.g., RoBERTa and a human baseline) can you add the task?

That sounds great! We would be happy to have you submit tasks! We are hoping to exclude tasks that a) are not the submitter's, or b) are common and have already been tested on models across scales. But appearing before in publication seems fine. We will make the readme more clear on this.

Thank you very much for the clarification and we will start the preparation of the submission asap. :)

That sounds great! We would be happy to have you submit tasks! We are hoping to exclude tasks that a) are not the submitter's, or b) are common and have already been tested on models across scales. But appearing before in publication seems fine. We will make the readme more clear on this.

Thank you very much for the clarification and we will start the preparation of the submission asap. :)

@jmhessel Thank you for the questions and apologies for the confusion. We revised the readme to address this. It is OK to add a task that you created, even if it is already published and has been evaluated (we removed this requirement). On the question of difficulty, we are looking for tasks that challenge existing models, so if a task is known to be fully solvable by existing models it will not be added to the benchmark. For new tasks, we do not expect submitters to evaluate on all existing models before submitting. Does this help clarify things?

@jmhessel Thank you for the questions and apologies for the confusion. We revised the readme to address this. It is OK to add a task that you created, even if it is already published and has been evaluated (we removed this requirement). On the question of difficulty, we are looking for tasks that challenge existing models, so if a task is known to be fully solvable by existing models it will not be added to the benchmark. For new tasks, we do not expect submitters to evaluate on all existing models before submitting. Does this help clarify things?

Yep! That makes sense. Thanks :-)

Yep! That makes sense. Thanks :-)


change to newly refactored spring-cloud-starter-zuul code effecting ProxyRouteLocator

Since this extension was made filters.ProxyRouteLocator was refactored to filters.discovery.DiscoveryRouteLocator and a new interface RefreshableRouteLocator was created for RouteLocator implementations that can be refreshed runtime (commit change)
I have updated to the latest release of spring-cloud-starter-zuul and added readme instructions for 1.1.0 release of this plugin (that I'm suggesting as a version, feel free to suggest to change to something different as you see fit).

In checking out why tests were failing I found a few issues and addressed them. Also noticed there is a bug in the upstream spring-cloud-starter-netflix core class ZuulProperties.ZuulRoute where the constructor doesn't set the determined value attribute customSensitiveHeaders.

Coverage remained the same at 100.0% when pulling d742856be943bfd4d136b417791e83a21ca78580 on tmack8001:update-to-new-RouteLocator into 7d2075da3345bfbeb22e3186da8439ba48c41a66 on jmnarloch:master.

Change pushed upstream to the spring-cloud-netflix project, https://github.com/spring-cloud/spring-cloud-netflix/pull/1637

Update: upstream constructor was addressed and merged, will be available in 1.3.0 when that gets cut for release, not a high priority bug so not addressing in a patch release

Coverage remained the same at 100.0% when pulling 52602c6b7bfcc8d41d94f5ab33891b818260e4cd on tmack8001:update-to-new-RouteLocator into 7d2075da3345bfbeb22e3186da8439ba48c41a66 on jmnarloch:master.


Holographic Remoting version 2.2.2

Docs Build status updates of commit 31f32d7:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/holographic-remoting-troubleshooting.md
:white_check_mark:Succeeded
View

mixed-reality-docs/holographic-remoting-version-history.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit 7a356e9:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/holographic-remoting-troubleshooting.md
:white_check_mark:Succeeded
View

mixed-reality-docs/holographic-remoting-version-history.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Fix to run npm i instead of npm ci for old versions of package-lock.json

https://github.com/ArtiomTr/jest-coverage-report-action/issues/12
The npm ci command is not used. Because if your version of npm is old, the generated package-lock.json will also be old, and the latest version of npm ci will fail.

I have merged #13 PR, and now the generated bundle is conflicting. For now, could you please resolve conflict? In the future, I think there should be automatic build, when something is pushed into master. #15

I have set up and automatic action #15, so now, this conflict doesn't matter, because it will rebuild once it got merged.
Thank you for your contribution!

@all-contributors please add @dadayama for code


Laravel Mix HMR Server Does Not Launch

Laravel Mix Version: 6.0.43 (npm list --depth=0)
Node Version (node -v): 16.13.1
NPM Version (npm -v): 8.1.2
OS: Windows 10 21h2

Description:
THIS IS HAPPENING ON A FRESH NEW INSTALL OF LARAVEL AND MY OTHER PROJECTS
Running npm run hot changes the script tag sources to http://localhost:8080/*/*.* from http://localhost/*/*.* HOWEVER I always get net::ERR_EMPTY_RESPONSE from localhost:8080. The HMR server doesn't launch at all. The terminal output of the command also have no mention of spinning up a new web server.
PS C:\Users\Eric Wang\Documents\GitHub\test-laravel-mix> npm run hot

● Mix █████████████████████████ emitting (95%)
 emit

● Mix █████████████████████████ done (99%) plugins
 WebpackBar:done

✔ Mix
  Compiled successfully in 5.51s

   Laravel Mix v6.0.43

✔ Compiled Successfully in 5336ms
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬──────────┐├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────┤│                                                                                css/app.css │ 47.6 KiB │└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────┘webpack compiled successfully

Here's a picture of the browser failing to fetch the bundle files

Steps To Reproduce:
I am running Docker 4.5.1 using legacy Hyper-V.
I containerized Laravel and PHP BUT not the frontend and JS. I am running Laravel Mix on my main system.

Clone the fresh installation of Laravel from https://github.com/ericwang401/test-laravel-mix
Clone Laradock in the project folder using git clone https://github.com/laradock/laradock.git
CD to the Laradock folder and make .env file with cp .env.example .env
Inside .env file set PHP_VERSION to PHP_VERSION=8.0 AND DO NOT EDIT MYSQL SETTINGS
Now edit the Laravel environment file

DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=default
DB_USERNAME=default
DB_PASSWORD=secret

Start up the Laravel app in Laradock folder using docker-compose up -d nginx mysql
Enter into bash mode in the Docker container docker-compose exec workspace bash
Install Composer dependencies BUT NOT NPM DEPENDENCIES YET composer i
Now exit out of the Docker container CNTRL + D
Install NPM dependencies in project root ON YOUR MAIN SYSTEM npm i
Run on your main system npm run hot
Now go to http://localhost and IT SHOULD be a white screen
Check console logs and it should give net::ERR_EMPTY_RESPONSE when it tries to fetch the bundle files

REMEMBER: the backend is running inside Docker
The frontend (Laravel Mix) is running on the host system
This issue is happening on a FRESH project installation of Laravel 9 + Jetstream AND it's also happening on my other older projects like https://github.com/StratumPanel/Stratum-Panel
The HMR server is simply not launching.

The HMR server is definitely launching for me here in your test project and I can load resources from it. I expect this is an interaction issue with Docker somehow. I'll need to investigate further.

The HMR server is definitely launching for me here in your test project and I can load resources from it. I expect this is an interaction issue with Docker somehow. I'll need to investigate further.

I found out the issue. The problem was that the default port, 8080, Laravel Mix HMR was using couldn't be binded to. Webpack Dev Server doesn't respond with a message of failing to bind to a port. To confirm this issue, I replicated the environment on my friend's PC and it too couldn't bind to port 8080, but this time it reported an error that the dev server couldn't bind to port 8080.
I fixed this issue by specifying
.options({
        hmrOptions: {
            host: 'localhost',
            port: 4206
        }
    });

And it works! On both my friend's pc and my pc.
I used the exact same reproduction instructions on my friend's PC.
I spent way too long investigating this issue 😭

Could something be added to the documentation about this specific behavior? To warn the user that if they are receiving net::ERR_EMPTY_RESPONSE, they might need to change the port.

I'd like to figure out why you didn't see the message on your set up but your friends set up did. That's a bit weird. We should do something about that.
But yeah a note in the documentation is entirely reasonable.

I'd like to figure out why you didn't see the message on your set up but your friends set up did. That's a bit weird. We should do something about that.
But yeah a note in the documentation is entirely reasonable.

I opened a pull request with some edits at https://github.com/laravel-mix/laravel-mix/pull/3248
Please review it when it is convenient for you. Thank you!


local multicast/MDNS for relay

A friend and I were able to transfer a file directly, when both of us were normally using a VPN (which means the data has to go through the relay, very slow), by switching to a local ad-hoc network. (on OS-X, this is done by choosing "Create Network.." from the wifi menu). To accomplish this, I had to run a relay locally, and he had to use --relay-url=ws://MY-IP-ADDR:4000/v1. Neither of us were connected to the real internet while on the ad-hoc network, so the normal relay wasn't available.
It'd be slick to have a mode that does this without running a local relay. MCT and I were thinking about this a while ago. I'm imagining something like this:

use --relay-url=multicast, or --relay-multicast, or MDNS, or some flag to say "use the local network instead of the default relay server"
replace the rendezvous protocol client with one that joins a multicast group, sends periodic messages to the group until the other client responds, then sends messages directly to the other client

There might be a cheaper/easier/less-coding way to go, like by having a distinguished side (maybe the sender) run a full rendezvous server (with an in-memory database instead of relay.sqlite on disk), then register it on a well-known MDNS/zeroconf/bonjour name. The receiver could repeatedly try to connect to a relay at that well-known name, and then speak the normal relay protocol.

For reference, zget is a similar CLI tool to transfer files, which currently works only over the local network and without encryption (though encryption is being worked on). The sender uses zeroconf MDNS to advertise the file, and the recipient waits for the advertisement to tell it where to connect.
Cross-pinging @nils-werner, author of zget. It looks like these two tools are gradually converging.
For the CLI, it would be good to name the option something like --local or --nointernet that matches what the user wants to do, rather than something based on the technical details of how it works.

Excellent, thanks for the pointer!

Talking with @saljam (a Camlistore guy) today, we had a few thoughts:

if you can't talk to the normal relay, start a local one and advertise it via MDNS
https://pypi.python.org/pypi/zeroconf looks useful here.
the sender should poll all local relays, build up a list of channels currently in use, then allocate a new one, and add it to the local server
the receiver should poll all local relays, do tab-completion over the union of all channels being advertised, then use the relay advertising the channel selected by the wormhole code
this is easier than trying to advertise a channel directly to MDNS, since we already have the server code in each client, and it's easier to poll for local relays (_tcp._wormhole.local) than to poll for an (unbounded) number of channels (3._wormhole.local, 4._wormhole.local, etc).
client and server could both run relays, publish a random ID, let the higher ID drive. But it's probably safer to have the sender run the relay, since they're allocating the channel. The "offline code" use case might need to be handled specially.

Are race conditions a concern for picking new channel IDs?

Yeah, although if the rate of client allocations is low enough, the chances of a collision should be too low to worry about.
With just one (central) rendezvous server, allocations are sound (there's no way for two clients to be allocated the same value) regardless of how fast they arrive. If you aren't on the internet, so you're running a rendezvous server yourself, then you might overlap with someone else who's doing the same thing (running wormhole send at the same time as you), and it'd be good to avoid collisions. The "pre-flight" check would be to query all the (MDNS) servers we can find, and ask them for all the channels they're currently hosting. Then the race window opens, and we pick a channel at random, and before we reveal it to the user (in a wormhole code), we stall a little bit for other senders to query us. Say we wait one second. If someone else picked the same channel as we did, and queried us just before we picked that channel, then we'll have a collision.
Eyeballing it, the chances of a collision are the round trip time, divied by the mean inter-arrival request time, multiplied by the probability of choosing the same channel (e.g. 10% for one-digit channels). It's been a long time since I studied probability theory, though, so I wouldn't bet on my math :).

More thoughts:
We've got two possible workflows. The first is where one side allocates the channel and creates the code, then the other side learns the code and types it in. In this workflow, the server picks the channel (in response to a "please allocate me one" message from the server), and the second side can be confident that the channel exists already.
The second workflow is where the two humans choose the channel ID (along with the rest of the code) randomly, offline, then they go home and type the codes into their computers. In this one, we don't know which side will type it in first. So both sides must be prepared to be the first one, which means they'll claim the channel (by telling the server)
wormhole send knows whether it's in the online-allocation or offline-allocation case (the latter is wormhole send --code=CODE). wormhole receive does not. Tab-completion on the channel ID is not always useful when doing offline codes (if the sender is already running, then the channel-id is claimed and will show up when the receiver asks for the current list, but if the receiver went first, it won't), and anyways it's unlikely that the humans used the same wordlist.

We need to decide whether the local-network setting should handle the offline flow. It's not obviously useful, but it might be cleaner if all settings handle all workflows.

A local-network offline-code situation means that both sides must run a relay server, then check for other relays, then check for the requested channel being claimed on any of them. If the channel isn't already present, the side (either sender or receiver) should claim it locally, then wait for the other side to connect and query the channel ID.

In no case should we claim a channel on an external server that isn't the central server, because that server might actually be another client (involved in an unrelated transfer), which might shut down before our own connection is complete.

Could it be possible to leave out the relay server entirely? Instead, the sender could advertise the channel ID directly using MDNS, and offer a relay-server-like API to do the remaining negotiation.
I understand that this turns a lot of the system on its head and is probably not easily implemented. However this is the remaining feature about zget, that I prefer: You don't need a central server run by someone else on the internet.

Could it be possible to leave out the relay server entirely? Instead, the sender could advertise the channel ID directly using MDNS, and offer a relay-server-like API to do the remaining negotiation.
I understand that this turns a lot of the system on its head and is probably not easily implemented. However this is the remaining feature about zget, that I prefer: You don't need a central server run by someone else on the internet.

Yeah, I think that'd work, as long as you know ahead of time that you're both on the same broadcast domain (or whatever gets you a shared MDNS namespace). Maybe wormhole send --mdns-only foo.zip. You'd still need some kind of channel-id to avoid colliding with anyone else who was doing MDNS-only wormhole at the same time, but I think MDNS has plenty of support for claiming a name and checking to see if anyone else is using it first, so the channel-id could almost always be just "1". I love the idea of avoiding a central server when you can.
Does zget have any way to get a file to someone on a non-local network? Is it MDNS-only?

I would be cool if wormhole defaulted to first trying a local broadcast and only after some timeout go to the relay server. But again, that adds yet another layer of complexity on top.

MDNS has plenty of support for claiming a name and checking to see if anyone else is using it first.

From what I've learned doing zget, is that zeroconf is really weird about certain things. The Python package does indeed raise an exception if the service name is already taken, but I wouldn't rely on it really.  It is a really messy system and without a central authority I would simply assume everybody else is doing it wrong and design for the worst case :-)
Also, only using channel 1 would probably make it really likely to have collisions at big networked events like 33c3 when everybody is using
1._magicwormhole._tcp.local.

How are channels allocated on the rendezvous server? Just pick the lowest available one? Could you just use a random function to pick any MDNS channel from 0-20?
In any case, it would be trivially easy for somebody to just DoS the broadcast domain and force a fallback to the rendezvous server by squatting all service names.

Does zget have any way to get a file to someone on a non-local network? Is it MDNS-only?

Yes, it is MDNS only, doesn't have a rendezvous or relay server and only allows transfers if you are on the same LAN. zget does peer finding a bit differently; the equivalent of the channel ID is the SHA-1 hash of the filename you are trying to transfer, which is known to both parties. The sender announces
<sha-1-of-filename>._zget._http._tcp.local.

and the recipient looks for that. That obviously gives zero protection from attackers but at least makes it unlikely for an accidental collision to happen.

How are channels allocated on the rendezvous server? Just pick the lowest available one?

Pretty close. The allocation code chooses a random single-digit code, if any are available. If not, it chooses a random two-digit code. If those are all used up, it does the same for three-digit codes. If those are used up too, it just starts picking randomly from 1000-1000000 for a thousand trials and hopes one of them is free.
I wanted to make it slightly more random than "always lowest available", so that people didn't get into the habit of assuming that codes always started with 1-.

Could you just use a random function to pick any MDNS channel from 0-20?

Yeah, that would probably work. (we treat "0" as special, for an unauthenticated no-code-necessary throw-caution-to-the-wind mode). If we know that we're being asked to allocate a code (e.g. wormhole send without the explicit --code= argument), then it'd be nice to use MDNS to query for which channels are already in use, to reduce the chance of collisions somewhat (not entirely, because of races). But if the range we're picking from is large enough, and the rate at which people are using them is low enough (on a given broadcast domain), then it probably doesn't matter.

In any case, it would be trivially easy for somebody to just DoS the broadcast domain and force a fallback to the rendezvous server by squatting all service names.

The same DoS attack is easy to do against the rendezvous server, so no real change there.


Add File > Close to macOS menu template

This PR updates the macOS template to accept a command + w keystroke in order to close the window.
List which issues are fixed by this PR. You must list at least one issue. An issue is not required if the PR fixes something trivial like a typo.
#102439
If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] I followed the breaking change policy and added Data Driven Fixes where supported.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

We should get resolution on https://github.com/flutter/flutter/issues/102439#issuecomment-2451975447 before proceeding here, since this may have the side effect of making custom menus harder.

@anayw2001 thanks for your patch. I'm going to convert to draft while we wait for a resolution on https://github.com/flutter/flutter/issues/102439#issuecomment-2455634127


Rows not always being added to hfj_spidx_date table on resource updates with searchable dates

This is an interesting one.  I was observing erratic search query behavior involving dates and date ranges with Appointment resources (which have searchable start dates), where matching resources would not always appear in search results involving ranges (i.e., GE or LE).  I discovered that the problem was triggered by multiple resource updates:

Appointment resource would be created and its metadata stored in the hfj_spidx_date table.  A search query such as http://<IP_ADDRESS>:8080/hapi/baseDstu3/Appointment?date=ge2018-07-01 would match it.
An update would then be done to the resource but its entry in the hfj_spidx_date table would suddenly disappear after the operation.  This would cause the resource to not be part of the search query result-set.
I would then do another update to the resource and its entry would re-appear in the hfj_spidx_date table, causing the resource to appear once again correctly in the query result-set.

Therefore, every other update to the resource causes its entry to disappear from the hfj_spidx_date table.
I'm investigating and will assign this issue to myself.  Any feedback from the rest of the team is appreciated.  I've attached two screenshots showing Appointment resource ID #604 in the table for one update and disappearing after the next update.

I realized I can't assign this issue to myself.  Feel free to assign it to me.

As update, problem lies in the removeCommon() processing within the BaseHapiFhirDao class.  Testing possible fixes.  All indexed tables are affected.

The behavior I'm observing above appears to be equivalent to issue #809.  We're seeing this in the 3.4.0 snapshot build.  I'll investigate further to see if date comparisons are the culprit.

This is likely a duplicate of #809.  We observed this in 3.1.0.  I'll verify if we still see it in 3.4.0 snapshot.


For KeyIsLocked error reported for timeout, if a lock is recently updated, don't try to resolve it.

ref

https://github.com/pingcap/tidb/issues/42717

PTAL @MyonKeminta @cfzjywxk . Performance test reveals that the PR introduces slight performance regression. But I haven't figure it out.

@MyonKeminta PTAL again


check if clause

manual_->position(B.x, B.y, B.z);
if (upper_triangle) {
manual_->textureCoord(0, 1);
} else {
manual_->textureCoord(0, 1); // <-- identical
}

Can you please make sure to tell us what version of ROS you are using and which file it is?  Otherwise these are difficult to figure out.  Also, please feel free to open PRs to fix these.


Dep 3996 -  bundle looping fix in Skin service

DEP-3996
Checklist PR Raiser

[x]  I've ensured code coverage has not decreased
[x]  I've dealt with any new compilation warnings
[x]  I've ensured the team's coding standards have been met (TBC)?
[ ]  If relevant, I've created corresponding app-config-XXX changes?
[ ]  If I've created new test data, I've ensured there is no real person's data (see https://confluence.tools.tax.service.gov.uk/display/CD/Test+Data+in+the+Open)
[x]  I've considered the impact my changes have on the UI/Journey tests (please do not break them)
[ ]  If relevant, I've added links to associated PRs

Checklist PR Reviewer

[ ]  I've checked to ensure all relevant unit tests have been written
[ ]  I've checked to ensure the team's coding standards have been met
[ ]  I've executed the acceptance test pack locally to ensure there are no functional regressions (Performance tests where relevant)
[ ]  If I merge I will ensure I use squash and merge

https://github.com/hmrc/build-jobs/pull/11924


[BUG][Function App] Unauthorized access. 'Listen' claim(s) are required to perform this operation

Library name and version
Azure.Messaging.ServiceBus 7.16.2, Microsoft.Azure.WebJobs.Extensions.ServiceBus 5.13.3
Describe the bug
Followed the instruction in https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-managed-service-identity#azure-built-in-roles-for-azure-service-bus to enable managed identity for function Apps, but getting exceptions as above.
Function App has "Azure Service Bus Data Receiver" access, and fullyQualifiedNamespace is given.
While running via visual studio the function app seems to work as expected (my Id has sender and receiver access)but when deployed the exceptions are observed and function Appp does not seem to work. But I observe the queue is being read but processing does not complete. not sure where the message is getting lost.
Expected behavior
message from queue be read and be able to process the message, or any other relevant exception.
Actual behavior
Execption
023-11-03T13:59:46.223 [Error] Message processing error (Action=Receive, EntityPath=myqueue, Endpoint=myservicebus.servicebus.windows.net)System.UnauthorizedAccessException : Unauthorized access. 'Listen' claim(s) are required to perform this operation. Resource: 'sb://myservicebus.servicebus.windows.net/myqueue'. TrackingId:e3f45881964ea40beb2dc8df1c3cf4ad1_G6, SystemTracker:gateway7, Timestamp:2023-11-03T13:59:45For troubleshooting information, see https://aka.ms/azsdk/net/servicebus/exceptions/troubleshoot.at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Azure.Messaging.ServiceBus.Amqp.AmqpReceiver.ReceiveMessagesAsyncInternal(Int32 maxMessages,Nullable1 maxWaitTime,TimeSpan timeout,CancellationToken cancellationToken)at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Azure.Messaging.ServiceBus.Amqp.AmqpReceiver.<>c.<ReceiveMessagesAsync>b__45_0(??)at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at System.Threading.Tasks.ValueTask1.get_Result()at async Azure.Messaging.ServiceBus.ServiceBusRetryPolicy.RunOperationT1,TResultat System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Azure.Messaging.ServiceBus.ServiceBusRetryPolicy.RunOperationT1,TResultat System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Azure.Messaging.ServiceBus.Amqp.AmqpReceiver.ReceiveMessagesAsync(Int32 maxMessages,Nullable1 maxWaitTime,CancellationToken cancellationToken)at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Azure.Messaging.ServiceBus.ServiceBusReceiver.ReceiveMessagesAsync(??)at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Azure.Messaging.ServiceBus.ReceiverManager.ReceiveAndProcessMessagesAsync(CancellationToken cancellationToken) 2023-11-03T14:00:00.886 [Error] Message processing error (Action=Receive, EntityPath=myqueue, Endpoint=myservicebus.servicebus.windows.net)System.UnauthorizedAccessException : Unauthorized access. 'Listen' claim(s) are required to perform this operation. Resource: 'sb://myservicebus.servicebus.windows.net/myqueue'. TrackingId:e3f45881064ea40beb2dc8df1c3cf4ad1_G6, SystemTracker:gateway7, Timestamp:2023-11-03T14:00:00For troubleshooting information, see https://aka.ms/azsdk/net/servicebus/exceptions/troubleshoot.at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Azure.Messaging.ServiceBus.Amqp.AmqpReceiver.ReceiveMessagesAsyncInternal(Int32 maxMessages,Nullable1 maxWaitTime,TimeSpan timeout,CancellationToken cancellationToken)at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Azure.Messaging.ServiceBus.Amqp.AmqpReceiver.<>c.b__45_0(??)at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at System.Threading.Tasks.ValueTask1.get_Result()at async Azure.Messaging.ServiceBus.ServiceBusRetryPolicy.RunOperation[T1,TResult](??)at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Azure.Messaging.ServiceBus.ServiceBusRetryPolicy.RunOperation[T1,TResult](??)at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Azure.Messaging.ServiceBus.Amqp.AmqpReceiver.ReceiveMessagesAsync(Int32 maxMessages,Nullable1 maxWaitTime,CancellationToken cancellationToken)at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Azure.Messaging.ServiceBus.ServiceBusReceiver.ReceiveMessagesAsync(??)at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Azure.Messaging.ServiceBus.ReceiverManager.ReceiveAndProcessMessagesAsync(CancellationToken cancellationToken)
2023-11-03T14:00:15.713 [Error] Message processing error (Action=Receive, EntityPath=myqueue, Endpoint=myservicebus.servicebus.windows.net)System.UnauthorizedAccessException : Unauthorized access. 'Listen' claim(s) are required to perform this operation. Resource: 'sb://myservicebus.servicebus.windows.net/myqueue'. TrackingId:e3f45888164ea40beb2dc8df1c3cf4ad1_G6, SystemTracker:gateway7, Timestamp:2023-11-03T14:00:15For troubleshooting information, see https://aka.ms/azsdk/net/servicebus/exceptions/troubleshoot.at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Azure.Messaging.ServiceBus.Amqp.AmqpReceiver.ReceiveMessagesAsyncInternal(Int32 maxMessages,Nullable1 maxWaitTime,TimeSpan timeout,CancellationToken cancellationToken)at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Azure.Messaging.ServiceBus.Amqp.AmqpReceiver.<>c.<ReceiveMessagesAsync>b__45_0(??)at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at System.Threading.Tasks.ValueTask1.get_Result()at async Azure.Messaging.ServiceBus.ServiceBusRetryPolicy.RunOperationT1,TResultat System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Azure.Messaging.ServiceBus.ServiceBusRetryPolicy.RunOperationT1,TResultat System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Azure.Messaging.ServiceBus.Amqp.AmqpReceiver.ReceiveMessagesAsync(Int32 maxMessages,Nullable`1 maxWaitTime,CancellationToken cancellationToken)at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Azure.Messaging.ServiceBus.ServiceBusReceiver.ReceiveMessagesAsync(??)at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at async Azure.Messaging.ServiceBus.ReceiverManager.ReceiveAndProcessMessagesAsync(CancellationToken cancellationToken)
Reproduction Steps
Azure.Messaging.ServiceBus 7.16.2
Microsoft.Azure.WebJobs.Extensions.ServiceBus 5.13.3
[FunctionName("myFunctionApp")]
public void Run([ServiceBusTrigger("myqueue", Connection = "AzureServiceBusConnection")] ServiceBusReceivedMessage message, ServiceBusMessageActions messageActions)
{
if (message == null || messageActions == null)
{
//log
return;
}
 try{
   //do something
   messageActions.RenewMessageLockAsync(message);
   messageActions.CompleteMessageAsync(message);
 }
 catch(Exception ex)
 {
    //log
	throw;
 }

}
Environment
Hosting on Azure
OS is windows,
Function App- .Net 6.0(target framework)
Microsoft Visual Studio Enterprise 2022 (64-bit) - Current
Version 17.7.6

Thank you for your feedback.  Tagging and routing to the team member best able to assist.

Hi @v-yn, it seems that the identity you are expecting may not be getting used when your app is deployed. Are you able to look at the Informational logs when the app first starts receiving to determine which credential/identity is being selected?

it seems that the identity you are expecting may not be getting used when your app is deployed. Are you able to look at the Informational logs when the app first starts receiving to determine which credential/identity is being selected?

Not sure how to check that could you please help me find how to check that?

@JoshLove-msft
could you please help me further.

Sure, can you follow the directions to enable Azure SDK logging?


Add methods to CsvRow to handle empty fields

The getField and findField methods on CsvRow return an empty string if there is no value for a field. This is such a common case that it would be helpful if there were methods which treated an empty value as missing:
String getValue(String fieldName);
Optional<String> findValue(String fieldName);

The current code returns empty string if the column is found but there is no data. That seems reasonable to me, and better than optional empty or an exception.

I'm suggesting this as a useful addition to the existing behaviour, not a replacement for it.
A lot of the files I'm parsing with CsvFile have many columns with optional values. So I have to check for empty strings everywhere. An empty string is fundamentally different to any other value in most cases as it can't be parsed into anything interesting. That's why it would be useful to be able to treat it as a missing value.


Allow sim.loop.to_df() for non-run sim

This should work, but instead requires viewing sim.loop.plan directly, or running the sim first:
import starsim as ss

sim = ss.Sim(diseases='sis', networks='random').init()
sim.loop.to_df()

Closed by #745


DependencyLib error in Internet Explorer

Hi friend , I use this library with RequireJS , but when I use Internet Explorer, this dependence ( dependencyLib.js ) is throwing me the following error. Thanks for the input.

@gthlopez ,
This is fixed.  Be aware that you still can use jquery as the dependency.  Have a look in the dist folder for other possible dependencyLibs.   The dependencyLib.js will be a vanilla javascript dependency but is still a WIP.  For the events I still rely on jquery.


Bifrost SALP grant application

Grant Application Checklist

[x] The application template has been copied, renamed ( project_name.md) and updated.
[x] A BTC or Ethereum (DAI) address for the payment of the milestones is provided inside the application.
[x] I have read and acknowledged the Terms and Conditions.
[x] The software delivered for this grant will be released under an open-source license specified in the application.
[x] The total funding amount of the project is below USD $30k for initial grant applications and $100k for follow-up grants.
[x] The initial PR contains only one commit (squash if needed before submitting your PR).
[x] The grant will only be announced once the first milestone has been accepted.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: wodlj1314:x: lvqinghaoYou have signed the CLA already but the status is still pending? Let us recheck it.

Hey @wodlj1314. Thanks for the application. This is just a cosmetic request, but could you squash the commits so the thread looks a bit more compact?
Looks like a lot more effort went into it since the last time, happy to see that. Great mockups too.

Combined with vsToken, vsToken can be redeemed 1:1 after slots retirement.

This is a typo
Could you summarise the changes you've made since your last application in a comment? And in general, I think it would be good if you could be as much more technical and detailed as possible with the deliverables. I.e. the rest of the application is important too, but the deliverables are the contract. As such we'd like to know what we'd be signing. I'm also not sure how you plan to develop some of these e.g. deliverable 1 of M1

Combined with the XCMP protocol, define the parachain data structure. Projects register crowdload on bifrost for the parachain auction.

As far as I know XCMP isn't even finalised so I'm not sure how you'd implement this. Also would you want to create a parachain just for this purpose? Do you have a PoC for this or anything?

Hey @wodlj1314. Thanks for the application. This is just a cosmetic request, but could you squash the commits so the thread looks a bit more compact? Also please remove the .DS_Store file.
Looks like a lot more effort went into it since the last time, happy to see that. Great mockups too.

Combined with vsToken, vsToken can be redeemed 1:1 after slots retirement.

This is a typo
Could you summarise the changes you've made since your last application in a comment? And in general, I think it would be good if you could be as much more technical and detailed as possible with the deliverables. I.e. the rest of the application is important too, but the deliverables are the contract. As such we'd like to know what we'd be signing. I'm also not sure how you plan to develop some of these e.g. deliverable 1 of M1

Combined with the XCMP protocol, define the parachain data structure. Projects register crowdload on bifrost for the parachain auction.

As far as I know XCMP isn't even finalised so I'm not sure how you'd implement this. Also would you want to create a parachain just for this purpose? Do you have a PoC for this or anything?

Hi Alxs,
Very nice to see you again, thanks for your kind suggestions, we will commit a new one basic on your comments soon.
KIng regards

Sounds good. Just adding a reference to your previous application #247

Closing due to inactivity. Happy to reopen should you decide to follow up on my feedback.


Update find-view-matches.js to support more locators

Added support for locator: 'tagName'.
Also need to update README.

Thanks @razielron! I will release a new version asap. Cheers.


How to use modern authentication instead of basic authentication in ews-android-api

This is not a issue, just asking some tips and support from you. I have been using the ews-android-api in my application to get the events etc.. According to the docs, the basic authentication will be deprecated on the coming October 2020. I believe the basic authentication have been using in this, So how can I use modern authentication instead of basic authentication in my application to continue using the ews-android-api in my projects after October. Looking forward to your suggestions and support.
The sample code used for login
   private void loginEws(){

       ExchangeUser user = new ExchangeUser(mUsername, mPassword, mExchangeServerUrl, mMailboxEmail);
       ExchangeHelper helper = new ExchangeHelper(user);
       helper.login();

   }
  public void login() throws Exception {
        ExchangeService service = createService();
        Mailbox mailbox = new Mailbox(user.getMailbox());
        FolderId folderId = new FolderId(WellKnownFolderName.Calendar, mailbox);
        CalendarFolder folder = CalendarFolder.bind(service, folderId);
    }

 private ExchangeService createService() {
        try {
            ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);
            ExchangeCredentials credentials = new WebCredentials(user.getUsername(), user.getPassword());
            service.setUrl(new URI(user.getServerUrl()));
            service.setCredentials(credentials);
            return service;
        } catch (URISyntaxException e) {
            e.printStackTrace();
            return null;
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }

I'm just now starting to look into this myself. Any progress?

We had the same problem and ended up implementing IMAP.
The best MS solution ist to switch to MS Graph API.
But as we needed a vender neutral solution so this was not possible for us.

Hi @GameScripting   @Thewizeguy

Modern authentication uses token to authenticate and access the exchange instead of the username and password, so we can use the same MSAL authentication used in Microsoft Graph API for getting the token.

Replace all the scopes used for MS graph API with this scope "https://outlook.office.com/.default".

Use the auth-token got through MSAL authentication instead of passing username and password as credentials to create service and access the exchange events.

 private ExchangeService createService(String authToken, String mailBoxEmail,String serverUrl) {
            try {
                 final ExchangeService service = new ExchangeService();
                 service.setTraceEnabled(true);

                 /* Use the authToken instead of creating credential with username and password
                     ExchangeCredentials credentials = new WebCredentials(username, password);
                     service.setCredentials(credentials);
                */

                service.getHttpHeaders().put("Authorization", "Bearer " + authToken);
                service.getHttpHeaders().put("X-AnchorMailbox", mailBoxEmail);
                service.setUrl(new URI(serverUrl));
                return service;
           } catch (URISyntaxException e) {
               e.printStackTrace();
           } catch (Exception e) {
              e.printStackTrace();
           }
}

@arunsankar8 I'm currently watching this video that shows how to add MSAL support. Around 30 mins in or so. https://www.youtube.com/watch?v=BLmOmv4FSsQ&ab_channel=Microsoft365Developer

Well lucky for us it looks like this move has been delayed until the second half of 2021. I'd still like to update my code but that's nice find.
https://developer.microsoft.com/en-us/office/blogs/deferred-end-of-support-date-for-basic-authentication-in-exchange-online/

Perhaps, also you should use token with this scope - https://outlook.office365.com/EWS.AccessAsUser.All


Problem in the analyzer or in the VM (or in both)

  // VM parses: OK
  // VM executes: OK
  // Analyzer parses: Fail
  var good1 = const Symbol("#unary-");
  // VM parses: Fail
  // VM executes: Unknown
  // Analyzer parses: Fail
  var good2 = #unary-;

Anybody here tested the following?

VM parser
Analyzer constant expression evaluator
VM error messages (such as the Class 'XXX' has no instance method 'unary-')

Also question: Method name (which is a symbol) unary- is a legal name?
P.S.
According to this message (Class 'XXX' has no instance method 'unary-') a class can to have a method declaration with a name unary-.
That is, a symbol unary- is a legal symbol.
If it is a legal symbol then should be a way to declare it literally as and other symbols.
Eg.
var name1 = #-;
var name2 = #unary-;

The VM accepts any string as parameter to const Symbol, whether it's something that creates a meaningful symbol or not. That's why it accepts const Symbol("#unary-"), which isn't a useful symbol name. The symbol you are looking for is const Symbol("unary-") and is, as you say, the name of the unary prefix minus operator (the one declared as operator-()).
The specification of the Symbol constructor actually says that it should reject invalid parameters, even when used as const. That requires a hack because const execution can't validate the input, and the VM hasn't added such a hack.
There is no way to write a symbol literal for that particular symbol, so #unary- isn't a symbol literal - it's the symbol unary followed by a minus. If you write #unary-2 you will see that it parses, and then fails at runtime because symbols don't implement binary minus. So, maybe there should be a way to write it as a literal, but currently there isn't.

The specification of the Symbol constructor actually says that it should reject invalid parameters, even when used as const. That requires a hack because const execution can't validate the input, and the VM hasn't added such a hack.

Thank you for the clarification.

@lrhn
How to corretly determine that a class declares a unary minus operation?
If I will use an invalid symbol that it would be incorrect because in the future this option can fail (due the specification).
But I will not use invalid symbol (which is correct) then how I find it in the type members declarations by the name?
Please, give me a Dart technical support (answer) how I should use it because this is mutually exclusive constraint (according to your previous answer).
Thank you in advance.