Add -OutputFile option

What did you ever do @jeffchulg , I know it's been a while. Would appending *> outputfile.txt work for you? This would redirect all powershell streams to the file.

Hi,
personally, I modified Invoke-SqlCmd2 to do this:
if ($MessagesToOutput) {
...
}
else {

    if($OutputFile) {
                        $conn.FireInfoMessageEventOnUserErrors=$false # Shiyang, $true will change the SQL exception to information
                        $OutToFileHandler = [System.Data.SqlClient.SqlInfoMessageEventHandler] { Out-File -FilePath $OutputFile -InputObject "$($_)" -Append }
                        $conn.add_InfoMessage($OutToFileHandler)
                    }

Heard that. Glad it's working. Is the behavior any different than appending *> file.txt while also including the MessagesToOutput parameter? Or does using your new OutputFile parameter add something?

Well, it's a very old subject and I don't remember all the testing I made before, but, according to my comment :
Let's consider this simple case:

PRINT 'test log message';
SELECT 1

-  `-Verbose` option will add verbose messages from Invoke-SqlCmd execution, plus 'test log message', and the user will get back the value of 1.
- `-MessagesToOutput` will return an array of values: ('test log message',1)

This means you cannot instantly differenciate between a logging message, a verbose message from the PowerShell function and an actual resultset.
The -OutputFile option will tell to Invoke-SqlCmd to write to a text file any text PRINTED during T-SQL execution (leaving exception contents apart) and return results sets as Invoke-SqlCmd would do without -Verbose option.
I'm not sure that a complete redirection as you propose would do that.

I would think then all you would need is the -Verbose parameter and then append 4> outputfile.txt for the verbose PRINT messages.

Could you try to raise an error and check that this error would be also thrown inside Powershell ?

Yeah it does. I tested the below which does output to the file. All streams in powershell can be redirected like niphlod said above.
Invoke-sqlcmd2 localhost -Database db -Query "print 'hello world'
raiserror(N'hello error' ,10 ,1 )
select 1" -Verbose 4> t.txt

and the terminating error
Invoke-sqlcmd2 localhost -Database db -Query "print 'hello world'
raiserror(N'hello fix this problem' ,16 ,1 )
select 1" -Verbose 4> t.txt

Well, it's almost what I want, but here is the content I get with your test script:
get-content .\t.txt

Running Invoke-Sqlcmd2 with ParameterSet 'Ins-Que'.  Performing query 'print 'hello world'
raiserror(N'hello error' ,10 ,1 )
select 1'
Querying ServerInstance 'localhost'
hello world
hello error

With the OutputFile parameter, only "Hello world" would be written

The source code on the Gallery is different than what is in this code base even the those version numbers are the same.
You want to pull the code directly from this code base. The code on github doesn't include the extra verbose output and would function more to your liking.


[Snyk] Upgrade dotenv from 16.0.3 to 16.1.2

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade dotenv from 16.0.3 to 16.1.2.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 5 versions ahead of your current version.
The recommended version was released 21 days ago, on 2023-05-31.

Release notes

Package name: dotenv

16.1.2 - 2023-05-3116.1.2

16.1.1 - 2023-05-31v16.1.1

16.1.0 - 2023-05-30Update CHANGELOG and README

16.1.0-rc2 - 2023-05-21Version 16.1.0-rc2

16.1.0-rc1 - 2023-04-0716.1.0-rc1

16.0.3 - 2022-09-29v16.0.3

    from dotenv GitHub release notes

Commit messages

Package name: dotenv

3f40e12 16.1.2
78e5a02 Merge pull request #744 from motdotla/configDotenv
53bbc1f update CHANGELOG
d0675f2 Expose configDotenv as public method
66080bd v16.1.1
6287f15 Merge pull request #742 from motdotla/crypto-false-for-browser
0d94e71 Add type definition for decrypt function
cb9a51a Add crypto to browser false list
ef48935 Update CHANGELOG and README
d5b4150 Version 16.1.0
f0e6daa Add to FAQ
cd6b943 Update README
1ba1180 Update README
a0cab9a Include 12.x in ci run
7efffc1 Retrigger. appveyor hook removed
6eb3879 Remove appveyor reference
88b5d98 Merge pull request #739 from motdotla/github-ci
5cf0f61 Remove travis and appveyor
517107b Add ci workflow to github
de683f0 Update CHANGELOG
5cadb4a Add npm fund link
5f46583 Create FUNDING.yml
979915c Merge pull request #737 from motdotla/dependabot/npm_and_yarn/json5-1.0.2
3304078 Update README

Compare

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Upgraded


Why is go fmt soft on newlines in between code?

go fmt standardization of code is good in most cases but it goes soft on newline usage within code.
Why not have (one newline after statement and one newline before block) as a standard. This will avoid code uniformity.
Example:

var myVar string

myVar = "Here is next statement"

if myVar != "" {
    myVar = "Here in the if block"
}
println(myVar)

Would become

var myVar string
myVar = "Here is next statement"

if myVar != "" {
   myVar = "Here in the if block"
}

println(myVar)

IMO newlines are often used like paragraphs in a book, they separate distinct ideas. How would you suggest this fragment be formatted?
err := fn()
if err != nil {
   // clean up
   return err
}

IMO newlines are often used like paragraphs in a book, they separate distinct ideas. How would you suggest this fragment be formatted?
err := fn()
if err != nil {
   // clean up
   return err
}

I agree that go fmt should enforce some newlines, I'm not sure I agree with the rules you came up with, as this would mean that simple error checks have a new line before them.

newline after a block ({}\n) or multiple continious blocks (if {} else{}\n), this means a newline after every error check

the newline isn't added if the following line also closes a block

func main() {
    for {
    } // no newline here
}

There might be other cases where it makes sense to inject a newline.
I think this is highly opinonated and we should explore this with gofumpt  first.

I agree that go fmt should enforce some newlines, I'm not sure I agree with the rules you came up with, as this would mean that simple error checks have a new line before them.

newline after a block ({}\n) or multiple continious blocks (if {} else{}\n), this means a newline after every error check

the newline isn't added if the following line also closes a block

func main() {
    for {
    } // no newline here
}

There might be other cases where it makes sense to inject a newline.
I think this is highly opinonated and we should explore this with gofumpt  first.

Please see https://github.com/golang/go/wiki/Questions. Closing.

Please see https://github.com/golang/go/wiki/Questions. Closing.


Add openstack cloudprovider

I would like to run this in Openstack , and have easy access to EBS volumes, LB, etc.

I do not have access to a working OpenStack environment.  If you do, feel free to pursue this.

Yes I have


update line number and file name location for failure

This allows Xcode to click and jump to failing line in spec

Thanks Paul!


Uncaught Error: dlopen(/private/var/folders/cp/8zcr3l6155n7ctd2dy8xl1780000gn/T/AppTranslocation/...

[Enter steps to reproduce:]

...
...

Atom: 1.58.0 x64
Electron: 9.4.4
OS: macOS 11.5.1
Thrown From: Atom Core
Stack Trace
Uncaught Error: dlopen(/private/var/folders/cp/8zcr3l6155n7ctd2dy8xl1780000gn/T/AppTranslocation/F215D1A0-4986-4A03-BF80-31A4F94B61A3/d/Atom.app/Contents/Resources/app.asar.unpacked/node_modules/keyboard-layout/build/Release/keyboard-layout-manager.node, 1): no suitable image found.  Did find:
/private/var/folders/cp/8zcr3l6155n7ctd2dy8xl1780000gn/T/AppTranslocation/F215D1A0-4986-4A03-BF80-31A4F94B61A3/d/Atom.app/Contents/Resources: not a file
At electron/js2c/asar.js:140

Error: dlopen(/private/var/folders/cp/8zcr3l6155n7ctd2dy8xl1780000gn/T/AppTranslocation/F215D1A0-4986-4A03-BF80-31A4F94B61A3/d/Atom.app/Contents/Resources/app.asar.unpacked/node_modules/keyboard-layout/build/Release/keyboard-layout-manager.node, 1): no suitable image found.  Did find:
	/private/var/folders/cp/8zcr3l6155n7ctd2dy8xl1780000gn/T/AppTranslocation/F215D1A0-4986-4A03-BF80-31A4F94B61A3/d/Atom.app/Contents/Resources: not a file
    at process.func [as dlopen] (electron/js2c/asar.js:140:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1034:18)
    at Object.func [as .node] (electron/js2c/asar.js:149:18)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module._load (electron/js2c/asar.js:769:28)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (internal/modules/cjs/helpers.js:74:18)
    at customRequire (/private/var/folders/cp/8zcr3l6155n7ctd2dy8xl1780000gn/T/AppTranslocation/F215D1A0-4986-4A03-BF80-31A4F94B61A3/d/Atom.app/Contents/Resources/app/static/<embedded>:1:756278)
    at get_KeyboardLayoutManager (/private/var/folders/cp/8zcr3l6155n7ctd2dy8xl1780000gn/T/AppTranslocation/F215D1A0-4986-4A03-BF80-31A4F94B61A3/d/Atom.app/Contents/Resources/app/static/<embedded>:14:2894476)
    at get_manager (/private/var/folders/cp/8zcr3l6155n7ctd2dy8xl1780000gn/T/AppTranslocation/F215D1A0-4986-4A03-BF80-31A4F94B61A3/d/Atom.app/Contents/Resources/app/static/<embedded>:14:2894578)
    at Object.getCurrentKeyboardLayout (/private/var/folders/cp/8zcr3l6155n7ctd2dy8xl1780000gn/T/AppTranslocation/F215D1A0-4986-4A03-BF80-31A4F94B61A3/d/Atom.app/Contents/Resources/app/static/<embedded>:14:2894704)
    at e.keystrokeForKeyboardEvent (/private/var/folders/cp/8zcr3l6155n7ctd2dy8xl1780000gn/T/AppTranslocation/F215D1A0-4986-4A03-BF80-31A4F94B61A3/d/Atom.app/Contents/Resources/app/static/<embedded>:14:1119649)
    at KeymapManager.keystrokeForKeyboardEvent (/private/var/folders/cp/8zcr3l6155n7ctd2dy8xl1780000gn/T/AppTranslocation/F215D1A0-4986-4A03-BF80-31A4F94B61A3/d/Atom.app/Contents/Resources/app/static/<embedded>:11:1224825)
    at KeymapManager.handleKeyboardEvent (/private/var/folders/cp/8zcr3l6155n7ctd2dy8xl1780000gn/T/AppTranslocation/F215D1A0-4986-4A03-BF80-31A4F94B61A3/d/Atom.app/Contents/Resources/app/static/<embedded>:11:1222810)
    at WindowEventHandler.handleDocumentKeyEvent (/private/var/folders/cp/8zcr3l6155n7ctd2dy8xl1780000gn/T/AppTranslocation/F215D1A0-4986-4A03-BF80-31A4F94B61A3/d/Atom.app/Contents/Resources/app/static/<embedded>:11:286651)

Commands
     -9:03.0 julia-client:start-julia (atom-pane.pane.active)
     -6:59.2.0 core:confirm (input.hidden-input)
  2x -6:54.1.0 core:backspace (input.hidden-input)
  3x -6:47.7.0 core:confirm (input.hidden-input)
  2x -3:24 core:backspace (input.hidden-input)
  7x -3:19.3.0 core:confirm (input.hidden-input)

Non-Core Packages
atom-julia-run 1.0.5
ink 0.12.6
julia-client 0.12.6
language-julia 0.21.2

I'm using an M1 Macbook Pro and am unable to install the Julia package in Atom.

@dgroves888 is this happening after you attempt to install Julia package? or After you have installed the package?

The problem has been solved. Thanks for your input!


{include:file:...} not embedding file in yri output

At the top of my source file, I've got:
# {include:file:README.md}
module MyAwesomeMod
  #...

The {include:file:README.md} seems to work when I look at the HTML output of yardoc, but it doesn't embed the README.md file when I use yri:
% yri MyAwesomeMod
---------------------------------------------------- Module: MyAwesomeMod

     {include:file:README.md}

 ...

This is now supported.


bit better documentation would be nice

Any chance for some examples ? the only example, how to use your package can be found here: https://stackoverflow.com/questions/29491148/go-how-can-i-print-to-an-actual-printer/29493081 any chance to get more examples ? if it's possible to print image for example ?

Any chance for some examples ?

What examples are your after. github.com/alexbrainman/printer has bunch of tests - you could look at those tests for some examples. There is also github.com/alexbrainman/printer/cmd/print program - that can be use to see how to use this package.

the only example, how to use your package can be found here: https://stackoverflow.com/questions/29491148/go-how-can-i-print-to-an-actual-printer/29493081

That example is fine.

ny chance to get more examples ?

What more examples do you need?

if it's possible to print image for example ?

I do not know how to print image using this package.
Alex

Hi Alex,
I would love to see how you can change printing params ? Can you ?
For example:
https://github.com/alexbrainman/printer/blob/master/cmd/print/print.go
you are managing multiple copies via loop, each printer during printing process has option to give no of copies - if there is any way to manage that ?

I would love to see how you can change printing params ? Can you ?

Your question is too general. What printer parameters would you like to change?

you are managing multiple copies via loop, each printer during printing process has option to give no of copies - if there is any way to manage that ?

I do not know how to change number of copies to be printed. That is why I print same data multiple times.
Alex

All printer parameters - from generic like paper size, or mentioned earlier no of copies. To more detailed specific to each printer like: media type, print quality, colour correction and so on.

All printer parameters - from generic like paper size, or mentioned earlier no of copies. To more detailed specific to each printer like: media type, print quality, colour correction and so on.

I don't know of a way to change / read any of those parameters.
I never had the need for it.
Alex

Would you be able to explore this subjects (printing images / changing default printing parameters) ? I'm happy to pay for your time, and keep project open sourced ?

Would you be able to explore this subjects (printing images / changing default printing parameters) ?

Your requests are still too general. If you provide more details I will try and help, when I have free time.

I'm happy to pay for your time, and keep project open sourced ?

I don't have much free time to sell. Sorry
Alex

ok


Building on Mac OS X 10.11 El Capitan

There were updates to pfvar.h on El Capitan, including a dependency of pfvar.h on if_var.h, so SSLsplit needs an update to compile on El Capitan. Please let me know if you run El Capitan and are willing to help.

Implemented in 88973e1


Add pt-BR translation for Bubble Sort

Hi @rafaelncarvalho. The file src/algorithms/sorting/bubble-sort/README.pt-BR.md is already in master. Feel free to update it if needed.


MagnaElectronics : Company logo displayed 2 times; Graph without active data; Careers and Targetare link does not work

ENVIROMENT: production
URL: https://scrapers.peviitor.ro/
Browser: Chrome
Device: laptop
OS: Windows 10
STEPS TO REPRODUCE:

Open URL in browser
Type 'MagnaElectronics' in Search bar
Check the logo
Click on one logo
Check graph
Go to logo -> Click on Careers
Go to logo -> Click on Targetare.ro

EXPECTED RESULTS:
The 'MagnaElectronics' Company logo appears once
The graph is active, it shows the number of valid jobs in the last few days
Careers link opens correctly
Targetare link opens correctly
ACTUAL RESULTS:
The 'MagnaElectronics' Company logo appears 2 times
Graph without active data.
Careers link does not open 'MagnaElectronics' career section
Targetare link does not open targetare.ro

Fixed!

After retesting careers and targetare link still not working

I don't see any problem!!


[draft/wip] add peer-pod-controller

This adds a controller to handle the peer-pod components lifecycle as described in issue #328.
It is a minimal implementation and needs further improvement in the future but it is enough to get started.
I propose that we include this in a subdirectory of peer-pod-controller.
Fixes #328
Signed-off-by: Jens Freimann<EMAIL_ADDRESS>

This adds a controller to handle the peer-pod components lifecycle as described in issue #328.
It is a minimal implementation and needs further improvement in the future but it is enough to get started.
I propose that we include this in a subdirectory of peer-pod-controller.
Fixes #328
Signed-off-by: Jens Freimann<EMAIL_ADDRESS>
Thanks @jensfr for the PR. Added few comments and questions. Ptal.

@bpradipt Thanks for the review! I think I addressed all your comments now, please take another look.


Rename BigDigit module to big_digit

Without this rename, the library fails to compile on Rust master, since rust-lang/rust#21269 has landed.

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @huonw (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see CONTRIBUTING.md for more information.

Thanks!


Support harvester v1.1.0

Related issues
https://github.com/harvester/harvester/issues/2979
Depend PR
https://github.com/harvester/terraform-provider-harvester/pull/54

After https://github.com/harvester/terraform-provider-harvester/pull/54 merged. need change terraform-provider-harvester version in go.mod


classes: wide, changes the view of the code-block

[ ] This is a question about using the theme.
[ ] This is a feature request or enhancement.
[x] I believe this to be a bug with the theme.

[ x ] I am using the latest version of the theme.
[ x ] I have updated all gems with bundle update.
[ x ] I have tested locally with bundle exec jekyll build.

Environment informations

**Minimal Mistakes version:latest
**Jekyll version:3.7.3
**GitHub Pages hosted:not-yet yes/no
*Operating system: ubuntu *

Expected behavior
Using classes: wide should not break the aesthetics of the code block.

Steps to reproduce the behavior

Set classes: wide in the Front End Yaml Matter on a blog post with a code block in it.
The code block looses its black background.

Weird. This is happening only on the localhost but not on github pages.
url - http://visualist.in/House-hunting-with-data/

It's different because you're not using the GitHub Pages gem to test locally.
You need to update your Gemfile and settings so they mirror what GitHub uses. The version of Jekyll and other dependencies aren't the latest which can account for differences.

Oh. I’m new to Ruby and using it just for setting up the blog. Could you
please list the gems that i should be using and their version numbers ?
On Thu, 8 Mar 2018 at 12:04 AM, Michael Rose<EMAIL_ADDRESS>wrote:

It's different because you're not using the GitHub Pages gem to test
locally.
You need to update your Gemfile and settings
https://help.github.com/articles/setting-up-your-github-pages-site-locally-with-jekyll/
so they mirror what GitHub uses. The version of Jekyll and other
dependencies aren't the latest which can account for differences.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mmistakes/minimal-mistakes/issues/1567#issuecomment-371238042,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPLM4ocX7l2LOE9aylBn3ofM6K221fPks5tcCg2gaJpZM4Sg5DP
.

--
(Handheld)


feat: update deps, local-only skate

Do we still need the Dockerfile?

migration script, assuming the previous version of skate available as ./old-skate:
#!/bin/bash
./old-skate list-dbs | while read -r db; do
  ./old-skate list -k "$db" | while read -r key; do
    ./old-skate get "$key$db" | skate set "$key$db"
  done
done


Fake generics on C# operator interfering causing error on translation

On C# operators, WebSharper's code reader was adding additional type information as a fake generic argument of the op_... method, to handle Nullable types with the same logic as the F# operators. This causes an error during translation.
Easiest fix is to check if the method is generic at all, if not, skip the type argument resolution entirely.

fixed in 1bc1257100bde096a7a0399ef736d6b9c581b4bf


is there a need for checkout with the stale action?

Start Date
Hi there!
Looks like discussions are not available yet; apologies for posting in the issue tracker.
I noticed in the workflow stale.yml you have added steps for harden runner and the checkout action. Are you just following the same template for the other workflows, or is there a need to check out the repo before being able to parse issues?
As far as I know, GitHub issue tracker is separate from the repo content

Hello @Bad3r,
Many thanks for your attention to wr-projects/github-template.
Regarding your incident, I investigated at actions/stale and I could see that they indicate in their repo-token documentation: ${{ github.token }}
So I went with the assumption to apply the same strategy as all other workflows requiring a PAT.
Did I bring you the expected answer?
Have a nice day,
Best regards.
Grégoire FAVREAU - WRProjects

@GregoireF Thanks for the quick response!
honestly I am new to GH actions and stale specifically. I started looking into it because we want to use it for the Logseq project:
https://github.com/logseq/logseq/pull/8125

However, maybe I'm doing it wrong and it's not necessary?

Based on the documentation you linked I think its good to have (?) assuming PAT gives it all user permissions.
I am confused because they recommend adding the following permissions to the workflow:
https://github.com/actions/stale#recommended-permissions
Not sure how that compares security wise to using a custom app token with limited permissions.

@Bad3r, as you may have noticed through my stale action I decided to add the following action: peter-murray/workflow-application-token-action which allows me to create a GitHub Apps in order to provide better tokens close to a PAT but having granular restriction possibilities according to your need.
Also, I just recently added permissions to the workflow in order to respect the security requested on the workflows by GitHub directly or even StepSecurity.
Excuse me for the somewhat unstable workflow, we are in development on this project. Our goal is to provide a reusable model is safe for opensource.

Yes I noticed. I would like to improve logseq handling of tokens in scripts based on your template. It's been already an extremely helpful reference.
Do you have reading recommendations on the best way to set up the current Auth system?
Do you create a separate app for each actions with the required permissions? I noticed that github actions scheme allows for limiting app tokens inside the workflow.
I am not sure if I should create an app for each action or an app with all permissions required by all actions. Then limiting the permission scope in the yml file

@Bad3r, I must be honest with you that I've mostly analyzed a lot of GitHub Actions trying to keep in mind the DevSecOps aspect.
What I can recommend at this time, is to actually run most of your GITHUB_TOKEN through the peter-murray/workflow-application-token-action job allowing you to create internal GitHub applications for your organization/person to do manually. The process can be found here for creating GitHub Apps. However, it is necessary to be vigilant as an incident, on their side has been raised and I need to pay more attention to it in the next few days. You should also store your token in the actions/checkout process as it is advised at the moment because in my opinion, it seems to make more sense than what is proposed in most workflows...
It is not necessary to create an application for each action, it is rather necessary to create an application for each action requiring the use of a PAT with authorization requests.
Also, after a read today, I can confirm that it is necessary to use permissions in order to meet security standards for GitHub Actions requiring permissions.
It is considered at the moment that any use of a PAT requires :
permissions:
  contents: read

Thank you for the information. I'll look more into the topic as my knowledge is lacking.
once discussions is setup; please move this issue to a discussion as I think it might be valuable for other users. I also would like to continue this discussion after more reading on the subject.
I look forward to seeing how this project progress over time! Thank you for all the hard work!

Thank you for your interesting question and your attention to this project.
We will gladly move your question to the discussion threads once implemented.
I will be happy to provide you with additional information in the future.

@GregoireF I did more reading on the topic. First, I want to start by defining the different authentication mechanisms discussed.

The GITHUB_TOKEN

This token is intentionally scoped to the single repository that invoked the workflow, and can have the same level of access as a write-access user on the repository. The token is created before each job begins and expires when the job is finished. For more information, see "Authenticating with the GITHUB_TOKEN."
The GITHUB_TOKEN should be used whenever possible.

GitHub App tokens

GitHub Apps can be installed on select repositories, and even have granular permissions on the resources within them. You could create a GitHub App internal to your organization, install it on the repositories you need access to within your workflow, and authenticate as the installation within your workflow to access those repositories.

Personal access tokens

You should never use a personal access token (classic). These tokens grant access to all repositories within the organizations that you have access to, as well as all personal repositories in your personal account. This indirectly grants broad access to all write-access users of the repository the workflow is in.
If you do use a personal access token, you should never use a personal access token from your own account. If you later leave an organization, workflows using this token will immediately break, and debugging this issue can be challenging. Instead, you should use a fine-grained personal access tokens for a new account that belongs to your organization and that is only granted access to the specific repositories that are needed for the workflow. Note that this approach is not scalable and should be avoided in favor of alternatives, such as deploy keys.

GITHUB_TOKEN != PTO
These definitions are from Security hardening for GitHub Actions - GitHub Enterprise Cloud Docs.
As you can see, GitHub recommends using GITHUB_TOKEN whenever possible.
Here is the default GITHUB_TOKEN permissions as described in Automatic token authentication - GitHub Docs:
| Scope | Default access
(permissive) | Default access
(restricted) | Maximum access for
pull requests from
public forked repositories[†] |
| --- | --- | --- | --- |
| actions | read/write | none | read |
| checks | read/write | none | read |
| contents | read/write | read | read |
| deployments | read/write | none | read |
| id-token | none | none | read |
| issues | read/write | none | read |
| metadata | read | read | read |
| packages | read/write | none | read |
| pages | read/write | none | read |
| pull-requests | read/write | none | read |
| repository-projects | read/write | none | read |
| security-events | read/write | none | read |
| statuses | read/write | none | read |
The permissions for the token [can be modified](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token) and scoped per job, as described in Assigning permissions to jobs - GitHub Docs.
## https://github.com/peter-murray/workflow-application-token-action/
In the description, it's explained why you might want to use this over the default and secure GitHub Token:
> Why would you want to do this? Well the GITHUB_TOKEN whilst having an expiry, has some protections around creating events that prevent downstream GitHub Actions workflow from triggering. This prevents recursive loops from workflows, but there are a number of valid types of workflows that may require or desire triggering downstream GitHub Actions Workflows.
In other words; this action is used to circumvent some protections in GitHub token.
I am opting to not use workflow-application-token-action in our project.
I still need to investigate https://github.com/step-security/harden-runner

There are other considerations to be taken, such as limiting network outbound traffic. I found this article useful:
https://blog.gitguardian.com/github-actions-security-cheat-sheet/

Hello @Bad3r,
I hope you will forgive me for the wait, I have been very active during this week.
I thank you for your investigation and your time that you gave us.
Indeed GITHUB_TOKEN is a good solution advised by GitHub as you indicated, on the other case, in my opinion, I prefer to use much more granular options as it can be obtained through GITHUB_APP_TOKENS in order to provide only what is necessary for my GitHub App.
Also, you can directly specify permissions through your workflow in addition to using GITHUB_APP_TOKEN with granular permissions such as:
permissions:
  contents: read
  pull-requests: write

It is however good to specify that the use of GITHUB_APP_TOKEN is done preferably in the case where my flow expects to connect to the repository such as:
https://github.com/wr-projects/github-template/actions/runs/3875201706
Best regards,
Grégoire FAVREAU


adding gflags,glog and protbuf deps to caffe libs

We need to check how to add gflags, glog and protobuf deps to caffe libs on Linux (similar to Android). At least, when they are not installed, user will be able to pick up stable version from CK (they are in ck-autotuning repo). We just need to check how to add their directories to the cmake ...

I added these 3 packages for Linux. Seems to be working.


How i can get getBondedDevices AND unpairedDevices ?

there is the devices method but that takes an argument of deviceIdentifiers which is pointless as we don't know the Identifiers. In the end I used react-native-ble-manager

Hi,
@deepakjsr7979 you can try with devices(deviceIdentifiers: Array<DeviceId>) or  connectedDevices(serviceUUIDs)


addeded icon files

For #5
Adds icon files for different sizes. I will add some more PRs for updating documentation as well. 🥂

Nice little logo @gaurav-nelson - that's really neat. Thanks a bunch! :tada: I'm useless with design so this is awesome :+1:


jsdoc typedef (strange behaviour)

From @udarkness on October 28, 2016 13:42
I cannot autocomplete a property of an object after its first use

VSCode Version: 1.6.1
OS Version: Ubuntu 16.04

Steps to Reproduce:

Write this code in a Js file:

/**
 * @typedef {Object} My
 * @property {boolean} yes
 */

/**
 * @param {My} my
 */
function a(my) {
    my.yes
}
/**
 * @param {My} my
 */
function b(my) {
    my.
}

try to autocomplete in the function a. Works fine, as expected
try to autocomplete in the function b. It doesn't work at all

Copied from original issue: Microsoft/vscode#14664

@udarkness thank you for opening this issue. I have reproduced this using the latest Insider build. Migrating to the JavaScript language service repo (TypeScript).

I'm currently running into this issue. Is there an expected version for this fix?

Should be working correctly in latest drop of TypeSript (typescript@next). VSCode ships with an older version of TypeScript. Please see Using Newer TypeScript Versions documentation for more details on updating your VSCode to use a different version of TypeScript.


Houston 2013 Dataset

Hi Author, where is complete dataset available for Houston 2013 if you can provide link?

I think it's from this competition: https://web.archive.org/web/20220114065839/https://hyperspectral.ee.uh.edu/?page_id=459


Questions about notifications

When there is a large amount of data notification, the data will be duplicated and overwritten. I wonder if the platform thread and ui thread are thread safe? There is no such problem when using the rxble library natively on Android.

I tested the rx_ble flutter library and it was fine.

Hi!
Could you paste the logs? The issue occurs only on Android?

this is correct

The error looks like this

Sorry for the long silence.
Is it possible for you to check if the issue occurs on iOS as well?
Is there only one active subscription monitoring any characteristic, ie. do you monitor only one characteristic with only one subscription?

I'm having same/similar issue on 2.2.1, only tested on Android. I have only 1 monitored characteristic and 1 subscription.
I'm writing to a characteristic and expect 3 writes back to another characteristic (UART service).
I observe 3 writes to the characteristic in sequence (lets call them A, B, C) but the data my app gets is a jumble of these and randomly returns duplicates [(B,B,B), (B,C,C), (A,B,C), (A,C,C), (C,C,C), etc.]. They seem to at least always be in order (i.e. A is always before B and C)

Hi!
@posipunk could you put
await Future.delayed(Duration(millis: 500)) between the writes and let me know if it changed anything?

Hi!
@posipunk could you put
await Future.delayed(Duration(millis: 500)) between the writes and let me know if it changed anything?

@mikolak  I'm only doing a single write from the Phone side.
I'm using the Nordic UART service and everything works great on native Android with Nordic's libraries.
Sequence:

Phone writes "REQ sample"
Device writes "ACK" (A) in response
Device takes sample (~50-100ms)
Device writes 2 responses (B, C).

My thinking is that by the time the Flutter level gets the first characteristic write the second has already been received / queued up and perhaps they're pointing to the same object and the data gets overwritten with this new one.

D/com.polidea.flutter_ble_lib.FlutterBleLibPlugin(10025): on native side observed method: monitorCharacteristicForIdentifier D/BluetoothGatt(10025): setCharacteristicNotification() - uuid: 0000fff1-0000-1000-8000-00805f9b34fb enable: true D/BluetoothGatt(10025): onConnectionUpdated() - Device=30:45:11:47:E4:81 interval=36 latency=0 timeout=500 status=0 I/flutter (10025): frame: 0xc0 0x25 0x2 0xa0 0x20 0x30 0xd3 0xc0  D/com.polidea.flutter_ble_lib.FlutterBleLibPlugin(10025): on native side observed method: writeCharacteristicForIdentifier I/flutter (10025): in home bluetooth connected I/flutter (10025): begin dump############################################## I/flutter (10025): recv data:0xc0 0x25 0x24 0x0 0x0 0x18 0x50 0x4 0x0 0x4c 0x4d 0x54 0x41 0x30 0x30 0x30 0x30 0x20 0x4c  I/flutter (10025): end dump############################################## I/flutter (10025): begin dump############################################## I/flutter (10025): recv data:0x55 0x8e 0xcc 0xc0  I/flutter (10025): end dump############################################## I/flutter (10025): begin dump############################################## I/flutter (10025): recv data:0x55 0x8e 0xcc 0xc0  I/flutter (10025): end dump############################################## D/BluetoothGatt(10025): onConnectionUpdated() - Device=30:45:11:47:E4:81 interval=9 latency=0 timeout=300 status=0 D/com.polidea.flutter_ble_lib.FlutterBleLibPlugin(10025): on native side observed method: cancelConnection D/BluetoothManager(10025): getConnectionState() D/BluetoothManager(10025): getConnectedDevices D/BluetoothGatt(10025): cancelOpen() - device: 30:45:11:47:E4:81 D/BluetoothGatt(10025): onClientConnectionState() - status=0 clientIf=7 device=30:45:11:47:E4:81 D/BluetoothGatt(10025): setCharacteristicNotification() - uuid: 0000fff1-0000-1000-8000-00805f9b34fb enable: false
same problem here. I just write a single command to characteristic, my device should return 42 bytes which begin with 0xc0 and end with 0xc0. but as you see, it just notify 19 bytes and followed with  the last 4 bytes twice.

Hi, @jornhong! How often do the notifications occur on your device? Is the length of the notification always trimmed this way? Does it occur on any other characteristic?

thanks for your reply.
yes, notification always trimmed.
I put my code into the example of the FlutterBleLib, it work in order, so i don't know what's the problem.

i modify  monitorCharacteristic() function in the example for test. this problem still occur occasionally.

Hey, @jornhong @posipunk @huaxiao47, did you guys set MTU?
IIRC Android by default does not negotiate and gets 23 bytes. That would be the 19+4 bytes @posipunk was getting out of 42 intended.
The auto test in the example wasn't doing such a thing, since our peripheral was sending only 4 bytes of data.
Try adding
int MTU = await peripheral.requestMtu(512)

Before operations on characteristics and see what MTU you negotiate.

I had try this way before,but change nothing.
I also try the flutter_blue  library, it occur same problem.
flutter_wechat_ble have same problem with the first few commands, and the rest are always in order.
my origin app is programmed by QT/QML, it working fine.

@jornhong @posipunk Could you guys set log level to verbose, run your scenarios printing data you receive to logs and paste them here?

@mikolak Setting Flutter to verbose didn't add much.
I did enable the Bluetooth HCI logs to get the raw data though it is encrypted you can tell the relative byte lengths of the 3 notifications and see that the library isn't returning the correct data
Relevant flutter verbose log
[   +2 ms] I/flutter ( 2663): 2020-03-06T11:14:36.043483	D	new DeviceDetailsBloc.:	 Written "[2, 12, 11, 176, 56, 160, 221, 8, 43, 18, 2, 8, 4, 0]" to uart tx config
[        ] D/com.polidea.flutter_ble_lib.FlutterBleLibPlugin( 2663): on native side observed method: writeCharacteristicForDevice
[ +108 ms] I/flutter ( 2663): 2020-03-06T11:14:36.154324	D	new DeviceDetailsBloc.:	 RX: [2, 12, 10, 59, 14, 221, 180, 8, 1, 16, 43, 26, 1, 0]
[  +48 ms] I/flutter ( 2663): 2020-03-06T11:14:36.202680	D	new DeviceDetailsBloc.:	 RX: [2, 17, 16, 180, 208, 106, 202, 8, 3, 42, 7, 24, 4, 40, 60, 56, 152, 30, 0]
[   +5 ms] I/flutter ( 2663): 2020-03-06T11:14:36.207290	D	new DeviceDetailsBloc.:	 RX: [2, 17, 16, 180, 208, 106, 202, 8, 3, 42, 7, 24, 4, 40, 60, 56, 152, 30, 0]
Relevant lines from the Bluetooth HCI log (note - encrypted)
"No.","Time","Source","Destination","Protocol","Length","Info"
"1676","1293.930951","SamsungE_d3:5d:XX (Galaxy Note8)","ea:94:0e:e0:ce:88 (DEVICE)","ATT","26","Sent Write Request, Handle: 0x0018 (Unknown)"
024000150011000400121800020c0bb038a0dd082b1202080400
"1677","1294.029780","ea:94:0e:e0:ce:XX (DEVICE)","SamsungE_d3:5d:XX (Galaxy Note8)","ATT","10","Rcvd Write Response, Handle: 0x0018 (Unknown)"
02402005000100040013
"1678","1294.030796","ea:94:0e:e0:ce:XX (DEVICE)","SamsungE_d3:5d:XX (Galaxy Note8)","ATT","26","Rcvd Handle Value Notification, Handle: 0x001a (Unknown)"
0240201500110004001b1a00020c0a3b0eddb40801102b1a0100
"1679","1294.079221","ea:94:0e:e0:ce:XX (DEVICE)","SamsungE_d3:5d:XX (Galaxy Note8)","ATT","54","Rcvd Handle Value Notification, Handle: 0x001a (Unknown)"
02402031002d0004001b1a0002282776772ad20803221e0d43787e481518e430421d68f4313925dc7479482dc978304235d319353900
"1680","1294.080227","ea:94:0e:e0:ce:XX (DEVICE)","SamsungE_d3:5d:XX (Galaxy Note8)","ATT","31","Rcvd Handle Value Notification, Handle: 0x001a (Unknown)"
0240201a00160004001b1a00021110b4d06aca08032a071804283c38981e00

finally I had fix this problem by modify the com.polidea.multiplatformbleadapter package.
in BleModule.java's safeMonitorCharacteristicForDevice method, the onNex(byte[] bytes) method override characteristic's value before flutter listener to read the value:
     @Override                     public void onNext(byte[] bytes) {                         characteristic.logValue("Notification from", bytes);                         characteristic.setValue(bytes);                           onEventCallback.onEvent(characteristic);               }
i had changed like this:
                    Characteristic newChracteristic = characteristic.clone();
                    newChracteristic.setValue(bytes);
                    newChracteristic.logValue("Notification from", bytes);
                    //characteristic.setValue(bytes);
                    onEventCallback.onEvent(newChracteristic);

I alsa add a clone method to the Class Characteristic and modify the Characteristic's constructor to save the service:
    final private Service service;

public Characteristic clone(){
    return new Characteristic(this.id,this.service,this.gattCharacteristic);
}

I'm not a Java programmer, I'm not sure this is the best way.
Thanks for your work.
Best regards.

@posipunk that should have added native logs, which would tell whether issue was in native part or the bridge between Dart and native.
@jornhong great job, thank you very much! I'll release a fix Tuesday tops!

2.2.3 with fix published.
@posipunk @jornhong let me know (and reopen) if it hasn't fixed your issues, please.

Can confirm release 2.2.3 fixed all of the issues I was experiencing. Thank you for your excellent support!


Improve NGINX cache configuration

The goal of these changes was originally to cache /thumb resources, but it became apparent that we could do better in caching overall.
With this commit, and some work on the frontend app, it will be possible some day to forego the cache-purging that we usually do after a deployment.

Reduce the number of proxy_cache_valid directives.

Express 'expires' with date units.

Remove redundant proxy_cache_valid directives. There was some variation, but not enough for it to be perpetuated.

Rename shared memory zone from "staticfilecache" to "main_cache" because it's not simply a static file cache.

Add "inactive" parameter to proxy_cache_path, which was defaulting to 10 minutes.

Add note about proxy_cache_revalidate (NGINX sends If-Modified-Since to origin).  We can't use it because we're still on Ubuntu 12.04LTS, with NGINX 1.1.

Add proxy_cache_lock so concurrent requests don't get sent to origin server for the same thing.

Change some comments.

Change proxy_cache_use_stale for /thumbp location. Move on to next origin server in the event of connection error or timeout via proxy_next_upstream, but deliver stale file for a 500 or 503, assuming the other server won't respond any better.

Add Cache-Control and X-Cache-Status headers to individual locations

Hide X-Powered-By header.

Shorten expiration time of Exhibitions assets.

Enable caching of Primary Source Sets assets.

Have the cache store 301 responses in a number of locations.

Remove test.php and phpinfo.php locations within /info location.

Make proxy_cache_key consistent across configuration.

Remove ability to defeat caching by setting Cache-Bypass header.

Simplify use of proxy_cache_bypass and proxy_no_cache.

It would be great to extend the expiration of frontend assets, but there are still some that the frontend app does not seem to compile and assign cache-extending names. The expiration for assets in the frontend therefore is one minute.
Wordpress assets in wp-includes and in plugins are versioned, but those in the berkman theme are not. No image assets are versioned. The expiration for the wordpress site for anonymous users (who do not have the relevant cookies) is one minute for most resources and one month for the versioned assets.
These changes don't fix the development environment's longstanding asset-pipeline problems. The frontend has uncompiled assets that shouldn't be cached for long periods. The deployments still clear the proxy cache, so this is OK for the meantime. In the future, we need to clear the cache conditionally: clear it after a deployment only in the development environment, and let asset versioning do the job in production.
The _dpla_no_cache cookie for the frontend should still be recognized because it still applies to admin requests. For caching to be optimal, the frontend app needs to be modified to set the _dpla_no_cache header only when necessary, not with every single request. It should only be set when an admin logs in or out. The /saved and /users locations have caching disabled for regular users who are logged in.
We don't cache the frontend app's HTML because it's too problematic for loggged-in users and the app library. Applications should be in charge of setting good cache headers for authenticated and unauthenticated requests, and it's bad to second-guess them in the proxy configuration.

Related ticket: https://issues.dp.la/issues/8348

Looks good. I was able to confirm caching on my local VMs.
Thanks for the detailed commit message. It's a big help in reviewing something like this. :rocket:


feat/everything: introduce most of the changes for 0.2.0

@homu r+

:pushpin: Commit 1e0db77 has been approved by hobofan

:zap: Test exempted - status

W00t! :tada:
Hopefully will get some time to have another play with this soon :+1:

Yeah :)
There are still a few bits missing, but at least we are back to a clean development process ;)


carla_msgs: 1.0.0-1 in 'kinetic/distribution.yaml' [bloom]

Increasing version of package(s) in repository carla_msgs to 1.0.0-1:

upstream repository: https://github.com/carla-simulator/ros-carla-msgs.git
release repository: https://github.com/carla-simulator/ros-carla-msgs-release.git
distro file: kinetic/distribution.yaml
bloom version: 0.9.3
previous version for package: null

Holding for sync.

superseed by #24004


Filtering Performance with Large Lists (2000+)

After playing around with the virtualized select (without filtering) it works performantly even with 1 million records. However when filtering based on user input it comes to a crawl around 2000-3000 items. Would you have any suggestion as to how to make the filtering more performant?
Looking at the react-select repo issues, a few people are having the same problem.
https://github.com/JedWatson/react-select/issues/807
https://github.com/JedWatson/react-select/issues/739
But I don't believe react-virtualized-select solves the issue.

I think this problem comes down to how filtering is done within react-select (aka synchronously, in the UI thread. For large lists, this is going to hurt FPS.
I've created some JS search libs (eg js-worker-search, redux-search) that do this type of filtering in web-workers, using data structures optimized for fast look-up. The response time for filtering drop-down lists using them is very fast.
Perhaps that would be interest in trying to integrate one within react-select?
I'm going to close this issue b'c there's nothing react-virtualized-select can do to speed up filtering performance in react-select. I will add a comment like the one I wrote above to the 2 issues you linked and we'll see what Jed thinks when he gets a chance to weigh-in. :)

@bvaughn I agree with the above; however, react-select cannot performantly render 3000+ items without using react-virtualized-select. Would react-select want to implement the faster js search libs if they don't support large lists? React-select does allow advanced filtering options. Is it something that could be built in react-virtualized-select on top of react-select?

Definitely! react-virtualized-select would still have a place in speeding things up too. :)
I like using high-order components for this sort of functionality because (a) it doesn't bloat or add complexity to the underlying library (react-select) and (b) it lets users opt-in if they need the functionality. Lots of users just want a simple, styled drop-down menu and react-select works fine for that.
I was tentatively thinking of creating another light-weight lib that connects js-worker-search and react-select so people wanting to filter large lists of options could use that library as their filterOptions property. So basically something like this...
import React, { Component } from 'react'
import VirtualizedSelect from 'react-virtualized-select'
import fastFilterOptions from 'react-select-fast-filter-options'

