Cannot update workspace with custom address space

Describe the bug
Creating a workspace with a custom address space and then updating it will fail with The custom 'address_space' you requested does not fit in the current network.  This is because the method workspaces.validate_address_space() will check the allocated network on update, find that the network is already allocated (to the current workspace), and return the error.
Steps to reproduce

Create a workspace with custom address space
Update it without any changes

Suggested changes

Custom address space should not be updateable
The address space should not be subject to validation on update

@jlabhard-sg thanks for reporing. Not many people use custom address spaces as far as I am aware.
Updating should not be possible as you can't change the address space once it has things on it. Do you agree?
Can you try changing:
https://github.com/marrobi/AzureTRE/blob/marrobi/issue3689/templates/workspaces/base/template_schema.json#L52-L53
To false and see if that sorts things out?

Hi @marrobi ,
Yes I agree, my issue arises when I update the workspace without changing the address space.
I will try your suggested change to see if it fixes it and update you here.

@marrobi Setting the address_spaces properties to non-updateable did not solve the issue.

Ok, it will need further debugging/time to look for an appropriate solution.
If you can come up with a working solution, welcome a contribution, it's unlikely we will have chance to dig into it for a while. I tend to think not validating the address space if it has not changed/is and update , makes most sense.

@jlabhard-sg just taking a look at this, I'm trying to work out the code path that results in validate_address_space being called on an update.
It is called in get_address_space_based_on_size which is called only on create, here
-https://github.com/marrobi/AzureTRE/blob/0c5d945f84086daf479a906b2e362d2ae544702b/api_app/db/repositories/workspaces.py#L75
II will try to reproduce myself, but confused as to why this would occur.

@marrobi It is possible that I mixed the error message from two different issues when looking for them in the app insights. "Does not fit in the current network" probably happened when trying to create a workspace with an address space that was used by a deleted workspace. I believe this is still undesirable.
However, updating a workspace with custom address space also doesn't work. But the only error message I can find is "Unevaluated properties <address_space> is not allowed". Currently, I am able to bypass it by updating the resource in CosmosDB and using the swagger UI to update the workspace.

Ok, other than the excluding deleted the issue is as address_space_size is not updatable, its not passed with the patch payload. This means that validation fails as it's not expecting the actual address space size in the payload, as its only accepted if address space size is in the payload as custom.
address_space should not be updatable, but read only, this is configured here:
https://github.com/microsoft/AzureTRE/blob/63aa23d9515925c52647930f2bf342c530fae344/api_app/services/schema_service.py#L51-L54
We are only iterating through the top level properties and making fields read only, not the allOf ones, which address space is.

@jlabhard-sg any change you can build the image in https://github.com/microsoft/AzureTRE/pull/3714 and give it a go and see if the issue is resolved.
I've given it a go and is good for me. Thanks.

@marrobi Was able to test and validate the fix in #3714. Thank you!

Great, might take a little while to get it merged in, but good to know it works.


SVG pinch/zoom performance?

I load an svg file into MacawView and manually update node.place, along with view.bounds. It works very nicely, except performance is a little sluggish. Is there a better way?
Also, it's not hard to get a memory crash if you zoom way in ....
    @objc func didPinch(pinchGestureRecognizer: UIPinchGestureRecognizer) {
        let node = macawView.node
        let scale = pinchGestureRecognizer.scale
        let location = pinchGestureRecognizer.location(in: macawView)
        let dx = Double(location.x * (1 - scale))
        let dy = Double(location.y * (1 - scale))
        node.place = node.place
          .scale(sx: Double(scale), sy: Double(scale))
          .move(dx: dx, dy: dy)
        let transform = CGAffineTransform.identity.scaledBy(x: scale, y: scale)
        macawView.bounds = macawView.bounds.applying(transform)
        pinchGestureRecognizer.scale = 1.0
    }

Hi Phil,
Did you use some SVG to reproduce it? Would be great if you can attach it. I believe it depends on SVG complexity in your case.

There is now MacawView.zoom property with a pretty fast zoom/pinch feature.


Can we / shouldn't we use Dart VM (GC) to auto manage non-Dart objects in 2023, inside a Flutter app?

Cross-posted from https://github.com/dart-lang/sdk/issues/54233. I post to Flutter as well, because if we are only talking about non-Flutter dart, then I guess the answer is "yes"; but for Flutter, especially Flutter Android/iOS, I am worried about the answer due to the limitation of memory on mobile devices.

Answered in dart tracker.


Doesn't seem to scale...

Hi, I tried really hard to use your client... I didn't feel like writing a new one, but it just doesn't scale to my needs. I found at least 3 bottlenecks aka single process doing work for all queries.
Here's an example of high load on your client:
(rtb-gateway@h101)5> process_info(whereis(cqerl), message_queue_len).
{message_queue_len,383675}

Obviously the gen_server times out and I can never get a client.

If you look at the code, you'll see that the cqerl process is not doing any queries, it's just allocating clients. Its work is very light, when you ask for cqerl:new_client, it either gives you one that's already up, or asks pooler to spawn a new one.
If you end up with that amount of queued messages in the cqerl process, there's a problem with how these client process allocation is done, and has nothing to do with scaling. CQerl does connection pooling and workload distribution across those connection, as much as possible.
Please don't jump to alarmist conclusions based solely on the little information a message queue length gives you.
If you give more context to how you arrived at that situation, I will happily try to find the problem for you.

And can you describe the other bottlenecks you found?

It's not an alarmist conclusion... I've written a lot of high performance Erlang code.
https://github.com/matehat/cqerl/blob/master/src/cqerl.erl#L272
That call is not that cheap if I do it 10K/s... you should never have a single point of contention.
The cqerl_cache is another bottleneck, why not make the table public with read_concurrency true? The number of writes is much lower... Also, using re (regex) in there is not the best idea. At least replace it with re2 which has a more linear worst case.

cqerl_cache already lets the calling process read from the ETS table directly and is using the read_concurrency flag. Thanks for the re2 suggestion, I didn't know about it!
As for cqerl expensive call, you're right. I'll look into optimize it, and eliminate the single point of contention. If you can think of a better way of handling client allocation, I'd be happy to hear it!

checkout dispcount - https://github.com/ferd/dispcount

Also, why block on the client creation? I'd rather receive {error, no_available_clients} fast then have to wait the default 5s gen_server:call/3 timeout...

To use that as a sort of back pressure, makes total sense

re2 is now in

Man, dispcount is awesome. It'll make cqerl so much more reliable and simpler.

I'll port the whole thing to dispcount in a new branch tonight. It'd be cool if you could circle back here and tell me how it improved things with your testing.

More info on dispcount: http://ferd.ca/rtb-where-erlang-blooms.html
We actually build it for our internal http client, but we use it in other clients (e.g. https://github.com/lpgauth/cassanderl).
I'll probably still write another cassandra client since our needs are pretty extreme, but I'm happy to help you out. If you ever in MTL ping me and let's grab a beer :)

Cool, thanks!
If you end up working on a new cassandra client, feel free to rip out the encoding/decoding code from this project. Or better yet, if you wanted improve on this one, I'd happily hand you push access.
As for a beer, sure thing -- I end up in MTL pretty often :)

@matehat Did you ever get a chance to work on the dispcount branch of cqerl? Or did you run into any unsuspecting problems trying to do it?

It turns out to be more complicated than a trivial replace, as both pooling library have somewhat of a different philosophies, but I'm getting on the task of doing the switch now, so stay tuned.

@matehat I was wondering what the status of the dispcount change was. We're striking a couple of problems around the existing pooler implementation (to do with recovery after disconnection) and I'm tempted to rework some bits of the client handling to deal with them. However if the entire thing is going to be changed, soon I'd obviously rather not spend the time :)

@bernardd it depends on the sort of solution you were thinking of bringing. If they make cqerl behave better under heavy load then yes, I think it would make sense to work on them and it may obviate the need to bring something like dispcount to the table.
The work I have and had to put on the shelf because of, you know, other work imperatives, is about 50% there about bringing a dispcount-based implementation. That one definitely bring some changes in behavior, specifically regarding failing scenarios and under heavy load, so it would be a breaking upgrade – something like 1.X or 2.X – so I think in any case that your improvements would be useful for whoever wants to keep the current behavior and still have a stable C* client.

@matehat Okay, cool, thanks. Just wanted to make sure the stuff I'm working on wasn't a duplication of effort. Give me a day or two :)
For what it's worth, having done some reading I don't think dispcount is exactly the right tool for the job. It's specifically designed to perform best with systems that are constantly overloaded and while that may apply to some cqerl cases, I strongly doubt it's the "usual" case, even for heavily loaded systems. And in more "normal" cases it's more likely to start dropping stuff that would do just fine if it were briefly queued. There may be exceptions to this, such as the system @lpgauth is dealing with (hi LP!), but if we get cqerl performing decently without bottlenecks, the dispcount-style load shedding can probably be done at an earlier stage. Having said it's not the right tool, however, by stealing a couple of its ideas I think I'm going to be able to remove the single process bottlenecks. More soon.

@bernardd Hey! If you really care about performance you can checkout my Cassandra client :smile: https://github.com/lpgauth/marina

@lpgauth I'd be curious to see some kind of benchmark comparing our two libraries, just so we can a see how big that difference is, and see if it could be useful to port some of your work here if relevant.

@lpgauth Thanks - I'll take a look :)

