Lab1 grading exercises

this PR is a replacement of #797

Changes
Fixes #360
this PR updates Lab 1 of the textbook and modifies its exercises to make use of the grader
preview: https://platypus-pr-1407.ecy0akwlcpw.us-south.codeengine.appdomain.cloud/course/ch-labs/lab-1-quantum-circuits
Co-Authored-By: @Tansito
Co-Authored-By: @frankharkins
Implementation details
some of the code cells in Lab 1 have been rewritten to remove the implementation detail and leave it up to the learner to complete. in addition, grader attributes (grader_import and grader_function) have been added to these specific code cells' metadata field which enable the grader.
the validation code is defined in textbook_labs in the grading service. when grading their code the learner will be made aware whether their solution is correct or not.
How to read this PR
review the content of the notebook making sure the graded cells explain clearly what needs to be done.
answer the graded cells and ensure the grader accurately indicates a solution is right or wrong.
Screenshots
before

after

wrong answer

correct answer

FYI, @Tansito @frankharkins i opened this to replace #797 (was having issues with the merge conflict)... do we know the status? has the issue (#360) been put on hold for a specific reason (or deprioritized0? just curious since the original PR was in draft for over 4 months.

when continuing work on this PR consider using the grader-id and grader-answer attributes instead as discussed here: https://github.com/Qiskit/platypus/pull/1406
it makes the overall process little bit simpler. you just need to update the grading server (with the validation code) and not necessarily the grading client.

Thanks for this @vabarbosa ! About the status probably @frankharkins will know more about this but the idea was to update the Lab 1 content with the new grader configuration. But we didn't prioritise it yet I think.

IIRC, after making server PR #137 there was something blocking adding the grader to the labs. I guess we never revisited this after it was resolved.

cool. thanks. not a problem, i just wanted to make sure there wasn't anything still being waited on.


Release Qualification - master-20181115-09-15

This is a generated PR that triggers release qualification tests, and will be automatically merged if all tests pass. In case some test fails, you can manually rerun the failing tests using /test. Force merging this PR will suppress the test failures and let the release pipeline continue.
none

@rkpagadala: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/daily-run-if-changed-test.sh
892271d4679b2ac86b37b035608834b4fe6929b0
link
/test daily-run-if-changed-test

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@rkpagadala: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/daily-run-if-changed-test.sh
892271d4679b2ac86b37b035608834b4fe6929b0
link
/test daily-run-if-changed-test

prow/daily-perf-tests.sh
892271d4679b2ac86b37b035608834b4fe6929b0
link
/test daily-perf-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@rkpagadala: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/daily-run-if-changed-test.sh
892271d4679b2ac86b37b035608834b4fe6929b0
link
/test daily-run-if-changed-test

prow/daily-perf-tests.sh
892271d4679b2ac86b37b035608834b4fe6929b0
link
/test daily-perf-tests

prow/daily-upgrade-tests-1.0.1.sh
892271d4679b2ac86b37b035608834b4fe6929b0
link
/test daily-upgrade-tests-1.0.1

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@rkpagadala: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/daily-run-if-changed-test.sh
892271d4679b2ac86b37b035608834b4fe6929b0
link
/test daily-run-if-changed-test

prow/daily-perf-tests.sh
892271d4679b2ac86b37b035608834b4fe6929b0
link
/test daily-perf-tests

prow/daily-upgrade-tests-1.0.1.sh
892271d4679b2ac86b37b035608834b4fe6929b0
link
/test daily-upgrade-tests-1.0.1

prow/daily-upgrade-tests-1.0.2.sh
892271d4679b2ac86b37b035608834b4fe6929b0
link
/test daily-upgrade-tests-1.0.2

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@rkpagadala: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/daily-run-if-changed-test.sh
892271d4679b2ac86b37b035608834b4fe6929b0
link
/test daily-run-if-changed-test

prow/daily-perf-tests.sh
892271d4679b2ac86b37b035608834b4fe6929b0
link
/test daily-perf-tests

prow/daily-upgrade-tests-1.0.1.sh
892271d4679b2ac86b37b035608834b4fe6929b0
link
/test daily-upgrade-tests-1.0.1

prow/daily-upgrade-tests-1.0.2.sh
892271d4679b2ac86b37b035608834b4fe6929b0
link
/test daily-upgrade-tests-1.0.2

prow/daily-e2e-pilot-no_auth.sh
892271d4679b2ac86b37b035608834b4fe6929b0
link
/test daily-e2e-pilot-no_auth

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


pin version of babylon to <= 6.8.0 until the problems are fixed

Should we do that?

Not necessary anymore?


batch JSON-RPC requests

Summary
batched JSON-RPC requests in the background to increase performance of indexing just like it was implemented in ord for bitcoin. I was able to finish indexing of ~2400000 blocks in 45mins. Before this PR, indexing was slow.

@ynohtna92, Can you review this and let me know if you agree with the proposed changes too?

whoa this indexes way faster. thanks sai!
I did git checkout for this pull request, recompiled, and ran the indexer (from a previous checkpoint which was up to ~2017). It was super fast. But just before the very end I got this error:
[2023-02-22T20:45:31Z INFO  ord::index::updater] Wrote 0 sat ranges from 0 outputs in 0 ms
[2023-02-22T20:45:31Z INFO  ord::index::updater] Block 2424427 at 2023-02-18 03:33:54 UTC with 0 transactions…
[2023-02-22T20:45:31Z INFO  ord::index::updater] Wrote 0 sat ranges from 0 outputs in 0 ms
[2023-02-22T20:45:31Z INFO  ord::index::updater] Block 2424428 at 2023-02-18 03:34:34 UTC with 0 transactions…
[2023-02-22T20:45:31Z INFO  ord::index::updater] Wrote 0 sat ranges from 0 outputs in 0 ms
[2023-02-22T20:45:31Z INFO  ord::index::updater] Block
`2424429 at 2023-02-18 03:46:26 UTC with 607 transactions…
Failed deserialize
[2023-02-22T20:45:33Z ERROR ord::index::updater] Couldn't receive txs Result for batched JSON-RPC response not valid bitcoin tx: parse failed: data not consumed entirely when explicitly deserializing
[2023-02-22T20:45:33Z INFO  ord::index::updater] Block receiver disconnected: sending on a closed channel
error: failed to get transaction for 1deb0e52f753ab6cdf85f90e2aae58de3d5c23c1a4de4041b3654873e10a7864

but then checking out origin/master branch again it was able to finish from 2023-02-18 at the slower speed.
Not sure if the error was a result of a bug in the PR, or because of the way i was switching branches

@kranthicodes I'll test this out today? How is this different to the Ord batch tx on BTC? Did you have to do any additional changes?

Closing, merged from casey/ord https://github.com/ynohtna92/ord-litecoin/commit/f8533c766dec985f4a64f73b0ee073b4c32b03cc

whoa this indexes way faster. thanks sai!
I did git checkout for this pull request, recompiled, and ran the indexer (from a previous checkpoint which was up to ~2017). It was super fast. But just before the very end I got this error:
[2023-02-22T20:45:31Z INFO  ord::index::updater] Wrote 0 sat ranges from 0 outputs in 0 ms
[2023-02-22T20:45:31Z INFO  ord::index::updater] Block 2424427 at 2023-02-18 03:33:54 UTC with 0 transactions…
[2023-02-22T20:45:31Z INFO  ord::index::updater] Wrote 0 sat ranges from 0 outputs in 0 ms
[2023-02-22T20:45:31Z INFO  ord::index::updater] Block 2424428 at 2023-02-18 03:34:34 UTC with 0 transactions…
[2023-02-22T20:45:31Z INFO  ord::index::updater] Wrote 0 sat ranges from 0 outputs in 0 ms
[2023-02-22T20:45:31Z INFO  ord::index::updater] Block
`2424429 at 2023-02-18 03:46:26 UTC with 607 transactions…
Failed deserialize
[2023-02-22T20:45:33Z ERROR ord::index::updater] Couldn't receive txs Result for batched JSON-RPC response not valid bitcoin tx: parse failed: data not consumed entirely when explicitly deserializing
[2023-02-22T20:45:33Z INFO  ord::index::updater] Block receiver disconnected: sending on a closed channel
error: failed to get transaction for 1deb0e52f753ab6cdf85f90e2aae58de3d5c23c1a4de4041b3654873e10a7864

but then checking out origin/master branch again it was able to finish from 2023-02-18 at the slower speed.
Not sure if the error was a result of a bug in the PR, or because of the way i was switching branches

i met the same error like what you have posted above but i dont know how to solve it, do you have any solutions?

i met the same error like what you have posted above but i dont know how to solve it, do you have any solutions?

@Cortexelus @pluto2sun
Turn on -rpcserialversion 1 on your litecoin node. This error is because mweb is half implemented in rust-litecoin... I'll get around to it eventually.


feat(ui): add config option to keep window when item selected

Addresses issue #417

i don't want this change.  Its not that i don't think it was done well, its just not what i want harpoon to do
use prev or next if you wish to peruse your list


Not receiving all messages

OS: Google Container Engine (Kubernetes)
Node.js version: gcr.io/google_appengine/nodejs
npm version:
@google-cloud/pubsub version: 0.16.2

I have a very simple subscription on a topic that runs in Container Engine. The code is the same as your examples:
const pubsub = require('@google-cloud/pubsub')();

const projectId = process.env.GOOGLE_CLOUD_PROJECT;
const topic = pubsub.topic('projects/' + projectId + '/topics/security-logs');
const subscription = topic.subscription('projects/' + projectId + '/subscriptions/securitySubscription');

subscription.on('error', function (err) {
    "use strict";
    console.error("Subscription error: " + err);
});

function onMessage(message) {
    "use strict";
    // Called every time a message is received.
    logger.log("Subscription message received: " + JSON.stringify(message));
    const data = Buffer.from(message.data).toString('utf-8');
    logger.log("message.data: " + data);
    message.ack();
}

subscription.on('message', onMessage);

The problem is that not all messages are received. I would say a little more than 50% are.
I see in my logs that messages are successfully sent by publishers (I get messageIds) but the subscription does not get them all. I have only one subscriber.
Any idea what might be wrong ?

We've had issues with Kubernetes becoming unresponsive in the past - when you say you don't receive all the messages, would you also say its accurate that they stop coming in altogether?

@callmehiphop I'm having this issue now, do you know of any solution for this?

@sharif9876 What version of the PubSub client are you running? I think you might be getting hit by https://github.com/googleapis/nodejs-pubsub/issues/770, which we released a patch for just yesterday.

@callmehiphop That seems to have fixed it! Thanks!

@sharif9876 awesome, thanks for stopping by and letting us know!


bug: Leader key does not work on first editor open

Did you read the documentation and check existing issues?

[X] I have read all the :help neominimap documentation
[X] I have updated the plugin to the latest version before submitting this issue
[X] I have searched the existing issues and closed issues issues

Neovim version (nvim -v)
NVIM v0.10.1 Build type: Release LuaJIT 2.1.1713484068
Operating system/version
Ubuntu 24.04.1 LTS
Describe the bug
When i open my editor for the first time, space refuses to work as a leader key. Instead it works as the default space (go one char next) in vim.
I know that neominimap might be responsible for this since if i disable it it starts working like normal again.
Screencast from 2025-01-01 07-47-36.webm
Steps To Reproduce

Open neovim
Open a code file from neotree or telescope
Press space expecting it to act as leader key
Instead it doesn't trigger leader

Note that opening md files does not trigger this behavior
Expected Behavior
Space should act as a leader key right away!
Health
==============================================================================
neominimap: require("neominimap.health").check()

