[Codespace] An error occurs when downloading a folder/file from blob container

OS: Win10
Build Version: Latest Release
Repro Step:
Download a folder/file from blob container.
Expect:
Download the folder/file successfully.
Actual:
An error occurs when downloading a folder/file from blob container.

Details in Output:
Downloading from "test001" to "/test001"...
Could not transfer "/test001"
Error: AzCopy Transfer: "Failed".

More Info:
This issue also reproduces for the file share.

It looks like you downloaded that file to the root directory. It makes sense that it failed because Codespaces doesn't give you admin rights to anything except the home/codespaces folder.
Downloading a file to a location in the home/codespaces folder works as expected


[AIRFLOW-759] Use previous dag_run to verify depend_on_past

The start_date and the schedule interval can be misaligned. This
is automatically corrected in the scheduler. The dependency checker
however did not do this.
Dear Airflow Maintainers,
Please accept this PR that addresses the following issues:

AIRFLOW-759

Testing Done:

Integration tests

@msumit @btallman @aoen @plypaul

Current coverage is 67.24% (diff: 92.85%)

Merging #1994 into master will increase coverage by <.01%

@@             master      #1994   diff @@
==========================================
  Files           135        135
  Lines         10366      10367     +1
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           6970       6971     +1
  Misses         3396       3396
  Partials          0          0

Powered by Codecov. Last update 648bd4e...17302e9

+1.. scheduler code is still black box for me.. but can verify that fix did resolve the issue..


High RAM usage when opening multiple DBs

The RAM usage is very high when opening multiple (~10) databases
Does this come from js-ipfs?

It likely comes from IndexedDB usage, which an upcoming release will fix. Stay tuned!


0.8.0 release

I need to open this as a PR to get the release onto master 😄
v0.8.0 is out on npm with the latest master

Interesting, I've forgotten to do this for a while now.
0.7.0 is the latest npm version. It went out on either 31. April or 1. May

Why are there three commits in this PR :D ?

It seems I haven't pushed an updated package.json for a while. I've been updating the lib regularly on npm but completely forgotten to push it 😬 . This puts it back on track so from now on it should be kept up to date 😄

@arnarthor yeah, but my question is, can't we squash them?

Done @wokalski 👍


inaccurate preprocess steps of recognizer and classifier

hi @sdcb
I found that you used the different preprocess setps compared with PaddleOCR official.
the more accuracy we can obtain if we keep the preprocess step same with training.
I think we'd better keep the same process.
generally the common preprocess steps are listed below,
not all of steps are need.
1, BGR => RGB
2, resize/padding
3, 8UC1/8UC3 => 32FC1/32FC3
4, mean => all pixels - mean (subtract)
5, std => all pixels / std (divide)

recognizer preprocess code from PaddleOCR
mean:
  -
    - 127.5
    - 127.5
    - 127.5
std:
  -
    - 127.5
    - 127.5
    - 127.5

classifier preprocess code from PaddleOCR
    def resize_norm_img(self, img):
        imgC, imgH, imgW = self.cls_image_shape
        h = img.shape[0]
        w = img.shape[1]
        ratio = w / float(h)
        if math.ceil(imgH * ratio) > imgW:
            resized_w = imgW
        else:
            resized_w = int(math.ceil(imgH * ratio))
        resized_image = cv2.resize(img, (resized_w, imgH))
        resized_image = resized_image.astype('float32')
        if self.cls_image_shape[0] == 1:
            resized_image = resized_image / 255
            resized_image = resized_image[np.newaxis, :]
        else:
            resized_image = resized_image.transpose((2, 0, 1)) / 255
        resized_image -= 0.5
        resized_image /= 0.5
        padding_im = np.zeros((imgC, imgH, imgW), dtype=np.float32)
        padding_im[:, :, 0:resized_w] = resized_image
        return padding_im

mean: [0.5, 0.5, 0.5] => mean: [0.5*255, 0.5*255, 0.5*255] => mean: [127.5, 127.5, 127.5]
std : [0.5, 0.5, 0.5] => std : [0.5*255, 0.5*255, 0.5*255] => std: [127.5, 127.5, 127.5]

input tensor 0-1 with mean_rgb = (0.485, 0.456, 0.406) std_rgb = (0.229, 0.224, 0.225)
so for input image [8U,0-255], mean should multiply 255 and norm should div by std.
const float mean_rgb[3] = { 255.f * 0.485f, 255.f * 0.456, 255.f * 0.406f };
const float norm_rgb[3] = { 1 / (255.f * 0.229f), 1 / (255.f * 0.224f), 1 / (255.f * 0.225f) };

