Added detail on Enterprise license export through a backup

Fixes DOC-2153
Added a couple of sentence to the BACKUP and Take Full and Incremental Backups pages around Enterprise license keys being exported through a backup.
Rearranged the top of both pages to avoid a long stack of notes losing emphasis — these are now in a Considerations section.
Included the BACKUP TO deprecation notice also next to the examples to make this more obvious

This change is


ScoreSaber Interaction

Mostly implemented, needs testing.

Seems to mostly work, requires final testing before considered finished.


filter files by runId via query parameter

SAPI  allows to filter file uploads by runId, the query would look like:
https://connection.keboola.com//v2/storage/files?q=runId:12345678
or this should work the same as well
https://connection.keboola.com//v2/storage/files?runId=12345678
Docker-bundle currently implements this feature by filtering files that contains tags with format runId-12345678
https://github.com/keboola/docker-bundle/blob/8a8aae53d7f9aef67e7e7fcd7cdad04e3bc37858/Docker/StorageApi/Reader.php#L109
The reason to filter files by runId parameter and not by tags with desired format is that it respects runIds hierarchy, so if a file is uploaded with runId xxx.yyy, then filter via ?q=runId:xxx would return this file and also automatically other files underlying the xxx runId(xxx.zzz, xxx.aaa.bbb etc.)

fixed in 0776502b7ecaf58a619861a353744270e326d3c7

It does filter files via sapi client runId parameter but actual runId value that is used is wrong, it should be parentId and not current job runId.
The fix is very simple imho
this line here:
https://github.com/keboola/docker-bundle/blob/master/Docker/StorageApi/Reader.php#L111
I kindly reccomend to change to:
$options->setRunId($this->getParentRunId());

So now it takes files with current job runId and parent job runId - like so:
https://github.com/keboola/docker-bundle/blob/master/Tests/Docker/StorageApiReaderTest.php#L174
is that ok, or shall I remove the current job id altogether?

@kacurez  I'd like to rename it to filter_by_run_id so that it follows the convention of processed_tags can i?

resume: the docker-bundle is using getParentRunId method and the param name is filter_by_run_id


pageRangeDisplayed set to "1" does not display any page numbers

Looking to display only the current page number with next and previous buttons as the only way to navigate pages. Setting pageRangeDisplayed to 1 does not render any page numbers.

Hi @garettg. The problem is that this implementation of paginator is using general algorithm for paginator (look at this http://deoxxa.github.io/paginator/), which has wrong implementation. it doesnt consider if pageRangeDisplayed is set up on 1 and I think it has problem if it set up also on two.

FirstPage link is always disabled if I set pageRangeDisplayed={1}. Is there any workaround for this?

fixed at 3.0.0 version


As an Ops Team Member, I want to enter/calculate the TEIMP payment information so that I can track how much of the payment the proponent actually receives

Description:
As part of the emissions performance funding stream, funded agreements need to submit information related to project emission intensity to help show the impact to ghg reductions associated to a project.
The calculation for the payment holdback percentage is outlined in Schedule G of the EP Funding Agreement.
Wireframe: https://www.figma.com/file/PzOY8RyQnVXnjZJdSv2AqQ/Wireframing_Figma?node-id=2430%3A3866
Acceptance Criteria:
Given I am a CIF administrator
When I am creating, editing, viewing an emissions intensity report
and the "GHG Emission Intensity Performance" is defined
Then the calculated 'Payment percentage of performance milestone amount' is displayed.
Given that the "GHG Emission Intensity Performance" is defined
When It is X%
Then the calculated 'Payment percentage of performance milestone amount' is Y%,
based on the values in the emission_intensity_payment_percent table.
Given I am a CIF administrator
When I am creating, editing, viewing an emissions intensity report
and the 'Payment percentage of performance milestone amount' is defined
Then the calculated 'Holdback Payment Amount' is displayed
Given that the 'Payment percentage of performance milestone amount' is defined
When It is X%, the
Then the calculated 'Holdback payment amount' is equal to X% * (gross payment amount to date - net payment amount to date)
Given I am a CIF administrator
When I am creating or editing an emissions intensity report
And the calculated 'Holdback payment amount' is defined
Then I can adjust the calculated value (i.e. use the widget created in #768)
Given I am a CIF administrator
When I am creating, editing, viewing an emissions intensity report
Then I see fields to capture project the "Date invoice sent to CSNR"
Development Checklist:

[ ] A project_revision_gross_payment_amount and project_revision_net_payment_amount functions are created, to be reused in #717
[ ] A project_revision_teimp_payment_percentage function is created
[ ] A project_revision_teimp_payment_amount function is created
[ ] Meets the DOD

Notes:

Note: tooltips will be addressed in a separate user story at a later date.

Definition of Ready (Note: If any of these points are not applicable, mark N/A)

[ ] User story is included
[ ] User role and type are identified
[ ] Acceptance criteria are included
[ ] Wireframes are included (if required)
[ ] Design / Solution is accepted by Product Owner
[ ] Dependencies are identified (technical, business, regulatory/policy)
[ ] Story has been estimated (under 13 pts)

·Definition of Done (Note: If any of these points are not applicable, mark N/A)

[ ] Acceptance criteria are tested by the CI pipeline
[ ] UI meets accessibility requirements
[ ] Configuration changes are documented, documentation and designs are updated
[ ] Passes code peer-review
[ ] Passes QA of Acceptance Criteria with verification in Dev and Test
[ ] Ticket is ready to be merged to main branch
[ ] Can be demoed in Sprint Review
[ ] Bugs or future work cards are identified and created
[ ] Reviewed and approved by Product Owner

@suhafa - can you confirm, is this user story only covering the calculated holdback payment amount? Or is it covering the 3 highlighted fields in the wireframe?

This should be for all three highlighted fields. The title could be improved to make that clear

Hey team! Please add your planning poker estimate with ZenHub @dleard @gurjmatharu @Sepehr-Sobhani @mikevespi

The calculation methods for the sum of gross and net payment amounts will need to be revisited when we get clarification from the business area. (cf #853)
The calculated value for the gross or net payment should be taken in account, in case the overridden value has not been set

Hi @pbastia - thanks for all your work on this one. One observation: I couldn't get the calculated holdback payment amount to calculate. Not sure what I'm doing wrong.

@LindsayMacfarlane there need to be a payment made to calculate an amount here. To do that, create at least one general milestone and add a non-zero value in the "adjusted net" and "adjusted gross" amounts

Thanks @pbastia I followed your instructions (I think anyways...), but still couldn't get it populated. Although for clarification - I didn't see an 'adjusted net' or 'adjusted gross' - just the regular net/gross payment fields.

I'm going to approve this ticket, but I still have issues getting anything to display in the holdback. I 100% believe this is on user error, but we should definitely have the CIF team test this one out.

Thank you @dleard for showing me that this does in fact work :)


Network requirements confusing-vague

Network Requirements normally contain address (FQDN) and Ports. Specified requirements are very generic "local network adapter" , "outbound Azure datacenters on port 443" until we get to Azure Arc connected machines. Basically which Azure datacenter FQDN does the agent communicate to?
https://docs.microsoft.com/en-us/azure/governance/policy/concepts/guest-configuration#network-requirements

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

ID: ed0dc6c0-66e0-4026-9f2a-1cdb8b04e5c5
Version Independent ID: d02abfda-83d6-4022-bfb0-b3d0391a6223
Content: Learn to audit the contents of virtual machines - Azure Policy
Content Source: articles/governance/policy/concepts/guest-configuration.md
Service: azure-policy
GitHub Login: @DCtheGeek
Microsoft Alias: dacoulte

@InformTechPro Thanks for the question. I've pinged the PM to help answer this question.
#assign:mgreenegit
#label:"product-question"
#label:"triaged"
#label:"assigned-to-author"
#label:"in-progress"

@InformTechPro I want to act on this but I'm not clear. Would you mind a bit of discussion?
"Local network adapter" refers to machines in Azure routing traffic through an attached network interface for the virtual machine as opposed to using private networking in Azure, where the connection is not routed through the machine's virtual NIC. Is there something about this section that is not clear, that could be improved?
"Outbound to Azure datacenters on port 443" - in this section, the guidance is to use the network service tag so that customers do not need to add, or more importantly keep up with changes to, the list of Azure datacenter IP ranges. We previously linked to the published IP range file and received feedback that keeping NSG rules up to date was a tedious task.
Last, when you say "until we get to Azure Arc connected", I'm not sure I am following. The above sections refer to machines in Azure as opposed to Arc connected which is for machines outside of Azure. Can you clarify what you had in mind?

@InformTechPro Just checking in if the answer provided by @mgreenegit covers the question you had. @mgreenegit did make a minor change to improve clarity in this content that I believe resolves this question, so I plan to close this issue tomorrow if there is no further discussion or question on the content.  Thanks!

#please-close


Expressive HeaderTemplate

It doesn't look like a header template attribute can be specified on a <datatable-column> component? An example can be seen here:
<datatable-column name="Gender" [headerTemplate]="hdrTpl">
     <template let-row="row" let-value="value" let-i="index">
         ....
    </template>
</datatable-column>

Which results in Can't bind to 'headerTemplate' since it isn't a known property of 'datatable-column'..
Additionally, there doesn't seem to be a way to specify the header template as an inline template. For example:
<datatable-column name="Gender">
     <header-template>...</header-template>
     <template let-row="row" let-value="value" let-i="index">
         ....
    </template>
</datatable-column>

Here's a plunker demonstrating the issue.

This is a great suggestion, I should be able to do this pretty easy.

Currently, if you provide two templates the first is treated as header. There are some issues with it though.
https://github.com/swimlane/angular2-data-table/blob/master/src/components/datatable-column.directive.ts

@ashleahhill - Yes, thats correct. Whats the issue? Forgot to close this :)

@amcdnl
I couldn't get sort to work with the header template. However, I think its related to the sort function not supporting deep values, since a shallow value works fine.

Inputting two templates in datatable-column doesn't work

See: https://plnkr.co/edit/iH1e7cIAdX5Ds4jY7WYc

Thanks, I used version for rc5, one for 2.0 works fine. Although, when I put a custom template for the header it doesn't sort after that. Is it possible to have both?


BUG 2311893: replication: add new Validated condition

This commit adds new Validated condition.
This is initially used to indicate the csi driver
responded with FailedPrecondition grpc code for
EnableReplication request using
PrerequisiteNotMet reason.
Signed-off-by: Rakshith R<EMAIL_ADDRESS>(cherry picked from commit 9f416da4f1d99b3d30b07ff9cd6176c19dc43a68)

Please Sync this to the main first and create a backport PR.


Tutorial: Adding a command

Codecov Report

Merging #10 (32a5b25) into master (0dd686b) will increase coverage by 0.80%.
The diff coverage is 93.33%.

@@             Coverage Diff              @@
##             master      #10      +/-   ##
============================================
+ Coverage     72.15%   72.96%   +0.80%
- Complexity      399      418      +19
============================================
  Files            70       73       +3
  Lines          1232     1287      +55
  Branches        125      130       +5
============================================
+ Hits            889      939      +50
- Misses          311      314       +3
- Partials         32       34       +2

Impacted Files
Coverage Δ

.../seedu/address/logic/parser/AddressBookParser.java
88.88% <0.00%> (-11.12%)
:arrow_down:

src/main/java/seedu/address/ui/PersonCard.java
0.00% <0.00%> (ø)

...c/main/java/seedu/address/model/person/Remark.java
75.00% <75.00%> (ø)

...java/seedu/address/logic/commands/EditCommand.java
97.05% <100.00%> (+0.04%)
:arrow_up:

...va/seedu/address/logic/commands/RemarkCommand.java
100.00% <100.00%> (ø)

...a/seedu/address/logic/parser/AddCommandParser.java
100.00% <100.00%> (ø)

...ain/java/seedu/address/logic/parser/CliSyntax.java
85.71% <100.00%> (+2.38%)
:arrow_up:

...eedu/address/logic/parser/RemarkCommandParser.java
100.00% <100.00%> (ø)

...c/main/java/seedu/address/model/person/Person.java
97.82% <100.00%> (+0.20%)
:arrow_up:

.../java/seedu/address/model/util/SampleDataUtil.java
25.00% <100.00%> (+5.00%)
:arrow_up:

... and 5 more

Continue to review full report at Codecov.

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


OOM happens, tensorflow-gpu, freeMemory: 3.31GiB

how much memory need for trainning model by tensorflow-gpu?

Same "Resource Exhausted" issue shows up for me. Running on CPU is fine, but when switching to my GTX 970 I'm getting OOM on the default batch size of 1. How much memory is needed to train? Is there any way of reducing that?

we used a v100 32GB GPU.

I also get the OOM issue. Mine is 4GB GPU, well it is not enough~~


trikRuntime and other submodules update

Download:
Environment: QT=5.12, ARCH=32, PYTHON_PATH=C:\Python37
Environment: QT=5.12, ARCH=64, PYTHON_PATH=C:\Python37-x64


Discussion: solution for analyzing generated source

This is a meta-issue for reference and discussion about the challenges posed by code generation for using dartanalyzer in CI.
Angular generates source under the .dart_tool/ directory. While the analysis server understands this convention, the command-line dartanalyzer tool does not, and will produce errors for missing imports.
We workaround this issue by prefixing all of our generated imports (e.g. import 'foo.template.dart' as foo_template;) and ignoring the error for missing imports:
https://github.com/dart-lang/angular/blob/cca2e39dcd726c9590079b82666e6c2006383cb0/analysis_options.yaml#L8-L9
Unfortunately this workaround isn't suitable for generated part files, such as those produced by package:pageloader, as part directives can't be prefixed. This leaves a few options:

Build before analysis This solves the issue for part files generated within the source directory, but still doesn't work for libraries under .dart_tool/.
Skip analysis Tests that wouldn't have passed analysis likely won't run either, so specific tests that rely on generated part files can be safely skipped.
Check in generated parts This is likely a fine solution for client apps that aren't published, but isn't suitable for Angular.
Wait for support from tooling It's possible the analyzer or build packages could facilitate analysis of source with generated dependencies.

I think we are going to be asking for tooling to support this properly going forward.
I will open a bug on the SDK repo (https://github.com/dart-lang/sdk/issues/34098).

I just wanted to add, that uri_has_not_been_generated: ignore also only solves part of the problem.
If you have implicit-casts: false then it will continue to fail, since the analyzer doesn't know the types of the imported classes and assumes dynamic for everything.


Safety envelope

Disregard this pull request, erroneous move on my part.

Was going to say, I could merge some of these changes (eg: dockerfile, new reward wrapper), but I wouldn't want to merge deleting an environment.
That being said, very happy to see people doing things with MiniGrid :+1: :)

Hello!
Of course feel free to merge any changes.
Thank you very much for providing this platform, I am using it for
evaluating my research of safe exploration of the agent and reward hacking.
We are building other environments that are safety critical for the agent
or that are easy for the agent to win by exploiting the reward function
(e.g. a cleaning robot environment).
Keep in touch!
Best,
Piergiuseppe
On 12 April 2018 at 18:11, Maxime Chevalier-Boisvert <
<EMAIL_ADDRESS>wrote:

Was going to say, I could merge some of these changes (eg: dockerfile, new
reward wrapper), but I wouldn't want to merge deleting an environment.
That being said, very happy to see people doing things with MiniGrid 👍 :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/maximecb/gym-minigrid/pull/5#issuecomment-380860356,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABolsCSlerKK1EiZE4EYuCl7OaVNsuwcks5tn3yvgaJpZM4TSAJC
.

--
Piergiuseppe Mallozzi


Switch to pyup.io for tracking requirements

pyup.io is by Cookiecutter Django core dev @jayfk, it's built off Cookiecutter tech. What's not to love?
Needs to be done for both the template and the generated package.

#205 covers requirements_dev.txt and {{cookiecutter.project_slug}}/requirements_dev.txt. Is this correct?

@jayfk the requirements_dev.txt file at top level contains the development dependencies for the template developers (for running the template tests, etc).
The {{cookiecutter.project_slug}}/requirements_dev.txt file (which you might notice that has jinja2 tags) is part of the template, and when rendered, it defines the development dependencies for the generated project.
#205 is only covering the first file.

@eliasdorneles That's because {{cookiecutter.project_slug}}/requirements_dev.txt is already up-to-date.
It's being processed by the bot. As soon as there is an update it will be covered, too.

ah, cool, got it! :)

