[DT-1022] Add CSP to the Swagger UI using meta tag

Addresses
https://broadworkbench.atlassian.net/browse/DT-1022
Summary
Similar to https://github.com/DataBiosphere/terra-landing-zone-service/pull/502 and https://github.com/DataBiosphere/terra-workspace-data-service/pull/941 , adds a Content Security Policy to the Swagger UI using a meta tag.
The team decided to use this approach instead of the proxy approach since catalog currently has no proxy templating which means that we would either need to modify it for all services or add our own template for catalog, both of which were deemed high risk and low value, especially since catalog is likely to be retired in the near future. Additionally, proxy changes are hard to test, whereas this change was straightforward to test.
Testing
Tested with a catalog instance locally, tried endpoints and the login, no errors were observed in the console.

looks good. I see you tested locally to ensure it still works, but I'm curious is there a way to test specifically that the new security policy header does what it is supposed to do?

If you tried to include a non-self origin resource on the page, the resource would fail to load.

Are you able to see the CSP in the network tab for the local run of the catalog's swagger page?
Example from TDR:

Are you able to see the CSP in the network tab for the local run of the catalog's swagger page?

I don't think it will appear as a request / response header since it's an HTML tag. I've confirmed that behavior on the landing zone service Swagger UI page as well.


Add ROLLO

I don't know if it makes much sense to include this after NIST has thrown it out... But in case: where do you have the quantum numbers from? (127, 191, 255)

I don't know if it makes much sense to include this after NIST has thrown it out... But in case: where do you have the quantum numbers from? (127, 191, 255)

I made a naive assumption that quantum computers would at least decrease the security level by 2.
I missed to note this that was a mistake, I am sorry.
In this case it would be useful to allow Strings in this field or to be allowed to leave this attribute empty since there was no given security level for QC.

I made a naive assumption that quantum computers would at least decrease the security level by 2.

Ah ok, that does make sense, in general, however you missed a detail: it's not the security that is halved (2¹²⁸ → 2¹²⁷), but instead its reduced to its square root, or, in other words, the security level if measured in bits (the exponent) is halved: 2¹²⁸ → 2⁶⁴.
We need to decide whether we remove the requirement to enter data. But we'd need to rework the comparison tool then.

I've fixed a few minor things (first two commits). Also you seem to have used the wrong table in the benchmarks once, I fixed that. I've also fixed the security values (in a way that we can merge this now, but adding a comment so we remember to change it in case we change the schema)
Can you review my changes? If all is correct I'd say we can merge this.


1.5.20 Cancel GATT, get disconnected prompt and it will annoy you to death on every app opening

Description:
User clears chart data on his first sensor card and syncs from charts view, then cancels sync during reading data - gets shown disconnected prompt.
He then goes out from charts view and minimises app, then brings app back to foreground.
Actual: He is shown disconnected prompt again on this sensor card and forever if he minimises app and brings app to foreground.
Expected: Disconnected should be shown once and dismissed.
https://user-images.githubusercontent.com/50437378/119844658-d2276800-bf32-11eb-821e-801f6866a4f6.mp4

Works in 1.5.21, moving to done.


Permanent Desync

Product and Version [VS/VSCode]:
VS Code
Version: 1.51.1 (user setup)
Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f
Date: 2020-11-10T23:34:32.027Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.18362

OS Version [macOS/Windows/Linux]: WINDOWS
Live Share Extension Version: v1.0.3206
Target Platform or Language [e.g. Node.js]: ts&c#
What were you doing when you encountered the desync?
basically every live-share session i ever had on vscode
How often have you encountered desyncs?
every time i use it
!! it is never automatically detected (i have not even realized that there is any kind of detection for this until i read tickets here) !!
i join any session..
after a few minutes error highlighting just fails and is stuck with the errors that are displayed at that time.
when i save a file, vscode just deletes lines somewhat randomly and it seems like its deleting different lines on different participants files
when closing a file without saving, lines get deleted anyway, even when the other participant has the same file open
sometimes i have 2 tabs of the same file open, with different states (second tabs gets opened when another participant opens the same file)
often we have different code states on every participants screen
e.g. i wrote a whole class, and the other guy just sees duplicate codeblocks at the end
I NEED A BLOODY SYNC BUTTON PLEASE!! :)

I’m so sorry you’re running into this.
Do you have a consistent repro or it just seems to happen each time you share?
Thank you and sorry you’re hitting this issue.

it essentially has some kind of problems on every session that is longer than about 10 minutes (rough guess)
but a few started of with issues right away.
usually the first thing to fail is error highlighting.

This sounds awful! I'm very sorry to hear you're having such a poor experience. It's also unlike most other reports we've heard, so I'm very interested to learn more and see if we can't fix it.
Let me just try to rephrase the issues you're seeing to make sure I understand:
(1) Errors get stale and stop updating
(2) Saving files causes lines to be deleted (different lines for different participants)
(3) Closing a file without saving does the same
(4) Live Share will open an already open document in a new tab when someone else opens it
(5) The Live Share tab of the document will show different contents than the other tab with the document open
(6) Document contents out of sync across participants
For (2), who is performing the save? The host or the guest? And do the lines get deleted immediately after the save? Or just some time after?
Same for (3): who is closing the file? Host or guest? And closing without saving = discarding unsaved changes? And is it the same situation where different participants see different lines deleted?
(4): this is bizarre! I don't think this should ever happen (unless you have "follow to the side" enabled, which I'm guessing you don't). How often does this happen?
(5): I don't even know how this is possible. VS Code shouldn't allow this. If you hover over the tab to get the full filename, is it the same for both tabs, even though they have different contents?
(6): This is what we usually refer to as a "desync"
In general, what kind of projects are you working on? Do you have any unusual extensions installed or setting values?
You may also try turning on the liveshare.diagnosticMode setting which should detect when you get out of sync and give you a notification, in addition to providing some additional diagnostics about what might have gone wrong.
Thanks for helping us work through this, and sorry again for the poor experience.

1: yes. but I am not certain about the >>different<< lines part
for 2 and 3: seems to be the very same case. I was the guest in these sessions. I was saving, I was closing. deletion happened immediately.
I'm not sure what actually happened with the changes. I expected these to be kept open for the other participant
4 and 5: usually when everything went out of sync already. one file is opened and edited by me and has the asterisk. the other tab opens when the other participant opens the file for himself. it doesn't have the asterisk then. afaict he basically sees the unedited version
Will definitely try the diagnostic mode!