using int [0-255] or float [0-1]  is dependent on whether we scale it firstly or not.
code from PaddleOCR
            'NormalizeImage': {
                'std': [0.229, 0.224, 0.225],
                'mean': [0.485, 0.456, 0.406],
                'scale': '1./255.',
                'order': 'hwc'

I looked over this code snippet you're using.
the result is roughly the same.
the MAE (mean absolute error) can be ignored.
so let me close this.


license missing

Hi,
as the title says the license of this repo is missing. I suggest using the same one as kontrolilo.

Thanks @frnmst for pointing out the issue. I have added a license.


Streamers may be available across different guilds

Test if the bugs exists by adding the bot to another server.

Bug has been confirmed.


Associate one team to more organizations - Feature Request [kind/feature]

Hi,
It would be great if  an admin could associate one team to more than one organization in gitea web ui and with rest API.
With this "team grouping" would be much more easier and faster to associate team members to more orgs, than associate user to more orgs one by one, especially if there is more than 10 users.
Thanks.
Tom

Such global groups would be also needed to implement group syncing from LDAP

duplicated with #3642


where to find Supplementary Material

Thks for your work, but I can't find Supplementary Material in your paper. How can I find the Supplementary Material?

https://drive.google.com/file/d/1aSu0FzL1LKkU_0Y1vKVAcnq-I4MKhkCU/view?usp=sharing

https://drive.google.com/file/d/1aSu0FzL1LKkU_0Y1vKVAcnq-I4MKhkCU/view?usp=sharing

thanks for your sharing!!!


CI: run stress tests for 1hr instead of 500secs

closes #190

LGTM. Is there a reason to choose 1 hour specifically? Currently CI runs this on every PR. Ideally we would want to avoid running this when there are no code changes, but even then, trivial code changes waiting an hour for stress testing to finish (and having to go through it all when rebasing, etc.), seems a bit much.

trivial code changes shouldnt have to go through stress and unit tests right? the problem right now is that the stress is not long enough for actual code changes.. we could add an additional pipeline which will be longer or maybe its possible to tune it with some external arg?


publish the app as a MacOS app as an official App Developer

Currently the MacOS user has to install the app by downloading the DMG from GitHub. This is fine, as you can update also smoothly by downloading a new install.
However, after a download you have to open it in a special way (e.g. right mouse click on the app and press open) as it will warn you that this is from an unknown developer and are you sure you trust this.
It might be possible that a non-technical user does not know this and won't be to install it.

Did  a search on this and found following:
https://electronjs.org/docs/tutorial/code-signing#signing-macos-builds
It requires an annual fee. Lets discuss further on this.


How to provide input while debugging

How to provide input while debugging

https://github.com/mfussenegger/nvim-dap/blob/master/doc/dap.txt#L392 or use https://github.com/rcarriga/nvim-dap-ui


[Bug Report] el-table

Element UI version
1.4.1
OS/Browsers version
any
Vue version
2.4.2
Reproduction Link
https://jsfiddle.net/believezjp/e09ddxum/
Steps to reproduce
when created a table ,default set a row highlight.
but it not worked.
What is Expected?
a row is selected default
What is actually happening?
nothing selected.

Use mounted instead of created. Please refer to Vue docs for their differences.

thank you very much~~~


Collections/Fold test on try.kotlinlang.org is incorrect

On http://try.kotlinlang.org/ looks like Collections/Fold test is incorrect.
The following code is not acceptied:
// Return the set of products that were ordered by every customer
fun Shop.getProductsOrderedByAllCustomers(): Set<Product> = customers.fold(emptySet(), {
    partProduct, element ->
    partProduct + element.orders.flatMap { it.products}
})

and the test fails with the following message:
java.lang.AssertionError:

Expected: ['IntelliJ IDEA Ultimate' for 199.0]
Actual: ['IntelliJ IDEA Ultimate' for 199.0, 'WebStorm' for 49.0, 'YouTrack' for 500.0]
    <click to see a difference>

    at org.junit.Assert.fail(Assert.java:93)
    at org.junit.Assert.failNotEquals(Assert.java:647)
    at org.junit.Assert.assertEquals(Assert.java:128)
    at org.junit.Assert.assertEquals(Assert.java:147)
    at TestFold.testGetProductsOrderedByAllCustomers(Test.kt:16)

The test looks invalid:
Assert.assertEquals(setOf(idea), testShop.getProductsOrderedByAllCustomers())

since according to description the set should contain all products from all customers.

Thanks! The function name was indeed ambiguous, so I renamed the function to 'getSetOfProductsOrderedByEveryCustomer'. In this case the test is correct.

Hello!
Sorry for commenting in an issue so old, but the text in the edutools plugin is showing the old method name. I'm not sure where to report it


fix query about series code caption exemptions

@dericed Do you make a new release? If so, I will update then the formula.


[BUG] cached files causing errors

Current Behavior:
after editing tables_metadata.sql, and running quary compile and quary build, I get errors relating to my previous version of tables_metadata.sql.
I can't see how to clear a cache or start again.
UNLESS this is a problem related to the fact that I have read-only access to the database?
Expected Behavior:
execution of quary compile and quary build should reference current files
Steps To Reproduce:
Environment:
VScode, WSL

Hey @lockmeister, not quite sure what is going on here. I do think though it is because of the access requirements you have.  compile and the build steps do require the ability to list tables/views in the analytics schema, so my guess is that is the problem you are facing.
This is good feedback and we'll include some more colour in the guide.

Thank you for raising this issue and apologies for the confusion. I think the errors you are seeing are likely due to read-only access to the database, rather than an issue with Quary itself.
To clarify:
quary compile does not use any caching. Its purpose is to parse and validate the project configuration, models and sources. It does not execute any queries against the database.
quary build executes the SQL queries defined in your models against the target database to materialize them as tables/views. This requires appropriate database permissions.
Since you have read-only access, quary build is unable to create the required tables/views in your analytics schema. We'll update our guide to make these distinctions clearer.
If you send me the error message you are getting, I'd be happy to help you set the database up with the correct permissions.
Please let us know if you have any other questions!

Documentation updated - resolving issue for now,  please feel free to re-open with any further questions.


Job DeployManagementGroupsJob: Environment main could not be found

When running the management-groups-ci, this error appears (see image). Following instructions from reference: [CanadaPubSecALZ/azure-devops-pipelines.md at main · Azure/CanadaPubSecALZ · GitHub] https://github.com/Azure/CanadaPubSecALZ/blob/main/docs/onboarding/azure-devops-pipelines.md) Step 3.3: Configure Azure DevOps Pipeline.

Discovered a functional workaround as follows:

Manually created a new environment named: dev
in the ...\config\variables\common.yml file, added the following entry at the top of the variables list (line 12): environment: dev
In the .../pipelines/management-groups.yml file, configured the jobs: environment property to reference the new common variable created in 2. above: environment: ${{ variables['environment'] }}

NOTE: I'm not sure if this is the best approach that is acceptable, but I am now able to run the pipeline job without issues and the management group structure was properly created this time :

Thanks for raising this @autocloudarc.  This is because you will have to define an environment in Azure DevOps under Pipelines -> Environments.  This name should match that of the branch.  In the past, this was auto created by ADO when missing and looks like it is no longer.
I'll get the doc updated to reference the environment setting.

@autocloudarc - Feel free to checkout the PR with the instructions:  https://github.com/Azure/CanadaPubSecALZ/pull/175/files

Reopening to associate an additional code change to the onboarding scripts so that the create-pipelines.bat script automatically detects when the environment (named after the branch) does not already exist and automatically creates it.


Fix sortRequires task's newlines

As @mramato pointed out, this gulp task is currently sets end of line characters as Windows specific newlines. This PR uses Node's OS module to ensure system dependent newlines are used.

Thanks @JoshuaStorm!


Gemfile.lock is not in repo and related issues

I want to add PhantomJS' setProxy() support to poltergeist, so I've tried to build gem from git master. Since Gemfile.lock is not checked in, bundle install installed newest gems and it seems that coffee-script compiler has changed produced JS format, after rake I have 200-lines diff (see the patch) [and some failed tests due to, apparently, changed RSpec version].
How should I proceed before actually adding setProxy(): fix the current issues with newest gems or rollback some gems to the previous versions in order to have environment matching current git master state?

Since this is a library, we intentionally don't have a Gemfile.lock checked in; libraries shouldn't be as opinionated about dependencies as applications need to be, or else we end up creating dependency hell for the applications that depend on our library.
That said, having a different coffee script compiler makes for large diffs. We usually get around this by making two commits — one for intended changes to the source coffeescript files, and another for the compiled js changes — that way a maintainer can accept your changes & recompile themselves if they so choose.

Thanks. And what about failing test due to capybara/rspec changes?

Currently there are 6 failing tests because of unimplemented capybara features. +1 for everything @yaauie said. Since there aren't useful changes in this PR I'm closing it. Feel free to open another one.


epoch_xs and make_timestamp(µs)

Document new high-precision epoch conversion functions.

Thanks as always @hawkfish! Is it worth mentioning that DuckDB maxes out at microsecond precision in the nanosecond functions?

Yeah I'm actually not entirely sure what those types do They seem to get cast at some point.


Ajax calls: PHP script timeouts randomly

Ajax calls hit their timeout without ever receiving a response from the server, despite the response has been processed.
Server details: Nginx version: 1.6.2 with PHP-5.5-FPM
What i have tried so far:

Increase php script time execution
Increase PHP-FPM read/connect timeouts
Enable keep-alive connections

None of the above worked.
Tracing the error logs
Nginx error log sample:
2015/03/25 11:51:53 [error] 17036#0: *3594 upstream timed out (110: Connection timed out) while reading response header from upstream, client: <IP_ADDRESS>, server: scottltd.net, request: "POST /productreturns/ajax/saveByInvoiceNo HTTP/1.1", upstream: "fastcgi://<IP_ADDRESS>:9000", host: "www.myserver.com", referrer: "http://www.myserver.com/myhttpendpoint"

So it times out, must be hitting max execution time somewhere:
PHP-FPM Slow Log
[25-Mar-2015 11:51:20]  [pool www] pid 20551
script_filename = /extvol/www/html/codeigniter/http/index.php
[0x00007fc4c26ea990] mysqli_query() /extvol/www/html/codeigniter/http/system/database/drivers/mysqli/mysqli_driver.php:179
[0x00007fc4c26ea890] _execute() /extvol/www/html/codeigniter/http/system/database/DB_driver.php:453
[0x00007fc4c26ea6d0] simple_query() /extvol/www/html/codeigniter/http/system/database/DB_driver.php:299
[0x00007fc4c26ea560] query() /extvol/www/html/codeigniter/http/system/database/DB_active_rec.php:1030
[0x00007fc4c26ea458] get_where() /extvol/www/html/codeigniter/http/application/models/mail_model.php:17
[0x00007fc4c26ea310] getAllUnsent() /extvol/www/html/codeigniter/http/application/libraries/mail_library.php:28
[0x00007fc4c26ea158] sendAll() /extvol/www/html/codeigniter/http/application/libraries/mail_library.php:631
[0x00007fc4c26e9f18] generateClientPR() /extvol/www/html/codeigniter/http/application/models/workflow_model.php:332
[0x00007fc4c26e9ac0] nextStep() /extvol/www/html/codeigniter/http/application/controllers/productreturns.php:1468
[0x00007fff1d4fba40] ajax() unknown:0
[0x00007fc4c26e9878] call_user_func_array() /extvol/www/html/codeigniter/http/system/core/CodeIgniter.php:359
[0x00007fc4c26e9768] +++ dump failed

call_user_func_array() looks to be the culprit. But then again, most function calls go through this line. It doesn't reveal much.
Note: If I call the endpoints directly, without using ajax, it works with no timeouts.
Previously, i was on an apache setup with mod-php. There were no timeouts on ajax calls.
Currently, i also have a laravel setup on the same nginx server. No timeouts on ajax calls. Which leads me to believe, this issue is codeigniter-core-centric.

That call_user_func_array() call is the one that calls your controller and judging by the log you've provided, unless I'm interpreting it incorrectly - you're instantiating controllers, models and libraries before that line is called, which you're never supposed to do.
Also, having a controller with ~1500 (and possibly more) lines of code is a clear sign that a ton of stuff could've went wrong in your controller and that could cause an issue. A deadlock, concurrent access to the same resource causing a conflict (which is why you only see it in ajax calls), a networking issue with something that you interact with ... it can be anything.
If you didn't have an issue under mod_php, but you have it with FPM, it would rather point to an FPM issue, not a CI one. But either way, I'd suggest you try out CI3.0rc3, which is less error-prone.
If you need help with this, please post a topic on the forums, but as it stands you're just guessing it's a CI issue and you've got a huge amount of code that only you can debug and therefore only you can figure out the exact problem. Until you can do that, there's no point in keeping this as an open issue here.

Just updating that i tried the application on codeigniter 3. Same issue.
Will be moving it to laravel.
Regards.

Issue is now solved.
Turns out, the last line where the script was hanging, i.e mysqli_query() was the culprit.
A few MySQL queries were running for like 30 seconds which caused the PHP script to hang. Fixing those queries resolved the timeouts.
I still find this to be a weird behaviour.


Add parameter support for get_project_issues

Fixes https://github.com/veracode/veracode-api-py/issues/35

FYI @tjarrettveracode I think I forgot when I did that PR, Veracode doesn't seem to have a branch parameter for the /workspace/project/issues API... the only alternative is to dump issues per workspace and then specify the project id as a filter parameter... which I'm not a fan of, it's more of an API design thing I guess

Btw I realized this hasn't been released anyways, I'm not sure it would work, since the API itself doesn't support a branch param


[Feature]  Addon Install resources in needNamespace

Is your feature request related to a problem? Please describe.

Proposal about addon installing resources into specified namespace：
Because of the mechanism of application applying resources, resource with one specified namespace defined in raw or k8s-objects type component can be deployed into it (such as fluxcd addon ). But webservice or worker component which use cue template rendering resource don't have this ability yet.
So we should provide a way to let addon maker install resources into any namespace.
Describe the solution you'd like

Addon maker can specify the namespace he want to deploy, since we already have a filed of needNamespace and all addons which using this field want to deploy resources to this namespace such as: flink-kubernetes-operator, mysql-operator and so on. So I propose install resources into the needNamespace directly.

Render the the application with needNamespace topology policy, for example if addon's meta is :

needNamespace:
   - my-namespace

the Application is :
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
   name: some-addon
   namespace: vela-system
components:
   type: k8s-objects
   name: namespace
   properties:
      apiVersion: v1
      kind: Namespace
      metadata:
          name: my-namespace
policies:
   - type: topology
      namespace: my-namespace
      cluster: [] // Please be aware of that target clusters will fill here while enabling.
  - type: share-resource
     name: shared-namespace
     properties:
         rules:
            - selector:
                   resourceType: ["Namespace"] // Namespace also can be created by another application

The needNamespace will be filled in topology namespace, and clusters specified by user when enable an addon will set in clusters field.

Since this namespace can be created by other addons, so add a shared-resource policy for namespace.

Describe alternatives you've considered

Additional context

Why do we still a policy while we already define the namespace as component?

What if users already define an application template? What will happen if conflicts occur?

What if users already define an application template in addon? What will happen if conflicts occur?

I think the addon should not modify the application in runtime, instead, it should only use the parameter of application template of addon. As a result, the flow can be:

generate application template first according to the metadata.yaml in addon.

vela addon init --meta metadata.yaml

The application template should be in format of CUE, so we can use something like parameters.cue to define runtime variables for addon. Addon render logic should only fill the parameters instead of adding components/policies/workflows to avoid conflicts.

Provide some command for re-generate if metadata changed. （generate maybe not a good name）

vela addon generate <my-addon>

Add dry-run command to show the final application that will be applied:

vela addon dry-run <my-addon>

We should let users who build an addon to know the addon is actually an OAM Application.

Discussed  offline  with @wonderflow and @Somefive, we plan to provide a new render solution for addon's application template. The purpose  of this plan is to avoid add any render magic in code, we will allow user define application template with cue file, then user can write the render logic with cue. For example if an addon developer want to let user set the target namespace and cluster , he can write this template.cue like this:
output: {
    apiVersion: "core.oam.dev/v1beta1"
    kind: "Application"
    metadata: {
        name: parameter.name
        namespace: "vela-system"
    }
    components: [...
    ]
    policies: [{
        type: "topology"
        name: "deploy-topology"
        properties: {
            if parameter.clusters != _|_ {
                clusters: parameter.clusters
            }
            // addon developer
            if parameter.clusters == _|_ {
                clusters: ["local"]
                // alternative
                clusterLabelSelector: {}
            }
            if parameter.namespace != _|_ {
                namespace: parameter.namespace
            }
        }
    }]
}

After rendered, will generate an application. So we can remove all hack render logic in our code, let user understand the mechanism of addon more easily.
Implementation phase:

support template.cue: In order to backward compatible old addon, we should support both template.yaml(old render logic in code side) and template.cue.
Provide a cli tool help user translate template.yaml and metadata.yaml to template.cue, then will only support defining application template by cue file.


Correction for raw affiliation Aeres University of Applied Sciences , Almere, The; Groningen Institute for Evolutionary Life Sciences, University of Groningen , Groningen, The

Correction needed for raw affiliation Aeres University of Applied Sciences , Almere, The; Groningen Institute for Evolutionary Life Sciences, University of Groningen , Groningen, The
raw_affiliation_name: Aeres University of Applied Sciences , Almere, The; Groningen Institute for Evolutionary Life Sciences, University of Groningen , Groningen, The
new_rors: 03jnx2c74;012p63287
previous_rors: 012p63287
works_examples: W4402920557
contact: e94baf6d902983585c7749163cc52516:6a88a79c7cc97846 @ aeres.nl

This issue was accepted and ingested by the OpenAlex team on 2024-11-01. The new affiliations should be visible within the next 7 days.


Unknown Parameter for value key: LOW_BAT

Description of problem:
Several log messages within Home Assistant:
HMGeneric.getValue: LOW_BAT on 000C98A991E4A6:0 Exception: <Fault -5: 'Unknown Parameter for value key: LOW_BAT'>
Home Assistant version (if applicable):
0.74.2
Problem-relevant configuration.yaml entries and steps to reproduce:
Standard homematic configuration for home assistant
Device is a HmIP-BWTH with 230V (without battery)

Thanks for mentioning it. Will be fixed in the next version.


Add the ability to export a winget configuration .yml file from an existing machine.

Description of the new feature / enhancement
Since one of the primary scenarios for using winget configuration is to enable consistent configuration of an existing development environment, and since many development environments can be rather complex, it would be extremely nice if there was a way of creating a winget configuration file to mimic the configuration of an existing development environment.
I fully recognize that this is an unbounded and probably impossible task to completely solve, but even just having the ability to create a winget configuration file which listed acquisition instructions for all the packages installed on the source machine that can then be tweaked by the person responsible for creating the configuration yml file would be incredibly useful.
Proposed technical implementation details
No response

Duplicate of https://github.com/microsoft/winget-cli/issues/3274


Need help building a website using Flutter Sample Code "Gallery"

Hi ,
I want to create a Flutter Website using the Flutter Sample Code Gallery,
But unable to find proper documentation guide on the same,
It will be great if someone can help me with some link or documentation for re-using the Flutter Sample Code for building my Web App

Hi @manan91
This platform is not meant for assistance on personal code.
Please see https://flutter.dev/community for resources and asking questions like this, you may also get some help if you post it on Stack Overflow.
Closing, as this isn't an issue with Flutter itself,
if you disagree please write in the comments and I will reopen it
Thank you


ci: bumoing to v1.1.0

Issue #, if available: n/a
Notes
Checklist
Before you submit a pull request, please make sure you have the following:

[x] Code changes are compact and well-structured to facilitate easy review
[x] Changes are documented in the README.md and other relevant documentation pages
[x] PR title and description accurately reflect the changes and are detailed enough for historical tracking
[x] PR contains tests that cover all new code and the code has been manual tested
[x] All new dependencies are declared (if any), and no unnecessary libraries are added
[x] Performance impacts (if any) of the changes are evaluated and documented
[x] Security implications of the changes (if any) are reviewed and addressed
[x] I have read the Contributing Guidelines and agree to follow the Code of Conduct

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Please fix branch name e.g. chore/update-cdk-constructs-version
Please fix commit name e.g. ci: version bump to v1.13.0
ref. https://github.com/aws-solutions-library-samples/osml-cdk-constructs/pull/131


Add additional details to the Lock activity

Lock operation was remote

Lock operation was done via keypad

Lock operator image url

Lock operator thumbnail url

Thanks!


ERROR with CGO

Hello.
I followed build instructions but got this error with CGO:
[webui_test]$ go build
webui_test
/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: /tmp/go-link-1020940490/000001.o: in function _cgo_2e88dd36e651_Cfunc_webui_decode': /tmp/go-build/cgo-gcc-prolog:77: undefined reference to webui_decode'
/usr/bin/ld: /tmp/go-link-1020940490/000001.o: in function _cgo_2e88dd36e651_Cfunc_webui_encode': /tmp/go-build/cgo-gcc-prolog:95: undefined reference to webui_encode'
collect2: error: ld returned 1 exit status
The go version is v1.21.1
OS: fedora 38
Am I missing something?

This error is because Go-WebUI needs to be updated to the latest WebUI Lib.
We need to copy this to here.
I will update it today.

I updated the repo. I test it locally, build and runs fine now. But I still have some issues with the Go package versioning...

<EMAIL_ADDRESS>not found<EMAIL_ADDRESS>invalid version: module contains a go.mod file, so module path must match major version ("github.com/webui-dev/go-webui/v2")

Updating the pkg.go.dev is not working for now... But the repo itself is ready to use.

pkg.go.dev is updated to v2.4.0. Please try again go get github.com/webui-dev/go-webui/v2.

Yes, it does work now. Thank you :)