Hello guys,
There are any benchmarks hat we can run to compare cqerl and marina ? I would like to add code to compare with my driver implementation (https://github.com/silviucpp/erlcass) as well. This is a NIF in top of Datastax official C++ client which is fully async.
If doesn't exist yet I can extend my benchmarks to include this libraries as well.
Silviu

@silviucpp Hi Silviu. None that I'm aware of ouside of the basic load tests in the repo (though @matehat may know some) - I'd be thrilled if you were able to provide some more.

I've done some benchmarks with basho_bench but it's not perfect. Best benchmark so far for me is to actually try it in production 😄

We are using erlcass in production and performs very nice under high load. At the begin we used cqerl but we had different issues one of being:
https://github.com/matehat/cqerl/issues/50

@silviucpp since your last comment, #50 was fixed with #91. I'd be curious to know about the other issues you had.

@matehat  I didn't tested any longer your library in the last time but another issue was related to the poor performances during load tests at that point. This was one of the main reason that forced me to write an Erlang bidding for the datastax official c++ client.
Will be interesting to make a script to load test erlcass, cqerl and marina and to compare the results.
Unfortunately I don't have time at this moment to do this but if anyone else has will be interesting.
Silviu

@silviucpp cool, thanks!

Added #96 to track the addition of a benchmark suite. Closing, as there isn't much more we can do at this point.


Update information-protection-deploy-assess.md

Added a note about using AIP to learn about sensitive information types in on-premises data stores.

Issue#https://github.com/MicrosoftDocs/microsoft-365-docs/issues/3478

@JohanFreelancer9 Please copy review

@BrendaCarter Please merge this PR. Thanks.


Rainbow crosshair

Showcase:

ss?

honestly just why

honestly just why

Visual features are personal pleasure stop messing around pls

i enjoy these pr's thank you


chore: fix maxwidth=nan throw

GitHub Issue (If applicable): n/a
PR Type
What kind of change does this PR introduce?

Bugfix

What is the current behavior?
drawerflyout are now throwing: Property 'MaxWidth' cannot be set to NaN. It must not be NaN or negative.
What is the new behavior?
not throwing anymore
PR Checklist
Please check if your PR fulfills the following requirements:

[x] Tested code with current supported SDKs
[x] Tested the changes where applicable:

[ ] UWP
[x] WinUI
[ ] iOS
[ ] Android
[ ] WASM
[ ] MacOS

[ ] Updated the documentation as needed:

[ ] General Doc Update
[ ] Controls Doc Update
[ ] Extensions Doc Update
[ ] controls-styles.md
[ ] lightweight-styling.md (LightWeight Styling Resource Keys)

[x] Runtime Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
[x] Contains NO breaking changes
[ ] Associated with an issue (GitHub or internal)
[x] Commits must be following the Conventional Commits specification.

Other information
the error were introduced by: https://github.com/unoplatform/uno/pull/15050
but it is not supposed to throw (as evidenced by windows)
although, microsoft does suggested that: "This value can be any value equal to or greater than 0. PositiveInfinity is also valid."
on windows, setter with value of NaN or PositiveInfinity both results in +inf.
---
note that the setters are needed to override the (758x456) values from the default style


Investigate if connection errors can be shown to users or alerts

As a user, I would like to see failed exchanges in FM when there are errors when not being able to retrieve files via the Inbound Google Drive component, so that I am aware that there are errors that need to be fixed.

This counts for:
InboundGoogleDrive
FTP
InboundEmail
Samba
etc
Best to this based on the logging in Elastic.

Another is that most components have the option "bridgeErrorHandler". When implemented it can send error as message to the errorhandler/error route:
"Allows  for bridging the consumer to the Camel routing Error Handler, which  mean any exceptions (if possible) occurred while the Camel consumer is  trying to pickup incoming messages, or the likes, will now be processed  as a message and handled by the routing Error Handler. Important: This  is only possible if the 3rd party component allows Camel to be alerted  if an exception was thrown. Some components handle this internally only,  and therefore bridgeErrorHandler is not possible. In other situations  we may improve the Camel component to hook into the 3rd party component  and make this possible for future releases. By default the consumer will  use the org.apache.camel.spi.ExceptionHandler to deal with exceptions,  that will be logged at WARN or ERROR level and ignored.
"
A few components that support this are :
File
SFTP
Jetty
Email
Google Drive (Default)
SMB
RabbitMQ
SQL
For some we may already enable this, but I can try to investigate if we can enable this globally.

Investigated finished and discussed. I'll make two separate tickets:

Implement global bridgeErrorHandler
Implement healt check API.


fix(ssh): add ip address to web session

This is a bug in v16.0.0, right?
Since I am self-hosting that version, and I couldn't get web connection ips logged to the Sessions panel, and decided to take a look if it was a problem with my reverse proxy or ShellHub itself.
Where I came to find that the environment variable IP_ADDRESS was showing up correctly in the agent/ssh terminal, but it wasn't getting correctly logged.
So I went looking in the v16.0.0 source code to find that the session code was just grabbing the RemoteAddr.
https://github.com/shellhub-io/shellhub/blob/0de043ff23d322e9d580c534d07049a522c2527d/ssh/session/session.go#L122

This is a bug in v16.0.0, right?
Since I am self-hosting that version, and I couldn't get web connection ips logged to the Sessions panel, and decided to take a look if it was a problem with my reverse proxy or ShellHub itself. Where I came to find that the environment variable IP_ADDRESS was showing up correctly in the agent/ssh terminal, but it wasn't getting correctly logged. So I went looking in the v16.0.0 source code to find that the session code was just grabbing the RemoteAddr.

@pwall2222  Yes, this is a bug in v0.16.0. Version v0.17.0 is expected to be released in a few days, which should fix this issue.


password validation

creating requirements for password when creating user

Links to code changes can be found in branch 5-password-validation


save issue on firefox

issue #58
I tested this issue on all the browser now it is working
Actually firefox don't support any window.showFileSave so it is not working in that so the option is we direclty download this graphML file to last directory used for saving
Actually this is the new feature requested from the firefox that It will provide window.showFileSave
Till then we can save our files in last directory used for saving
If they want to change this location they can edit in auto.config file of the firefox browser

hey @pradeeban , if there is anything to be modified please inform me

It is working on Chrome. Aviral implemented it as part of the last GSoC and we have been using it. If it does not work on Chrome, it is likely some of your local modifications caused an issue?

This is your deployed version , which I have done nothing with it
On Chrome browser
Uploading concore Editor - Google Chrome 2023-02-10 22-38-57.mp4…
rather I fix this issue

This is your deployed version , which I can't change
On Chrome browser
screen-capture (1).webm
rather I fixed this issue on all browser
on firefox it will download that file on last saved directory , we don't have other alternative now as firefox not support window.showFilePicker option but I will look into it and find some other solution also
screen-capture.webm
on firefox
screen-capture (2).webm

Great.
Regarding the hosted version - please host yours too, as we have mentioned in the project descriptions:
If you are attempting to highlight changes to the concore-editor or DHGWorkflow, please host your own forked version of concore-editor, following the "Deploying concore-editor in GitHub" section in the concore-editor README. Please also make sure to keep your hosted concore-editor instance updated with your own changes. That would allow us to confirm that your changes are working even before reviewing/testing your commits and merging your fixes to the concore-editor repository. Please also include the link of your hosted concore-editor in your proposal. By default, it will take the form of https://your-git-repo.github.io/concore-editor/.

I am facing issues to deploy it ,
Do i first push my code to gh-pages branch

You already have that branch. You don't need anymore changes to that branch.
Please follow through the "Deploying concore-editor in GitHub" section in the concore editor README.

You already have that branch. You don't need anymore changes to that branch.
Please follow through the "Deploying concore-editor in GitHub" section in the concore editor README.

may be you can clone my repo and try https://github.com/parteekcoder/concore-editor.git

got this in deploy
Can you please try by cloning my repo, I think I am doing something wrong while deploying

hey @pradeeban this my deployed version you can check here https://parteekcoder.github.io/concore-editor/

@pradeeban please review this if there is anything please tell me so that I can update

 got this in deploy
Can you please try by cloning my repo, I think I am doing something wrong while deploying

Hey do I mention about this error in README file so that programmars will not face difficulty in deploying concore-editor as I struggled to solve it

It says permissions denied in cloning your repo and a 403 was thrown. Is it a GitHub permissions issue?
Check the line, "fatal: unable to access ...."

It says permissions denied in cloning your repo and a 403 was thrown. Is it a GitHub permissions issue?
Check the line, "fatal: unable to access ...."

Actually i found We have to give permissions to workflow to do changes in other repos
As our workflow in Main branch is changing code in gh-pages branch , it is not mentioned in the README
So that's why I am saying people have to search for this error and solve
To ease this we can add this in README to allow permission to workflow


Fix flexbox documentation URL in Flex README

Markdown reference links are standardized as [Link name][link-id], not [Link name](link-id)
See https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#links

Hi @LucianBuzzo I just amended my commit. It would be nice to have this info in CONTRIBUTING.md :wink:

@Betree very true! Our contribution guidelines are woefully lacking at the moment. This is an open issue that I want to tackle soon https://github.com/resin-io-modules/rendition/issues/464

@resin-ci retest

@Betree I've spoken to our DevOps team and apparently there is an open issue with our CI process that prevents the checks from running when a PR is sent from a forked repo. We should have it resolved in the next week. I'll keep an eye on things and update you once the issue is resolved, at which point you'll need to rebase this PR onto master and then it can be merged.

Ok @LucianBuzzo, I'll wait for your message.

@resin-ci retest

@Betree Our CI issues are resolved, would you please rebase your PR on top of the current master branch?

@Betree Sorry for the lack of attention on this PR - we've been very busy with the resin --> balena name change! If you can rebase your PR on top of master and I'll get this merged ASAP.

@resin-ci retest

Fixed by #652


Screen saver

The screen should automatically be turned off after 10 seconds without key press. This should only apply to the main channel display mode, not in either scan mode or during configuration.
The feature should be optional and the factory setting should be OFF
The background for the improvement is to be able to mount the display inside the visor.

Committed in 1.3 branch. Issue closed.


%%time in jupyter cell causes incorrect Pylance warning

Language Server version: v2023.1.30
OS and version: Ubuntu 22.04
Python version (& distribution if applicable, e.g. Anaconda): 3.10.6

Code Snippet
%%time
x = 1

x

Repro Steps
Introduction of %%time magic command above results in "x" is not defined message from Pylance (when hovering over the yellow squiggle) in subsequent cells.

If  %%time  is removed the warning disappears.

Duplicate of https://github.com/microsoft/pylance-release/discussions/3851?

Yes, will be resolved with we resolved #3851


Cannot install dm-tree on raspberry pi 3 (armv7l)

'pip install dm-tree' hangs forever on Raspberry pi 3 (armv7l) with Raspbian buster OS. can you please help.
Thanks

Hi @neeraj-partha! We don't currently ship armv7l wheels, and I'm afraid we don't have immediate plans to do so. I have no means of reproducing this locally, but it is possible that Rapberry Pi has a hard time compiling tree from source.


Add domain extraction improvement

Fixed a domain extraction issue mentioned in #28

@sroberts hi, thank you  for chcking this PR.
Followings are the CircleCI build output logs. Is it OK?  (To be honest, I'm not familiar with CircleCI)
$ circleci build .circleci/config.yml

====>> Spin up Environment
Build-agent version 0.0.5895-01cdb92 (2018-05-29T20:07:10+0000)
Starting container circleci/golang:1.9
  using image circleci/golang@sha256:03553e250a0b9aacb9593750c0196c3b06d0ce30268e75130c45329496d979d7

Using build environment variables:
  BASH_ENV=/tmp/.bash_env-localbuild-1531278848
  CI=true
  CIRCLECI=true
  CIRCLE_BRANCH=domain-extraction-improvement
  CIRCLE_BUILD_NUM=
  CIRCLE_JOB=build
  CIRCLE_NODE_INDEX=0
  CIRCLE_NODE_TOTAL=1
  CIRCLE_REPOSITORY_URL=https://github.com/ninoseki/cacador.git
  CIRCLE_SHA1=feb700d0c168310914fad025f5ee94fe0d79f483
  CIRCLE_SHELL_ENV=/tmp/.bash_env-localbuild-1531278848
  CIRCLE_WORKING_DIRECTORY=/go/src/github.com/sroberts/cacador

====>> Checkout code
  #!/bin/sh
mkdir -p /go/src/github.com/sroberts/cacador && cp -r /tmp/_circleci_local_build_repo/. /go/src/github.com/sroberts/cacador
====>> go get -v -t -d ./...
  #!/bin/bash -eo pipefail
go get -v -t -d ./...
====>> go test -v ./...
  #!/bin/bash -eo pipefail
go test -v ./...
=== RUN   TestGetUtilityStrings
--- PASS: TestGetUtilityStrings (0.00s)
PASS
ok  	github.com/sroberts/cacador	0.006s
=== RUN   TestDedup
--- PASS: TestDedup (0.00s)
=== RUN   TestCleanIPs
--- PASS: TestCleanIPs (0.00s)
=== RUN   TestCleanDomains
--- PASS: TestCleanDomains (0.00s)
=== RUN   TestCleanURLs
--- PASS: TestCleanURLs (0.00s)
=== RUN   TestIsHash
--- PASS: TestIsHash (0.00s)
=== RUN   TestIsNetworkIoc
--- PASS: TestIsNetworkIoc (0.00s)
=== RUN   TestIsFileIoc
--- PASS: TestIsFileIoc (0.00s)
=== RUN   TestIsUtilityItem
--- PASS: TestIsUtilityItem (0.00s)
PASS
ok  	github.com/sroberts/cacador/aux	0.009s
Success!

Yep, all good. In the future tests will run by default. Thanks so much for the PR!


Be able to define default element templates (on User Task / Service Task)

A developer can define element templates that activate per default based on an elements type (i.e. bpmn:ServiceTask).

Template properties are applied on element creation
Default templates do not activate for elements with a specified element template
Default templates activate automatically and do not persists to camunda:modelerTemplate
Template properties are editable in properties panel
Template is shown but cannot be changed, if a default template is being active on an element

Example
A developer defines an element template for all bpmn:UserTasks. Whenever a citizen developer creates a user task (from palette or context pad) it gets initialized with a camunda:property foo=bar:
<camunda:property name="foo" value="bar" />

The property is shown as a custom property in the properties panel together with user defined validation rules and hints.

Related to SUPPORT-2383

did we also write docs for this feature?

Not yet, still needs to be done.

Hi guys. Do we have this ability in bpmn-js library ? I just want to predefine some camunda properties for Service task

What exactly would you like to do? What is your setup?
Element Templates are implemented as part of the bpmn-js-properties-panel. The core library does not have that feature.

Thank you for your response.
So I have the next setup:
1.Properties panel already added.
2. Camunda module added as well.
I have created custom Service Task with icon in the panel (please check the screen - http://prntscr.com/gwvjf3 , i will change svg shape on canvas as well). But this task is empty by default. So all i need is make some properties for Service Task be preset. Please check the screen to see what properties i mean -

http://prntscr.com/gwvlb9
http://prntscr.com/gwvli9

Hi guys. Did you have ability to check my problem?


[Feature request] Multiple redirects per one rule

For example this how it's done in requestly

This is existing UI that we can reuse

If you don't mind I could submit, a PR with those changes

Hello @mouettxy
Thank you so much for the suggestion. This feature is in the backlog, but if you can open a merge request (MR), it will speed up the development.
Thank you again

At this moment it is possible to have multiple conditions


Instant and Duration subscriptions for crux_time

Updates crux_time capability to be more closely aligned with wasi-clocks.

[x] update now to return an Instant, which represents a UTC point in time (number of seconds since the epoch and number of nanoseconds since the last second).
[x] add subscribe_duration and its async counterpart. The shell side of the capability responds when the requested duration has elapsed.
[x] add subscribe_instant and its async counterpart. The shell side of the capability responds when the requested instant has arrived.
[x] Add a test that demonstrates a debounce based on subscribe_duration

Though I just skimmed that spec you linked, and have realised that's probably where you got the names.  Never mind then


Missing toolbar and edit tags option for middleware deployment and datasource

Middleware deployment and datasource entities are missing a toolbar, and as a result, also the ability to tag them.
should look like this:

current:

@miq-bot add_label providers/hawkular, ui

@miq-bot add_label bug

@miq-bot assign @abonas


Sparrow on Raspberry Pi OS

It actually works pretty well... Except the Menus don't stay "dropped" when you select them (they immediately disappear as soon as you let the mouse go) and you can't "click and drag" the mouse to a menu selection, either. In fact, any menu (including drop down lists) appear like one menu item down rather than directly under the menu. But with drop down lists, at least those stay open and you can select them, they just look odd, not being connected to the selector.

OK, good news... I can make the Menus stay dropped if I use the keyboard to drop them... That is, if I hit ALT and then Down Arrow, then I can use the mouse to move around to whatever menu and use the left click as normal to select a menu option. (I can also use the arrow keys to move around the menu options and hit Enter to select.)

Thanks, this is a known issue with a fix in sight. See #170.


Uncaught Error: Attempted to get identity for non-connected member

[Enter steps to reproduce:]

...
...

Atom: 1.27.1 x64
Electron: 1.7.15
OS: Mac OS X 10.13.4
Thrown From: teletype package 0.13.3
Stack Trace
Uncaught Error: Attempted to get identity for non-connected member
At /Users/RyanPowell/.atom/packages/teletype/node_modules/@atom/teletype-client/lib/star-overlay-network.js:165

Error: Attempted to get identity for non-connected member
    at process.nextTick (/packages/teletype/node_modules/@atom/teletype-client/lib/star-overlay-network.js:161:23)
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)

Commands
     -2:51.7.0 editor:newline (input.hidden-input)
  2x -2:45.6.0 core:backspace (input.hidden-input)
     -2:17.9.0 core:save (input.hidden-input)
     -0:59.4.0 core:move-right (input.hidden-input)
  2x -0:57.5.0 core:backspace (input.hidden-input)
     -0:48.1.0 core:copy (input.hidden-input)
     -0:47.2.0 core:paste (input.hidden-input)
  2x -0:43.2.0 autocomplete-plus:confirm (input.hidden-input)
     -0:36.8.0 core:save (input.hidden-input)
  2x -0:33.5.0 editor:newline (input.hidden-input)
  4x -0:25.8.0 core:backspace (input.hidden-input)

Non-Core Packages
markdown-pdf 2.2.0
teletype 0.13.3

Thanks for the report!  Can you confirm what were you doing at the time of the error and if the error is reproducible?

I opened a portal and sent the link to my partner, and every time he tried
to join the portal with that link it created that error. We got it 3 times
in a 10 minute period but haven't tried again since
On Wed, May 30, 2018 at 10:17 AM, Robert Sese<EMAIL_ADDRESS>wrote:

Thanks for the report! Can you confirm what were you doing at the time of
the error and if the error is reproducible?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/atom/teletype/issues/383#issuecomment-393244336, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AYySYkNh35YF0wXJbYR-sqPdKjX6fUoJks5t3tQUgaJpZM4USo5S
.

Hmm, did things work ok before but just stopped working that particular day in that 10-minute period?

Yeah things were fine the couple days before
On Thu, May 31, 2018 at 1:10 PM, Robert Sese<EMAIL_ADDRESS>wrote:

Hmm, did things work ok before but just stopped working that particular
day in that 10-minute period?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/atom/teletype/issues/383#issuecomment-393663925, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AYySYiypRZ11CvRRULyD5WzbX8PdljOhks5t4E4agaJpZM4USo5S
.

I got this error after installing just this package. I never used it before. The error occurred when someone used the link I sent to connect. I am unsure of the exact steps they took (did they sign into github?... which is what I suspect failed)

If you discover exact steps to reproduce let us know @asdf23, that would be super helpful :+1:


Training Data Apporach

hi, I have images like this

,after fine-tuning , if I give image later like this .

I'm expecting it estimate score and reason how it is come its conclusion .how to prepare a dataset for this kind of problem .

From human expert perpective,  expert reads an image and write down struct information text down. The struct information text can be describe by a json string (maybe). then you make many many such images and json string. then you make a train_data.json, then you finetune the model....

i can make JSON in c# , I want to know structure for training data, I don't know the training data format .from what I understood , should I prepare , data like this
`    {
"messages": [
{"role": "system", "content": "system prompt here"},
{
"role": "user",
"content": [
{"type": "image", "image": "train_data/2.png"},
                {"type": "text", "text": "Prompt for estimation here"}
            ]
        },
        {
            "role": "assistant",
            "content": [
                {"type": "text", "text": "estimated score is 456"}
            ]
        }
    ]
},`

Right.
BTW, there is a example training data file in the repo: https://github.com/zhangfaen/finetune-Qwen2-VL/blob/main/train_data/data.json fyi


Didn't find any way to fix my xAxis to my yAxis position 0

Hi guys,
I did a first try on stackoverflow and I've been redirected here : http://stackoverflow.com/questions/43801729/chart-js-i-want-to-fix-my-xaxis-to-my-yaxis-position-0
Here is the example of what I want, a xAxis fixed to 0 of yAxis:

Here is my chart structure:
scales: {
                xAxes: [
                    {
                        display: true,
                        labels: {
                            show: true
                        },
                        stacked: true
                    }
                ],
                yAxes: [
                    {
                        type: 'linear',
                        display: true,
                        position: 'left',
                        id: 'y-axis-1',
                        gridLines: {
                            display: false
                        },
                        labels: {
                            show: true
                        },
                        stacked: true,
                        ticks: {
                            beginAtZero: true
                        }
                    }
                ]
            }

Here is what I have:

This is not currently possible. Closing as a duplicate of #2950


Upgrade to new template

Replaced PluginRegistry.* with GeneratedPluginRegistrant.* following the new template.
Added a dummy lib/main.dart file as some of our tooling fails without it.

Partially fixes https://github.com/flutter/flutter/issues/10297


add tableacl proto and refactor go/vt/tableacl

In short, the tableacl configuration will be represented as a
tableacl.proto. tableacl module holds a global "currentACL" instance
which maps a table group to its ACLs.

Introduce tableacl.proto which defines acl per table group.
A table group either contains only one table or many tables
that share the same name prefix.
Remove "All" and "AllString" funcs from acl.Factory interface.

LGTM now, but don't forget to add the validation step of the entries, or we're gonna suffer. :)


feat: Adds Retire Version target

Adds target to retire a specific Version of an API
cli project  -t "$TOKEN" -p $PROJECTID retire version -v "v1" -i foo
Improves error handling by transversing the CMD tree and printing all nodes except the roots (stackit-cli and project).
Example for the usage of a nested target like retire + version:
Failed to retire version! An error occurred with statuscode 404: not found

I remember that we agreed on adding logic to require users to confirm on the retire option because they may not be aware that all API versions are retired when they do not use the retire version but retire target.


changes t2 instance from xlarge to micro (related to PR#39)

https://github.com/fastai/courses/pull/39

Just realized the first notebook (and probably the later) cannot be run on a t2.micro...


Motion does not work inside TouchableWithoutFeedback

Hi @chenglou I found a possible issue with React Native. I am going to describe what the issue looks like but I don't have good insight about why yet.
The setup is simple enough. Below is a render body that will create three switches, each with slightly differing structure.

The first case where <Touchable> contains <Motion>, which I thought should work (that ~exact code works on Web) did not!

The second case where <Motion> contains <Touchable> does work!

The third case is what I had before I introducing animation so of course it works ...because it isn't using <Motion>.

The question/bug is why isn't the first case working?
  render () {
    const {
      value,
      onValueChange,
      style,
    } = this.props
    const springValue = value ? 0 : stylePropsDefault.height
    return (
      <View>

        <Touchable onPress={onValueChange}>
          <Motion style={{ x: spring(springValue) }}>{({ x }) =>
            <View style={style.track}>
              <View style={{
                ...style.handle,
                transform: [{ translateX: x }],
                // transform: `translateX(${x}px)`,
              }}/>
            </View>
          }</Motion>
        </Touchable>

        <Motion style={{ x: spring(springValue) }}>{({ x }) =>
          <Touchable onPress={onValueChange}>
            <View style={style.track}>
              <View style={{
                ...style.handle,
                transform: [{ translateX: x }],
                // transform: `translateX(${x}px)`,
              }}/>
            </View>
          </Touchable>
        }</Motion>

        <Touchable onPress={onValueChange}>
          <View style={style.track}>
            <View style={style.handle}/>
          </View>
        </Touchable>
      </View>

    )
  }

Hm! Interesting. If I use TouchableOpacity then everything works as expected! The problem really does seem specific to TouchableWithoutFeedback. Screen Recording:

Can you try the new release? Don't think it'll fix this, but who knows.

Seems like outside of the scope of React-motion now. If not, feel free to reopen!

Thanks, I'm not longer working at littleBits so this issue isn't mine anymore heh. Thanks for following up.


doc: update volume health monitoring doc with metrics content

@fengzixu thanks for opening this! also please change the target branch to 1.24
/assign
/sig-storage
/milestone 1.24

and ... please squash the commits when the PR is ready.

@fengzixu please take a look at @xing-yang 's comment

enhancement ref:https://github.com/kubernetes/enhancements/issues/1432

@fengzixu thanks for opening this! also please change the target branch to dev-1.24
/assign /sig-storage /milestone 1.24

so, you mean I should create another PR to dev-1.24 branch

@fengzixu you don't have to create a new PR, you can edit this PR and change the target branch to dev-1.24. please do that, since it already has the comments in it.

@PI-Victor done

/approve


Redis TLS problem "redis and transport connections not initialized"

Problem withTLS for redis
Expected Behavior
Encryption between server/ client endpoint and Redis used as a transport
According to this PR TLS supposed to be supported for redis transport
https://github.com/sensu/sensu-redis/pull/20
Current Behavior
500 Error and message
{"error":"redis and transport connections not initialized"
Just trying to test SSL between sensu node server and redis on AWS
We have created the certs using  tools:
keys and cert generated with tool http://docs.sensu.io/sensu-core/0.29/files/sensu_ssl_tool.tar
Certificates seems to be working
openssl s_client -connect master.sensu.xxxxx.cache.amazonaws.com:6379 -cert cert.pem -key key.pem -CAfile cacert.pem  CONNECTED(00000003) depth=4 C = US, O = "Starfield Technologies, Inc.", OU = Starfield Class 2 Certification Authority verify return:1
however sensu is unable to connect to the redis instance on AWS using tls:
ERROR:
sensu-enterprise-dashboard.log:
{"timestamp":"2018-04-19T10:17:43.749666193Z","level":"warn","message":"GET http://<IP_ADDRESS>:4567/stashes returned: 500 Internal Server Error"}
 curl localhost:4567/info {"error":"redis and transport connections not initialized"
Our sensu redis config file:
../conf.d/redis.json

{
"redis": {
"host": "master.sensu.xxxxx.cache.amazonaws.com",
"port": 6379,
"reconnect_on_error": true,
"auto_reconnect": true,
"password": "redacted",
"ssl": {
"cert_chain_file": "/etc/sensu/ssl/cert.pem",
"private_key_file": "/etc/sensu/ssl/key.pem"
}
}
}

transport file
../conf.d/transport.json

{
"transport":
{
"name": "redis",
"reconnect_on_error": true
}
}

Please advice how we can overcome the problem.
Possible Solution

SSL  does work with stunnel installed locally on the server
However we are trying to avoid additional proxy on each server and client host just for sensu.
Another solution not to use SSL

Environment

Sensu version used: Enterprise 2.8.3 (vers. 1.2.1)
Operating System and version (e.g. Ubuntu 16.04):
Transport and runtime versions (e.g. Redis on AWS engine 3.2.6. In Transit Encription enabled ):

Hey @djgrubson, sorry you're having trouble here. The Sensu Core changelog indicates that support for connecting to Redis via TLS/SSL was released in version 1.3.0.
We have not yet released a version of Sensu Enterprise built on Sensu Core 1.3, but work to incorporate these and other changes in a new Enterprise release is ongoing and we are looking forward to releasing it soon.

Sensu Enterprise will include a Sensu Core 1.4 release which will add TLS support for Redis.


[vcpkg-export] correctly handle --7zip option

Currently export as 7z archive always fails:
./vcpkg export rapidxml --7zip
Must provide at least one of the following options: --raw --nuget --zip --7zip

Wow, really on top of things 😉. Thanks for catching this!


Investigate Adding Fallback for Beans with no Matching Generic Parameters

https://github.com/spring-projects-experimental/spring-native/pull/1078#discussion_r716381177
For example, Boot auto configures a KafkaTemplate<Object, Object> without AOT, the framework has several layers fallbacks such that KafkaTemplate<String, String> can be auto wired as a dependency.
Unfortunately, AOT does not support this "feature" so there is no match during wiring since a bean with the expected generic type parameters is required.
While this might be the correct behavior, it feels like missing functionality with AOT.
The work around in the Kafka samples was to use <Object, Object>.
Perhaps a better work around would be to inject the beans with no generics and perform an unchecked cast....
	@Bean
	public ApplicationRunner runner(KafkaTemplate templateArg,
				ConsumerFactory cfArg) {

		@SuppressWarnings("unchecked")
		KafkaTemplate<String, String> template = templateArg;
		@SuppressWarnings("unchecked")
		ConsumerFactory<String, String> cf = cfArg;
		cf.addListener(new ConsumerFactory.Listener() { });
		return args -> {
			template.send("graal", "foo");
			System.out.println("++++++Sent:foo");
			Thread.sleep(5000);
		};
	}

paging @jhoeller

Spring Native is now superseded by Spring Boot 3 official native support, see the related reference documentation for more details.
As a consequence, I am closing this issue, and recommend trying your use case with latest Spring Boot 3 version. If you still experience the issue reported here, please open an issue directly on the related Spring project (Spring Framework, Data, Security, Boot, Cloud, etc.) with a reproducer.
Thanks for your contribution on the experimental Spring Native project, we hope you will enjoy the official native support introduced by Spring Boot 3.


[autoparallel] add numerical test for handlers

What does this PR do
This PR mainly add numerical test for handlers.
Note: The assert function used in numerical test will generate a warning message instead of stopping the program execution. Therefore, test passing do NOT mean getting numerically close results.

This PR has a conflict and a CI error.


Failed to build the site, error parsing templates from themes

This change seems to break for me with zola v0.16.1, both on my own site and doing zola build after cloning this repo. I saw #19 which looks like it might be the cause of this.
Building site...
Error: Failed to build the site
Error: Error parsing templates from themes
Error: Reason:
* Failed to parse "/home/akiekintveld/src/akiekintveld/themes/Hermit_Zola/templates/section.html"
  --> 54:7
   |
54 |   <h1>{% section.title %}</h1>
   |       ^---
   |
   = unexpected tag; expected an endblock tag (`{% endblock block_name %}` or some content

I just pushed a fix. Can you please test?

Yes, it seems to work now. Thanks!


add customizable delay between running fuzz instances

for some weirdo scenarios where multiple instances of tested app can't start at the same time.
those will still have poor stability, but at least fuzzing could be started.

resolved


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_845b9e86-0712-41c3-a1f9-4a3fd9cc6fda/pull/1 is merged into live branch.
Auto archive content to https://github.com/VSC-Service-Account/docs-archive-test-target_845b9e86-0712-41c3-a1f9-4a3fd9cc6fda.git

Docs Build status updates of commit 13df2cb:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-GitBranchDeletedOrForcePushed]

Cannot sync git repo to specified commit because branch Release_Archive_master_2020-12-15-03-17-37 has been deleted or has been force pushed: fatal: couldn't find remote ref refs/heads/Release_Archive_master_2020-12-15-03-17-37

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


update: use prop-types instead of React.PropTypes

I totally missed this 💩 thank you for submitting! Sorry I didn't get to it 😞


Can the weight file be used directly

@OeslleLucena
Hi, will the REPLAY-ftweights18.h5 and 3DMAD-ftweights18.h5 these two weights is already trained weight file? Can be used directly, or need to combine with VGG-16 weights and then training?
There are two documents, is tf, or th training out?

@okmmsky888 Yep, they are already trained and they can be used directly. No need to combine with VGG-16 weights. The two documents is because they were fine-tuned for both datasets REPLAY-ATTACK and 3DMAD, separately. It was all done in theano.

@OeslleLucena hi,I loaded the REPLAY-ftweights18.h5 model directly by keras.models.load_model. The result is incorrect: ValueError: No model found in config file. Is the model body that lacks the Json structure?

@OeslleLucena hi ，I loaded REPLAY-ftweights18.h5, reported the following error, do you know where is the problem?The following is the error message reported
ValueError: ('shapes (1,25088) and (4608,256) not aligned: 25088 (dim 1) != 4608 (dim 0)', (1, 25088), (4608, 256))
Apply node that caused the error: Dot22(Reshape{2}.0, dense_1/kernel)
Toposort index: 109
Inputs types: [TensorType(float32, matrix), TensorType(float32, matrix)]
Inputs shapes: [(1, 25088), (4608, 256)]
Inputs strides: [(100352, 4), (1024, 4)]
Inputs values: ['not shown', 'not shown']
Outputs clients: [[Elemwise{Composite{((i0 + i1) + Abs((i0 + i1)))}}[(0, 0)](Dot22.0, InplaceDimShuffle{x,0}.0)]]
HINT: Re-running with most Theano optimization disabled could give you a back-trace of when this node was created. This can be done with by setting the Theano flag 'optimizer=fast_compile'. If that does not work, Theano optimizations can be disabled with 'optimizer=None'.
HINT: Use the Theano flag 'exception_verbosity=high' for a debugprint and storage map footprint of this apply node.

@okmmsky888 It's a mismatch of shapes in the network.
ValueError: ('shapes (1,25088) and (4608,256) not aligned: 25088 (dim 1) != 4608 (dim 0)', (1, 25088), (4608, 256))
Are you loading and using the predict or that error appears if you just load the weights? What commands are you exactly using? Could you, please, post it here?

@OeslleLucena Yes, I was making a prediction when the program was throwing an exception. When loading the weight, there is no exception. I did not use the command to start running, I was running directly in the eclipse, the following is the program:
#######################  Where the program starts #####################
img_width,img_height = (224,224)
def load_model(weightsPath,img_width,img_height):
#VGG-16 model
model = Sequential()
model.add(ZeroPadding2D((1, 1), input_shape=(3, img_width, img_height)))
model.add(Convolution2D(64, 3, 3, activation='relu', name='conv1_1'))
model.add(ZeroPadding2D((1, 1)))
model.add(Convolution2D(64, 3, 3, activation='relu', name='conv1_2'))
model.add(MaxPooling2D((2, 2), strides=(2, 2)))

model.add(ZeroPadding2D((1, 1)))
model.add(Convolution2D(128, 3, 3, activation='relu', name='conv2_1'))
model.add(ZeroPadding2D((1, 1)))
model.add(Convolution2D(128, 3, 3, activation='relu', name='conv2_2'))
model.add(MaxPooling2D((2, 2), strides=(2, 2)))

model.add(ZeroPadding2D((1, 1)))
model.add(Convolution2D(256, 3, 3, activation='relu', name='conv3_1'))
model.add(ZeroPadding2D((1, 1)))
model.add(Convolution2D(256, 3, 3, activation='relu', name='conv3_2'))
model.add(ZeroPadding2D((1, 1)))
model.add(Convolution2D(256, 3, 3, activation='relu', name='conv3_3'))
model.add(MaxPooling2D((2, 2), strides=(2, 2)))

model.add(ZeroPadding2D((1, 1)))
model.add(Convolution2D(512, 3, 3, activation='relu', name='conv4_1'))
model.add(ZeroPadding2D((1, 1)))
model.add(Convolution2D(512, 3, 3, activation='relu', name='conv4_2'))
model.add(ZeroPadding2D((1, 1)))
model.add(Convolution2D(512, 3, 3, activation='relu', name='conv4_3'))
model.add(MaxPooling2D((2, 2), strides=(2, 2)))

model.add(ZeroPadding2D((1, 1)))
model.add(Convolution2D(512, 3, 3, activation='relu', name='conv5_1'))
model.add(ZeroPadding2D((1, 1)))
model.add(Convolution2D(512, 3, 3, activation='relu', name='conv5_2'))
model.add(ZeroPadding2D((1, 1)))
model.add(Convolution2D(512, 3, 3, activation='relu', name='conv5_3'))
model.add(MaxPooling2D((2, 2), strides=(2, 2)))

# Top-model for anti-spoofing
top_model = Sequential()
top_model.add(Flatten(input_shape=model.output_shape[1:]))
top_model.add(Dense(256, activation='relu'))
top_model.add(Dropout(0.5))
top_model.add(Dense(1, activation='sigmoid'))

model.add(top_model)

if weightsPath:
    model.load_weights(weightsPath)
else:
    print 'Could not load model!'

return model

def read_preprocess_image(imgPath,img_width,img_height):
img = load_img(imgPath,target_size=(img_width,img_height))
imgArray = img_to_array(img)
imgArray = imgArray.reshape(1,3,img_width, img_height)
imgArray = imgArray/float(255)
return imgArray

if name == 'main':
# load Parameters
imgPath = '0129.png'            #This is an image that contains a face
# read and Pre-processing image
img = read_preprocess_image(imgPath,img_width,img_height)

# load weights
model = load_model('weights/REPLAY-ftweights18.h5',img_width,img_height)

model.summary()
# predict Class
opt = optimizers.Adam(lr=0.0001, beta_1=0.9, beta_2=0.999, epsilon=1e-08, decay=1e-6)
model.compile(loss='binary_crossentropy',
          optimizer=opt,
          metrics=['accuracy'])

outLabel = int(model.predict_classes(img,verbose=0))
print outLabel

#########################   Where the program ends  #######################

@okmmsky888 Now I see the problem. I forgot to mention on github but it is explained on the paper that the trained models are for size 96x96, since I did pre-processing with a face detector. So, when you upload an image with size of 224x224 it won't work due to the fact that weights from dense layers are shaped based on input size of training images. Therefore, what I recommend you is to resize you image to size of 96x96 before test it on the CNN. You could use skimage lib for that task. Here is a useful link http://scikit-image.org/docs/dev/api/skimage.transform.html#skimage.transform.resize

@OeslleLucena I adjusted the image size to (96,96), the program is running normally. Are the corresponding labels for the two categories: 0 and 1 .0 = attack, 1 = real? I got a few photos to test, using the real photo, in the two models on the prediction results for 1. But with the attack photo (I use the phone against another mobile phone screen shot), in the 3DMAD model is predicted to 0, in the REPLAY model is predicted to 1, this result is provided with my photo scene?

@okmmsky888  I set 0 = real, 1= attack in both models, REPLAY and 3DMAD. 3DMAD is for database contained impostors using fake masks and REPLAY-ATTACK has more types of attacks. The models that I provided are for part of the databases, not all, since I needed images to test. I would say you better trust on REPLAY in this case, but remember they make mistakes too. Other thing that need to be mentioned is that you can train your own model too! Hope I answered you properly

@OeslleLucena Yes, I am going to train my own model, based on the CASIA Face Antispoofing Database and the REPLAY-ATTACK database. I am not prepared to just cut the face area, because the casia database contains some of the hands of the attacker's mobile phone, hand-held photos and other features.

@OeslleLucena I used Dlib for face alignment, cropping. Tested on your trained model, the effect does not seem to be ideal. Is it my way to have a problem?

@okmmsky888  what do you mean by "does not seem to be ideal"? is the CNN giving a wrong classification? Also, from which database this image came from? Remember that tests between different databases are a bit harder than what I've done.

@OeslleLucena Yes, CNN classification is wrong. The test image is the face image that my phone normally shoots

@okmmsky888  I mentioned before that test with different databases are not easy and what you're doing is not correct. Therefore, that result is expected .

@OeslleLucena Is it only easy to test the data from the test set of REPLAY and 3DMAD? Other data to be tested, the way is not the same? What should I do to properly test other data?

You have to do a training step using different databases to properly classify images from a different dataset and validate your system. I would recommend you to search about inter and intra databases test.

@okmmsky888 take a look at this paper  http://www.aimiconf.org/iciar17/programdetails.php

@OeslleLucena Okay thank you

@okmmsky888  you're welcome!

I want to train my own model. I put REPLAY-ftweights18.h5 path into weights_path argument. But I get this error: KeyError: "Can't open attribute (can't locate attribute: 'nb_layers')". I read it might be because of different versions of Keras. Do somebody know the solution for the problem? Or which version of Keras was used to train REPLAY-ftweights18.h5 model? Any help, please.

@AblAzhidin  Same problem....
meanwhile, the following piece of code is incompatible with current version of keras(2.1.5) and tensorflow(1.6.0)
'''python
for k in range(f.attrs['nb_layers']):
if k >= len(model.layers):
# we don't look at the last (fully-connected) layers in the savefile
break
g = f['layer_{}'.format(k)]
weights = [g['param_{}'.format(p)] for p in range(g.attrs['nb_params'])]
model.layers[k].set_weights(weights)
'''

@ @myselfsuperhero Sorry, I haven't touched this project for a long time. It's too difficult for me to remember now.

@AblAzhidin Sorry, I haven't touched this project for a long time. It's too difficult for me to remember now.

@yyyreal Sorry, I haven't touched this project for a long time. It's too difficult for me to remember now.

@okmmsky888 Thanks for your reply.

@yyyreal Did u get it to work?

@AblAzhidin  @taewookim
I just replace the following piece of code
for k in range(f.attrs['nb_layers']):
    if k >= len(model.layers):
    # we don't look at the last (fully-connected) layers in the savefile
    break
    g = f['layer_{}'.format(k)]
    weights = [g['param_{}'.format(p)] for p in range(g.attrs['nb_params'])]
    model.layers[k].set_weights(weights)

into model.load_weights(filepath=weights_path, by_name=True)
I am not sure whether I am right, but I've following the documentation of Keras

@CacheTechLtd 你要怎么用？？？我试了试，这个基于CNN的算法对摄像头要求比较高。训练准确率很高，但是实际使用的时候，因为摄像头跟记录REPLAY-ATTACK的摄像头不一致导致数据特征分布不一样，所以效果很差么，除非自己采集数据并在相同的摄像头下面测试和运行才有比较好的准确率。

@CacheTechLtd 我简单看了看  跟我的代码没什么区别（我也不知道我改了什么）主要就是把keras的相关API从1升级到了2。 但是我必须得说，这个算法没什么泛化能力。

@yyyreal 我有一个别的公司的试用产品，双目摄像头的，能实现活体检测。但是到目前都没有发SDK过来，所以想在网上找个项目看看。我在youtube上，看到好像有用什么色彩算法的。效果也不错。

@CacheTechLtd 传统方法收到光照，摄像头，动作的影响较大，CNN的框架在arm上面跑不动。我试过很很多活体检测的考勤仪，单目双目都有，都破解了。

@yyyreal 刚刚我又通了一通电话催他们要SDK，然后对接人提到说他们这个已经能防面具的攻击了。。但是我这现在没面具来测试，就测了照片和视频，效果还蛮好的。。这个收费比较贵，有没有免费的分享一下啊。能防简单的照片和视频就行了。

@CacheTechLtd 抱歉 我现在没有这样的资源  随便搜一搜论文复现一把 都是免费的

@OeslleLucena I adjusted the image size to (96,96), the program is running normally. Are the corresponding labels for the two categories: 0 and 1 .0 = attack, 1 = real? I got a few photos to test, using the real photo, in the two models on the prediction results for 1. But with the attack photo (I use the phone against another mobile phone screen shot), in the 3DMAD model is predicted to 0, in the REPLAY model is predicted to 1, this result is provided with my photo scene?

Hey gud work! Can u please send me the prediction code and also the trained model if you have trained your own model based on the CASIA Face Antispoofing Database and the REPLAY-ATTACK database?


System.ArgumentNullException when sending a WebHook without "Secret"

protected virtual void SignWebHookRequest(WebHookWorkItem workItem, HttpRequestMessage request, JObject body)
        {
            if (workItem == null)
            {
                throw new ArgumentNullException("workItem");
            }
            if (request == null)
            {
                throw new ArgumentNullException("request");
            }
            if (body == null)
            {
                throw new ArgumentNullException("body");
            }

ArgumentNullException ->>> byte[] secret = Encoding.UTF8.GetBytes(workItem.WebHook.Secret);
            using (var hasher = new HMACSHA256(secret))
            {
                string serializedBody = body.ToString();
                request.Content = new StringContent(serializedBody, Encoding.UTF8, "application/json");

                byte[] data = Encoding.UTF8.GetBytes(serializedBody);
                byte[] sha256 = hasher.ComputeHash(data);
                string headerValue = string.Format(CultureInfo.InvariantCulture, SignatureHeaderValueTemplate, EncodingUtilities.ToHex(sha256));
                request.Headers.Add(SignatureHeaderName, headerValue);
            }
        }

Commit 690b54e93bccb6a4941359e43eacdc1dc4f4739c has added a check but more important also improves the check that a WebHook has a valid secret.
Until this change the validation happened due to DataAnnotation attributes being evaluated during de-serialization but as WebHook registrations don't have to come in through a Web API controller, we have to validate them explicitly.
We now do this in IWebHookManager.VerifyWebHookAsync which also verifies that the registered WebHook URI is valid. As a result, this is the method to call to validate a WebHook registration.


Unable to change volume

G'day again.
Whenever I reference setVolume a "Volume object creation failed" COMException is thrown. Music is playing, and other controls are fine. No stacktrace available appoligies.
Any ideas?

Yup that is due to a fact that its hooking to the wrong process. >there are more then one processes of spotify running at the same time. And the Correct one to couple is not always at the same place in the array of coarse.
Like in #50 i commented about this issue

Going to need something like int pid = p.Where(o => o.MainWindowHandle != IntPtr.Zero).Select(o => o.Id).First(); because i get more processes back from the Process.GetProcessesByName method.
The correct Id to create the GetVolumeObject(pid) object is not always first in the array.

Ah right, damn. No worries :)

Don't close it :smile: it has the need to be fixed :+1:

True :P

I can not reproduce the issue with multiple processes on my Windows 10 Pro x64 system. Could you give me additional information such as os, architecture? And are multiple spotify windows open or why do you have multiple processes

Windows 10 Home premium x64 system, and only a single Spotify instance/process running.

Wondows 10 Pro x64

1 x process from Apps and
2 x process in background

(so at least 3 processes called spotify.exe are running)
int pid = p.Where(o => o.MainWindowHandle != IntPtr.Zero).Select(o => o.Id).First();
Should get you the process that has a windowhandle (where the other once have not)

This seems like a windows 10 problem, not ran into this with windows 7.
Could you add your OS @stuntguy3000 ? Maybe this will give us some insights.
I will deploy a fix shortly/tomorrow

I did not know that spotify can have background processes. Are they they when you start spotify or when are they started?

@Mrnikbobjeff they are started together when starting spotify itself (and run in the background)

@JohnnyCrazy Windows 10, 64Bit, Home Premium.

Resolved ^

This bug seems to be back. Unable to control volume using latest binary on Windows 10 with up-to-date spotify client.

@racquemis did it work before ?

I couldn't tell. I've started using the Api yesterday.
Everything works great except changing volume, muting and unmuting.
Also doesn't work on the older Windows Server 2012 R2 OS.

@racquemis Volume-Control is only possible on >Windows 7 (code)
I can't reproduce it, Volume-Control is still working.

Hmm strange, can't get it to work. Throws the CO
Mexception on all my win7 win10, server 2012 systems. It's not like the mute command is difficult to use, so I don't know what I'm doing wrong.

Does the full exception say anything in particular?

Typical, now it suddenly works first try. Just did a recompile. Sorry for wasting your time. I have no idea why it suddenly starting working, but i won't complain ;)

Haha, no problem, I know this feeling. :sweat_smile:
If you run into any other issues, feel free to open an issue


Fix #5181 (fluid left/right labeled icon buttons text position)

sorry, I don't know why this pull request is still not merged...

While testing your fix (and it became part of my testing fiddle) i came across the fact, it's not even neccessary to override the padding, but it's enough to remove the existing padding for the fluid variant, because the padding behavior is the same for the non-fluid variant then mathcin your proposed fix,
I did this for Fomantic-UI by https://github.com/fomantic/Fomantic-UI/pull/584
Thanks for pointing me into the right direction 😄


Feature: Virtual Output

Disclaimer:
Please go through existing issues to avoid creating duplicates. If you found a similar issue please post a comment there. If you are uncertain your issue is related to others then create the issue. Obvious ignorance of this rule might get you blocked from posting new issues. Please tick the box below to show that you have followed the guideline.

[x] I have checked for a similar issue and sure it hasn't been reported before.

Describe the bug
I cant for the life of me get it to work. I have installed it (followed the steps on your website to reset it), however no matter what I seem to do, I cannot get the audio to be adjusted inline with the changes I make to the EQ. The audio stays the same.
This is precisely the app I am looking for - so if we can get it working, ill be parting with my cash!s.
Steps to Reproduce
Steps to reproduce the behaviour (feel free to change the placeholder as you need):

Launch eqMac
Record audio in Audacity using microphone
Make changes to the EQ whilst recording in progress.
Play back audio - audio sounds consistent - no changes have been made despite changing the EQ.

Expected behaviour
The audio is expected to change.
Setup information:

Audio device used for playback: [headphones connected to my fifine microphone)
Audio transmission interface: [eg USB fifine microphone, connected to MacBook Pro]
macOS Version: [e.g. 13.2.1 ]
eqMac Version [e.g. 0.0.1] 1.7.7)
eqMac UI Version [e.g. 0.0.4] (4.6.1)
eqMac Driver Version [e.g. 0.0.4] (2.4.2

Screenshots or Console.app logs
I get an error in console: could not enable Mach bootstrap, errno = 1.
Additional information

Console Logs.xlsx

What you're trying to do is record the audio after it's been processed, but it's an upcoming feature that will be shipped soon:

Currently the eqMac device only send unmodified audio to the Input Channels of the driver device.
Also you've send a screenshot of SoundSource which might interfere with eqMac, but realistically shouldn't.
Please stay tuned for v1.8

Hey there,
Thankyou so much for the prompt response - this is exactly what I was
looking for.
I’ve purchased a lifetime licence as I want to support your efforts.
Looking forward to 1.8 👌
On Sun, 26 Feb 2023 at 19:03, Roman Kisil @.***> wrote:

What you're trying to do is record the audio after it's been processed,
but it's an upcoming feature that will be shipped soon:
[image: image]
https://user-images.githubusercontent.com/8472525/221431064-e49e021a-58ec-41e3-8cc5-7c2dc2218cbb.png
Currently the eqMac device only send unmodified audio to the Input
Channels of the driver device.
Also you've send a screenshot of SoundSource which might interfere with
eqMac, but realistically shouldn't.
Please stay tuned for v1.8
—
Reply to this email directly, view it on GitHub
https://github.com/bitgapp/eqMac/issues/819#issuecomment-1445437908, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AF5NT2DTRJSDKIEWX6O5F4LWZOSHFANCNFSM6AAAAAAVH6CCEI
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Best wishes,
Jonathan Isaacs
(m) 07762 929864
(li) linkedin.com/in/jeisaacs
(tw) jonathaneisaacs

Just purchased as well! Is there a way to record system audio as output? As an example play Spotify or YT video and record with Quicktime with all system audio in the final video.


Locate RefSeq GTF file

What is the RefSeq equivalent of the GENCODE GTF files? This needs to match the version used by VEP 101 to annotate gnomAD v3.1.

Use https://uswest.ensembl.org/Help/ArchiveRedirect?src=http%3A%2F%2Fnov2018.archive.ensembl.org%2Finfo%2Fdocs%2Ftools%2Fvep%2Fscript%2Fvep_cache.html to find annotation sources for old versions of VEP.

http://aug2020.archive.ensembl.org/info/docs/tools/vep/script/vep_cache.html says the version of RefSeq used for VEP 101 was "2020-03-24 (GCF_000001405.39_GRCh38.p13_genomic.gff)".

https://www.ncbi.nlm.nih.gov/projects/genome/guide/human/index.shtml looks promising for the latest version.

There are files named GCF_000001405.39_GRCh38.p13_genomic.gff in the versions listed on https://ftp.ncbi.nlm.nih.gov/refseq/H_sapiens/annotation/annotation_releases/.
However, there is no "2020-03-24" version there. There's a "109.20200228" and "109.20200522".

It turns out that the date shown in the cache information on the VEP webpage was due to a bug in an import script. https://ftp.ncbi.nlm.nih.gov/refseq/H_sapiens/annotation/annotation_releases/109.20200228/ contains the data used by VEP 101.


Error installing gauntlt:ailed to build gem native extension

root@xxxx:/home/xxxxx# apt install ruby
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
fonts-lato javascript-common libjs-jquery libruby2.7 rake ruby-minitest
ruby-net-telnet ruby-power-assert ruby-test-unit ruby-xmlrpc ruby2.7
rubygems-integration unzip zip
Suggested packages:
apache2 | lighttpd | httpd ri ruby-dev bundler
The following NEW packages will be installed:
fonts-lato javascript-common libjs-jquery libruby2.7 rake ruby ruby-minitest
ruby-net-telnet ruby-power-assert ruby-test-unit ruby-xmlrpc ruby2.7
rubygems-integration unzip zip
0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
Need to get 7230 kB of archives.
After this operation, 32.7 MB of additional disk space will be used.
Do you want to continue?
(Reading database ... 58689 files and directories currently installed.)
Preparing to unpack .../00-fonts-lato_2.0-2_all.deb ...
Unpacking fonts-lato (2.0-2) ...
Selecting previously unselected package javascript-common.
Preparing to unpack .../01-javascript-common_11_all.deb ...
Unpacking javascript-common (11) ...
Selecting previously unselected package libjs-jquery.
Preparing to unpack .../02-libjs-jquery_3.3.1~dfsg-3_all.deb ...
Unpacking libjs-jquery (3.3.1~dfsg-3) ...
Selecting previously unselected package rubygems-integration.
Preparing to unpack .../03-rubygems-integration_1.16_all.deb ...
Unpacking rubygems-integration (1.16) ...
Selecting previously unselected package ruby2.7.
Preparing to unpack .../04-ruby2.7_2.7.0-5ubuntu1.8_amd64.deb ...
Unpacking ruby2.7 (2.7.0-5ubuntu1.8) ...
Selecting previously unselected package ruby.
Preparing to unpack .../05-ruby_1%3a2.7+1_amd64.deb ...
Unpacking ruby (1:2.7+1) ...
Selecting previously unselected package rake.
Preparing to unpack .../06-rake_13.0.1-4_all.deb ...
Unpacking rake (13.0.1-4) ...
Selecting previously unselected package ruby-minitest.
Preparing to unpack .../07-ruby-minitest_5.13.0-1_all.deb ...
Unpacking ruby-minitest (5.13.0-1) ...
Selecting previously unselected package ruby-net-telnet.
Preparing to unpack .../08-ruby-net-telnet_0.1.1-2_all.deb ...
Unpacking ruby-net-telnet (0.1.1-2) ...
Selecting previously unselected package ruby-power-assert.
Preparing to unpack .../09-ruby-power-assert_1.1.7-1_all.deb ...
Unpacking ruby-power-assert (1.1.7-1) ...
Selecting previously unselected package ruby-test-unit.
Preparing to unpack .../10-ruby-test-unit_3.3.5-1_all.deb ...
Unpacking ruby-test-unit (3.3.5-1) ...
Selecting previously unselected package ruby-xmlrpc.
Preparing to unpack .../11-ruby-xmlrpc_0.3.0-2_all.deb ...
Unpacking ruby-xmlrpc (0.3.0-2) ...
Selecting previously unselected package libruby2.7:amd64.
Preparing to unpack .../12-libruby2.7_2.7.0-5ubuntu1.8_amd64.deb ...
Unpacking libruby2.7:amd64 (2.7.0-5ubuntu1.8) ...
Selecting previously unselected package unzip.
Preparing to unpack .../13-unzip_6.0-25ubuntu1.1_amd64.deb ...
Unpacking unzip (6.0-25ubuntu1.1) ...
Selecting previously unselected package zip.
Preparing to unpack .../14-zip_3.0-11build1_amd64.deb ...
Unpacking zip (3.0-11build1) ...
Setting up javascript-common (11) ...
Setting up fonts-lato (2.0-2) ...
Setting up ruby-power-assert (1.1.7-1) ...
Setting up unzip (6.0-25ubuntu1.1) ...
Setting up rubygems-integration (1.16) ...
Setting up ruby-minitest (5.13.0-1) ...
Setting up zip (3.0-11build1) ...
Setting up ruby-test-unit (3.3.5-1) ...
Setting up ruby-net-telnet (0.1.1-2) ...
Setting up libjs-jquery (3.3.1~dfsg-3) ...
Setting up ruby-xmlrpc (0.3.0-2) ...
Setting up rake (13.0.1-4) ...
Setting up libruby2.7:amd64 (2.7.0-5ubuntu1.8) ...
Setting up ruby2.7 (2.7.0-5ubuntu1.8) ...
Setting up ruby (1:2.7+1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Processing triggers for man-db (2.9.1-1) ...
root@azw-devoppoc-s3:/home/SA-AAC2666# gem install gauntlt
Fetching trollop-2.9.10.gem
Fetching nokogiri-1.14.2-x86_64-linux.gem
Fetching rspec-support-3.12.0.gem
Fetching rspec-expectations-3.12.2.gem
Fetching childprocess-4.1.0.gem
Fetching gherkin-2.12.2.gem
Fetching diff-lcs-1.5.0.gem
Fetching cucumber-1.3.20.gem
Fetching multi_test-1.1.0.gem
Fetching ffi-1.9.18.gem
Fetching multi_json-1.15.0.gem
Fetching gauntlt-1.0.13.gem
Fetching builder-3.2.4.gem
Fetching aruba-0.7.4.gem
!    The 'trollop' gem has been deprecated and has been replaced by 'optimist'.
!    See: https://rubygems.org/gems/optimist
!    And: https://github.com/ManageIQ/optimist
Successfully installed trollop-2.9.10
Successfully installed nokogiri-1.14.2-x86_64-linux
Successfully installed rspec-support-3.12.0
Successfully installed diff-lcs-1.5.0
Successfully installed rspec-expectations-3.12.2
Successfully installed childprocess-4.1.0
Successfully installed multi_test-1.1.0
Successfully installed multi_json-1.15.0
Building native extensions. This could take a while...
ERROR:  Error installing gauntlt:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.7.0/gems/gherkin-2.12.2/ext/gherkin_lexer_ar

/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20230330-2387-1g5exw4.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
You might have to install separate package for the ruby development
environment, ruby-dev or ruby-devel for example.
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.7.0/gems/gherkin-2.12.2 for inspection.
Results logged to /var/lib/gems/2.7.0/extensions/x86_64-linux/2.7.0/gherkin-2.12.2/gem_make.out

can any one of you please guide


godot won't load image textures (Compressed texture file is corrupt (Bad header).)

Tested versions
4.22, Godot v4.3.rc2
System information
Godot v4.2.2.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 (NVIDIA; <IP_ADDRESS>70) - AMD Ryzen 5 3600 6-Core Processor (12 Threads)
Issue description
Godot refuses to load any image files at all, with the error Compressed texture file is corrupt (Bad header). Attempted with multiple different versions of godot.
Steps to reproduce

Create a node that uses an image file (sprite3d)
Attempt to add a compressed texture 2d file
Get error message and no image (sad)
This worked fine just some time ago, now it seems to fail even on an empty project. No idea what the issue could be (I am on windows 11)

Minimal reproduction project (MRP)
import texture.zip

What 4.3 pre-release version specifically did you test on?

(i was doing it wrong, tried using a compressedtexture instead of directly loading the image?)


Add MemRef container to buddy-mlir

The initial MemRef container and the test is here.
The next step will add more tests and the derived class (image container).

@zhanghb97 , do you think this issue can be closed?

@meshtag Thanks!


/posts, /pages, /options coming up 500

/wp-json pulls up all of the routes, but /posts, /pages, /options are coming up 500 when I have this plugin installed.
Some discussion over here, might pertain: https://github.com/WP-API/WP-API/issues/475
Seems like a few days ago this started happening.
Any ideas?

Will take a look, are there any error messages reported in your server logs?

I've not been able to reproduce the issue on an entirely clean version of:

WordPress v4.1.1
ACF v4.4.0
WP-API v1.1.1
ACF to WP-API v1.1.0

I'm not ruling out this plugin though, it's very possible it's still causing the issue! Getting both some server error logs and version numbers of all the plugins you're running should help us get to the bottom of this.

Thanks for making me retrace my steps again. Turned out that the ACF was deactivating itself for some reason. Reinstallation of 5.2 got everything back to normal. Thank you for your time.
The issue was not caused by this plugin, just some whacky mystery.

Excellent, glad the problem is solved, and that you're finding the plugin useful!


Module says I am 0 years old today?

My birthday is on 11/16/1984. I have this module installed with the below configuration:

My MM is displaying the following:

Any thoughts?

Hey, cheers for getting in touch.
Looks like you've got a typo - it says dbo rather than dob for the problematic entry! Fingers crossed that does the trick and it's not something else underlying. It's an interesting test case though, so when I get a chance I will double-check the behaviour when a date of birth isn't supplied.
Hope this helps,
Adam

Well shoot, that was it! Sorry for the oversight and thanks for the help!

Had typo in my config :)


Web - Hebrew text is shown as rectangles for about a second when page loads.

I use --web-renderer canvaskit
When the page loads, the Hebrew text looks like this:

I reproduced it with the following code. It's a small project so it happens faster so recorded my screen using this tool make sure it happens.
On a larger project it shows the rectangles for about a second.
  import 'package:flutter/material.dart';
  import 'package:flutter_localizations/flutter_localizations.dart';

  void main() {
    runApp(MyApp());
  }

  class MyApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        title: 'Flutter Demo',
          localizationsDelegates: [
            GlobalCupertinoLocalizations.delegate,
            GlobalMaterialLocalizations.delegate,
            GlobalWidgetsLocalizations.delegate,
          ],
        supportedLocales: [
          Locale('en', ''),
          Locale('he', 'IL'),
        ],
        locale: Locale('he', 'IL'),
        home: MyHomePage(),
      );
    }
  }

  class MyHomePage extends StatefulWidget {
    MyHomePage({Key key}) : super(key: key);

    @override
    _MyHomePageState createState() => _MyHomePageState();
  }

  class _MyHomePageState extends State<MyHomePage> {

    @override
    Widget build(BuildContext context) {
      return Scaffold(
        body: Center(
          child: SelectableText("בדיקה"),
        ),
      );
    }
  }