Thanks for the extra info! This is great!
Your expectation for (2) and (3) is my expectation. Saving on the guest should save the file on the host. Closing without saving on the guest when the file is open elsewhere should leave the file unchanged for whoever else has it open. I'll play around with this scenario more and see if I can reproduce what you saw.
For (4) and (5) I could maybe see this happening if things were already in a bad state when the other person opened the file. But I wonder how you got in the bad state in the first place...
If you're easily able to get in a bad state, in may be worth trying a session with all of your extra extensions disabled to see if they're involved (I don't really have reason to believe they are. Just grasping at straws).
Let me know how diagnostic mode goes! That will hopefully shed some more light on the situation.
Thanks again for all your help!

for my extensions:
andyyaldoo.vscode-json
Angular.ng-template
bierner.github-markdown-preview
bierner.markdown-checkbox
bierner.markdown-emoji
bierner.markdown-preview-github-styles
bierner.markdown-yaml-preamble
codezombiech.gitignore
CoenraadS.bracket-pair-colorizer-2
donjayamanne.githistory
eamodio.gitlens
fabiospampinato.vscode-diff
fakesharper.fakesharper
hashhar.gitattributes
HookyQR.beautify
howardzuo.vscode-favorites
jakethashi.vscode-angular2-emmet
jchannon.csharpextensions
k--kato.docomment
mhutchie.git-graph
mikeburgh.xml-format
mkloubert.vs-deploy
mohd-akram.vscode-html-format
ms-azuretools.vscode-docker
ms-dotnettools.csharp
ms-dotnettools.dotnet-interactive-vscode
ms-dotnettools.vscode-dotnet-runtime
ms-mssql.mssql
ms-vscode.powershell
ms-vsliveshare.vsliveshare
msjsdiag.debugger-for-chrome
nachocab.highlight-dodgy-characters
nick-rudenko.back-n-forth
redhat.vscode-yaml
Shan.code-settings-sync
sketchbuch.vsc-rename-terminal-button
tht13.html-preview-vscode
vscode-icons-team.vscode-icons

Hey @SeidChr , we just updated diagnostic mode to be more helpful. If you encounter a sync issue again, could you do me a huge favor and go through the following steps?
On both the host and the guest:

Enable the liveshare.diagnosticMode setting
Open the file that's out of sync
Run the liveshare.getCoeditingInformation command (ctrl+shift+p to open the command palette, then search for "Get co-editing information") and paste the results below

To check that messages are being sent and received, open the Output view (ctrl+shift+u) and select "Visual Studio Live Share Coediting" from the dropdown. Type a character. On the sending end, you should see output like:
[2020-12-10 23:51:25.351 ] Post message: {"messageType":"textChange","changes":[{"length":0,"newText":"a","start":400}],"changeServerVersion":12,"clientId":24,"fileName":"/src/foo.txt","time":1607644285349,"sendId":16}
On the receiving end, you should see output like:
[2020-12-10 23:51:27.713 ] Receive message: {"context":{"GuestSessionId":"31","IsOwner":"False"},"sourceId":"Coauthoring","eventId":45,"jsonContent":"{"messageType":"textChange","changes":[{"length":0,"newText":"a","start":400}],"changeServerVersion":12,"clientId":24,"fileName":"/src/foo.txt","time":1607644427514,"sendId":25}","time":1607644427713}
Are messages being sent and received?

Hey @daytonellwanger!
My Christmas vacation started today, so unfortunately this will have to wait till the next year.
But i am glad to hear about the improvements and will happily try them when i am back at work!
Seeing your description made me wonder whether a "single source of truth" mode would be usefull, where your local editor updates not when u press anything, but only when the "truthy" host would confirm the keypresses. Or is it already implemented like that? If I remember correctly, this was how google wave was implemented back in the days.

Hey @SeidChr , no worries.
As for the design of the co-editing feature, it's generally been found that users aren't tolerant of having to wait for a round-trip to a server (or in this case, the host's computer) for their edits to show up (even 50ms of lag on typing is quite frustrating!) So we apply the edits immediately, and then try to reconcile any conflicts once the source of truth is able to acknowledge the changes.
Enjoy your vacation! Happy holidays!

I guess this is probably correct for 90+ % of all users. but those who have problems 80% of the time, may benefit from such a failsafe mode.
I personally have asked mysef why its so hard to implement a thing that was already working perfectly over 15 years ago when i was writing prolog code with my bros in the cafeteria. 4 people on the same document.
I know its not that easy, but still frustrating :D
Happy holidays to you!

We have just experienced a very strange behavior:
This time i was the session-host.
We are not sure about what exactly caused the issue :-/

We have just experienced a very strange behavior:
This time i was the session-host.
We are not sure about what exactly caused the issue :-/

Hey @SeidChr ! Any more experiences with Live Share? We've put out a handful of fixes since your last comment, so I hope the experience has improved and that's why we haven't heard from you 😊.
I'm going to close this issue out in favor of these aggregated issues where we can capture your feedback + other's. You've pointed out a few issues that we're tracking separately, so I'll link you to all of them:
#4246
#4252
#4253
#4258


#4255, column definition information for mysql_stmt_prepare

Fixes #4255.

Pull Request Test Coverage Report for Build 1861

0 of 11 (0.0%)  changed or added relevant lines in 1 file are covered.
3 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.03%) to 58.147%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

sharding-proxy/sharding-proxy-frontend/sharding-proxy-frontend-mysql/src/main/java/org/apache/shardingsphere/shardingproxy/frontend/mysql/command/query/binary/prepare/MySQLComStmtPrepareExecutor.java
0
11
0.0%

Files with Coverage Reduction
New Missed Lines
%

sharding-orchestration/sharding-orchestration-center/sharding-orchestration-center-apollo/src/main/java/org/apache/shardingsphere/orchestration/center/instance/ApolloInstance.java
1
59.46%

sharding-proxy/sharding-proxy-frontend/sharding-proxy-frontend-mysql/src/main/java/org/apache/shardingsphere/shardingproxy/frontend/mysql/command/query/binary/prepare/MySQLComStmtPrepareExecutor.java
2
0%

Totals

Change from base Build 920:
-0.03%

Covered Lines:
10610

Relevant Lines:
18247

💛  - Coveralls

Codecov Report

Merging #4444 into master will decrease coverage by 0.08%.
The diff coverage is 0%.

@@             Coverage Diff              @@
##             master    #4444      +/-   ##
============================================
- Coverage     54.64%   54.55%   -0.09%
  Complexity      330      330
============================================
  Files           954      954
  Lines         18215    18249      +34
  Branches       3374     3386      +12
============================================
+ Hits           9953     9956       +3
- Misses         7618     7648      +30
- Partials        644      645       +1

Impacted Files
Coverage Δ
Complexity Δ

...ry/binary/prepare/MySQLComStmtPrepareExecutor.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...ingsphere/sql/parser/visitor/SQLServerVisitor.java
0% <0%> (ø)
0% <0%> (ø)
:arrow_down:

...hardingsphere/sql/parser/visitor/MySQLVisitor.java
0% <0%> (ø)
0% <0%> (ø)
:arrow_down:

...ngsphere/sql/parser/visitor/PostgreSQLVisitor.java
0% <0%> (ø)
0% <0%> (ø)
:arrow_down:

...ardingsphere/sql/parser/visitor/OracleVisitor.java
0% <0%> (ø)
0% <0%> (ø)
:arrow_down:

.../sql/parser/visitor/impl/PostgreSQLDMLVisitor.java
0% <0%> (ø)
0% <0%> (ø)
:arrow_down:

...segment/dml/item/AggregationProjectionSegment.java
0% <0%> (ø)
0% <0%> (ø)
:arrow_down:

.../sql/segment/dml/item/ColumnProjectionSegment.java
0% <0%> (ø)
0% <0%> (ø)
:arrow_down:

...hardingsphere/sql/parser/visitor/SQL92Visitor.java
0% <0%> (ø)
0% <0%> (ø)
:arrow_down:

...e/sql/parser/sql/segment/generic/TableSegment.java
20% <0%> (ø)
0% <0%> (ø)
:arrow_down:

... and 6 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 b3f9fef...1d21c5f. Read the comment docs.


please rename your directories to org/scalariform

it's not possible to find your sources in IDEs because the file path doesn't match the FQN of the files it contains.

fixed in upstream master


Upgrade the package @nexssp/os  to a new version

the new version adds support for Android platforms.
fix  https://github.com/BuilderIO/ai-shell/issues/74

Thanks @AlaEddineBoughanmmi!


Working settings

These settings worked for me.
<EMAIL_ADDRESS>functions\package.json
{
  "name": "functions",
  "description": "Cloud Functions for Firebase",
  "scripts": {
    "lint": "eslint .",
    "serve": "firebase serve --only functions",
    "shell": "firebase functions:shell",
    "start": "npm run shell",
    "deploy": "firebase deploy --only functions",
    "logs": "firebase functions:log",
    "test": "mocha --timeout 10000",
    "test_all": "mocha test_all.js --timeout 10000"
  },
  "engines": {
    "node": "8"
  },
  "dependencies": {
    "file-system": "2.2.2",
    "firebase-admin": "8.8.0",
    "firebase-functions": "3.3.0"
  },
  "devDependencies": {
    "@firebase/testing": "0.16.3",
    "eslint": "^5.12.0",
    "eslint-plugin-promise": "^4.0.1",
    "firebase-functions-test": "0.1.7",
    "mocha": "6.2.2"
  },
  "private": true
}

public\index.html
<script src="/__/firebase/7.6.0/firebase-app.js"></script>
<script src="/__/firebase/7.6.0/firebase-auth.js"></script>
<script src="/__/firebase/7.6.0/firebase-firestore.js"></script>
<script src="/__/firebase/init.js"></script>

Links
1. Getting started with the Firebase Local Emulator Suite
https://google.dev/codelabs/firebase-emulator-get-started?playlist-id=firebase-emulators#0
2. Test-drive Firestore Security Rules
https://google.dev/codelabs/firebase-emulator-test-rules#0
3. Test-drive Complex Firebase Functions
https://google.dev/codelabs/firebase-emulators-test-functions#0

@tja4472 is there an issue with the codelab or something you want to see changed?

@samtstern
Using<EMAIL_ADDRESS>and with no changes to the codelab, I get:
firebase emulators:start
Microsoft Windows [Version 10.0.18363.535]
(c) 2019 Microsoft Corporation. All rights reserved.

c:\VSCode\2019\temp\codelab-issue\emulators-codelab\codelab-final-state>firebase emulators:start
i  emulators: Starting emulators: functions, firestore, hosting
!  Your requested "node" version "8" doesn't match your global version "10"
+  functions: Emulator started at http://localhost:5001
i  firestore: Serving ALL traffic (including WebChannel) on http://localhost:8080
!  firestore: Support for WebChannel on a separate port (8081) is DEPRECATED and will go away soon. Please use port above instead.
i  firestore: Emulator logging to firestore-debug.log
+  firestore: Emulator started at http://localhost:8080
i  firestore: For testing set FIRESTORE_EMULATOR_HOST=localhost:8080
i  hosting: Serving hosting files from: public
+  hosting: Local server: http://localhost:5000
+  hosting: Emulator started at http://localhost:5000
i  functions: Watching "c:\VSCode\2019\temp\codelab-issue\emulators-codelab\codelab-final-state\functions" for Cloud Functions...
!  TypeError: instance.INTERNAL.registerComponent is not a function
    at registerDatabase (c:\VSCode\2019\temp\codelab-issue\emulators-codelab\codelab-final-state\functions\node_modules\@firebase\database\dist\index.node.cjs.js:15168:39)
    at Object.<anonymous> (c:\VSCode\2019\temp\codelab-issue\emulators-codelab\codelab-final-state\functions\node_modules\@firebase\database\dist\index.node.cjs.js:15200:5)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:690:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at FirebaseNamespace.get [as database] (c:\VSCode\2019\temp\codelab-issue\emulators-codelab\codelab-final-state\functions\node_modules\firebase-admin\lib\firebase-namespace.js:282:38)
!  We were unable to load your functions code. (see above)

functions>npm test
c:\VSCode\2019\temp\codelab-issue\emulators-codelab\codelab-final-state\functions>npm test

> functions@ test c:\VSCode\2019\temp\codelab-issue\emulators-codelab\codelab-final-state\functions
> mocha

  1) "before all" hook in "{root}"

  0 passing (2s)
  1 failing

  1) "before all" hook in "{root}":
     Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.

npm ERR! Test failed.  See above for more details.

@tja4472 thanks for explaining!  Going to move this issue over to the FIrebase JS SDK repository for investigation.


Profiles should be scenario based instead of platform based

There is often confusion on which profile to use when creating an app for a device other than holoLens. By switching to a scenario based approach vs a platform based approach, we can avoid this confusion.
See #5426 for reference.

Will be closed as we move away from using the profile system in the newest MRTK. For now, we need to verify that our profiles cover the appropriate range of deployment scenarios.

Closing for 2.8 as the DefaultMixedRealityToolkitConfgurationProfile has been vetted for deployment for devices that support OpenXR.


ci: run lint in ci

Run linter in CI

Do you think its safe to have eslint fix the autofixable linting errors?


Ignore /proc/sys/fs/binfmt_misc by default

Motivation

https://github.com/DataDog/datadog-agent/issues/1961
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-1049
https://github.com/DataDog/integrations-core/issues/2492

Can you rename blacklist to exclude?
@hithwen, we are taking care of that on a separate PR: #7627

This won't work on the containerized Agent. It should be /host/proc/sys/fs/binfmt_misc instead there.

Maybe we should exclude by filesystem instead of mountpoint then?


Cow: Watch trendwriters.in

Cow requests the watch of the watch_keyword trendwriters\.in. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

Approved by double-beep in Charcoal HQ

trendwriters\.in has been seen in 1 true positive, 0 false positives, and 0 NAAs.


fix topaz install regression