While you're both in here, I should introduce you ⛄
@jayfk meet Cookiecutter PyPackage core dev @eliasdorneles. @eliasdorneles meet Cookiecutter Django core dev @jayfk.
Also the core of pyup.io is open-source, which is awesome.
requires.io is now deactivated, so this is complete. Closing.

hi there @jayfk, nice meeting you. :smiley:


Fixing build issues

Adding targets for UWP projects to avoid hardlinks, which can cause file access issues for concurrent builds

@davidkwoods,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


[Question] Possible to access environment variable in #load?

Hey there,
I just had a quick question of if it might be at all possible to access environment variables within the #load portion of a script? I wanted to put some frequently used items within a folder in $HOME (~/.csx). I tried to see if I could use either of the following:
#load "~/.csx/shell.csx"
#load "$HOME/.csx/shell.csx"

It did not seem to like that. Is there a way to accomplish this, either by pulling an env var, or perhaps setting an external shared path config value somewhere that all scripts might be able to get to, or do I just have to hard code that path?
Thanks,
-MH

This is currently not possible. The path in the load directive is only resolved by dotnet-script if takes the #load "nuget:{package}, {version}" form and by the Roslyn compiler otherwise.


Use icon purpose to style shortcut icons

Is your feature request related to a problem? Please describe.
Currently web apps can specify app shortcuts, but the icons must be styled to match Android rather than being generic for any OS. Otherwise, the icons will look out of place on Android.
Describe the solution you'd like
I've been working on adding a new icon purpose with the W3C. It would be nice for this new purpose, along with maskable, to have an effect on the resulting shortcut.
Shortcut icons can be automatically styled differently depending on their "purpose" field. In addition to the default "any" purpose, there are now "maskable" and "monochrome" purposes.
"maskable" icons should fill up the entire shortcut area, like contact shortcuts on Android.

"monochrome" icons should automatically be scaled and tinted with theme_color to match other Android shortcut icons. This way, a colored icon could be used for a shortcut on Windows while a single color icon can be used on Android.

Corresponding WebAPK request: https://bugs.chromium.org/p/chromium/issues/detail?id=1093086#c1

This could help fix Issue #180


|ERROR|UserInterface|Unable to validate information for artifact ID#518

Current Behavior
Scanner says the substats are invalid yet they're in game so they are 100% valid
Expected Behavior
The scanner to correctly exports the data
Reproducing a Behavior
run the scanner, either scan only artifacts or artifacts and characters and weapons, result is the same, equip artifacts checked, minimum rarity 5*, minimum level 0, scanner delay fast/slower/slow
Device OS
Windows 10
Genshin Impact Version
3.7
Inventory Kamera Version
1.3.9
Screen resolution, screen mode, and UI scale
1280x720 windowed
Additional notes and remarks
No response
Evidence
InventoryKamera.log

log and screenshot of one of the errored artifacts
Preflight Checklist

[X] I have checked for similar issues in the issue page, and I have not found any similar to mine.
[X] I am using the latest version of the scanner.
[X] I tried setting the scanning delay to maximum, and it still doesn't work.
[ ] I have attached the video recording to the bug report.
[X] I have attached the error log to the bug report.
[X] I am available to later explains the issue.
[X] I have disabled all screen filtering software or plugins (i.e. HDR, Image Sharpening) while scanning.
[X] I use default in-game keybindings or have configured keybindings for the scanner.

An issue already exists for this issue so I am closing it as a duplicate


Enable the compilation in Debug for the CI

Starting from #63 we started to use Eigen actively on the framework. As you probably know Eigen suppresses several checks if the consumer library/application is compiled in Release, this may lead to undesired behavior that are not easy to spot. See for instance https://github.com/dic-iit/bipedal-locomotion-framework/pull/85#issuecomment-686605967.
Enabling the Debug tag on CI may help the developer to spot some problems. On the other hand, it will increase the compilation time on the GitHub action.
What do you think @S-Dafarra @prashanthr05 @traversaro?

I like the sound of that.


React/ESLint: add @typescript-eslint/consistent-type-imports rule

Related to #11296

@murdos as discussed I added this rule

Thanks @qmonmert


fix: revert schema identifier for draft-04

Schema for draft 4 should follow

https://json-schema.org/understanding-json-schema/reference/schema.html#id4 and the string identifier should be

http://json-schema.org/draft-04/schema#
Signed-off-by: Sajay Antony<EMAIL_ADDRESS>PR associated with this change -  #915

See #931

Should have checked. Closing as #931 is already handling this. Thanks @sudo-bmitch


[vite] Pre-transform error: Failed to load url /src/pages/index/main

Describe the bug
After updating vite 3 to vite 5 starting getting this error
Reproduction
https://github.com/RaminderRandhawa91/ViteErrorProject.git
Steps to reproduce
Run npm install
Run npm build
Run  npm dev
System Info
"vue": "^3.4.15",
 "typescript": "4.7.4",
 "vite": "^5.0.7",
 "@types/node": "^20.11.2",
 "vite-plugin-html-template": "^1.2.2",
 "vite-plugin-mpa": "^1.2.0"

Used Package Manager
npm
Logs
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

I think this should be a user plugin issue.

The middleware here may not need to be executed later.
https://github.com/IndexXuan/vite-plugin-html-template/blob/0a4b2d8528833ce282c6817cc65a4af79b773f83/src/index.ts#L50

At the same time, in the custom plugin viteImportmapPlugin, you can skip pre-transform warnings as follows.

load: (id) => importmapObj[id] ? `export default {};` : null

Is there any workaround to solve this issue ?


Issue with Webpack 5 potentially

Not confirmed here but alerted by a community member.

Getting this error with a new NextJS project.


Line break in source code leads to uncovered lines

Hi,
Describe the bug
rustfmt likes to wrap long lines to multiple shorter ones. At the same time, sometimes such wrapping causes tarpaulin to report false uncovered lines.
To Reproduce
Create Cargo.toml like this:
[package]
name = "mypackage"
version = "1.0.0"
edition = "2018"