function MyComponent () {
  return (
    <VirtualizedSelect
      {...props}
      filterOptions={fastFilterOptions}
    />
  )
}

@bvaughn just saying I would totally use a higher order component that combines react-virtualized-select and js-worker-search because currently createFilterOptions from 'react-select-fast-filter-options' makes the main thread hang.

js-worker-search is fast because it offloads work to a service worker. But since postMessage  is async, then everything- including searches- is async. react-select doesn't support an async filterOptions prop unfortunately so...dead end.
If react-select supported an async filterOptions it would be an easy thing to connect the 2.

Thanks for the response!  If my team is down for the time it takes, it sounds like a PR on my part is in order.

If you go this route, keep me posted and feel free to CC me on the react-select end. I help maintain that project, although I rarely have the time to any more.


Error "Attempted duplicate registration of API" in AWS Lambda Layer

Hi friends,
We are working with aws-otel-nodejs-amd64-ver-1-0-1 and currently it generate this error
2022-02-25T16:50:46.804Z	undefined	ERROR	Error: @opentelemetry/api: Attempted duplicate registration of API: propagation     at Object.registerGlobal (/opt/nodejs/node_modules/@opentelemetry/api/build/src/internal/global-utils.js:33:19)     at PropagationAPI.setGlobalPropagator (/opt/nodejs/node_modules/@opentelemetry/api/build/src/api/propagation.js:51:31)     at NodeTracerProvider.register (/opt/nodejs/node_modules/@opentelemetry/sdk-trace-base/build/src/BasicTracerProvider.js:99:31)     at NodeTracerProvider.register (/opt/nodejs/node_modules/@opentelemetry/sdk-trace-node/build/src/NodeTracerProvider.js:28:15)     at initializeProvider (/opt/wrapper.js:81:20)     at processTicksAndRejections (internal/process/task_queues.js:95:5)
If anyone has any information about the stability of logs with this bug, please let us know. Thanks for your help.