Fix topaz install regression
Before topaz install would fails with
❯ topaz install
topaz: error: topaz is not running, use 'topaz start' or 'topaz run' to start
Which prevents installing topaz, unless when the --no-check flag was passed as a work-around.
This PR fixes this behavior.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 3 (0.0%)  changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.01%) to 38.467%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/cli/cmd/install.go
0
3
0.0%

Files with Coverage Reduction
New Missed Lines
%

pkg/cli/cmd/install.go
1
0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.01%

Covered Lines:
1144

Relevant Lines:
2974

💛  - Coveralls


Drone Job Resource Limits / Requests

adding environment variables allowing use to set the limits and requests on the batch job
namely as it was inheriting out default limits and getting oom at 400Mi

@note, i'm not sure if JOB is the right description for this? ..

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

I can see this being super useful.  👍
Job feels appropriate IMO

we do something similar for Nomad [1] and we use RequestMemory and RequestCPU. I recommend using the same variables for Kubernetes for consistency reasons.
[1] https://github.com/drone/drone/blob/master/scheduler/nomad/nomad.go#L89:L94

this capability is available in the new kubernetes runner home, which can be found at https://github.com/drone-runners/drone-runner-kube

Nice I like the organization into runners 👍 looks like i'll be switching my drone install before long :)


The first bo3 of Round 3 on Saturday is overlapping with Sunday matches instead

The first bo3 of Round 3 is a day late on the calendar for world 2023.

Thank you for reporting! Looks like PandaScore returned some faulty data. It should be fixed now. As soon as your calendar updates, it should be correct again.


Update Dockerfile

Proposed Changes

Update to Firefly v6.0.0

Update to PHP 8.2, as required by Firefly

Update Firefly asset origin format and location

already done on another PR


Fix deduplicator map concurrent access panic in PBFT batch

Description
The execute method, which is invoked on a transient go routine from the pbft core was calling into the deduplicator which does not support concurrent access.  This changeset pushes that work off the transient thread and onto the main batch thread.
Motivation and Context
Panics have been observed due to the concurrent access of a map in deduplicator
This is intended to fix issue #1483
How Has This Been Tested?
As this is a race condition, only the existing unit tests have been tested personally.  I'd ask that @ratnakar-asara or @dongmingh please attempt to reproduce issue #1483 to confirm this is a fix before merging.
Checklist:

[X] I have added a Signed-off-by
[X] Either no new documentation is required by this change, OR I added new documentation
[X] Either no new tests are required by this change, OR I added new tests
[X] I have run goimports, go vet, and golint. I have cleaned up all valid errors and warnings in code I have added or modified. These tools may generate false positives.  The goal is clean, consistent, and readable code.

Signed-off-by: Jason Yellick<EMAIL_ADDRESS>

looks good.

@jyellick I ran your fix, see git log below, on the same setting as #1483 for 1 hour and did not see the issue.
commit<PHONE_NUMBER>a879774ae2d0c8b0a137b480f9880a
Merge: 2b33a6f 914b41d
Author: Dongming
Date:   Tue May 17 09:28:26 2016 -0400
Merge branch 'fix-batch-panic' of https://github.com/jyellick/fabric into fix-batch-panic

commit 2b33a6fbdba71b6b691aad63ec003cfd87df5657
Merge: 6675770 2fcaf07
Author: Sheehan Anderson<EMAIL_ADDRESS>Date:   Mon May 16 19:34:07 2016 -0400
Merge pull request #1476 from tuand27613/logTest

correctly parse docker output from z debian systems in behave functions

@dongmingh Great! Thanks for confirming.
@srderson This is clear to merge from my perspective.


Fix: event handlers don't fire when dragging card slowly

The on-swipe-x attributes conflict with their respective directives so
the onSwipeRight and onSwipeLeft functions are never called when
dragging card slowly.

This seems to trigger double left/right events if you do a normal (non-slow) swipe.

My comment is in error. There is an important fix this PR contains which is renaming the onSwipeLeft handle. OnSwipeLeft gets triggered outside of this directive due to it being a native Ionic event type. This causes bugs.

Use onTransitionLeft and right


[ROCm] Updates to dynamically load the ROCm "hipsparse" library

/cc @chsigg @cheshire @nvining-work

@chsigg @cheshire gentle ping

Nothing is changing functionally.
All other ROCm libraries are dynamically "loaded" by TF (as opposed to dynamically "linked").
This PR changes the hipsparse library from being dynamically "linked" (current behaviour) to being dynamically "loaded"
The wrap:: namespace is just a mechanism that is used to implement this dynamic "loading" functionality.
The same is done for all the other ROCm libraries, for example https://github.com/tensorflow/tensorflow/blob/master/tensorflow/stream_executor/rocm/rocm_driver_wrapper.h


update formatting reference link

Q
A

Is bugfix?
✔

New feature?
❌

Breaks BC?
❌

Fixed issues
https://github.com/yiisoft/yii2/issues/19154

👍🏻


Ebola Response Project Task 606 Image 13 of 104  - Image not matching source + Question on "All" protective equipment

1st issue:  Are the people in the photo wearing all recommended protective equipment?
The image shows a health worker helping another to wear the protective equipment and is above the waist level shot... as such it cannot depict the shoes etc. However, one could safely assume that the health worker is putting "all" protective equipment. But s/he is not ready. As such how does one answer the question on "All"?
Question may be reworded based on the objective. Is the exercise expected to show examples of how protective environment is not being worn... or is it about showing people wearing "only some of all" protective equipment - indicating negligence etc....
2nd issue: Image and Source Link Match
The Image link (from the Task List downloaded) is below which indicates article from USA Today
http://www.gannett-cdn.com/-mm-/731f75e27f49c4f1f2e94fcec56291c811d4317e/c=169-0-1987-1367&r=x513&c=680x510/local/-/media/USATODAY/None/2014/10/29/635501760236160008-ebola102914x005.jpg
The Source link next to the image is from the Daily Mail and does not contain the above image.
http://www.dailymail.co.uk/news/article-2725754/Ebola-vastly-worse-thought-warns-World-Health-Organisation-America-evacuates-diplomatic-families-affected-country.html
Two USA Today articles includes the subject image. Should one of these this then be the Source Link?
On the page
http://www.usatoday.com/story/opinion/2014/11/13/ebola-off-the-record-media-public-pandemic-epidemic/18977151/
As part of photo essay
http://www.usatoday.com/story/news/nation/2014/10/29/ebola-riverside-county-cdc-west-africa-california/18100869/

Thanks @elliec - if we make changes to questions - so the reader answers to the point asked about the photo (all), then the issue is solved. However, the source links is something that has to be looked at the backend. Dont know whether the source link or image link are drawn from another database - and that one of them is wrong. i.e. if image is from BBC then source link should ideally be a BBC story or a BBC story which has a USA Today image embedded in it (not vice versa).


[FLINK-29862] Upgrade to flink-shaded 16.0

The CI failed，I created an issue, Could you take a look it FLINK-29874? @zentol

Hi, @zentol @MartijnVisser I would be wait to today afternoon if you can have a quick hotfix when you start work, otherwise I plan to revert this commit as it leads to all PR CI failed. Btw，we should only merge the PR with all greens.


Problem with Enforcing WebSocket Host and Server Host Match

Operating System: Windows 10
Node Version: 8.10.0 LTS
NPM Version: 5.6.0
webpack Version: 4.1.1
webpack-serve Version: 0.2.0

This issue is for a:

[ ] bug
[x] feature request
[x] modification request

Code
CLI Command
  $ webpack-serve

webpack.config.js
module.exports = {
  port: 9090,
  host: '<IP_ADDRESS>',
  content: '../../assets',
  clipboard: false,
  hot: {
    port: 9091,
    host: 'localhost'
  }
}

Expected Behavior
When run from a Docker container, webpack-serve must be bound on <IP_ADDRESS> in order for the server to be accessible at localhost on the parent machine. However, hot-client must be set to host localhost in order for the container to receive the connection.
Actual Behavior
An error was thrown while starting webpack-serve.
   Error: webpack-serve: The `hot.host` property must match `host` option.

When the hot.host option is omitted, hot-client attempts to connect to an invalid address.
WebSocket connection to 'ws://<IP_ADDRESS>:9091/' failed: Error in connection establishment: net::ERR_ADDRESS_INVALID

How Do We Reproduce?

Install webpack-serve inside of a Docker container, use the above configuration.
Attempt to start webpack-serve from inside the container. The above error will appear.

New Feature Use Case
The ability to configure where the emitted bundle tries to connect via WebSocket will enable many use cases beyond just Docker. Since this is a tool for development, it's important to be flexible and not disrupt workflow with needless red tape when this could just be a base option.

Thanks for the issue 🍺
Unfortunately this looks like it's a problem with your environment, rather than with webpack-serve, as that scenario works perfectly fine using <IP_ADDRESS> as the host.

On Windows 10, I am unable to directly connect to the address <IP_ADDRESS>, no matter what is listening on that host. I don't believe that <IP_ADDRESS> is intended to be used as a loopback address, but rather to indicate that the given server should bind to all interfaces.

There's a lengthy discussion on <IP_ADDRESS> and how it's a completely valid address for development here: https://github.com/webpack-contrib/webpack-hot-client/issues/30. Looks like you'll have to use a host other than <IP_ADDRESS> in docker/Windows and setup some proper routing in your container.

Would it not be more user friendly to add a special exception for those who cannot use <IP_ADDRESS> as a loopback address during development? It's standard practice to use <IP_ADDRESS> when you want to listen on all interfaces. Having to do something special here just because of one line of code in the package feels like it will waste a lot of development time in the long run.
Webpack-serve is only listening to sockets that originate from localhost (inside the container) if you do not tell it to bind on <IP_ADDRESS>. I am not sure how to tell webpack-serve to listen on other interfaces without doing that. And if I do that, then it breaks the code that's sent in the bundled file, because it's trying to connect to <IP_ADDRESS> which is not valid on Windows.
I don't think I can fix that unless I use a reverse-proxy inside the container to capture requests and then pass them on to the local instance of webpack-serve. That seems like a lot of extra steps just for a tool that's meant to be used in development. Would you reconsider, please?