flutter doctor -v:
[√] Flutter (Channel stable, 2.0.5, on Microsoft Windows [Version 10.0.19041.928], locale en-US)
    • Flutter version 2.0.5 at c:\flutter\flutter
    • Framework revision adc687823a (8 days ago), 2021-04-16 09:40:20 -0700
    • Engine revision b09f014e96
    • Dart version 2.12.3

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Rony\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = C:\Users\Rony\AppData\Local\Android\sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] Connected device (2 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.85
    • Edge (web)   • edge   • web-javascript • Microsoft Edge 90.0.818.42

• No issues found!

@ronytesler
There's similar open issue describing your case, https://github.com/flutter/flutter/issues/77023
Please follow-up there for updates.
Closing this as duplicate.


Support TakeOrderedAndProject

This fixes #1575 and fixes #103
I did not test topN with nested types going along for the ride (not being sorted on, but in the table that is being sorted), so I didn't turn them on.  They should work, but it was not a requirement.
My initial performance tests showed a little bit of a performance gain over not supporting take ordered and project, but it was not a huge amount of data so it is hard to tell.

build

build

I addressed the review comments and updated the metrics a bit. I was seeing much linger times than I expected for GpuTopN total time and I found that I had iter.next() included in the total time, which resulted in also including the time it took for the upstream batch in some cases to be built.

I addressed the review comments and updated the metrics a bit. I was seeing much linger times than I expected for GpuTopN total time and I found that I had iter.next() included in the total time, which resulted in also including the time it took for the upstream batch in some cases to be built.

build

build

build

build

@sameerz please take another look

@sameerz please take another look


self contact

Dear all,
I'm currently working on a self-contact problem (see figure). To do this, I've constructed this problem where C1 and C2 are the surfaces that come into contact and u=a, u=0 are the Dirichlet conditions applied to the surfaces opposite the contact surface.
The code runs, but does not converge. I'm confused because I'm not sure I fully understood the concept of self-contact in this article (http://dx.doi.org/10.1016/j.cma.2017.07.015). In fact, self-contact is dealt with implicitly.
Looking at the code in the demos, I noticed that there are always two distinct geometries, but I'm wondering how to exploit this for a self-contact test.
Your help in understanding how to implement this problem would be a real stepping stone for me.
Thanks in advance.

Hi everyone
I've reduced de complexity of the geometry and it work for the self contact.
Thanks

Hi everyone
I've reduced de complexity of the geometry and it work for the self contact.
Thanks


Build project without Android SDK and AGP?

Could you just use raw javac, d8 and aapt2 with some open-source Android SDK alternative like the Debian Android SDK:
https://tracker.debian.org/pkg/android-sdk-meta

I'm not too sure I follow, Are you referring to the idea of removing the need of a build system (gradle here) for building apps from android-cli?
I'm open to this idea however for an experimental version of android-cli first. Although my expertise with java build systems is limited so I'd appreciate if you could lend me a helping hand?

Are you referring to the idea of removing the need of a build system (gradle here) for building apps from android-cli?
Yes. I'm have two closely related ideas

moving the build system to android-cli
using an open-source Android SDK alternative as the .jar file for development
I'm not sure if the Android SDK is included the SDK


Integrate existing Pixie cell clustering process with generic cell clustering process

What is the purpose of this PR?
Closes #850. Closes #881. The existing Pixie pipeline will need some modifications to support generic cell clustering.
How did you implement your changes
Main change is the addition of a preprocessing step outside of train_cell_som. This will help generate the cell clustering specific files (SOM input data based on pixel clusters and weighted cell channel expression) independent of the eventual notebook for generic cell clustering.
Additionally, it's better to pass the full list of expression columns to use for cell clustering as opposed to inferring them from a pixel cluster prefix. This will also make integration with generic cell clustering easier.

Tested that the updated pipeline works. The following changes have been made:

Preprocess cluster_counts_size_norm and weighted_cell_channel prior to train_cell_som
Update the parameters accordingly
Pass the full list of expression columns to use for SOM training (as opposed to inferring from pixel_cluster_col_prefix)

We will definitely need to open a separate branch off of this to address the case where the user wants to re-run generic cell clustering with new columns specified. This is a similar issue that #903 addressed

Per @cliu72 and @ngreenwald I've renamed the notebook so it doesn't interfere with any reviewers. We'll merge this in and open a PR for any issues that do pop up in the future.

@ngreenwald per our meeting today, we'll get this merged in for the time being, then have @JLrumberger open up any subsequent issues that come up with his runs.


Status Community Widget/Trollbox

Problem
Several users have asked for a chat widget that can be used as a trollbox.
Also, no example dApp demonstrate symmetric encryption protocol.
Proposed solution
Build a chat app that can be used as a widget.
Use the Status Community protocol so that a public Status room can be used.
Features should be extremely basics:

Read messages
Send messages
Change nick?
The public room is chosen by the website admin, no feature to change room is needed for the end user.

Note
Status trollbox to display messages from a public channel, that part of the Status protocol is quite easy to port, Jacek did it in 1/3 of a day with Stratus https://discuss.status.im/t/hello-stratus-toying-around-with-nimbus-and-qml/905 and that was with old transit protocol (not protobuf)
It'd also test that the wakuv1<>v2 bridge works and would allow us to talk to people in #waku in Status
Check with Andrea Franz
Good first issue for new hire.

Tracked with https://github.com/status-im/dappconnect-sdks/issues/1


Fixes  #1545 Top crashes on Play Store for v2.7.1 [A and E]

Description
Fixes A and E from #1545 (I hope). It saves file which is being uploaded to a temp location, and uses Uri of that file as reference during upload process, instead of using Uri that content provider supported.
Tests performed (required)
Tested on API 23, beta debug. Tested actions: share photo from another application, share multiple photos from another application and contributing via contributions list.

Tested this on real device running Android 8.0, on prodDebug. The basic upload works! Well done! :)
My successful tests:

Uploading via "Gallery" in the app
Uploading via Nearby in the app

My not-so-successful tests:

Uploading via "Share > Commons". If you do this, it seems to take the previously uploaded image instead. For instance, upload a picture of a cat. Then go to Share and share a picture of a dog to Commons app - your background image has the picture of the cat, not the picture of the dog. I haven't tested to see if the ACTUAL upload is the cat or dog picture (because I was on prodDebug), but even if it is just the background, we should fix this otherwise it will be confusing to users.
This is even more obvious if you select multiple uploads - 1 picture in the multiple upload selection will be your previously-uploaded picture

Haven't tested:

Camera
Google Photos

I propose that going forward, the first thing to do is to rebase on 2.8-release. Then I will do the remaining tests, and you can try to fix the Share issue above.

Also, a test fails on Travis:
fr.free.nrw.commons.upload.FileUtilsTest > isNotSelfOwned[test(AVD) - 5.1.1] FAILED
	java.lang.AssertionError:
	Expected: is <false>
:app:connectedBetaDebugAndroidTest FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:connectedBetaDebugAndroidTest'.
> There were failing tests. See the report at: file:///home/travis/build/commons-app/apps-android-commons/app/build/reports/androidTests/connected/flavors/BETA/index.html

Oh this is very logical, will fix soon. I have several same images for testing, thats why never recognized this bug:D

Tested app's camera upload with emulator running API 24. After you take the picture to upload and tap the tick icon, it crashes:
07-01 02:41:41.624 5225-5225/fr.free.nrw.commons.debug E/ContributionsListFragme: OnActivityResult() parameters: Req code: 2 Result code: 0 Data: null
07-01 02:41:48.822 5225-5225/fr.free.nrw.commons.debug E/AndroidRuntime: FATAL EXCEPTION: main
    Process: fr.free.nrw.commons.debug, PID: 5225
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=196610, result=-1, data=Intent {  }} to activity {fr.free.nrw.commons.debug/fr.free.nrw.commons.contributions.ContributionsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getPath()' on a null object reference
        at android.app.ActivityThread.deliverResults(ActivityThread.java:4053)
        at android.app.ActivityThread.handleSendResult(ActivityThread.java:4096)
        at android.app.ActivityThread.-wrap20(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1516)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:154)
        at android.app.ActivityThread.main(ActivityThread.java:6077)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getPath()' on a null object reference
        at fr.free.nrw.commons.utils.ContributionUtils.saveFileBeingUploadedTemporarily(ContributionUtils.java:34)
        at fr.free.nrw.commons.utils.ContributionUtils.saveFileBeingUploadedTemporarily(ContributionUtils.java:42)
        at fr.free.nrw.commons.contributions.ContributionsListFragment.onActivityResult(ContributionsListFragment.java:123)
        at android.support.v4.app.FragmentActivity.onActivityResult(FragmentActivity.java:156)
        at android.app.Activity.dispatchActivityResult(Activity.java:6915)
        at android.app.ActivityThread.deliverResults(ActivityThread.java:4049)
        at android.app.ActivityThread.handleSendResult(ActivityThread.java:4096)
        at android.app.ActivityThread.-wrap20(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1516)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:154)
        at android.app.ActivityThread.main(ActivityThread.java:6077)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)