It seems that BasicTracerProvider is attempting to register the default propagators as obtained from the default environment https://github.com/open-telemetry/opentelemetry-js/blob/v1.1.1/packages/opentelemetry-sdk-trace-base/src/BasicTracerProvider.ts#L141 causing the error https://github.com/open-telemetry/opentelemetry-js-api/blob/bafcf0d0756e6ecc79fcc75f221b9dd17641eba5/src/internal/global-utils.ts#L46-L49 to be written.
Based on the comment https://github.com/aws-observability/aws-otel-lambda/blob/main/nodejs/wrapper-adot/src/adot-extension.ts#L13 maybe it makes sense to open an issue on https://github.com/open-telemetry/opentelemetry-lambda instead. The fix seems to be
    let sdkRegistrationConfig = {
        propagator: null
    };

on wrapper.ts

Thank you @Chuckytuh for your answer and suggestion

@raulrojasadl looking closer at this, it seems that the way forward is to use the ability to extend the AWS Lambda Layer using the extension points such as global.configureSdkRegistration. If you're not familiar with those, basically you want to create a new JS module, e.g. "instrumentation.js" with the content:
global.configureSdkRegistration = (defaultSdkRegistration) => {
    return {
        propagator: null
    }
};

then you need to pre-load it on the layer and you do that by using NODE_OPTIONS=--require /var/task/instrumentation.js.  NODE_OPTIONS is an environment variable that you'll need to set to your AWS Lambda Functions