Would it not be more user friendly to add a special exception

More user-friendly for the very few people who need that capability, yes. More technical debt and maintenance for the project, also yes. You have an edge case. You'll have to find a way to make it work in your specific environment since your environment behaves in a way that doesn't match spec.

Webpack-serve is only listening to sockets that originate from localhost

That's not actually true. webpack-hot-client is responsible for that.

Would you reconsider, please?

No, sorry. There are reasonable workarounds and alternatives like webpack-dev-server if you need support in a wonky env.

Using Docker containers in development to ensure that the environment is as close to production as possible doesn't seem to be that uncommon. I don't believe that my environment is wonky; it's just plain old Windows 10. I haven't changed anything in my network settings.
The reason I came to this project was because the webpack-dev-server repository has a notice that says that this project is a fast alternative because that project is not receiving feature updates.
Could you shed a little light on why the restriction that the host setting must match the hot.host setting? Perhaps changing the error to a warning could enable even more use cases that are beyond just this. If a developer wants to change the settings and know what they are doing, why not let them?

If the hot.host setting is related to more than just the output bundled file, what would you think about adding a new config option that allows the developer to change the host that the outputted js connects to via WebSocket?
More power to the developer is always great. 😄

I'll leave this issue open for discussion for a while in the event other users would like to talk about how to solve this on the user-side of things. You asked me if I would reconsider that change and I gave my answer. At this point more comments are going to change that direction. Glad you found this project useful, but it seems you need more customization that the project can provide at this point, and should probably pursue an alternative like webpack-dev-server. I think I've been accommodating in discussing the issue, even though you didn't get the answer you were after, and will be leaving it at that for the time being.

webpack-dev-server allow to set public different from host, but has issue with hard coded /sockjs-node for over the years.
Now the same issue was migrated to webpack-serve in another guise named:

The hot.host property must match host option.

@shellscape Thanks for your nice job here.
Our team is facing similar problems.
We are developing a mobile web app based on a Chinese application platform called Wechat. It's used very widely in China. But services based on it have to use the https protocol on the Internet for secure.
We coding on Windows 10 and using mobile phones to debug our pages in company's internal network. But we also need to visit the pages from Internet through ngrok which forwarding public URL to localhost server.
We setting webpack-dev-server to listen on <IP_ADDRESS> before, so both internal network IP address and localhost works well.
But now we will see:
WebSocket connection to 'ws://<IP_ADDRESS>:8081/' failed: Error in connection establishment: net::ERR_ADDRESS_INVALID

To work within docker, you must expose the WebSocket Server port (8081). For example, my docker-compose.yml:
version: '3'
services:
  app:
    image: node:9.8.0
    working_dir: /usr/local/app
    command: npm start
    ports:
      - 8080:8080
      - 8081:8081
    volumes:
      - ./:/usr/local/app
      - node_modules:/app/node_modules

volumes:
  node_modules:

I think that will solve your problem, although the hot reloading does not work because of this issue: https://github.com/webpack-contrib/webpack-hot-client/issues/26

The problem is because the outputted JS tries to connect to the bind address, but this doesn't work because the network inside the container isn't the same as on the host machine. The correct ports are exposed, that's not the problem.
Inside the container, we bind on <IP_ADDRESS> so that the HTTP server can accept connections from outside the container. But the code in the browser on the host machine still tries to connect to that exact address (<IP_ADDRESS>), which is incorrect. We need an option to configure the address the bundled JS connects to.

It's working for me.

By default, Docker exposes container ports to the IP address <IP_ADDRESS> and how webpack-hot-client is running inside of the container, you need publish the port 8081. It's easy.

<IP_ADDRESS> is not a valid loopback address on all platforms, and according to all resources I can find online when Googling. It doesn't work for me and others on Windows 10. <IP_ADDRESS> is generally considered to be non-routable, and any environments where that works as a loopback is just a quirk of implementation and non-standard.

@gponsu, in general issue not in <IP_ADDRESS>, but in unconfigurable public address of websocket
webpack-dev-server has required option, webpack-serve not
I believe this picture can clarify the situation

As discussed above, case 1 do not work on Windows 10. Case 2 do not work nowhere.

^ Yeah, it's important to keep the general application of this issue in mind. Even if I could connect to <IP_ADDRESS> on my device, this would still be a problem because testing on other devices like phones and tablets is a valid use case. Not possible to do that without a configuration option to tell the browser where to connect to.
<IP_ADDRESS> means "bind on all interfaces" in this context, so there is no way to just automatically guess where the browser should point. The host option and where the browser should connect to are just fundamentally different configuration points, and that should be reflected in the code.
This is a small change that would vastly expand the flexibility of the project. It's a shame that @shellscape won't hear us out.

Then that is a problem with your environment and I understand that @shellscape does not listen to you. If you think it's a small change, you should create a pull request. Although I think it will be better if you configure your environment correctly.

This is not a problem with anyone's environment. This is a limitation of this project.
I'm not going to waste my time acquainting myself with a code base I'm completely unfamiliar with and creating a pull request if it's just going to get declined.

@evaera you might find the legacy webpack-dev-server more to your liking, or you can roll a simple koa/express server setup using webpack-hot-client and webpack-dev-middleware, for your particular devops scenario. you might find the latter to be a better use of energy.

Alright, I give up. I don't understand the reason behind not letting the developer control this when there are valid use cases and people who want this functionality popping up in just a few days, probably more people who didn't even think to check the issues section, but I don't think the community can convince the managers otherwise, so I'm just going to close this issue and try to find another solution that is more accommodating.

@evaera https://github.com/webpack-contrib/webpack-hot-client/pull/34

I also would like to see this feature available. Developing on a Mac with docker-machine requires me to be able to set the server to <IP_ADDRESS>, and the client to whatever IP address happens to be assigned to the docker-machine VM's IP address (e.g., <IP_ADDRESS>).

@nmschulte I tried passing a client and server host with the following my webpack config:
serve: {
    host: {
        client: '<IP_ADDRESS>', // IP Address of my docker-machine VM
        server: '<IP_ADDRESS>'
    },
    port: '8081'
}

@jonesnc I'm seeing that too, I think you should open a new issue for that though

This must be a webpack-serve issue, using webpack-hot-client directly shows it works as advertised.

@evaera @nmschulte I create a new issue here: https://github.com/webpack-contrib/webpack-serve/issues/89. If you could add any details you have found regarding this issue, I would really appreciate it!

@jonesnc the issue seems to be resolved with this #34.
I use "webpack-serve": "^0.3.1" in the package.json:
{
  "name": "app",
  "version": "1.0.0",
  "private": true,
  "scripts": {
    "start": "LOCAL_IP=`hostname -i` webpack-serve --config ./webpack.config.js --mode 'development'",
    ...
  },
  "devDependencies": {
    ...
    "webpack-serve": "^0.3.1"
  },
  ...
}

with the following webpack.config.js:
module.exports = {
  ...
  serve: {
    host: '<IP_ADDRESS>',
    hot: {
      host: {
        server: '<IP_ADDRESS>',
        client: process.env.LOCAL_IP
      }
    }
  },
  ...
}

And it works!

@czerasz #90 too


Update all READMEs with Windows support to include Windows 11

Existing Sample Changes
Description
This changes updated the READMEs with Windows* or Windows* 10 support to include Windows 11 support as well.
Fixes Issue# ONSAM-2002
External Dependencies
None.
Type of change
Please delete options that are not relevant. Add a 'X' to the one that is applicable.