- OK Neovim version is 0.10 or higher
- OK neominimap: valid config
- TreeSitter integration is enabled
- OK TreeSitter is installed
- OK TreeSitter parsers are installed: ada, agda, angular, apex, arduino, asm, astro, authzed, awk, bash, bass, beancount, bibtex, bicep, bitbake, blueprint, bp, c, c_sharp, cairo, capnp, chatito, circom, clojure, cmake, comment, commonlisp, cooklang, corn, cpon, cpp, css, csv, cuda, cue, cylc, d, dart, desktop, devicetree, dhall, diff, disassembly, djot, dockerfile, dot, doxygen, dtd, earthfile, ebnf, editorconfig, eds, eex, elixir, elm, elsa, elvish, embedded_template, erlang, facility, faust, fennel, fidl, firrtl, fish, foam, forth, fortran, fsh, fsharp, func, fusion, gap, gaptst, gdscript, gdshader, git_config, git_rebase, gitattributes, gitcommit, gitignore, gleam, glimmer, glimmer_javascript, glimmer_typescript, glsl, gn, gnuplot, go, goctl, godot_resource, gomod, gosum, gotmpl, gowork, gpg, graphql, gren, groovy, gstlaunch, hack, hare, haskell, haskell_persistent, hcl, heex, helm, hjson, hlsl, hlsplaylist, hocon, hoon, html, htmldjango, http, hurl, hyprlang, idl, ini, inko, ipkg, ispc, janet_simple, java, javascript, jq, jsdoc, json, json5, jsonc, jsonnet, julia, just, kconfig, kdl, kotlin, koto, kusto, lalrpop, ledger, leo, linkerscript, liquid, liquidsoap, llvm, lua, luadoc, luap, luau, m68k, make, markdown, markdown_inline, matlab, menhir, mermaid, meson, muttrc, nasm, nginx, nickel, nim, nim_format_string, ninja, nix, norg, nqc, nu, objc, objdump, ocaml, ocaml_interface, odin, org, pascal, passwd, pem, perl, php, php_only, phpdoc, pioasm, po, pod, poe_filter, pony, powershell, printf, prisma, problog, prolog, promql, properties, proto, prql, psv, pug, puppet, purescript, pymanifest, python, ql, qmldir, qmljs, query, r, racket, ralph, rasi, rbs, re2c, readline, regex, rego, requirements, rescript, rnoweb, robot, robots, roc, ron, rst, ruby, runescript, rust, scala, scheme, scss, sflog, slang, slint, smali, smithy, snakemake, solidity, soql, sosl, sourcepawn, sparql, sql, squirrel, ssh_config, starlark, strace, styled, supercollider, superhtml, surface, svelte, sway, sxhkdrc, systemtap, t32, tablegen, tact, tcl, templ, terraform, textproto, thrift, tiger, tlaplus, tmux, todotxt, toml, tsv, tsx, turtle, twig, typescript, typespec, typoscript, typst, udev, ungrammar, usd, uxntal, v, vala, vento, verilog, vhdl, vhs, vim, vimdoc, vrl, vue, wgsl, wgsl_bevy, wing, wit, xcompose, xml, xresources, yaml, yang, yuck, zathurarc, zig, ziggy, ziggy_schema
- Gitsigns integration is enabled
- OK Gitsigns is installed

Log
No response
Repro
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
    spec = {
    {
        -- Add anything you need here (configuration, other plugins, etc)
        "Isrothy/neominimap.nvim",
    },
})