@Chuckytuh you make a great contribution, thank you very much for your kind help.


Azure PowerShell Task v4 errors out with "A task was cancelled" exception.

Note
Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo
For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
If you have an issue or request for the Azure Pipelines service, use developer community instead:
https://developercommunity.visualstudio.com/spaces/21/index.html )
Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Bug
Enter Task Name: Azure PowerShell Task v4.
list here (V# not needed):
https://github.com/microsoft/azure-pipelines-tasks/tree/master/Tasks/AzurePowerShellV4
Environment

Server - Azure Pipelines or TFS on-premises?

Azure Pipelines

If using Azure Pipelines, provide the account name, team project name, build definition name/build number:

Server: Azure Pipelines
Account Name: https://azurecat.visualstudio.com/vdc
Team Project Name: VDC

Agent - Hosted or Private:

Agent Type: Self-Hosted / Private Agent
OS: Linux Ubuntu 18.04
Agent Version: 2.155.1
Issue Description
Azure PowerShell Task v4 intermittently errors out with the exception - "A task was cancelled". There is no consistent way to reproduce this exception. This error is noticed only in Azure PowerShell Task and not any other tasks like PowerShell v2.
Couple of behaviors witnessed include:

Sometimes fails before the Azure PowerShell Task bootstraps with the login and context information for the user.
Sometimes fails after the bootstrap process, while running the script. The exception happens at different code blocks / statements in the script.

Task logs
Worker_20190904-184014-utc.log.zip
Troubleshooting
Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting
Error logs
Worker_20190904-184014-utc.log:[2019-09-04 18:40:18Z ERR  StepsRunner] Caught cancellation exception from step: System.OperationCanceledException: The operation was canceled.
Worker_20190904-184014-utc.log:   at Microsoft.VisualStudio.Services.Agent.Util.ProcessInvoker.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, CancellationToken cancellationToken)
Worker_20190904-184014-utc.log:   at Microsoft.VisualStudio.Services.Agent.ProcessInvokerWrapper.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, CancellationToken cancellationToken)
Worker_20190904-184014-utc.log:[2019-09-04 18:40:18Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'False'
Worker_20190904-184014-utc.log:[2019-09-04 18:40:18Z ERR  BuildJobExtension] Caught exception from log plugin finalization: System.OperationCanceledException: The operation was canceled.
Worker_20190904-184014-utc.log:   at Microsoft.VisualStudio.Services.Agent.Util.ProcessInvoker.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, CancellationToken cancellationToken)
Worker_20190904-184014-utc.log:   at Microsoft.VisualStudio.Services.Agent.ProcessInvokerWrapper.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, CancellationToken cancellationToken)