[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[X] Implement fixes for ONSAM Jiras

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[X] Command Line
[ ] oneapi-cli
[ ] Visual Studio
[ ] Eclipse IDE
[ ] VSCode
[ ] When compiling the compliler flag "-Wall -Wformat-security -Werror=format-security" was used

@yuguen-intel Can you look at the FPGA READMEs? As part of UAT we found that the sample READMEs aren't mentioning Windows 11 and @yeetengangIntel has updated all of the FPGA READMEs and other code samples to include them. Let me know if that's fine.

@yuguen-intel The SVD README has been updated to mention Windows 11 support


⚠ Bofrost.com has degraded performance

In c7fded5, Bofrost.com (https://www.bofrost.com) experienced degraded performance:

HTTP code: 200
Response time: 791 ms

Resolved: Bofrost.com performance has improved in 6ad6c63 after 11 minutes.


[Text Analytics] Migrate recordings to asset repository

Packages impacted by this PR
Text Analytics
Issues associated with this PR
Describe the problem that is addressed by this PR
Migrate the recordings to assets repository
What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?
Are there test cases added in this PR? (If not, why?)
Provide a list of related PRs (if any)
Command used to generate this PR:**(Applicable only to SDK release request PRs)
Checklists

[ ] Added impacted package name to the issue description
[ ] Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
[ ] Added a changelog (if necessary)

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


Windows Mixed Reality Gesture Support

Overview

Added Windows Mixed Reality Gesture Support.
Removed Actions from Hold, Navigation, and Gesture Events bc knowing the source, should be enough. It doesn't make sense to assign them actions bc technically the Hold, Manipulation, and Navigation are actions in and of themselves.
Removed Pointer Up/Down from Gaze Provider.
Added windows gesture settings to gesture profile.

Changes

Fixes: #2630

Very confused by the changes so far in this PR:

There's a bunch of changes to the input system, which should be a separate PR IMHO
A new GestureSettings enum is introduced but not actually used??
Don't see anything added for gestures?

If we really are expecting to reuse the WMR controller for gestures, I don't see how you are going to be able to configure the input actions for each of those gestures on the controller picture.

I removed the input actions for events like hold, navigation, and manipulation so we didn't have time add anymore actions to the controller, but I'm still not sold on these changes.
One of the main reasons I went this route is because we need to keep track of the controllers and the interaction source id is the same from the gesture recognizer and the interaction manager. Without the interaction manager to raise source detected/lost the gesture controllers would stick around indefinitely.
I did think about pulling out the input system changes but I needed them to happen to make it all work.
In either case it works on HoloLens and WMR no problem.
I suppose for other gestures on other platforms they'll have their own managers.

Agreed, other platforms will have their own gesture controllers, which is another reason it should be it's own type of controller or device.  Really don't like having two independent controllers mashed together like this.

Really don't like having two independent controllers mashed together like this.

But they're not. They're literally using the same interaction source id.
As for the other platforms having gestures separate from the Controllers, it'll be likely be up to how they have it exposed in their API as to how we will address it.

Retracting my comments based off the Shiproom meeting. Full gesture implementation to be reviewed for 2019 build

As for the other platforms having gestures separate from the Controllers, it'll be likely be up to how they have it exposed in their API as to how we will address it.

Since we're sourcing gestures from controllers here, we should probably be disambiguating gesture api's back onto our controller classes so the MRTK API is uniform across platforms. The more I see gesture work go in, the more I believe we should create virtual controllers in the case of physical-controllerless hardware like HoloLens or LeapMotion.

@Ecnassianer see #2708

I should also provide a way to set the gesture settings in the gesture profile.

Okay guys, just need to test this out on the HoloLens then I'll let you know when it's ready for review.

will test Monday am to confirm approval

It's looking a lot better, but I'm still running into an issue where the pointer is raising two events for some reason.

Is this something that we should delay merging on?

I think the breaking changes getting in are pretty important compared to the duplicate pointer events.
That fix will be easier to merge later.

I'ts more critical to get these breaking changes in so we do not have any large impacts later @davidkline-ms else any projects updating later will have larger impacts.
Small things are easier to fix later, plus several other PR's depend on this

@davidkline-ms Okay figured it out. It's not a duplicate event. It's a separate event that's triggered by touch amount being greater than zero. It maps to the WMR controller as Trigger Touched.

Okay just need to fix one little thing with the teleport cursors showing on start and this is good to go

Okay, everything looks good now.

@keveleigh any thoughts on this?

Bippity Boppity Bump

When I test this, I can see Hold Action messages, but when I move my hand, I do not get any Manipulation events (that I can see).
Also, I seem to get Hand Lost a lot...

Also, I seem to get Hand Lost a lot...

That's because your hand went out of view.

When I test this, I can see Hold Action messages, but when I move my hand, I do not get any Manipulation events (that I can see).

Strange, I thought I only set it up to use Manipulation Translate only.

this is what is in the default profile for me (I didn't change it that I can recall)

That's because your hand went out of view.

 I barely moved it.

I wonder if the bit shifting is off (haha, it's my weaknesss)

Okay this now correctly handles the events. I had an issue where I was raising the wrong event data

Bump

Removed pointer changes and broke out breaking changes into https://github.com/Microsoft/MixedRealityToolkit-Unity/pull/2781 which now blocks this PR


contributor account for: Natalia Jaeger

Please create an account a contributor.
Contributor details:

name: Natalia Jaeger
email<EMAIL_ADDRESS>
Request Details:

Requested by: Ami<EMAIL_ADDRESS>
SOP link

@yusra-haider having problems with AWS keys, anyone to help (maybe @aaclan-ebi )

created the account and sent contributor keys to @ami-day


segger-ozone: init at 3.22a

From the project's homepage 1:
Ozone — The J-Link Debugger and Performance Analyzer
Ozone is a cross-platform debugger and performance analyzer for J-Link
and J-Trace.

Stand-alone graphical debugger
Debug output of any tool chain and IDE 1
C/C++ source level debugging and assembly instruction debugging
Debug information windows for any purpose: disassembly, memory,
globals and locals, (live) watches, CPU and peripheral registers
Source editor to fix bugs immediately
High-speed programming of the application into the target
Direct use of J-Link built-in features (Unlimited Flash
Breakpoints, Flash Download, Real Time Terminal, Instruction Trace)
Scriptable project files to set up everything automatically

New project wizard to ease the basic configuration of new projects

1 Ozone has been tested with the output of the following compilers:
GCC, Clang, ARM, IAR. Output of other compilers may be supported but is
not guaranteed to be.

Motivation for this change
TODO
I am not sure how deal with the following:

Ozone is published with it's own non-standard filesystem organization: no "/bin", "/lib", etc. Directories and files only related to this package will stand out in the top-level of a nix profile directory. Would this be fine? Should the package be reorganized with the main Ozone binary in "/bin", the libs in "/lib", etc. I am submitting this derivation with only "/Lib" renamed to "/lib", and Ozone symlinked to "/bin/Ozone". The published RPM and DEB packages place the contents of the package in "/opt".
The fix-up phase finds ELFs inside "/lib" that are not related to the execution of Ozone, and tries to run patch-elf on them. Is it possible to declare a white/blacklist of directories which fix-up should process/ignore?

Things done

[X] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[X] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Build has failed with:

anonymous function at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/development/tools/misc/segger-ozone/default.nix:1:1 called without required argument 'libudev', at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/lib/customisation.nix:69:16

how can we make it pass?

Build has failed with:

anonymous function at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/pkgs/development/tools/misc/segger-ozone/default.nix:1:1 called without required argument 'libudev', at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-1/lib/customisation.nix:69:16

how can we make it pass?

how can we make it pass?

libudev is an alias which ofborg ignores. I think udev should be the right package.

how can we make it pass?

libudev is an alias which ofborg ignores. I think udev should be the right package.

@SuperSandro2000 thank you for the fixes! I have reverted to a draft to add some udev rules for the package.

Will not add Segger's udev rules as they are distributed with another package with a separate license.

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 108868 run on x86_64-linux 1

1 package built:

segger-ozone

Getting the following error:
$ ./result/Ozone
./result/Ozone: error while loading shared libraries: libjlinkarm.so.6: cannot open shared object file: No such file or directory

Getting the following error:
$ ./result/Ozone
./result/Ozone: error while loading shared libraries: libjlinkarm.so.6: cannot open shared object file: No such file or directory

Hi!
ibjlinkarm.so.6 is included in the Ozone archive.
Can you post the output of:
ldd ./result/Ozone
and
ldd /nix/store/zln9dzig6k3b7zjni6y3h2i2rmk0skj0-segger-ozone-3.22a/lib/libjlinkarm.so.6.88.2

That is linked correct for me.


Enable SAP Cloud Platform Internet of Things for Cloud Foundry

HELP.
This tutorial is no longer working with the current SAP trial services. I'm unable to provision an IoT trial as described in this tutorial.
Could someone please let me know, how to get an IoT trial?
Tia,
Jens

Hi Jens,
Thank you for your feedback. Public Trial is currently not available for the IoT service on Cloud Foundry. Therefore we mention in our tutorial, that you have to purchase a license for the SAP Cloud Platform Internet of Things Service. It is planned to offer trial access to the SAP Cloud Platform Internet of Things for the Cloud Foundry environment. Please stay tuned until this is available.
Thank you and best regards,
Iwona

Thank you for your feedback. The issue seems to be resolved, so I am closing the issue.
If you still have questions, feel free to reopen the issue.


how to check if a Elem is Enum type?

now , enum's Type is FIELD_TYPE_IDENT. So how to check if its a enum type.
service RoleService {
RoleInfo getRoleByStatus(1:RoleStatus status)

}

Hi, @shengdoushi, you can make a type assertion with the Node interface, as each AST element has implemented the Node interface, or you can call the NodeType method on the Node, it will return a string "Enum".
type Node interface {
	// recursively output current node and its children
	String() string
	// recursively parse current node and its children
	parse(p *Parser) error
	// get node value
	NodeValue() interface{}
	// get node type, value specified from each node
	NodeType() string
}

BTW, I just saw your fork of protobuf-thrift, there are some amazing features you have made, I really hope you can make a PR to it.😁


It's unable to extract the new music from 1.3.4 and above.

It just gets stuck on track 41 for some reason. ¯_(ツ)_/¯

This should be fixed in the new 1.7.0 release, tell me if it still doesn't work.


May not work with Widget apps in most recent version of API?

I've been wrestling with this since last night, and I'm not sure if it's something that I'm doing wrong, or if it's a problem in the library.  I've confirmed that my application tokens work in other contexts (such as the C# example here).  However, when attempting to use mkm-sdk with my same tokens, I always get: "UnauthorizedAccess: Request failed. Status code: 401. Response message: Unauthorized."
I don't know if this is because of recent security changes to OAuth, or simply because mkm-sdk doesn't function properly with Widget apps.
The MKM documentation notes that widget apps are only supposed to use empty strings for both the Access Token and Access Secret.  Is that causing the problem with mkm-sdk, or is it something else?
Apologies if this isn't the correct place to post the issue -- I really wasn't sure.
This is running on Windows 7 -- all libraries and dependencies installed using Pip and confirmed as up-to-date.
My usage example is:
from mkmsdk.mkm import mkm
import os

os.environ['MKM_APP_TOKEN'] = '<snip>'
os.environ['MKM_APP_SECRET'] = '<snip>'
os.environ['MKM_ACCESS_TOKEN'] = ''
os.environ['MKM_ACCESS_TOKEN_SECRET'] = ''

response = mkm.market_place.games()

print response

This SDK was created with Dedicated apps in mind and it was never tested with Widget apps, I'll look into it and release a new version in the future.

I'm more than happy to provide my test keys if you would like to use my widget app for testing.
Thank you so much for the SDK -- it is fantastic!

I'll let you know if I need anything, thank you.

Fixed in PR #3, it will be released with the next milestone in less than a week.
@HanClinto sorry it took so long. :)


On running default app, Flutter throws“ log reader stopped unexpectedly” after switching to Master

PS D:\flutterApp\myapp> flutter run
Running Gradle task 'assembleDebug'...

Running Gradle task 'assembleDebug'... Done                       203.1s (!)
√ Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...                         7.7s
Error waiting for a debug connection: The log reader stopped unexpectedly
Error launching application on Redmi Note 4.

Earlier it was Error waiting for a debug connection: Bad state: No element, I switched to master from stable and now it is throwing this error on run. App is getting installed andnot crashing but throwing this error. i tried Beta, it was Bad state. No element issue again. I tried flutter clean, flutter upgrade. . Nothing seems to work

Hi @ajaytomgeorge
please execute flutter clean in your project and make sure the device proper connected, cable is attached properly  and allow permission to launch on app Redmit Note 4, you should see dialog while launching the app.
Thank you

@TahaTesser I have the same issue. The device is properly connected and cable is attached properly. The problem still persists after flutter clean also.
Is it something to do with the adb?

Hi @TahaTesser . I have repeatedly switched branches Master-Stable-Beta and tried flutter clean many times. The app is getting installed and launching properly. But connection is getting lost by throwing this error. While Beta and Stable throws Bad state element issue, only Master throws this issue

@TahaTesser . I'm not so sure it is the same issue. sure it seems might be.
My code works well on ios device. and also works on macos. the issue occue just when i active the NE related entitles on macos. and it work again if i remove these entitles.
i am pretty sure that this issue happens in latest 2 versions: 1.15.22/1.16.0. Before that, another error occured.

I'm on master channel (just updated). This Issue seen while building for Linux:
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.16.1, on Linux, locale en_GB.UTF-8)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 3.6)
[✓] Connected device (1 available)

• No issues found!

$ flutter run
Launching lib/main.dart on Linux in debug mode...
Building Linux application...
[FATAL:flutter/fml/icu_util.cc(97)] Check failed: context->IsValid(). Must be able to initialize the ICU context. Tried: /home/joe/Documents/Workspace/GitHub/TinkerHub/Training/Flutter/Day_001/Task_1/build/linux/debug/data/flutter_assets
Error waiting for a debug connection: The log reader stopped unexpectedly.

Building Linux application...
[FATAL:flutter/fml/icu_util.cc(97)] Check failed: context->IsValid(). Must be able to initialize the ICU context. Tried: /home/joe/Documents/Workspace/GitHub/TinkerHub/Training/Flutter/Day_001/Task_1/build/linux/debug/data/flutter_assets
Error waiting for a debug connection: The log reader stopped unexpectedly.
Error launching application on Linux.

The tool was updated to correctly report an issue with getting device logs from adb, and to fail right away instead of trying to continue a debug build when debugging won't be possible. I'm not sure we have the right trace messages currently in place to help debug this, but could you please post the results of running with the -v flag? Thanks!

It's pretty verbose, so I put it in the pastebin.

@zanderso @TahaTesser I faced a weird scenario, I had the same issue, while debugging the application on my mobile phone. It continued for a week and automatically while trying to debug after a week, the issue went away. It continued like that for another week and since yesterday the issue has popped up again.
Its a really weird issue.

Update_:
Working on Flutter: v1.16.2-pre.46

@zanderso I'm not able to reproduce the issue, I'll post the log when I find the build fail like this.

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.

I received this same error today as well.
Pastebin of flutter run -v
flutter doctor --verbose
    • Flutter version 1.17.0-3.2.pre at /Users/illiapoplawski/flutter
    • Framework revision 2a7bc389f2 (8 days ago), 2020-04-21 20:34:20 -0700
    • Engine revision 4c8c31f591
    • Dart version 2.8.0 (build 2.8.0-dev.20.10)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/illiapoplawski/Library/Android/sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS
    ✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
      Download at: https://developer.apple.com/xcode/download/
      Or install Xcode via the App Store.
      Once installed, run:
        sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
        sudo xcodebuild -runFirstLaunch
    • CocoaPods version 1.8.4

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] Connected device (1 available)
    • HD1905 • <IP_ADDRESS>:5555 • android-arm64 • Android 10 (API 29)

! Doctor found issues in 1 category.```

Could everyone who still has this problem please file a new issue with the exact descriptions
what happens, logs and the output of 'flutter doctor -v' please.
All system setups can be slightly different so it's always better to open new issues and reference
related issues.
Thank you

Disconnect your phone, go to File: Invalidate Caches / Restart... and click on Invalidate and Restart, connect your phone and that should solve the problem

Disconnect your phone, go to File: Invalidate Caches / Restart... and click on Invalidate and Restart, connect your phone and that should solve the problem

Is there any solution if it happens in VSCodium?

Hello everyone, I'm also experiencing the same error. I did "flutter clean" but still having the same error. I just updated my flutter version yesterday and boom today it's giving me this problem.
Please find the error below:
Launching lib\main.dart on Hisense U962 in debug mode...
Running Gradle task 'assembleDebug'...
√ Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...
Error waiting for a debug connection: The log reader stopped unexpectedly
Error launching application on Hisense U962.
The below output is for "flutter doctor -v":
[√] Flutter (Channel stable, v1.17.1, on Microsoft Windows [Version 10.0.17134.1304], locale en-ZA)
• Flutter version 1.17.1 at C:\src\flutter
• Framework revision f7a6a7906b (2 weeks ago), 2020-05-12 18:39:00 -0700
• Engine revision 6bc433c6b6
• Dart version 2.8.2
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at C:\Users\Ntsikei\AppData\Local\Android\sdk
• Platform android-29, build-tools 28.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
• All Android licenses accepted.
[√] Android Studio (version 3.5)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 42.1.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[!] VS Code (version 1.42.1)
• VS Code at C:\Users\Ntsikei\AppData\Local\Programs\Microsoft VS Code
X Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[!] Connected device
! No devices available
! Doctor found issues in 2 categories.

faced same issue but after flutter clean it is resolved

Hi. I was facing the same issue as well; the app would successfully launch but would lose the connection. I was able to fix this by updating my android SDK build tools and platform tools.

[ ]  I also encountered this problem on mac, but I have solved it。

Error waiting for a debug connection: The log reader stopped unexpectedly
Error launching application on ONEPLUS A3010.

@TahaTesser
Hello,
I got the same error while trying to run my app on a real device with android 10 (the app is running normally on an emulator),
so here is the  whole stack trace
PS C:\Users\hp\Desktop\workspace\flutter\bloc_theming> flutter clean
PS C:\Users\hp\Desktop\workspace\flutter\bloc_theming> flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.17.3, on Microsoft Windows [version 10.0.17763.1039], locale fr-FR)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Android Studio (version 3.5)
[√] VS Code (version 1.46.0)
[√] Connected device (1 available)
• No issues found!
PS C:\Users\hp\Desktop\workspace\flutter\bloc_theming> adb version
Android Debug Bridge version 1.0.41
Version 30.0.2-6538114
Installed as C:\Users\hp\AppData\Local\Android\Sdk\platform-tools\adb.exe
PS C:\Users\hp\Desktop\workspace\flutter\bloc_theming> flutter run -v
https://www.pastiebin.com/5ee34fd4c9fc9

I have had the same problem for a whole week after upgrading to flutter 1.17....i did flutter clean and even downgraded to flutter 1.12 non of them worked...but when i upgraded my sdk tools(specifically flutter)the problem disappeared.

@Bronz0 The log reader message is a red herring. The app stopped for some reason, which caused the log reader to stop. See:
[ +269 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000
cmp=com.bronzo.bloc_theming/.MainActivity (has extras) }

                    Error type 3
                    Error: Activity class {com.bronzo.bloc_theming/com.bronzo.bloc_theming.MainActivity}
                    does not exist.

If you believe that this is an issue with Flutter and not with your app, please file a new issue.
@ngunjiri Please file a new issue with full details.


perf: remove CCIPerfEvent class

Remove the CCIPerfEvent class since it's no longer used in WA.

Thanks!


Delay slider only goes from 1-20

I want to have 0 delay in-between trades, but this is not possible as you cannot set the delay value to 0.

This is intentional.


Parameter Select custom query refresh

Hi,
there is an issue with global variable changes not being passed on to 'parameter select' reports.
e.g. I have two parameter selects for first and last names:

Lastname query:
match (p:Person)
return distinct p.last_name

Firstname query:
call {
  return
    case
       when size($neodash_lastname) > 0   then $neodash_lastname
       else collect {match (p:Person) return distinct p.last_name}
    end as last_names
}
match (p:Person)
where p.last_name in last_names
return distinct p.first_name

The problem is that the fistname list does not always gets updated after a change of the lastname select.
One workaround is to toggle the firstname report to fullscreen but that makes it a bit of a cumbersome userinterface ;) ...
I am using:

NeoDash: 2.4.4

Another workaround is to "clear" all the selected values with the "X" button that appears once you hover above the value box.
If no value is currently selected one must pick one first and "clear" it after.
This will trigger a rerun of the query with the current value of the global $neodash_ parameter.

Is there an event that fires on global parameter changes?
For now I am using the onOpen event...
--- NodePropertyParameterSelect.tsx_org	2024-03-25 11:13:57.411188452 +0930
+++ NodePropertyParameterSelect.tsx	2024-03-25 11:22:15.843667621 +0930
@@ -188,9 +188,12 @@
           return (option && option.toString()) === (value && value.toString());
         }}
         onOpen={() => {
+	  /*
           if (extraRecords && extraRecords.length == 0) {
             debouncedQueryCallback(props.query, { input: `${inputDisplayText}`, ...allParameters }, setExtraRecords);
           }
+	  */
+	  debouncedQueryCallback(props.query, { input: `${inputDisplayText}`, ...allParameters }, setExtraRecords);
         }}
         onBlur={() => {
           // If the user loses focus of the selector, and nothing is selected

Hi @alfredorubin96,

Can you give me a real example of what you want to achieve? It seems a little counterintuitive. Thank you for your help
The above Last Name / First Name example is my real life  use case.

I can pm you a link to my 'test' dashboard if you want me to.
Kind Regards,
Sirko

To add a bit more meat to the bone. Our first-name list has more than 1400 distinct names on it and without limiting the selectable names by the last-names one could not pick one of the names 'above 1000' with standard settings. Plus it is nicer for a user to only display choices of names that actually exists for existing 'people' that have a given last-name and first-name.
Another use case we have is to limit the selectable of local government areas to the ones that are within a selected regional area.
Hope that makes a little more sense.
Kind Regards,
Sirko


Can we convert .proto file which implicitly call many .proto file?

I'm trying to convert my .proto file into binary format tp import converted binay file i6n postman to test with http put call. Over all to test .proto files with http call. But my main .proto files calling many .proto files to get messages? What should i change in the mentioned command? I'm raising it in issue, since i couldn't find other way to reach you?

Did you try it for your use case including multiple proto files?
Please share the errors if you've got any.
If you could share a minimal reproducible example that'd be helpful to reproduce this on my side.


Use external route instead of hardcoded URLs

Trello: https://trello.com/c/PiwkC92B/476-brief-responses-templates-have-hardcoded-urls
Uses the external route for the public opportunity page (found on the Buyer FE app) rather than hardcoding.
Unfortunately we don't yet have an external route in dmutils for /digital-outcomes-and-specialists/opportunities.
Also pulls in the latest utils.api_stubs to make use of framework.family instead of frameworkFramework.

"Unfortunately we don't yet have an external route in dmutils for /digital-outcomes-and-specialists/opportunities." so add one? 😛

You got me there 😹

Cool! Just needs a bump to 39.5.0 and a refreeze now, once utils gets tagged up :)

Done!


Implement a morph::Config class (wrapping json code)

To date, I have about 20 or 30 lines of boilerplate code that has to be incorporated into the start of each model code file. This should all be incorporated into morph::Config

This is done now.


urlopen error [WinError 10051] A socket operation was attempted to an unreachable network

Description of your problem
Hi Experts,
I am trying to scrap web information using spyder, but am getting urlopen error.
Below is my code:
import urllib.request
#specify the url
wiki = "https://en.wikipedia.org/wiki/List_of_state_and_union_territory_capitals_in_India"
#Query the website and return the html to the variable 'page'
page = urllib.request.urlopen(wiki)
#import the Beautiful soup functions to parse the data returned from the website
from bs4 import BeautifulSoup
#Parse the html in the 'page' variable, and store it in Beautiful Soup format
soup = BeautifulSoup(page)
print (soup.prettify())
What is the expected output? What do you see instead?
After printing it i should get html tags for scraping the web page
Below is the Error Log:
File "", line 7, in
page = urllib.request.urlopen(wiki)
File "C:\Program Files\Anaconda3\lib\urllib\request.py", line 163, in urlopen
return opener.open(url, data, timeout)
File "C:\Program Files\Anaconda3\lib\urllib\request.py", line 466, in open
response = self._open(req, data)
File "C:\Program Files\Anaconda3\lib\urllib\request.py", line 484, in _open
'_open', req)
File "C:\Program Files\Anaconda3\lib\urllib\request.py", line 444, in _call_chain
result = func(*args)
File "C:\Program Files\Anaconda3\lib\urllib\request.py", line 1297, in https_open
context=self._context, check_hostname=self._check_hostname)
File "C:\Program Files\Anaconda3\lib\urllib\request.py", line 1256, in do_open
raise URLError(err)
URLError: <urlopen error [WinError 10051] A socket operation was attempted to an unreachable network>
Versions and main components

Spyder Version:
Python Version: 3.5
Qt Version:
PyQt Version:
Operating system: Windows

Thanks & Regards,
Sanjay

@sanju9522 I would advice to use the requests library (included in anaconda)

# Third party imports
import requests
from bs4 import BeautifulSoup

# specify the url
wiki = "https://en.wikipedia.org/wiki/List_of_state_and_union_territory_capitals_in_India"
# Query the website and return the html to the variable 'page'
page = requests.get(wiki)
# Parse the html in the 'page' variable, and store it in Beautiful Soup format
soup = BeautifulSoup(page.content)
print(soup)

Hi goanpeca,
I ran the code request library  as you suggested, but still am getting the same error.
Error Log:
raise ConnectionError(e, request=request)
ConnectionError: HTTPSConnectionPool(host='en.wikipedia.org', port=443): Max retries exceeded with url: /wiki/List_of_state_and_union_territory_capitals_in_India (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000009970E80>: Failed to establish a new connection: [WinError 10051] A socket operation was attempted to an unreachable network',))

@sanju9522 it seems you have network issues. It is not an spyder related problem. See https://stackoverflow.com/questions/23013220/max-retries-exceeded-with-url

Your network don't allow you to use proxy


missing readline in S3OpenRead

Missing readline in S3OpenRead is related to and more in detail explained in https://github.com/piskvorky/gensim/issues/421

Closing as duplicate of #13 .

@ziky90 can you add this?

@piskvorky Where should I add this?

In S3OpenRead... or what do you mean?

Oh sorry I though that this is a different issue.
I can try to look up the default behaviour of readline() and try to implement it during September.


Add multimap literal

The four categories of associative abstract data types (ADTs) are:

Set (no duplicates)
Multiset (duplicates)
Map (key:value pair; no duplicates)
Multimap (key:value pair; duplicates)

It makes sense that there is a collection literal in Dart for each of these four kinds of ADTs since associative ADTs are by far the most common ADTs used in a typical program and lend themselves nicely to literal syntax. Unlike other ADTs such as Stacks which tend to be better off created empty and then pushed to.
Since typing a literal naturally requires an order to be specified, it also makes sense that the default kind of associative ADT chosen is one sorted by insertion order, rather than unordered or sorted by the intrinsic ordering of the objects (Comparable). If the default insertion order is not desired, then the literal could be converted using a dot operator (ex: <int>[1, 2, 3, 4].toSortedList(), assuming SortedList exists).

Dart already supports List literals, which is an Ordered Multiset so that is good.
Dart supports Set and Map literals. Set and Map are unordered ADTs but Dart seems to have made the unfortunate decision to have a leaky abstraction for Set and Map which are technically unordered but their default implementations maintain insertion order. This technically means that their implementations can be changed at any time to unordered data structures but I feel that is very unlikely since the leaky abstraction has undoubtedly resulted in many people relying on the insertion order. Having them be OrderedSet and OrderedMap would be a much better design but I digress since the point is that Dart technically has Ordered Sets and Ordered Maps covered with literals.
Thus, an Ordered Multimap is the only missing associative ADT from Dart's list of collection literals. This is understandable since many people aren't familiar with Multimaps but I feel that they are useful, underappreciated and that they would fit very nicely into Dart's current literal syntax in a completely unintrusive way.

My suggested syntax would be the following:[^1]
final myOrderedMultimap = <String, int>['key': 5, 'key': 3, 'key2: 5', 'key': 5];

This is logical because it uses the current List (Ordered Multiset) syntax and doesn't break any current code or change the rest of the syntax of the language in any way. It also nicely creates symmetry between the Set/Map literal syntax of {}. This would then make it clear that {} is for no-duplicate associative ADTs (regular and multi) and [] is for duplicate associative ADTs (regular and multi).
Of course, this proposal would also require an OrderedMultimap class to be added to the dart:core library as well. However, Google seems to have already created a usable (ordered?) Multimap in quiver.
[^1]: People familiar with common implementations of Multimap will know that there tend to be "List" and "Set" implementations, where "List" allows duplicate values for the same key and "Set" does not. I personally believe this is a misunderstanding of what a Multimap is and that the "List" version is the only true Multimap since a Multimap simply refers to duplicate keys being allowed. The value of each key is still scalar. The idea of a "Set" Multimap is really just a Set of Entries/Pairs. The Guava library for Java has a nice explanation of Multimap that despite implementing both the "List" and "Set" version of a Multimap, makes it clear that a Multimap is not:
a → 1, 2
b → 3
but rather:
a → 1
a → 2
b → 3
despite being potentially implemented as the former.

The Dart platform libraries do not contain a multimap or multiset type to begin with, so adding a literal would be a little ahead of ourselves.
We could add a multimap/multiset interface and default (likely hash-based) implementation.
It would require a little design work, but definitely doable.
(Question: Can a mutlimap contain the same key/value combination more than once? Or will that require a multimultimap?)
Adding syntax gets trickier. We could make any set with repeated values be a multiset, and any map with repeated keys be a multimap, but that's problematic because you can't create an empty multiset/multimap that way, or one not containing repeats  from the start.
We'd need some kind of marker on the literal, and Dart's syntax is pretty loaded around brace blocks already.
Instead of introducing a specific multiset syntax and a specific multimap syntax, I'd be more inclined towards a general "custom collection literal", like what C# has. Maybe MultiSet(){1, 1, 2, 3, 5, 8, 13} (which sadly looks like a function declaration, so we may have to disallow it at the beginning of an expression statement).


Support the FileReader web API

Feature description
The FileReader API enables conversion of Blobs into ArrayBuffer, binary and text strings and data URLs. It is particularly useful when exchanging data with external services.
Proposed solution
Implement the FileReader API.

Most of this is already possible with Tabris. Constructing the data URL string requires a btoa polyfill like abab and knowledge of the media type though.
const arrayBuffer = await blob.arrayBuffer();
const binaryString = await blobToBinaryString(blob);
const textString = await blob.text();
const dataUrlString = 'data:<my-media-type>;base64,' + btoa(await blobToBinaryString(blob));

async function blobToBinaryString(blob) {
    const ab = await blob.arrayBuffer();
    return new Uint8Array(ab).reduce((data, byte) => data + String.fromCharCode(byte), '')
}


dxvk dlls cant loading from wineprefix/drive_c/windows/system32 and syswow64

Software information
x86_64 bit wine-staging 3.21  lutris wine 3.15  precompiled binary
System information

OS: debian9 stable kernel 4.18
GPU: intel+nvdia
Driver:mesa 18.2 + intel opensource + nvidia driver
Wine version: 3.xx
DXVK version: 0.94

i decompress wine binary to /tmp/wine, witch contains bin,lib,lib64,share. i always use wine that way including myself compile version. then copy x32 and x64 dlls to wineprefix/.../system32 and syswow64, set env WINEARCH=win32 or win64; WINEDLLOVERRIDES="dxgi,d3d11,d3d10,d3d10_1,d3d10core=n" to test wine dxvk game, but can not found and load the dxvk dll. only i copy the dlls to game exe directory runs ok.
i copy native d3dx9_xxx.dll to wineprefix/../system32 and set env WINEDLLOVERRIDES for testing some dx9 game, its ok.
so in my case dxvk dll cant load from wineprefix?

It works fine that way if you just follow the instructions in the readme.


Add Email Capture to Website

Along the lines of "Need help? Contact Us" with a link to  https://www.bitovi.com/streamable#hs_cos_wrapper_widget_1485893088244.
This could go above the article block.

@moschel @matthewp this is what I had in mind:

Looks great!

Looks good to me!
On Mon, Feb 11, 2019 at 9:30 AM Matthew Phillips<EMAIL_ADDRESS>wrote:

Looks great!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/bitovi/velocirender/issues/57#issuecomment-462369825,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABWpCR8-eNxvLPeXx0KwV8m4Hebcwonks5vMYx7gaJpZM4awi-s
.


Tray Icon not appearing

Microsoft PowerToys version
0.84.0
Installation method
Microsoft Store
Running as admin
No
Area(s) with issue?
Awake
Steps to reproduce
Awake icon doesn't appear on taskbar with this new release
✔ Expected Behavior
No response
❌ Actual Behavior
No response
Other Software
No response

/dup #34673


time: TestTimerModifiedEarlier failures with "timer took too long" on plan9-arm

#!watchflakes
post <- builder ~ `^plan9` && pkg == "time" && test == "TestTimerModifiedEarlier" && `timer took too long`

--- FAIL: TestTimerModifiedEarlier (10.08s)
    sleep_test.go:552: timer took too long (10.006295837s)
    sleep_test.go:561: 1 failures
FAIL
FAIL	time	13.241s

greplogs --dashboard -md -l -e 'FAIL: TestTimerModifiedEarlier'
2022-01-04T21:10:15-1c8f9d2/plan9-arm
2021-12-02T23:02:33-8835343/plan9-arm
2021-11-05T21:34:10-bb53fd7/plan9-arm
The failing test is the regression test for #47329.
CC @millerresearch @ianlancetaylor

I wonder if this may be related to the race fixed in https://go.dev/cl/470215.

I wonder if this may be related to the race fixed in https://go.dev/cl/470215.

It doesn't look related to me. A possible clue is that the delayed read of the reset-into-the-past timer always occurs after just over 10 seconds, ie when the other (10 second) deadline timer fires. Hypothesis: the select for some reason is not detecting that the timer has already expired, so the goroutine is descheduled until the deadine timer fires. The deadline timer reschedules the goroutine  which then finds  both timer channels ready, and inputs from the first one giving the observed error.
But what's special about plan9-arm builders here? I don't think the timer or scheduling logic is different from other platforms. But they are Raspberry Pi boards with small RAM and SD cards as swap device, so potentially subject to extremely long delays in wall-clock time.

Should we remove the Skip and see if it's still happening?

Yes, it's worth a try.


Fix Golang Lint Issues

We should fix the issues that the golint CI is warning about.

It is a good idea. I wish I had the time to do it. If I can find time to do it, I will look at it. Otherwise, feel free to give it a try.

It is a good idea. I wish I had the time to do it. If I can find time to do it, I will look at it. Otherwise, feel free to give it a try.

Working on it in #14


chore: angular 19

Proposed change

Related issues

- No issue associated -

Please notice that the rollback of the change in #2644 should be part of this PR.

[ ] Rollback #2644


bug in 2023.4.60821-latest

Today's update in snap (2023.4.60821-latest) brokes Lens in Ubuntu 18.04.6 LTS with the following error:
Error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /snap/kontena-lens/214/resources/app.asar.unpacked/node_modules/node-pty/build/Release/pty.node)
older versions work well

Same issue

Same issue with Ubuntu 18.04.6 LTS as well.
More details:
A JavaScript error occurred in the main process Uncaught Exception: Error: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28' not found (required by /opt/Lens/resources/app.asar.unpacked/node_modules/node-pty/build/Release/pty.node)
at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1812)
at Module._extensions..node (node:internal/modules/cjs/loader:1203:18)
at Object.func [as .node] (node:electron/js2c/asar_bundle:5:2039)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:829:12)
at c._load (node:electron/js2c/asar_bundle:5:13343)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/opt/Lens/resources/app.asar/node_modules/node-pty/lib/unixTerminal.js:26:11)
at Module._compile (node:internal/modules/cjs/loader:1118:14)
`

Hi, the snap beta channel contains a version which is a little old, but it works (only tested on Ubuntu 18.04.6 LTS).
Obviously, it's not a solution for the problem, but it enabled me to continue my working-day :-)

Is it going to be fixed or do I have to downgrade?

Ran into this earlier too, it seems the culprit is NodeJS https://github.com/nodesource/distributions/issues/1392#issuecomment-1136582618

@igorbrigadir Probably not since we are still using NodeJS 16 (due to the version of electron the most recent versions of Lens Desktop are using)

Ah ok! On Ubuntu 18.04.6 LTS, this is the full error when installing the latest deb via apt https://docs.k8slens.dev/getting-started/install-lens/#debian and running lense-desktop:
innerError Error: Cannot find module '../build/Debug/pty.node'
Require stack:
- /opt/Lens/resources/app.asar/node_modules/node-pty/lib/unixTerminal.js
- /opt/Lens/resources/app.asar/node_modules/node-pty/lib/index.js
-<EMAIL_ADDRESS>- /opt/Lens/resources/app.asar/static/build/main.js
-
    at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
    at Module._load (node:internal/modules/cjs/loader:785:27)
    at c._load (node:electron/js2c/asar_bundle:5:13343)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/opt/Lens/resources/app.asar/node_modules/node-pty/lib/unixTerminal.js:30:15)
    at Module._compile (node:internal/modules/cjs/loader:1118:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
    at Module.load (node:internal/modules/cjs/loader:988:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/opt/Lens/resources/app.asar/node_modules/node-pty/lib/unixTerminal.js',
    '/opt/Lens/resources/app.asar/node_modules/node-pty/lib/index.js',
<EMAIL_ADDRESS>    '/opt/Lens/resources/app.asar/static/build/main.js',
    undefined
  ]
}
A JavaScript error occurred in the main process
Uncaught Exception:
Error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /opt/Lens/resources/app.asar.unpacked/node_modules/node-pty/build/Release/pty.node)
    at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1812)
    at Module._extensions..node (node:internal/modules/cjs/loader:1203:18)
    at Object.func [as .node] (node:electron/js2c/asar_bundle:5:2039)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Module._load (node:internal/modules/cjs/loader:829:12)
    at c._load (node:electron/js2c/asar_bundle:5:13343)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/opt/Lens/resources/app.asar/node_modules/node-pty/lib/unixTerminal.js:26:11)
    at Module._compile (node:internal/modules/cjs/loader:1118:14)