Thanks @misaochan for clarifying your bug with API level as

Tested app's camera upload on betaDebug with emulator running API 24.

I am also able to reproduce the issue on API level 24.

Hi all, currently camera bug is solved bud I couldn't find the reason behind undeletable reference to previously uploaded file.
On you first upload everything is fine. Our file will be uploaded gets saved to ExternalStorage/1_tmp . Then we delete that file. File.delete() returns true. File becomes invisible on file system (manually checked). On our second upload, we save our new file to ExternalStorage/1_tmp on Share Activity background and behind progress bar on ContributionsListFragment we somehow see previously uploaded file (that we deleted already).
If we don't delete files and continue as 1_tmp, 2_tmp... right images becomes visible during upload process. So our problem is deleting and overriding to same file name. It somehow preserves a reference to old file.
Did you ever experienced such situation?

Pinging @whym and @psh just in case they know a handy solution to the wrong reference. :)

Here is the demo, I tried to display what is going wrong: https://mega.nz/#!bM4xDJ6K!C2Dd4cfNM5DzJVcnrCT2GspeopqUxLV_z4oBb-5rwbs

Help still wanted. This problem postpones our release. I hope some of you experienced such issue before:(

Codecov Report

Merging #1672 into 2.8-release will decrease coverage by 0.05%.
The diff coverage is 0%.

@@              Coverage Diff               @@
##           2.8-release   #1672      +/-   ##
==============================================
- Coverage         3.89%   3.84%   -0.06%
==============================================
  Files              151     154       +3
  Lines             7521    7628     +107
  Branches           705     721      +16
==============================================
  Hits               293     293
- Misses            7211    7318     +107
  Partials            17      17

Impacted Files
Coverage Δ

...fr/free/nrw/commons/media/MediaDetailFragment.java
0% <ø> (ø)
:arrow_up:

...ee/nrw/commons/media/MediaDetailPagerFragment.java
0% <ø> (ø)
:arrow_up:

...n/java/fr/free/nrw/commons/CommonsApplication.java
30.61% <ø> (ø)
:arrow_up:

...n/java/fr/free/nrw/commons/auth/LoginActivity.java
0% <ø> (ø)
:arrow_up:

...c/main/java/fr/free/nrw/commons/AboutActivity.java
0% <ø> (ø)
:arrow_up:

...nrw/commons/upload/MultipleUploadListFragment.java
0% <ø> (ø)
:arrow_up:

.../java/fr/free/nrw/commons/nearby/DirectUpload.java
0% <ø> (ø)
:arrow_up:

...e/nrw/commons/category/CategoryImagesActivity.java
0% <ø> (ø)
:arrow_up:

...rw/commons/upload/DetectUnwantedPicturesAsync.java
0% <ø> (ø)
:arrow_up:

...ree/nrw/commons/contributions/ContributionDao.java
0% <ø> (ø)
:arrow_up:

... and 22 more

Continue to review full report at Codecov.

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

@neslihanturan Is help still wanted or were you able to figure it out with the random file name approach?

@maskaravivek , no everything should be fine now. Solved :fireworks: :dancer: . But Let me test all upload scenarios in 3 hours, than it will be ready for your tests.

Ready for test! @maskaravivek

Hi @neslihanturan , I tried testing this but unfortunately I didn't get very far! :(

Could you rebase onto 2.8-release branch, please? It seems to have many unrelated file changes, perhaps from master?

Tested on API 24 emulator. Immediately upon loading, the app crashes with the logs below. This happens for both betaDebug and prodDebug, even after uninstalling and doing a fresh install.

07-16 17:46:07.425 29450-29450/fr.free.nrw.commons.debug E/AndroidRuntime: FATAL EXCEPTION: main
    Process: fr.free.nrw.commons.debug, PID: 29450
    java.lang.RuntimeException: Unable to create application fr.free.nrw.commons.CommonsApplication: java.lang.NullPointerException: Attempt to get length of null array
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5364)
        at android.app.ActivityThread.-wrap2(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1528)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:154)
        at android.app.ActivityThread.main(ActivityThread.java:6077)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
     Caused by: java.lang.NullPointerException: Attempt to get length of null array
        at fr.free.nrw.commons.utils.ContributionUtils.emptyTemporaryDirectory(ContributionUtils.java:83)
        at fr.free.nrw.commons.CommonsApplication.onCreate(CommonsApplication.java:85)
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1024)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5361)
        at android.app.ActivityThread.-wrap2(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1528)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:154)
        at android.app.ActivityThread.main(ActivityThread.java:6077)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)


refactor: use merk as root tree

Changes the root tree type from a dense Merkle tree, to the same Merklized AVL tree currently used for the subtree.
It also improves proof of absent path, to handle absent root key.