@20shivangi / @niadak

I am unable to repro the issue. Can you please try to reproduce the issue in build as well and share agent worker logs. You can find them inside agent under _diag folder.

@senthilkungumaraj since you are using azure powershell task on a linux agent, you must be using powershell core. what is the version of powershell core that you are using ? What is the version of Az PowerShell modules that you installed on your local machine ?

@arjgupta The version of PowerShell Core is 6.2.0. Az PowerShell module version is 2.1.0.

@senthilkungumaraj  Are you still facing this issue?

Closing. Please re-open if you face any further issues.


clean build warnings & error on tasks.inc

Context: I'm doing a fresh build based on README.md, and thought this may be helpful...on first build, I encountered multiple instances of:
WARNING: /flutter-drm-eglstream-so.bb: do_configure:prepend += is not a recommended operator combination, please replace it.
So I suggest that in recipes-graphics/flutter-embedded-linux/tasks.inc
do_configure:prepend[depends] += "flutter-engine:do_populate_sysroot"
should be
do_configure:prepend[depends] = "flutter-engine:do_populate_sysroot"
Not sure if there should be an appended space separator, Yocto can be funny like that.
Also getting an error ERROR: Nothing RPROVIDES 'weston-xwayland', and weston RPROVIDES weston-xwayland but was skipped: missing required distro feature 'pam'.
DISTRO_FEATURES:append = " pam" to local.conf seems to have solved that, and it's busy building now.
Advise if this is helpful/not helpful and if there's a better way.

Thanks. Can you please create a patch and send a pull request?


sortMenu adjustments

Tested on streambed this time, gives desired result.

@nicolaskruchten @dmt0 please review

💃  as-is, but if you want to do my stylistic changes that's fine too :)

Tests were failing due to an intermittent CI failure, merging


global message implemented

-implemented global message for success and error of login routes
-show respective message after user comes back from kinde auth screen

Summary by CodeRabbit

New Features

Enhanced authentication handling in the Navbar component.
Success messages displayed for login and logout actions.

Bug Fixes

Improved error handling for login and logout processes.

Chores

Added Ant Design library for improved UI components.

Hi @17arindam I will merge it

@RamakrushnaBiswal wait let me fix the coderabbit issue first

@17arindam yh
Btw I forgot that the form and all are implemented

@RamakrushnaBiswal okay can i work on any backend issue ?

@RamakrushnaBiswal can you please merge it now


[WIP] Rust-analyzer

TODO:

derive macro errors (defmt) - well then don't use defmt 🤪
Pointer width differences (transmuting addresses to functions) - well we're lying about our build target so...
esp_riscv_rt not found

Neither of these errors break anything, but it looks bad - a lot of red squigglies and a golden rust-analyzer status row background.

I had just assumed people were writing their own config files, certainly been the case here.
FYI we previously had VS Code configuration in the repo but it ended up being a bit of a pain in the ass, it periodically breaks due to rust-analyzer changes, and people tend to check in various different versions of the configuration to version control. Not saying I'm rejecting this, but keep in mind that it was removed for a reason.

Please note that I'm not checking in any actual config files. I'm trying to provide a quick "rename this"-style template that people can then customize.
There are a few unresolved problems I'm still papering over, but I believe that even a partially functional rust-analyzer has a ton of added benefits.

I'm slightly concerned by the change in output paths. Whatever I took out of excluded now places its artifacts in ./target instead of ./<package>/target.


Data Labels

When creating a table with New-ExcelChartDefinition
we have 2 flags for labels, -ShowCategory & -ShowPercent
any option to add the 'Data Labels ' option as in from the Excel UI > 'Chart Elements' ?
or add another option to 'Showdata' i want to add the value of the data on those bars as seen in the image below

NO one has any idea on this question?

Hi,
this tread will answer your question
https://github.com/dfinke/ImportExcel/issues/632