mesa: for the --simplifycfg-sink-common option: may only occur zero or one times!
mesa: for the --global-isel-abort option: may only occur zero or one times!
mesa: for the --amdgpu-atomic-optimizations option: may only occur zero or one times!

I tried the latest AppImage instead, https://api.k8slens.dev/binaries/Lens-2023.4.141316-latest.x86_64.AppImage and got a similar error.
An older AppImage, https://downloads.k8slens.dev/ide/Lens-2023.1.110749-latest.x86_64.AppImage worked for me.

ubuntu-16.04 has same error.
versions
$ dpkg -l | grep lens
ii  lens                                          2023.4.141316-latest                            amd64
ii  unity-lens-applications                       7.1.0+16.04.20160701-0ubuntu1                   amd64        Application lens for unity
ii  unity-lens-files                              7.1.0+16.04.20151217-0ubuntu1                   amd64        File lens for unity
ii  unity-lens-music                              6.9.1+16.04-0ubuntu1                            amd64        Music lens for unity
ii  unity-lens-photos                             1.0+14.04.20140318-0ubuntu1                     all          Photos lens for Unity
ii  unity-lens-video                              0.3.15+16.04.20160212.1-0ubuntu1                amd64        Unity Video lens

There is now a bionic channel on the Lens Debian repo for Ubuntu 18.04 versions of Lens Desktop. Instructions here: https://docs.k8slens.dev/getting-started/install-lens/#debian