[dependencies]

and src/lib.rs like this:
pub struct S {
}

impl S {
    pub fn f(&self) -> Result<Vec<i32>, String> {
        Ok(vec![42])
    }
}

pub fn g(
    s: &S,
) -> Result<(), String> {
    for _i in s
        .f()? {
    }

    Ok(())
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn t() {
        g(&S{}).unwrap();
    }
}

Finally run cargo tarpaulin -v.
Expected behavior
Current output:
Dec 03 23:34:04.882 DEBUG cargo_tarpaulin: set up logging
Dec 03 23:34:04.882  INFO cargo_tarpaulin::config: Creating config
Dec 03 23:34:04.887  INFO cargo_tarpaulin: Running Tarpaulin
Dec 03 23:34:04.887  INFO cargo_tarpaulin: Building project
Dec 03 23:34:04.887  INFO cargo_tarpaulin::cargo: Cleaning project
   Compiling mypackage v1.0.0 (/home/vmiklos/t)
     Running `rustc --crate-name mypackage --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test -C metadata=3c53dd0beed7c685 -C extra-filename=-3c53dd0beed7c685 --out-dir /home/vmiklos/t/target/debug/deps -C incremental=/home/vmiklos/t/target/debug/incremental -L dependency=/home/vmiklos/t/target/debug/deps -C debuginfo=2 --cfg=tarpaulin -C link-dead-code`
    Finished test [unoptimized + debuginfo] target(s) in 0.48s
Dec 03 23:34:05.486  INFO cargo_tarpaulin::process_handling::linux: Launching test
Dec 03 23:34:05.486  INFO cargo_tarpaulin::process_handling: running /home/vmiklos/t/target/debug/deps/mypackage-3c53dd0beed7c685

running 1 test
test tests::t ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s

Dec 03 23:34:05.702  INFO cargo_tarpaulin::report: Coverage Results:
|| Uncovered Lines:
|| src/lib.rs: 14
|| Tested/Total Lines:
|| src/lib.rs: 7/8 +0.00%
||
87.50% coverage, 7/8 lines covered, +0% change in coverage

Expected output: no uncovered lines. Note that in case
    for _i in s
        .f()? {

is folded into a single line, then tarpaulin correctly reports no uncovered lines.
Version:
$ cargo tarpaulin --version
cargo-tarpaulin version: 0.18.5

Thanks!

An observation I had when looking into a similar issue in my code is that sometimes adding a // ... comment at the end of the false uncovered line magically gets it removed from cobertura.xml (instead of having it exist with hits=0). I immediately tried it out on this minimal example but no, this doesn't happen here. However I swear do see this effect it in my non-trivial, owned-by-employer code. I just tested and re-tested this. Some strange butterfly effect on the compiler?

Rather than raise a new issue, I'm pretty sure I've got the same type of problem occurring to me. I wrote it up on StackOverflow on the assumption that I was at fault.

Running code in the debugger it seems like this might not be tarpaulin's fault as such, but rather that the line information emitted by the Rust compiler itself is inaccurate. If this is the case the issue should be opened in rustc, I guess?

I think a large aspect of the compilation stage involving this is likely in LLVM. Either way it's not something I think could provide a stable interface, and the rustc advice might be use just use the llvm coverage built in. There are some approaches for most of the issues though:

Update source_analysis module to filter out things that are unreliable (I currently do)
Look at the lines we get from debug info and the assembly instructions and see if it's clear if a line is instrumentable and if not filter it out (I've not tried this).
Use the llvm coverage (I am working on a tarpaulin backend for this)

For think problem I think the best solution is just to add to the source analysis module to get the for expressions to be registered as a single logical line which I will make a note of to do before the next release!

I assume that llvm coverage will solve this: if I understand correctly, then the instrument-coverage switch will be stabilized in the next rust release and cargo llvm-cov does not show uncovered lines.

I experienced what I believe is this same issue when a tuple was broken across lines. Private repo; apologies for not being able to link directly. Image below:

Here, the tuple (Status::Unauthorized, AuthorizationError::OBONotAllowed,) is passed to Outcome::Failure (in the Rocket framework fwiw), and Tarpaulin marks only one line -- the first element of the tuple -- as uncovered.