it does indeed.
that there is no fashion way to do it for now :( .
thanks for the TIP though.


allow custom dns query

What does this PR do? / Related Issues / Jira

Checklist

[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have made corresponding change to the default configuration files
[ ] I have added tests that prove my fix is effective or that my feature works
[x] I have tested the functionality against gcp / aws, it doesn't cause any regression
[ ] I have added execution results to the PR's readme

Reviewer's Checklist

[ ] (This needs to be done after technical review) I've run the branch on my local, verified that the functionality is ok

How to test this PR locally / Special Instructions

Logs

/ok-to-test

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 25.08%. Comparing base (8024971) to head (b7a3628).
Report is 3 commits behind head on main.

Additional details and impacted files

@@            Coverage Diff             @@
##             main     #258      +/-   ##
==========================================
+ Coverage   24.85%   25.08%   +0.22%
==========================================
  Files          23       24       +1
  Lines        1738     1802      +64
==========================================
+ Hits          432      452      +20
- Misses       1284     1327      +43
- Partials       22       23       +1

Files
Coverage Δ

pkg/verifier/aws/aws_verifier.go
35.94% <ø> (ø)

... and 5 files with indirect coverage changes

Hi @datianshi, thanks for the PR! My understanding of these OSD/ROSA docs is that users must not use custom DNS resolvers during cluster installation (but they can set them up after cluster installation completes, if they wish). IOW, a cluster's bootstrap/control-plane nodes can only use "AmazonProvidedDNS" a.k.a. Route53 Resolver until cluster installation is complete.
osd-network-verifier's goals include simulating a "mid-cluster-install bootstrap/control-plane node" as closely as possible while still complying with OSD/ROSA docs. It would seem that this PR does not serve that goal, as it would give the verifier the power to do something (make queries to a custom DNS resolver) that the OSD/ROSA docs say a cluster's nodes cannot do — at least, not during cluster installation/in-flight checks, which is when the temporary security group that this PR modifies would be used.
I'll note that the network verifier can use existing security groups if specified using the --security-group-ids flag or SecurityGroupIDs field of the ValidateEgressInput struct. You could accomplish what appears to be the goal of this PR by creating a security group that allows egress to port 53/udp, and then run the verifier like the following:
./osd-network-verifier egress --subnet-id=[your-target-subnet-id] --security-group-ids=[the-port-53-security-group-id] --force-temp-security-group

(I added --force-temp-security-group because otherwise the verifier doesn't create any security groups when an existing one is specified)
Of course, I'm open to discussion 🙂. Please let me know if I'm misunderstanding the linked docs or the goals of this PR

@michaelryanmcneill

@abyrne55 after today's discussion in the MCS call, our documentation is being updated to properly reflect that it is supported to use custom DHCP options. As such, I think this fix is acceptable and would ensure we are catching any sort of DNS resolution related problems for customers operating with custom DHCP options.


Modified the code for Masking

Earlier code was a little complicated by using Vec4b datatype. Updated the code and the if condition for the user's convenience
Deleted an unnecessary file that got created on my fork

Looks good to me!


bug: (hubble) Envoy proxy isn't running after ./hubble.sh upgrade

What is the bug?
Envoy proxy doesn't run as expected
Hubble 1.5.2 pulls envoy, but doesn't run the container.
When I tried running it directly via docker-compose up -d envoy, got the following error
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/home/ec2-user/hubble/envoy/envoy.yaml" to rootfs at "/etc/envoy/envoy.yaml": mount /home/ec2-user/hubble/envoy/envoy.yaml:/etc/envoy/envoy.yaml (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

/home/ec2-user/hubble/envoy/envoy.yaml is a directory instead of a yaml file
How can it be reproduced? (optional)
./hubble.sh upgrade

Sorry, it was a bug in the script. It will be fixed in the next version, but in the meanwhile, you can:
cd ~/hubble
sudo mkdir envoy && sudo chmod +rx envoy && cd envoy
sudo curl -sS -o envoy.yaml<EMAIL_ADDRESS>
Now you should be able to start the envoy docker container.


Can't use service account IAM roles?

I'm going to guess this is some form of stupid user error, but I can't find any more info in the docs, so I am asking here. I can't seem to access any project resources with a service account, even though I have the correct IAMs
Below is a ipython interactive session, but same results with the app i'm building
In [1]: from google.cloud import storage

In [2]: client = storage.Client()

In [3]: [b.name for b in client.list_buckets()]
---------------------------------------------------------------------------
Forbidden                                 Traceback (most recent call last)
<ipython-input-3-3932e1359e2b> in <module>()
----> 1 [b.name for b in client.list_buckets()]

<ipython-input-3-3932e1359e2b> in <listcomp>(.0)
----> 1 [b.name for b in client.list_buckets()]

/usr/local/lib/python3.6/site-packages/google/cloud/iterator.py in _items_iter(self)
    216     def _items_iter(self):
    217         """Iterator for each item returned."""
--> 218         for page in self._page_iter(increment=False):
    219             for item in page:
    220                 self.num_results += 1

/usr/local/lib/python3.6/site-packages/google/cloud/iterator.py in _page_iter(self, increment)
    245         Yields :class:`Page` instances.
    246         """
--> 247         page = self._next_page()
    248         while page is not None:
    249             self.page_number += 1

/usr/local/lib/python3.6/site-packages/google/cloud/iterator.py in _next_page(self)
    345         """
    346         if self._has_next_page():
--> 347             response = self._get_next_page_response()
    348             items = response.get(self._items_key, ())
    349             page = Page(self, items, self._item_to_value)

/usr/local/lib/python3.6/site-packages/google/cloud/iterator.py in _get_next_page_response(self)
    394                 method=self._HTTP_METHOD,
    395                 path=self.path,
--> 396                 query_params=params)
    397         elif self._HTTP_METHOD == 'POST':
    398             return self.client._connection.api_request(

/usr/local/lib/python3.6/site-packages/google/cloud/_http.py in api_request(self, method, path, query_params, data, content_type, headers, api_base_url, api_version, expect_json, _target_object)
    301         if not 200 <= response.status < 300:
    302             raise make_exception(response, content,
--> 303                                  error_info=method + ' ' + url)
    304
    305         string_or_bytes = (six.binary_type, six.text_type)

Forbidden: 403 Caller does not have storage.buckets.list access to project [ELIDED]. (GET https://www.googleapis.com/storage/v1/b?project=[ELIDED]&projection=noAcl)

In [4]: creds = client._credentials

In [5]: creds.valid
Out[5]: True

In [6]: creds.service_account_email
Out[6]<EMAIL_ADDRESS>
In [7]: client.project
Out[7]: '[ELIDED]'

So I've got valid credentials on my service account... and the account is an owner of the project. (I had the app scoped appropriately, but escalated when I hit this error)
any idea why these credentials wouldn't be accepted?

(I removed a screenshot because it exposed your project details)

should project names and ID numbers really be kept secure? seems like they should be safe for public consumption by design.

@kevhill a few questions:

Are these service account credentials? (a private key .json file)?
Where is your app running?
What's the output of running this script?

should project names and ID numbers really be kept secure? seems like they should be safe for public consumption by design.

We'd prefer not to expose them on our issue tracker, but yeah, the project id is indeed visible in your app engine url.

thanks for the quick reply

yes
locally
I had to enable the IAM API, but then got back {'error': {'code': 403, 'message': 'The caller does not have permission', 'status': 'PERMISSION_DENIED'}}

Also in the name of sanity checking I created a brand new service account and tried the whole flow again, and it worked fine. So, it seems like somehow that account got screwed up in a way not reflected by the roles. So, immediate problem fixed, if larger questions still left unanswered. But, it is probably something outside the scope of this library.

ah, and then I ran a modified version of your script but used the creds that are now working, but looked up the image-stash account details and got back {'etag': 'BwVLQTPR32w=', 'bindings': [{'role': 'roles/iam.serviceAccountActor', 'members'<EMAIL_ADDRESS>

ok, even weirder, deleting that service account entirely and making a new one with the SAME NAME doesn't work... wtf.
Closing this issue, thanks for the help.

@kevhill: no worries, it was probably just a delay in permission propagation. :)


fix(macOS): Tray icon for macOS

Pull Request Template
PR Checklist

[ ] I have run <TEST COMMAND> locally and all tests are passing.
[ ] I have added/updated tests for any new behavior.
[ ] If this is a significant change, an issue has already been created where the problem / solution was discussed: [N/A, or add link to issue here]

PR Description

Adding a pr description


[1.19 Fabric] Instant crash/freeze when attempting any Hex Spell

Mod, fapi & deps versions are in the log.
Log: https://aofpaste.com/ebetiqazuc.yaml

Duplicate of #276 (tl;dr: install adoptium openjdk)

Whoops apparently this is with openjdk. Also TIL normal users can't reopen issues themselves.

OK we switched to Cloth config it should work now


fix haskellPackages.headed-megaparsec

Motivation for this change
Things done

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

[ ] 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"
[ ] 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)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

@chrbauer Could you rebase this on haskell-updates again?

@chrbauer Could you rebase this on haskell-updates again

@cdepillabout it's now rebased again


SymbolicException: Inputs to eager execution function cannot be Keras symbolic tensors, but found [<tf.Tensor 'input_1:0' shape=(None, 30, 78) dtype=float32>]

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10 Version 1909
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow version (use command below): 2.0.0
Python version: 3.6.9
CUDA/cuDNN version:10.0.130
GPU model and memory:GTX 1660 Ti 6GB

Jazz improvisation with LSTM.zip
I uploaded a zip file in which the .ipynb file when runs gets that error. Please you can run and check what's the problem. How to fix this issuse?

@Krishnarohith10 ,
One workaround for the issue can be trying to disable eager execution and run the .ipynb file
import tensorflow as tf
tf.compat.v1.disable_eager_execution()

You can also refer solution of this similar issue.
Kindly post the question in Stack-overflow if above solution is not helpful.Thanks!

Thank you for your Solution. Sadly it gone worse. I don't know what is it even. Here have a look:

This is error message I get:

@Krishnarohith10 Sorry for the late response. Is this still an issue for you? Thanks!

Not anymore. So I'm closing this issue. Sorry that I didn't notice this issue is still open. Thank You


Installer doesn't work on docker

⠋ Installing sb-pluralize[consistent-env] Unable to determine environment TypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.basename (path.js:1355:5)
    at /app/node_modules/consistent-env/lib/index.js:39:40
    at new Promise (/app/node_modules/core-js/modules/es6.promise.js:193:7)
    at module.exports.async (/app/node_modules/consistent-env/lib/index.js:33:10)
    at /app/node_modules/sb-exec/lib/helpers.js:13:51
    at next (native)
    at step (/app/node_modules/sb-exec/lib/helpers.js:59:191)
    at /app/node_modules/sb-exec/lib/helpers.js:59:451
    at new Promise (/app/node_modules/core-js/modules/es6.promise.js:193:7)
Install sb-pluralize ✗
[Error: spawn npm ENOENT at exports._errnoException (util.js:953:11)]
[Error: Unable to resolve 'sb-pluralize' from '$root/helpers' at /app/node_modules/pundle/lib/path.js:59:15]

Fixed in v0.2.15


Please update "vinyl-fs" to latest. So many warning from that dependency chain

vinyl-fs  ->> minimatch

Please search before opening new issues #1571

It's also within the first few issues in the tracker....


Virtual hmd

As a follow up to VirtualHMDs we now also support VirtualControllers: Tracking a single colored ping-pong ball and pretending it's a tracked controller. As with the virtual HMD there is no orientation and no buttons. The psnavi can also be parented to a virtual controller allowing for a tracked PSNavi (minus orientation). To add one or more virtual controllers do the following:

Edit %appdata%\PSMoveService\ControllerManagerConfig.json
Set "virtual_controller_count" to some value > 0
Go to the Controller Settings panel of PSMoveConfigTool
Launch PSMoveService once and then shut it down to create controller config files
Edit %appdata%\PSMoveService\VirtualController_N.json, where N is the virtual controller number
Set the "bulb_radius" to the appropriate size (2cm for a regulation ping-pong ball)
Re-launch PSMoveService and then PSMoveConfigTool
Set the Tracking Color on each virtual controller
Configure the color filtering on each virtual controller
Test the virtual controller tracking

@zelmon64 When you get a chance would you mind giving this a quick test? I made some pre-built release binaries so you don't have to sync and build.
PSMoveService_0.9_alpha8.5.0.zip

@HipsterSloth this is great work!
So far using one virtual controller seems fine but two crashes with the log below. This happens both with and without a virtual HMD. I'll try to find the cause.
When you add the virtual controllers to PSMoveSteamVRBridge would it be possible to have them register as Vive tracker-like objects?
[2017-06-09 10:29:03.398]: main - Starting PSMoveService v0.9-alpha 8.5.0
[2017-06-09 10:29:03.406]: USBAsyncRequestManager::startup - Requested LibUSBApi
[2017-06-09 10:29:03.408]: USBAsyncRequestManager::startup - Creating LibUSBApi
[2017-06-09 10:29:03.411]: USBAsyncRequestManager::startup - Initialized USB API
[2017-06-09 10:29:03.415]: DeviceManager::startup - Platform Hotplug API is ENABLED
[2017-06-09 10:29:03.422]: bluetooth_get_host_address - Found a bluetooth radio
[2017-06-09 10:29:03.424]: bluetooth_get_host_address - Retrieved radio info
[2017-06-09 10:29:03.570]: VirtualController::open - Opening VirtualController(VirtualController_0).
[2017-06-09 10:29:03.575]: DeviceTypeManager::update_connected_devices - Device device_id 0 (UNKNOWN) opened

When you add the virtual controllers to PSMoveSteamVRBridge would it be possible to have them register as Vive tracker-like objects?

Yeah that's the plan, I was thinking of having them show up as a special kind of controller (separate from psmove controllers). Probably just use the standard default vive controller model.

@HipsterSloth that'd be great. I thought you probably were planning to but wanted to make sure.
The fix works fine (I managed to get my build environment running again after what felt like a few dozen reinstalls) but I noticed another little error. DeviceTypeManager calls the Virtual Controller "UNKNOWN".
[2017-06-10 09:38:18.31]: VirtualController::open - Opening VirtualController(VirtualController_0).
[2017-06-10 09:38:18.36]: DeviceTypeManager::update_connected_devices - Device device_id 0 (UNKNOWN) opened
[2017-06-10 09:38:18.41]: VirtualController::open - Opening VirtualController(VirtualController_1).
[2017-06-10 09:38:18.47]: DeviceTypeManager::update_connected_devices - Device device_id 1 (UNKNOWN) opened


differentiate lowercase letter, uppercase letter, or combine them

🆒 Your use case
right now the function letter is include all the uppercase and lowercase letter, my use case is i only need the lowercase letter, and uppercase letter is prohibited.
🔍 Alternatives you've considered
No response
ℹ Additional info
No response

Maybe we can add letter.lowercase and letter.uppercase.
In the meantime, your can do

Hey 👋,
I'm interested in working on this!
I'm not too sure how to approach the API design, however.
@didavid61202, are you suggesting that letter becomes:
const letter: Input<"[a-zA-Z]", never, []> & {
    lowercase: Input<"[a-z]", never, []>,
    uppercase: Input<"[A-Z]", never, []>,
}

?
Otherwise, we could expand the API to include standalone lowercase and uppercase Inputs...
 export const whitespace = createInput('\\s')
 export const letter = createInput('[a-zA-Z]')
+export const lowercase = createInput('[a-z]')
+export const uppercase = createInput('[A-Z]')
 export const tab = createInput('\\t')

I'd like to get it done as part of the Hacktoberfest event, so... as soon as we've settled on an API, I'm raring to get started!

Yes, I think that the first option was what @didavid61202 was suggesting, and makes sense.
Also very happy to include other constructed inputs alongside letter/tab, but lower/upper-case makes sense to access within dot notation.


Remove get_publish_time in favor of a manual entry in in the issue

    date: datetime.date,

This should be a date, not a datetime.
But is function necessary if it's just a wrapper around another function with no other changes?
Originally posted by @jonafato in https://github.com/kjaymiller/Python-Community-News/pull/48#discussion_r960219429

Manual time entries resolved this issue.


[Feature] added locale support for NicknamePokemon

added config option "locale" for NicknamePokemon task
added locale jsons under /data/locales
beautyfied pokemon.json

+1

This is great!

@mhdasding can you, please, merge latest dev to your PR?

@Nihisil done, but damn 8 days after PR finally a response \o/

@mhdasding thank you

👍

@TheSavior can you, please, review it and merge if everything is ok?

Those files have a lot more than 150 Pokemon...
:+1:

An update on the documentation would be need for this functionality.
Yet, it seems that the documentation on the NicknamePokemon task isn’t really up to date for more than just this functionality.


MultipleArtifactsNotFoundException

Hi all,
I have cloned this project on my pc, and when i launch command "gradle clean test", i have the error :
10:08:12.161 [DEBUG] [TestEventLogger] fr.ratp.zu3m1.ui.activity.LoginActivityTest > testSomething FAILED
10:08:12.162 [DEBUG] [TestEventLogger]     Unable to resolve artifact: Missing:
10:08:12.162 [DEBUG] [TestEventLogger]     ----------
10:08:12.162 [DEBUG] [TestEventLogger]     1) org.robolectric:android-all:jar:4.3_r2-robolectric-0
10:08:12.162 [DEBUG] [TestEventLogger]
10:08:12.162 [DEBUG] [TestEventLogger]       Try downloading the file manually from the project website.
10:08:12.163 [DEBUG] [TestEventLogger]
10:08:12.163 [DEBUG] [TestEventLogger]       Then, install it using the command:
10:08:12.163 [DEBUG] [TestEventLogger]           mvn install:install-file -DgroupId=org.robolectric -DartifactId=android-all -Dversion=4.3_r2-robolectric-0 -Dpackaging=jar -Dfile=/path/to/file
10:08:12.163 [DEBUG] [TestEventLogger]
10:08:12.163 [DEBUG] [TestEventLogger]       Alternatively, if you host your own repository you can deploy the file there:
10:08:12.163 [DEBUG] [TestEventLogger]           mvn deploy:deploy-file -DgroupId=org.robolectric -DartifactId=android-all -Dversion=4.3_r2-robolectric-0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
10:08:12.163 [DEBUG] [TestEventLogger]
10:08:12.164 [DEBUG] [TestEventLogger]       Path to dependency:
10:08:12.164 [DEBUG] [TestEventLogger]       	1) org.apache.maven:super-pom:pom:2.0
10:08:12.164 [DEBUG] [TestEventLogger]       	2) org.robolectric:android-all:jar:4.3_r2-robolectric-0
10:08:12.164 [DEBUG] [TestEventLogger]
10:08:12.164 [DEBUG] [TestEventLogger]     2) org.ccil.cowan.tagsoup:tagsoup:jar:1.2
10:08:12.164 [DEBUG] [TestEventLogger]
10:08:12.164 [DEBUG] [TestEventLogger]       Try downloading the file manually from the project website.
10:08:12.165 [DEBUG] [TestEventLogger]
10:08:12.165 [DEBUG] [TestEventLogger]       Then, install it using the command:
10:08:12.165 [DEBUG] [TestEventLogger]           mvn install:install-file -DgroupId=org.ccil.cowan.tagsoup -DartifactId=tagsoup -Dversion=1.2 -Dpackaging=jar -Dfile=/path/to/file
10:08:12.165 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: SUCCEEDED
10:08:12.165 [DEBUG] [TestEventLogger]
10:08:12.166 [DEBUG] [TestEventLogger]       Alternatively, if you host your own repository you can deploy the file there:
10:08:12.166 [DEBUG] [TestEventLogger]           mvn deploy:deploy-file -DgroupId=org.ccil.cowan.tagsoup -DartifactId=tagsoup -Dversion=1.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
10:08:12.166 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process 'Gradle Worker 1' finished with exit value 0 (state: SUCCEEDED)
10:08:12.166 [DEBUG] [TestEventLogger]
10:08:12.167 [DEBUG] [TestEventLogger]       Path to dependency:
10:08:12.167 [DEBUG] [TestEventLogger]       	1) org.apache.maven:super-pom:pom:2.0
10:08:12.167 [DEBUG] [TestEventLogger]       	2) org.ccil.cowan.tagsoup:tagsoup:jar:1.2
10:08:12.167 [DEBUG] [TestEventLogger]
10:08:12.168 [DEBUG] [TestEventLogger]     ----------
10:08:12.168 [DEBUG] [TestEventLogger]     2 required artifacts are missing.
10:08:12.168 [DEBUG] [TestEventLogger]
10:08:12.168 [DEBUG] [TestEventLogger]     for artifact:
10:08:12.168 [DEBUG] [TestEventLogger]       org.apache.maven:super-pom:pom:2.0
10:08:12.168 [DEBUG] [TestEventLogger]
10:08:12.168 [DEBUG] [TestEventLogger]     from the specified remote repositories:
10:08:12.169 [DEBUG] [TestEventLogger]       sonatype (https://oss.sonatype.org/content/groups/public/),
10:08:12.169 [DEBUG] [TestEventLogger]       central (http://repo1.maven.org/maven2)

After search, for a reason that not explain, if i install maven and configure entreprise proxy on it, the artifacts are retrieve.
But why this project don't take the repository configured in file build.gradle for this artifacts and use local maven, i don't understand.
Can you help me to find a solution ? Thanks.

Robolectric fetches some of it's dependencies at run-time to avoid having to download lots of unused android-all artifacts upfront.

For anybody looking for more detail on this issue, see this Stackoverflow question and answer: http://stackoverflow.com/q/39358697/112705
There is a way to configure where Robolectric pulls its runtime dependencies from.


CASMHMS-6106: Updated hms-trs-app-api vendor code to latest version

Summary and Scope
Updated hms-trs-app-api vendor code to latest version.
Procedures I used to affect changes:

Updated all go source files to reference /v2/ when importing hms-trs-app-api
Ran go get<EMAIL_ADDRESS>Ran go mod tidy
Ran go mod vendor

Additionally had to add -tags musl to all go build and go test lines in dockerfiles in order to force confluent-kafka-go to use musl instead of glibc in the alpine images we use.
Issues and Related PRs

Resolves CASMHMS-6106

Testing
Tested on:

TBD

Test description:
TBD

Were the install/upgrade-based validation checks/tests run (goss tests/install-validation doc)? Y
Were continuous integration tests run? If not, why? Y
Was upgrade tested? If not, why? Y
Was downgrade tested? If not, why? Y

Pull Request Checklist

[x] Version number(s) incremented, if applicable
[x] Copyrights updated
[x] License file intact
[x] Target branch correct
[x] CHANGELOG.md updated
[x] Testing is appropriate and complete, if applicable

Closing this PR as it won't let me switch the branch to the one that will get merged.  Will create a new PR.


Fix a bug with services in multitenant

A reorganization of the rules in the danw/vxlan-filtering merge broke node -> remote-pod traffic (and also vnid-0-pod -> remote-pod traffic), which among other things meant that remote services would no longer work when referred to by service IP.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1293251
Probably also https://github.com/openshift/openshift-sdn/issues/231 and https://github.com/openshift/origin/issues/5796.
@openshift/networking

LGTM


Add details of valid vagrant versions

Lattice doesn't work with older versions of Vagrant (including the one that is installed out of the box in Ubuntu 14.04 LTS). This change just makes it easier for people on stock Ubuntu to get started.

Coverage remained the same at 99.17% when pulling b73f3e288882a5bb9ef5e8047e4be219bfc69342 on dsyer:patch-1 into 08b910cd4b7e7b080310e6976425364c2f4dd38a on cloudfoundry-incubator:master.


CIV-9011 DJ Lip vs LiP Submission

JIRA link
https://tools.hmcts.net/jira/browse/CIV-9011
https://tools.hmcts.net/jira/browse/CIV-9405
Change description
Re-use existing flow for DJ request.
Refactor CCJ guard
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[X] No

reopen for deployment


Don't add null-ish properties to query string

Hey there!
I noticed I ran into issues if any of the parameters passed to a Hit object were null or undefined, bad times occurred.
This patch fixed it!

@kanerogers I merged, however this isn't anti-nullish, it's pro-truthy. Which means false will never be passed. Not sure if this is an issue though.

Good point, @lwansbrough! I guess we'll find out. :laughing:


There is a bug somewhere

When trying to login to lbry on an android phone, I get an error message that says:
" There is a bug somewhere Try refreshing to fix the issue, If that doesn't work email<EMAIL_ADDRESS>for support.  "
I have tried to login in 3 different browsers. When I login it briefly goes to the homepage, then redirects to the error message.
android version:6.0,1
chrome version:55.0.2883.91
hermit version:15.5.2
link bubble version:1.9.58
hermit is "lhermit lite apps browser". It's on the play store.
link bubble is also on the play store.

I can login on desktop (chromebook) just fine.

Please email us as requested and we'll take a look at the account.


MOERA error

After running the command described here, I get this error in PowerShell: "There should be at least one MOERA in Email Addresses." Get-UnifiedGroup shows a primary SMTP address as well as multiple smtp aliases. What does the MOERA error signify?

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

ID: a8792555-ecc1-9c9e-1d7a-e0b3b1b0b2b7
Version Independent ID: 442f4470-d54b-b4c0-f0f1-9f35b7017dc1
Content: Troubleshoot Remove an alias from a group
Content Source: Office365-Admin/troubleshoot-issues-for-admins/remove-an-alias-from-a-group.md
Service: o365-administration
GitHub Login: @adefowler
Microsoft Alias: anfowler

@officedocsbot assign @mypil

@DavidSchrag - Thank you for submitting feedback.
I will get this issue over to the O365ITPro writing team for investigation.
Thank you for reporting and making the docs better. Much appreciated.
I made a note to request the team to update this when the work is complete.

@DavidSchrag Thank you for the feedback. Microsoft Online Email Routing Address (MOERA) is usually the UPN or the .onmicrosoft.com email address. So from the error it looks like you are trying to remove  the MOERA address from the group, which will not work unless there is another moera address added as an alias to the emailaddresses attribute.

How do you determine which values count as MOERA values? I have a group where the EmailAddresses attribute contains one SMTP value, two smtp values, and one SPO value. If I try to remove one of the two smtp values, I get the error, even though the smtp values are aliases that should never be used for this group. I would think that the SMTP value would count as the MOERA.

@DavidSchrag  It is usually the .onmicrosoft.com addresses which counts as the MOERA, However if you get the error while removing normal aliases, I would recommend you to contact your O365 Tenant support to understand more on what could be causing this and request for a fix.
Feel free to Let us know if there is any changes required on the document.
Regards
Sriraman

Somehow there was no onmicrosoft.com address listed within the EmailAddresses field. When I added one, I was able to remove the unwanted alias. You might update the documentation to suggest using Get-UnifiedGroup -Identity  | Format-List to view the existing Email Addresses to ensure that an onmicrosoft.com address is present before trying to remove aliases. Thanks for your help.

@DavidSchrag Thank you for the quick response. A .onmicrosoft.com address is usually added immediately as an alias after you create a Unified group, So we may not need an update as of now. Thank you again for submitting your feedback, I'm glad that your issue is resolved.

@DavidSchrag - From our understanding, the issue you raised has been answered by msbemba. If you feel it hasn't been answered, please re-open this issue.
Thank you for your contribution to make the docs better! Much appreciated!

@officedocsbot close

for those who arrive here after some our of work, the command that worked for me to add the onmicrosoft.com adresse to my office 365 group was: Set-UnifiedGroup -Identity "GroupName" -EmailAddresses<EMAIL_ADDRESS>my office 365 group was created from a distribution list that have been upgraded to o365 group. Then I successfully removed an alias with the following command: Set-UnifiedGroup -Identity "GroupName" -EmailAddresses<EMAIL_ADDRESS>


How can I integrate the WebSocketClient with an event loop?

I need to integrate the WebSocketClient with a different connection inside the same app. This would require the use of something like the java.nio.channels.SelectableChannel, which you poll using select(), possibly together with other pollables.
The documentation states "The underlying classes are implemented [using] java.nio, which allows for a non-blocking event-driven model", but this probably refers to the server-side WebSocket? It seems on the client-side one is expected to create a thread for the reading. This is not ideal.
Describe the solution you'd considered
Ideally the internals of the WebSocket should expose the event loop, or allow integration with an application-provided event loop.
The poorer alternative would be, for the application to create a reader thread which onMessage will push messages to a (pollable) blocking queue, which can in turn be used with select() or a similar non-blocking mechanism.

Personally, BlockingQueue has worked well for me. I don't really see why this is a "poor alternative". Do you mind elaborating on why you think it's bad?

It's a poorer alternative in terms of performance of an application which is otherwise draught designed as single threaded (event driven), because it implies the additional thread switch and somewhat more code.
Can you please confirm my assumption above? "It seems on the client-side one is expected to create a thread for the reading.".  Is that how normally the WebSocket is integrated into apps? Thanks.

Well, I haven't used the client side but AFAIK on both sides this library runs in background, on a seperate thread (or you can just call "run" directly on any thread you want). As for performance penalty, in my experience BlockingQueue offers great throughput but not-so great latency (~20 microseconds unless you pin both threads on same cpu, not that it matters 99% of time). Honestly, if you are fine with 1 ms latency GC, you won't notice this at all.
I've built a realtime game with WebSockets tons of blocking queues (~80 threads runing at the same time) where both latency and throughput are important and the bottleneck is either IO or physics engine. The cost of blocking queues is too small to be even considered.
Then again, if you find that a change to this library would yield a performance improvement for some users, I'd be interested in that.

Thanks for the implementation. However, I notice that when tested with 100 websocket clients there are 3x(300) odd threads created. So may be thats the reason as pointed by @haelix888 this implementaion doesnt use nio channel where we can have a single event loop by passing the selector. Honestly, this client choked when the number of client exceeded 1000 since it eats up lot of memory and I/O. It would be great if it was purely non-blocking one.

That and the latency hit although I admit that is very rare to be latency sensitive at websocket level (you'd use a lower level protocol) AND if you're sensitive the rest of the code in the system would be super fast already

The server is purely non-blocking and number of threads will remain constant.
The client, however, currently uses 3 threads per instance. Creating this many client instances in a single application (as opposed to receiving many connections in server) is not typical and I don't see a use case for this (apart from load testing maybe).
What's your reason for creating so many clients?


Update inventory-visibility.md

:x: Organization membership check failed
Members of the MicrosoftDocs organization should use the private repo. Please move your changes to https://github.com/MicrosoftDocs/Dynamics-365-Operations, and close this pull request.

@sherry-zheng I can see that you have reproduced this PR in the private repo, so I'm deleting it here. You don't have to do anything more here.


Add additional type safety for unhandledRejection

Flow version: 0.98.1
Expected behavior
Process methods which listen for unhandledRejection should have additional type information. The argument should be mixed or similar, forcing the user to refine it.
Actual behavior
Anything can pass through the callback to unhandledRejection, including non-Error objects. Perhaps by default the type could be mixed?

Reproducible code:

// This code produces no errors in Flow, can it?
process.once('unhandledRejection', async e => {
  return e + 1;
});

Hello, not sure if something like this is possible, but it would definitely help prevent bugs if so.

This can probably be done via overloading the definition for once in the libdefs to be more specific when the argument is 'unhandledRejection'. I would be happy to accept a PR for this.

I think there was some bug if you overload string literals

We do this all the time in the libdefs (see dom.js for a few examples) so I think it should definitely be possible here.

I threw together something in #7761, but not sure if this is what we had in mind, also not able to run tests yet locally. I'll try again in the future, or someone can feel free to steal it. Thanks for chiming in.

@dsainati1 I tried it in Try Flow, but it doesn't select right overload...
Try Flow

Is it not possible to define every possible variant for EventEmitter?

It isn't, because it is used by users directly unlike EventTarget

Similar issue https://github.com/facebook/flow/pull/2680


Inconsistent annotation in MUSE train

Very grateful to open source such a wonderful work!
When I was training using "multi_reason_seg", I found "gt_mask.shape[0] != pred_mask.shape[0]" in some cases.
For example,

There are only 2 categories and 2 masks in the convesarion, "teddy bear" and "log".

But there are 2 categories and 3 masks in the annotation, 1 for "teddy bear" and 2 for "log".
Therefore, "gt_mask.shape[0] != pred_mask.shape[0]". I had to comment out https://github.com/MaverickRen/PixelLM/blob/main/model/PixelLM.py#L586 to make things work.
Is there any fix for this situation? Or is there any update plan for the MUSE dataset?
Thanks in advance

I'm sorry, I will find out the bugs in this version of the published data as soon as possible

I'm sorry, I will find out the bugs in this version of the published data as soon as possible

Did you upload the updated version of the data?

Sorry, I figure out what the problem is. There's a very small number of question-answer pairs where the text content doesn't align with the number of answer labels. I fix this issue in the data loading code.

Have you solved the problem? I met this problem even with the updated code.


RDM-7901 Performance bug in User Profile API causing downtime

JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/RDM-7901
Change description
Created UserProfileLight version without jurisdictions.
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[ X] No

We will use https://github.com/hmcts/ccd-user-profile-api/pull/264 based on master instead, as this is a hot-fix.