DM-42147: Further updates for rubin-env 8.

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

Are we also going to bump numpy or do you want that as a separate test env?


Create pop-up component

Create an pop-up component

Make sure you use angular material components!

Requirements
Popup component must:

be able to contain any text content
contain YES button which will trigger the action function
contain CANCEL button which will cancel and close popup

Example
<pop-up      [text]="Are you sure to delete /"{{walletName}}/" and all related data?"      (action)="deleteWallet(walletId)"></pop-up>

Tips

Use HTML5 tags with semantic meaning e.x. dialog or aside (I would use aside if you ask me 😉)

I take this issue, can you assign me @jkbkupczyk ?


Social signup

Hi sahat,
Some web sites like airbnb offer signup with social accounts and some don't. In satellizer live demo the later is the case.
I prefer to offer social signup, since the users may not go with the login link and miss the social authentication.
In my app, first I built the login flow with satellizer. Then, I compared the facebook links on signup and login pages of airbnb. They looked the same. I decided to do the same for the signup, i just copied the relevant stuff in my login view and login controller to my signup view and controller without any change, and that's all. And it seems there is no problem.
Suspicious... Am i missing some point?
Thanks

No, that's exactly how it works. The logic that decides whether to create a new account or sign-in with an existing  one is on the server.


Duplicated examples in docs of rule Ensure each container probe has a configured frequency