My immediate need for this is gone. Do you prefer to keep the issue open (since it's still a bug) or OK to close this, so you spend your time on issues which are useful to fix in practice?

Well, I for one would still like to see more stable output, if possible.


Fix sanitize np

It turns out that np.ndarray is not a subclass of np.generic. We need the latter to catch scalars and the former, obviously, to catch arrays.
While I'm here, I moved some stuff to utils.py.

Oh, also, we weren't sanitizing the values from obj.read_configuration(). This does that well.
This change is source-installed at CSX. It sounds like ISS could use it as well.

Looks good to me.


Testing fails after 3 retries (related to pooling)

When I am testing my app it will consistently crash with this error:
Knex:Error Pool2 - error: Error allocating resources: sorry, too many clients already
Knex:Error Pool2 - error: Error allocating resources: sorry, too many clients already
Could not connect to your local postgres db!
Pool was destroyed

I don't have a pool object in my knexfile, I just use all the defaults. I'm using 0.8.5. I use the pg.app with all defaults.
It doesn't matter how benign the test is. Even if the test is passing. If I rerun it after 3 times, the 4th time will always crash.

I'm guessing somehow the connections are being kept alive when running the tests - what testing library are you using and can you check whether this also occurs in 0.8.0 through 0.8.3? (0.8.4 is broken entirely)
/cc @myndzi

Yes, that's what's happening.
When tests are running, mocha will delete the require cache, which causes my app to cause a reconnection with knex.
So what I did was memoize the knex object on my App, so tests wouldn't create a new connection.
Then I had to create a global spec_helper file basically doing this:
after(function(){
  App.get("knex").destroy()
})

That after function is called after all of the tests finish, which kills the last knex connection.
That then enables me to run tests back-to-back (using mocha watchers) so there wasn't build-up of the connections between test runs.

Your app will need to shut down knex when the app itself shuts down, or it will never exit cleanly. In order to shut it down you will indeed need to keep a reference to it. It sounds like this is how you fixed the problem.
The error message doesn't sound familiar to me, though. Looking through the code, it appears that "too many clients already" would be the error given by the database server / database driver when attempting to open the first resource in a new pool. The error you report would be shown here: https://github.com/myndzi/pool2/blob/master/lib/pool.js#L367 and the limit imposed would be based on your database server's configuration in this case.
I'm not sure if there's any way to implicitly clean up; how was your previous code expecting knex and/or the pooled resources to get destroyed?

My previous code didn't do anything in regards to shutting knex down. Which is why it would run out of connections during test mode.
I implicitly assumed that when the node process exited or crashed it would remove the db connection. Are you saying it does not do this? How would those connections ever get cleaned up? That would be very concerning for production environment.
Yes, by switching to managing the connection I was able to destroy those at the end of the test after all finished. That fixed the error I was having. Though I didn't change anything in the production environment to shut down.

On May 22, 2015, at 5:46 PM, Kris Reeves<EMAIL_ADDRESS>wrote:
Your app will need to shut down knex when the app itself shuts down, or it will never exit cleanly. In order to shut it down you will indeed need to keep a reference to it. It sounds like this is how you fixed the problem.
The error message doesn't sound familiar to me, though. Looking through the code, it appears that "too many clients already" would be the error given by the database server / database driver when attempting to open the first resource in a new pool. The error you report would be shown here: https://github.com/myndzi/pool2/blob/master/lib/pool.js#L367 and the limit imposed would be based on your database server's configuration in this case.
I'm not sure if there's any way to implicitly clean up; how was your previous code expecting knex and/or the pooled resources to get destroyed?
—
Reply to this email directly or view it on GitHub.

Ah, yes, that would indeed happen: everything in the v8 environment is of course purged on exit. The thing is, mocha doesn't spawn processes, so that wasn't happening.


pubsub: add Publisher.awaitTermination

Newer gRPC versions seem to check that we call this method.
Currently shutdown waits for all messages to publish and return before shutting
anything down, so awaitTermination likely won't do anything meaningful.
In the future, we should make shutdown return promptly and use
awaitTermination to wait for messages.
I reported this at #3687.
Fixes #3648.

Will do when I merge!


[YBUG.IO] #51 - Clicking around shows more errors

Clicking around shows more errors
Source url: https://test.sovryn.app/wallet
Reported by:
Reported at: 14 Jan at 17:09 UTC
Location: DE, Hesse, Kassel
Browser: Chrome 87.0.4280.141
OS: Windows 10.0
Screen: 1920x1080
Viewport: 1920x937
Screenshot:

For more details please visit report page on Ybug:
https://ybug.io/dashboard/reports/detail/gk3yt3nytnd2phypp22v

Duplicate of #185

Duplicate of #185


[ng-packaged] package.json has wrong context

Type of Issue
[x] Bug Report
[ ] Feature Request

Description
_for bugs: The packagr takes the wrong package.json and so the generated package is invalid.
How To Reproduce
_for bugs: clone the demo project ng-packaged from github and build the library. Please review the package.json at the dist/my-lib folder. There you can see that the ng-packagr uses the root package.json and not the package.json from the my-lib folder. And so the package can not be installed with npm.
generated package.json:
{
"name": "ng-packaged",
"version": "0.0.0",
"private": true,
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"build:app": "cpr dist/my-lib src/@my/lib && ng build --app packages && rimraf src/@my",
"build:lib": "ng-packagr",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"dependencies": {
"@angular/common": "~5.1.0",
"@angular/compiler": "~5.1.0",
"@angular/core": "~5.1.0",
"@angular/forms": "~5.1.0",
"@angular/http": "~5.1.0",
"@angular/platform-browser": "~5.1.0",
"@angular/platform-browser-dynamic": "~5.1.0",
"@angular/router": "~5.1.0",
"core-js": "^2.4.1",
"rxjs": "^5.4.2",
"zone.js": "^0.8.14"
},
"devDependencies": {
"@angular-devkit/schematics": "^0.0.41",
"@angular/cli": "~1.6.0",
"@angular/compiler-cli": "~5.1.0",
"@angular/language-service": "~5.1.0",
"@types/jasmine": "~2.8.0",
"@types/node": "~8.5.0",
"codelyzer": "~4.0.0",
"cpr": "^3.0.0",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.0",
"karma": "~1.7.0",
"karma-chrome-launcher": "~2.2.0",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.3.0",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"ng-packagr": "2.0.0-rc.6",
"protractor": "~5.2.0",
"rimraf": "^2.6.1",
"ts-node": "~3.3.0",
"tslint": "~5.8.0",
"tsickle": "^0.25.5",
"typescript": "~2.5.3"
},
"main": "bundles/ng-packaged.umd.js",
"module": "esm5/ng-packaged.js",
"es2015": "esm2015/ng-packaged.js",
"typings": "ng-packaged.d.ts",
"metadata": "ng-packaged.metadata.json"
}
npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "ng-packaged" under a packagenpm ERR! also called "ng-packaged". Did you name your project the same
npm ERR! as the dependency you're installing?npm ERR!
npm ERR! For more information, see:
npm ERR!     https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm
Expected Behaviour
_for bugs: Valid package.json.
{
"name": "@my/lib",
"version": "1.0.0-alpha.0",
"repository": "https://github.com/dherges/ng-packaged.git",
"author": "david<EMAIL_ADDRESS>"license": "MIT",
"private": true,
"peerDependencies": {
"@angular/core": "^4.1.2",
"@angular/common": "^4.1.2"
},
"main": "bundles/ng-packaged.umd.js",
"module": "esm5/ng-packaged.js",
"es2015": "esm2015/ng-packaged.js",
"typings": "ng-packaged.d.ts",
"metadata": "ng-packaged.metadata.json"
}
Version Information
ng-packagr: 2.0.0-rc.6
@angular/*: ~5.1.0
typescript: ~2.5.3
rxjs: ^5.4.2
node: v8.2.1
npm: 5.6.0

please include any version information that might be relevant, e.g. other third-party libraries

ng-packaged demo should be updated: move ng-package.json to my-lib folder
Relates to #411 and #416

I have moved the ng-package.json now the generated package.json is OK.


Consider dumping all of the JSON for Cedarbridge

JSON requires a reflection whitelist, and then requires trying to painfully generate a schema afterwards for documentation.
Not good enough.

Only the versioning protocol remains. Should this be killed too?


Debian 12 creation failure

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Logs
Attach log files by opening OrbStack's Help menu and clicking “Show Logs”, or email them for privacy.
PLEASE ATTACH THE ENTIRE LOG FILE WITHOUT REMOVING ANY LINES. There is usually important context earlier in the log.
Info report

<paste here>

Additional context
Add any other context about the problem here.

macOS 14.0
Version 0.11.3 (1648)
Deleting Debian 11 and re-creating Debian 12 failed to create
Debian 12 has been released.

Please attach log files from the Help menu, as stated in the issue template.

vmgr.log

Same issue here, attached logs.
vmgr.log

Still need to investigate the underlying cause, but as a workaround:

Click "Create" in the app
Immediately switch to a terminal and run:

sh -c 'while true; do orb -m debian -u root systemctl start systemd-networkd && exit; sleep 0.1; done'

Then the creation will succeed.

Then the creation will succeed.

Correct, this helped to create the vm.

same issue when creating a debian-sid vm, this is happened right after I successfully created other 2 vms (ubuntu 22.04 & debian 11)
This is the log file
vmgr.log

Fixed for the next version.

Released in v0.15.0.


nodejs C++ addon exception catch

i have written a C++ addon and compile it into *.node file, somtimes it crashes, so i want to catch the exception, what i do now is tring to write dump file with windows API in my C++ file, but when i run my program, the exception-catch callback function never be triggered. What confuses me is that when i use the same code to catch exception and write dump file in *.dll file, it works well, what should i do if i want to  write dump file  correctly when my  C++ addon crashes? Thanks!

somtimes it crashes

Can you define 'crashes'?

the exception-catch callback function

It'd help if you posted or linked to your code.

somtimes it crashes

Can you define 'crashes'?

the exception-catch callback function

It'd help if you posted or linked to your code.

‘crashes’means exception, such as "printf("%s", 111)"

somtimes it crashes

Can you define 'crashes'?

the exception-catch callback function

It'd help if you posted or linked to your code.

the  exception-catch code:
#pragma once
#include <windows.h>
#include < Dbghelp.h>
#include
#include
using namespace std;
#pragma comment(lib, "Dbghelp.lib")
namespace NSDumpFile
{
void CreateDumpFile(LPCWSTR lpstrDumpFilePathName, EXCEPTION_POINTERS *pException)
{
// 创建Dump文件
//
HANDLE hDumpFile = CreateFile(lpstrDumpFilePathName, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
	// Dump信息
	//
	MINIDUMP_EXCEPTION_INFORMATION dumpInfo;
	dumpInfo.ExceptionPointers = pException;
	dumpInfo.ThreadId = GetCurrentThreadId();
	dumpInfo.ClientPointers = TRUE;

	// 写入Dump文件内容
	//
	MiniDumpWriteDump(GetCurrentProcess(), GetCurrentProcessId(), hDumpFile, MiniDumpNormal, &dumpInfo, NULL, NULL);

	CloseHandle(hDumpFile);
}

LPTOP_LEVEL_EXCEPTION_FILTER WINAPI MyDummySetUnhandledExceptionFilter(LPTOP_LEVEL_EXCEPTION_FILTER lpTopLevelExceptionFilter)
{
	return NULL;
}

BOOL PreventSetUnhandledExceptionFilter()
{
	HMODULE hKernel32 = LoadLibrary(_T("kernel32.dll"));
	if (hKernel32 == NULL)
		return FALSE;

	void *pOrgEntry = GetProcAddress(hKernel32, "SetUnhandledExceptionFilter");
	if (pOrgEntry == NULL)
		return FALSE;

	unsigned char newJump[100];
	DWORD dwOrgEntryAddr = (DWORD)pOrgEntry;
	dwOrgEntryAddr += 5; // add 5 for 5 op-codes for jmp far

	void *pNewFunc = &MyDummySetUnhandledExceptionFilter;
	DWORD dwNewEntryAddr = (DWORD)pNewFunc;
	DWORD dwRelativeAddr = dwNewEntryAddr - dwOrgEntryAddr;

	newJump[0] = 0xE9;  // JMP absolute
	memcpy(&newJump[1], &dwRelativeAddr, sizeof(pNewFunc));
	SIZE_T bytesWritten;
	BOOL bRet = WriteProcessMemory(GetCurrentProcess(), pOrgEntry, newJump, sizeof(pNewFunc) + 1, &bytesWritten);
	return bRet;
}

LONG WINAPI UnhandledExceptionFilterEx(struct _EXCEPTION_POINTERS *pException)
{
	TCHAR szMbsFile[MAX_PATH] = { 0 };
	::GetModuleFileName(NULL, szMbsFile, MAX_PATH);
	TCHAR* pFind = _tcsrchr(szMbsFile, '\\');
	if (pFind)
	{
		*(pFind + 1) = 0;
		_tcscat(szMbsFile, _T("CrashDumpFile.dmp"));
		CreateDumpFile(szMbsFile, pException);
	}

	// TODO: MiniDumpWriteDump
	//FatalAppExit(-1, _T("Fatal Error"));
	return EXCEPTION_CONTINUE_SEARCH;
}

void RunCrashHandler()
{
	SetUnhandledExceptionFilter(UnhandledExceptionFilterEx);
	PreventSetUnhandledExceptionFilter();
}

};
#define DeclareDumpFile() NSDumpFile::RunCrashHandler();

Okay, I see what you mean but I fail to see how any of it is related to nan. I think this is something you'll have to figure out yourself. I can't help you at least.

I see you've also opened https://github.com/nodejs/help/issues/2169. I'll close out this issue in favor of that one.

@bnoordhuis @wanghui-andy Do you have any solution for this problem? I have the same question. And I have try SetErrorMode(0) or the other params,  the exception-catch callback still cannot be  triggered


its not center

I tried this tool, icons aren't centered. they move to right side of taskbar

Can you post a screenshot?
Also please include DPI settings, resolution, and windows version
Sent from my iPhone

On Feb 9, 2019, at 10:23 AM, Mahdi Hosseini<EMAIL_ADDRESS>wrote:
I tried this tool, icons aren't centered. they move to right side of taskbar
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

there is a big empty space on the left side:

Windows 10 x64
1600x900

can you add an option so it only calculate the empty space on taskbar? (not include the clock and other stuff)

So that is screen centered as it’s supposed to be. Just because you have additional toolbar items the empty space is not centered but that’s never been the desired effect. It could be done but would require modifying the centering algorithm. I’m not doing much active development on this but you’re welcome to fork it and change things around.
Sent from my iPhone

On Feb 9, 2019, at 10:36 AM, Mahdi Hosseini<EMAIL_ADDRESS>wrote:
can you add an option so it only calculate the empty space on taskbar? (not include the clock and other stuff)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

it's not just toolbar. it ignores the icons around the clock.
how can i find that area size to reduce it in algorithm? I don't know enough about this.

If you change the bar size calculcation it should give you the results you're after
Try changing it on line 313 to
double barSize = horizontal ? tasklistBounds.Width : tasklistBounds.Height;


[Question]: task will stuck when you delete the parsing doc,right?

Describe your problem

I found that if i delete the parsing doc, all the doc parse task stuck, is that a bug?

version: v0.13.0

It's fixed in the latest dev version of docker image.

thank you


ci: update k8s versions support for v1.12

Cilium 1.12 only supports K8s up to 1.24 as per
https://docs.cilium.io/en/v1.12/concepts/kubernetes/compatibility/#k8scompatibility
Since AKS does not support 1.24 anymore, we remove AKS testing on v1.12 as per our historical policy.

/ci-aks

^ The /ci-aks trigger is properly ignored, as expected. No additional CI needs to run for this PR. Marking ready-to-merge.


Defing models with foreign entities

Your Question
type RealWorkout struct {
	gorm.Model
	TemplateID int
	Template   Workout
	WorkoutID  int
}

I have an entity RealWorkout which possesses 1 Workout which is supposed to act as a Template.
In order to have my code working I have to have 3 fields:

The "real" Workout
The ID of this workout but named WorkoutID
The ID of this workout but named TemplateID

2 is needed because even with a model without WorkoutID I get workout_id field in my DB and I sometimes have to set it using WorkoutID
3 is needed because otherwise at compilation I get the following error:
[error] invalid field found for struct gin-app/misc.RealWorkout's field Template: define a valid foreign key for relations or implement the Valuer/Scanner interface
The document you expected this should be explained
I am not a native english speaker but I did not understand what you excepted from me in this chapter :(
Expected answer
Having all those 3 fields seem very repetitive and error prone, ideally it should be possible to only have Template Workout ? I do not get why I also need an ID field and even more why it has to have specific names, I searched through this and did not find an answer: https://gorm.io/docs/belongs_to.html
Am I doing my model wrong ? What is really needed ? What do I need that ID field even though it is a repetition of my Workout.ID

Hi, you must use Pointer for Template instead of using a value object. for example, use Template  *Workout.

You still have errors because:
You don't have any foreign key in the child structure. Add ParantID unit to the child structure.

You still have errors because:
You don't have any foreign key in the child structure. Add ParantID unit to the child structure.

Why not in the parent structure ?

Imagine the raw query in SQL:
question:
select parent and parent's child name where ID is one.

answer:
SELECT (p.id, p.name, c.name) from parents p WHERE p.id = 1 INNER JOIN child  c ON c.parent_id = p.id;

the child linked to parent => child has parent_id
Now, if any parent has too many children, you have to use an array of children in the parent structure.

well its the parent that should hold the child_id and not the child that should hold the parent_id. So I dont get your example


MSID: 88463 Version: 3 DOI: 10.1101/2<IP_ADDRESS>4286

MSID: 88463
Version: 3
Preprint DOI: https://doi.org/10.1101/2<IP_ADDRESS>4286
Step 1. Awaiting reviews
Editorial to post reviews via hypothesis
Useful links:

DocMap: https://data-hub-api.elifesciences.org/enhanced-preprints/docmaps/v2/by-publisher/elife/get-by-manuscript-id?manuscript_id=88463
New model tracking: https://docs.google.com/spreadsheets/d/1_fHaoOy7hjyocptKtVJRijeNpUY4hBS7Ck_aVmx6ZJk/
Reviews on sciety: https://sciety.org/articles/activity/10.1101/2<IP_ADDRESS>4286

For trouble shooting (e.g. no Docmaps available):

DocMap issue addressing: https://miro.com/app/board/uXjVNCwK6EI=/
Explore DataHub DocMaps API: https://lookerstudio.google.com/reporting/4c2f0368-babb-4beb-b5b3-497e7e7b0f08/page/ejphD
Unmatched submissions and preprints: https://lookerstudio.google.com/u/0/reporting/9f86204f-3bf7-477c-9b18-5c5ef141bf69/page/p_gxi57ha93c
Unmatched manuscripts spreadsheet: https://docs.google.com/spreadsheets/d/15QcK8w-ssB7109RQEDtFpJPZ0J5HTGxoHa_2TtpMBbg/edit#gid=1336081641

Step 2. Preview reviewed preprint
Production QC content ahead of publication
Instructions:

QC preview: https://prod--epp.elifesciences.org/previews/88463v3
Update ticket with any problems (add blocked label)
When QC OK, add QC OK label to ticket and add publication date and time to https://docs.google.com/spreadsheets/d/1amAlKvdLcaDp5W8Z8g77NmkwbMF5n_u89ArSqPMO8jg
Move card to next column
(At end of the day post link in #enhanced-preprint and ask for PDF to be generated)

Useful links:

Preprint DOI :  https://doi.org/10.1101/2<IP_ADDRESS>4286
Confirm reviews returned by EPP: https://prod--epp.elifesciences.org/api/reviewed-preprints/88463/v3/reviews
To update the MECA path in the docmap: https://docs.google.com/spreadsheets/d/1mctCQuNFBjSn97Lihy7_vBO6z7-N-oqyLv4clyi6zHg

Step 3: Awaiting search reindex
This step adds the reviewed preprint to the homepage: https://elifesciences.org
The search reindex is triggered once an hour. We need the reviewed preprint to be indexed as the search application serves the journal homepage.
Useful links:

Jenkins pipeline to reindex search can be triggered sooner or monitored here: https://alfred.elifesciences.org/job/process/job/process-reindex-reviewed-preprints/

Step 4: Published! PDF requested
Waiting for PDF to be generated
Useful links:

PDF tracking: https://docs.google.com/spreadsheets/d/106_XeDjmuBae7gexOTNzg60lapeqjl2aRn9DzupGyS8/

Step 5: Introduce PDF to data folder and git repo
Upload PDF to relevent folder in git repo https://github.com/elifesciences/enhanced-preprints-data/
Step 6: Done!

[ ] Kettle is on!

Not sure why the reviews aren't showing up. Will try re-running the temporal workflow.
In the meantime, there are definitely some issues with the structure of this one, and I'm also thinking that the we would benefit from a  general xslt for boxes since the display there is pants too.

I think we're good to go with this one now, but I don't think it ever got a 'proper' QC. @naushinthomson, please can I leave that to you?

@fred-atherden Looks like we've loaded the wrong preprint - the preview takes me to what looks like RP 92184

Ah whoops! 😅 Thanks for catching that Naushin! I've uploaded the correct package now and attempted reimport, but the temporal workflow keeps failing.
I'll look into it more later today

@naushinthomson, should be resolved now. LMK if you notice any further issues.


Does not respond on slack adapter

During testing, using the shell, forecast seem to work fine and responds with current forecast. When running hubot with the Slack adapter, I see the following message in the terminal, but nothing appears in Slack:
[Forecast] Requesting forecast data: https://api.forecast.io/forecast/[...]

@dankeller thanks for your interest! That would be the expected behavior:

You can make forecast requests
The bot sits, polling Dark Sky for inclement weather

However, the code is a total mess, and has some glaring bugs (see #3 for one example). I’ve been meaning to come back to it & refactor it completely, but have yet to do so.
Have you had any inclement weather since starting up your Hubot w/ hubot-forecast installed & configured?

Thanks for responding!
No inclement weather has been posted to slack since I setup hubot-forecast (2 months). We have definitely had rain, wind, etc in that time.
Nothing in the stdout but a lot of [Forecast] Sleeping but my logs only go back a few days.

@dankeller damn; sounds like hubot-forecast is well & truly broken as of now.
Sadly, I am not sure I will have any time to devote to it anytime soon. How’s your JavaScript? 😃

@dankeller I’m going to go ahead & close this. Please follow #15 if you want to know when I (maybe) get back to working on this.
We’re in the midst some bigger projects, so this has fallen far by the wayside.


Streaming table partitions aren't picked up on subsequent runs

Describe the bug
I have a streaming table with partitions (code below). The initial run works fine and partitions the data as expected. However, following runs will either delete + recreate the table (a couple weeks ago), or will error out saying the partitions can't be changed (as of around today).
Not sure where the issue lies...I suspect it could be in this repo, but haven't dug into the code. I have an email thread going with dbt support, as well.
Thank you!
Steps To Reproduce
$ dbt run --select=my_streaming_table
$ dbt run --select=my_streaming_table

Expected behavior
Add new records to the streaming table
Screenshots and log output
Error message (from Databricks DLT pipeline, not dbt)
org.apache.spark.sql.catalyst.ExtendedAnalysisException: Cannot change partition columns for table __materialization_mat_my_streaming_table_1.
Current: environment, date
Requested:

System information

DBT Cloud - "use latest version"

Additional context
Sample model:
# my_streaming_table.py

{{
  config(
    persist_docs={"relation": false, "columns": false},
    materialized = 'streaming_table',
    partition_by='environment,date',
    tblproperties = {
        'pipelines.autoOptimize.zOrderCols': 'id,status',
    }
  )
}}

select
  id,
  timestamp,
  data,
  status,
  environment,
  date
from stream {{ ref('my_upstream_source') }}
where {% if target.name not in ['prod'] %}
 date > DATE_SUB(CURRENT_DATE(), 1) and
{% endif %}

Can you email me a dbt.log of this happening<EMAIL_ADDRESS>

partition_by doesn't look formatted correctly.  It should be:
partition_by=['environment', 'date']

Does making this change work?

Hey @benc-db - thanks for the response. I just got around to trying that again. Looks like it works fine on 1.8.3 with the list format. I'm 99.9% sure we tried that a few weeks back (on 1.8.0?), since that's what I had in an example I was pointing people to. But who knows.
Anyways, I'll close this - thanks again!


Uncategorized notes

Places where I don't yet know where to put them:

"Finding useful work IS work" https://defenderofbasic.github.io/works-in-progress/snippets/Finding-useful-work-is-useful-work

i think this is really important to recognize & work on, it's a current bottleneck in society?

open source WORKS, the proof is that all big companies have bug bounty programs (the equation of money + moral reward [social capital?])

open source works, 90% of successful product dev at twitch was from users?? https://x.com/eshear/status/1800160332113133955

"Who are we now?" is doing for society, what statistics did for physics (stop trying to predict individual, predict society, based on average patterns)
enlightenment games: see news (and art) without categories, can you tell artists that are good before they are mainstream? can you tell truth that is not labelled as truth?

the book has to start with developing our own taste

I like the idea of the a company at first feeling forced to appease users in panic for the sake of it's brand before gradually realising they have a better vision of how their product ecosystem could work than they do 😂

from Alex Kennedy (https://bio.site/alexkennedy)


Script does not close/end on his own

Hi,
When running gemmapy from script+console using python3 the script does not close once running its course.
For example the following does run and gives me the result I expect, the 'done' get printed but I have to manually close the script in the console after. I tried adding a sys.exit() and exit() at the end but it didn't change anything.
import gemmapy
api_instance = gemmapy.GemmaPy()
api_response_h = api_instance.search_datasets(['NR5A1'], taxon="human")
for d in api_response_h.data:
    print(d.accession)
print('done')

I'm suspecting that there is a thread in the pool that is still running. I was mistaken, a daemon thread is actually not keeping the VM alive, but a regular thread like those created by the ThreadPoolExecutor do.
To debug this, we can inspect the callables of alive threads to see where they originated from.
https://stackoverflow.com/questions/49992329/the-workers-in-threadpoolexecutor-is-not-really-daemon

A version of this that works with the current gemmapy would be
import gemmapy
api = gemmapy.GemmaPy()
response = api.get_datasets('NR5A1', taxa = 'human')
print(response.experiment_accession)
print('done')

And the script seems to reach completion without an issue. Is this still replicable?


0.4.0 improvements

This PR adds some general improvement to the work of @rohithasrk done in version 0.4.0 alpha.
I eliminated some redundancies, added some missing static images for the jquery ui datepicker, slightly improved the UI and other minor improvement.

Coverage remained the same at 100.0% when pulling e7e555594a5161e9081e273b3cf24c441123e6f0 on 0.4.0-improvements into c6b3cdcce553ffe8f3c4166600a26bc1ba8290c9 on master.


kbfs dokan freezes file explorer and uses 100% CPU on Windows 10

kbfs dokan freezes file explorer and uses 100% CPU on Windows 10
I tried using it in Windows 10 Insider Preview latest build + just a regular updated Windows 10 (not Insider), and in both conditions it freezes very often.
As far as I saw (from observations only, didn't check the code), this might be related to the list of files browsing in-between folders. Everytime I enter a folder which contains more than a few files it takes a while until the explorer return to work. In some cases I even have to force close explorer in order to unfreeze my computer...
When I connect my phone to a computer and browse my files it sometimes take a while until all the files are listed, but instead of freezing explorer.exe it shows a loading bar and populating the files list on the go, my question is if this is possible to add this "lazy loading" feature on kbfs dokan as well

Thank you in advance!

Ouch, can you run keybase log send?

Just did :-)
Log ID: eb3ba04b0547e61a084f061c


Guidelines on how to run the notebook test files for "SQL+DF-Examples" and "XGBoost-Examples"

Describe the bug
We do not have any guidelines on how to run the notebook files under SQL+DF-Examples and XGBoost-Examples
The docs should include at least below information:
1, The OS/docker environment
2, The software/python packages
3, The datasets for the tests
4, The command line to run the notebook files
5, The output datasets generated
6, How to check PASS/FAILURE from the test result

Related proposal #472


Merge pull request #9 from shweta-fulzele/dev

Dev

Isnt this empty?

Sorry I did it by mistake
On Thu, 11 Jan, 2024, 8:40 pm Himanshu Singh, @.***>
wrote:

Isnt this empty?
—
Reply to this email directly, view it on GitHub
https://github.com/hi-manshu/Kalendar/pull/169#issuecomment-1887383025,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALGDBJCOLVBE32J4UDHEZYDYN76E5AVCNFSM6AAAAABBRNML2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBXGM4DGMBSGU
.
You are receiving this because you authored the thread.Message ID:
@.***>


Pylance installation toast doesn't do take me to installation page in Codespaces

When I open a Python file in a GitHub Codespace, I get to install the Python extension. Jedi is the default language server, but I can manually edit the setting to use Pylance. Next, I get this toast:

When I click on the “Yes” button, nothing happens unfortunately. This may be due to the fact that I’m in a remote session, running in a browser tab.
Environment data

Environment: GitHub Codespace
Language Server version: v2020.9.112786
OS and version: Linux codespaces_eadf1b 5.4.0-1026-azure microsoft/pylance-release#26~18.04.1-Ubuntu SMP Thu Sep 10 16:19:25 UTC 2020 x86_64 GNU/Linux
Python version (& distribution if applicable, e.g. Anaconda): Python 3.8.3 (64-bit)

Expected behaviour
Clicking the "Yes" button in the toast notification should take me to the extensions tab of Codespaces, and display the Pylance extension. I should then be able to click "Install" to get it going.
Actual behaviour
Nothing happens, the toast notification goes away and you're left with no Pylance. I happen to know that I can search for the extension, but getting to Pylance in Codespaces right now has a lot of friction.
Code Snippet / Additional information
I can manually search for the Pylance extension and install it. After that, Pylance starts as expected everything works normally.

Transferring; this is implemented in the core extension.
I think this is because the button uses a link like vscode:// or vscode-insiders://, but on Codespaces this link might be getting resolved on the user's system because it's in the browser.
VS Code doesn't offer a native way to open up the marketplace, so the link method was what I could do. I guess it doesn't play nicely for the browser. I wish VSC would expose its API to actually open this link.

I did some digging when debugging another issue, and VSC does have a command to open the marketplace search, however this only searches; it doesn't actually open up the marketplace entry itself. This would still need a new VSC API.


Set the SAML ACS url sent to a federated IDP per IDP

Hi All,
Currently, we can not set ACS Url per federated IdP. The ability to configure the "AssertionConsumerServiceURL" in the SAML AuthRequest is not supported per IdP in the OOTB wso2 identity server it would be great if we can add such improvement to the product. "AssertionConsumerServiceURL" was an optional parameter in the specification[1] which can be configured.
This improvement is nice to have feature in the identity server. Shall we provide such an improvement to the customer? WDYT?
[1] - https://docs.wso2.com/display/IS530/Configuring+SAML+2.0+Web+SSO  Fetch for "Configure ACL URL in a production environment"
[2] - Line number: 2062 in https://drive.google.com/file/d/1DDZFDEgz2dtQFW36rrBxViGU_EzUHzzW/view?usp=sharing

This is already done via https://github.com/wso2/product-is/issues/6925. But still, we don't have a tenant wise config. We only have system-wide config and per IDP config only.

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


Node debugger does not stop at breakpoints in CoffeeScript source file of Meteor app

VSCode Version: 1.7.1
OS Version: Windows 7
Meteor Version:  <IP_ADDRESS>

Steps to Reproduce:
I am trying to use sequentially the node debugger and the chrome debugger extension to debug a CoffeeScript leaderboard toy app using the dual, client and server sides, full-stack framework Meteor.
I put breakpoints in the server-side only code and in the client-side only code.
I use the following VSCode Extensions:

Meteor-Helper 0.1.1
Debugger for Chrome 2.2.0

Since

Meteor is a dual side framework with

client-side only code
server-side only code
isomorphic code running on both sides

and
2) According to Rob Lourens who is helping me with the chrome debugger extension issues, VSCode currently does not support **_launching simultaneously
_** both the server-side code built-in node debugger and the client-side code chrome debugger extension
I thus proceed as follow:

I have an Attach Server configuration in my launch.json file
{
"name": "Attach Server",
"type": "node",
"request": "attach",
"port": 5858,
"address": "localhost",
"restart": false,
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/.meteor/local/build/programs/server/app/app.js"],
"localRoot": "${workspaceRoot}",
"remoteRoot": null
},
I have an Attach Client configuration in my launch.json file
{
"name": "Attach Client",
"type": "chrome",
"request": "attach",
"port": 9222,
"address": "localhost",
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/.meteor/local/build/programs/web.browser/app/app.js"],
"diagnosticLogging": true,
"webRoot": "${workspaceRoot}",
"url": "http://localhost:3000/"
}

I put breakpoints in the server-side only app startup function.

Using Meteor-Helper, I execute the meteor debug command

I  then attach the node debugger.
VSCode ignores the breakpoints and goes on to execute the entire app until the point when the app is waiting for a user action.

At that point the breakpoints have turned hollow and grey and a hovering message says:

breakpoints ignored because generated code not found (soure map problem?)

The output window tells me that the app is running at: http://localhost:3000/

When I click on this url, VSCode opens the fs.js file (node file system) and stops before the return statement of the fs.statSync function defintion with the call stack saying "paused on exception and a blank page opens in my chrome browser saying "waiting for localhost"

Then when I click on the play icon of the node debugger, VSCode opens the future.js file, stopped at the  throw error line of the Future.prototype assignement statement and generating a Mongo Error connection time out

It is only when I pause the node debugger that the first page of my app finally appears in the browser

The Meteor packages I used are:
<EMAIL_ADDRESS>           # Packages every Meteor app needs to have
<EMAIL_ADDRESS>     # Packages for a great mobile UX
<EMAIL_ADDRESS>                 # The database Meteor supports right now
<EMAIL_ADDRESS>  # Compile .html files into Meteor Blaze views
<EMAIL_ADDRESS>          # Reactive variable for tracker
<EMAIL_ADDRESS>                # Helpful client-side library
<EMAIL_ADDRESS>               # Meteor's client-side reactive programming library
<EMAIL_ADDRESS> # CSS minifier run for production mode
<EMAIL_ADDRESS>  # JS minifier run for production mode
<EMAIL_ADDRESS>              # ECMAScript 5 compatibility for older browsers.
<EMAIL_ADDRESS>            # Enable ECMAScript2015+ syntax in app code
<EMAIL_ADDRESS>          # Server-side component of the meteor shell command
<EMAIL_ADDRESS>           # Publish all data to the clients (for prototyping)
<EMAIL_ADDRESS>              # Allow all DB writes from clients (for prototyping)
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>The CoffeeScript source code is:
(I chose Insert code, but it did not preserve the white spaces :( )
`class Player
constructor: (@name, @score = Math.floor(Math.random() * 10)) ->
class Leaderboard extends Mongo.Collection
insertNewPlayer: (playerName, score) ->
player = new Player(playerName, score)
@insert player
insertPlayers: (nameList, scoreList) ->
@insertNewPlayer(playerName) for playerName in nameList
@insert(_id:player._id, score) for score in scoreList
# self = @
rank: =>
[lead, followers...] = @find({}, {sort: {score: -1, name: 1}}).fetch()
rank = 1
@update {_id: lead._id}, {$set: {rank: rank}}
previousScore = lead.score
tiedCounter = 1
for player in followers
do (player) =>
if player.score is previousScore
tiedCounter = tiedCounter + 1
else
rank = rank + tiedCounter
tiedCounter = 1
@update _id: player._id, {$set: rank: rank}
previousScore = player.score
# self = @
aflLeaders = new Leaderboard("aflLeaders") unless aflLeaders?
if Meteor.isClient
Template.leaderboard.helpers
players: -> aflLeaders.find {}, {sort: {score: -1, name: 1}}
Template.player.events
'click tr>td>button': ->
@score = @score + 1
aflLeaders.update {_id: @_id}, @
aflLeaders.rank()
self = aflLeaders
if Meteor.isServer
Meteor.startup ->
if not (aflLeaders? and aflLeaders.findOne({})?)
aflLeaders.insertPlayers([
"Heath Shaw"
"Alex Rance"
"Easton Wood"
"Shaun Burgoyne"
"Jeremy McGovern"
"Matthew Boyd"
"Robbie Gray"
"Josh P. Kennedy"
"Patrick Dangerfield"
"Callan Ward"
"Max Gawn"
"Rory Sloane"
"Toby Greene"
"Lance Franklin"
"Cyril Rioli"
"Eddie Betts"
"Josh J. Kennedy"
"Jack Gunston"
"Josh Gibson"
"Liam Picken"
"Marcus Bontempelli"
"Rory Lobb"
],
[]
)
aflLeaders.rank()
self = aflLeaders`
The jade template file I used is:
` head
title Leaderboard
body
+leaderboard
template(name="leaderboard")
tr
th(colspan="4")
h4 Leaderboard
tr#sortButtonRaw
th#sortButtonCell
p rank
th
p player
th
p score
th
+each players
+player
template(name="player")
tr
td
p= rank
td
p= name
td
p= score
td
button vote`
I don't know if this is:

a node debugger bug, or
a bug in the Attach Server configuration of my launch.json file.

But with the very limited documentation currently available concerning what attributes to use and with what values to obtain what debugging behavior in such file, I can't figure out how to set it up correctly for a Meteor app programmed in CoffeeScript with the many sources maps that the build process of such app generates.
Thanks in advance for helping out of this quicksand.

obsolete; won't fix


Use execve instead of std::system

https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?pageId=87152177
We may want to implement a Command class to hide this complexity, like Rust's std::process::Command.
The only location we use std::system is currently the following (instead of taking std::string_view, let's take the Command class):
https://github.com/poac-dev/poac/blob/7c4f62ef0902c763571cff39576c46c2bccb8827/src/Algos.cc#L44
After addressing this, we can enable cert-env33-c in clang-tidy:
https://github.com/poac-dev/poac/blob/7c4f62ef0902c763571cff39576c46c2bccb8827/.clang-tidy#L14

I hope it is alright if I started to implement an abstraction for std::system (not yet complete). This is how it could be used: Command("cd").arg("poac").output()

That's great to hear, thank you for working on this!

However, we would like to avoid using malloc family directly. Instead, let's use higher-level libraries, such as std::string.

Sure, I have refactored it to use std::string. I can create a draft pull request.


Using Http Plugin: Duplicated Http Namespace

Describe the bug
The "Http" namespace gets duplicated when using the Http plugin in your wrapper's build.
Please provide the steps to reproduce and if possible a minimal demo of the problem.
Repro steps:

Create a new wasm project with CLI version >0.9.0:
polywrap create wasm rust test-wrapper
Import the Http module into your wrapper like so:#import { Module } into Http from "ens/http.polywrap.eth"

Run polywrap codegen to generate types.
Look at generated types, the Http namespace is duplicated, leading to Http_Http_Module in languages like wasm/assemblyscript, and HttpHttpModule in wasm/rust.

Expected behavior
Http namespace should only repeat once, for example HttpModule.
Relevant environment details:

Toolchain: 0.9.3

Additional context
This is happening because the Http plugin implements the Http interface. You can "fix" the problem by adding @polywrap/http-interface as an npm dependency, installing it, and adding this to your polywrap.yaml manifest:
source:
  ...
  import_abis:
    - uri: "ens/http.polywrap.eth"
      abi<EMAIL_ADDRESS>

This issue appears to be resolved: https://github.com/polywrap/http/blob/main/implementations/js/src/index.ts


create a new design

create a new design which includes the framework and the automatic updates.

Can you capture this with a uml tool and add it to the internal repo? Would be nice to have this for the documentation and the report

Is this done?

Yes it is. it can be found here:
https://gilbert.informatik.uni-stuttgart.de/minderki/online-catalog-of-cryptographic-libraries/tree/master/project_documentation/design


Support sourcemaps from multiple files (Fixes #8).

Here's my shot at this. Let me know what you think. I think the core of the issue is that inline-source-map's . addMappings function takes a filename, but the mappings already have a filename associated with them. Associating them with the name of the file containing the sourcemap doesn't make sense. It has worked up to now because single-file transforms don't change the filename, but when working with multiple files, it is an issue. In the short-term I just worked around that by passing the mapping's name directly.

Closing this PR as it was incorporated into PR #11.


Exclude files does not work properly

I am using large parts of the Backup-Script for PowerShell
All works well besides I am having trouble to exclude “C:\Program Files (x86)”. I put it into $Exclude and it is there even correct in REGEX format but at the end it does not work ☹.
Any help or hint would be highly appreciated.
Cheers
Thomas

Yeah , me too..

Solved with v2 Release


[Improvement][Flink]: Flink hive adaptive should be 'metastore.uris' free

Search before asking

[X] I have searched in the issues and found no similar issues.

What would you like to be improved?
For now, if there is no metastore.uris configuration in hive-site.xml, it will encounter an error, like
ERROR DataNucleus.Persistence                                      [] - Error : Could not find API definition for name "JDO". Perhaps you dont have the requisite datanucleus-api-XXX jar in the CLASSPATH?
It is inconvenient for some users who only config hive.server2.thrift.bind.host/port.
How should we improve?
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Subtasks
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

org.apache.iceberg.hive.CachedClientPool use metastore.uris as key to cache client pools,
so metastore.uris is necessary for the native iceberg hive catalog.
We may should put this configuration info hive configuration if hive-site.xml lack of it.

But the reason why flink job will throw the exception is also unknown as ams is fine when connecting hive metastore.

Closed as not updated for a long time.


Config PubSub publisher to use a large batch size

I've been able to verify that this works, publishing some zgrab results to an internal testing PubSub topic.

I attempted to hack in retry support for this PR. Not confident in it yet, but it's a start.


Better way to find child elements of carousel.

I ran into this problem when I added prev and next buttons markup between the id="carousel" and class="carousel-inner" tags.

Probably not applicable anymore.


Add support for SigningConfig

Created a simple wrapper around the protobuf SigningConfig. I mirrored the existing code for TrustedRoot, though this is far simpler since this is just a few strings.
I didn't add support for ClientTrustConfig since we won't distribute this file via TUF, but this would be easy enough to add later on.
Fixes #185

Summary

Release Note

Documentation

We should hold off on merging til https://github.com/sigstore/protobuf-specs/issues/451 is complete.


name 'LGBMRegressor' is not defined

I am getting this error while trying to use the MimicExplainer in your advanced-feature-transformations-explain-local.ipynb notebook.
I have lightgbm and all installed, but cannot seem to get this working. The SHAP based explainers are working fine, but running
explainer = MimicExplainer(clf.steps[-1][1],
                            x_train,
                            LGBMExplainableModel,
                           augment_data=True,
                            max_num_of_augmentations=10,
                            features=x_train.columns,
                            transformations=transformations,
                            allow_all_transformations=True)

gives the error
NameError                                 Traceback (most recent call last)
<ipython-input-27-abf3dd406d1c> in async-def-wrapper()
     27
     28
---> 29
     30
     31

~/anaconda3/envs/interp/lib/python3.6/site-packages/interpret_community/dataset/decorator.py in init_wrapper(self, model, initialization_examples, *args, **kwargs)
     36         if not isinstance(initialization_examples, DatasetWrapper):
     37             initialization_examples = DatasetWrapper(initialization_examples)
---> 38         return init_func(self, model, initialization_examples, *args, **kwargs)
     39     return init_wrapper

~/anaconda3/envs/interp/lib/python3.6/site-packages/interpret_community/mimic/mimic_explainer.py in __init__(self, model, initialization_examples, explainable_model, explainable_model_args, is_function, augment_data, max_num_of_augmentations, explain_subset, features, classes, transformations, allow_all_transformations, shap_values_output, categorical_features, model_task, reset_index, **kwargs)
    302             explainable_model_args[ExplainParams.SHAP_VALUES_OUTPUT] = shap_values_output
    303         self.surrogate_model = _model_distill(self.function, explainable_model, training_data,
--> 304                                               original_training_data, explainable_model_args)
    305         self._method = self.surrogate_model._method
    306         self._original_eval_examples = None

~/anaconda3/envs/interp/lib/python3.6/site-packages/interpret_community/mimic/model_distill.py in _model_distill(teacher_model_predict_fn, uninitialized_surrogate_model, data, original_training_data, explainable_model_args)
     67                                                         **explainable_model_args)
     68     else:
---> 69         surrogate_model = uninitialized_surrogate_model(**explainable_model_args)
     70     if is_classifier and teacher_y.shape[1] == 2:
     71         # Make sure output has only 1 dimension

~/anaconda3/envs/interp/lib/python3.6/site-packages/interpret_community/mimic/models/lightgbm_model.py in __init__(self, multiclass, random_state, shap_values_output, classification, **kwargs)
     93             initializer = LGBMClassifier
     94         else:
---> 95             initializer = LGBMRegressor
     96         self._lgbm = initializer(random_state=random_state, **initializer_args)
     97         super(LGBMExplainableModel, self).__init__(**kwargs)

NameError: name 'LGBMRegressor' is not defined

ok
Em seg, 28 de set de 2020 4:15 PM, anindya5<EMAIL_ADDRESS>escreveu:

I am getting this error while trying to use the MimicExplainer in your
advanced-feature-transformations-explain-local.ipynb notebook.
I have lightgbm and all installed, but cannot seem to get this working.
The SHAP based explainers are working fine, but running
explainer = MimicExplainer(clf.steps[-1][1],
x_train,
LGBMExplainableModel,
augment_data=True,
max_num_of_augmentations=10,
features=x_train.columns,
transformations=transformations,
allow_all_transformations=True)
gives the error
NameError                                 Traceback (most recent call last)
 in async-def-wrapper()
27
28
---> 29
30
31
~/anaconda3/envs/interp/lib/python3.6/site-packages/interpret_community/dataset/decorator.py in init_wrapper(self, model, initialization_examples, *args, **kwargs)
36         if not isinstance(initialization_examples, DatasetWrapper):
37             initialization_examples = DatasetWrapper(initialization_examples)
---> 38         return init_func(self, model, initialization_examples, *args, **kwargs)
39     return init_wrapper
~/anaconda3/envs/interp/lib/python3.6/site-packages/interpret_community/mimic/mimic_explainer.py in init(self, model, initialization_examples, explainable_model, explainable_model_args, is_function, augment_data, max_num_of_augmentations, explain_subset, features, classes, transformations, allow_all_transformations, shap_values_output, categorical_features, model_task, reset_index, **kwargs)
302             explainable_model_args[ExplainParams.SHAP_VALUES_OUTPUT] = shap_values_output
303         self.surrogate_model = _model_distill(self.function, explainable_model, training_data,
--> 304                                               original_training_data, explainable_model_args)
305         self._method = self.surrogate_model._method
306         self._original_eval_examples = None
~/anaconda3/envs/interp/lib/python3.6/site-packages/interpret_community/mimic/model_distill.py in _model_distill(teacher_model_predict_fn, uninitialized_surrogate_model, data, original_training_data, explainable_model_args)
67                                                         **explainable_model_args)
68     else:
---> 69         surrogate_model = uninitialized_surrogate_model(**explainable_model_args)
70     if is_classifier and teacher_y.shape[1] == 2:
71         # Make sure output has only 1 dimension
~/anaconda3/envs/interp/lib/python3.6/site-packages/interpret_community/mimic/models/lightgbm_model.py in init(self, multiclass, random_state, shap_values_output, classification, **kwargs)
93             initializer = LGBMClassifier
94         else:
---> 95             initializer = LGBMRegressor
96         self._lgbm = initializer(random_state=random_state, **initializer_args)
97         super(LGBMExplainableModel, self).init(**kwargs)
NameError: name 'LGBMRegressor' is not defined
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/interpretml/interpret-community/issues/331, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AMX2QT42F72IDMDVZG4J2NTSIDOGBANCNFSM4R44FQYQ
.

@anindya5 strange, can you do the import manually in your python environment?
from lightgbm import LGBMRegressor, LGBMClassifier, Booster
init_func = LGBMRegressor

Perhaps the import errors are getting suppressed here, do you see anything printed:
with warnings.catch_warnings():
    warnings.filterwarnings('ignore', 'Starting from version 2.2.1', UserWarning)
    import shap
    try:
        from lightgbm import LGBMRegressor, LGBMClassifier, Booster
        import lightgbm
        if (version.parse(lightgbm.__version__) <= version.parse('2.2.1')):
            print("Using older than supported version of lightgbm, please upgrade to version greater than 2.2.1")
    except ImportError:
        print("Could not import lightgbm, required if using LGBMExplainableModel")

@anindya5 is this issue resolved? Are you able to proceed?
Regards

@anindya5, closing this issue since there is no response on this thread. Please feel free to reopen if you continue to run into this error.
Regards

Still seeing this issue ? Does anyone has any resolution ?

@nayanaramakanth Sorry about the issue you are having.  Do you have lightgbm package installed in your environment?  Can you show the output of:
pip show lightgbm
Specifically what version of lightgbm you have?

Hi,
I'm having the same problem. In my case I'm following this AzureML tutorial.
https://docs.microsoft.com/en-us/azure/machine-learning/how-to-machine-learning-interpretability
And when I try to execute this part:
from interpret.ext.blackbox import MimicExplainer

from lightgbm import LGBMRegressor, LGBMClassifier, Booster
init_func = LGBMRegressor

# you can use one of the following four interpretable models as a global surrogate to the black box model

from interpret.ext.glassbox import LGBMExplainableModel
from interpret.ext.glassbox import LinearExplainableModel
from interpret.ext.glassbox import SGDExplainableModel
from interpret.ext.glassbox import DecisionTreeExplainableModel

# "features" and "classes" fields are optional
# augment_data is optional and if true, oversamples the initialization examples to improve surrogate model accuracy to fit original model.  Useful for high-dimensional data where the number of rows is less than the number of columns.
# max_num_of_augmentations is optional and defines max number of times we can increase the input data size.
# LGBMExplainableModel can be replaced with LinearExplainableModel, SGDExplainableModel, or DecisionTreeExplainableModel
explainer2 = MimicExplainer(model,
                           x_train,
                           LGBMExplainableModel,
                           augment_data=True,
                           max_num_of_augmentations=10,
                           features=breast_cancer_data.feature_names,
                           classes=classes)_

I have the commented error
C:\ProgramData\Anaconda3\lib\site-packages\interpret_community\mimic\models\lightgbm_model.py in __init__(self, multiclass, random_state, shap_values_output, classification, **kwargs)
    173             initializer = LGBMClassifier
    174         else:
--> 175             initializer = LGBMRegressor
    176         self._lgbm = initializer(random_state=random_state, **initializer_args)
    177         super(LGBMExplainableModel, self).__init__(**kwargs)

NameError: name 'LGBMRegressor' is not defined_

Here is the result of "pip show lightgbm"
Name: lightgbm
Version: 3.3.2
Summary: LightGBM Python Package
Home-page: https://github.com/microsoft/LightGBM
Author: None
Author-email: None
License: The MIT License (Microsoft)
Location: c:\programdata\anaconda3\lib\site-packages
Requires: numpy, scipy, wheel, scikit-learn
Required-by:

Hi @nayanaramakanth can you help with this, thanks in advance....

can you try doing an import in your python environment manually, eg:
from lightgbm import LGBMRegressor, LGBMClassifier, Booster

this error indicates that this import is just not working for some reason


use a function as target

Possibility to use a function as target

Sorry, but I can't properly review this diff given the change in indentation mucking about with the output. =(
If you'd like, please feel free to submit a new PR with code style that more closely matches what's currently in master. That said, I'd prefer to avoid merging in feature changes at this time, so depending on how significant the change is, it might not get merged at this time.


Email report not working - 0.36 superset

Test email reports are not working for "Rawdata" and "visualization" with superset 0.36.
Error trace for "rawdata report" :
ERROR/ForkPoolWorker-1] Task email_reports.send[4875e94f-0225-4dc7-a0df-f874e98b419d] raised unexpected: OSError()
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 385, in trace_task
R = retval = fun(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/superset/app.py", line 115, in call
return task_base.call(self, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 650, in protected_call
return self.run(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/superset/tasks/schedules.py", line 384, in schedule_email_report
deliver_slice(schedule)
File "/usr/local/lib/python3.6/site-packages/superset/tasks/schedules.py", line 345, in deliver_slice
email = _get_slice_data(schedule)
File "/usr/local/lib/python3.6/site-packages/superset/tasks/schedules.py", line 271, in _get_slice_data
response = opener.open(slice_url)
File "/usr/local/lib/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
File "/usr/local/lib/python3.6/urllib/request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/local/lib/python3.6/urllib/request.py", line 570, in error
return self._call_chain(*args)
File "/usr/local/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.6/urllib/request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
OSError
Error trace for "visualization" report type:
ile "/usr/local/lib/python3.6/site-packages/superset/tasks/schedules.py", line 347, in deliver_slice
email = _get_slice_visualization(schedule)
[2021-02-26 12:05:43,649: WARNING/ForkPoolWorker-1] File "/usr/local/lib/python3.6/site-packages/superset/tasks/schedules.py", line 316, in _get_slice_visualization
logger.info(f'driver fget url',dr)
[2021-02-26 12:05:43,649: WARNING/ForkPoolWorker-1] Message: 'driver fget url'
Arguments: (None,)
[2021-02-26 12:05:43,656: WARNING/ForkPoolWorker-1] Message: Unable to locate element: .chart-container
, retrying in 60 seconds...
[2021-02-26 12:06:43,765: ERROR/ForkPoolWorker-1] Task email_reports.send[59a35c70-edd7-411f-af0e-5637a1ee60c3] raised unexpected: NoSuchElementException('Unable to locate element: .chart-container', None, None)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 385, in trace_task
R = retval = fun(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/superset/app.py", line 115, in call
return task_base.call(self, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 650, in protected_call
return self.run(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/superset/tasks/schedules.py", line 384, in schedule_email_report
deliver_slice(schedule)
File "/usr/local/lib/python3.6/site-packages/superset/tasks/schedules.py", line 347, in deliver_slice
email = _get_slice_visualization(schedule)
File "/usr/local/lib/python3.6/site-packages/superset/tasks/schedules.py", line 324, in _get_slice_visualization
delay=PAGE_RENDER_WAIT,
File "/usr/local/lib/python3.6/site-packages/retry/api.py", line 101, in retry_call
return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter, logger)
File "/usr/local/lib/python3.6/site-packages/retry/api.py", line 33, in __retry_internal
return f()
File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 564, in find_element_by_class_name
return self.find_element(by=By.CLASS_NAME, value=name)
File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 978, in find_element
'value': value})['value']
File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: .chart-container
WARNING:flask_appbuilder.security.decorators:Access is Denied for: can_dashboard on: Superset
WARNING:flask_appbuilder.security.decorators:Access is Denied for: can_explore_json on: Superset
Screenshots
In activity log user is populated as a null for test email reports.

Environment

superset version: 0.36
python version: 3.6
node.js version: 12
Selenium: 3.141.0
gecko : 0.29
firefox : 78.7.0esr

After fixing below mentioned 2 issues superset started sending beautiful chart emails.

Identified and fixed the issue exists with the way how cookies were used.
SMTP related code w.r.t email dryrun.


NatssChannel Dispatcher Refactor

Problem
In order to be able to report data plane metrics for the NatssChannel, we need to refactor it to use the CloudEvents SDK, instead of MessageDispatcher and MessageReceiver.
Persona:
Contributor
Exit Criteria
The NatssChannel dispatcher uses the CloudEvents SDK.
Additional Context:

https://github.com/knative/eventing/issues/1892
Example from knative-gcp: https://github.com/google/knative-gcp/blob/master/pkg/pubsub/adapter/adapter.go

/assign @sayanh
Sayan I'm assigning it to you so that it's in your radar. I know you've been working on the control plane metrics for natss.

fyi @Harwayne @vaikas-google

/assign @Abd4llA not sure why cannot assign it to @sayanh, but just so that you have it on your radar.

/milestone v0.10.0

/assign @sayanh

@sayanh the IMC refactor just got in! along with few other things... See here: https://github.com/knative/eventing/pull/1933
This one can do something similar, and start using the eventReceiver and eventDispatcher.

Hi @sayanh, are you working on this issue?
I would like to submit a PR.


migration from one drive to another

I have added my old drive and my new drive to gdrive and would like to transfer everything from my old one to my new one without downloading to my local disk first. Is this possible?
Thank you!

Yea but doesn’t this use your bandwidth cyberduck doesnt do a very good job letting you know it does but I tired it and noticed it does I was trying ftp to drive although
Still trying to find the best way to do this.......


fix: ensure ping() resolves when the node does not respond

fixes: https://github.com/zwave-js/node-zwave-js/issues/6062
fixes: https://github.com/zwave-js/zwave-js-ui/issues/3182

@zwave-js-bot automerge


pnpm run dev:firefox fails

Describe the bug
pnpm run dev:firefox fails with the following error
> cross-env __DEV__=true __FIREFOX__=true vite build -w --mode development

><EMAIL_ADDRESS>wss /Users/dkJakGud/git/chrome-extension-boilerplate-react-vite
> node utils/reload/initReloadServer.js

[HRS] Server listening at ws://localhost:8081
vite v5.0.0 building for development...

watching for file changes...

build started...
✓ 71 modules transformed.
[vite:esbuild-transpile] Transform failed with 1 error:
src/pages/content/index.js:64:110: ERROR: Expected ")" but found ";"

Expected ")" but found ";"
62 |  };
63 |
64 |  __vitePreload(() => import(browser.runtime.getURL('./') + '../../../assets/js/index.js'.split('../').join(''));,true?"__VITE_PRELOAD__":void 0);
   |                                                                                ^
65 |  __vitePreload(() => import(browser.runtime.getURL('./') + '../../../assets/js/injected.js'.split('../').join(''));,true?"__VITE_PRELOAD__":void 0);
66 |  console.log("content loaded");

To Reproduce
Steps to reproduce the behavior:

Clone repo
Change name and description in package.json
Run pnpm install
Run pnpm run dev:firefox

Expected behavior
It should build
Desktop (please complete the following information):

OS: Mac
Browser Firefox
Node Version v18.12.0 (same as .npmrc)

I'm also encountering the same issue.

I fixed it. Sorry about that.

https://github.com/Jonghakseo/chrome-extension-boilerplate-react-vite/pull/314

@all-contributors please add @jguddas for bug


MQTT Documentation missing

There are a few references to MQTT throughout the docs and code.  I wasn't able to find the code that is actually sending any MQTT messages.
Specifically, I'm trying to figure out how to route data from my nodes (sensor data) to a private MQTT server, with a specific topic.
Is this possible or am I misunderstanding the comments/doc references to MQTT?

You subscribe to the mqtt server. What you receive from there you can send to your own mqtt.

You subscribe to the mqtt server from TTN. What you receive from there you can send to your own mqtt.

Right 😉
But documentation (and an example) around this would be great.


Add json-schema builder

I saw there is a json-schema smithy builder however smithy doesn't seem to support exporting the models to json-schema as an output and it seems like the json-schema builder is an intermediary for OpenAPI.
The use case I have is to have Smithy create a JSON Schema file which can then be imported into dynamic form builders that consumes JSON Schema. Is there a workaround to enable JSON Schema to be exported?

We use the smithy-jsonschema library as the basis for conversion to OpenAPI (smithy-openapi) and to generate CloudFormation Resource Schemas (smithy-aws-cloudformation). We don't currently offer a straight-to-JSON Schema build output, mostly because so many different outputs build on top of JSON Schema with specific use cases (for example, how do they handle Smithy's service, resource, and operation shapes?)
For your specific use case, you can create a Smithy build plugin by implementing the SmithyBuildPlugin interface and using the JsonSchemaConverter to jump-start the process.


⚠ Bofrost.de has degraded performance

In 5abce90, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 742 ms

Resolved: Bofrost.de performance has improved in d82b94e after 310 days, 18 hours, 36 minutes.


Automatically resize the text to take the whole silde

Could you add some details to this issue?

Basically I want to have something like
<app-slide><app-autosize>TypeScript is a language compiled to JavaScript</app-autosize></app-slide>```
And then the component will scale the font-size until it takes the whole space.

![ng2ts codelab](https://cloud.githubusercontent.com/assets/2545357/25362829/5c6ab692-2924-11e7-9ec5-9bc3342f5823.png)

@kirjs does #13 solve this?

No, that's a different thing

Turns out we don't really need this


Glyph picking incorrect for CJK [Tracking issue]

A multitude of issues have surfaced related to Flutter choosing the wrong versions of glyphs for various CJK languages. This issue is to track them and hopefully see if there is a common thread to these issues. Many of these bugs are in iOS only, which may point to changes or problems with CoreText.
The following bugs are possibly related:
https://github.com/flutter/flutter/issues/36527 [iOS]App in simplified Chinese. After using the app for a period of time, it may appear that the font is disordered, which may be big or small
https://github.com/flutter/flutter/issues/40184 Font fallback is misbehaving on iOS 13 for certain glyphs
https://github.com/flutter/flutter/issues/40246 Android Nexus5 Text 'ja' Locale is not working

I guess this here too
https://github.com/flutter/flutter/issues/40823#issuecomment-533944101
I tried to reproduce on Android with latest master where it does not happen.

https://github.com/flutter/engine/pull/12426 has landed, which should fix a significant part of this bug.

That means it's already in master?

As of now, I believe it is in master.

All but #40184 (pending verification of fix) have been closed, so I will close this tracking issue now!


Missing id argument in extension dialogs method

          fullscreen dialog id always => '\$FullScreenDialog', maybe you missing to add the id into fullscreen dialog

Originally posted by @dragongesa in https://github.com/feduke-nukem/flutter_easy_dialogs/issues/27#issuecomment-2227397878

check on line 790 on lib/src/core/easy_dialogs_controller.dart supposed to have id parameter on there i guess

Thankyou, i hope this fixed asap 👍🏻

@dragongesa 4.0.1 version has been published. You are welcome to try it

never see repo owner this fast to fixed issue 😮
thankyou sir, i will try it