Chatbot working on emulator but not working on Web Chat and Direct Line after publishing to Azure

Hello,
When I try to deploy and test the bot on Azure I'm getting the following error: There was an error sending this message to your bot: HTTP status code InternalServerError. I also have error 502 in the browser console: https://directline.botframework.com/v3/directline/conversations/1Td3aCZWwMV92LyotjCNuT-eu/activities 502
Use: JavaScript
Deployment Environment: Azure Bot Service
MicrosoftAppId and MicrosoftAppPassword has been set correctly in the .env file.
I use Luis and Snowflake too.
Please let me know if there is any information which I can provide to help resolve my issue.

@stevkan thank you for answer.
This is my App Service Configuration:

I think everything is ok in the configuration.
When I want to test a bot in Azure. The window is empty and the bot is not responding.

However, the bot works fine in the Bot Framework Emulator.
Unfortunately I can't send all the code for you.
What are you interested in the code?
Is it possible that my Microsoft ID and password have expired?

Hi,
I have a URL address and an endpoint like in the pictures, I think it is correct.

What else can I check? Maybe some code fragment will help?
Thx for your answer.

@kpietraszkoGit, thank you for your patience. If you haven't already, can you add/enable Application Insights in Azure? Then when attempting to chat via Web Chat you can see more of what is happening when the connector gets the request and forwards it to the bot, and what kind of response the bot is returning with.
When the connector gets an error code from the bot, it is only going to return a 500 type error code to the client even tho the bot may be returning a 400 type error code.


Issue 195 read enforcer or prerequisites tag

In maven 3.5.0 the prerequisites tag is only valid for plugin type projects.
Currently the versions-maven-plugin requires the prerequisites tag to compare the minimum maven version requirements of plugins in the pom.
If you use the prerequisites tag with maven 3.5.0 you get the following warning:
[WARNING] The project dje1990:rts:war:HEAD-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
If you remove the prerequisites tag (with any maven version) with the current version of versions-maven-plugin you get:
[WARNING] Project does not define minimum Maven version, default is: 2.0
[INFO] Plugins require minimum Maven version of: 3.0
[INFO]
[ERROR] Project does not define required minimum version of Maven.
[ERROR] Update the pom.xml to contain maven-enforcer-plugin to
[ERROR] force the maven version which is needed to build this project.
[ERROR] See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[ERROR] Using the minimum version of Maven: 3.0

The versions-maven-plugin needs to be able to read the minimum maven version from both the maven-enforcer-plugin and the prerequisites tag (for plugin type projects) for a pom and all it's parent poms.
This pull request attempts to implement the above. The javadoc for the main implementation class reads:
/**
 * Finds the minimum Maven version required by a Maven project.
 * Checks for the existence of both the prerequisites.maven property and for maven-enforcer-plugin:enforce goal.
 * Returns null if no minimum version is found.
 * Checks project and it's parents recursively.
 *
 * Pros: works with Maven 3.5.0 which throws a warning if prerequisites.maven is set for a non Maven-Plugin project.
 * Cons: tightly coupled with the maven-enforcer-plugin and the Xpp3Dom configuration tag.
 */
class RequiredMavenVersionFinder {

This pull request contains the implementation, unit tests (100% coverage for the main implementation class) and attempts at integration tests (not run yet as I do not have access to the CI). Some manual testing has also been carried out with the following result using maven 3.5.0 with the prerequisites tag removed and the maven-enforcer-plugin needing 3.5.0:
[INFO] --- versions-maven-plugin:2.6-SNAPSHOT:display-plugin-updates (version-checks) @ rts ---
[INFO]
[INFO] All plugins with a version specified are using the latest versions.
[INFO]
[INFO] All plugins have a version specified.
[INFO]
[INFO] Project inherits minimum Maven version as: 3.5.0
[INFO] Plugins require minimum Maven version of: 3.0
[INFO]
[INFO] No plugins require a newer version of Maven than specified by the pom.

Please review the change, test the implementation for your own needs, let me know if any additional
changes are needed, and pull this change onto a feature branch and run the CI.
(21 commits compose of original 7 commits on master, 7 reverts on master, 7 commits on a feature branch).

Can you first please squash your commits which makes it possible to make a review on your pull request...Apart from those failing integration tests..

Hi @khmarbaise  I have created a new pull request with a single commit and without the broken integration tests at https://github.com/mojohaus/versions-maven-plugin/pull/230


Add support of Archive Assemblies

Implement support of Archive Assemblies - special objects to hold file name of the archive assembly that will be inserted into appleseed project.

Link to discord discussion: https://discordapp.com/channels/430063582777049089/430064067873472526/442745354748952587


✨ (Blocked by #1475) - Ensure that metrics is protected with TLS for Prometheus integration.

⚠ This PR is blocked by #1475 ; the goal is to merge the second commit. After we merge (#1475) we can rebase and move forward within
This change replaces controllers-runtime's self-signed certificates for metrics with cert-manager-managed certificates, ensuring security. We should not use insecureSkipVerify: true. Also, it is not a good practice for production env relay on the certs self-signed generated by controller-runtime and/or the old kube-rbac-proxy according to sig-security.
Key updates:

Configured metricsServerOptions to use cert-manager-managed certificates (/var/metrics/certs).
Added ClusterIssuer (olmv1-metrics-ca) and Certificate resources for automated certificate management.
Updated ServiceMonitor to enable secure TLS scraping by Prometheus using certificates issued by olmv1-metrics-ca.
The deployment was pushed to mount metrics certificates as secrets.

Benefits:

Enhanced security with automated certificate lifecycle management.
Production-ready TLS setup for Prometheus metrics scraping.

We don't need a separate service (although we do have a separate one now)/certificate for the metrics, they can all share the same certificates by adding additional hostnames to the Certificate. Even if they are different services, they can still share the same certificate.

Make the configuration here much simpler
The certificate should use the existing Certificate/Issuerolmv1-ca rather than creating another one. Even better would be to add the service names into the existing certificate so that the certificate can be shared.
4

/hold

This should use the existing olmv1-ca to sign the certificate. No need to add another.
This should add support to rotate the certificates via controller-runtime/pkg/certwatcher

Hi @tmshort
I will create a Brief and RFC to explain why it is required
Also, I will follow your suggestion that will simplify things
By last keep all in the same PR to add as example in the RFC
And yes, you are right. We need to do the same with catalogD

Hi @tmshort
Thank you for your input. That was very, very helpful.
Since we could simplify for now, I will include all in #1475 so it will be easier to use it in the RFC.
But I will follow your input. !
Closing in favor of #1475


Question about ssh access to Linux VM using the AADSSHLoginForLinux extension.

I followed the steps on the document to enable access to the virtual machine through ssh using my Azure AD credencials, however it seems these don't with Putty or any other third party ssh client.
So my question is, if this extension will allow access to the virtual machine using only "az ssh vm"
Thanks.

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

ID: a2ede563-b873-0bc3-959f-69e555f0efcc
Version Independent ID: 8471d9e4-6c79-0cf1-c5ed-50c58e1b92aa
Content: Sign in to Linux virtual machine in Azure using Azure Active Directory (Preview)
Content Source: articles/active-directory/devices/howto-vm-sign-in-azure-ad-linux.md
Service: active-directory
Sub-service: devices
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@carlosporter We are checking this and will get back to you.

@carlosporter You can export the SSH config of your VM using the information in the Exporting SSH config section of the doc.

#reassign:@MicrosoftGuyJFlo

Thanks for your update @MicrosoftGuyJFlo.
I will test it, and see if the configuration file can be converted to a format can be used with Putty or with the windows "ssh" client on Powershell.
Regards,

#please-close

I ended up answering my own question, and  I have say that it's because the documentation lacks important details, the mayor pieces of missing information are:

"az ssh config" creates a certificate file named "id_rsa.pub-aadcert.pub" and it expires 1 hour after being created.

The configuration file works only with an OpenSSH client for Linux, the Windows version doesn't have the support for PKCS11 required to load the certificate saved on "id_rsa.pub-aadcert.pub"

Here is an example of how to generate the configuration file for OpenSSH:
        user@workstation1:~/today_1214$ az ssh config --ip \* --file ./ssh_config_example
        user@workstation1:~/today_1214$ cat ./ssh_config_example

        Host *
                User<EMAIL_ADDRESS>                CertificateFile /tmp/aadsshcertp9akswvx/id_rsa.pub-aadcert.pub
                IdentityFile /tmp/aadsshcertp9akswvx/id_rsa
        user@workstation1:~/today_1214$

The configuration settings at ./ssh_config_example can be used by adding the -F flag to any OpenSSH client for Linux, as in the example below:
        user@workstation1:~/today_1214$ ssh -F ./ssh_config_example <IP_ADDRESS>
        The authenticity of host '<IP_ADDRESS> (<IP_ADDRESS>)' can't be established.
        ECDSA key fingerprint is SHA256:RoCmr18xO07gSkHZ1QfdA1LqFU90qYYEUDWATXMtRNY.
        Are you sure you want to continue connecting (yes/no)? yes
        Warning: Permanently added '<IP_ADDRESS>' (ECDSA) to the list of known hosts.
        Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-1051-azure x86_64)

         * Documentation:  https://help.ubuntu.com
         * Management:     https://landscape.canonical.com
         * Support:        https://ubuntu.com/advantage

          System information as of Thu Jul  1 01:15:06 UTC 2021

          System load:  0.04              Processes:           116
          Usage of /:   6.8% of 28.90GB   Users logged in:     0
          Memory usage: 32%               IP address for eth0: <IP_ADDRESS>
          Swap usage:   0%

        4 updates can be applied immediately.
        To see these additional updates run: apt list --upgradable