https://hub.datree.io/built-in-rules/ensure-probe-frequency

They are different, look closely 🧐 :)


Update attack-surface-reduction-faq.yml

Per the lastest update https://docs.microsoft.com/en-us/mem/configmgr/hotfix/2111/12896009#:~:text=The Configuration Manager console now allows wildcards when defining Microsoft Defender Attack Surface Reduction (ASR) rules Microsoft endpoint configuration manager supportswildcards

Per issue#https://github.com/MicrosoftDocs/microsoft-365-docs/issues/9675

@JohanFreelancer9 Please copy review

Docs Build status updates of commit e55192c:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-365/security/defender-endpoint/attack-surface-reduction-faq.yml
:white_check_mark:Succeeded

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

Docs Build status updates of commit d5f4f03:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-365/security/defender-endpoint/attack-surface-reduction-faq.yml
:white_check_mark:Succeeded

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

Docs Build status updates of commit 49d33a5:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-365/security/defender-endpoint/attack-surface-reduction-faq.yml
:white_check_mark:Succeeded

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

@jweston-1 Please merge this PR. Thanks

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

File
Status
Preview URL
Details

microsoft-365/security/defender-endpoint/attack-surface-reduction-faq.yml
:white_check_mark:Succeeded

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

looks good. merging.


Replace Ant Editable with RIEK

Replace the builder title with RIEK. See https://github.com/kaivi/riek.
Other improvements:

Remove the edit icon.
Increase the font size.

Done in 24a4de4.