My lazyvim config:
return {
  "Isrothy/neominimap.nvim",
  version = "v3.*.*",
  enabled = true,
  lazy = false, -- NOTE: NO NEED to Lazy load
  -- Optional
  keys = {
    -- won't work unless i do kj (go to insert mode), then kj (go to normal mode)
    -- :(
    -- Global Minimap Controls
    { "<leader>nm", "<cmd>Neominimap toggle<cr>", desc = "Toggle global minimap" },
    { "<leader>no", "<cmd>Neominimap on<cr>", desc = "Enable global minimap" },
    { "<leader>nc", "<cmd>Neominimap off<cr>", desc = "Disable global minimap" },
    { "<leader>nr", "<cmd>Neominimap refresh<cr>", desc = "Refresh global minimap" },

    -- Window-Specific Minimap Controls
    { "<leader>nwt", "<cmd>Neominimap winToggle<cr>", desc = "Toggle minimap for current window" },
    { "<leader>nwr", "<cmd>Neominimap winRefresh<cr>", desc = "Refresh minimap for current window" },
    { "<leader>nwo", "<cmd>Neominimap winOn<cr>", desc = "Enable minimap for current window" },
    { "<leader>nwc", "<cmd>Neominimap winOff<cr>", desc = "Disable minimap for current window" },

    -- Tab-Specific Minimap Controls
    { "<leader>ntt", "<cmd>Neominimap tabToggle<cr>", desc = "Toggle minimap for current tab" },
    { "<leader>ntr", "<cmd>Neominimap tabRefresh<cr>", desc = "Refresh minimap for current tab" },
    { "<leader>nto", "<cmd>Neominimap tabOn<cr>", desc = "Enable minimap for current tab" },
    { "<leader>ntc", "<cmd>Neominimap tabOff<cr>", desc = "Disable minimap for current tab" },

    -- Buffer-Specific Minimap Controls
    { "<leader>nbt", "<cmd>Neominimap bufToggle<cr>", desc = "Toggle minimap for current buffer" },
    { "<leader>nbr", "<cmd>Neominimap bufRefresh<cr>", desc = "Refresh minimap for current buffer" },
    { "<leader>nbo", "<cmd>Neominimap bufOn<cr>", desc = "Enable minimap for current buffer" },
    { "<leader>nbc", "<cmd>Neominimap bufOff<cr>", desc = "Disable minimap for current buffer" },

    ---Focus Controls
    { "<leader>ns", "<cmd>Neominimap toggleFocus<cr>", desc = "Switch focus on minimap" },
  },

  init = function()
    -- The following options are recommended when layout == "float"
    vim.opt.wrap = false
    vim.opt.sidescrolloff = 36 -- Set a large value

    --- Put your configuration here
    vim.g.neominimap = {
      auto_enable = true,
      -- If you're using split mode, opening neo-tree and restoring last session won't work
      -- So restore last session (<Leader>ql) first and then open neo-tree
      layout = "split",
      split = {
        minimap_width = 16,
      },
      float = {
        minimap_width = 16,
      },
      click = {
        enabled = true,
      },
      diagnostic = {
        mode = "icon",
      },
      notification_level = vim.log.levels.OFF,
    }
  end,
}


Support back to 3.6.9

Pull request checklist
Before submitting your PR, please review the following checklist:

[x] Consider adding a unit test if your PR resolves an issue.
[x] All new and existing tests pass locally (palm test)
[x] Lint (palm lint) has passed locally and any fixes were made for failures
[x] Docs have been reviewed and added / updated if needed (for bug fixes / features)

Breaking changes

[ ] Check if this pull request introduces a breaking change

What does this implement/fix? Explain your changes.
Changes to the subprocess interface are not breaking going forward (3.6 => 3.7), but break going backwards from our
primary 3.8 dev environment. This PR attacks 2 things:

fixes core compatibility back to python 3.6.9 (the stock python3 for Ubuntu 18.04, so a really common semi-recent version).
creates an abstracted run_on_the_metal() interface so we can protect downstream commands from the same issues

Does this close any currently open issues?
it makes a big dent in issue #20
Any other comments?
To keep this support clean in testing we should add a make option to build and test in virtualenvs for each minor release we want to cover in CI. it would just need to step through each one, run the tests etc.
Where has this been tested?
Locally with python3.6.9, python3.7.0, python3.9.9
Operating System:
Ubuntu 18.04

This is only a WIP because I need to add docs for the new context method and lint. otherwise it's gtg

No longer a WIP, let's roll this puppy into develop!

I definitely understand the value in having this function, however the name of it to me is confusing. "On the metal" is usually used to refer to instruction sets that run directly by the hardware, but in this case, Python is technically nowhere near the metal...
Can we rename it to something that more clearly distinguishes its use from run_in_docker, like run_local? This, to me, seems like one of the things most users would have difficulty understanding--when to use this function instead of run_in_docker for their commands. We could also just call it run_subprocess so at least folks know it is meant to be used instead of subprocess and wraps it with some handling.

I definitely understand the value in having this function, however the name of it to me is confusing. "On the metal" is usually used to refer to instruction sets that run directly by the hardware, but in this case, Python is technically nowhere near the metal... Can we rename it to something that more clearly distinguishes its use from run_in_docker, like run_local? This, to me, seems like one of the things most users would have difficulty understanding--when to use this function instead of run_in_docker for their commands. We could also just call it run_subprocess so at least folks know it is meant to be used instead of subprocess and wraps it with some handling.

interesting - I've heard people use "on the metal" in the context of containers to refer to running a thing on the host. actually, how about run_on_host() ? that's pretty descriptive?

I definitely understand the value in having this function, however the name of it to me is confusing. "On the metal" is usually used to refer to instruction sets that run directly by the hardware, but in this case, Python is technically nowhere near the metal... Can we rename it to something that more clearly distinguishes its use from run_in_docker, like run_local? This, to me, seems like one of the things most users would have difficulty understanding--when to use this function instead of run_in_docker for their commands. We could also just call it run_subprocess so at least folks know it is meant to be used instead of subprocess and wraps it with some handling.

interesting - I've heard people use "on the metal" in the context of containers to refer to running a thing on the host. actually, how about run_on_host() ? that's pretty descriptive?

I prefer run_on_host - short and clear!

This looks good, thanks for forking. I'd like to test on Monday before merging

This looks good, thanks for forking. I'd like to test on Monday before merging

sweet. I'm using this branch now, will keep poking at it all weekend :)


Render text using markdown

It would be great if text in fields can be rendered via markdown, like in GitHub, StackOverflow, etc.

will add this in future iteration of sbh3


feat(cli): multiple paths for queries

Closes #4809
Proposed Changes

changed flag -q from string to strings
changed patterns of ASFF schema

I submit this contribution under the Apache-2.0 license.

What about KICS_QUERIES_PATH environment variable usage ?
https://github.com/Checkmarx/kics/blob/099b11d040ae869d74978b4968c71f43ce38ded6/.goreleaser.yml#L61

What about KICS_QUERIES_PATH environment variable usage ?
https://github.com/Checkmarx/kics/blob/099b11d040ae869d74978b4968c71f43ce38ded6/.goreleaser.yml#L61

Hello, @jycamier!
The KICS_QUERIES_PATH environment variable is only used when the flag -q is not used.
If you want to use your "non-default queries" and the default queries pointed in KICS_QUERIES_PATH, you can run a command similar to: ./bin/kics scan -p <project-path> -q <your-non-default-queries-path> -q $env:KICS_QUERIES_PATH (powershell example)


[KAFKA-4380] Document the purpose of clean shutdown file in the code.

Remove the previous TODO to remove the clean shutdown file with some of the discussion from https://github.com/apache/kafka/pull/2104.

cc @ijuma


Close button

Thanks for the awesome plugin!
I'd like to add a close button to provide a visual cue that allows for closing the sidebar.
I've looked at two approaches for this:

add a second button to toggle the sidebar off, only visible when the sidebar is out
change the text and icon of the existing button via JS, when the sidebar is out

Either way, although the classes imply the button is a "toggle" - I can click once on the button to open the sidebar, but when I click the button again, the sidebar does not close. The only UI way to close the sidebar appears to be clicking or tapping on some white space outside the sidebar.
It looks like I'll use the second approach above, and remove the "offcanvas-toggle" class when the sidebar is out, so when the user taps the button, it's the equivalent of tapping outside the sidebar.
How would you suggest implementing a close button using this plugin? Is there a way in the current version? Can we change the button into a true toggle in future versions, to make this easier?
Thanks! David

Same here. Even in the example, the toggle button won't close the nav :(

Hey guys! Sorry for the slow fix on this! But if you could try out the latest version, seems to of fixed it!

Does anyone know how can I disable button (offcanvas-toggle) when menus open?


Update microsoft-defender-endpoint-linux.md

Double confirmed with Microsoft Defender Vulnerability Management product team, MDVM is not supported on Alma.
Adding this note to bring attention to the customer to avoid potential confusions.

Hello @yangsa666 and thank you so much for the pull request. We actually need this in our private repo so I've moved it over here: https://github.com/MicrosoftDocs/defender-docs-pr/pull/594. Please let me know if you have any questions<EMAIL_ADDRESS>


Unable to use sugar-date on server-side with meteor/nodejs

var Sugar = require('sugar-date');
console.log(Sugar.Date())

gives me TypeError: Sugar.Date is not a function

Hi sorry for the delay... were you able to figure this one out? I have no trouble installing sugar-date and using it like this out of the box... it's unlikely that meteor could be messing with basic import/exports so maybe something else was missing here?

Going to close this one out as I wasn't able to reproduce it, even after using in conjunction with Meteor... seems like something else must be at play here. If you still are having trouble please feel fre to reopen but if you can provide some more context it would be helpful.


What's the meaning of "# Warning: this won't be cleaned up, which might be an issue if you run it # with the local builder."

thanks

docker-compose up -d run the containers in the background. There is no step to clean this up. That's not a problem on GCB because the VM is destroyed after the build anyway. But if you use the local builder, the containers will keep running on your machine.


CASSANDRA-17446 update document about backup tool via 3.11.x

please create a ticket in Apache JIRA for Cassandra component in order to make this happen.

Hi @smiklosovic, is it the correct way to create an (issue on jira](https://issues.apache.org/jira/browse/CASSANDRA-17394)?
I've update the pr title from Fixing doc backup page: "nodetool refresh" is available on ver. 3.11.x to CASSANDRA-17394

this will be included in https://github.com/apache/cassandra/pull/2062


@ spacesignal GA launch

@jelicacomo app launch outline here.
ETA launch date:

[x] Spoke with Gefei.  She is interested in the producer model as she just wants to work on the app code

Gefei's Checklist
Trello Board

[x] Apply the new chat history delete logic
[ ] Working with Sarika on the notificationcallback error
[ ] Waiting for an update on public-cache-keys from @VJag @kalluriramkumar
[ ] Send/search signals on the server
[ ] Display signals that the user sent
[ ] Recall signals

Cross Stores Checklist

[ ] The name of you app (should be 30 characters or less to comply with both stores)
[ ] Secure and activate an @sign for your app
[ ] A logo for your app that can be used as an Icon in both stores
[ ] Privacy policy + URL (we recommend GitHub pages) @nickelskevin @tinashe404
[ ] Website landing page for your app @rtilney
[ ] A wavi.ng page for your app @rtilney

Apple App Store Checklist
To get set up in the Apple App store, you will need:

[ ] Name of your app (30 characters, reviewed by Apple before it is made available)
[ ] Subtitle for your app (30 characters, reviewed by Apple before it is made available)
[ ] App Store Icon
[ ] Category selections for your app @nickelskevin
[ ] Content Rights selection
[ ] Age Rating selection
[ ] License Agreement selection (your own or Apple’s Standard License Agreement)
[ ] Pricing information
[ ] Availability (by country) selection
[ ] Privacy Policy URL (required) @nickelskevin @rtilney
[ ] User Privacy Choices URL (optional)
[ ] Data Collection Type
[ ] What’s new in the version to be released (major, minor, bugfix)
[ ] Up to three App Preview Videos @rtilney
[ ] Up to 10 screenshots for iPhone 6.5" display @rtilney @tinashe404
[ ] Up to 10 screenshots for iPhone 5.5" display @rtilney @tinashe404
[ ] Up to 10 screenshots for iPad Pro (3rd Gen) 12.9" display @rtilney @tinashe404
[ ] Up to 10 screenshots for iPad Pro (2nd Gen) 12.9" display @rtilney @tinashe404
[ ] Promotional Text
[ ] A description of your app, detailing features and functionality
[ ] Keywords for search optimization
[ ] Support URL for your app (could be a mailto://)
[ ] Marketing URL for your app (AKA landing page) @rtilney
[ ] Copyright details

Google Play Store Checklist
To get set up in the Google Play store, you will need:

[ ] Name of your app (up to 50 characters, reviewed by Google before it is made available)
[ ] Short description (up to 80 characters, reviewed by Google before it is made available)
[ ] Full description (up to 4,000 characters, reviewed by Google before it is made available)
[ ] App icon @rtilney
[ ] Feature graphic @rtilney
[ ] Feature YouTube video
[ ] App or Game selection for your app
[ ] Category selections for your app @nickelskevin
[ ] Tags for search optimization (up to 5 from their list)
[ ] Privacy Policy URL (required) @nickelskevin @rtilney
[ ] Ads Policy
[ ] App access policy (for testing) @nickelskevin
[ ] Content ratings
[ ] Target audience and content
[ ] Pricing information
[ ] 2 to 8 phone screenshots @rtilney
[ ] Up to 8 screenshots for 7" tablet display @rtilney @tinashe404
[ ] Up to 8 screenshots for 10" tablet display @rtilney @tinashe404
[ ] Marketing URL for your app (AKA landing page)

@ksanty This looks great. @nickelskevin Do we need 2 sets of screenshots for 12.9 iPads. Not sure about the technical differences between 2nd & 3rd gen...

@gefeiniangniang please add any notes as to what blockers you are experiencing and what you need from us. The team needs to track your status, so we can launch plan. TY

Thank you! This list is very helpful.

Great! Can you add links to any open issue that are blockers for us getting the app released? We are trying to track those things directly in this card.

Sounds great! I've just updated the things I'm working on.

Amazing! TY Gefei! :)


API updates

Coverage decreased (-0.02%) to 35.848% when pulling 44d5d8372ca879e7feb8e64f3a24dfa25281e701 on api_update into e89c5e2043ac5167a663b8448eee3e83428174bf on master.


Improve selected emoji textbox UI

The textbox just looks odd.
I would like to discuss this in new issue.
Originally posted by @aditya-singh9 in https://github.com/aditya-singh9/kekfinder/issues/54#issuecomment-1264621254
Since we can't place a cursor in this textbox, this needn't be a textbox in my opinion. We can explore more designs, like say, a left aligned text "Selected emojis: " followed by the selected emojis list (the text itself appears only if there are selected emojis)? In any way, I'd like to take away the black border of the textbox for sure.
Thoughts?

Iguess i can go with it.

https://github.com/Substancia/kekfinder/tree/feature/improve-selected-emoji-textbox-ui
@aditya-singh9 thoughts? It's minimalistic...

Please attach an image or a video about the end results

"Selected emojis" text appears only if there are emojis selected.

It seems cool
But what will happen if we scroll? Like will it be there or will it float like the search bar
And please do something about those copy and delete buttons
There color looks odd

Currently the selected emojis section (if visible) will float like search bar, but that's also kinda looking weird because stickiness wasn't implemented with proper styling measures (mentioned here). Once that is done, this should look better.
As for the copy and delete buttons, I have a fair idea, will send a screenshot (in this issue a or new one, whichever you prefer).

@aditya-singh9 thoughts?

Or maybe this (different delete icon)?

Seems good.

PR raised.


fix(common): Add complementary log to analyse isSentHeaders sent issue

:tada: This PR is included in version 6.73.1 :tada:
The release is available on:

v6.73.1
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 7.0.0-alpha.2 :tada:
The release is available on:

v7.0.0-alpha.2
GitHub release

Your semantic-release bot :package::rocket:


Was this project demonstrated on Nvidia GTC 2021?

Link : "Youtube"  TimePoint: 15:33

No. This model cannot do anything like what was demonstrated in the video.


Better default error for var(...)

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: EnvVar(NotPresent)'

I was looking into mapping the error and adding context (eg, "missing VAR_XYZ"), but it would be a breaking API change. Any suggestions for how to structure that change?

This is a great idea that is definitely worth implementing. I opened a discussion (#25) for this.
Maybe something like this?
// dotenvy::Error
enum Error {
    LineParse(String, usize),
    Io(Error),
    EnvVar(VarError, String),  // name is here
}

This is just a suggestion. It could be possible that the name information could be used for other variants like LineParse, I am not sure yet.

Great, thanks


chore(CPlusPlus): create reverse-array.cpp

Added reverse-array file
What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[x] New algorithm
[ ] Optimization in previous algorithms
[ ] Code style update
[ ] Refactor
[ ] Documentation
[ ] Other, please describe:

This add new file to the cpp section.

Hi @NegiAkash890,
Any updated?


On clicking Post opportunity form not comes

On clicking Hackathons and schlorships post opportunity form not comes .
Can I take this issue

@abdus @Surajbokde can i work on this?

https://user-images.githubusercontent.com/32123917/111075383-d1735e00-850d-11eb-9cff-bd7afff364cc.mp4
it works.

Closing this issue as @abdus pointed out it works.


Update several gems with the latest security patches

Changes

Update all gems to their latest security patches.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 98.263%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1358

Relevant Lines:
1382

💛  - Coveralls


Pass link component to components that need it

Some of the components need to render links to locations (USNationalMap, MetricCompareTable, RegionSearch?), but the type of link component to be used depends on the type of link that the app is using. For example, for Next applications, we want to use Link from next/link, whereas for CAN we would use Link from react-router.
One solution would be to add a prop to the components so we can pass the link component to use (and have the native a element being the default)
import Link from "next/link";
// ...

<MetricCompareTable
  regions={regionList}
  metrics={[...]}
  linkComponent={Link}
/>

Ideally, we want all the components that need a link to have a consistent interface to receive the component.

Closing in favour of


Show only one focused element in dropdowns

Currently you can select one element and then get a focus to another

Will be fixed in #1382


[SVCS-76] Track requests within OSF

Purpose
Dropbox and Github have a nice feature where they return request identifiers in their response headers. That way, when a request starts acting up you can contact their support with the ID. This enables WB to do the same thing. Now we can verify a particular request made from the browser is the same one in our logs and more easily track inter-service requests if we want.
Changes
Simply adds a uniquely generated id to the header "X-WATERBUTLER-REQUEST-ID" when the request is being prepared.
Side Effects
None that I know of.
Ticket
https://openscience.atlassian.net/browse/SVCS-76

Coverage increased (+0.008%) to 76.688% when pulling e6a59bc65bc05674034bc13a2199766215e1d811 on Johnetordoff:add-unique-headers into b787a92c180697cb8fb2f5b6c402cf7b931b339d on CenterForOpenScience:develop.

Coverage increased (+0.004%) to 89.018% when pulling cf0c9c9a11e278ff33c4380d16dd11da4025ed2b on Johnetordoff:add-unique-headers into ae9ee92c9b0b99904f5a811b2cb1bdc1d8495456 on CenterForOpenScience:develop.

Coverage increased (+0.004%) to 89.205% when pulling 48ed7b2c8cad62687bff3356dce0f7f538127144 on Johnetordoff:add-unique-headers into cc68aca3fd9dc281aa0d1037ddad95d8eb75a174 on CenterForOpenScience:develop.


Only print debug message when AS5048A_DEBUG is set

The "Setting error bit" message is currently printed to serial whether or not AS5048A_DEBUG is set.

Seems like a reasonable PR, thanks!


Fixed issue with fuzzy query in completion suggestions

Found a minor issue with fuzzy query in completion suggestion.
File : suggester_completion_fuzzy
Line : 143
Code:
if q.fuzziness != nil {
suggester["fuzziness"] = q.fuzziness
}
Suggestion:
if q.fuzziness != nil {
suggester["fuzzy"] = map[string]interface{}{"fuzziness": q.fuzziness}
}
Kindly review it and give suggestions.

Thanks for your PR. Actually, it's a bit more complicated because there is a whole structure underneath the "fuzzy" field now. I will have a look but it might take some days. It's hard to stay on top of the Elasticsearch API.

I just pushed release v2.0.4. Would you mind to double-check my changes? Thank you.
Notice that you should use the import path gopkg.in/olivere/elastic.v2 as the master branch will soon target Elasticsearch 2.0.

Re-open if something is still wrong for you.


make connection_id and source_id templetable

Fixes # (issue)
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Checklist:

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code

@RanjeetMishra didn't you forget to merge it?


fix: fixed wrong model args names

In some model config model argument name is not in list, that is why rise api instead of making one question parameter makes 8 different parameters on every letter of parameter name.

Implemented in #998


contour and contourf produce conflicing results for certain projections

Originally posted here because I wasn't convinced it was a bug (I'm new to matplotlib)... but I'm increasingly convinced it is a bug, so here we are.
I'm plotting some NCEP temperature anomaly data using the stereographic projection. When I plot the data with filled contours, contourf, I see the first picture below. Note the red (positive values) over most of North America. When I change contourf to contour, making no other changes, I see the second picture below. Note the streak of blue (negative values) over central North America.

The contour result with the blue is what is actually in the data, and therefore what I expect to see. The contourf result is not what I expect. Is this a bug, or am I using these tools improperly?
The python code is reproduced below... you can obtain the data as a small binary file here if you want to try it yourself.
Some more notes... (1) shifting the longitude range to -180 to 180 using addcyclic and shiftgrid does not help. (2) the Lambert Conformal ('lcc') projection produces results that are less wrong, but still not correct, when using contourf. (3) the Alberts Equal Area ('aea') projection centered on North America looks correct, however when I use the North Pole-centric version ('nplaea') I only see correct results for certain values of lon_0.  I am happy to provide an example if this turns out to be a different issue.
import numpy as np
import matplotlib.pyplot as plt

# read data

f = open('data5.bin', 'r')
lat = np.fromfile(f,dtype=np.float32,count=73)
lon = np.fromfile(f,dtype=np.float32,count=144)
data = np.reshape(np.fromfile(f,dtype=np.float32,count=-1),(73,144))
f.close()

# plot

m = Basemap(width=10000000,height=6000000,
        resolution='l',projection='stere',\
        lat_ts=50,lat_0=50,lon_0=253)
m.drawcoastlines()
lon2d, lat2d = np.meshgrid(lon,lat)
x, y = m(lon2d,lat2d)
mymap = plt.contourf(x,y,data,levels=np.arange(17)-8,cmap=plt.cm.bwr)
plt.colorbar(mymap,orientation='vertical',shrink=0.75)
plt.show()

What version of matplotlib are you using?

Am using version 1.5.0 of matplotlib.

In your call to contourf, try adding the kwarg corner_mask='legacy'.  This will change to a different contouring algorithm.

I added corner_mask='legacy' and see no difference in the plot, just the warning about the deprecated attribute.

Is there any chance that those negative values are very small??
maybe
z[abs(z) < 1e-2] = 0
could help?
Cheers
2015-11-23 12:43 GMT-05:00 jhcsu<EMAIL_ADDRESS>
I added corner_mask='legacy' and see no difference in the plot, just the
warning about the deprecated attribute.
—
Reply to this email directly or view it on GitHub
https://github.com/matplotlib/basemap/issues/229#issuecomment-159007842.

--
Sasha

The negative values shown in the blue contours are not particularly small.  The value at 50 degrees north, 255 degrees east (southern Saskatchewan), for example, is approximately -2.4:
print (lat[16], lon[102], data[16,102])
(50.0, 255.0, -2.4153743)

I've updated my original report to include the following... this was created using the cylindrical projection, and seems to be correct.  Note that it looks much like the contour version (but not much like the contourf version).

On 2015/11/23 8:29 AM, jhcsu wrote:

I've updated my original report to include the following... this was
created using the cylindrical projection, and seems to be correct. Note
that it looks much like the contour version (but not much like the
contourf version).

Try one more thing (another shot in the dark): use floating point for
your levels.

Try one more thing (another shot in the dark): use floating point for your levels.

I changed the code to levels=np.arange(17)-8., forcing conversion to floating point, and no difference.  I can appreciate shots in the dark, though!

This is odd.  If I subset longitude starting at lon[30]=75.0 (which isn't even on the map!), it works.  If I subset longitude at lon[29]=72.5 (or don't subset at all, as in my initial example), it doesn't.  What is special about 75 degrees longitude?
Let's demo by making a slight change just to this segment of the code.  The following works:
lon2d, lat2d = np.meshgrid(lon[30:],lat)
x, y = m(lon2d,lat2d)
mymap = plt.contourf(x,y,data[:,30:],levels=np.arange(17)-8,cmap=plt.cm.bwr)

The following does not (and looks exactly like my initial example):
lon2d, lat2d = np.meshgrid(lon[29:],lat)
x, y = m(lon2d,lat2d)
mymap = plt.contourf(x,y,data[:,29:],levels=np.arange(17)-8,cmap=plt.cm.bwr)

Do the collection objects created by the contourf calls have enough layers (and the rendering is failing) or is contourf is failing to create the correct collections?

Do the collection objects created by the contourf calls have enough layers (and the rendering is failing) or is contourf is failing to create the correct collections?

Although I can't answer that question... I will clarify that no error is produced.  If I didn't already have some expectation of what the output looked like, I would have incorrectly assumed it was correct.


Updating some minor UX guidelines

Hey @esethna have a look and see if these make sense.
https://mattermost.atlassian.net/browse/PLT-3823
https://mattermost.atlassian.net/browse/PLT-3590

+1

+1


OIDC Login Logs: Error: undefined. Please make sure to give write permissions to id-token in the workflow. When run on Dedicated Runners

We have workflows that run on the github dedicated runners. When running on those runners we get the following log:
Error: undefined. Please make sure to give write permissions to id-token in the workflow.
The workflow still continues with the rest of the actions, so it doesn't seem like it's a fatal error. We've noticed that if we just use the ubuntu-latest runners, we don't get an error.

Hi @dptaf ，
Did you put the below part before your job in the workflow file?
permissions:
      id-token: write
      contents: read

hi @YanaXu -- yes we have the permissions block in there. and to note, this only shows when running on the github large runners. if we use a regular ubuntu agent, we don't see the error. and to re-iterate this doesn't seem to block our deployments to azure, just produces that error log

Hi @dptaf , I suspect the GitHub large runners env you're using blocks the message from your runner to GitHub Service. Could you run below workflow file and provide me the run log? Please note, runs-on: ubuntu-latest may need to be updated to the right value.
name: Test getIDToken
on: [push, workflow_dispatch]

permissions:
  id-token: write
  contents: read

jobs:
  test-getIDToken:
    runs-on: ubuntu-latest
    steps:

    - name: GetToken
      continue-on-error: true
      uses: actions/github-script@v3
      with:
        script: |
          const idToken = await core.getIDToken('api://AzureADTokenExchange');
          idToken == null ? console.log("idToken is null or undefined") : console.log("idToken is fine");
          let tokenPayload = idToken.split('.')[1];
          tokenPayload == null ? console.log("tokenPayload is null or undefined") : console.log("tokenPayload is fine");
          let bufferObj = Buffer.from(tokenPayload, "base64");
          bufferObj == null ? console.log("bufferObj is null or undefined") : console.log("bufferObj is fine");
          let decodedPayload = JSON.parse(bufferObj.toString("utf8"));
          decodedPayload == null ? console.log("decodedPayload is null or undefined") : console.log("decodedPayload is fine")
          let iss = decodedPayload['iss'];
          iss == null ? console.log("iss is null or undefined") : console.log("iss is fine")
          let sub = decodedPayload['sub'];
          sub == null ? console.log("sub is null or undefined") : console.log("sub is fine")

hi @YanaXu -- see below
2023-11-27T13:51:55.7363498Z Requested runner group: iac-larger-static-ip-runners
2023-11-27T13:51:55.7363681Z Job defined at: turnaroundfactor/adapt_pspdf_manager/.github/workflows/oidc-logging.yml@refs/heads/develop
2023-11-27T13:51:55.7363805Z Waiting for a runner to pick up this job...
2023-11-27T13:52:02.3498586Z Job is waiting for a runner from 'iac-runner-01' to come online.
2023-11-27T13:52:06.5049830Z Job is about to start running on the runner: iac-runner-01_74e947d04818 (organization)
2023-11-27T13:52:10.5085005Z Current runner version: '2.311.0'
2023-11-27T13:52:10.5092081Z Runner name: 'iac-runner-01_74e947d04818'
2023-11-27T13:52:10.5093269Z Runner group name: 'iac-larger-static-ip-runners'
2023-11-27T13:52:10.5094220Z Machine name: 'runner'
2023-11-27T13:52:10.5110513Z ##[group]Operating System
2023-11-27T13:52:10.5111074Z Ubuntu
2023-11-27T13:52:10.5111413Z 22.04.3
2023-11-27T13:52:10.5111843Z LTS
2023-11-27T13:52:10.5112168Z ##[endgroup]
2023-11-27T13:52:10.5112543Z ##[group]Runner Image
2023-11-27T13:52:10.5113059Z Image: ubuntu-22.04
2023-11-27T13:52:10.5113418Z Version: 20231115.7.0
2023-11-27T13:52:10.5114418Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20231115.7/images/ubuntu/Ubuntu2204-Readme.md
2023-11-27T13:52:10.5115948Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20231115.7
2023-11-27T13:52:10.5116770Z ##[endgroup]
2023-11-27T13:52:10.5117680Z ##[group]GITHUB_TOKEN Permissions
2023-11-27T13:52:10.5119355Z Contents: read
2023-11-27T13:52:10.5119951Z Metadata: read
2023-11-27T13:52:10.5120339Z ##[endgroup]
2023-11-27T13:52:10.5123430Z Secret source: Actions
2023-11-27T13:52:10.5124132Z Prepare workflow directory
2023-11-27T13:52:10.5744079Z Prepare all required actions
2023-11-27T13:52:10.5900793Z Getting action download info
2023-11-27T13:52:10.9044539Z Download action repository 'actions/github-script@v3' (SHA:ffc2c79a5b2490bd33e0a41c1de74b877714d736)
2023-11-27T13:52:11.3356728Z Complete job name: test-getIDToken
2023-11-27T13:52:11.4302097Z ##[group]Run actions/github-script@v3
2023-11-27T13:52:11.4302895Z with:
2023-11-27T13:52:11.4308452Z   script: const idToken = await core.getIDToken('api://AzureADTokenExchange');
idToken == null ? console.log("idToken is null or undefined") : console.log("idToken is fine");
let tokenPayload = idToken.split('.')[1];
tokenPayload == null ? console.log("tokenPayload is null or undefined") : console.log("tokenPayload is fine");
let bufferObj = Buffer.from(tokenPayload, "base64");
bufferObj == null ? console.log("bufferObj is null or undefined") : console.log("bufferObj is fine");
let decodedPayload = JSON.parse(bufferObj.toString("utf8"));
decodedPayload == null ? console.log("decodedPayload is null or undefined") : console.log("decodedPayload is fine")
let iss = decodedPayload['iss'];
iss == null ? console.log("iss is null or undefined") : console.log("iss is fine")
let sub = decodedPayload['sub'];
sub == null ? console.log("sub is null or undefined") : console.log("sub is fine")
2023-11-27T13:52:11.4314734Z   github-token: ***
2023-11-27T13:52:11.4315133Z   debug: false
2023-11-27T13:52:11.4315543Z   user-agent: actions/github-script
2023-11-27T13:52:11.4316161Z   result-encoding: json
2023-11-27T13:52:11.4316573Z ##[endgroup]
2023-11-27T13:52:11.8318891Z idToken is fine
2023-11-27T13:52:11.8319454Z tokenPayload is fine
2023-11-27T13:52:11.8319980Z bufferObj is fine
2023-11-27T13:52:11.8320397Z decodedPayload is fine
2023-11-27T13:52:11.8320848Z iss is fine
2023-11-27T13:52:11.8321217Z sub is fine
2023-11-27T13:52:11.8633796Z Cleaning up orphan processes

Hi @dptaf , I think your workflow file ran into the error at this line.
But this is removed in v1.5.0.
If you do not use allow-no-subscriptions, could you please try v1.5.0?

That works - thanks!
On Mon, Nov 27, 2023 at 9:06 PM Yan Xu @.***> wrote:

Hi @dptaf https://github.com/dptaf , I think your workflow file ran
into the error at this line
https://github.com/Azure/login/blob/92a5484dfaf04ca78a94597f4f19fea633851fa2/src/main.ts#L118C21-L119C21
.
But this is removed in v1.5.0.
If you do not use allow-no-subscriptions, could you please try v1.5.0?
—
Reply to this email directly, view it on GitHub
https://github.com/Azure/login/issues/369#issuecomment-1828945341, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AY4L4HTV7SA3L544LV3RZPTYGVBLTAVCNFSM6AAAAAA7KBYQYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRYHE2DKMZUGE
.
You are receiving this because you were mentioned.Message ID:
@.***>


'pdftotext' does not appear to be installed

We are getting an issue with pdftotext.
installed the package here  in /usr/local/bin .
It is working in local machine. when we tried in the server, we got this issue
extractor for type exists, but failed to initialize. Message: INFO: 'pdftotext' does not appear to be installed, so textract will be unable to extract PDFs.
Did we missed any packages or steps? Please help us to solve this issue.
OS: ubuntu

Try to install poppler-utils:
sudo apt install poppler-utils

It worked on CentOS 5, btw, but I spent a lot of time trying to find some rpm package.
Adding it to the README would have saved me a lot of time.


azcopy --recursive copy from source Linux server to File share doesn't work

Which version of the AzCopy was used?
Note: The version is visible when running AzCopy without any argument
10.2.1
Which platform are you using? (ex: Windows, Mac, Linux)
Linux
What command did you run?
./azcopy copy --recursive ../ARD-all-nebraska-2002-2019/ <SAS string copied from Azure File Storage>

Note: Please remove the SAS to avoid exposing your credentials. If you cannot remember the exact command, please retrieve it from the beginning of the log file.
What problem was encountered?
Log file is located at: /home/rave/.azcopy/6917c0c9-b2ea-e84b-51ec-ca9ae3f13f52.log

0 Done, 880 Failed, 424 Pending, 0 Skipped, 1304 Total,

Job 6917c0c9-b2ea-e84b-51ec-ca9ae3f13f52 summary
Elapsed Time (Minutes): 0.0667
Total Number Of Transfers: 1304
Number of Transfers Completed: 0
Number of Transfers Failed: 1304
Number of Transfers Skipped: 0
TotalBytesTransferred: 0
Final Job Status: Failed

The log file is long and its hard to parse where the relevant error message is, but here is a section of it. I don't think the error is correct because the Resource should be found since I copied the SAS string from file explorer.
2019/10/01 19:55:47 ERR: [P#0-T#1289] error deleting the (incomplete) file https://cropmaskperm.file.core.windows.net/azureml-filestore-896933ab-f4fd-42b2-a154-0abb35dfb0b0/unpacked_ard_landsat_downloads/ARD-all-nebraska-2002-2019/LT05_CU_015009_20020822_20190111_C01_V01_SR.tar?<SAS removed>. Failed with error -> github.com/Azure/azure-storage-file-go/azfile.newStorageError, /home/vsts/go/pkg/mod/github.com/!azure/azure-storage-file-go@v0.5.0/azfile/zc_storage_error.go:42
===== RESPONSE ERROR (ServiceCode=ResourceNotFound) =====
Description=The specified resource does not exist.
RequestId:1008d3f3-101a-00a3-5d92-789dc8000000
Time:2019-10-01T19:55:47.1641420Z, Details:
   Code: ResourceNotFound
   DELETE https://cropmaskperm.file.core.windows.net/azureml-filestore-896933ab-f4fd-42b2-a154-0abb35dfb0b0/unpacked_ard_landsat_downloads/ARD-all-nebraska-2002-2019/LT05_CU_015009_20020822_20190111_C01_V01_SR.tar?<SAS removed>
   User-Agent: [AzCopy/10.2.1 Azure-Storage/0.5.0 (go1.12; linux)]
   X-Ms-Client-Request-Id: [d8a6a496-7d54-4229-683b-a36ac9cd5dbe]
   X-Ms-Version: [2018-03-28]
   --------------------------------------------------------------------------------
   RESPONSE Status: 404 The specified resource does not exist.
   Content-Length: [223]
   Content-Type: [application/xml]
   Date: [Tue, 01 Oct 2019 19:55:46 GMT]
   Server: [Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0]
   X-Ms-Error-Code: [ResourceNotFound]
   X-Ms-Request-Id: [1008d3f3-101a-00a3-5d92-789dc8000000]
   X-Ms-Version: [2018-03-28]

How can we reproduce the problem in the simplest way?
Not sure because it is so simple, so something might be different about either my source or destination. But you can try
Downloading azcopy, then
./azcopy login --tenant-id <tenant id from azure portal>
# get SAS url from file explorer
./azcopy copy --recursive ../ARD-all-nebraska-2002-2019/ <SAS string copied from Azure File Storage> # fails

Have you found a mitigation/solution?
No

Hi there, @rbavery. ResourceNotFound is a common way that Azure Files dismisses an authentication failure in a secure way. Please ensure that your SAS token has adequate permissions to access the container. I can't see any parameters of your SAS token, so I'm unaware of what permissions the token may have, etc.

I checked all the permissions boxes when creating the SAS token, including READ, WRITE, DELETE, etc. Could it be something else? I will tray again.

OK. Do you see any UPLOADFAILED markers within your log? That will contain the cause of the failure, typically.

Yes for everything I trie dto upload there is this line
120670:2019/10/01 20:01:44 ERR: [P#0-T#1298] UPLOADFAILED: ../ARD-all-nebraska-2002-2019/LT05_CU_012009_20020818_20190111_C01_V01_ST.tar : 404 : 404 The specified resource does not exist.. When Creating parent directory. X-Ms-Request-Id: a68c08ea-801a-006a-1393-782025000000
But this path does exist.
(geo) [rave@forge azcopy_linux_amd64_10.2.1]$ ls
azcopy  ThirdPartyNotice.txt
(geo) [rave@forge azcopy_linux_amd64_10.2.1]$ pwd
/home/rave/forge_scratch/azcopy_linux_amd64_10.2.1
(geo) [rave@forge azcopy_linux_amd64_10.2.1]$ ls ..
ARD                         dowload_urls.csv      unpacked_ARD
ARD-all-nebraska-2002-2019  espa-bulk-downloader
azcopy_linux_amd64_10.2.1   fakedir
(geo) [rave@forge azcopy_linux_amd64_10.2.1]$

According to the azure files documentation
The following file names are not allowed: LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, PRN, AUX, NUL, CON, CLOCK$, dot character (.), and two dot characters (..).
I would suspect this applies to folders as well. In the upcoming version of AzCopy, the use of relative paths in this fashion should be resolved. Please try uploading from an immediate path to the directory, rather than using the shortcut ..

That's all true but isn't the source of the error I think. I'm still getting errors when using absolute paths, and when I don't use symbolic links
(geo) [rave@forge azcopy_linux_amd64_10.2.1]$ ./azcopy copy --recursive /scratch/rave/ARD-all-nebraska-2002-2019/ https://cropmaskperm.file.core.windows.net/azureml-filestore-896933ab-f4fd-42b2-a154-0abb35dfb0b0/unpacked_ard_landsat_downloads/?<SAS removed>

from the new log file, the error is the same and says it doesn't exist. But it does exist, since I can list it
121237:2019/10/01 20:49:54 ERR: [P#0-T#1183] UPLOADFAILED: /scratch/rave/ARD-all-nebraska-2002-2019/LT05_CU_015007_20020806_20190517_C01_V01.jpg : 404 : 404 The specified resource does not exist.. When Creating parent directory. X-Ms-Request-Id: bc890d36-b01a-0061-4b99-78db4e000000
(geo) [rave@forge azcopy_linux_amd64_10.2.1]$ ls /scratch/rave/ARD-all-nebraska-2002-2019/LT05_CU_015007_20020806_20190517_C01_V01.jpg
/scratch/rave/ARD-all-nebraska-2002-2019/LT05_CU_015007_20020806_20190517_C01_V01.jpg

btw thanks for the quick response on these issues, I really appreciate it!

Strange that it's still registering as not found. These errors wouldn't be local-- they're registering a service code; as a result, they're a service side kind of "not found".
It's possible that the share might not exist at all. Could you refresh storage explorer and take a look?

Furthermore, there may be distinct permissions for creating folders on Azure File Shares.

A third thought is that you may need to provide your SAS token list permissions as well.
Here's some of the code where we create parent directories:
	if _, err := dirURL.GetProperties(ctx); err != nil {
		if err.(azfile.StorageError) != nil && (err.(azfile.StorageError)).Response() != nil &&
			(err.(azfile.StorageError).Response().StatusCode == http.StatusNotFound) { // At least need read and write permisson for destination

There's a permission called create on SAS tokens. Does this help out?

It definitely exists, I've refreshed storage explorer and confirmed this.
Not sure what your last comments get at, should I create a new folder rather than try to copy to an existing folder? I'll try that and check that folder's permissions when I create it.

I don't see the permission "Create on SAS tokens" in Storage Explorer, only Create, Delete, Read, Write, and List.
I tried something slightly different after looking at the azcopy definition more closely, still doesn't work but now an error prints to the console
Authentication failed, it is either not correct, or expired, or does not have the correct permission -> github.com/Azure/azure-storage-file-go/azfile.newStorageError, /home/vsts/go/pkg/mod/github.com/!azure/azure-storage-file-go@v0.5.0/azfile/zc_storage_error.go:42
===== RESPONSE ERROR (ServiceCode=AuthenticationFailed) =====
Description=Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
RequestId:e05f9870-601a-0062-08a7-783a2a000000
Time:2019-10-01T22:29:28.1840991Z, Details:
   AuthenticationErrorDetail: The specified signed resource is not allowed for the this resource level
   Code: AuthenticationFailed
   GET https://cropmaskperm.file.core.windows.net/azureml-filestore-896933ab-f4fd-42b2-a154-0abb35dfb0b0/ard-partial/ARD-all-nebraska-2002-2019?<SAS removed>
   User-Agent: [AzCopy/10.2.1 Azure-Storage/0.5.0 (go1.12; linux)]
   X-Ms-Client-Request-Id: [3fd8a7a0-140d-4726-78dc-6431f42142ec]
   X-Ms-Version: [2018-03-28]
   --------------------------------------------------------------------------------
   RESPONSE Status: 403 Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
   Content-Length: [447]
   Content-Type: [application/xml]
   Date: [Tue, 01 Oct 2019 22:29:27 GMT]
   Server: [Microsoft-HTTPAPI/2.0]
   X-Ms-Error-Code: [AuthenticationFailed]
   X-Ms-Request-Id: [e05f9870-601a-0062-08a7-783a2a000000]

(geo) [rave@forge azcopy_linux_amd64_10.2.1]$ /scratch/rave/azcopy_linux_amd64_10.2.1/azcopy copy --recursive=True "/scratch/rave/ARD-all-nebraska-2002-2019/" "https://cropmaskperm.file.core.windows.net/azureml-filestore-896933ab-f4fd-42b2-a154-0abb35dfb0b0/ard-partial<SAS removed>"

I don't know why my authentication isn't working, I've logged in recently with azcopy with my only tenant id and I just generated that SAS string.

I think Adele meant, did your SAS token, which you were using, include Create permissions (and it wouldn't hurt to test with a token that has read permission, to make sure it can read when it checks for parent directory existence - it's supposed to cope if the check fails, but no harm in testing with the token that has Read).

Yes, I always check all the boxes when creating the SAS token. Not sure how to test with a token that has read permissions differently than how I am currently doing.

I've also tried creating a new file share and a new blob store to copy the same directory and I've tried this on my Ubuntu laptop and a fedora server, neither are working and I'm still getting the authentication issue. This is the traceback for trying to copy to a blob, which it doesn't look like you can generate a SAS for.
→ azcopy copy --recursive=True "/home/rave/ARD-partial/" https://cropmaskperm.blob.core.windows.net/azcopy/ARD-partial/
INFO: Scanning...
INFO: Using OAuth token for authentication.

Job 226f3376-c04f-7544-6f8e-5ef584c61801 has started
Log file is located at: /home/rave/.azcopy/226f3376-c04f-7544-6f8e-5ef584c61801.log

0 Done, 0 Failed, 1304 Pending, 0 Skipped, 1304 Total, 2-sec Throughput (Mb/s): 14.7794
Authentication failed, it is either not correct, or expired, or does not have the correct permission -> github.com/Azure/azure-storage-blob-go/azblob.newStorageError, /home/vsts/go/pkg/mod/github.com/!azure/azure-storage-blob-go@v0.7.0/azblob/zc_storage_error.go:42
===== RESPONSE ERROR (ServiceCode=AuthorizationPermissionMismatch) =====
Description=This request is not authorized to perform this operation using this permission.
RequestId:d52547ac-101e-009c-06ac-78556b000000
Time:2019-10-01T23:03:00.4896551Z, Details:
   Code: AuthorizationPermissionMismatch
   PUT https://cropmaskperm.blob.core.windows.net/azcopy/ARD-partial/ARD-partial/LT05_CU_014008_20020921_20190517_C01_V01_BT.tar?timeout=901
   Authorization: REDACTED
   Content-Length: [808960]
   User-Agent: [AzCopy/10.2.1 Azure-Storage/0.7 (go1.12; linux)]
   X-Ms-Blob-Cache-Control: []
   X-Ms-Blob-Content-Disposition: []
   X-Ms-Blob-Content-Encoding: []
   X-Ms-Blob-Content-Language: []
   X-Ms-Blob-Content-Md5: []
   X-Ms-Blob-Content-Type: [application/x-tar]
   X-Ms-Blob-Type: [BlockBlob]
   X-Ms-Client-Request-Id: [a76ebcbb-9b6f-4007-7c2a-cbf75d81e8d7]
   X-Ms-Version: [2018-03-28]
   --------------------------------------------------------------------------------
   RESPONSE Status: 403 This request is not authorized to perform this operation using this permission.
   Content-Length: [279]
   Content-Type: [application/xml]
   Date: [Tue, 01 Oct 2019 23:03:00 GMT]
   Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
   X-Ms-Error-Code: [AuthorizationPermissionMismatch]
   X-Ms-Request-Id: [d52547ac-101e-009c-06ac-78556b000000]
   X-Ms-Version: [2018-03-28]

Thanks for the detailed info Ryan. We (probably Adele) will look into it some more.  Probably won't be today though, I'm sorry.

adoladeg-microsoft ignore bogus assignment of issue to you, I just clicked your name instead of Adeles!

@adreed-msft any updates?

I saw the restest label, I've retested and I still get the same error
(base) [rave@forge rave]$ /scratch/rave/azcopy_linux_amd64_10.2.1/azcopy copy --recursive /scratch/rave/ARD-all-nebraska-2002-2019/ https://cropmaskperm.file.core.windows.net/azureml-filestore-896933ab-f4fd-42b2-a154-0abb35dfb0b0/ard-partial?<SAS removed>
[1] 16939
[2] 16940
[3] 16941
[4] 16942
[5] 16943
[2]   Done                    se=2019-10-02T22%3A11%3A16Z
[3]   Done                    sp=rcwdl
[4]-  Done                    sv=2018-03-28
[5]+  Done                    sr=f
(base) [rave@forge rave]$ INFO: Scanning...

Job d9139a2e-15f8-5d46-5ae0-65791565cc5a has started
Log file is located at: /home/rave/.azcopy/d9139a2e-15f8-5d46-5ae0-65791565cc5a.log

0 Done, 1305 Failed, 0 Pending, 0 Skipped, 1305 Total,

Job d9139a2e-15f8-5d46-5ae0-65791565cc5a summary
Elapsed Time (Minutes): 0.1
Total Number Of Transfers: 1305
Number of Transfers Completed: 0
Number of Transfers Failed: 1305
Number of Transfers Skipped: 0
TotalBytesTransferred: 0
Final Job Status: Failed

log file shows UPLOADFAILED errors
2019/10/03 18:45:24 ERR: [P#0-T#1302] UPLOADFAILED: /scratch/rave/ARD-all-nebraska-2002-2019/LT05_CU_016008_20020831_20190111_C01_V01.jpg : 404 : 404 The specified resource does not exist.. When Creating parent directory. X-Ms-Request-Id: 6aad9af0-c01a-007b-331a-7aba91000000
2019/10/03 18:45:24 ERR: [P#0-T#1300] UPLOADFAILED: /scratch/rave/ARD-all-nebraska-2002-2019/LT05_CU_013007_20020930_20190111_C01_V01_ST.tar : 404 : 404 The specified resource does not exist.. When Creating parent directory. X-Ms-Request-Id: bd12b2b1-f01a-002d-571a-7a4b7e000000
2019/10/03 18:45:24 ERR: [P#0-T#1301] UPLOADFAILED: /scratch/rave/ARD-all-nebraska-2002-2019/LT05_CU_012009_20020804_20190111_C01_V01_ST.tar : 404 : 404 The specified resource does not exist.. When Creating parent directory. X-Ms-Request-Id: 05fae7e6-601a-0062-691a-7a3a2a000000
2019/10/03 18:45:24 ERR: [P#0-T#1297] UPLOADFAILED: /scratch/rave/ARD-all-nebraska-2002-2019/LT05_CU_013009_20020905_20190517_C01_V01_ST.tar : 404 : 404 The specified resource does not exist.. When Creating parent directory. X-Ms-Request-Id: 5a86a2e5-101a-000a-781a-7a5cba000000
2019/10/03 18:45:24 ERR: [P#0-T#1298] UPLOADFAILED: /scratch/rave/ARD-all-nebraska-2002-2019/LT05_CU_012009_20020804_20190111_C01_V01_BT.tar : 404 : 404 The specified resource does not exist.. When Creating parent directory. X-Ms-Request-Id: 68046a01-401a-00dc-2f1a-7a5253000000
2019/10/03 18:45:24 ERR: [P#0-T#1303] UPLOADFAILED: /scratch/rave/ARD-all-nebraska-2002-2019/LT05_CU_017009_20020826_20190517_C01_V01_ST.tar : 404 : 404 The specified resource does not exist.. When Creating parent directory. X-Ms-Request-Id: 0d8e0cca-d01a-0015-731a-7aefbe000000

Thanks for the detailed info.  It might come in handy.
BTW, I had poorly worded that label. It actually was supposed to mean "Needs retest by the AzCopy developer team, to reproduce the issue".  I have reworded it to make that clearer. Nevertheless, in this instance, the upload errors you posted may be informative.

Any update on this?

Sorry, @rbavery , we've been caught up in getting release 10.3 out the door.  @adreed-msft Is this issue something you'd have time to look at in the next 24 hours?

[5]+  Done                    sr=f
BINGO!

You've got a signed resource for a file. This should be sr=s for share-level permissions. You can't create folders with a SAS for a specific file.

Thanks Adele.  I'll close this now.  @rbavery, please reply if you need it re-opened.

@adreed-msft I'm not sure what this means sorry, but came back to let you know that 10.3.1 seems to work for me when syncing a different folder to a new fileshare that doesn't have any folders in it. Was the problem that I was creating an empty folder and then a SAS for that empty folder (which was treated like a file?)


ONLY_CBLAS=1 needs -lgfortran

Hi!
I checked out the current code today, did
make TARGET=SANDYBRIDGE, ONLY_CBLAS=1

 OpenBLAS build complete. (CBLAS)

  OS               ... Linux
  Architecture     ... x86_64
  BINARY           ... 64bit
  C compiler       ... GCC  (command line : gcc)
  Library Name     ... libopenblas_sandybridgep-r0.2.16.dev.a (Multi threaded; Max num-threads is 48)

make PREFIX=/my/prefix

and compile fails with
/bin/ld: cannot find -lgfortran

which is correct because I do not want to install fortran. I expected the ONLY_CBLAS=1 option to be fortran-free?
Never mind, I installed another gcc which solved the problem for me.

May have also been solved by this PR ( https://github.com/xianyi/OpenBLAS/pull/677 ).


fixes the commandline parameter from --no-explain to --noexplain

https://github.com/darold/pgbadger/commit/ec85319e119bce8e86c885debb2f863aaa9c57e3 introduced  a new command line option --noexplain but in the source the option is actually spelled like --no-explain

Good catch, thanks!


no longer compiles

[Enter feedback here]
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

-- CS1929 IWebHostEnvironment does not contain a definition for IsDevelopment
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 583ae3e7-5915-f22b-e54c-6c100cf2a7da
Version Independent ID: 95f2549e-29f9-e31a-b4d0-432b971643ff
Content: Tutorial: Create a web API with ASP.NET Core
Content Source: aspnetcore/tutorials/first-web-api.md
Product: aspnet-core
Technology: aspnetcore-tutorials
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

Try compiling
dotnet new webapi

apologies for abbreviated/mis-titled report, but compiling wasn't the point.  the point was that particular code snippet from previous iteration of .net is no longer valid code, and it's all over the docs: you find it everywhere there's Startup.cs.

It's in the 3.1 versions as that code is correct. See the 5.0 version
https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?view=aspnetcore-5.0&tabs=visual-studio

You're missing
using Microsoft.Extensions.Hosting;

OK so the disconnect is basically that anyone starting w/ the current version of the IDE is getting the "5.0 preview" version of the framework, but all documentation resources default to 3.x version.

PS.

all documentation links default to 3.1 because they lack ?view=aspnetcore-5.0 and
https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.hosting.startupbase.configure?view=aspnetcore-5.0 still refers to Microsoft.AspNetCore.Hosting, not Microsoft.Extension.Hosting

The template generated code works.

Yeah, you're probably right, I have to try that sometime. I get to play with existing code; evidently that was generated using an older version of the template. ;)


⚠ Processors has degraded performance

In 4cb898a, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 75 ms

Resolved: Processors performance has improved in 61d8efa.


Tooltip text is not correctly populated for page header detail blocks

This issue can be replicated using the code for the page header on the lightning design system for react pages.
The issue is replicated by the first PageHeader in the list, whereby the tooltip on the first item displays with the text "Tooltip" rather than as anything useful.
It looks like the intention is that this tooltip should display the full text of the truncated content, so in the example code 'Description that demonstrates truncation with content. Description that demonstrates truncation with content.'
It doesn't do this, because of a bug with the detail-block component's implementation of the tooltip. The content props from the details block is passed into the Tooltip component on line 88 of detail-block.jsx as the props "title", however looking at the implementation of the tooltip component the props title is never used, instead the content should be passed in as the props content, so line 88 would become <Tooltip align="top" content={content} triggerStyle={{ display: 'inline' }}>.
The workaround to avoid this is to simply wrap the strings that are being passed into the detail blocks in another .jsx element (e.g. a div), which prevents the detail block form working out whether it's content is being truncated as it can no longer simply work out its length, and hence stops the tooltip being displayed at all.
I'm not actively working on this issue, although it should be a fairly quick fix as described above.
A cut down version of the code to replicate this issue is as follows:
import React from 'react';

import PageHeader from '@salesforce/design-system-react/components/page-header';

class Example extends React.Component {
	static displayName = 'RecordHomePageHeaderExample';

	render() {
		const details = [
			{
				label: 'Field 1',
				content:
					'Description that demonstrates truncation with content. Description that demonstrates truncation with content.',
				truncate: true,
			},
		];

		return (
			<PageHeader
					details={details}
					variant="record-home"
				/>
		);
	}
}

ReactDOM.render(<Example />, mountNode);

Are you working on this issue? Else I would like to work on this one.


More logging WIP

Codecov Report

Merging #9042 (5551907) into main (fd7a001) will decrease coverage by 0%.
The diff coverage is 91%.

@@          Coverage Diff          @@
##            main   #9042   +/-   ##
=====================================
- Coverage     70%     70%   -1%
=====================================
  Files        382     382
  Lines      24684   24701   +17
  Branches    4002    4004    +2
=====================================
+ Hits       17425   17433    +8
- Misses      5661    5691   +30
+ Partials    1598    1577   -21

Impacted Files
Coverage Δ

...lient/datascience/kernel-launcher/kernelProcess.ts
67% <87%> (+3%)
:arrow_up:

src/client/datascience/raw-kernel/rawSocket.ts
85% <100%> (+1%)
:arrow_up:

...ook/intellisense/pythonKernelCompletionProvider.ts
54% <0%> (-24%)
:arrow_down:

...tascience/jupyter/kernels/kernelCommandListener.ts
70% <0%> (-4%)
:arrow_down:

src/client/datascience/jupyter/jupyterWebSocket.ts
53% <0%> (-4%)
:arrow_down:

...ence/notebook/intellisense/intellisenseProvider.ts
78% <0%> (-3%)
:arrow_down:

...lient/datascience/variablesView/notebookWatcher.ts
90% <0%> (-3%)
:arrow_down:

src/client/common/utils/misc.ts
65% <0%> (-3%)
:arrow_down:

src/client/common/process/baseDaemon.ts
44% <0%> (-2%)
:arrow_down:

...lient/datascience/jupyter/kernels/cellExecution.ts
74% <0%> (ø)

... and 11 more


ci: speedup free disk space job

Summary

Refer to https://github.com/jlumbroso/free-disk-space/pull/26 for more
Checklist

[x] Tests updated (or not required).
[x] Documentation updated (or not required).

Nice 👍🏻 Can you see how much faster Rspack's CI will be?

Nice 👍🏻 Can you see how much faster Rspack's CI will be?

We expect a reduction of ~1min regardless of the repo.
The actual execution time varies based on the availability of CPU and IO resources.

The Test Linux / Test Node 18 CI failed, but I think it is unrelated to this change...

The Test Linux / Test Node 18 CI failed, but I think it is unrelated to this change...

Awaiting https://github.com/web-infra-dev/rspack/pull/7240 to be approved or suggested a better solution.


The jstree package is vulnerable to Cross-Site Scripting (XSS)

We are using SonaType for scanning binaries that we use.
The jstree package is vulnerable to Cross-Site Scripting (XSS). The get_node() function in jstree.js passes the user input to JQuery in an unsafe manner. A remote attacker can exploit this vulnerability to execute arbitrary JavaScript in a victim's browser context.
fd63728762c93892f506e158be58a0d98034ccff.zipKarmabunny-sprout3-fd63728/src/media/js/jstree.min.js( , 3.3.6)
The application is vulnerable by using this component.
we are using vakata-jstree-3.3.16
Is there a version of this component that is not vulnerable to this specific issue?
Thanks
Kind regards
Idris

get_node is an internal function. I struggle to see how you could pass user input to it - maybe it is application dependent? Please share a demo of the XSS so that I can provide a fix.
Also sorry for the long delay in getting back to you.
I will reopen this when there is a way to reproduce the issue.


V1.4 First update

Changes

Fix bugs and update documentation

Related Issues/ PRs

Fixes #200
Fixes #206
Fixes #180
Fixes #181
Fixes #188
FIxes #191
Fixes #192
Fixes #193
Fixes #198
Fixes #194
Fixes #195
Fixes #208
Fixes #185
Fixes #215
Fixes #216
Fixes #217
Fixes #227
Fixes #230
Fixes #214
Fixes #213
Fixes #210
Fixes #207
Fixes #179
Fixes #204
Fixes #201
Fixes #225
Fixes #231
Fixes #234
Fixes #235
Fixes #202
Fixes #205
Fixes #203
Fixes #177
Fixes #182
Fixes #183
Fixes #184
Fixes #189
Fixes #186
Fixes #187

Codecov Report

Merging #233 (3780e9c) into master (d876af0) will increase coverage by 4.89%.
The diff coverage is 54.60%.

@@             Coverage Diff              @@
##             master     #233      +/-   ##
============================================
+ Coverage     58.50%   63.40%   +4.89%
- Complexity      635      712      +77
============================================
  Files           128      131       +3
  Lines          2492     2577      +85
  Branches        248      257       +9
============================================
+ Hits           1458     1634     +176
+ Misses          926      829      -97
- Partials        108      114       +6

Impacted Files
Coverage Δ

src/main/java/seedu/ibook/MainApp.java
0.00% <0.00%> (ø)

...ain/java/seedu/ibook/commons/core/GuiSettings.java
69.23% <ø> (ø)

...eedu/ibook/logic/commands/product/FindCommand.java
80.95% <ø> (ø)

...du/ibook/logic/commands/product/RemindCommand.java
0.00% <0.00%> (ø)

...u/ibook/model/actions/ReversibleSetItemAction.java
33.33% <0.00%> (-4.17%)
:arrow_down:

...c/main/java/seedu/ibook/model/item/ExpiryDate.java
82.92% <0.00%> (ø)

...in/java/seedu/ibook/model/item/ItemDescriptor.java
53.57% <0.00%> (-4.13%)
:arrow_down:

...in/java/seedu/ibook/model/product/Description.java
81.81% <ø> (ø)

.../java/seedu/ibook/model/product/DiscountStart.java
60.00% <ø> (+6.66%)
:arrow_up:

...du/ibook/model/product/filters/CategoryFilter.java
50.00% <ø> (ø)

... and 57 more

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


Fixed missing timestamps on point redemption messages

Pull request checklist:

[x] CHANGELOG.md was updated, if applicable

Resolves #1943

Looks good to me 👍 Thank you for your contribution!


Android Client started throwing "ca.uhn.fhir.parser.DataFormatException" after upgrading to 1.6

It was all working fine till i was using version 1.5. Yesterday upgraded the dependency to 1.6 and started getting the ca.uhn.fhir.parser.DataFormatException for all resources that has a date field.
Dependency added as follows:
compile(group: 'ca.uhn.hapi.fhir', name: 'hapi-fhir-android', version: '1.6', classifier: 'dstu2') {
        exclude module: 'javax.servlet-api'
        exclude module: 'hapi-fhir-base'
    }

Exception stackTrace
08-11 14:28:41.186 28961-28961/com.myapp.playground W/System.err: Caused by: ca.uhn.fhir.parser.DataFormatException: Invalid date/time format: "2012-09-17T24:12:00"
08-11 14:28:41.187 28961-28961/com.myapp.playground W/System.err:     at ca.uhn.fhir.model.primitive.BaseDateTimeDt.throwBadDateFormat(BaseDateTimeDt.java:464)
08-11 14:28:41.187 28961-28961/com.myapp.playground W/System.err:     at ca.uhn.fhir.model.primitive.BaseDateTimeDt.parseInt(BaseDateTimeDt.java:370)
08-11 14:28:41.187 28961-28961/com.myapp.playground W/System.err:     at ca.uhn.fhir.model.primitive.BaseDateTimeDt.parse(BaseDateTimeDt.java:306)
08-11 14:28:41.188 28961-28961/com.myapp.playground W/System.err:     at ca.uhn.fhir.model.primitive.BaseDateTimeDt.parse(BaseDateTimeDt.java:39)
08-11 14:28:41.188 28961-28961/com.myapp.playground W/System.err:     at ca.uhn.fhir.model.api.BasePrimitive.setValueAsString(BasePrimitive.java:112)
08-11 14:28:41.188 28961-28961/com.myapp.playground W/System.err:     at ca.uhn.fhir.model.primitive.BaseDateTimeDt.setValueAsString(BaseDateTimeDt.java:460)
08-11 14:28:41.188 28961-28961/com.myapp.playground W/System.err:     at ca.uhn.fhir.parser.ParserState$PrimitiveState.attributeValue(ParserState.java:2355)
08-11 14:28:41.188 28961-28961/com.myapp.playground W/System.err:     at ca.uhn.fhir.parser.ParserState.attributeValue(ParserState.java:116)
08-11 14:28:41.188 28961-28961/com.myapp.playground W/System.err:     at ca.uhn.fhir.parser.JsonParser.parseChildren(JsonParser.java:1301)
08-11 14:28:41.188 28961-28961/com.myapp.playground W/System.err:     at ca.uhn.fhir.parser.JsonParser.parseChildren(JsonParser.java:1226)
08-11 14:28:41.189 28961-28961/com.myapp.playground W/System.err:     at ca.uhn.fhir.parser.JsonParser.parseChildren(JsonParser.java:1291)
08-11 14:28:41.189 28961-28961/com.myapp.playground W/System.err:     at ca.uhn.fhir.parser.JsonParser.parseChildren(JsonParser.java:1226)
08-11 14:28:41.189 28961-28961/com.myapp.playground W/System.err:     at ca.uhn.fhir.parser.JsonParser.parseChildren(JsonParser.java:1291)
08-11 14:28:41.189 28961-28961/com.myapp.playground W/System.err:     at ca.uhn.fhir.parser.JsonParser.parseChildren(JsonParser.java:1274)
08-11 14:28:41.189 28961-28961/com.myapp.playground W/System.err:     at ca.uhn.fhir.parser.JsonParser.parseChildren(JsonParser.java:1226)
08-11 14:28:41.189 28961-28961/com.myapp.playground W/System.err:     at ca.uhn.fhir.parser.JsonParser.doParseResource(JsonParser.java:231)
08-11 14:28:41.189 28961-28961/com.myapp.playground W/System.err:     at ca.uhn.fhir.parser.BaseParser.parseResource(BaseParser.java:604)
08-11 14:28:41.189 28961-28961/com.myapp.playground W/System.err:     at ca.uhn.fhir.rest.client.BaseClient$ResourceResponseHandler.invokeClient(BaseClient.java:534)
08-11 14:28:41.190 28961-28961/com.myapp.playground W/System.err:     at ca.uhn.fhir.rest.client.BaseClient$ResourceResponseHandler.invokeClient(BaseClient.java:486)
08-11 14:28:41.190 28961-28961/com.myapp.playground W/System.err:     at ca.uhn.fhir.rest.client.BaseClient.invokeClient(BaseClient.java:352)
08-11 14:28:41.190 28961-28961/com.myapp.playground W/System.err: ... 12 more

Is there anything additional required to be done when upgrading to version 1.6? Anyone who faced the same and resolved it?

I'm having a similar issue. I have made a reproducible example where I can provoke the exception. Given the following profiles:
CustomProcedureRequest.txt
CustomTimingDt.txt
And the following activity:
CustomProcedureRequestActivity.txt
I get the same exception, when I press the button in my activity. It seems like the android-fhir-library 1.6 is having some troubles parsing the CustomTimingDt datatype in the CustomProcedureRequest.

I just tried to run my reproducible example in the normal HAPI client as well, and I get the same bug so I might suspect that it isn't an Android specific bug.
As to what the bug might be, I have an idea:
I debugged the ModelScanner.java, which from what I could tell is responsible for loading the FhirContext with the build-in and custom Resource and Datatypes. In the ModelScanner it splits the Resources and Datatypes to different RuntimeDefinitions it referrences later for parsing resources to XML, JSON etc.
When the RuntimeDefinitions are defined, a sealAndInitialize method is called to fill out the definition with the necessary Resource or Datatype information so it can be used later by the parsers.
The HAPI client encounters my CustomProcedureRequest, and defines its RuntimeDefinitions. When it gets to the scheduled field, the ModelScanner isn't aware of the scheduled's datatype CustomTimingDt, because we haven't encountered it yet, and cannot define it at that time. But since the RuntimeDefinition for scheduled is sealed afterwards, it can never update its definition, and the parser will fail with the above mentioned exception.
It seems that in RuntimeChildDeclaredExtensionDefinition.java we are aware of this:
@Override
void sealAndInitialize(FhirContext theContext, Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions) {
	myUrlToChildExtension = new HashMap<String, RuntimeChildDeclaredExtensionDefinition>();

	BaseRuntimeElementDefinition<?> elementDef = theClassToElementDefinitions.get(myChildType);

	/*
	 * This will happen for any type that isn't defined in the base set of
	 * built-in types, e.g. custom structures or custom extensions
	 */
	if (elementDef == null) {
		elementDef = theContext.getElementDefinition(myChildType);
	}

...

But not in RuntimeChildChoiceDefinition, which scheduled in CustomProcedureRequest gets defined as. @jamesagnew Could it be that some of the RuntimeDefinitions simply are missing this guard?

Ohh... Just realized that my error is something different, I'll make a new issue.

Closing this ticket per the discussion on the parallel thread here: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/hapi-fhir/z_zFdSp0WVE/bSv18l1xDAAJ


Visual Studio 2022 intellisense autocomplete erroneous deletions

After selecting auto complete, especially when referencing a member variable or function to an object, intellisense will select either until the next whitespace character or sometimes until end of line for the insert. I have tested the behavior in other versions of visual studio, it appears to be specific to vs 2022.
Steps to Reproduce

Use tab completion when not at end of line.

Expected behavior
auto complete should insert in place, without replacing unnecessary characters after the position of the cursor.
Additional context and screenshots
Before using tab complete:

After tab completing:

Seems related to https://github.com/microsoft/PTVS/issues/6786 and https://github.com/microsoft/PTVS/issues/6833, not sure if they are dupes but definitely related.

Should be a duplicate of #6786

Currently having this issue on a fresh install of Visual Studio 2022 in all languages, mostly just tried the C languages. I can't even edit anything without having to retype the entire line of code because everything gets typed over instead of shifted. Any updates when this might be fixed?


Dependency xunit.runner.aspnet >= 2.1.0-beta1-* could not be resolved

Hi,
I try to build and test this project. I use a brand new machine with Windows 10, Visual Studio 2015 Enterprise(RTM) with "dnvm install 1.0.0-beta4" and Microsoft Azure SDK for .NET (VS 2015) - 2.7.
We no longer download Visual Studio RC unless we don't have MSDN. It might cause problem when we try to do some hands on.
I can build and deploy Azure. However, I still have this error.  I know xunit.runner.aspnet is outdated and truned into dnx. However, how to install this library?  I try this procedure but it didn't work.
https://www-1.nuget.org/packages/xunit.runner.aspnet/
Any ideas?

Sorry, I just forget to dnvm use 1.0.0-beta4.  Now master is for 1.0.0-beta5.
Now It works fine.

@TsuyoshiUshio  Glad you figured out!  I'm going to close the issue since everything is working fine.


Object Storage data migration

Title of ticket: Files need a manual transfer
Description
This ticket is for the list of files that need to be copied manually and would require support from IMB.
Dependencies
IMB team
DOD

[ ] Attached list of files need to be manually copied from LAN to PENGUIN VM.https://app.zenhub.com/files/358004325/22d90b59-fcf0-4613-8695-29ed2cc57977/download

This is a lower priority, but should be in place for Pilot

@abin-aot do you know if this was completed or if it is still required?
cc @lmullane @m-prodan

Ticket is stale, and should have been resolved for pilot - closing


Provided some multilingual support and added Chinese translation.

I'm really sorry about the delay on giving feedback to this, I totally missed that you submitted this.


Minimap drag is weird

Clicking and dragging in the minimap results in a sort of infinite scrolling (try it on a large file like BCEditor.Editor.Base)

I know, it is a feature. :) I kind of like it like that (scrolling slow or fast to a certain point) but maybe it should work like a scroll bar...

I kinda like how the one in SublimeText works (and I guess that's what people will expect)

Yes, I think I have to admit my defeat. :D

Fixed weirdness.


Debug: split log method into request and response logs

@jtopjian I propose the following interface for the debug client:
// Logger is an interface representing the Logger struct
type Logger interface {
        RequestPrintf(format string, args ...interface{})
        ResponsePrintf(format string, args ...interface{})
}

Do you have objections?

What benefits would this provide?

You can use different log prefixes for a visual segregation of the request and response.

I haven't come across an interface like this in other projects - my concern is that someone will need to implement a unique interface just to see the request/response information.


Support Service API Versions

@KrzysztofCwalina commented on Fri Jan 18 2019

Closing this in favor of https://github.com/Azure/azure-sdk-for-net/issues/6944


Calling willAccessValueForKey before merging changes from NSManagedObjectContextDidSaveNotification

At the moment NSFetchedResultsController is not calling this method, so updating a relationship will not trigger controller update. Can we add this or it's ommited by purpose?

Hi @CezaryBielecki, to be honest, I don't really remember. :)
Anyway, this part of code was migrated to a new repo https://github.com/tadija/AECoreDataUI so please open issue (or PR) there (if it's still relevant).


Closes #4872: Handling of loops for Ansible operators

Signed-off-by: Venkat Ramaraju<EMAIL_ADDRESS>
Description of the change:
Added checks and formatting to print events that are in a loop while running Ansible operators.
Motivation for the change:
To no longer neglect tasks that involve the loop keyword in a task, as mentioned in #4872.
Note: My solution doesn't seem like the nicest/easiest one. However, every iteration of the loop comes in as a separate event to log_events.go, so this is the workaround I could come up with. Let me know if there's a better way to do it.

For reference, this is how the output looks when the loop keyword is used in a task (After changes from this PR):
Tasks (From the issue):
---
- name: Debug without loop
  debug:
    msg: "{{ lines }}"
  vars:
    lines:
      - 1
      - 2
      - 3

- name: Debug with loop
  loop: "{{ lines }}"
  debug:
    msg: "{{ item }}"
  vars:
    lines:
      - 1
      - 2
      - 3

Ansible Output
--------------------------- Ansible Task StdOut -------------------------------

 TASK [Debug without loop] ********************************
ok: [localhost] => {
    "msg": [
        1,
        2,
        3
    ]
}

-------------------------------------------------------------------------------

--------------------------- Ansible Task StdOut -------------------------------

 TASK [Debug with loop] ********************************
ok: [localhost] => (item=1) => {
    "msg": 1
}
ok: [localhost] => (item=2) => {
    "msg": 2
}
ok: [localhost] => (item=3) => {
    "msg": 3
}

-------------------------------------------------------------------------------


Improve list optimisation in CountDown

CountDown has a path optimised for when the source parameter is a list, but it was poorly written respect to performance. It accessed the list Count property 3 times, twice during each iteration of the loop. Each access is a virtual dispatch so it seems to adds up, making it perform worse than when the source is a sequence (zero net optimisation). This PR fixes that by accessing Count once, storing it in a local and then using the local throughout. This improves the performance by 40%.
Before this PR

Method
Source
Mean
Error
StdDev
Median
Allocated

MoreLinqCountDown
Int32[1000000]
21.31 ms
0.426 ms
1.209 ms
21.02 ms
119 B

MoreLinqCountDown
Syste(...)rator [36]
19.30 ms
0.496 ms
1.440 ms
18.54 ms
179 B

See benchmarks-before.log.txt for full details.
After this PR

Method
Source
Mean
Error
StdDev
Median
Allocated

MoreLinqCountDown
Int32[1000000]
12.83 ms
0.318 ms
0.934 ms
12.63 ms
100 B

MoreLinqCountDown
Syste(...)rator [36]
20.65 ms
0.631 ms
1.851 ms
20.01 ms
179 B

See benchmarks-after.log.txt for full details.
Additional Information
BenchmarkDotNet=v0.13.2, OS=Windows 11 (10.0.22621.1105)
Intel Core i7-1065G7 CPU 1.30GHz, 1 CPU, 8 logical and 4 physical cores
.NET SDK=7.0.102
  [Host] : .NET 7.0.2 (<IP_ADDRESS>605), X86 RyuJIT AVX2

See also:

Benchmark.linq for benchmarking code for LINQPad.
PR #472 for some related discussion.

Two things:

I would rerun the performance benchmark after making the changes to fix the bugs above. The missed count value could have a performance impact on the behavior.
If possible, I would copy the before/after into LinqPAD for benchmarking. The reason is because two separate benchmarks, even on the same machine, are not always comparable (other processes, etc.). It is more accurate to have a Before() method and an After() method in LinqPAD and benchmark them against each other in the same run.

I would rerun the performance benchmark after making the changes to fix the bugs above. The missed count value could have a performance impact on the behavior.

45% improvement:

Method
Source
Mean
Error
StdDev
Median
Allocated

MoreLinqCountDown
Int32[1000000]
11.27 ms
0.316 ms
0.923 ms
11.02 ms
100 B

MoreLinqCountDown
Syste(...)rator [36]
20.61 ms
0.707 ms
2.041 ms
20.58 ms
179 B

If possible, I would copy the before/after into LinqPAD for benchmarking. The reason is because two separate benchmarks, even on the same machine, are not always comparable (other processes, etc.). It is more accurate to have a Before() method and an After() method in LinqPAD and benchmark them against each other in the same run.

Yes, I am aware and admit taking a shortcut there. The difference was large enough and comparable in the many runs I did. What's more important is the comparison between list and sequence processing in the same ran than the before and after.


Cannot import react-router

import { useUrlState } from 'state-in-url/react-router'
leads to

Uncaught Error: Cannot find module 'state-in-url/react-router'
    at makeMissingError (modules-runtime-hot.js?hash=740f2079be9cde2bf010e27ef9713c36c6491a66:232:12)
    at Module.resolve (modules-runtime-hot.js?hash=740f2079be9cde2bf010e27ef9713c36c6491a66:247:17)
    at Module.moduleLink [as link] (modules.js?hash=9dcfdf759efa47693da31a9949583b7253b6ca74:361:25)
    at app.js?hash=48fd84b88fcc541f1c7fd8175fec0e3bbfd72bcc:989:11
    at module (CallActivityTable.jsx:364:34)
    at fileEvaluate (modules-runtime-hot.js?hash=740f2079be9cde2bf010e27ef9713c36c6491a66:386:7)
    at Module.require (modules-runtime-hot.js?hash=740f2079be9cde2bf010e27ef9713c36c6491a66:268:27)
    at mod.require (modules.js?hash=9dcfdf759efa47693da31a9949583b7253b6ca74:296:33)
    at Module.moduleLink [as link] (modules.js?hash=9dcfdf759efa47693da31a9949583b7253b6ca74:368:22)
    at app.js?hash=48fd84b88fcc541f1c7fd8175fec0e3bbfd72bcc:751:11```

Hi @thebarty , tnx for reporting, I will look into it.

@thebarty Can you post what tech stack you are using?

@asmyshlyaev177 thanks for responding so quickly. I am using meteor with React in frontend. Quite a standard setup: https://guide.meteor.com/react.
Latest Meteor 3.0
node version: v16.14.2
React with react-router v6
no typescript
Does this help? Do you need more info?

@asmyshlyaev177 thanks for responding so quickly. I am using meteor with React in frontend. Quite a standard setup: https://guide.meteor.com/react.
Latest Meteor 3.0 node version: v16.14.2 React with react-router v6 no typescript
Does this help? Do you need more info?

It's helpful, something with Meteor.
Can you try to import it like this
import stateInUrl from 'state-in-url/react-router'
...
stateInUrl.useStateInUrl({...})

@asmyshlyaev177 you are superfast.
I tried out
import stateInUrl from 'state-in-url/react-router'
…
console.log('stateInUrl', stateInUrl)

and still seeing

@thebarty ok, meteor has some issues with esm modules, still not fixed
https://github.com/meteor/meteor/discussions/11727
Seems like syntax like this should work
// folder structure from node_modules/state-in-url
import { useUrlState } from "state-in-url/dist/react-router/useUrlState/useUrlState.mjs";

Also enabled modules and ecmascript, meteor add modules and  meteor add ecmascript

@asmyshlyaev177 thanks for your support!
Seems like I got the object by using your import:

Closing the ticket