Unknown assertion failed in specification of function returning a pair

I ran into some strange behaviour and reduced it to the folloing code:
module TEST

(* type nat = int *) (*makes it succeed*)
val id : nat -> Tot nat
let id x = x

val test : unit -> Pure (nat*nat)
                               (requires  True)
                               (ensures  (fun r -> id (fst r) = snd r)) (*Fails*)
(*
                               (ensures  (fun r -> id (fst r) = fst r)) (*Succeeds*)
                               (ensures  (fun r -> id (snd r) = fst r)) (*Fails*)
                               (ensures  (fun r -> id (snd r) = snd r)) (*Succeeds*)
*)
let test () = 0,0

The verification fails with
bug.fst(5,12-9,71): Unknown assertion failed
bug.fst(15,0-15,17): post-condition at bug.fst(9,51-9,69)

This does not occur if I chose a return type without refinement.
This does not occur if I chose the same projection on both sides of the equation

Apparently this is a type inference problem.
Providing the correct types as implicit arguments makes the code verify:
(ensures  (fun r -> id (fst #nat #nat r) = fst #nat #nat r))

The problem also occurs (and can be fixed in the same way) with option types
assume val foo : l:option nat -> Pure (option nat)
   (requires ( True))
   (ensures (fun r -> is_Some r /\ is_Some l /\ Some.v r = Some.v  l))

Also, the problem does not occur if one uses Tot instead of Pure

Not reproducible with --universes flag.


i18n(zh-cn): Translate backend.mdx

What kind of changes does this PR include?

Translated content

Description

Translate backend.mdx

Hey @luoingly, thanks for the PR! Just pointing out that the nav label (the one in the sidebar) "Add backend services" isn't translated, could you add it to the PR? Here's more info about it in our i18n guide: https://github.com/withastro/docs/blob/main/TRANSLATING.md#2-ui-text

Hey @luoingly, thanks for the PR! Just pointing out that the nav label (the one in the sidebar) "Add backend services" isn't translated, could you add it to the PR? Here's more info about it in our i18n guide: https://github.com/withastro/docs/blob/main/TRANSLATING.md#2-ui-text

Another pr by @liruifengv #3317 have made the chages, so I didn't do it here.

Another pr by @liruifengv https://github.com/withastro/docs/pull/3317 have made the chages, so I didn't do it here.

You're right, thanks! Just merged it, this one should be good to go as well 💜


How to generate the image list for prediction?

@tqchen The python tutorial has already showed us the way to generate the image list for training and validation images following the structure integer_image_index \t label_index \t path_to_image. But it does not tell us the structure of image list for prediction purpose. What should we do for the label_index since we do not know?

65021   0       data/test/124622.jpg
12548   0       data/test/102436.jpg
123843  0       data/test/63243.jpg
74125   0       data/test/27629.jpg
62736   0       data/test/52015.jpg
82539   0       data/test/125052.jpg
62710   0       data/test/131116.jpg
80730   0       data/test/155461.jpg
92020   0       data/test/122485.jpg
34672   0       data/test/38935.jpg

@Gelu74  Are you sure?

Works for me and look at:
https://github.com/dmlc/mxnet/blob/master/example/kaggle-ndsb1/gen_img_list.py

@Gelu74 Thank you for you reply. After I generate the test.lst and test.rec following this method. I would like to load my previously trained model to predict the labels for these testing data.
model = mx.model.FeedForward.load(...)
test_dataiter = mx.io.ImageRecordIter(
    path_imgrec = args.data_dir + "test.rec",
    mean_r      = 121.75,
    mean_g      = 122.54,
    mean_b      = 122.51,
    rand_crop   = False,
    rand_mirror = False,
    data_shape  = data_shape,
    batch_size  = args.batch_size,
    )

pred = model.predict(test_dataiter)
print pred

I am expecting that pred is a list of predicted labels showed on the screen. However, my program get stuck.

Well, I guess it depends on your network configuration but usually predict would return a vector of probabilities for each image giving the probability of belonging to each class.
For how long does it get stuck? if your test dataset is large and you are not using a gpu, prediction could take long... try with a reduced test set with very few examples.
you might want to look at the kaggle data science bowl example, I have made a pull request to incorporate prediction, you can have a look at the code at:
https://github.com/Gelu74/mxnet/tree/master/example/kaggle-ndsb1

@Gelu74 That's great! Thanks for providing this "new version" of ndsb1. Actually I attended this competition last year after learning the CNN for 1month. I only got 191th, using Lasagne. One more question, do you have any idea how to automatically compute the mean_image or mean_rgb?

I am actually a marine biologist with interests in image classification for thing very similar to ndsb1, a newbie to deep learning. 191th is not bad, any insights you would share?
As for the mean_image, if you specify:
train = mx.io.ImageRecordIter(                                                     |
path_imgrec = args.data_dir + "train.rec",                                     |
mean_img    = args.data_dir + "mean.bin",  ...
and there is no such file, mxnet will automatically generate the mean image for you, look at the cifar10 example.

@Gelu74 Thank god! You have make things clear for me. I actually read through the cifar10 when I was using mxnet for the first time. I was being wondered where the "mean.bin" came from and how to generate it from a image list. It turns out that it will be compute automatically. And Gelu, the document says the mean_img or mean_rgb are augmentation parameters. But, as far as I understand, they are used for normalized purposes so that the optimization process would be easier. What's your thought ?

I would say that it is a parameter to the augmentation since it can be substracted to each augmented image and hence it should be passed as a parameter to the augmentation function. But I do know nothing about the insides of mxnet.
This is now unrelated to your original issue, you might get better amswer if you close this one and open a new issue.

@Gelu74 Thank you Gelu74. I have learned a lot from you !


Preview does not recognise .csv anymore

As per title, all of a sudden the preview does not recognise .csv file as such, generating the exception Active editor doesn't show a CSV or plain text document. It does still work for plain text extentions.

VSCode Version: 1.24
OS Version: macOS Sierra 10.12.6

Steps to Reproduce:

open any .csv file
try to preview it

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

I'm not aware of a built-in CSV previewer. Were you using an extension, like: https://marketplace.visualstudio.com/items?itemName=GrapeCity.gc-excelviewer

Sorry, I apologise, I forgot to include it. Yes, I am using the above mentioned extension: is the issue from their end, then?

Yes, looks like https://github.com/jjuback/gc-excelviewer/issues/68. Thanks.

Thank you for looking into it, cheers.


time out

Subject: time out
Description:
suggestion
Results:
hi, from time to time my account logging out. i clicked remember me button but still happening. I don t want to login every time. can u guys add this to your list to-do? thanks.
Backend version: develop-c0f4e3f1
Frontend version: develop-c0f4e3f1
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36
Page: https://couchers.org/messages/chats/5379
User: omera (6869)

Likely related to user cookie settings, remember me doesn't actually do anything (all logins are long-lived)


coredns crashbackloop with static IP

Environmental Info:
K3s Version: 1.18.8
k3s -v
k3s version v1.18.8+k3s1 (6b595318)
Node(s) CPU architecture, OS, and Version:
Ubuntu 18.04 2 vCPUs AMD64.
Cluster Configuration:
Single node master
Describe the bug:
If the OS has static IP assigned and /etc/resolv.conf is empty coredns pod goes in crashbackloop and doesnt startup.
Steps To Reproduce:
It might be tied to the defect from coredns which has been fixed in newer version of coredns
https://github.com/coredns/coredns/issues/3735
Expected behavior:
coredns shouldnt crash
k3s kubectl -n kube-system get pods
NAME                         READY   STATUS             RESTARTS   AGE
helm-install-traefik-mh426   0/1     Completed          0          15m
traefik-85565c8c68-zcbnp     1/1     Running            0          15m
coredns-7944c66d8d-w5twl     0/1     CrashLoopBackOff   7          15m
k3s kubectl -n kube-system logs --previous coredns-7944c66d8d-w5twl
plugin/forward: no nameservers found
Actual behavior:
coredns pod is crashing and doesnt recover.
Additional context / logs:

Even with the coredns fix, this will result in failure - just without a crash loop. You need to populate upstream dns servers in /etc/resolv.conf.

Thanks @brandond  - we're currently on 1.18.6 and it works just fine with the same setup (static IP) and empty /etc/resolv.conf, however coredns failure means nothing works with 1.18.8.
Any chance that for the next release we upgrade coredns where the https://github.com/coredns/coredns/issues/3735 issue is fixed.

@davidnuzik can we validate this? Sounds like a regression we might have picked up when bumping coredns?

Any thoughts on bumping up the coredns version. We wont be able to upgrade to newer versions of k3s unless this bug is fixed and I definitely like to be on as current a release as possible. Thanks!

@samirsss Issue seems to be resolved in k3s v1.19.3+k3s1 with empty /etc/resolv.conf and I was able to reproduce the issue with v1.18.8+k3s1
But coredns crashloops with v1.18.6 as well. So I am not sure if it was a regression.
v1.19.3+k3s1
root@ip-172-31-8-188:~# k3s -v
k3s version v1.19.3+k3s1 (974ad30b)
root@ip-172-31-8-188:~# crictl images |grep coredns
docker.io/rancher/coredns-coredns          1.6.9               4e797b3234604       43.3MB
root@ip-172-31-8-188:~# kubectl get pods -A |grep coredns
kube-system   coredns-66c464876b-xt62k                 1/1     Running     0          26m

v1.18.8+k3s1
root@ip-172-31-8-94:~# k3s -v
k3s version v1.18.8+k3s1 (6b595318)
root@ip-172-31-8-94:~# crictl images |grep coredns
docker.io/rancher/coredns-coredns          1.6.9               4e797b3234604       43.3MB
root@ip-172-31-8-94:~# kubectl get pods -A |grep coredns
kube-system   coredns-7944c66d8d-sq6lt                 0/1     CrashLoopBackOff   17         66m

v1.18.6+k3s1
root@ip-172-31-4-190:~# k3s -v
k3s version v1.18.6+k3s1 (6f56fa1d)
root@ip-172-31-4-190:~# crictl images |grep coredns
docker.io/rancher/coredns-coredns          1.6.3               c4d3d16fe508b       14.2MB
root@ip-172-31-4-190:~# kubectl get pods -A |grep coredns
kube-system   coredns-8655855d6-ffts5                  0/1     CrashLoopBackOff   15         56m

Steps followed to reproduce
wget https://github.com/rancher/k3s/releases/download/v1.19.3%2Bk3s1/k3s-airgap-images-amd64.tar
wget https://github.com/rancher/k3s/releases/download/v1.19.3%2Bk3s1/k3s
wget https://raw.githubusercontent.com/rancher/k3s/v1.19.3%2Bk3s1/install.sh
chmod u+x install.sh
chmod u+x k3s
cp k3s /usr/local/bin/
echo "" > /etc/resolv.conf
mkdir -p /var/lib/rancher/k3s/agent/images/
cp k3s-airgap-images-amd64.tar /var/lib/rancher/k3s/agent/images/
INSTALL_K3S_SKIP_DOWNLOAD=true ./install.sh

Update on the verification. By deleting /etc/resolv.conf and creating empty file, I was able to reproduce the issue and coredns crashloops on v1.19.3 as well.
v1.18.6+k3s1
rm /etc/resolv.conf
touch /etc/resolv.conf
kubectl get pods -A |grep coredns
kube-system   coredns-8655855d6-p2d66                  1/1     Running     0          78m

v1.19.3+k3s1
root@ip-172-31-1-169:~# k3s -v
k3s version v1.19.3+k3s1 (974ad30b)
root@ip-172-31-1-169:~# kubectl get pods -A |grep coredns
kube-system   coredns-66c464876b-2vxnw                 0/1     CrashLoopBackOff   7          14m
root@ip-172-31-1-169:~#

@samirsss  Does empty resolv.conf refer to setting it to size 0 which retains the sym link or delete resolv.conf and create blank file which removes the sym link?
Also could you help understand the usecase of setting /etc/resolv.conf empty?

Sorry for the delay - I'll try this out this week with the latest version of 1.19.3 and see if it fixes the issue.

@ShylajaDevadiga - the issue that I saw was when I'd assigned a static IP to my VM and was trying to deploy k3s. I wasnt explicitly setting the size of resolv.conf to 0. I'll still try this out and get back to you. My lab's down today but should be functional tomorrow to give you some data.

We are unable to reproduce the issue of coredns pod crashlooping with static IP. Please reopen if you see the issue again.
k3s v1.20.2+k3s1
vagrant@ubuntu-bionic:~$ cat /etc/netplan/50-vagrant.yaml
---
network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s8:
      addresses:
      - <IP_ADDRESS>/24
vagrant@ubuntu-bionic:~$ kubectl get pods -A
NAMESPACE     NAME                                      READY   STATUS      RESTARTS   AGE
kube-system   metrics-server-86cbb8457f-dbqrn           1/1     Running     0          15m
kube-system   local-path-provisioner-7c458769fb-qr24l   1/1     Running     0          15m
kube-system   helm-install-traefik-q8l99                0/1     Completed   0          15m
kube-system   svclb-traefik-khgh8                       2/2     Running     0          14m
kube-system   coredns-854c77959c-nwm7l                  1/1     Running     0          15m
kube-system   traefik-6f9cbd9bd4-2427m                  1/1     Running     0          14m
vagrant@ubuntu-bionic:~$


Refactored image endpoint, and image serializers.

Cool, what changes need to happen on the front end to support this?

 I've arranged it so you should be able to send posts in as json or multipart form if they have an image. Either way works. I'm working on author images and updating them now but should be same thing.

@KarimBaaba ^^

@derekdowling getting there...

I'm just letting you know that @jon made it nice and easy for you ;)


KBFS on Android

Relates to: https://keybase.io/docs/kbfs
Just excited for this feature, (didn't see an existing issue), and wanted a reference to track the work. Cheers!

Any progress on this? I'm interested in keybase since dropbox dropped support for encrypted file-systems.

Yep, this has been working for months.  It's a bit limited in terms of interacting with the files, but we're actively improving it.  Look for the "Files" section in the menu of the app.

Are there plans for (limited) support for syncing with a local folder on Android?

Are there plans for (limited) support for syncing with a local folder on Android?

That could be useful for apps like Orgzly. Unless the files could be accessed with an API.

It's exactly Orgzly that I had in mind when filling this issue.
Is there any guidance or roadmap available for how to use KBFS from other
apps, (on Android or in general)?
On Mon, Dec 24, 2018, 10:52 Bruno Bigras<EMAIL_ADDRESS>wrote:

Are there plans for (limited) support for syncing with a local folder on
Android?
That could be useful for apps like Orgzly http://www.orgzly.com/.
Unless the files could be accessed with an API.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/keybase/client/issues/9948#issuecomment-449748886,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACHrcFMiXohkDgCbfUTh5Mqw2qA4h9IXks5u8PhNgaJpZM4REw-S
.

I'm interested in this feature for use with a Pass store. I'm sure you're hard at work on it, just adding another use case! :)


Story : policy scopes for ingress calls

Feature Request
We need a way to retrieve additional information context, when verifying a JWT context,
For example  we might want to extract additional information from the policies for the IATP flow.
Basically we need a mirrored feature of the current policy scopes done in the egress calls (DspHttpRemoteMessageDispatcher) but for the ingress calls( DspRequestHandler)
Which Areas Would Be Affected?
dsp, core
Why Is the Feature Desired?
To be able to attach more information for the Identity Service
Subtasks

#3667
#3675
#3818
#3819
#3832

All tasks completed


Jupyter Assertion Error / AttributeError: can't set attribute 'renderer'

I am following Brienna's Gist to plot emojis in matplotlib, which has the following code:
# Set the backend to use mplcairo
import matplotlib, mplcairo
print('Default backend: ' + matplotlib.get_backend())
matplotlib.use("module://mplcairo.macosx")
print('Backend is now ' + matplotlib.get_backend())

# IMPORTANT: Import these libraries only AFTER setting the backend
import matplotlib.pyplot as plt, numpy as np
from matplotlib.font_manager import FontProperties

# Load Apple Color Emoji font
prop = FontProperties(fname='/System/Library/Fonts/Apple Color Emoji.ttc')

# Set up plot
freqs = [301, 96, 53, 81, 42]
labels = ['😊', '😱', '😂', '😄', '😛']
plt.figure(figsize=(12,8))
p1 = plt.bar(np.arange(len(labels)), freqs, 0.8, color="lightblue")
plt.ylim(0, plt.ylim()[1]+30)

# Make labels
for rect1, label in zip(p1, labels):
    height = rect1.get_height()
    plt.annotate(
        label,
        (rect1.get_x() + rect1.get_width()/2, height+5),
        ha="center",
        va="bottom",
        fontsize=30,
        fontproperties=prop
    )

plt.show()

When running this in jupyter notebook, i get the following error:
python[13573:53170] *** Assertion failure in +[NSEvent otherEventWithType:location:modifierFlags:timestamp:windowNumber:context:subtype:data1:data2:], NSEvent.m:647
When running this in a python script I get:
Default backend: MacOSX
Backend is now module://mplcairo.macosx
Traceback (most recent call last):
  File "/opt/homebrew/Caskroom/miniconda/base/envs/proj/lib/python3.10/site-packages/matplotlib/backend_bases.py", line 1226, in _on_timer
    ret = func(*args, **kwargs)
  File "/opt/homebrew/Caskroom/miniconda/base/envs/proj/lib/python3.10/site-packages/matplotlib/backends/backend_macosx.py", line 68, in callback_func
    callback()
  File "/opt/homebrew/Caskroom/miniconda/base/envs/proj/lib/python3.10/site-packages/matplotlib/backends/backend_macosx.py", line 88, in _draw_idle
    self.draw()
  File "/opt/homebrew/Caskroom/miniconda/base/envs/proj/lib/python3.10/site-packages/mplcairo/base.py", line 233, in draw
    super().draw()
  File "/opt/homebrew/Caskroom/miniconda/base/envs/proj/lib/python3.10/site-packages/matplotlib/backends/backend_macosx.py", line 50, in draw
    super().draw()
  File "/opt/homebrew/Caskroom/miniconda/base/envs/proj/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 394, in draw
    self.renderer = self.get_renderer()
AttributeError: can't set attribute 'renderer'

I am on a Mac (M2) and mplcairo.get_versions() gives:
{
'python': '3.10.8 (main, Nov 24 2022, 08:08:27) [Clang 14.0.6 ]',
'mplcairo': '0.5',
'matplotlib': '3.7.2',
'cairo': '1.16.0',
'freetype': '2.12.1',
'pybind11': '2.11.1',
'raqm': None,
'hb': None
}

Can you try at least the python script with matplotlib 3.8 (which has just been released)?  I do see that there's an issue with 3.7.2, though I haven't investigated the cause yet.
For the notebook integration, I think this needs to be reported to matplotlib itself, as even a simple
import matplotlib as mpl; mpl.use("macosx")
from matplotlib import pyplot as plt
plt.plot()

(i.e. using matplotlib's own macosx backend, which mplcairo still relies on) in a notebook seems to crash with the same error you report.  On the other hand you don't really need to use module://mplcairo.macosx; module://mplcairo.tk or module://mplcairo.qt (if you have pyqt6 installed) should work just fine.

Thanks for your swift reply!
Just tried with matplotlib 3.8 and it seems to be the same issue, both as script and in the notebook.

Ah yes, I remember the problem now.  For the macosx backend you'll need to install mplcairo from HEAD (pip install git+https://github.com/matplotlib/mplcairo); alternatively, as noted above, you can use one of the other backends such as module://mplcairo.qt or module://mplcairo.tk.

Closing as I don't think there's anything actionable anymore here?  Feel free to comment if I missed something.


Generate BuildableBaseProtocols with SwiftSyntaxBuilderGeneration

Based on #497.
This PR ports the currently gyb-generated BuildableBaseProtocols to SwiftSyntaxBuilder's DSL as part of the ongoing effort to bootstrap SwiftSyntaxBuilder with SwiftSyntaxBuilderGeneration.

@swift-ci please test

@swift-ci please test

@swift-ci please test


Fix Cassandra schema version check

What changed?

Fix Cassandra schema version check

Why?
Cassandra field in Datastore config is deprecated as part of the nosql plugin refactoring. As a result, the schema version check for cassandra is skipped on service start up.

How did you test it?
Tested locally.

Potential risks

Release notes

Documentation Changes

Pull Request Test Coverage Report for Build 87129df0-bdda-4a81-b8d6-7f908c283d42

0 of 22 (0.0%)  changed or added relevant lines in 1 file are covered.
353 unchanged lines in 12 files lost coverage.
Overall coverage increased (+0.007%) to 60.174%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

tools/cassandra/handler.go
0
22
0.0%

Files with Coverage Reduction
New Missed Lines
%

service/history/execution/mutable_state_task_refresher.go
1
75.23%

tools/cassandra/handler.go
1
11.97%

common/persistence/cassandra/cassandraPersistenceUtil.go
2
87.02%

common/task/fifoTaskScheduler.go
2
87.63%

common/task/weightedRoundRobinTaskScheduler.go
2
89.64%

service/history/execution/mutable_state_builder.go
2
69.82%

service/history/queue/timer_queue_processor.go
2
58.77%

service/history/queue/transfer_queue_processor.go
2
57.37%

common/cache/lru.go
3
90.73%

service/history/execution/context.go
6
68.39%

Totals

Change from base Build 8c509efc-4593-46ba-830d-6d5db4f02efc:
0.007%

Covered Lines:
88686

Relevant Lines:
147382

💛  - Coveralls


WebAssembly: No getGamepads on Firefox for Android

Firefox for Android doesn't have navigator.getGamepads:
panic: syscall/js: Value.Call: property getGamepads is not a function, got undefined

Thanks, I'll check this, but the API seems available on Firefox Android
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getGamepads

I could not reproduce this. Are you using an old Firefox browser?

I could not reproduce this. Are you using an old Firefox browser?

I've updated to version 100.3.0 and I still get the same error. Maybe it depends on the Android version or some other environment constraint if the API is available.
When I add the following workaround to the HTML page the program runs fine:
if (!navigator.getGamepads) {
    navigator.getGamepads = () => [];
}

https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_API
I found that getGamepads was available only a secure context (HTTP) in Firefox.
So, I can 'fix' this issue by checking the availability and leaving a console log. You can use games only with HTTPS.

Please try go get github.com/hajimehoshi/ebiten/v2@8d318fc4de868a188b5598efe2591f33d9d5a492. Thanks

Thank you. That fixed the issue.


sam local start-api --profile option doesn't work with assumed role

My ~/.aws/config looks like:
[profile default]
region = us-east-1
output = json
[profile admin@other]
region = us-east-1
role_arn = arn:aws:iam::123456789012:role/admin
source_profile = default

Specifying --profile admin@other shows a warning in the logs:
2017/12/01 12:12:43 WARNING: No AWS credentials found. Missing credentials may lead to slow startup times as detailed in https://github.com/awslabs/aws-sam-local/issues/134

As a workaround I made a "dev" IAM user and access keys in the "other" account , and configured another awscli profile with those keys. Then --profile dev@other works fine.

Out of curiosity, can you try your admin@other but set this environment variable: AWS_SDK_LOAD_CONFIG=true
If that works, this should be a relatively easy fix :)

I just tried but no luck.

I had the same issue as I was trying different profiles when using sam local invoke: Using Assume-Role tool is my workaround at the moment.
I ended up with:
eval $(assume-role demo)
sam local invoke...
sam local start-api

Hope that helps

Interesting.
So, here's my thought process so far:
Code where we initialize the session using options: https://github.com/awslabs/aws-sam-local/blob/develop/env.go#L128-L141
Godocs on session, search for: Shared Config Fields
https://docs.aws.amazon.com/sdk-for-go/api/aws/session/
If the AWS_SDK_LOAD_CONFIG environment variable is set, or SharedConfigEnable option is used
 to create the Session the full shared config values will be loaded. This includes credentials,
 region, and support for assume role. In addition the Session will load its configuration from both
 the shared config file (~/.aws/config) and shared credentials file (~/.aws/credentials). Both files
 have the same format.

Maybe since we override with our own options, the value gets set to false by default and environment variables aren't even attempted?
Gonna fiddle with that assumption a bit more.

I tried exporting the env variable as @iph suggested (AWS_SDK_LOAD_CONFIG=true), and it worked with assume role for me.

Ok. I had an issue just using my default credentials and config as defined in ~/.aws/credentials and ~/.aws/config but setting AWS_SDK_LOAD_CONFIG=true and restarting sam local resolved it.

Feel like this needs to be the default setting in already set in the CLI.

Just hit this as well with sam local invoke --profile $AWS_PROFILE func and export AWS_SDK_LOAD_CONFIG=true fixed it for me as well. Note that it had to be true, I first set it to yes and it didn't work.
+1 to the idea that if you use the --profile argument it should set that environment variable for you.

I've hit this issue, as well, though slightly differently.  I'm using the credential_process setting in my ~/.aws/config (see https://docs.aws.amazon.com/cli/latest/topic/config-vars.html#sourcing-credentials-from-external-processes).
Exporting AWS_PROFILE and/or AWS_SDK_LOAD_CONFIG doesn't work. Passing the --profile flag also doesn't work.
When using aws-cli, I only need to export AWS_PROFILE for the credential_process setting to work properly.

Can you try with latest SAM CLI? This is completely rewritten to use Boto3. This should work out-of-box. Do Re-open if it doesn't.

How to solve this issue in windows?


Add help text for help

I pulled in development to fix tests to do with macos.

@sinnaj-r I cannot get the tests to pass. Do you have any idea?


Question: com.dokku.docker-image-labeler/alternate-tags label

Hello,
why is there a default label com.dokku.docker-image-labeler/alternate-tags added automatically?

Thanks for the explanation, definitely makes sense 👍


Atmel SAM4S implementation

Hi I am struggling to get the sensor work with the Atmel Sam4s. I have verified UART comms works on a serial monitor and now connected the SPS30. I have also verified the serial communication is some how working because when i mess up the serial configuration the sensor int16_t sps30_probe(void); does not run.
Here are my observations.
First I run sps30_probe(). At some points it fails once but then it successfully probs.
I then set  sps30_set_fan_auto_cleaning_interval_days which does not return an error and that is ok.
I then set sps30_start_measurement. Which reads ok. At this point I can hear the fan from the sensor.
The problem now comes on ret = sps30_read_measurement. To start with i get ret = -2 then next loop iteration i get ret = 0.
Can anyone help me please? Firstly to explain what is actually going on and secondly what i am doing wrong.
I am using the ASF library in Atmel Studio. The API is very easy to understand here http://asf.atmel.com/docs/latest/sam4c/html/group__buart__plc__group.html
Here is my main loop
int main (void)
{
	/* Insert system clock initialization code here (sysclk_init()). */

	sysclk_init();
	board_init();
	configUART();
	configTWI();
	adc_setup();
	SetupUART0();

	 uint8_t uart0_i = 0, uart0_len;
	 char uart0_buf[20];
	 char ret_string[] = "";
	 char pm_string[] = "";

	 uint8_t len;
	 char buf;

	struct sps30_measurement m;
    char serial[SPS30_MAX_SERIAL_LEN];
    const uint8_t AUTO_CLEAN_DAYS = 4;
    int16_t ret;

    while (sensirion_uart_open() != 0) {
        sendBTMessage("SEND 15 UART init failed\n\r");
        sensirion_sleep_usec(1000000); /* sleep for 1s */
    }

	sendBTMessage("SEND 15 UART opened\n\r");

	//sendBTMessage (" UART 1 Alive \n\r");
    /* Busy loop for initialization, because the main loop does not work without
     * a sensor.
     */
    while (sps30_probe() != 0) {
        sendBTMessage("SEND 15 SPS30 sensor probing failed\n\r");
        sensirion_sleep_usec(1000000); /* sleep for 1s */
    }

    sendBTMessage("SEND 15 SPS30 sensor probing successful\n\r");

    ret = sps30_set_fan_auto_cleaning_interval_days(AUTO_CLEAN_DAYS);
    if (ret)
	{
		sprintf(ret_string, "SEND 15 error %d setting the auto-clean interval\n\r", ret);
		sendBTMessage(ret_string);
	}
	else {
		sendBTMessage("SEND 15 fan stuff seem to be alright \n\r");
	}

    ret = sps30_start_measurement();
    if (ret < 0)
	{
        sendBTMessage("SEND 15 error starting measurement\n\r");
	}

	else
	{
		sendBTMessage("SEND 15 start measurement seem to be alright \n\r");
	}

	sendBTMessage("SEND 15 measurements started\n\r");

	/* Insert application code here, after the board has been initialized. */
	while (1)
	{
		sendBTMessage ("SEND 15 testing PM \n\r");

		ret = sps30_read_measurement(&m);
		sprintf(ret_string, "SEND 15 reading message ret %d \n\r", ret);
		sendBTMessage(ret_string);

		if (ret < 0) {
			sendBTMessage("SEND 15 error reading measurement\n\r");
			}

			else {
				if (SPS30_IS_ERR_STATE(ret)) {
					sprintf(ret_string, "SEND 15 Chip state: %u - measurements may not be accurate\n\r", SPS30_GET_ERR_STATE(ret));
					sendBTMessage(ret_string);
				}

			sprintf(pm_string, "SEND 15 measured values: 0.2f pm1.0, pm2.5 %0.2f, pm4.0 %0.2f, pm10.0 %0.2f, nc0.5 %0.2f, nc1.0 %0.2f, nc2.5 %0.2f nc4.5, %0.2f nc10.0, %0.2f typical particle size\n\r",
			m.mc_1p0, m.mc_2p5, m.mc_4p0, m.mc_10p0, m.nc_0p5, m.nc_1p0,
			m.nc_2p5, m.nc_4p0, m.nc_10p0, m.typical_particle_size);

			sendBTMessage(pm_string);

			sensirion_sleep_usec(1000000); /* sleep for 1s */

		}
	}
}

Here is my UART implementation.
int16_t sensirion_uart_select_port(uint8_t port) {
    return 0;
}

int16_t sensirion_uart_open() {
	return (buart_if_open(SERIAL_UART_0, 115200UL));
}

int16_t sensirion_uart_close() {
	return (buart_if_close (SERIAL_UART_0));
}

int16_t sensirion_uart_tx(uint16_t data_len, const uint8_t *data) {
	return buart_if_write (SERIAL_UART_0, data, data_len);
}

int16_t sensirion_uart_rx(uint16_t max_data_len, uint8_t *data) {
	 return buart_if_read (SERIAL_UART_0, (uint8_t *) data, max_data_len);
}
void sensirion_sleep_usec(uint32_t useconds) {
	delay_us(useconds);
}

First I run sps30_probe(). At some points it fails once but then it successfully probs.

It may be a timing issue. Could you try to wait a few 100ms before probing the first time?

The problem now comes on ret = sps30_read_measurement. To start with i get ret = -2 then next loop iteration i get ret = 0.

-2 is SENSIRION_SHDLC_ERR_MISSING_START according to sensirion_shdlc.h. So maybe your UART implementation misses the first byte? Or it has a timeout before the first byte arrives?


about clean.png

Excuse me, The image known to this code in IN_GE.py
loader = transforms.Compose([transforms.Resize(32), transforms.ToTensor(), ])
clean_img = Image.open("./dataset/clean.png")
clean_img = loader(clean_img)
is the trigger_ Generation/data/clean. png？“A completely white image”。

Yes. Taking CIFAR-10 as an example, it is a 32 X 32 white image (tensor value = 1).

thankssss


Table data is not visible

Hi, I am using Linux Mint 19.1 Cinnamon window manager. And table data is not visible
. Little bit visible only in places where is scroll located, and when I am scrolling, I see that data is changed.
But if change the view from Grid to text become visible.

Also, I had the same problem on ubuntu 18.04 with the mate window manager.
DB mysql, driver mysql-connector-java-5.1.44.jar
DBeaver version 6.0.5 Community edition

When it starting it flashing data in the table.
Also, I doesn't allow to enter any data in the input (show nothing)

And don't work "properties" (click in menu or shortcut Alt + Enter)

Duplicate of #5854
Thanks for the details anyway.


Question: Using rv-class with a camelCase class name. Is there a more elegant solution?

Hey there,
I was attempting to set a class using the following:
rv-class-fooBar='model.isActive'

This did not work because capital letters are invalid syntax in HTML attributes. So, fooBar was converted to foobar and the incorrect class was applied to the element.
I created the following binder + formatter to workaround the issue:
rivets.binders.setclass = (el, options) => {
  el.classList.toggle(options.className, options.hasClass);
}

rivets.formatters.class = (hasClass, className) => {
  return {
    hasClass,
    className
  }
}

with usage being:
rv-setclass='model.isActive | class "fooBar"'

This feels a bit unwieldy, but it does work.
Did I miss the mark on this? Better option?

I don't see any other solution if you want camelCase CSS class names.
In my projects i tell developers to use only lowerCase CSS class names to avoid any problem.

I've been using CSS Modules, https://github.com/css-modules/css-modules, which encourages the omission of dashes in class names for easier reference of the class in JS.
i.e. styles.isDisabled vs styles['is-disabled']
So it looks like the two desired are at-odds.  Oh well!

@MeoMix Yeah, it is a bummer, binders have to be valid html element attributes. We cannot guarantee casing on the library level.
Since you are using css-modules, you could always put the class onto the model.
Something like, rv-add-class='model.activeClass | when model.isActive'
Here is a working fiddle for inspiration.
The pertinant bits:
var model = {
  activeClass : 'makeLime',
  isActive : true
};

rivets.binders['add-class'] = function(el, value) {
  if((value && !el.rivetsAddedClass) || (value && value !== el.rivetsAddedClass)) {
    el.rivetsAddedClass = value;
  }

  if(value) {
    el.classList.add(value);
  } else if(el.rivetsAddedClass) {
    el.classList.remove(el.rivetsAddedClass);
  }
}

// returns thingA when thingB is true, otherwise returns null.
rivets.formatters['when'] = function(thingA, thingB) {
  if(thingB) {
   	return thingA;
  } else {
    return false;
  }
}

   <input type='checkbox' rv-checked='model.isActive'>

Gonna close this for now. Feel free to reach out if you need anything.


Swiper activeIndex issue

Swiper activeIndex is not working properly on last-slide, On every callback function it returns second last slide activeIndex number.
I am using swiper 3.3.1 latest version with following code.
        $('.sw-' + index).swiper({
        nextButton: $(this).find('.swiper-button-next'),
        prevButton: $(this).find('.swiper-button-prev'),
        pagination: $(this).find('.swiper-pagination'),
        slidesPerView: 'auto',
        paginationClickable: true,
        spaceBetween: 10,

        onSlideChangeStart: function (swiper) {

            console.log('slidechangeStart: '+swiper.activeIndex);
        },
        onSlideChangeEnd: function (swiper) {

            console.log('slidechangeEnd: ' + swiper.activeIndex);
        },
        onTransitionEnd: function (swiper) {

            console.log('onTransitionEnd: ' + swiper.activeIndex);
        },
        onInit: function (swiper) {
            swiper.update(true);
        }
        });

I am getting issue only when slidesPerView : auto is there.
@nolimits4web can you resolve this issue.

With slides per view > 1, last slide may never become active as activeIndex depends on slider position, not on something else. It is by design

So, How do I know the last slide appear ?

So, How do I know the last slide appear ?

So, How do I know the last slide appear ?

So, How do I know the last slide appear ?

So, How do I know the last slide appear ?

So, How do I know the last slide appear ?


cupy.vdot is way slower than naive implementation

I am on CUDA 10.0 + GTX 2080 Ti + master branch, and this is what I see (with CUPY_ACCELERATORS=cub):
>>> import cupy as cp
>>> from cupyx.time import repeat
>>>
>>> a = cp.random.random(1000000)
>>> b = cp.random.random(1000000)
>>> def my_vdot(a, b):
...     return cp.sum(a * b)
...
>>> print(repeat(cp.vdot, (a, b)))
vdot                :    CPU:   17.272 us   +/- 0.938 (min:   16.300 / max:   39.416) us     GPU-0:  640.646 us   +/-18.809 (min:  630.496 / max:  774.144) us
>>> print(repeat(my_vdot, (a, b)))
my_vdot             :    CPU:   26.312 us   +/- 3.240 (min:   25.204 / max:   97.959) us     GPU-0:   74.100 us   +/-12.585 (min:   70.560 / max:  274.432) us
>>> my_vdot(a, b)  == cp.vdot(a, b)
array(True)

I could probably look into this myself, just opening a ticket in case I forget and someone can pick up 😅

Without using CUB the naive implementation would win by a margin:
>>> cp.core._accelerator.set_routine_accelerators([])
>>> cp.core._accelerator.set_reduction_accelerators([])
>>> print(repeat(my_vdot, (a, b)))
my_vdot             :    CPU:   23.317 us   +/- 4.025 (min:   22.159 / max:  223.056) us     GPU-0:  634.641 us   +/-11.096 (min:  626.688 / max:  780.128) us

(cp.vdot took 640.65 us, see above).

@leofang Your my_vdot compute a + b into contiguous memory space and then call reduction operation, whereas cupy.vdot does not so. Your implementation seems faster in many cases, but sometimes the current implementation is faster in some memory layout.
import cupy
import cupyx.time

tensordot_kernel = cupy.ReductionKernel(
    'S x, T y', 'U out',
    'static_cast<U>(x) * static_cast<U>(y)',
    'a + b', 'out = a', '0',
    'tensordot_kernel')

def tensordot_naive(a, b, out):
    return (a.ravel() * b.ravel()).sum(out=out)

x = cupy.arange(2 ** 20, dtype='float32')
y = cupy.arange(2 ** 20, dtype='float32')
out = cupy.empty((), dtype='float32')

print(cupyx.time.repeat(tensordot_kernel, (x, y, out), max_duration=1))
print(cupyx.time.repeat(tensordot_naive, (x, y, out), max_duration=1))

print(cupyx.time.repeat(tensordot_kernel, (x, x, out), max_duration=1))
print(cupyx.time.repeat(tensordot_naive, (x, x, out), max_duration=1))

tensordot_kernel    :    CPU:   11.923 us   +/-12.392 (min:   10.815 / max:  437.032) us     GPU-0:  836.028 us   +/-25.847 (min:  820.384 / max: 1331.936) us
tensordot_naive     :    CPU:   29.429 us   +/- 2.777 (min:   28.100 / max:   83.901) us     GPU-0:  576.043 us   +/- 3.707 (min:  567.008 / max:  624.992) us
tensordot_kernel    :    CPU:   11.374 us   +/- 0.452 (min:   10.863 / max:   18.317) us     GPU-0:  438.565 us   +/- 1.325 (min:  429.984 / max:  444.256) us
tensordot_naive     :    CPU:   29.346 us   +/- 5.537 (min:   28.081 / max:  262.398) us     GPU-0:  537.016 us   +/- 5.473 (min:  533.664 / max:  765.152) us

The above tensordot_naive requires an additional temporary memory space, but I personally agree with the change in #3678. How do you think? @kmaehashi @emcastillo

Is CUPY_ACCELERATORS=cub set in the example above?

CUPY_ACCELERATORS=cub is not set in the above performance numbers. If set, tensordot_naive in any case as far as I checked.
tensordot_kernel    :    CPU:   12.353 us   +/-12.194 (min:   11.217 / max:  429.384) us     GPU-0:  838.373 us   +/-26.176 (min:  820.512 / max: 1243.168) us
tensordot_naive     :    CPU:   40.067 us   +/- 1.072 (min:   38.911 / max:   65.483) us     GPU-0:   44.603 us   +/- 1.460 (min:   42.528 / max:   80.096) us
tensordot_kernel    :    CPU:   11.715 us   +/- 0.469 (min:   11.194 / max:   19.401) us     GPU-0:  438.515 us   +/- 1.323 (min:  430.464 / max:  446.176) us
tensordot_naive     :    CPU:   39.927 us   +/- 0.948 (min:   38.747 / max:   59.839) us     GPU-0:   44.409 us   +/- 1.052 (min:   42.496 / max:   64.640) us

Interesting...I guess we are finding the balance between register pressure and I/O in global memory.


Provide auto-complete boxes for dependencies

Dependencies should be referenced from other domains or bounded contexts and not via free text.
Provide a way to search and allow only references to existing items.
Creating items can be an extra step.

Domains and bounded contexts can be referenced as collaborators. A quick way to create them is still missing


Need export UnityEvent with more than one argument

We have some UnityEvent with more than one argument.
As follows
	public class ListViewEvent : UnityEvent<int,string> {

	}

SLua seems to only support those with only one argument
	static public void reg(IntPtr l) {
		LuaUnityEvent_int_string.reg(l); // <-- compiler complains about this line
		getTypeTable(l,"UIWidgets.ListViewEvent");
		createTypeMetatable(l,constructor, typeof(UIWidgets.ListViewEvent),typeof(UnityEngine.Events.UnityEvent<System.Int32,System.String>));
	}

It's a known problem, if latest unity need more than one argument, i will fix.

fixed


Build pipeline

his configuration builds the application and produces builds for both Debug and Release configurations.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: pdevill sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


[MenuItem] Add flex property

[ ] PR has tests / docs demo, and is linted.
[ ] Commit and PR titles begin with [ComponentName], and are in imperative form: "[Component] Fix leaky abstraction".
[ ] Description explains the issue / use-case resolved, and auto-closes the related issue(s) (http://tr.im/vFqem).

To avoid the secondary text over-lap, add flex property to the MenuItem component and assign order to the primary and secondary text.
Resolves #3531

More flexbox :heart_eyes: :heart_eyes: Thanks :+1:

Hmm I suppose it's not going to be easy

We should come up with a better solution than order later on. But for now, this looks good to me
@callemall/material-ui Take a look please :+1:

@alitaheri : I found the implementation weird because the secondary text div gets rendered before the primary and then it was adjusted using a float.  So  removed the float and assigned order which is the property of a flex item.

Yeah I saw the weirdness :smile: I'm all good with this, thanks a lot @tintin1343 :+1: :+1:

@alitaheri : You are welcome! I removed the order attribute from the listItem as it was not needed there.

Oh this is much cleaner :+1: :+1: Thanks :grin:

@tintin1343 please could you change the Commit title to match PR title before this gets merged? Helps keep the history clean.Thanks! :+1:

@mbrookes  Done.

Thanks. :+1:

@mbrookes what's wrong with Travis?  it failed yesterday in an another PR of mine. Is it happening for everyone?

@nathanmarks tracked it down to this: caused by eslint/eslint#5476

Looks good here!


Support disabling clients

To be able to support use-cases where the default client is not needed, it should be possible to disable the default client. Clients currently are configured using properties like:
quarkus.rabbitmqclient.virtual-host=/
quarkus.rabbitmqclient.username=guest
quarkus.rabbitmqclient.password=guest
quarkus.rabbitmqclient.hostname=localhost
quarkus.rabbitmqclient.port=5672

quarkus.rabbitmqclient."<name>".virtual-host=/
quarkus.rabbitmqclient."<name>".username=guest
quarkus.rabbitmqclient."<name>".password=guest
quarkus.rabbitmqclient."<name>".hostname=localhost
quarkus.rabbitmqclient."<name>".port=5672

The idea is to add a new build time property quarkus.rabbitmqclient.enabled and quarkus.rabbitmq."<name>".enabled with a default value of true to determine if a client needs to be created.

Hi，Bas Passon
How can I use the tool in service class，can you write some demos?

@janyyy An example is shown in the README.md in the root of the repository. There is not more to it. Add the extension to your Quarkus application, configure the properties to point to your RabbitMQ installation and you are good to go.


Volt specific test fixtures

I had a bit more time to look at this and I noticed test/fixtures are exactly the same as gettext-swig's.
Looking at the regex differences, there seem to be other Volt formats?
If so, could you add examples of these to the test fixtures? And add tests for these accordingly?
Otherwise, it might be better to rename gettext-swig.

@smhg I got it done.  Please review gettext-volt for inclusion into xgettext-template.


Show rating scale

PR for issue #81
I have added the rating scale to
movie.py line no: 11
anime.py line no: 15
book.py line no: 25

IMDb ratings are on a scale of 10.
Can you verify the others as well?

Copy that !!
I will verify and update..

IMDB is on 10, rest all are under 5.
I have corrected the spacing also...

Thanks @nikhilgeo! :+1:


Color-scheme: light dark doesn't work

I tried this plugin out and wrote color-scheme: light dark; unexpectedly it doesn't work. But, when I changed it to color-scheme: light or color-scheme: dark it works. Probably because it translates the values as a whole, not per word. This bug probably applies to other properties that accepts multiple keywords as values as well, but I haven't looked.

I just tested it with another property: batas: 2px solid sian doesn't work. So it seems that this bug applies to all properties accepting multiple values.

I attempted to fix this issue in #9 pls review...


FI-2233: New validation module for HL7 validator wrapper

Summary
This PR introduces a new Inferno::DSL::FHIRResourceValidation module which is a clone of Inferno::DSL::FHIRValidation, modified to support the HL7 validator wrapper. The code is largely the same as the proof of concept in #396 but reworked to be a separate module. The main entry point to use the HL7 wrapper is fhir_resource_validator which is the replacement of the validator method.
The key differences are as follows:

The HL7 validator wrapper /validate endpoint request and response use the ValidationRequest and ValidationResponse classes from the org.hl7.fhir.validation library, so we will need to map our input and output appropriately. This is pretty straightforward, see functions wrap_resource_for_hl7_wrapper and operation_outcome_from_hl7_wrapped_response below
The HL7 validator uses sessions to ensure different IGs and combinations of settings don't stomp on each other. Spinning up a new session is slow. To ensure good performance, we need to keep track of sessions so that a test suite will re-use the same session ID. There are some other options we could pursue here, including a global session cache, or various changes to the HL7 session management code, but the bare minimum is to keep track of the session ID the previous call returned in an instance variable and re-use that for subsequent calls.
Test suites can specify the IGs they need via a new DSL method igs, which takes a list of IG identifiers . For example for the US core 3 test suite it could look like this:

      fhir_resource_validator do
        url ENV.fetch('V311_VALIDATOR_URL', 'http://validator_service:4567')

        igs ['hl7.fhir.us.core#3.1.1']

        ...
      end

If the IG isn't published yet, then you can pass in a filename here and it will work just fine. (See https://confluence.hl7.org/display/FHIR/Using+the+FHIR+Validator#UsingtheFHIRValidator-LoadinganimplementationGuide for what's accepted) Filenames appear to be relative to the base directory of the HL7 validator wrapper but we will probably need to test different deployment scenarios to confirm.
Testing Guidance
To have test suites actually use the HL7 validator wrapper instead of the inferno wrapper:

enable the hl7_validator_service in docker-compose.background.yml
In your test suite, use fhir_resource_validator instead of validator and make sure it points to http://localhost:3500 (either as a literal or an env var). An easy place to do this is in the demo suite dev_suites/dev_demo_ig_stu1/demo_suite.rb:

    fhir_resource_validator do
      url ENV.fetch('HL7_VALIDATOR_URL')
      exclude_message { |message| message.type == 'info' }
    end

Resouce validation is invoked in Demo Group Instance 1, <IP_ADDRESS>:

I would really like access to the machine-readable contents of the IG from within the tests.  That way, I could succinctly do something like this simply based on the published capability statement in the ig (vs duplicating it in the suite).
igs['uscore#3.1.1.'].resources.select{|resource| resource.id == 'ServerCapabilityStatement'}.resources.each |resource|
(not quite exactly like that, but having the DSL actually be able to do things a bit more dynamically based on the content of an IG 'at load time' would make Inferno's value prop much higher in my opinion).
Given that feature request eventually, would it make sense to put this ig definition at the suite level, and not within the 'validation' section?  The IG has a lot more information than just 'profile validation' that we could leverage.
Just a thought.  I understand the desire to keep the change minimal but also once this gets changed i don't see us having a ton of patience for another iteration.

I'm not opposed to the idea of moving the igs block outside the validator block (I think we've talked about making the validator block optional and that would be one step in that direction), the only concern I have is how it would work if there were combinations, for example the G10 test suite uses multiple US core IGs: https://github.com/onc-healthit/onc-certification-g10-test-kit/blob/f20940535c29070c2c543bd98b5283ea90ba52d4/lib/onc_certification_g10_test_kit.rb#L69
and ideally we'd be able to associate each IG 1:1 with the corresponding validator settings.
We have an upcoming task (FI-2236) to implement the other configuration items that get mapped into the cliContext of the validator request (disabling TX server, "display issues are warnings", etc) so can we tackle the best place to put everything as part of that?

I think that is a level of polish that should wait until later.

When it works, it persist the session ID and re-use it for re-runs. You should see something like
2023-11-06 16:18:33 Cached session exists for session id db79d0cc-3332-4780-9dc4-b5fa617753bd, returning stored validator session id.

in the hl7_validator_service docker logs. But if it times out the session ID won't be returned and can't be persisted so it will try to create a new session each time. (And will probably timeout every time.) Hopefully the 600s timeout I added is enough.
I am seeing more 500s than I remember in my testing so I'll keep looking into that before I mark this ready for re-review.

Re-tested this today and I'm not seeing any 500s, and with some extra debug print statements I confirmed the session ID is re-used, so I'm marking this ready for re-review

Added a note about loading IGs and making sure we have the right cliContext defaults in FI-2236 (in the current sprint). At a glance the 2 things our validator does that aren't replicated here are set doNative = false (not sure what this even does without digging deep into HL7 code) and anyExtensionsAllowed = true but there doesn't seem to be a cliContext field for that.

anyExtensionsAllowed = true but there doesn't seem to be a cliContext field for that.

We'll definitely need to investigate that as I think it could be a show stopper.

Just so nobody panics on a Friday I did a little more digging, the right settings should be set if we use use these two fields in cliContext. I didn't do a full test to compare results but we can do that as part of FI-2236
    "doNative": false,
    "extensions": ["any"],


Question about running multiple displays in same process

Hi,
Thanks for the useful package. I had a question about this use case:
Is it possible to use multiple different displays in the same node process? My understanding is each time we call startSync(), it spawns a Xvfb process and sets the parent process DISPLAY env var to the new display num. I think this means all the code in the parent process will start using the most recently spawned Xvfb process display right, even if a function called startSync() before to create another display?
Is there a way to create isolation so I can use different displays in the same node process? e.g.
async function a() {
  xvfb.startSync();

  // code that uses the virtual frame buffer here

  xvfb.stopSync();
}
// note: executed in parallel
await Promise.all([
  a() // uses display 1
  a() // uses display 2
]);

You can read the value of process.env.DISPLAY before calling startSync / start, and set that environment variable when you start a new process with a specific display.

Do you mean after startSync, something like this?
async function a() {
  xvfb.startSync();

  const currDisplay = process.env.DISPLAY;
  // spawn new process with env var DISPLAY=${currDisplay}

  xvfb.stopSync();
}
// note: executed in parallel
await Promise.all([
  a() // uses display 1
  a() // uses display 2
]);

Yes. But note that stopSync kills the display.
If you want to use multiple in parallel, use start/stop instead of startSync/stopSync.

Got it. Much thanks for the help and quick responses.

@Rob--W @delimmy I am using Jenkins to start/stop xvfb. Is there an xvfb option to start the xvfb in sync mode? I ask this because I run tests in parallel on the same node.


Fix iteration_parameter for pipelines in case supervised component has value nothing

Currently, if iteration_parameter(supervised_model) == nothing for a supervised component in a Pipeline, pipe, then iteration_paramter(pipe) throws an error.
This PR fixes this (and addresses some dep warnings from test pkg MultivariateStats.jl).

Codecov Report

Merging #740 (f4af637) into dev (4a8f3f3) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##              dev     #740   +/-   ##
=======================================
  Coverage   85.13%   85.13%
=======================================
  Files          36       36
  Lines        3404     3405    +1
=======================================
+ Hits         2898     2899    +1
  Misses        506      506

Impacted Files
Coverage Δ

src/composition/models/pipelines.jl
99.42% <100.00%> (ø)

src/utilities.jl
84.21% <100.00%> (+0.10%)
:arrow_up:

Continue to review full report at Codecov.

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

@OkonSamuel Sorry for the cluttered PR. The essential additions are the line marked above and the new tests.

@OkonSamuel Sorry for the cluttered PR - The only change of substance is the fixed annotated above.


needs background music

Similar to the original launcher, we should have background music.

https://canary.discord.com/channels/659964948365049887/950977159088975883/1048344902859227136


Bump package controller to 0.3.1

Description of changes: Packages to 0.3.1
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve


added Laravel Forge to PaaS page

Added Laravel Forge to the PaaS Page.

Looks good :heart:

Excellent! Thanks @taylorotwell :)

Merged https://github.com/philsturgeon/phpversions.info/commit/19967ee7c9ff3258c2258d0d914cf93e832bdb95


Fix for writing large objects (more than 1024 keys)

Nice! Would it be ok to try it with something like 100k columns?

I just tried 100k columns locally and it works but slows down the tests quite a bit so I'm not sure how feasible it would be to have that many cols

okay cool. just wanted to see if it worked.

Released in 1.0.0


libsql: add unsafe Database::connect_raw

This adds a connect_raw function that can be called in an unsafe manner. This will bypass libsql's safety checks that enforce that sqlite3's serialized thread safety mode is enabled. This is a use at your own risk type of function.

@jeremywrowe ^


Change 64-bit time type for windows

Changed the type from time64_t to __time64_t to stop a compile failure on Windows with Visual Studio 2010

424aa35 in master.  good catch!

This fix seems to have caused a different compile failure in travis:
LD_LIBRARY_PATH=.: x86_64-w64-mingw32-gcc -DDSO_WIN32 -DNDEBUG -DOPENSSL_THREADS -DOPENSSL_NO_DYNAMIC_ENGINE -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DRC4_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPADLOCK_ASM -DPOLY1305_ASM -DOPENSSLDIR="/usr/local/ssl" -DENGINESDIR="/usr/local/lib/engines-1_1" -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -DUNICODE -D_UNICODE -m64 -Wall -O3 -D_MT -Wno-pedantic-ms-format -o fuzz/client-test.exe fuzz/client.o fuzz/test-corpus.o -L. -lssl -L. -lcrypto -lws2_32 -lgdi32 -lcrypt32
/usr/lib/gcc/x86_64-w64-mingw32/4.8/../../../../x86_64-w64-mingw32/lib/libmsvcrt.a(dlptbs00688.o):(.text+0x0): multiple definition of `_time64'
fuzz/client.o:client.c:(.text+0x20): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [link_app.] Error 1
make[2]: Leaving directory `/home/travis/build/openssl/openssl'
make[1]: *** [fuzz/client-test.exe] Error 2
make[1]: Leaving directory `/home/travis/build/openssl/openssl'
make: *** [tests] Error 2

Hmm. The original code is designed to override the MSVCRT time() method to make it deterministic. It seems like they are being linked in the opposite way round here, local symbol first. Something in the configuration/makefile?

The original code is designed to override the MSVCRT time() method to make it deterministic.

It's one of those times when you can't put your finger on what's wrong with wording :-) Original idea was indeed to override time on platform of popular choice. And it worked like charm! Then one attempts to compile it on Windows... and you end up trying to fit a sphere into box (or whatever). What I'm trying to say is that "designed to override the MSVCRT" with emphasis on "designed" is kind of an overstatement. See https://github.com/openssl/openssl/issues/3280#issuecomment-296831472...


Dispatch call

pod 'google-cast-sdk', '~> 4.7.0'
/googlemac/iPhone/Chromecast/SDK/SecurityLib/Classes/GCKSSecurityTrust.m:59 This method should not be called on the main thread as it may lead to UI unresponsiveness.

any updates? it's really annoying and spamming the main thread really bad!

We are also seeing this, or something similar, in our app.
Not sure this is the right place to report it, however.


Empty machineTags array response with InvalidRequestBody

From the documentation there is stated:

If machine tags collection in body doesn't contain existing machine tags - replaces all tags with the tags provided in the request body.

IMHO this should include an empty array to remove all tags.
Request is:
{"machineTags": []}
But the Response states that this in not possible in a weird error:
{     "error": {         "code": "InvalidRequestBody",         "message": "Currently supporting only update of: 'tags' and 'deviceValue'", .....

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

ID: de75f8e0-de5a-d4b2-b1ec-b720115ef6ae
Version Independent ID: 41a298e5-65fe-8a4b-ca34-bb0390005dbd
Content: Update machine entity API
Content Source: microsoft-365/security/defender-endpoint/update-machine-method.md
Product: m365-security
GitHub Login: @mjcaparas
Microsoft Alias: macapara

@PhilippEisenmann Please indicate which document you are referring to. Thanks

@yogkumgit  Sorry for that, I updated the original post.

@msbemba

@PhilippEisenmann Thank you for your feedback. This looks like a bug. If the machine tags are empty, it should replace all tags with the tags in the request body. I'd recommend you contact Microsoft support via the need help section on the admin center, so that a support engineer can work with you and fix the bug on the tenant.
Hope this helps!
Thanks
Sri

@msbemba Thank you very much for the contribution and sharing this explanation. @PhilippEisenmann Hope this comment is helpful for you. Considering the nature of the issue, as advised, please open a service ticket in your tenant and follow with them for the resolution. We proceed to close it as here we are limited to documentation fixes and improvements only.
We will be very happy if you can share the outcome or resolution with us if you see documentation update is required. We will certainly update this documentation with that valuable information. Thanks again, for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


Topic/#641/version 5.0 authentication examples

Hi
@PremiumBurger and me are currently writing our thesis about the topic "Client-managed anonymous authentication and authorization for MQTT". In order to create a working example of the concepts described in the thesis we really need the enhanced authentication as described in the official specification in chapter 4.12.
This pull request extends the current MQTTnet broker implementation with the ability to perform such an enhanced authentication.

Btw. looks like Appveyor isn't happy about an expired certificate...

To make this easier to review can you clean up the leading white space issues so that they do not show up as diffs?  I will continue to work through this over the next week.

To make this easier to review can you clean up the leading white space issues so that they do not show up as diffs? I will continue to work through this over the next week.

Hi @jimsch
Thanks for your feedback! I've changed the indentation to whitespaces.

@quickstar, I was going to start pulling this into my personal development tree and found out that you made your changes against 'master' and not against 'develop'.  It is my understanding from trying to follow the project that this is where they are doing all of the changes and then they merge over to master when they do version drops.  This means that your set of changes are out of date relative to where I am currently working.

Yet another request.  https://github.blog/2016-08-15-change-the-base-branch-of-a-pull-request/ shows how to change the target of the pull request.  Comparing to deploy will help clean out things which you did not change.
And thanks for the merge in so that I can look at the changes.  Have you done the testing or did you just merge?

Have you done the testing or did you just merge?

Unittests are working, and our project seems still to work after the rebase. But it definitely needs further review and testing!


style: add clang-format file for simple code formatting

Perhaps, it would be useful to add to commit message info what clang-format is, and how to use it?

just tested with uncrustify vs clang-format, and they do conflicting operations. See commit 268fa152f2ec82855b5841b74cb4c9f29e9f43dc which adds uncrustify, maybe more configuration options for clang-format are needed

@nashif I'll check that, didn't know of uncrustify, thanks for pointing me there

closed in favor of using uncrustify over clang-format


Add ssl/tls framework

Lots of IOT application requires ssl/tls connection.

any preference?

@jhqian , probably mbedtls is the best choice, thanks!


Fix filter >= printing as <=

This likely was an old copy & paste error

@joka921 yeah still counts as an improvement maybe even as a bug fix, right


Desktop client gets into a state where it cannot sync chat messages any more

Repro steps:

Install Windows desktop client
Chat with some people
Close my laptop screen, which disconnects WiFi and puts Windows into "sleep" or "hibernation" mode
Restart Windows and connect to WiFi again

Expected: Chat resyncs properly
Actual: Keybase shows "Digging ancient messages" screen, and is permanently stuck, unable to sync any new messages.
This did NOT fix the problem:

Exit the Keybase client
Run "KeyBase.exe db nuke"
Restart the Keybase client

Result: All the chat history is cleared, but syncing is still broken.
This DOES fix the problem:

Exit the Keybase client
Run "KeyBase.exe db nuke"
Uninstall the KeyBase client
Run the installer again to reinstall Keybase
Restart the Keybase client

Lately I've been getting into this broken state at least once per week.
QUESTION:  What does uninstalling do, that keybase db nuke does NOT do?

I also just had this same issue, for second time - last time it seemed to fix itself (or maybe a laptop reboot did it) - this time had the issue and fixed it immediately with the 5 steps @octogonz used.


Added AGGeometricKitiOS.framework target and Playground

Great library first of all, I was working on a side project and looking for perspective transformation, during experimentation I made a few changes to play with this library easier.

A framework target for more convenient project integration.
A playground is to demonstrate the successful of framework creation, and also double as a visual documentation.

I think that would also be useful for others.
I am still experimenting this with OS X, I suspect issues with flipped view coordinates, but again, well done on wrapping this into a library, I think we've a great start on cross platform support.
Hope you like the changes.

Ooooo!! Nice. I like this! I'm offsite now, but will have a look at this tomorrow.

Sure, let me know what I can help

I'm not able to run the playgrounds and I'm not sure what the issue is..
Playground execution failed: error: Couldn't lookup symbols:
  _AGKQuadMake
  _CATransform3DWithAGKQuadFromRect

Seems related to the framework target AGGeometryKitiOS

You may have to manually switch to the framework target and compile, not sure if there's a way to automate it.
I am using Xcode 7 beta FYR
—
Sent from Mailbox
On Tue, Jul 21, 2015 at 7:59 PM, Håvard Fossli<EMAIL_ADDRESS>wrote:

---
Reply to this email directly or view it on GitHub:
https://github.com/hfossli/AGGeometryKit/pull/31#issuecomment-123283002

Okay, I'm on 6.4. I'll try the beta.

Got it working now. Will push to master soon.
I have restructured the demo project. There is no "source" folder in the demo project anymore. Everything is being linked with cocoapods. Even the playground.

I'm closing the pull request as the contents of the playground is now accessible on master. Feel free to reopen or open a new issue for further discussion about the playground. :)


Add unit tests for CoordinatorRuleManager

See https://github.com/apache/druid/pull/9302#discussion_r373869857.
FYI @zhenxiao @suneet-s.

This PR has:

[x] been self-reviewed.

[ ] using the concurrency checklist (Remove this item if the PR doesn't have any relation to concurrency.)

[ ] added documentation for new or modified features or behaviors.
[ ] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
[ ] added or updated version, license, or notice information in licenses.yaml
[ ] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
[x] added unit tests or modified existing tests to cover new code paths.
[ ] added integration tests.
[ ] been tested in a test Druid cluster.

looks good


Update default actions to include PR id in comment id

Add pr id to comments to ensure diffs end up on the right PR.

Codecov Report

Merging #230 (7398c13) into main (5dcff4e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #230   +/-   ##
=======================================
  Coverage   91.31%   91.31%
=======================================
  Files          15       15
  Lines        1612     1612
=======================================
  Hits         1472     1472
  Misses        140      140

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more