        The programs included with the Ubuntu system are free software;
        the exact distribution terms for each program are described in the
        individual files in /usr/share/doc/*/copyright.

        Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
        applicable law.

        To run a command as administrator (user "root"), use "sudo <command>".
        See "man sudo_root" for details.

        user@azure-aad-account.contoso.com@linuxserver:~$

However there are several problems with this this approach.

The certificate stored at id_rsa.pub-aadcert.pub is valid for 1 hour approximately, so it's necessary to re-create it again running "az ssh config"

The parameter "CertificateFile" on the configuration file for OpenSSH requires an ssh client that supports an "PKCS11Provider", this requirement excludes the most common ssh clients on Windows, Putty ( release 0.75-1 ) and OpenSSH_for_Windows_8.1p1 ( or previous versions).

If you download the private key to a windows server you need to make sure that only the current user owns the file and remove everyone's else access to it so the ssh client won't fail indicating that the key is not protected.

It seems that the configuration works fine with MobaXterm ( version 21.1 ) when you open a local shell session ( not an ssh session ) and use the ssh client embedded on the application ( OpenSSH_7.5p1 ) to connect to the remote server.
So, exporting the ssh configuration "works" on a Linux server, but only for an hour or so... and it's not worthwhile to follow all the steps required to get to configuration to work on windows because you will have to do it all over again after 1 hour or so.
The bottom line is, don't bother trying to get this to work on Windows, if you must, then use a Linux server or the Azure Cloud Shell to ssh into the virtual machine.
The only viable method for a windows server would be to install the Azure CLI client locally and start a session with "az login". otherwise avoid exporting the OpenSSH configuration to a Windows workstation if you don't have access to a Linux machine to setup it up properly.

I ended up answering my own question, and I have say that it's because the documentation lacks important details, the mayor pieces of missing information are:

"az ssh config" creates a certificate file named "id_rsa.pub-aadcert.pub" and it expires 1 hour after being created.
The configuration file works only with an OpenSSH client for Linux, the Windows version doesn't have the support for PKCS11 required to load the certificate saved on "id_rsa.pub-aadcert.pub"

[...]

Hi,
I tend to suggest to use az ssh for rolling out personal ssh keys to authorized_keys file. After that you can use any ssh client like you would normally do and aad is only used for verification of the username/iam rights. I do however think that Microsoft has an easy opportunity to extend their current setup to store a users public ssh keys in AAD and then use those for login.

@SanDeo-MSFT Feedback for you on the Linux VM Preview configuration.


81 add link to fuzuetech and also to the season food site

@elenavolpato please check the errors

@aivuk please check now this pr


Question: Could you give an example on how to use Caching for Docker?

Could you give an example on how to use Caching for Docker in Azure Pipelines?
Thank you.
trigger: none

schedules:
- cron: "0 2 * * 0"
  always: true
  branches:
    include:
    - dev
  batch: true
  displayName: Weekly

pool:
  vmImage: 'ubuntu-latest'

steps:
- task: Cache@2
  displayName: Cache Docker images
  inputs:
    key: 'docker | cache'
    path: $(Pipeline.Workspace)/docker
    cacheHitVar: DOCKER_CACHE_HIT
- script: |
    docker load -i $(Pipeline.Workspace)/docker/cache.tar
    displayName: Restore Docker image
    condition: and(not(canceled()), eq(variables.DOCKER_CACHE_HIT, 'true'))
- task: dependabot@1
  displayName: Run Dependabot
  env:
    PAS_TOKEN: $(PAS_TOKEN)
  inputs:
    useConfigFile: true
    azureDevOpsAccessToken: $(PAS_TOKEN)
- script: |
    mkdir -p $(Pipeline.Workspace)/docker
    docker save -o $(Pipeline.Workspace)/docker/cache.tar cache
    displayName: Save Docker image
    condition: and(not(canceled()), or(failed(), ne(variables.DOCKER_CACHE_HIT, 'true')))

I find caching of Docker images a tricky thing especially with hosted agents given their ethereal nature.
Caching is very specific to your scenario. The docs guide briefly but there is also a more detailed example here
I would recommend either of two approaches:

Use a private agent (it would keep the docker image unless you remove it) with a specific tag in your task (set dockerImageTag input to 0.5.1)
Use a single pipeline to update multiple repositories within the same job. Once a the docker image is pulled the first time in the job, the image will be available for the subsequent tasks without re-download. This cane be done using the targetRepositoryName task input.

Ah okey, thank you.


Implement variables

Codecov Report

Merging #28 into master will increase coverage by 0.13%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #28      +/-   ##
==========================================
+ Coverage   98.42%   98.56%   +0.13%
==========================================
  Files          16       17       +1
  Lines         127      139      +12
==========================================
+ Hits          125      137      +12
  Misses          2        2

Impacted Files
Coverage Δ

src/components/container_base.js
100% <100%> (ø)
:arrow_up:

src/components/dropdown/Dropdown.js
100% <100%> (ø)

Continue to review full report at Codecov.

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


Dependencies missing for install & Fail to exec dev script

Observed Behavior
After running npm run dev recieved message "Failed to exec dev script"
Suspected Cause
Dependencies are missing for fresh installation backdating to against an exisiting Laravel 5.3 app
Reproduction Steps
Using an existing Laravel 5.3 app (all API driven, but it would be good to add a simple UI to update the data).

Delete gulpfile.js
Delete yarn.lock file
Recursively delete node_modules directory
Run yarn add laravel-mix
Copy webpack.config.js and webpack.mix.js to home directory.
Copy scripts from npm-scripts laravel-mix documentation to packages.json
Run npm run dev

Local Stack

Node v6.3.1
NPM v4.1.1

Work Around
I was able to work around the issue and get to a working instance by:

Manually install webpack 2.2.0-rc.4 yarn add<EMAIL_ADDRESS>Manually install graceful-fs yarn add graceful-fs
Run webpack --progress --hide-modules instead of the script

NPM Error Log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/6.3.1/bin/node',
1 verbose cli   '/Users/dfurman/.node/bin/npm',
1 verbose cli   'run',
1 verbose cli   'dev' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle @~predev: @
6 silly lifecycle @~predev: no script for predev, continuing
7 info lifecycle @~dev: @
8 verbose lifecycle @~dev: unsafe-perm in lifecycle true
9 verbose lifecycle @~dev: PATH: /Users/dfurman/.node/lib/node_modules/npm/bin/node-gyp-bin:/Users/dfurman/Code/web/routing/node_modules/.bin:/Users/dfurman/.node/bin:/Users/dfurman/.composer/vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin:/usr/local/MacGPG2/bin
10 verbose lifecycle @~dev: CWD: /Users/dfurman/Code/web/routing
11 silly lifecycle @~dev: Args: [ '-c',
11 silly lifecycle   'cross-env NODE_ENV=development webpack --watch --progress --hide-modules' ]
12 info lifecycle @~dev: Failed to exec dev script
13 verbose stack Error: @ dev: `cross-env NODE_ENV=development webpack --watch --progress --hide-modules`
13 verbose stack spawn ENOENT
13 verbose stack     at ChildProcess.<anonymous> (/Users/dfurman/.node/lib/node_modules/npm/lib/utils/spawn.js:33:16)
13 verbose stack     at emitTwo (events.js:106:13)
13 verbose stack     at ChildProcess.emit (events.js:191:7)
13 verbose stack     at maybeClose (internal/child_process.js:852:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
14 verbose pkgid @
15 verbose cwd /Users/dfurman/Code/web/routing
16 error Darwin 15.6.0
17 error argv "/usr/local/Cellar/node/6.3.1/bin/node" "/Users/dfurman/.node/bin/npm" "run" "dev"
18 error node v6.3.1
19 error npm  v4.1.1
20 error file sh
21 error code ELIFECYCLE
22 error errno ENOENT
23 error syscall spawn
24 error @ dev: `cross-env NODE_ENV=development webpack --watch --progress --hide-modules`
24 error spawn ENOENT
25 error Failed at the @ dev script 'cross-env NODE_ENV=development webpack --watch --progress --hide-modules'.
25 error Make sure you have the latest version of node.js and npm installed.
25 error If you do, this is most likely a problem with the  package,
25 error not with npm itself.
25 error Tell the author that this fails on your system:
25 error     cross-env NODE_ENV=development webpack --watch --progress --hide-modules
25 error You can get information on how to open an issue for this project with:
25 error     npm bugs
25 error Or if that isn't available, you can get their info via:
25 error     npm owner ls
25 error There is likely additional logging output above.
26 verbose exit [ 1, true ]

@JeffreyWay ,
Would you be interested in a PR for including webpack and graceful-fs as dependencies to laravel-mix?
Aside: Long-time listener, first-time caller ;) I'm loving the simplified laravel-mix framework and I'm excited to cut my current projects over to it. Keep up the awesomeness!

Result is replicated using Node 7.4.0 (tested from my other rig).

Same here
npm ERR! Linux 4.8.13-1-ARCH
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "dev"
npm ERR! node v7.4.0
npm ERR! npm  v4.0.5
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR<EMAIL_ADDRESS>dev: `cross-env NODE_ENV=development webpack --watch --progress --hide-modules`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>dev script 'cross-env NODE_ENV=development webpack --watch --progress --hide-modules'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the helpmepyz package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cross-env NODE_ENV=development webpack --watch --progress --hide-modules

@djfurman - Hmm, Webpack already is a dependency of Laravel Mix.

That's odd. Since we both installed with yarn I'll nuke my node_modules folder and try with npm direct install. Maybe it's a yarn issue? I'll let you know the results this evening.
Thanks for the quick response!

@rikless I'm using Yarn also here, but there is no issue at all (in here :D). I guess, it isn't an issue, it just because you don't have cross-env or webpack globally.

@nmfzone Actually, I have boths :) I was just talking about yarn to give more context ;)

@rikless Haha, so I'm completely wrong about it.😝  I just guess because I've an error like that before. And the problem I don't have webpack globally.

@nmfzone WOUPS, to be sure, I've installed it again, and now it works ! Just compiled with webpack last week, and it worked, so I don't understand, but thanks :)

@rikless hmmm 😕  So, I'm not wrong about it ;) Anyway, good to see it works.

Installing both webpack & cross-env works locally (in the project) too. I see both listed in the packages.json dependencies so why they aren't being pulled in confuses me, but we do have a work around!

I have a similar problem:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/7.4.0/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'run',
1 verbose cli   'webpack' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'prewebpack', 'webpack', 'postwebpack' ]
5 info lifecycle @~prewebpack: @
6 silly lifecycle @~prewebpack: no script for prewebpack, continuing
7 info lifecycle @~webpack: @
8 verbose lifecycle @~webpack: unsafe-perm in lifecycle true
9 verbose lifecycle @~webpack: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/rica/learnspace/vuejs/www/simple-crud/node_modules/.bin:/usr/local/php5/bin:/Users/rica/.chefdk/gem/ruby/2.1.0/bin:/opt/chefdk/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands
10 verbose lifecycle @~webpack: CWD: /Users/rica/learnspace/vuejs/www/simple-crud
11 silly lifecycle @~webpack: Args: [ '-c',
11 silly lifecycle   'cross-env NODE_ENV=development webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js' ]
12 silly lifecycle @~webpack: Returned: code: 2  signal: null
13 info lifecycle @~webpack: Failed to exec webpack script
14 verbose stack Error: @ webpack: `cross-env NODE_ENV=development webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
14 verbose stack Exit status 2
14 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:885:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid @
16 verbose cwd /Users/rica/learnspace/vuejs/www/simple-crud
17 error Darwin 15.0.0
18 error argv "/usr/local/Cellar/node/7.4.0/bin/node" "/usr/local/bin/npm" "run" "webpack"
19 error node v7.4.0
20 error npm  v4.1.1
21 error code ELIFECYCLE
22 error @ webpack: `cross-env NODE_ENV=development webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
22 error Exit status 2
23 error Failed at the @ webpack script 'cross-env NODE_ENV=development webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the  package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     cross-env NODE_ENV=development webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

my package.json
{
  "private": true,
  "scripts": {
    "webpack": "cross-env NODE_ENV=development webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "dev": "cross-env NODE_ENV=development webpack --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "hmr": "cross-env NODE_ENV=development webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
    "production": "cross-env NODE_ENV=production webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
  },
  "devDependencies": {
    "bootstrap-sass": "^3.3.7",
    "cross-env": "^3.1.4",
    "gulp": "^3.9.1",
    "jquery": "^3.1.0",
    "laravel-elixir": "^6.0.0-9",
    "laravel-elixir-vue": "^0.1.4",
    "laravel-elixir-webpack-official": "^1.0.2",
    "laravel-mix": "^0.4.0",
    "lodash": "^4.14.0",
    "vue": "^2.0.1"
  }
}

@ricardocanelas Do you read other comments above?

@nmfzone Sorry, I deleted my commented, because it was my mistake.. I wrote 'resource', and should be 'resources'.

@ricardocanelas Whoops, nope. Good to see it works.

I've encountered this as well. When using yarn to install modules, cross-env seems to be missing, but with npm install there is no problem. Could there be something that is run by npm but not by yarn?

This is an issue with yarn: https://github.com/yarnpkg/yarn/issues/1487.

Yeah this is a Yarn issue. Nothing for us to do until it gets fixed on their end. There are 571 open issues right now, so I'm just using good ole npm install right now. I recommend the same.


Update Enso_File download to Cloud API changes

Pull Request Description

As asked for by @PabloBuchu, related to https://github.com/enso-org/cloud-v2/pull/1580/

Important Notes

Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:

[ ] The documentation has been updated, if necessary.
[ ] Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
[ ] All code follows the
Scala,
Java,
TypeScript,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
[ ] Unit tests have been written where possible.
[ ] If meaningful changes were made to logic or tests affecting Enso Cloud integration in the libraries,
or the Snowflake database integration, a run of the Extra Tests has been scheduled.

If applicable, it is suggested to paste a link to a successful run of the Extra Tests.

Enso_File_Spec tests are passing so it should be all good. Not sure if worth running Cloud tests on CI as they are failing on develop anyway.

Trying 2 new approaches to listing ran tests (as I noticed some broken tests even though green status on develop).

Re-enable listing all tests in CI log on the Extra workflow.

I think there it is useful to see all tests that were run. Failures can be quickly glanced over thanks to recently added annotations.

Trying to enable the Test Report workflow

It was disabled due to a 'not a fork' check, but that was also affecting scheduled and dispatched runs which I don't think was right.

https://github.com/enso-org/enso/actions/runs/12036271163

Extra Cloud tests are now running the necessary Cloud tests, and they are passing 🎉

So I'm merging.


sample uri scheme

the navigation scheme in the sample above should be app: with only two slashes, not three. Otherwise, navigation, be it within or outside of the shell using the uri, will always end with an exception.

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

ID: e8eebbec-c116-fa16-14f3-83e5905e28b2
Version Independent ID: 9124edfa-2df2-0ef2-6722-0efc0e1134da
Content: Xamarin.Forms Shell - Xamarin
Content Source: docs/xamarin-forms/app-fundamentals/shell.md
Product: xamarin
GitHub Login: @davidbritch
Microsoft Alias: dabritch

Hi @MSiccDev
Thanks for pointing this out. It's fixed in a PR that'll go out later.


This documentation seems to be for version 0.8 and not the latest version 1.0

We are currently exploring iot-hub-device-update if it can work for us as the OTA solution for updating our devices that are running an A/B design. After looking at the documentation some of it seems to be written for version 0.8.0 and not updated to match the new version 1.0.0. When trying to follow the different guides we have run into some problems. Addinationnly it would be interesting to have a complete step-by-step guide for performing a complete A/B update using swupdate from the Azure portal. The article named ‘Tutorial: Device Update for Azure IoT Hub using the Raspberry Pi 3 B+ reference image’ looks to be for version 0.8.0 but also contains no section on how to verify that the update is performed correctly. We can’t find any concrete guide on a complete A/B update of an image using ADU, maybe we missed something and hopefully you guys can help us out.
We are using version 1.0.0 of ADU on a Yocto image built for Raspberrypi 3b+. To build the image we used https://github.com/Azure/iot-hub-device-update-yocto. For connecting to Azure, we created two files for ‘AducIotAgent’:

/adu/du-config.json
/adu/du-diagnostics-config.json

The settings for the files came from following this guide https://learn.microsoft.com/en-us/azure/iot-hub-device-update/device-update-raspberry-pi, we used the du-config.json and du-diagnostics-config.json specified in the guide and changed the relevant fields for us (manufacturer, model and connectionData).
This guide is updated on 1/11-2022 which is the date of the release for ADU 1.0.0 but the service referenced in step 3 under ‘Configure the Device Update agent on Raspberry Pi’ can not be found on the yocto image. Instead, the service is named ‘deviceupdate-agent.service’. Is the guide up to date with the latest version? It also references a sample image in ‘Assets’ ending in .gz which can be used. This file is not a part of the release of 1.0.0 but can be found for 0.8.0.
Our goal is to perform an A/B update of the image on the device. For testing how updating using the Azure portal works we used the swu and importmanifest.json file from ‘Tutorial_Simulator’ in ‘Assets’, which results in a failed update with the extended result code: 806354951 which means ‘ADUC_ERC_SWUPDATE_HANDLER_MISSING_SCRIPT_FILE_NAME’. The release of 1.0.0 links to a SWUpdate handler 2 as a new feature. In the README for swupdate handler 2 there is a section about registering the handler. We tried to run AducIotAgent with the swupdate handler 2 but it did not fix anything for us.
In summary, we have created a Yocto image with AducIotAgent (version 1.0.0) and we can connect our device to the cloud and get the correct data reported. Our problem is updating the image using swupdate from the portal. Running a local swupdate using only swupdate commands works fine but we can’t get it to work from the portal. Any idea where we should look for more information or a guide showcasing how an A/B update using swupdate works for ADU version 1.0.0+?

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

ID: 17de4614-f12f-1ea1-5d20-a2d65111de52
Version Independent ID: 6a05ed78-88bc-3f1d-4df9-916b0c4e18ef
Content: Device Update for IoT Hub tutorial using the Raspberry Pi 3 B+ reference Yocto image
Content Source: articles/iot-hub-device-update/device-update-raspberry-pi.md
Service: iot-hub-device-update
GitHub Login: @kgremban
Microsoft Alias: kgremban

@Awarty
I've delegated this to @kgremban , a content author, to review and share their valuable insights.

#reassign:esha0611

#reassign: eshashah-msft

Hi @Awarty: Thanks for the feedback. I have updated the tutorial files and instructions for the latest release and portal. The tutorial files contain the base image (.wic file), update files(.swu), script file and manifest: https://github.com/Azure/iot-hub-device-update/releases/download/1.0.2/Tutorial_RaspberryPi.zip
The config files have been updated to match the tutorial files. After adding the connection information, you can use the json in the instructions. If you want to change these, this please ensure the manifest values match with config files. The example uses the SWUpdate handler v2 and the manifest has the required properties that are epected for this handler.

Hi @eshashah-msft,
I have looked over the article with your changes. I performed a successful A/B update via Azure using your feedback and the files from 'Tutorial_RaspberryPi.zip'. Thanks for your help with my issue.


feat(chart): expose all services through ALB

[x] disable nginx proxy
[x] expose / on api instances
[x] expose /admin on admin instances
[x] expose /rows on rows instances
[x] expose /search on search instances
[x] expose /filter on search instances
[x] expose /sse on sseApi instances
[ ] expose /openapi.json on github
[ ] customise 404.html error page ?

expose assets and cached-assets ? Should not be served by API anymore right ?

Yes, it should be served by S3+CloudFront if I am not wrong

@severo can you please tell me if openapi.json endpoint is still necessary ?
And if we have to customize the 404 error page ?

Yes, we need it somewhere. Not necessarily at that URL though, if it's an issue. re 404: not important at all

re: openapi.json. Ideally, it would be served from the docs. See the previous discussions here: https://github.com/huggingface/dataset-viewer/commit/cf8042da9a2325a1d5706dbecded9b187d5cc8db and here: https://github.com/huggingface/doc-builder/issues/312#issuecomment-1675099444. So: not a problem at all if we move its URL, we would just have to update it in the docs.

re: openapi.json. Ideally, it would be served from the docs. See the previous discussions here: cf8042d and here: huggingface/doc-builder#312 (comment). So: not a problem at all if we move its URL, we would just have to update it in the docs.

We can do the redirect with a custom annotation. So let me know if you want to move it or not ;)

I'm wondering: would it make sense to have all the paths in the same ingress config file? or is it better to have one file per service?

Yes we can. Do you think it will be easier for you?
IMO it's better to keep it separate, in case you want to have a dedicated URL (ex: api.datasets.hf.co)

We can do the redirect with a custom annotation. So let me know if you want to move it or not ;)

Please let's keep it unchanged if it's possible, and we can move it later in a dedicated PR

We should finish this PR. Happy to give you a hand @rtrompier

We should finish this PR. Happy to give you a hand @rtrompier

Thx for the reminder. I plan to finish it in the week.

I think it's good now, right?

I think so yes :)


chat crypto updates: encrypt header, body + ciphertext versioning

This makes the changes to chat crypto described in
https://keybase.atlassian.net/wiki/display/MP/Chat+Crypto
It also implements a versioned MessagePlaintext with a single body in V1.
r? @maxtaco @mmaxim

This is a great start, thanks @patrickxb! From the first pass, the big items are: (1) tests for all of the verification failure modes; (2) typedef'ing hashes in AVDL; (3) maybe combining MessageClientHeader and HeaderPlaintextV1, though I don't feel strongly about it, but just bringing it up; and (4) msgpack for everything (except the external API layer). Thanks!!!

Ok, thanks for the review.  Will make the changes.

@maxtaco PTAL: 1, 2, 4 done.
i can add a ticket for 3.


Custom Navigation Buttons

i am not able to use  navigation-prev-label=''

Maybe try something like this?
navigation-next-label=""
navigation-prev-label=""

.VueCarousel-navigation-next::after {
  content: url('/images/banner-right.svg');
}
.VueCarousel-navigation-prev::after {
  content: url('/images/banner-left.svg');
}

Try something like this?
navigation-next-label=""
navigation-prev-label=""

.VueCarousel-navigation-next::after {
  content: url('/images/banner-right.svg');
}
.VueCarousel-navigation-prev::after {
  content: url('/images/banner-left.svg');
}

@digi-com
Is that possible to make my own custom button? Something like that:

In template,
      <carousel         :navigation-enabled="true"         :navigation-next-label="nextLabel"         :navigation-prev-label="prevLabel"       >       </carousel>
In script,
    data () {       return {         nextLabel: "",         prevLabel: ""       }     },

Thanks so much @shasarah !!!

@shasarah this sounds like an answew, but gives me " Property or method "nextLabel" is not defined on the instance but referenced during render" when having this in .vue file:
`

`
and this in html file:

lorem
ipsum

Thanks so much anyone who knows!

try to use :  computed: {
nextLabel() {
return "";
},


[WFLY-10438] Create a domain testsuite test for a missing host-exclude

This test verifies it is possible to get the list of extensions for previous server releases using the host-excludes definition included in the current domain.xml.
The test fails if finds a missing extension in the excluded-extensions section or there is a host-exclude name in domain.xml undefined in this test.
Jira issue: https://issues.jboss.org/browse/WFLY-10438

@yersan I actually see some more extensions in 10.0.0.Final, since not all our extensions are part of our default configs which is where I assume you have been looking? I think the subsystem templates are a good place to look (if @bstansberry thinks this is important).
[~/sourcecontrol/wildfly/git/wildfly]
$git grep extension-module
batch/extension-jberet/src/main/resources/subsystem-templates/batch-jberet.xml:    <extension-module>org.wildfly.extension.batch.jberet</extension-module>
batch/extension/src/main/resources/subsystem-templates/batch.xml:    <extension-module>org.wildfly.extension.batch</extension-module>
.....

To remove the filename:
$git grep -h extension-module | sort
      <extension-module>org.jboss.as.simple</extension-module>
      <extension-module>org.jboss.as.simple</extension-module>
      <extension-module>org.jboss.as.simple</extension-module>
      <extension-module>org.jboss.as.simple</extension-module>
    <extension-module>org.jboss.as.clustering.infinispan</extension-module>
    <extension-module>org.jboss.as.clustering.jgroups</extension-module>
    <extension-module>org.jboss.as.connector</extension-module>
    <extension-module>org.jboss.as.modcluster</extension-module>
    <extension-module>org.wildfly.extension.batch.jberet</extension-module>
    <extension-module>org.wildfly.extension.batch</extension-module>
    <extension-module>org.wildfly.extension.clustering.singleton</extension-module>
    <extension-module>org.wildfly.extension.messaging-activemq</extension-module>
    <extension-module>org.wildfly.extension.picketlink</extension-module>
    <extension-module>org.wildfly.extension.picketlink</extension-module>
    <extension-module>org.wildfly.extension.undertow</extension-module>
   <extension-module>org.jboss.as.connector</extension-module>
   <extension-module>org.jboss.as.connector</extension-module>
   <extension-module>org.jboss.as.connector</extension-module>
   <extension-module>org.jboss.as.ee</extension-module>
   <extension-module>org.jboss.as.ejb3</extension-module>
   <extension-module>org.jboss.as.jacorb</extension-module>
   <extension-module>org.jboss.as.jaxrs</extension-module>
   <extension-module>org.jboss.as.jdr</extension-module>
   <extension-module>org.jboss.as.jpa</extension-module>
   <extension-module>org.jboss.as.jsf</extension-module>
   <extension-module>org.jboss.as.jsr77</extension-module>
   <extension-module>org.jboss.as.mail</extension-module>
   <extension-module>org.jboss.as.messaging</extension-module>
   <extension-module>org.jboss.as.messaging</extension-module>
   <extension-module>org.jboss.as.naming</extension-module>
   <extension-module>org.jboss.as.pojo</extension-module>
   <extension-module>org.jboss.as.sar</extension-module>
   <extension-module>org.jboss.as.security</extension-module>
   <extension-module>org.jboss.as.transactions</extension-module>
   <extension-module>org.jboss.as.webservices</extension-module>
   <extension-module>org.jboss.as.weld</extension-module>
   <extension-module>org.jboss.as.xts</extension-module>
   <extension-module>org.wildfly.extension.bean-validation</extension-module>
   <extension-module>org.wildfly.extension.rts</extension-module>
   <extension-module>org.wildfly.extension.security.manager</extension-module>
   <extension-module>org.wildfly.iiop-openjdk</extension-module>
* 'extension-module' contains the name of the module containing the subsystem. This will go into the <?EXTENSTIONS?>

Some of these are noise like 'org.jboss.as.simple', but some like 'org.jboss.as.xts' and 'org.jboss.as.rts' are real.

Thanks, @kabir. Sure, it's important.

Note that a similar 'report' will need to be done for each previous Final tag

I actually see some more extensions in 10.0.0.Final, since not all our extensions are part of our default configs which is where I assume you have been looking?
Yes @kabir thanks, I looked only to the default configurations. I need to find out how to retrieve all the available extensions that can be configured for the current server version instead of using the currently configured server extensions.

I've just checked the 'subsystem templates' method does not include the new Agroal subsystem, so it looks like I should go through the existing modules and find out implementations of org.jboss.as.controller.Extension interface to retrieve the available list. That list plus all configured excludes, should match the previous server release extension list.

@kabir @bstansberry
I've changed the logic in the test to be able to retrieve all available extensions for the current release.
Notice the following:
It is assumed that the module which can be added as an extension has the org.jboss.as.controller.Extension service configured as a local resource. I think that is fine, at least it covers all of our current cases. However, I don't know if this assumption can be considered as a rule.
The test revealed there are some missing exclusions for the EAP versions, specifically, we should add the following exclusions:

org.wildfly.extension.mod_cluster / org.wildfly.extension.rts (EAP64z,EAP64,EAP63,EAP62)
org.wildfly.extension.picketlink from (EAP62)

If this is finally merged, I'll add those in our conversion branches.

@yersan I think the ml.loadResourceLocal("META-INF/services/org.jboss.as.controller.Extension") approach is fine.  Does it find org.jboss.as.modcluster? I assume it will. That module is just an alias for org.wildfly.extension.mod_cluster.
The org.wildfly.extension.mod_cluster extension is a bit unfortunate, because in the end for compatibility reasons our configs use the org.jboss.as.modcluster alias. The newer module is basically an internal implementation detail now. I'd like to avoid exposing that detail as part of our standard configs by adding host-exclude entries for it. Please hack the test to ignore it, so long as retrieveAvailableExtensions is finding org.jboss.as.modcluster.
+1 to adding the other exclusions. We should consider dropping the EAP62 EAP63 host-excludes altogether as those releases are long out of support, but that's a separate thing.

Does it find org.jboss.as.modcluster? I assume it will. That module is just an alias for org.wildfly.extension.mod_cluster.
Yes @bstansberry , both modules are detected as availbale extensions.

Please hack the test to ignore it, so long as retrieveAvailableExtensions is finding org.jboss.as.modcluster.
Done. Moved to the EAP62 list, the test will believe that module exist since that release.

Seems to fail on Windows resolving the extensions. If that's not a simple fix, ignoring it on Windows is fine. As long as it runs on one OS that achieves the objective.

@bstansberry , looks better now, all tests passed.
I'm not 100% sure but it seems the boot module loader was polluted with additional files, probably files added from other tests, and it seems jboss modules is unable to parse the module.xml when we are iterating over the accessible modules and one of those modules has a permission markup on it. I opened a jboss modules issue for such case: https://issues.jboss.org/browse/MODULES-377

The CoarseWebFailoverTestCase failure in Windows on the last CI build is unrelated to this issue.


AbstractAliCommentRule is not an abstract class. Please make it abstract, or rename it.

also good to add a new Rule for detecting Non-abstract class with abstract prefix in class name.

反向例子属于极小众，这个规则就不扫描了。


Benchmarks for model X parameter set combinations

Description
Added benchmarks for SPM, SPMe, and DFN with all the parameter sets (except Sulzer2019 and Xu2019).
Some concerns -

I could not solve the DFN model with Mohtat2020 parameter sets for the benchmarks (commented code). I tried varying dt_max and used different solvers but nothing worked. Here is a reproducible example for the same-

import numpy as np
import pybamm
import matplotlib.pyplot as plt

def prepare_model_Mohtat2020(model):
    geometry = model.default_geometry

    param = pybamm.ParameterValues("Mohtat2020")
    param.process_model(model)
    param.process_geometry(geometry)

    var_pts = {"x_n": 20, "x_s": 20, "x_p": 20, "r_n": 30, "r_p": 30, "y": 10, "z": 10}
    mesh = pybamm.Mesh(geometry, model.default_submesh_types, var_pts)

    disc = pybamm.Discretisation(mesh, model.default_spatial_methods)
    disc.process_model(model)

solver = pybamm.CasadiSolver()
model = pybamm.lithium_ion.DFN()
c_rate = 1
tmax = 4000 / c_rate
nb_points = 500
t_eval = np.linspace(0, tmax, nb_points)
prepare_model_Mohtat2020(model)
solver.solve(model, t_eval=t_eval)
solution = solver.solve(model, t_eval=t_eval)
voltage = solution['Terminal voltage [V]']
c_s_n_surf = solution['Negative particle surface concentration']
c_s_p_surf = solution['Positive particle surface concentration']
t = solution["Time [s]"].entries
x = solution["x [m]"].entries[:, 0]
f, (ax1, ax2, ax3) = plt.subplots(1, 3, figsize=(13,4))

ax1.plot(t, voltage(t))
ax1.set_xlabel(r'$Time [s]$')
ax1.set_ylabel('Terminal voltage [V]')

ax2.plot(t, c_s_n_surf(t=t, x=x[0]))
ax2.set_xlabel(r'$Time [s]$')
ax2.set_ylabel('Negative particle surface concentration')

ax3.plot(t, c_s_p_surf(t=t, x=x[-1]))
ax3.set_xlabel(r'$Time [s]$')
ax3.set_ylabel('Positive particle surface concentration')

plt.tight_layout()
plt.show()

The error-
The linesearch algorithm failed with too small a step.
At t = 3.7305e-005 and h = 3.3406e-019, the corrector convergence failed repeatedly or with |h| = hmin.
At t = 3.73046e-005 and h = 3.12482e-019, the corrector convergence failed repeatedly or with |h| = hmin.
At t = 3.73044e-005 and h = 3.16429e-020, the corrector convergence failed repeatedly or with |h| = hmin.
At t = 3.7305e-005 and h = 3.3406e-019, the corrector convergence failed repeatedly or with |h| = hmin.
Traceback (most recent call last):
  File "d:\LearningProjects\python\second.py", line 25, in <module>
    solver.solve(model, t_eval=t_eval)
  File "C:\Users\Vaibhav Chopra\AppData\Local\Programs\Python\Python39\lib\site-packages\pybamm\solvers\base_solver.py", line 1018, in solve
    new_solution = self._integrate(
  File "C:\Users\Vaibhav Chopra\AppData\Local\Programs\Python\Python39\lib\site-packages\pybamm\solvers\casadi_solver.py", line 263, in _integrate
    raise pybamm.SolverError(
pybamm.expression_tree.exceptions.SolverError: Maximum number of decreased steps occurred at t=0.0. Try solving the model up to this time only or reducing dt_max (currently, dt_max=5.010622778599846).
PS D:\LearningProjects> python -u "d:\LearningProjects\python\second.py"
The linesearch algorithm failed with too small a step.
At t = 3.7305e-005 and h = 3.3406e-019, the corrector convergence failed repeatedly or with |h| = hmin.
At t = 3.73046e-005 and h = 3.12482e-019, the corrector convergence failed repeatedly or with |h| = hmin.
At t = 3.73044e-005 and h = 3.16429e-020, the corrector convergence failed repeatedly or with |h| = hmin.
At t = 3.7305e-005 and h = 3.3406e-019, the corrector convergence failed repeatedly or with |h| = hmin.
Traceback (most recent call last):
  File "d:\LearningProjects\python\second.py", line 25, in <module>
    solver.solve(model, t_eval=t_eval)
  File "C:\Users\Vaibhav Chopra\AppData\Local\Programs\Python\Python39\lib\site-packages\pybamm\solvers\base_solver.py", line 1018, in solve
    new_solution = self._integrate(
  File "C:\Users\Vaibhav Chopra\AppData\Local\Programs\Python\Python39\lib\site-packages\pybamm\solvers\casadi_solver.py", line 263, in _integrate
    raise pybamm.SolverError(
pybamm.expression_tree.exceptions.SolverError: Maximum number of decreased steps occurred at t=0.0. Try solving the model up to this time only or reducing dt_max (currently, dt_max=5.010622778599846).

Should I group these benchmarks in some way. For example- multiple files with each file containing benchmarks of a particular parameter or model.
As discussed with @brosaplanella on slack I have used ScikitsDaeSolver for some benchmarks, will this create a problem or is it safe to use different solvers for similar benchmarks?

Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.

[ ] New feature (non-breaking change which adds functionality)
[ ] Optimization (back-end change that speeds up the code)
[ ] Bug fix (non-breaking change which fixes an issue)

Key checklist:

[ ] No style issues: $ flake8
[ ] All tests pass: $ python run-tests.py --unit
[ ] The documentation builds: $ cd docs and then $ make clean; make html

You can run all three at once, using $ python run-tests.py --quick.
Further checks:

[ ] Code is commented, particularly in hard-to-understand areas
[ ] Tests added that prove fix is effective or that feature works

Thank you for the review @tinosulzer, @brosaplanella! I have parameterized the benchmarks and I am still looking into the solvers. Could you please review it again and give your feedback. Also, keeping the voltage same for every parameter did not throw any error, should I keep it the same or change it to match every parameter's lower voltage.

Thank you for the review @tinosulzer, @brosaplanella! I have parameterized the benchmarks and I am still looking into the solvers. Could you please review it again and give your feedback. Also, keeping the voltage same for every parameter did not throw any error, should I keep it the same or change it to match every parameter's lower voltage.

For the voltage, it would be better to test down to the right voltage specified in the parameters so we ensure we have a full discharge. You can just get the value for `Lower voltage cut-off [V]' and format the string of the experiment.

Let’s merge this


Upgrade to Docusaurus v3

Summary
Dependabot raises regularly warnings about the dependencies used for the Docusaurus website. In particular, Docusaurus v2 is not maintained anymore and it uses NodeJS 16, which also reached its end of life.
This PR updates the website to use the current version of Docusaurus and removes multiple dev dependencies that were broken or unused.
Test plan
The main breaking change comes from the MDX templates being updated to v3. Our MDX are simple enough to be compatible with the new version.
$ npx docusaurus-mdx-checker
[SUCCESS] All 8 MDX files compiled successfully!

Then doing a visual check through all our pages confirm the website stays identical to the previous version.
$ # Build and test the website locally
$ yarn build
[...]
$ yarn serve

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

Project coverage is 68.36%. Comparing base (3905aad) to head (7fdaed4).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #518      +/-   ##
==========================================
+ Coverage   60.70%   68.36%   +7.65%
==========================================
  Files         127      127
  Lines       12516    12516
  Branches     2015     2015
==========================================
+ Hits         7598     8556     +958
+ Misses       3961     3960       -1
+ Partials      957        0     -957

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

@JakeHillion actually let this one land in favor of #517 , per your internal request to D62962264 I've reverted the changes in that PR


Refactor sidecar

#31 introduced some changes to the sidecar, in the way that the sidecar finds out about the GameServer state change. As a result of that, we'll need to refactor the httphandler.go file.

Maybe split it into two structs with different responsibility?
rename the file/struct?

Fixed in #66


Tweaks to fix FOTA for EP_AGORA

This PR tweaks the configuration for the Embedded Planet EP_AGORA target to use the build from mbed-bootloader for the EP_AGORA target and fixes issues with FOTA support.

Thanks for your changes.
@ARMmbed/pdmc-integrators please review.

@linlingao @ARMmbed/team-embeddedplanet @maclobdell


Create credential_phishing_one_drive_impersonation.yml

/update-test-rules

Testing looks good here, AS on all matches in the 90s. Matching shared EML's all bad.


[Bug Report] Anchor with el-button class in el-input do not have some css rules

Element UI version
2.0.9
OS/Browsers version
Any
Vue version
2.5.13
Reproduction Link
https://jsfiddle.net/2fk23b1j/4/
Steps to reproduce
Create el-input with button and anchor with "el-button" style. The styled anchor will not have some css rules. See https://jsfiddle.net/2fk23b1j/4/
What is Expected?
Anchor that looks like el-button.
What is actually happening?
Styled anchor does not have some css rulles.
To fix this change styles in input.scss file from
    button.el-button, /* this line will be changed */
    div.el-select .el-input__inner,
    div.el-select:hover .el-input__inner {
      border-color: transparent;
      background-color: transparent;
      color: inherit;
      border-top: 0;
      border-bottom: 0;
    }

to
    .el-button, /* this line is changed */
    div.el-select .el-input__inner,
    div.el-select:hover .el-input__inner {
      border-color: transparent;
      background-color: transparent;
      color: inherit;
      border-top: 0;
      border-bottom: 0;
    }

It's discouraged to directly use Element's class names on native elements. Unlike Bootstrap, Element is component-based. You'll have to write some CSS if you must use classes on other elements.

Add anchor component that looks like button!


Straighten / align multiple points

I'd like to be able to just select a bunch of points and hit S to straighten all of them.

I did this!  Now POIs can be perfectly straight  📏👌
My OCD is happy now.

@bhousel Looks awesome! It's been great to make the same operations work for different kinds of selections lately. Like extract for areas, disconnect for ways, square for open ways and vertices, straighten for multiple connected lines.


New account / first bot run

Two problems identified when starting a fresh account on the bot for the first time.
Inaccurate stat output
2016-08-24 13:16:54,171 [       cli] [INFO]
2016-08-24 13:16:54,171 [       cli] [INFO] Ran for 0:09:50
2016-08-24 13:16:54,171 [       cli] [INFO] Total XP Earned: 0  Average: 0.00/h
2016-08-24 13:16:54,172 [       cli] [INFO] Travelled 0.00km
2016-08-24 13:16:54,172 [       cli] [INFO] Visited 0 stops
2016-08-24 13:16:54,172 [       cli] [INFO] Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before
2016-08-24 13:16:54,172 [       cli] [INFO] Threw 0 pokeballs
2016-08-24 13:16:54,172 [       cli] [INFO] Earned 0 Stardust
2016-08-24 13:16:54,172 [       cli] [INFO] Hatched eggs 0
2016-08-24 13:16:54,172 [       cli] [INFO] Next egg hatches in 4.64 km
2016-08-24 13:16:54,172 [       cli] [INFO]
2016-08-24 13:16:54,172 [       cli] [INFO] Highest CP Pokemon: Drowzee [CP: 42] [IV: 10/5/3] Potential: 0.4
2016-08-24 13:16:54,172 [       cli] [INFO] Most Perfect Pokemon: Pidgey [CP: 10] [IV: 2/12/10] Potential: 0.53
Everything prints properly on second run of the bot (cache issue?).
Bad egg status output
2016-08-24 13:13:59,504 [IncubateEggs] [INFO] [next_egg_incubates] Eggs incubating: [-9000.88/-8996.0 km] (Eggs left: 3, Incubating: 1)
Think the culprit is line 240 of incubate_eggs.py for the second error. Still had bad output after restarting. Maybe it's just the first egg?
commit 38b4a09

Had it also on my new account. It's just the first egg. Other eggs have the correct values.

@mjmadsen is this a bug? or is it more of a feature request to fix it? i.e the bot doesnt crash, and works as intended, it's just the output is not displaying properly?

@k4n30 Calling it a bug because normally functioning element(s) are askew for very new accounts, though just output related. I'll do some digging tomorrow (possibly tonight) morning and try to get a PR in.

The egg bug seems to be inventory based. Either I figure out what is going on with that, or use our calculated distance traveled numbers if we are using the default numbers (9001).
I'll keep reading through it, I'd prefer the former solution (less ambiguous).
#4712 should fix the first issue. I didn't merge right away, as I'm curious about the choices made (don't want to break anything).

The variable names in incubate_eggs is a bit confusing to me. Should have a PR through soon(ish).

I'm still looking for an easy method to fix this. It is certainly related to when we started trying to display all incubators. We fetch data differently, but sometimes (like a new account), we aren't loading it correctly. I'm still trying to find a way to fix this case while preserving current working methods afterwards.

Seems like when incubating first egg the start_km_walked is not found and the bot will use 9001. Maybe if we set it to 0 it might work, since after this, every other time the start_km_walkedis found.

Appears these are fixed now. @DeXtroTip thanks for the PR. I need to go through and clear up the variables names - I was having a terrible time keeping track of which was what.


Search by free text

As someone looking for services relevant to me.
i need to search by free text
so i can find services that i know some or all od the name of, or an english(?) word for the type of service it is.


NTR heme export from vacuole

I'd like to request
heme export from vacuole
is_a heme transmembrane transport, vacuolar transmembrane transport
PMID:28193844

+[Term]
+id: GO:0140357
+name: heme export from vacuole to cytoplasm
+namespace: biological_process
+def: "The directed movement of heme from the vacuole to the cytoplasm."


Can the user input options be introduced to MSDO's secret scan task?

Hello there,
Can user input options to the secret scanning capability be introduced? that can provide custom user experience with respect to secret scanning. For example, target directory option would enable customers to run secret scan on a specified directory.
It would be quite useful to have one Azure DevOps pipeline which scans the entire repository in one go.
Thank you.

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

ID: 6d49f01c-0bc4-eff0-fe01-ff3cbb26046d
Version Independent ID: 740d06a0-b122-0e95-b6f4-d29f5e5e9b5a
Content: Detect exposed secrets in code - Defender for Cloud
Content Source: articles/defender-for-cloud/detect-exposed-secrets.md
Service: defender-for-cloud
GitHub Login: @ElazarK
Microsoft Alias: elkrieger

#reassign:sukhans

Closing because this is not an issue with the docs. The product team is tagged here and can follow up as necessary.
#please-close


Handling user cancellation of Apple Pay

When ever the user manually dismisses apple pay, the event should be passed to the caller via callback
This is impacting the React native library

Thanks for pointing this out @radhakrishnant2s.
The React Native SDK is referring to the 2.0.0 version of the iOS SDK, so some additional steps might be needed to update to the latest version of the iOS SDK.
I'll start working on a new React Native version as soon as possible.


formatting and 1 spelling issue

PR for updating formatting.  When we use sub-lists, they should be indented under the main list.  Content under a list item should be indented under that list item rather than at the top level.

@linsun @duglin Whenever you get a chance, this one is just a bunch of formatting/tabs, but didn't want to do it with any actual changes as it would get confusing.


Server is unable to send email from external app

Hi,
So I have installed postal & configured everything properly & there is a success in sending test emails from postal itself.
But,
When I tried sending email from an external app (smtper.net)
I gest an error
SMTP send error
The operation has timed out.

A good first step would be using telnet from your local computer to verify that your Postal server port is open and responding
telnet your.postal.server.whatever 25

The server had issues in it - bought a new server on Contabo & ran a command..
( curl https://gist.githubusercontent.com/nhCoder/e14b272137f146e6cc26eefdf72e017b/raw/6728a173eb8666afb52b457cc40812ef7badd8d4/install_postal.sh | sh ) as per https://gist.github.com/nhCoder/e14b272137f146e6cc26eefdf72e017b
But I got this..
Fetching gem metadata from https://rubygems.org/............
Fetching https://github.com/mikel/mail.git
Your bundle is locked to mimemagic (0.3.5), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that
means the author of mimemagic (0.3.5) has removed it. You'll need to update your bundle to a version other than mimemagic (0.3.5) that hasn't been removed in order to
install.

It looks like they changed the license and pulled the package for some reason, will have to keep an eye on https://github.com/minad/mimemagic/issues/97 to see what happens.


switch google analytics account

Previously we were using the same analytics account as a couple other sites which made the data not useful. This switches it to a new account that is Jest-only.

Current coverage is 63.30% (diff: 100%)

Merging #1467 into master will not change coverage

@@             master      #1467   diff @@
==========================================
  Files            96         96
  Lines          3608       3608
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           2284       2284
  Misses         1324       1324
  Partials          0          0

Powered by Codecov. Last update 081bdd5...b8fcb80


Autorecon1 fails when including FLAIR images

When running FreeSurfer through QSIprep for subjects who have FLAIR images, Autorecon1 encounters a runtime error:
Node: qsiprep_wf.single_subject_sub-01_wf.anat_preproc_wf.surface_recon_wf.autorecon1
Working directory: /home/user/BIDS/derivatives/qsiprep_work/qsiprep_wf/single_subject_sub-01_wf/anat_preproc_wf/surface_recon_wf/autorecon1

Node inputs:

FLAIR_file = <undefined>
T1_files = <undefined>
T2_file = <undefined>
args = <undefined>
big_ventricles = <undefined>
brainstem = <undefined>
directive = autorecon1
environ = {}
expert = <undefined>
flags = ['-noskullstrip']
hemi = <undefined>
hippocampal_subfields_T1 = <undefined>
hippocampal_subfields_T2 = <undefined>
hires = <undefined>
mprage = <undefined>
mri_aparc2aseg = <undefined>
mri_ca_label = <undefined>
mri_ca_normalize = <undefined>
mri_ca_register = <undefined>
mri_edit_wm_with_aseg = <undefined>
mri_em_register = <undefined>
mri_fill = <undefined>
mri_mask = <undefined>
mri_normalize = <undefined>
mri_pretess = <undefined>
mri_remove_neck = <undefined>
mri_segment = <undefined>
mri_segstats = <undefined>
mri_tessellate = <undefined>
mri_watershed = <undefined>
mris_anatomical_stats = <undefined>
mris_ca_label = <undefined>
mris_fix_topology = <undefined>
mris_inflate = <undefined>
mris_make_surfaces = <undefined>
mris_register = <undefined>
mris_smooth = <undefined>
mris_sphere = <undefined>
mris_surf2vol = <undefined>
mrisp_paint = <undefined>
openmp = 8
parallel = <undefined>
subject_id = recon_all
subjects_dir = <undefined>
talairach = <undefined>
use_FLAIR = <undefined>
use_T2 = <undefined>
xopts = <undefined>

Traceback (most recent call last):
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/plugins/multiproc.py", line 67, in run_node
    result["result"] = node.run(updatehash=updatehash)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 521, in run
    result = self._run_interface(execute=True)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 639, in _run_interface
    return self._run_command(execute)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 751, in _run_command
    f"Exception raised while executing Node {self.name}.\n\n{result.runtime.traceback}"
nipype.pipeline.engine.nodes.NodeExecutionError: Exception raised while executing Node autorecon1.

RuntimeError: subprocess exited with code 1.

Specifically, mri_normalize fails due to a missing brainmask.mgz in derivatives/freesurfer/sub-01/mri. Incidentally, the skullstrip workflow successfully creates the skull-stripped T1w and associated brainmask. Altogether, this makes me think there might be an issue in the niworkflows.interfaces.freesurfer.FSInjectBrainExtracted workflow module.
This might be more of an issue with either sMRIprep or niworkflows though. Can link this issue there if needed.
In the meantime, extending the --ignore flag to accept either flair or t2w may be helpful.

Forgot to include, I rebuilt the singularity container using FreeSurfer 7.1.1
Can use the default 6.0.4 FreeSurfer instead, to see if the issue is FreeSurfer version.

question - are you also running fmriprep on bold data for this project? If so I strongly suggest you use freesurfer during the fmriprep run. The freesurfer workflow in qsiprep is based on fmriprep 1.2.6 - it's super old. You can use the freesurfer outputs from fmriprep along with the dwi outputs from qsiprep to do some cool reconstructions. The preprocessing workflow doesn't really use the freesurfer output at all.


[RESTEASY-1916]:Fix InboundSseEventImpl doesn't getReader from ClientConfiguration

[RESTEASY-2011]:Allow disable JsonBindingProvider by setting resteasy.preferJacksonOverJsonB in client

@marekkopecky please check this PR

@rsvoboda I prefer to backport fix for RESTEASY-2011 to 3.6 branch

This works, by in my PoV, this is user-unfriendly:
ResteasyClientBuilder builder = new ResteasyClientBuilder();
Configuration config = builder.property("resteasy.preferJacksonOverJsonB", true).getConfiguration();
ResteasyProviderFactory.pushContext(Configuration.class, config);
ResteasyClient client = builder.withConfig(config).build()

https://issues.jboss.org/browse/RESTEASY-1916
Can this be solved by solution of RESTEASY-1939?

I think it doesn't. Client doesn't push any context data.

https://issues.jboss.org/browse/RESTEASY-2011
I check to use -Dproperty (java -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Dlogging.configuration=file:logging.properties -Dresteasy.preferJacksonOverJsonB=true -jar target/RESTEasyClientApplication.jar) and client.property("resteasy.preferJacksonOverJsonB", true);. Both doesn't work and JsonBindingProvider is still used on client side (according to the logs). Can you please double check?

I doesn't add support for disable JsonBindingProvider by system property.  I'll add this one.  @asoldano  @rsearls  What do you think adding this system property support ?

This will be addressed when this merged.

@jimma and what about this? Let the builder to handle the property?
ResteasyClient client = new ResteasyClientBuilder().property("resteasy.preferJacksonOverJsonB", true).build();

I doesn't add support for disable JsonBindingProvider by system property. I'll add this one. @asoldano @rsearls What do you think adding this system property support ?

Server supports system property for disabling JsonBindingProvider, we should be consistent.

Btw, this configuration currently (3.6.1.Final) works on client side:
        CustomResteasyConfiguration config = new CustomResteasyConfiguration();
        ResteasyProviderFactory.pushContext(ResteasyConfiguration.class, config);
        ResteasyClient client = new ResteasyClientBuilder().build();

And CustomResteasyConfiguration:
public class CustomResteasyConfiguration implements ResteasyConfiguration {

    public static Map<String, String> param = new HashMap<>();

    static {
        param.put("resteasy.preferJacksonOverJsonB", "true");
    }

    @Override
    public String getParameter(String name) {
        return param.get(name);
    }
...

@I'd rather have these 2 commits in different PRs, unless there's a strong reason for doing like this. Can you please update this PR to only fix 1916 and create another one for 2011 ?
The test for 1916 is rely on 2011.  It is testing against the customized jackson provider.

@jimma and what about this? Let the builder to handle the property?
ResteasyClient client = new ResteasyClientBuilder().property("resteasy.preferJacksonOverJsonB", true).build();
@jbliznak  This actually sets the property to LocalResteasyProviderFactory and there is no way to get this value from JsonBindingProvider. It now requires manually push a thread local configuration contains this value to ResteayProviderFactory :  ResteasyProviderFactory.pushContext(ResteasyConfiguration.class, config);

Server supports system property for disabling JsonBindingProvider, we should be consistent.
From JsonBindingProvider, we don't have this support :
https://github.com/resteasy/Resteasy/blob/master/providers/json-binding/src/main/java/org/jboss/resteasy/plugins/providers/jsonb/JsonBindingProvider.java#L50

@jimma

I'd rather have these 2 commits in different PRs, unless there's a strong reason for doing like this. Can you please update this PR to only fix 1916 and create another one for 2011 ?

The test for 1916 is rely on 2011. It is testing against the customized jackson provider.

I noticed that, but I believe we should have an independent test for 1916.

I noticed that, but I believe we should have an independent test for 1916.

@asoldano  Do you mean we add another exclusion in pom.xml to disable jsonbinding provider for RESTEASY-1916 test ?

@asoldano Do you mean we add another exclusion in pom.xml to disable jsonbinding provider for RESTEASY-1916 test ?

No, I simply mean that RESTEASY-1916 deserves a test that verifies it only; it's a bug reported in May, way before we created RESTEASY-2011, so please think about a way to test it alone (1916, I mean).

This will be replaced by https://github.com/resteasy/Resteasy/pull/1694


[eas-cli] display build profile in eas build:list command details

Why
When looking at https://github.com/expo/eas-cli/issues/2404 I noticed that we don't display build profile info in this list, yet we allow people to filter by it which makes it confusing
How
Display build profile info as well
Test Plan
test manually

/changelog-entry new-feature Display build profile in the output of eas build:list


Learning Catalogue Eurostat entries image missing

Hello, @OSoerensen @fernandohandball,
It seems the links to the featured image are broken again. Can you check and update and also why they keep changing?

Hello @ChallenerSJ ,
Thanks for alerting us. Unfortunately our communication and training portal, where the images are stored, is down since this morning. The corresponding team has been informed but I don't have a clear timeline when the page will be up again.
Let's leave the issue open and I'll come back to you as soon as I have more details.

Checked this morning, and the server with the images seems still to be down. We keep the issue open.

Hello @fernandohandball is the server still down, the images is still not visible?

Hello @ChallenerSJ and @OSoerensen,
The page is up but the logos are not being displayed. While we try to find the cause of such behaviour, I have uploaded the logos and created new URLs. However I am not sure whether uploading the 'catalogue.json' file is what I should do. Here are the new URLs
https://cros.ec.europa.eu/system/files/2024-02/SDMX Converter Training logo.png
https://cros.ec.europa.eu/system/files/2024-02/Euro-SDMX Registry training logo.png
https://cros.ec.europa.eu/system/files/2024-02/ESTP icon.png
Best,
Fernando

Hello @fernandohandball, in fact you have to branch and update the .json file and then submit a pull request for review and merging.
From: fernandohandball @.>
Sent: 09 April, 2024 11:30 AM
To: SDMX-Outreach/sdmx-learning-catalogue @.>
Cc: CHALLENER Jonathan, SDD/SDPS @.>; Mention @.>
Subject: Re: [SDMX-Outreach/sdmx-learning-catalogue] Learning Catalogue Eurostat entries image missing (Issue #22)
Hello @ChallenerSJhttps://github.com/ChallenerSJ and @OSoerensenhttps://github.com/OSoerensen,
The page is up but the logos are not being displayed. While we try to find the cause of such behaviour, I have uploaded the logos and created new URLs. However I am not sure whether uploading the 'catalogue.json' file is what I should do. Here are the new URLs
https://cros.ec.europa.eu/system/files/2024-02/SDMX Converter Training logo.pnghttps://cros.ec.europa.eu/system/files/2024-02/SDMX Converter Training logo.png
https://cros.ec.europa.eu/system/files/2024-02/Euro-SDMX Registry training logo.pnghttps://cros.ec.europa.eu/system/files/2024-02/Euro-SDMX Registry training logo.png
https://cros.ec.europa.eu/system/files/2024-02/ESTP icon.pnghttps://cros.ec.europa.eu/system/files/2024-02/ESTP icon.png
Best,
Fernando
—
Reply to this email directly, view it on GitHubhttps://github.com/SDMX-Outreach/sdmx-learning-catalogue/issues/22#issuecomment-2044556090, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD6K72IYAQ6ODZASYZ35GIDY4OYH7AVCNFSM6AAAAABFBQI45OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBUGU2TMMBZGA.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>

Looks good now, merged the request and closing this issue


How to scrape tweets beyond a week from the search day

I cannot scrape tweets beyond a week from the search day, even using since and until I cannot download any tweets beyond the week.

Please use the template when creating an issues, otherwise it's really difficult for us to replicate your issue.
I cannot replicate your issue if I don't know your environment, whether you have the latest version of the project, which command you ran.


Print errors in a format such that GitHub inline annotations are created

See https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-a-warning-message
(from https://github.com/open-telemetry/build-tools/issues/61)

Implemented in #153


CASMTRIAGE-6030 Update the execute permission to copied script

Description

Checklist

[x] If I added any command snippets, the steps they belong to follow the prompt conventions (see example).
[ ] If I added a new directory, I also updated .github/CODEOWNERS with the corresponding team in Cray-HPE.
[x] My commits or Pull-Request Title contain my JIRA information, or I do not have a JIRA.

/backport release/1.6


💡[FEATURE]: add a new feature for calculating and visualizing the Expected Shortfall (ES) in VaR Model

To enhance the code, I want to add a new feature for calculating and visualizing the Expected Shortfall (ES), also known as Conditional VaR (CVaR). ES represents the expected loss on the portfolio given that the loss exceeds the Value at Risk (VaR).
I'll calculate the ES using historical simulation, which involves sorting the portfolio returns from worst to best and taking the average of the returns beyond the VaR level.

Hi @Akshat111111 , I have raised this issue. Please assign it to me.


⚠ Bofrost.fr has degraded performance

In 968b498, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 886 ms

Resolved: Bofrost.fr performance has improved in 4db84d5.


view.Line() returns trailing \x00 byte

Greetings,
In relation to issue #54, which is now fixed, there is an issue remaining: view.Line(0) returns the whole line and no second line exists in the Enter key handler, but there is a trailing \x00 = null byte returned by view.Line(0).
Test program for cut and paste; the issue shows up in function readToken:
package main

import (
    "fmt"
    "log"
    "os"

    "github.com/jroimartin/gocui"
)

func main() {
    g, _ := gocui.NewGui(gocui.OutputNormal)
    defer g.Close()

    g.SetManagerFunc(layout)
    if err := g.SetKeybinding("", gocui.KeyCtrlC, gocui.ModNone, quit); err != nil {
        log.Panicln(err)
    }
    if err := g.SetKeybinding("token", gocui.KeyEnter, gocui.ModNone, readToken); err != nil {
        log.Panicln(err)
    }

    if err := g.MainLoop(); err != nil && err != gocui.ErrQuit {
        log.Panicln(err)
    }
}

func quit(g *gocui.Gui, v *gocui.View) error {
    return gocui.ErrQuit
}

func readToken(g *gocui.Gui, v *gocui.View) error {
    //FIXME issue is here
    token, _ := v.Line(0)
    /*
    NOTE: second line does correctly not exist -> handlers are now correctly run before inserting newline automatically
    if line2, err := v.Line(1); err != nil {
      log.Fatalln("got expected error on access to non-existant line 2:", err)
    } else {
      fmt.Printf("received line 2! should not happen: >%s<, hex=%x, len=%d\n", line2, line2, len(line2))
    }
    */
    g.Close()
    // output shows \x00 byte at end
    fmt.Printf("user has entered: >%s<, hex=%x, len=%d\n", token, token, len(token))
    os.Exit(0)
    return nil
}

func layout(g *gocui.Gui) error {
    maxX, maxY := g.Size()

    // Overlap (front)
    passLen := 25
    // calculate position for centering
    //TODO is this possible more easily to center a view of given size?
    x0 := (maxX - passLen - 2) / 2
    y0 := (maxY - 3) / 2
    if v, err := g.SetView("token", x0, y0, x0+passLen+2, y0+2); err != nil {
        if err != gocui.ErrUnknownView {
            return err
        }
        v.Title = "Enter security token"
        v.Editable = true
        v.Wrap = false
        if _, err := g.SetCurrentView("token"); err != nil {
            return err
        }
    }

    return nil
}

Thanks for reporting the issue! Could it be the same issue that #69 ?

With regards to how the issue manifests, yes, this seems to be the same issue, though above test program does not do any complex editing, just asks the user for a string and catches the Enter key.

So the solution of this issue if I understand #69 correctly - depends on editing mode rewrite? Then it will be gone?

Exactly, the editing mode rewrite will fix these issues. BTW is it ok if I close this issue? We can continue the discussion in #69.

Sure, I see this issue is also linked back, so closing is perfectly fine.


tockloader: failing to load libtock-rs apps

Issue
When loading the example apps (blink, console etc...) from libtock-rs with tockloader. I see the following error. The particular error below is for the gpio example from libtock-rs loading into the nano33ble, so built with nrf52840 platform with make nrf52840 EXAMPLE=gpio. Then tockloader install. The nanoble33 was in bootloader mode prior to running the below command, I tried without this aswell...same issue.
(rust:1.70) ↪ tockloader install
[INFO   ] No TABs passed to tockloader.
[STATUS ] Searching for TABs in subdirectories.
 Which TAB files do you want to use? [./target/tbf/nrf52840/gpio.
tab]
[INFO   ] Using: ['./target/tbf/nrf52840/gpio.tab']
[INFO   ] No device name specified. Using default name "tock".
[INFO   ] Using "/dev/ttyACM0 - Nano 33 BLE - TockOS".
[INFO   ] Using serial channel to communicate with the board.
[INFO   ] No device name specified. Using default name "tock".
[INFO   ] Using "/dev/ttyACM0 - Nano 33 BLE - TockOS".
[STATUS ] Installing app on the board...
[INFO   ] Waiting for the bootloader to start
[ERROR  ] Could not meet fixed address requirements.
[ERROR  ] Unable to find a valid sort order to flash apps.

I have tried on 3 different nRF boards, nrf52DK/Particle Boron/Nano33BLE.  What's likely the culprit here?
Note that libtock-c apps seems to work as intended, I have been manually loading them with tockloader install *.tab for the nano33ble, and the app being loaded with the process console/tockloader.

There is a mismatch between the address ranges the app was compiled for and the address ranges supported by the kernel you are running. The reason this works with libtock-c is because libtock-c apps support PIC (note that all 3 boards you listed are ARM-based), and can therefore be placed at any address.
The address ranges that libtock-rs uses by default are defined in libtock_build_scripts::PLATFORMS. Check the address range for the value of LIBTOCK_PLATFORM you used against the kernel image you're using; I suspect a mismatch there.
Unfortunately the address ranges for apps can change with kernel version (as the kernel itself grows and shrinks), so you may end up needing to manually pass the address ranges via environment variables. Check the comments in the file I linked above for instructions.

Thanks! that was it, sent a PR that fixes this for the nrf52840 based boards.
I can get a single app to work. But not more than one at a time, even if they are manually compiled for the next available flash address and loaded (with tockloader) they will not execute.  See below, only blink is running.
[INFO   ] Using settings from KNOWN_BOARDS["nrf52dk"]
[STATUS ] Installing app on the board...
[INFO   ] Found sort order:
[INFO   ]   App "blink" at Flash=0x40080
[INFO   ]   App "console" at Flash=0x42080
[INFO   ] App Layout:
[INFO   ]    0x40000┬──────────────────────────────────────────────────┐
[INFO   ]           │App: blink                             [Installed]│
[INFO   ]           │  Length: 8192 (0x2000)                           │
[INFO   ]    0x42000┼──────────────────────────────────────────────────┤
[INFO   ]           │App: console                            [From TAB]│
[INFO   ]           │  Length: 8192 (0x2000)                           │
[INFO   ]    0x44000┴──────────────────────────────────────────────────┘
[INFO   ] Finished in 3.787 seconds

I did see https://github.com/tock/libtock-rs/issues/28 is there any progress on this? What still needs to be done?

Woops, Turns out I had to change the RAM address too to, suppose there was an overlap but silently failed? I have multiple apps working now.
[INFO   ] Using settings from KNOWN_BOARDS["nrf52dk"]
[STATUS ] Installing app on the board...
[INFO   ] Found sort order:
[INFO   ]   App "blink" at Flash=0x40080
[INFO   ]   App "console" at Flash=0x42080
[INFO   ]   App "buttons" at Flash=0x44080
[INFO   ] App Layout:
[INFO   ]    0x40000┬──────────────────────────────────────────────────┐
[INFO   ]           │App: blink                             [Installed]│
[INFO   ]           │  Length: 8192 (0x2000)                           │
[INFO   ]    0x42000┼──────────────────────────────────────────────────┤
[INFO   ]           │App: console                           [Installed]│
[INFO   ]           │  Length: 8192 (0x2000)                           │
[INFO   ]    0x44000┼──────────────────────────────────────────────────┤
[INFO   ]           │App: buttons                            [From TAB]│
[INFO   ]           │  Length: 16384 (0x4000)                          │
[INFO   ]    0x48000┴──────────────────────────────────────────────────┘
[INFO   ] Finished in 5.260 seconds

Serial
Particle Boron: Initialization complete. Entering main loop
button count: Hello world!
                          1
                           Particle Boron: Initialization complete. Entering main loop
button count: Hello world!
                          1
                           tock$ button 0: Pressed
                                                  button 0: Released
                                                                    button 0: Pressed
                                                                                button 0: Released


docs: correct getting started version

https://app.shortcut.com/mineiros/story/5060/correct-getting-started-example-version

No need to change


Copilot response cuts off prematurely

Copilot seems to be unable to spit out more than a few lines when asked to "adapt" some code. Other prompts like "help me update my code" produce the same cut-off responses.

VS Code Version: 1.80.0-insider
OS Version: Win 11 10.0.22621
Copilot version: 1.95.237
Logs: Nothing of note printed to the GitHub Copilot Chat output log.
[INFO] [streamMessages] [2023-07-05T12:10:29.400Z] message 0 returned. finish reason: [stop]
[INFO] [streamChoices] [2023-07-05T12:10:29.400Z] request done: headerRequestId: [b8f91e49-1ac7-4106-84f3-090b274a1c4e] model deployment ID: [x1a6c73c2f862]

Steps to Reproduce:

Ask Copilot Chat to "adapt" a given open file. The request doesn't matter, but the issue was found asking it to adapt a ~110 line python file to switch to using urllib instead of 'requests'.
Copilot obliges and get through about 15 lines or so (variable) before simply stopping or even dropping out before completing formatting.

Example request:
"Please adapt my code in [filename] to use urllib requests and error handling instead of the 'requests' library."
Response:
Certainly! Here's an updated version of the code that uses urllib requests and error handling:

\```python import sys import json import logging import re import base64 import argparse from os import environ as envs from urllib.parse import unquote, quote from urllib.request import Request, urlopen from urllib.error import HTTPError, URLError

I'm seeing the same behavior as well. It seems like it will get stuck after it finishes import statements, no matter how short that import list is.
When this happens, additional prompting will result in an apology and no correction of the output.
Is this more an issue with rate limiting?

I am seeing the same issue too. When asked a question without the need for code in the response, the answers do seem complete. However when any code is required, it stops on the first line.

I don’t think it’s a rate-limiting issue, or at least I’m not familiar with those limits. The logs for the request only show three streamMessages events pertaining to the question, and it occurred the first time I asked chat a question.

instead of whole code, it just imports a library needed and that's it.

Is this file open and do you have a selection in it? I think there is an issue with missing editor context here. And if the file is not open, chat can't see it.

Yes, the file is open and the active tab in the editor. I'll do some further testing tomorrow to see if other prompts are able to grab the appropriate context or not.
As far as selection goes, no selection, but the file is just over 100 lines, and the filename is provided in the prompt.

From: Rob Lourens @.>
Sent: Wednesday, July 5, 2023 7:07:46 PM
To: microsoft/vscode-copilot-release @.>
Cc: Daniel Smith @.>; Author @.>
Subject: Re: [microsoft/vscode-copilot-release] Copilot response cuts off prematurely (Issue #303)
Is this file open and do you have a selection in it? I think there is an issue with missing editor context here. And if the file is not open, chat can't see it.
—
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/vscode-copilot-release/issues/303#issuecomment-1622161072, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJGGXPQ5LIUQEXWJM2HYOMTXOWNOFANCNFSM6AAAAAAZ64OVCQ.
You are receiving this because you authored the thread.Message ID: @.***>

Can someone try installing a previous version of the Copilot Chat extension to see whether it regressed in the past couple days

it's working fine with the old version!

Which version?

Which version?

so it caused this problem on 0.2.2
and went I went to 0.2.1 it worked fine.

@ulugbekna I think this is https://github.com/microsoft/vscode-copilot/commit/ca37a063d374113c0247e54a158520495a876cb0

I met same problem.

Think i was only getting the error when it was trying to output a code block, switched to a version from a week ago and it works fine

Appologies for the breakage. We have shipped a new prerelease version of the extension, v0.3.2023070602 which should contain a fix.

Unfortunately, I'm still experiencing the same issue in v0.3.2023070602. Updated extensions this morning and restarted VS Code Insiders for good measure. The behavior appears identical. When copilot begins to write a code-block, it bombs out and fails to complete the thought. Are there any caches I can/should clear to ensure the I'm not somehow still using a cached library?
\```python import urllib.request import urllib.parse import base64

GitHub Copilot Chat version v0.3.2023070602
Last updated 7/6/2023, 11:23:11  (UTC+1)
GitHub Copilot version v1.95.240
Last updated 7/6/2023, 11:18:33

@DanSoQt You're right, sorry again about that 😳 ! Version v0.3.2023070603 should contain a fix.

Confirmed working as expected in v0.3.2023070603. Thanks for the fix!

I have had the same kind of behavior since yesterday.
Entering /doc for a simple bash script, and the answer stops abruptly after 22 lines or so.

Your response got cut off , please continue where you left off
does not help.


Change run option SchedulePeriod's type to make it clear

What this PR does / why we need it:
Change run option SchedulePeriod's type to make it clear
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Release note:

Change run option SchedulePeriod's type to TimeDuration

/lgtm
/approve


Add connect documentation for sponsored tx support

cc @hstove

@markmhx this was discussed today at the user meeting. I can tackle it once PRs are merged

Here is some sample code:

Frontend: Add a new sponsored field to the transaction props: https://github.com/agraebe/docs-nft/blob/master/pages/index.js#L141. The tx will not be broadcasted on the frontend but send to the backend.
Backend:  Deserialize the tx hash, determine if it should be sponsored, provide a private key for sponsoring the tx, and broadcast it: https://github.com/agraebe/docs-nft/blob/master/pages/api/broadcast.js#L11


fix server credentials finding

When a relative path is provided to the credentials, which contains no directory, the isdir returns false. This ensures the path used is an abs path do the directory component will have something and can fail out correctly.

What exactly is this fixing? The original purpose of ('option', 'credentials') was to let users specify an alternative absolute or relative path to a credentials file. Credentials are secrets, I'm not sure they should be looked for in repositories or Python module search paths.

@WRansohoff updated the description a little and fixed the implementation


Syntax SQL vs Medoo

Hello, in php function I use the same sql query for several context that evolves according to the parameters passed to the function.
For the moment I have not found how to transpose this request with the medoo syntax. Is it possible or is it better to keep the sql syntax?
  public function getStatsDetailFamille($bpcord='', $bpaadd='', $tsccod='', $rep='', $itmref, $annee, $tsicod2, $moisDeb, $moisFin) {
    $query = "SELECT ";
    $query .= " SUM(sinvoiced.netpri*sinvoiced.qty * (case when sinvoicev.invtyp = 1 then 1 else -1 end)) AS netpri, sinvoiced.itmref, sinvoiced.tsicod2";
    $query .= " FROM sinvoicev";
    $query .= " INNER JOIN sinvoiced ON sinvoicev.num = sinvoiced.num";
    $query .= " WHERE ";
    if(!empty($bpcord)) {
      $query .= "  sinvoicev.bpcinv = '".$bpcord."' AND";
    }
    if(!empty($bpaadd)) {
      $query .= "  sinvoicev.bpaadd = '".$bpaadd."' AND";
    }
    if(!empty($tsccod)) {
      $query .= "  sinvoicev.tsccod = '".$tsccod."' AND";
    }
    if(!empty($rep)) {
      $query .= "  sinvoicev.rep1 IN ('".$rep."') AND";
    }
    if(!empty($tsicod2)) {
      $query .= "  sinvoiced.tsicod2 = '".$tsicod2."' AND";
    }
    if(!empty($moisDeb)) {
      $query .= "  MONTH(sinvoicev.invdat) BETWEEN ".$moisDeb." AND ".$moisFin." AND";
    }
    $query .= "  sinvoiced.itmref = '".$itmref."' AND";
    $query .= "  YEAR(sinvoicev.invdat) = '".$annee."'";
    $query .= " GROUP BY sinvoiced.itmref";
    $query .= " ORDER BY sinvoiced.itmref";

    $stat = $this->database->query($query)->fetchAll(PDO::FETCH_ASSOC);

    return $stat;
  }

I have not tried to achieve this myself but you can totally make JOINS, multiple ANDS, GROUP BY and ORDER BY.
SELECT Syntax
WHERE Syntax

The problem is not the JOIN or ORDER, I have already made requests with the syntax Medoo but the php conditions of my WHERE. This query serves me in many cases, they are handled by if and turns on or off WHERE clauses.
My idea is to have a single syntax for my requests at the level of my php code to simplify the reading.
Blows my question is: is it possible, with the syntax Medoo, to reproduce the different if?

The situation of your query is having too much SQL calculation for it. That's mean, the database will execute the calculate function for each row for getting the result while the SQL is querying in real-time. The query is become complex and low performance.
Although it's possible, this is not a good idea for that.
Perhaps you can consider reconstruct the database, like adding a new column to save the calculated or formated value while inserting/updating the row. That's can simplify the query and increase the performance.
Medoo's syntax can't 100% cover all SQL complex query cases. It's only targeting for most common usage.
Additionally, Medoo query() is supported quoting syntax for preventing injection and quotation problem. That's will make the custom query more readable and easier for binding value.
https://medoo.in/api/query


Update README for better readability

I want to update the README.md file for Gradle with some listed changes :

Add Gradle's participation in Hacktoberfest 2024 to Gradle's main repository.
To add more structure for better readability
Add relevant labels
Update the logo of Gradle used in README as after checking the Branding Guidelines found that the logo used in dark mode is outdated.

Please assign this issue to me.

This issue needs a decision from the team responsible for that area. They have been informed. Response time may vary.

Our developer advocate and documentation persons should chime in on the proposed changes before this gets assigned to anyone.

Hi @abhirajadhikary06 incremental contributions to improve any information in this repo are welcome

Add Gradle's participation in Hacktoberfest 2024 to Gradle's main repository.

I am not sure it is beneficial for this landing, especially given that we do not promote this repository as good first contribution

To add more structure for better readability

Sure, PRs are welcodme

Add relevant labels

What do you mean?

Update the logo of Gradle used in README as after checking the Branding Guidelines found that the logo used in dark mode is outdated.

Yes, a patch is welcome

Hi @abhirajadhikary06 incremental contributions to improve any information in this repo are welcome

Add Gradle's participation in Hacktoberfest 2024 to Gradle's main repository.

I am not sure it is beneficial for this landing, especially given that we do not promote this repository as good first contribution

To add more structure for better readability

Sure, PRs are welcodme

Add relevant labels

What do you mean?

Update the logo of Gradle used in README as after checking the Branding Guidelines found that the logo used in dark mode is outdated.

Yes, a patch is welcome

By labels i mean updating these


Update overview-of-the-upgrade-process-2019.md

#921
Changes made:
Replace this:  Upgrade databases from SharePoint 2016 to SharePoint Server 2019 to
"Overview of the upgrade process to SharePoint Server 2019"
Correct link: https://docs.microsoft.com/en-us/sharepoint/upgrade-and-update/upgrade-databases-2019

@nenonix @JohanFreelancer9 Copy editing is needed for this PR. Thanks.

@Techwriter40 Hi! Changes look correct. Could you please review and merge? Thanks!


Shortcut to Set Window Size(s)

Would ❤  a keyboard shortcut to set window size.
Use case: I like to take screenshots at certain browser sizes, and since Oryoki is perfect for taking nice screenshots, it would be awesome to set a shortcut for a certain size, or an array of sizes.

Right now you can set window size with cmd+alt+m. This doesn't account for pixel density yet so on a retina screen for example a 800x600 window will give you 1600x1200 screenshots.
In the future I'll be adding some templates. Hope this helps!