PDF with embedded JS is failing

I have some pdf's that have some js functions inside them, like mailto for example.
The pdf's were not created by me though, so I do not know how this was done, but I can see that if I click on a certain phrase in the pdf, then the email client will open. This is viewing the pdf in my Mac pdf viewer.
Now If I try to open the same pdf in my PDF.JS application, it enters in an infinite loop and never finishes loading all the pages.

Please make sure to actually provide all of details requested in ISSUE_TEMPLATE.md when opening an issue, as-is there's unfortunately no actionable information provided and the issue will be closed as INCOMPLETE.

Now If I try to open the same pdf in my PDF.JS application, it enters in an infinite loop and never finishes loading all the pages.

Please see https://github.com/mozilla/pdf.js/blob/master/.github/CONTRIBUTING.md (emphasis mine):

If you are developing a custom solution, first check the examples at https://github.com/mozilla/pdf.js#learning and search existing issues. If this does not help, please prepare a short well-documented example that demonstrates the problem and make it accessible online on your website, JS Bin, GitHub, etc. before opening a new issue or contacting us on the IRC channel -- keep in mind that just code snippets won't help us troubleshoot the problem.


Improve Arcs startup by removing idle debouncing

This saves 70-80 ms for Arc startup time.

Is waitForIdle used outside of testing situations?

Is waitForIdle used outside of testing situations?

It's being used by StorageProxy as well as EntityHandleManager.

Is waitForIdle used outside of testing situations?

It's being used by StorageProxy as well as EntityHandleManager.

Yes, it's called in:
StorageProxy.waitForIdle - which is only called by code under javatests as far as I can find.
And
EntityHandleManager.close - is improving the close method helping us improve startArc time?

Is waitForIdle used outside of testing situations?

It's being used by StorageProxy as well as EntityHandleManager.

Yes, it's called in:
StorageProxy.waitForIdle - which is only called by code under javatests as far as I can find.
And
EntityHandleManager.close - is improving the close method helping us improve startArc time?
^ re: optimizing EntityHandleManager.close on startArc, it helps serialization specifically
https://github.com/PolymerLabs/arcs/blob/master/java/arcs/core/host/ArcHostContextParticle.kt#L180


BAU: Re-run failed tests

The tests seem to fail quite often due to seemingly random timeouts. This is an attempt to improve the reliability of our builds.
As suggested in https://github.com/alphagov/verify-eidas-pipelines/pull/42#issuecomment-492150739
Also change verify-service-provider-config-repo icon to settings

@blairboy362 can you please re-review this


raw template working?

Thanks for sharing this.  Tried to do the multi-slide markdown using this code but can't seem to get the raw template working.  The slides all show up on one page.  Cannot find any demos of this feature working on the repo.

Yup the raw template is working,
Look in to the index.html and replace "presentation" with "raw" and it should display the content of the index page as a multi page presentation


Gulp: Critical CSS

One of the most important things on web right now is performance. The latter often means the page load speed, which is directly influenced by the weight and amount of resources page needs. While this is not the general suggestion to optimize stack performance, I am talking more about generating critical CSS.
Possible solution: Gulp Critical.
Idea behind it is to generate critical CSS and load it first, while loading other CSS async. This should be doable since we use templating, resulting in static HTML in the end.

This topic should be researched and tested on something real first.
After that we can implement it based on the results.
We agreed that @kettanaito will look into it when he has some spare time.
I’ll close the issue for now, let’s reopen a new one when that time comes.
Thanks for the idea.

As I was testing 2 similar tools about year ago, Gulp critical and one other was not working correctly. Let’s test it again and if the situation will be the same, try to focus on app shells https://developers.google.com/web/updates/2015/11/app-shell or splash content screens like FB do.

Update status: I have tested Critical on Zindulka and it takes around 2 minutes to compile critical CSS for a big project.

Are you processing all templates, or only homepage? How it works with responsivity? And the results, is it OK?


[BD-46] docs: fixed action row checkbox

Description
Fixed action row checkbox on the mobile version of the site.
JIRA

Deploy preview

Action row

Merge Checklist

[ ] If your update includes visual changes, have they been reviewed by a designer? Send them a link to the Netlify deploy preview, if applicable.
[x] Does your change adhere to the documented style conventions?
[x] Do any prop types have missing descriptions in the Props API tables in the documentation site (check deploy preview)?
[x] Were your changes tested using all available themes (see theme switcher in the header of the deploy preview, under the "Settings" icon)?
[x] Were your changes tested in the example app?
[x] Is there adequate test coverage for your changes?
[x] Consider whether this change needs to reviewed/QA'ed for accessibility (a11y). If so, please add wittjeff and adamstankiewicz as reviewers on this PR.

Post-merge Checklist

[x] Verify your changes were released to NPM at the expected version.
[x] If you'd like, share your contribution in #show-and-tell.
[x] 🎉 🙌 Celebrate! Thanks for your contribution.

Thanks for the pull request, @PKulkoRaccoonGang! I've created BLENDED-1250 to keep track of it in Jira.   More details are on the BD-46 project page.
When this pull request is ready, tag your edX technical lead.

@PKulkoRaccoonGang 🎉 Your pull request was merged!  Please take a moment  to answer a two question survey so we can improve your experience in the future.


WIP: [importer] Adjust for new dependency scanner API

This PR updates the dependency scanner, reflecting changes made to Clang in https://github.com/apple/llvm-project/pull/5234.

Sorry https://github.com/apple/swift/pull/60807 introduced a merge conflict here.

This is good to land, since swift-driver currently overloads -o for PCM generation. But in the future we will look to use this flow instead for determining the ultimate PCM destination paths.

This is, in fact, not good to land.
The change of clang scan-deps to emit cc1 arguments will take some rearchitecting on the Swift side.

https://github.com/apple/llvm-project/pull/5234
@swift-ci test

https://github.com/apple/llvm-project/pull/5234
@swift-ci test

https://github.com/apple/llvm-project/pull/5234
@swift-ci test

https://github.com/apple/llvm-project/pull/5234
@swift-ci test Windows platform


Crash when building with debug symbols.

I tried to build the software with debug symbols and GCC crashed. Any suggestions for how to do this? I have also tried with clang and had a similar result.
Bug report to GCC - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70599

Hey,
Thanks for interest in my software, and the bug report!
I have successfully built with debug symbols with clang. Your error message on the bug report says Killed which means you ran out of memory, rather than an actual crash.
Maybe you need more memory?
Are you using 32-bit userspace? This won't work well due to limited virtual memory. Since we build the compiler from source using Nix-expressions, if you use 64-bit Nix stuff, you'll get a 64-bit compiler, and then you just need enough RAM ;)
Can you send me your aprinter config file so I can try building?

I will also try to do some changes in the code that will reduce the number of template parameters in symbol names.

Config file is here - http://pastebin.com/pQxRQETX
I have 8 GB memory and I have installed 64 bit Nix (using the file command on the GCC compiler confirms it is a 64-bit executable). I also have 8 GB of swap space (maybe this is not being used properly, I will check). Either way, this is a lot of resource to compile something that is ~30k lines after preprocessing!
I will have another try with clang too.
Thanks :)

Clang failed again. It didn't use up all of my memory before it bailed, unlike GCC. Here is the output:
Compiling C++ files

/nix/store/pi4avl7sjbrb1linsm0d50wn0ayn9xz6-clang-arm-embedded-3.7.0/bin/arm-none-eabi-clang -x c++ -c -mcpu=cortex-m3 -mthumb -fno-math-errno -fno-trapping-math -fshort-enums -fno-rtti -fno-exceptions -DNDEBUG -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -I. -Wfatal-errors -Wno-absolute-value -Wno-undefined-internal -Wno-deprecated-register -ffunction-sections -fdata-sections -DAPRINTER_BROKEN_FABS -Wno-unsequenced -D__SAM3X8E__ -DHEAP_SIZE=16384 -DBOARD=43 -I/nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/sam/utils/cmsis/sam3x/include -I/nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/sam/utils/cmsis/sam3x/source/templates -I/nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/sam/utils -I/nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/sam/utils/preprocessor -I/nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/sam/utils/header_files -I/nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/sam/boards -I/nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/sam/drivers/pmc -I/nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/sam/drivers/pio -I/nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/sam/drivers/dmac -I/nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/sam/drivers/emac -I/nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/sam/drivers/rstc -I/nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/common/utils -I/nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/common/services/usb -I/nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/common/services/usb/udc -I/nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/common/services/clock -I/nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/common/services/sleepmgr -I/nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/common/services/ioport -I/nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/common/services/usb/class/cdc -I/nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/common/services/usb/class/cdc/device -I/nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/common/boards -I/nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/thirdparty/CMSIS/Include -I/nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework -I aprinter/platform/at91sam3x -DUSB_SERIAL -std=c++11 -fno-access-control -ftemplate-depth=1024 -g ./main/aprinter-nixbuild.cpp -o ./build/aprinter-nixbuild.o
arm-none-eabi-clang: /tmp/nix-build-clang-arm-embedded-3.7.0.drv-0/llvm-3.7.0.src/lib/IR/Metadata.cpp:160: void llvm::ReplaceableMetadataImpl::replaceAllUsesWith(llvm::Metadata*): Assertion `!(MD && isa(MD) && cast(MD)->isTemporary()) && "Expected non-temp node"' failed.
0  arm-none-eabi-clang 0x0000000002690445 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1  arm-none-eabi-clang 0x000000000268f689
2  libpthread.so.0     0x00007fe1dc31dc20
3  libc.so.6           0x00007fe1db57b297 gsignal + 55
4  libc.so.6           0x00007fe1db57c69a abort + 362
5  libc.so.6           0x00007fe1db5743e6
6  libc.so.6           0x00007fe1db574492
7  arm-none-eabi-clang 0x00000000025247bb
8  arm-none-eabi-clang 0x0000000000907155 clang::CodeGen::CGDebugInfo::finalize() + 677
9  arm-none-eabi-clang 0x0000000000986021 clang::CodeGen::CodeGenModule::Release() + 609
10 arm-none-eabi-clang 0x00000000008dfcee
11 arm-none-eabi-clang 0x0000000000b14255 clang::ParseAST(clang::Sema&, bool, bool) + 709
12 arm-none-eabi-clang 0x00000000008e0acb clang::CodeGenAction::ExecuteAction() + 59
13 arm-none-eabi-clang 0x00000000006f48e6 clang::FrontendAction::Execute() + 502
14 arm-none-eabi-clang 0x00000000006cc061 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 353
15 arm-none-eabi-clang 0x00000000006b0cd3 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2099
16 arm-none-eabi-clang 0x00000000006a7fe8 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 2936
17 arm-none-eabi-clang 0x0000000000685bd1 main + 1569
18 libc.so.6           0x00007fe1db568985 __libc_start_main + 245
19 arm-none-eabi-clang 0x00000000006a6bb9 _start + 41
Stack dump:

Program arguments: /nix/store/pi4avl7sjbrb1linsm0d50wn0ayn9xz6-clang-arm-embedded-3.7.0/bin/arm-none-eabi-clang -cc1 -triple thumbv7m-none--eabi -emit-obj -mrelax-all -disable-free -main-file-name aprinter-nixbuild.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu cortex-m3 -target-feature +soft-float-abi -target-abi aapcs -mfloat-abi soft -target-linker-version 2.23.1 -g -dwarf-column-info -ffunction-sections -fdata-sections -coverage-file /home/graeme/3D_Printer/aprinter/./build/aprinter-nixbuild.o -resource-dir /nix/store/pi4avl7sjbrb1linsm0d50wn0ayn9xz6-clang-arm-embedded-3.7.0/bin/../lib/clang/3.7.0 -D NDEBUG -D __STDC_LIMIT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_CONSTANT_MACROS -D APRINTER_BROKEN_FABS -D SAM3X8E -D HEAP_SIZE=16384 -D BOARD=43 -D USB_SERIAL -I . -I /nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/sam/utils/cmsis/sam3x/include -I /nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/sam/utils/cmsis/sam3x/source/templates -I /nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/sam/utils -I /nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/sam/utils/preprocessor -I /nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/sam/utils/header_files -I /nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/sam/boards -I /nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/sam/drivers/pmc -I /nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/sam/drivers/pio -I /nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/sam/drivers/dmac -I /nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/sam/drivers/emac -I /nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/sam/drivers/rstc -I /nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/common/utils -I /nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/common/services/usb -I /nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/common/services/usb/udc -I /nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/common/services/clock -I /nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/common/services/sleepmgr -I /nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/common/services/ioport -I /nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/common/services/usb/class/cdc -I /nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/common/services/usb/class/cdc/device -I /nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/common/boards -I /nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework/thirdparty/CMSIS/Include -I /nix/store/5zqyagbnfaxrqizldzy5rd53cdhb517n-atmel-software-framework -I aprinter/platform/at91sam3x -Wfatal-errors -Wno-absolute-value -Wno-undefined-internal -Wno-deprecated-register -Wno-unsequenced -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /home/graeme/3D_Printer/aprinter -ftemplate-depth 1024 -ferror-limit 19 -fmessage-length 271 -mstackrealign -fno-access-control -fno-rtti -fshort-enums -fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option -o ./build/aprinter-nixbuild.o -x c++ ./main/aprinter-nixbuild.cpp
 parser at end of file
Per-file LLVM IR generation
arm-none-eabi-clang: fatal error: unable to execute command: Aborted (core dumped)
clang version 3.7.0 (tags/RELEASE_370/final)
Target: arm-none--eabi
Thread model: posix

Yeah, I've seen this recently. Looks like a real clang/llvm bug.
I'm in the process of trying to reduce the symbol sizes, I've managed some reduction yet but more is needed. Note that improvements are/will be in the web-interface branch.

I've managed to reduce the size of "nm --demangle aprinter-nixbuild.elf" considerably but debug builds with gcc still take all my memory. I'll try more but I'm not so sure anymore if this actually helps.
Anyway I'm currently trying a patch for the LLVM bug we're hitting. LLVM takes long to build though...

Hey,
The patch fixes it. I've already included it in the web-interface branch.

Wow, that's awesome. Thanks for all the help.
I tried adding some extra swap space and building with GCC. Swap usage increased to about 16.7 GB, then my computer froze. Whatever GCC is doing, it isn't very memory efficient!
How stable is your web-interface branch just now? Do you recommend it for general use?

Hey,
Yes the web-interface branch should be fine.


Support repo hosts other than GitHub in package development

Prerequisites

[x] Put an X between the brackets on this line if you have done all of the following:

Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages

Description
Currently only GitHub is supported as a git repository host for package development as per this discussion on the Atom.io Slack channel:

Nicd [10:19 PM]
how should I form my package's repository URL?
[10:21]
my package is at https://gitlab.com/code-stats/code-stats-atom but I use git@gitlab.com:code-stats/code-stats-atom.git as my git remote when developing. if I add the former into repository, it will ask me username/password when publishing. if I use the latter it will crash on step Publishing code-stats-atom@version with Git tag not found
lee-dohm [10:22 PM]
@Nicd Atom currently doesn't support package repositories that are not on GitHub

This is not so nice as developers cannot choose which host to use (or if they want to host their packages on their own server for example). It also adds an unhealthy dependence on GitHub the company. At least GitLab and BitBucket should be supported as well.
Steps to Reproduce

Put a package somewhere else than GitHub

Expected behavior: Can publish it
Actual behavior: Cannot publish it
Reproduces how often: 100%

Sorry for the noise, did not think to check that there is a separate repo for APM. Will file issue there.

Filed here: https://github.com/atom/apm/issues/754


Remove force_http when registering a backend

@jennyd pointed this out last week - I think this exists from a time when the router couldn't handle HTTPS backends. It can now because we do HTTPS to Trade Tariff and Licensing.
https://github.com/alphagov/router/commit/7e72e8b073bedb05866a0bd68e76ffdac2af7f1e
This will cause new registrations to use the HTTPS backend which will encrypt traffic in our network.

Perhaps after deploying this we should change all current entries into https manually so that we know the effect instantly, instead of waiting for a republish of all apps.


feat(#111): support user-defined embedding dimensions

support for dimensions for OpenAI Embeddings Generator
see: https://platform.openai.com/docs/api-reference/embeddings/create#embeddings-create-dimensions

dimensions integer Optional
The number of dimensions the resulting output embeddings should have. Only supported in text-embedding-3 and later models.

Hey @bernard-ng, thanks for your contribution on this one.
There is a bug when using with ada-002 : " This model does not support specifying dimensions.". It tries to call with dimension, you should handle the case ada-002.
Can you also change the interface signature everywhere for embedText? I don't understand why we don't have a type error but I guess we should 😅.
If you can add an Integration test (and use your openai key in local to run it), that would be better to prevent other bugs.
Otherwise it's a great improvement! It deserves few lines in the doc. If you don't have time, I'll do it.
Thanks a lot,
Maxime

Hey @MaximeThoonsen noted, let's fix that 😅

@MaximeThoonsen some design considerations
while working on this issue, I realized that adding this functionality to the interface would mean that all embedding models would have to offer this feature, otherwise it would be like adding this “dimensions” option to all EmbeddingGenerator classes without it being used.
what direction should I take? given that this feature is specific to open ai, it doesn't really make sense for it to be available for mistral or ollama.

Hey @bernard-ng ,
I suggest you throw an "not implemented" exception when it is not used with OpenAI.
Sound good to you?

Thanks @bernard-ng, can you rebase and I'll merge it!


Figure out how to get cargo to build and link the 32-bit boot module

Finally finished in 7bf34c8d40fc8bf0f1eddd75da9122d19ecb527a


Mark completed - issue

Issue description
I can't do mark completed to any video.
Steps to Reproduce

When I try mark any video like "Completed" show pop-up with this message:
"you do not have the rights to carry out this action"

I don't know if i wrong setup or if the version "1.10.1" come this error.
Environment Information

Operating System:  Fedora release 33
Streama version: 1.10.1

Thanks a lot

I can reproduce this with a non-admin user account trying to mark/unmark videos as completed.  With an admin user account the feature works fine.
This feels like a permission issue perhaps when calling in VideoController.groovy, but I could not track it down exactly.


watch dog (WWDT) timeout calculation for STM32 handles biggest timeout and rollover wrong

Describe the bug
The calculation for the timeout in function wwdg_stm32_convert_timeout(...) handles rollover and max timeout wrong, and as soon as i set the timeout over the limit, I do not get an error as expected.
To Reproduce
General:
stm32f412 system clock 100MHz
CONFIG_CLOCK_STM32_APB1_PRESCALER=2 -> 50MHz
Reproduce on a stm32f412g_disco eval board:
add in stm32f412g_disco.dts
&wwdg {
status = "okay";
};

add in prj.conf
CONFIG_WWDG_STM32=y

west build -c -p auto -b stm32f412g_disco samples/drivers/watchdog
west flash

Expected behavior
Expect an accurate timeout setting, by invoking wdt_install_timeout(..) and an error, if I'm more then 10 % off my setting.
Impact
Until this bug is fixed, we have to set the timeout max value to 41, instead of 42.
Logs and console output
Added two line to log the calculated timeout and desired timeout:
diff --git a/drivers/watchdog/wdt_wwdg_stm32.c b/drivers/watchdog/wdt_wwdg_stm32.c
index 82b899a5c1..d882588df4 100644
--- a/drivers/watchdog/wdt_wwdg_stm32.c
+++ b/drivers/watchdog/wdt_wwdg_stm32.c
@@ -189,6 +189,8 @@ static int wwdg_stm32_install_timeout(const struct device *dev,
     wwdg_stm32_convert_timeout(dev, timeout, &prescaler, &counter);

     calculated_timeout = wwdg_stm32_get_timeout(dev, prescaler, counter);
+    LOG_WRN("Desired WDT: %d us",timeout);
+    LOG_WRN("Set WDT: %d us",calculated_timeout);
     if (!(IS_WWDG_PRESCALER(prescaler) && IS_WWDG_COUNTER(counter) &&
           IS_WWDG_TIMEOUT(timeout, calculated_timeout))) {
         /* One of the parameters provided is invalid */

diffent runs:
[00:00:00.013,000]  wdt_wwdg_stm32: Desired WDT: 100000 us
[00:00:00.013,000]  wdt_wwdg_stm32: Set WDT: 409 us
[00:00:00.013,000]  wdt_wwdg_stm32: Desired WDT: 84000 us
[00:00:00.013,000]  wdt_wwdg_stm32: Set WDT: 163 us
[00:00:00.014,000]  wdt_wwdg_stm32: Desired WDT: 83000 us
[00:00:00.014,000]  wdt_wwdg_stm32: Set WDT: 41943 us
[00:00:00.013,000]  wdt_wwdg_stm32: Desired WDT: 64000 us
[00:00:00.013,000]  wdt_wwdg_stm32: Set WDT: 22282 us
[00:00:00.013,000]  wdt_wwdg_stm32: Desired WDT: 43000 us
[00:00:00.013,000]  wdt_wwdg_stm32: Set WDT: 1310 us
[00:00:00.013,000]  wdt_wwdg_stm32: Desired WDT: 42000 us
[00:00:00.013,000]  wdt_wwdg_stm32: Set WDT: 655 us
[00:00:00.013,000]  wdt_wwdg_stm32: Desired WDT: 41000 us
[00:00:00.013,000]  wdt_wwdg_stm32: Set WDT: 41287 us
[00:00:00.013,000]  wdt_wwdg_stm32: Desired WDT: 40000 us
[00:00:00.013,000]  wdt_wwdg_stm32: Set WDT: 40632 us
[00:00:00.013,000]  wdt_wwdg_stm32: Desired WDT: 20000 us
[00:00:00.013,000]  wdt_wwdg_stm32: Set WDT: 20316 us
[00:00:00.013,000]  wdt_wwdg_stm32: Desired WDT: 10000 us
[00:00:00.013,000]  wdt_wwdg_stm32: Set WDT: 10485 us
[00:00:00.013,000]  wdt_wwdg_stm32: Desired WDT: 1000 us
[00:00:00.013,000]  wdt_wwdg_stm32: Set WDT: 1310 us
Environment (please complete the following information):

OS: Linux
Zephyr SDK
Zephyr zephyr-v2.4.0-1-g32e4d7006338

Additional context
I think it should start the calculation with the smallest counter/divider to get the most accurate timeout.
The test constant WWDG_TIMEOUT_ERROR_MARGIN should not be 100ms, a percentage would be nicer:
#define WWDG_TIMEOUT_ERROR_MARGIN   TIMEOUT)   (TIMEOUT / 10)
I did a fast fix for us, maybe this helps:
diff --git a/drivers/watchdog/wdt_wwdg_stm32.c b/drivers/watchdog/wdt_wwd
index 82b899a5c1..12f04733a2 100644
--- a/drivers/watchdog/wdt_wwdg_stm32.c
+++ b/drivers/watchdog/wdt_wwdg_stm32.c
@@ -56,10 +56,10 @@ LOG_MODULE_REGISTER(wdt_wwdg_stm32);
  */

 #define ABS_DIFF_UINT(a, b)  ((a) > (b) ? (a) - (b) : (b) - (a))
-#define WWDG_TIMEOUT_ERROR_MARGIN   (100 * USEC_PER_MSEC)
+#define WWDG_TIMEOUT_ERROR_MARGIN(__TIMEOUT__)   (__TIMEOUT__ / 10)
 #define IS_WWDG_TIMEOUT(__TIMEOUT_GOLDEN__, __TIMEOUT__)  \
     (ABS_DIFF_UINT(__TIMEOUT_GOLDEN__, __TIMEOUT__) < \
-     WWDG_TIMEOUT_ERROR_MARGIN)
+    WWDG_TIMEOUT_ERROR_MARGIN(__TIMEOUT_GOLDEN__))

 static void wwdg_stm32_irq_config(const struct device *dev);

@@ -113,7 +113,7 @@ static void wwdg_stm32_convert_timeout(const struct d
 {
     uint32_t clock_freq = wwdg_stm32_get_pclk(dev);
     uint8_t divider = 0U;
-    uint8_t shift = 3U;
+    uint8_t shift = 0U;

     /* Convert timeout to seconds. */
     float timeout_s = (float)timeout / USEC_PER_SEC;
@@ -122,18 +122,18 @@ static void wwdg_stm32_convert_timeout(const struct
     *prescaler = 0;
     *counter = 0;

-    for (divider = 8; divider >= 1; divider >>= 1) {
-        wwdg_freq = ((float)clock_freq) / WWDG_INTERNAL_DIVIDER / divide
+    for (divider = 0; divider <= 3; divider ++) {
+        wwdg_freq = ((float)clock_freq) / WWDG_INTERNAL_DIVIDER / (1 <<
         /* +1 to ceil the result, which may lose from truncation */
         *counter = (uint32_t)(timeout_s * wwdg_freq + 1) - 1;
-        *counter |= WWDG_RESET_LIMIT;
+        *counter += WWDG_RESET_LIMIT;
         *prescaler = shift << 7;

         if (*counter <= WWDG_COUNTER_MAX) {
             break;
         }
-
-        shift--;
+        shift++;
+        *counter = WWDG_COUNTER_MAX; //set to max, if no smaller counter
     }
 }

@sandroklarer-pingpong Txs for the issue and proposed fix.
It seems we miss a bit in the proposed fix:
+    for (divider = 0; divider <= 3; divider ++) {
+        wwdg_freq = ((float)clock_freq) / WWDG_INTERNAL_DIVIDER / (1 <<

Can you complete the line (to save some time ) ?

@sandroklarer-pingpong Txs for the issue and proposed fix.
It seems we miss a bit in the proposed fix:
+    for (divider = 0; divider <= 3; divider ++) {
+        wwdg_freq = ((float)clock_freq) / WWDG_INTERNAL_DIVIDER / (1 <<

Can you complete the line (to save some time ) ?

for (divider = 0; divider <= 3; divider ++) {

   wwdg_freq = ((float)clock_freq) / WWDG_INTERNAL_DIVIDER / (1 << divider);

for (divider = 0; divider <= 3; divider ++) {

   wwdg_freq = ((float)clock_freq) / WWDG_INTERNAL_DIVIDER / (1 << divider);

I'm fine with the proposed change in wwdg_stm32_convert_timeout.
About the WWDG_TIMEOUT_ERROR_MARGIN macro, it makes sense indeed to compare result in a relative fashion. Though I wonder if we should keep ABS_DIFF_UINT.
I'm not a user of this api, but I wonder if we shouldn't rather guarantee that set timeout is  higher than requested timeout.
watchdog.h seems to state the opposite (but it depends how you understand it, I rather think it is not clear enough):
 * @param max Upper limit of watchdog feed timeout in milliseconds.

Though, I guess that from application point of view, you need to ensure that watchdog won't timeout before the requested timeout (that I guess the application is able to monitor). Setting a timeout shorter to this application requested timeout would be harder to monitor (even with a known tolerance).
I am seeing things correctly ?

I'm fine with the proposed change in wwdg_stm32_convert_timeout.
About the WWDG_TIMEOUT_ERROR_MARGIN macro, it makes sense indeed to compare result in a relative fashion. Though I wonder if we should keep ABS_DIFF_UINT.
I'm not a user of this api, but I wonder if we shouldn't rather guarantee that set timeout is  higher than requested timeout.
watchdog.h seems to state the opposite (but it depends how you understand it, I rather think it is not clear enough):
 * @param max Upper limit of watchdog feed timeout in milliseconds.

Though, I guess that from application point of view, you need to ensure that watchdog won't timeout before the requested timeout (that I guess the application is able to monitor). Setting a timeout shorter to this application requested timeout would be harder to monitor (even with a known tolerance).
I am seeing things correctly ?

 * @param max Upper limit of watchdog feed timeout in milliseconds.
There are two limits for this watch dog. This just says, that this parameter is the upper/max one. As a user, I want to get the best match for my set limit, so I do not care if it's a bit more or less in time. (My opinion.)

 * @param max Upper limit of watchdog feed timeout in milliseconds.
There are two limits for this watch dog. This just says, that this parameter is the upper/max one. As a user, I want to get the best match for my set limit, so I do not care if it's a bit more or less in time. (My opinion.)


Added Bunny as CDN

Website https://bunny.net
Some sample pages
https://media.dcrainmaker.com
https://www.dll-files.com
https://yvideo.haber7.com
https://haydenjames.io
http://www.demotivationalposters.org
https://www.red5studios.com
https://vote.decrypt.co
https://www.lookip.net
https://prime.unmistakablecreative.com
https://tutordoctor.highervisibility.com

Thanks!


Download accesibility

Can you provide an alternative way (like google drive or onedrive) to download the model?
Baidu due to its limited country policy is not easy accessible.

Sorry just saw it's in the snapshots.zip


DNS Network Routes break masquerading

When creating a DNS Network Route masquerading is set by default.
This results in the following rule for routing nodes when running: iptables -t nat -S
-A NETBIRD-RT-NAT -j MASQUERADE
-A NETBIRD-RT-NAT -j MASQUERADE
Because of that every traffic trough a routing node that has this route gets masqueraded as no -s or -d flags are set.
Even when masquerading is deactivated for another route.
Deactivating masq for the DNS route fixes this behaviour.
But that means they cant be used with masquerading on a node that has non-masqueraded routes.
NetBird version
0.28.6

Maybe related to #2489


Create playbook for Galley webhook configuration service

Per the revised istio.io proposal, we should create a  Ops-oriented content for the galley webhook configuration service.
See related https://github.com/istio/istio/issues/6608

fixed by https://github.com/istio/istio.github.io/pull/2078


Can not open browser in WSL when server.open: true

Describe the solution you'd like
Open browser in WSL when server.open: true.

Of course it can not open the browser.
But there is no browser in WSL.

@FrankFang So it's a feature. When I use umi, it can open browser on Windows.

It uses the open package which supports WSL, so yes it should be able to open the browser.
@theprimone do you have your Windows drives mounted somewhere other than /mnt/? Vite currently uses<EMAIL_ADDRESS>which misses the fix to support other mount points

It's my fault, umi also can't open browser after started, and it not support now.
Here is my default browser path:

Assuming this is closed via #2175

@theprimone yarn dev --open works just fine for me on WSL, also BROWSER=chrome yarn dev --open or BROWSER="C:\Path\To\Some\Browser.exe" yarn dev --open.
However the open package recently removed support for specifying the path to the .exe as a posix path (/mnt/c/some/browser.exe), so if your BROWSER environment variable is set to that it won't work.

@johnsoncodehk It works with script BROWSER=chrome vite after upgraded to<EMAIL_ADDRESS>Finally, I'm curious about what BROWSER do?

@theprimone
BROWSER is an environment variable that lets you specify which browser to use, you can either set it globally via your shell (e.g. in your ~/.bashrc) or per-script by prepending BROWSER=x  to your command.
However if it isn't defined at all, open should just use your default browser by running Start http://some.site in PowerShell.
If yarn dev --open (without prepending anything) is indeed not working for you, could you:

verify that running Start https://www.google.com in PowerShell works

run echo $BROWSER in WSL and verify that the output it empty

It's empty when I run echo $BROWSER in WSL.

And I also try BROWSER=firefox vite, it will open firefox browser, I don't understand how it open browser correctly only by name like chrome or firefox :joy:

@theprimone

I don't understand how it open browser correctly only by name

Yep, strange indeed...
Should work fine even if BROWSER is not set at all, as it just calls powershell.exe with Start http://mysite.com in that case 🤔


Strict mode needs the variables initialized

Fixes https://github.com/Azure/azure-sdk-tools/issues/1682

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow


Bug with the UI of macOS menu bar

Hello!
CPod version: CPod v1.27.1
Platform: macOS 10.14.5
Install type (.deb, Snap, etc.): CPod-1.27.1-mac.zip downloaded from this GitHub repo
Description: When launching CPod, there's a yellow glitch with the macOS menu bar (see screenshot). I've tried to relaunch, to force reload, with the light skin and the dark skin and the problem persists.
Did the bug only appear after a CPod update? Version before, after: I was using CPod in the past (didn't have this bug), but then used another software for some time, and I just reinstalled CPod today and noticed this bug.
Steps to reproduce: Launch CPod on macOS and the bug appeared right away on the menu bar.

I had this issue as well, thought the menu was actually another applications and it was just not playing well with CPod.
It seems that "yellow glitch" is actually the icon but, zoomed. Those 3 gray bits are the three circles from the icon. I made a pull request fixing this #152.

Alright, that makes sense, thanks for the answer.


Add Japanese list

Hi, I've found this Awesome Japanese list, but didn't find it here, so I think you should take a look if it can be placed here: https://github.com/yudataguy/Awesome-Japanese

https://github.com/sindresorhus/awesome/blob/main/create-list.md


How to use absolute import?

NODE_PATH seems not working

nevermind, http://fuse-box.org/#custom-modules-folder


Play Mode Tests - Full Integration Tests have problems if being run consecutively. No issue if ran one-by-one.

On completion of each full-integration-test, the MainScene is unloaded, but the UIService is still registered to the ServiceLocator, which in turn acts like a static class/Singleton. This causes the UIService instance to extend into the second test, causing the error:
Attempted to register service of type UIService which is already registered with the ServiceLocator.

what happens in real game, is that the raindropbootstrapper.cs implements this little section that is raised when the user wants to quit the unity runtime:
'''
public void OnApplicationQuit()
{
Quit_Application();
}
'''


autocomplete breaks insert command

Oni Version: 0.3.4
Neovim Version (Linux only): 0.2.2
Operating System: Linux Mint
Describe your issue
When I write al, autocomplete to alignItems and back to normal mode, if I hit . it inserts only al.
Expected behaviour
Insert all the inserted text
Actual behaviour
It only inserts the typed text, not the whole autocompleted text.
Steps to reproduce
Use autocomplete and try to repeat that insert.

Hey! Thanks for raising this issue, I know I've started to run into it a bunch recently.
It looks like we have an issue already to cover both it and the same issue with the auto insertion of parens (#1200), so I'll close this out for now. Might be worth sticking +1 on that issue as well though, but I know it is annoying to do a macro and then find either it half typed, or with weird parenthesis.


Potential solution to help fix the issues with the rotation gizmo

Issue #165
I too ran into issues with the rotation gizmo.
This is a potential solution to help fix the issues with intersection tests for the rotation gizmo. Originally, the code was testing the relationship (dot product) between two direction vectors; the mouse ray and gizmo plane intersection ray direction and the direction vector from the center of the gizmo to the intersection position. The test is to see if the mouse is hitting the front half or the back half of the rotation gizmo sphere. I would expect the test to look for a negative dot product (as a potential hit), since the direction vector from the center of the gizmo to the front half should be facing towards the screen, and the mouse ray faces away from the screen. Instead the test was checking to see if the vectors were both facing away from the screen. This works in the ImGuizmo sample program for some reason. But in my own program this test was failing and causing the back half of the gizmo to be intersected with instead. This might have something to do with left handed vs right handed, but I don't think so. Did not feel like taking the time to look into why the demo was different. The solution here brings everything into view space and compares depths. In the demo, depth in view space is in -Z, while in my program view space depth is in +Z. I suspect this has a lot to do with the issues. Now the code is subtracting the absolute depth values (so it doesn't matter if depth is positive or negative) of the mouse ray and gizmo plane intersection position in view space from the center of the gizmo in view space. If the resulting value is positive, the center of the gizmo is further from the camera than the mouse intersection point, indicating we are in the front half of the gizmo sphere.

Works better with perspective view but the orthographic projection doesn't work

Sorry, been out for the last few days. I took a look at this real quick. It seems that the rotation gizmo is actually drawing the circles on for the back half of the rotation gizmo sphere. The hit test is correct, but it seems like the drawing is incorrect. I could be wrong about this, but thats what it looked like to me.


Alerta:  testing the node failure and management interface failure blocked as alerta not showing alerts

during testing on this node ac1f6b47a10c on bancadati  i found this error when streaming logs of zrobot of this node
[Tue27 13:18] - base.py           :215 :healthchecks-c06af0aa-5ed3-4a4d-bd84-f6d115cd3366 (healthcheck) - ERROR    - error executing action _monitor:
Traceback (most recent call last):
  File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/sal_zos/healthchecks/healthcheck.py", line 61, in __enter__
    self.container = self.node.containers.get(self._name)
  File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/sal_zos/container/Container.py", line 27, in get
    raise LookupError("Could not find container with name {}".format(name))
LookupError: Could not find container with name healthcheck_20b6eaadb5db66d9af639d5c931c9fbe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/github/threefoldtech/0-robot/zerorobot/task/task.py", line 78, in execute
    self._result = self._func()
  File "/opt/code/github/threefoldtech/0-templates/templates/healthcheck/healthcheck.py", line 29, in _monitor
    self._healthcheck()
  File "/opt/code/github/threefoldtech/0-templates/templates/healthcheck/healthcheck.py", line 50, in _healthcheck
    with node_sal.healthcheck.with_container(flist_healhcheck) as cont:
  File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/sal_zos/healthchecks/healthcheck.py", line 63, in __enter__
    self.container = self.node.containers.create(self._name, self.flist, host_network=True, privileged=True)
  File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/sal_zos/container/Container.py", line 35, in create
    for nic in nics:
TypeError: 'NoneType' object is not iterable

fixed in https://github.com/threefoldtech/jumpscale_lib/commit/6210c3dd8bcd8bc1d56add5bf9b7271f82e6167f


Model 2 V&V

##Model 2 V&V

Description

Category:
release
JIRA issue: MIC-XYZ
Research reference:

Changes and notes

update changelog for Model 2.0
Verification and Testing

N/A

I think we've also started updating the version in about.py


Error Page Added

Related Issue

Error Page Added

Closes: #269
Describe the changes you've made

Type of change
What sort of change have you made:

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Code style update (formatting, local variables)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update.
[ ] This change requires a documentation update

How Has This Been Tested?

Checklist

[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented on my code, particularly wherever it was hard to understand.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have added tests that prove my fix is effective or that my feature works.
[x] Any dependent changes have been merged and published in downstream modules.

Screenshots (if applicable)

Original
Updated

original screenshot
updated screenshot

Code of Conduct

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

@vinzvinci Please Merge it ...
Learnt some thing new and worked first time in Next js

done @krishstwt

hey @Anmol-Baranwal I Recently make changes if still not responsive please provide me at which length its failing and button hovering also changed

@Anmol-Baranwal Merging?

@Anmol-Baranwal Merging?

Yeah, let vinzvinci review this.

LGTM! @WebXDAO/gssoc-mentors add level labels

Since this is an entirely new feature or component, I am assigning it a level3. Feel free to change it if you think otherwise.


Images too small, a small part of the previous slide is visible

If I use multiple images and click through the slides, some images are not wide enough and a little bit of the before slide is visible:

This happens even if I disable all my custom CSS on the page with only tiny-slider CSS.
eventslider = tns({
    container: '.slider',
    items: 1,
    loop: false,
});

Tiny-slider version:   2.9.2
Browser name && version:  seems to happen in all Browsers and OS

I found out that, when I add letter-spacing: 0, the "gap" is gone.
Thats not a good solution due to all texts inside the Slide will inherit this setting, but it will help if there are only images.

The problem is not every time on the same side - in this case the "gap" is on the right side:

Thats absolute unacceptable for the customer and i cannot provide any solution. The letter-spacing workaround isn't working here.
Seems that this particular project will get an other slider framework.


Cannot get the same type of results of torch_mnist

I was executing the example on a system without a GPU and I receive the following results:
PERUN REPORT
App name: torch_mnist
First run: 2023-10-23T17:01:42.007616
Last run: 2023-10-23T17:23:35.895179
RUN ID: 2023-10-23T17:23:35.895179

Round #
Host
RUNTIME
CPU_UTIL
MEM_UTIL

0
l3dss2210
141.391 s
62.805 %
0.128 %

0
All
141.391 s
62.805 %
0.128 %

Monitored Functions

Round #
Function
Avg Calls / Rank
Avg Runtime
Avg Power
Avg CPU Util
Avg GPU Mem Util

0
train
1
140.292±0.000 s
0.000±0.000 W
63.143±0.000 %
0.000±0.000 %

0
train_epoch
5
25.732±0.685 s
0.000±0.000 W
63.741±1.229 %
0.000±0.000 %

0
test
5
2.325±0.062 s
0.000±0.000 W
54.353±1.090 %
0.000±0.000 %

The application has run been run 2 times.
How can I get the energy consumption such as "CPU_POWER" and "DRAM_POWER"?
Do I need to configure the system at the beginning?
Thanks and BR
Axel

Hi Alex,
Thanks for submitting an issue. What hardware are you using? Perun works best on Linux machines using Intel CPUs, with some AMD CPUs being supported. If this matches your setup, it could be that you don't have access to the required files in the file system. You need to make sure the files in "/sys/class/powercap/" are readable to you.
You can get more information on the powercap interface here


EventManager::trigger() causes an event instance of the wrong type to be passed to registered listeners

Excuse me for submitting this here, but I was not able to comment directly in the #335 PR.
I've encountered a problem and because in my view this coin has two sides too, bringing it up here is just one of my options.
I'm using:

https://github.com/zendframework/zend-mvc/commit/d039a45a167e18323b874da396f5806fbeca04aa

this is the most recent commit of the develop branch

https://github.com/zendframework/zend-eventmanager/commit/28b26fff230ffb8976d1d71fd1305ce886326d86

this is the most recent commit too

https://github.com/prolic/zfc-rbac/commit/4dc3eb097b4a009c841d82aa3a1fb5b2f8065959

this is the last but one commit in the zf3 branch

When the MvcEvent::EVENT_DISPATCH_ERROR is triggered in the AbstractGuard:onResult() method, all registered listeners receive a Zend\Mvc\MvcEvent event as their first argument.
However, when the event is handled in Zend\EventManager\EventManager::trigger(), the event is transformed into a Zend\EventManager\Event instance:
public function trigger($eventName, $target = null, $argv = [])
{
    $event = clone $this->eventPrototype; // Zend\EventManager\Event
    $event->setName($eventName);
    $event->setTarget($target);
    $event->setParams($argv);

    return $this->triggerListeners($event);
}

However, all registered listeners expect a Zend\Mvc\MvcEvent instance, but receive Zend\EventManager\Event, which causes fatal errors:
Catchable fatal error: Argument 1 passed to Zend\Mvc\View\Http\RouteNotFoundStrategy::detectNotFoundError() must be an instance of Zend\Mvc\MvcEvent, instance of Zend\EventManager\Event given, called in /var/www/projects/***/vendor/zendframework/zend-eventmanager/src/EventManager.php on line 271 and defined in /var/www/projects/***/vendor/zendframework/zend-mvc/src/View/Http/RouteNotFoundStrategy.php on line 135

Now, RouteNotFoundStrategy::detectNotFoundError() is just the first of a queue of 5 listeners, ZfcRbac\View\Strategy\RedirectStrategy being the last but one in the list.
Noticing this, I decided to simulate a request with faulty route - I requested http://my-applciation.dev/blabla, just to trace how the dispatch.error would be handled and how the above mentioned RouteNotFoundStrategy::detectNotFoundError() listener would handle the wrong type of the event instance. But, surprisingly the event passed to the listener was of the correct MvcEvent type.
Digging into the trace, I noticed that the event was triggered by Zend\EventManager\EventManager::triggerEvent() and not by ::trigger().
Here's the relevant section of Zend\Mvc\RouteListener:
public function onRoute(MvcEvent $event)
{
    // ...
    $target  = $event->getTarget();
    $results = $target->getEventManager()->triggerEvent($event);
    if (!empty($results)) {
        return $results->last();
    }

    return $event->getParams();
}

At first glance, the difference between EventManager::trigger() and EventManager::triggerEvent() is that the former transforms the type of the event instance and the latter merely triggers the registered listeners.
Looking at the history of the RouteListener class, I noticed that its implementation was changed recently with this commit:
@@ -44,9 +45,10 @@ public function onRoute($e)
          $routeMatch = $router->match($request);

          if (!$routeMatch instanceof Router\RouteMatch) {
 +            $e->setName(MvcEvent::EVENT_DISPATCH_ERROR);
              $e->setError(Application::ERROR_ROUTER_NO_MATCH);

 -            $results = $target->getEventManager()->trigger(MvcEvent::EVENT_DISPATCH_ERROR, $e);
 +            $results = $target->getEventManager()->triggerEvent($e);
              if (count($results)) {
                  return $results->last();
              }

Please forgive my long introduction, but my question is: shouldn't ZfcRbac use EventManager::triggerEvent() instead of trigger(), to address the apparently changed eventmanager implementation and additionally not to cause for a wrong event instance type to be passed over?
I browsed the ZfcRbac tests and obviously they pass, because a mock implementation of EventManager is being used and in addition, in the tests the listener is called directly:
$redirectStrategy->onError($mvcEvent);

The EventManager::triggerEvent(EventInterface $event) method has been introduced with this commit in late Sep 2016 together with two other discreet methods that should serve to replace a single call to EventManager::trigger(), which in turn prior to this implemented a resolution to one of multiple paths.
If we analyze the previous version of the code, namely this snippet:
        if ($event instanceof EventInterface) {
             $e        = $event;
             $event    = $e->getName();
             $callback = $target;
         } elseif ($target instanceof EventInterface) {
             $e = $target;
             $e->setName($event);
             $callback = empty($argv) ? null : $argv;
         } elseif ($argv instanceof EventInterface) {
             $e = $argv;
             $e->setName($event);
             $e->setTarget($target);
         } else {
             $e = clone $this->eventPrototype;
             $e->setName($event);
             $e->setTarget($target);
             $e->setParams($argv);
         }

... we see that the usage in ZfcRbac's AbstractGuard::onResult() falls into the second of the above tested scenarios:
         } elseif ($target instanceof EventInterface) {
             $e = $target;
             $e->setName($event);
             $callback = empty($argv) ? null : $argv;
         }

Indeed:
    public function onResult(MvcEvent $event)
    {
        if ($this->isGranted($event)) {
            return;
        }
        $event->setError(self::GUARD_UNAUTHORIZED);
        $event->setParam('exception', new Exception\UnauthorizedException(
            'You are not authorized to access this resource',
            403
        ));
        $event->stopPropagation(true);
        $application  = $event->getApplication();
        $eventManager = $application->getEventManager();
        $eventManager->trigger(MvcEvent::EVENT_DISPATCH_ERROR, $event);
    }

Here we pass the $event instance as the target param of the trigger() call, which makes it fall into the scenario where the triggerEvent() discreet method should be used, instead of trigger().
With trigger() the event type gets swapped (by means of $e = clone $this->eventPrototype;), whereas with triggerEvent() this is not the case.

I'm closing this, as ZfcRbac doesn't even support ZF3 yet... and that's when this issue kicks in.
Anyways, the fix is already  merged into #335, and that was the context where the issue was valid to begin with.


[DPP] Bump to version 10.0.26

This PR updates DPP package to 10.0.26
Our vcpkg update is built from our CI actions.

Which triplets are supported/not supported? Have you updated the CI baseline?
Triplets are unchanged, baseline not updated.

Does your PR follow the maintainer guide?

Yes

This version update removes the patch file applied to the previous release 10.0.25, which we have merged upstream.

Thanks for the update and for removing the hash!


Update BuffsList.inc / Asset for Spear Buff

Added new Buff from Spear Skill to some professions (Engineer, Mesmer, Necromancer, Guardian, Revenant, Ranger)
First time to do dis kind of thing please double check >.<. Tried to upload the buff icon to asset but it said no push . So I guess I just upload it here ?
thank you for making Clarity ♥

Additional icon for buffs
So for Energize and Harden in game it still place holder so I use the skill icon for it instead (just like Seethe and Ripple in-game)

Can you please verify with the PR build whether the buffs work correctly? I currently don't have spear builds setup so I can't easily check.
https://github.com/Friendly0Fire/GW2Clarity/actions/runs/10550034318/artifacts/1852274262

All Spear buff works correctly :D Thank you!
Sorry for the typo >.<


Make some minor changes to Todo example (Fixes #86)

Hi @trexnix, thanks for the pull request. Before we can merge it, we need you to sign our Contributor License Agreement. You can do so electronically here: http://opensource.box.com/cla
Once you have signed, just add a comment to this pull request saying, "CLA signed". Thanks!


KAFKA-6254: Incremental fetch requests

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-test-coverage/212/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-test-coverage/206/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-test-coverage/221/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-test-coverage/223/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-test-coverage/209/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-test-coverage/225/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-test-coverage/210/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-test-coverage/211/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-test-coverage/213/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-test-coverage/235/

Test failure is kafka.security.auth.SimpleAclAuthorizerTest.testHighConcurrencyModificationOfResourceAcls, not related.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-test-coverage/249/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-test-coverage/257/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-test-coverage/271/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-test-coverage/288/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-test-coverage/289/

The failed test on the jdk7 run is kafka.security.auth.SimpleAclAuthorizerTest > testHighConcurrencyModificationOfResourceAcls.  Not related.

retest this please

@cmccabe : Thanks for update. The latest code LGTM. Do you have any performance results? It would be useful to see (1) the consumption improvement when there are idle topics, (2) no degradation when caching is disabled.

@junrao I've been testing @cmccabe's patches. One thing that was important to us was the consumption latency that we define as (time it takes to consume a series of 100 small messages + time it takes to commit an offset). With kafka 1.0 and trunk, we'd see that latency exceed our SLA of 50 ms after 40-46k 3x replicated partitions. With Colin's patch, at fa01cf98 (before rebase) we were able to get to 68k 3x replicated partitions with latency of 35 ms. Generally, the offset commit latency is far higher than the consume message latency, 33 ms for the latter case and 46 ms for the latter case.  I couldn't push more than 68k replicated partitions due to https://issues.apache.org/jira/projects/KAFKA/issues/KAFKA-6469?filter=allopenissues
Let me know if you'd like me to get more results and share additional metrics. We're very excited about this patch!

@afalko : Thanks for sharing the results. Very helpful. Just to clarify, are you saying the offset commit latency is 33ms without this patch and 46ms with the patch?

Sorry @junrao I meant the other way around:
Without patch @46k: consume -  4 ms; commit - 46 ms
With patch @68k: consume - 2 ms; commit - 33 ms
With patch @46k: consume - 2 ms; commit - 21 ms

@afalko : That's interesting. This patch doesn't really optimize the offset commit protocol. So, I am wondering why there is an improvement on offset commit.

The test failure on JDK9 seems to be related to some ZK issues going on when running kafka.api.PlaintextConsumerTest.testLowMaxFetchSizeForRequestAndPartition.
from the logs:
[2018-02-03 07:33:00,012] WARN fsync-ing the write ahead log in SyncThread:0 took 1053ms which will adversely effect operation latency. See the ZooKeeper troubleshooting guide (org.apache.zookeeper.server.persistence.FileTxnLog:342)
...
[2018-02-03 07:33:37,276] WARN Client session timed out, have not heard from server in 4002ms for sessionid 0x101b1f2ea4e0000 (org.apache.zookeeper.ClientCnxn:1111)

The exception is:
org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /config/topics/topic3
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:122)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:54)
	at kafka.zookeeper.AsyncResponse.maybeThrow(ZooKeeperClient.scala:450)
	at kafka.zk.KafkaZkClient.createRecursive(KafkaZkClient.scala:1388)
	at kafka.zk.KafkaZkClient.create$1(KafkaZkClient.scala:251)
	at kafka.zk.KafkaZkClient.setOrCreateEntityConfigs(KafkaZkClient.scala:258)
	at kafka.zk.AdminZkClient.createOrUpdateTopicPartitionAssignmentPathInZK(AdminZkClient.scala:99)
	at kafka.zk.AdminZkClient.createTopic(AdminZkClient.scala:56)
	at kafka.utils.TestUtils$.createTopic(TestUtils.scala:294)
	at kafka.integration.KafkaServerTestHarness.createTopic(KafkaServerTestHarness.scala:123)
	at kafka.api.PlaintextConsumerTest.$anonfun$testLowMaxFetchSizeForRequestAndPartition$1(PlaintextConsumerTest.scala:791)

I don't think this is related to the patch at all.  I will re-run the tests to see if we can get a clean run this time.

retest this please

Offset commits depend on replication, so any improvement to fetch overhead could reduce offset commit latency. If the result is actually meaningful, I would expect to see a similar improvement for produce latency.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-test-coverage/320/

@hachikuji : Great point. That makes sense.

Thanks @hachikuji, @junrao, @cmccabe . Fresh off open source presses, I've been able to open source the test I wrote that was measuring the results that I mentioned: https://github.com/salesforce/kafka-partition-availability-benchmark
I plan to expand it to have another mode where it is producing continuously without resetting offset. That'll be able to measure the produce latency.

@afalko : Thanks. You may want to link that to the jira so that other people know how your tests were done.


There should be some transparent way to call MergeQueryHs() on reactants in a reaction.

As an example, the H in this SMARTS: [H][C:1]#[C:2][C:3].[O:4]>>[O:4]-[C:1]#[C:2][C:3] is unlikely to actually match anything when the reaction is applied, so we really should be able to get to the reaction that's equivalent to: [H][C:1]#[C:2][C:3].[O:4]>>[O:4]-[C:1]#[C:2][C:3] automatically.
This applies to reactions built from SMARTS and RXN blocks.
Maybe we just need a version of MergeQueryHs() that takes a reaction?

SanitizeRxn is the current mechanism that does this.
typedef enum {
  SANITIZE_NONE = 0x0,
  SANITIZE_RGROUP_NAMES = 0x1,
  SANITIZE_ATOM_MAPS = 0x2,
  SANITIZE_ADJUST_REACTANTS = 0x4,
  SANITIZE_MERGEHS = 0x8,
  SANITIZE_ALL = 0xFFFFFFFF
} SanitizeRxnFlags;

Note the SANITIZE_MERGEHS.  It also attempts to aromatize as well which is a more subtle issue.

Example: ```>>> r = Chem.ReactionFromSmarts("[H][C:1]#[C:2][C:3].[O:4]>>[O:4]-[C:1]#[C:2][C:3]")

Chem.SanitizeRxn(r)
rdkit.Chem.rdChemReactions.SanitizeFlags.SANITIZE_NONE
Chem.ReactionToSmarts(r)
'[C&!H0:1]#[C:2]-,:[C:3].[O:4]>>[O:4]-[C:1]#[C:2]-,:[C:3]'

Ah, that makes sense. Cool. In that case I will close this.


Tesseract to use another language?

I see in the process list tesseract is called with "-t eng" for english OCR. Can it be changed to e.g. german?

Looking at the langchain docs and code I don't see any such options.  If you find something, let us know.  Happy to add any options.
For OCR Tesseract is poor compared to DocTR.  @ryanchesler can answer if that supports non-english etc.

How can i enable to use DocTR? I'm using the docker version.


Add more performance tests against movie dataset

Some suggestions for performance tests that exercise more scenarios.

Or maybe one test file per test?

Or maybe one test file per test?

Good idea. That works today without any changes to the build script.

Good idea. That works today without any changes to the build script.

Split tests and also added a handful more.

Split tests and also added a handful more.

I put this in each file:

name: "perf / movies"

Does the test suite require unique names for each file, @judofyr?

I put this in each file:

name: "perf / movies"

Does the test suite require unique names for each file, @judofyr?

Does the test suite require unique names for each file, @judofyr?

Nope. It guarantees that the generated _ids are unique so everything should work fine.

Does the test suite require unique names for each file, @judofyr?

Nope. It guarantees that the generated _ids are unique so everything should work fine.


[MenuList] Fix text navigation (#27513)

Fix bug introduced by #19967

[X] I have followed (at least) the PR section of the contributing guide.

Closes #27513

This PR fixes a bug. The point about making the timing configurable/add documentation still stands.

The changed test isn't actually testing the fixed behavior.

Multiple behaviors were broken. The "repeating initial character" scenario was one, but matching multiple characters at the beginning of a word was also broken. The changed test does fail without the MenuList change. Without the change, focus stays on "War" (the first "W" word) rather than moving to "Worm" after typing "Wo".

The point about making the timing configurable/add documentation still stands.

Except the whole reason for wanting to make the timing configurable is moot after the bug fix. There is no delay for repeated characters advancing to the next item with that character at the beginning.

Except the whole reason for wanting to make the timing configurable is moot after the bug fix.

So the timing can be removed? Or can you point me to a test covering the timing and why this shouldn't be configurable in your opinion?

So the timing can be removed?

No, the timing can't be removed, but it doesn't have the purpose that #27513 talks about wanting to control. Its purpose is quite a bit more subtle and is covered by the "should reset the character buffer after 500ms" test. Though there isn't necessarily a reason why it couldn't be configurable, there is a pretty small range that makes sense from a usability standpoint. It needs to be slow enough so that typical typing speeds allow matching multiple characters, but fast enough so that if a user decides to look for items with a different starting character, that it works as they would expect. I think the biggest range that would make sense to allow is from about 300ms to 700ms which doesn't seem very worthwhile to control outside the library.


Refine branching/syncing logs

This PR only updates modAionImpl. You can copy Hex.java to modP2p in another pull request. :)


AWS CLI auto-prompt mode + AWS Shell

Hi everyone. We recently opened an issue on the AWS CLI repository tracking preview feedback for an improved auto-prompt mode for AWS CLI v2. You may notice from that there is a significant amount of overlap between the new auto-prompt mode and the AWS Shell. This GitHub issue is meant to help answer questions about its relationship with AWS CLI auto-prompt mode and the future of the AWS Shell.
Why are we releasing AWS CLI auto-prompt mode when the AWS Shell exists?
The prompting and completion functionality provided by the AWS Shell is powerful, but one notable disadvantage is that it is not built directly into the AWS CLI. The intention of AWS CLI auto-prompt mode is to integrate the same type of productivity-improving features from the AWS Shell directly into the AWS CLI v2. This direction of building AWS Shell functionality into the AWS CLI v2 is advantageous because:

You no longer have to install and manage the tool outside of the AWS CLI. When you install the AWS CLI v2, you will immediately have access to the same functionality from the AWS Shell.
It makes the productivity-improving features of the shell a seamless extension to the AWS CLI.  With AWS CLI auto-prompt mode, you can append --cli-auto-prompt to any command to help build up the command or configure your CLI to enter auto-prompt mode if you ever enter an incorrect AWS CLI command (e.g. on-partial mode)
The AWS Shell requires building of an index on first boot. Now, we pre-build the index directly into the available AWS CLI v2 artifacts.

Is the updated AWS CLI auto-prompt mode a replacement for the AWS Shell?
Currently, the improved auto-prompt mode is not a complete drop-in replacement for the AWS Shell, but it has most of the features provided by the AWS Shell and some completely new features (e.g., more granular shorthand completion). The biggest difference is the lack of a “shell” mode where you can continually enter AWS CLI commands in a single prompting session. In general, this mode should provide a similar level of productivity as the AWS Shell provides and we encourage you to use it when it is launched in a public release of the AWS CLI v2.
Will AWS CLI auto-prompt mode offer an auto-prompt “shell” mode?
We are open to the idea because we suspect that there will still be some workflows that are better from an AWS-specific shell context instead of one-off prompting pattern. We encourage you to try the preview build for AWS CLI auto-prompt mode and use the :+1: reaction on this GitHub issue if you find yourself still wanting a “shell” mode.
What is the future of the AWS Shell project?
We will continue to support AWS Shell by providing security updates and critical bug fixes to ensure that it works with the latest version of CLI v1. For CLI v2, we will be focusing our efforts on enhancing and investing in this enhanced auto-prompt mode.
Please let us know if you have any more questions and provide us any feedback with regards to the AWS CLI auto-prompt mode preview by opening an issue in the AWS CLI GitHub repository. Thanks!

If the aws-shell doesn't support v2 - could you make this clear on the AWS CLI home page https://aws.amazon.com/cli/
Currently it looks like aws-shell is the 'developer preview' (suggesting more advanced) version of the AWS CLI, when effectively it is now deprecated.

Could you also update the readme here to indicate that this is not compatible with CLI v2 and will not have any new features. Ideally just archive this


Optional chaining breaks serverless to AWS

The following file specifies node runtime: nodejs12.x
service-api-boilerplate/platform-templates/serverless-aws/serverless.yml
However, this will break with an "unexpected token" error due to the use of optional chaining on line 22 of the following file.
service-api-boilerplate/src/services/payment-providers/stripe/confirm-order.js
To fix this runtime: nodejs14.x should be specified in the AWS serverless.yml file.

Thanks for the info @djclarkson. This is resolved in https://github.com/CrystallizeAPI/service-api-boilerplate/commit/c2bbaf9237cb0e3d3073db3856939afe38470f4e


build_with_nuitka=True doesnt install scripts

When running an installation with setup(build_with_nuitka=True,..) the scripts are not installed.

e.g. https://build.opensuse.org/package/live_build_log/home:jayvdb:Nuitka/python-chardet/openSUSE_Tumbleweed/i586
[   56s] + sed -i 's/setup(/setup(build_with_nuitka=True,/g' setup.py
[   56s] + NUITKA_EXTRA_OPTIONS='--clang --verbose' /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s'
[   57s] running build
[   57s] running build_py
[   57s] creating build
[   57s] creating build/lib
[   57s] creating build/lib/chardet
[   57s] copying chardet/sbcharsetprober.py -> build/lib/chardet
[   57s] copying chardet/sjisprober.py -> build/lib/chardet
[   57s] copying chardet/enums.py -> build/lib/chardet
[   57s] copying chardet/mbcssm.py -> build/lib/chardet
[   57s] copying chardet/latin1prober.py -> build/lib/chardet
[   57s] copying chardet/euctwprober.py -> build/lib/chardet
[   57s] copying chardet/gb2312freq.py -> build/lib/chardet
[   57s] copying chardet/mbcsgroupprober.py -> build/lib/chardet
[   57s] copying chardet/euckrprober.py -> build/lib/chardet
[   57s] copying chardet/gb2312prober.py -> build/lib/chardet
[   57s] copying chardet/langcyrillicmodel.py -> build/lib/chardet
[   57s] copying chardet/chardistribution.py -> build/lib/chardet
[   57s] copying chardet/euckrfreq.py -> build/lib/chardet
[   57s] copying chardet/langbulgarianmodel.py -> build/lib/chardet
[   57s] copying chardet/langturkishmodel.py -> build/lib/chardet
[   57s] copying chardet/charsetgroupprober.py -> build/lib/chardet
[   57s] copying chardet/version.py -> build/lib/chardet
[   57s] copying chardet/universaldetector.py -> build/lib/chardet
[   57s] copying chardet/hebrewprober.py -> build/lib/chardet
[   57s] copying chardet/sbcsgroupprober.py -> build/lib/chardet
[   57s] copying chardet/mbcharsetprober.py -> build/lib/chardet
[   57s] copying chardet/codingstatemachine.py -> build/lib/chardet
[   57s] copying chardet/big5freq.py -> build/lib/chardet
[   57s] copying chardet/jisfreq.py -> build/lib/chardet
[   57s] copying chardet/euctwfreq.py -> build/lib/chardet
[   57s] copying chardet/escsm.py -> build/lib/chardet
[   57s] copying chardet/escprober.py -> build/lib/chardet
[   57s] copying chardet/utf8prober.py -> build/lib/chardet
[   57s] copying chardet/charsetprober.py -> build/lib/chardet
[   57s] copying chardet/langthaimodel.py -> build/lib/chardet
[   57s] copying chardet/cp949prober.py -> build/lib/chardet
[   57s] copying chardet/jpcntx.py -> build/lib/chardet
[   57s] copying chardet/eucjpprober.py -> build/lib/chardet
[   57s] copying chardet/langhebrewmodel.py -> build/lib/chardet
[   57s] copying chardet/__init__.py -> build/lib/chardet
[   57s] copying chardet/langgreekmodel.py -> build/lib/chardet
[   57s] copying chardet/compat.py -> build/lib/chardet
[   57s] copying chardet/big5prober.py -> build/lib/chardet
[   57s] copying chardet/langhungarianmodel.py -> build/lib/chardet
[   57s] creating build/lib/chardet/cli
[   57s] copying chardet/cli/chardetect.py -> build/lib/chardet/cli
[   57s] copying chardet/cli/__init__.py -> build/lib/chardet/cli
[   57s] Nuitka:WARNING:Recursed to package 'chardet' at '/home/abuild/rpmbuild/BUILD/chardet-3.0.4/build/lib/chardet' twice.
[   57s] Nuitka:INFO:Recurse to import 'chardet.big5freq' from 'chardet/big5freq.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   57s] Nuitka:INFO:Recurse to import 'chardet.big5prober' from 'chardet/big5prober.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   57s] Nuitka:INFO:Recurse to import 'chardet.chardistribution' from 'chardet/chardistribution.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   57s] Nuitka:INFO:Recurse to import 'chardet.charsetgroupprober' from 'chardet/charsetgroupprober.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   57s] Nuitka:INFO:Recurse to import 'chardet.charsetprober' from 'chardet/charsetprober.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   57s] Nuitka:INFO:Recurse to import 'chardet.cli' from 'chardet/cli'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   57s] Nuitka:INFO:Recurse to import 'chardet.cli.chardetect' from 'chardet/cli/chardetect.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   57s] Nuitka:INFO:Recurse to import 'chardet.codingstatemachine' from 'chardet/codingstatemachine.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   57s] Nuitka:INFO:Recurse to import 'chardet.compat' from 'chardet/compat.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   58s] Nuitka:INFO:Recurse to import 'chardet.cp949prober' from 'chardet/cp949prober.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   58s] Nuitka:INFO:Recurse to import 'chardet.enums' from 'chardet/enums.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   58s] Nuitka:INFO:Recurse to import 'chardet.escprober' from 'chardet/escprober.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   58s] Nuitka:INFO:Recurse to import 'chardet.escsm' from 'chardet/escsm.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   58s] Nuitka:INFO:Recurse to import 'chardet.eucjpprober' from 'chardet/eucjpprober.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   58s] Nuitka:INFO:Recurse to import 'chardet.euckrfreq' from 'chardet/euckrfreq.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   58s] Nuitka:INFO:Recurse to import 'chardet.euckrprober' from 'chardet/euckrprober.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   58s] Nuitka:INFO:Recurse to import 'chardet.euctwfreq' from 'chardet/euctwfreq.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   58s] Nuitka:INFO:Recurse to import 'chardet.euctwprober' from 'chardet/euctwprober.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   58s] Nuitka:INFO:Recurse to import 'chardet.gb2312freq' from 'chardet/gb2312freq.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   58s] Nuitka:INFO:Recurse to import 'chardet.gb2312prober' from 'chardet/gb2312prober.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   58s] Nuitka:INFO:Recurse to import 'chardet.hebrewprober' from 'chardet/hebrewprober.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   58s] Nuitka:INFO:Recurse to import 'chardet.jisfreq' from 'chardet/jisfreq.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   58s] Nuitka:INFO:Recurse to import 'chardet.jpcntx' from 'chardet/jpcntx.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   58s] Nuitka:INFO:Recurse to import 'chardet.langbulgarianmodel' from 'chardet/langbulgarianmodel.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   58s] Nuitka:INFO:Recurse to import 'chardet.langcyrillicmodel' from 'chardet/langcyrillicmodel.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   59s] Nuitka:INFO:Recurse to import 'chardet.langgreekmodel' from 'chardet/langgreekmodel.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   59s] Nuitka:INFO:Recurse to import 'chardet.langhebrewmodel' from 'chardet/langhebrewmodel.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   59s] Nuitka:INFO:Recurse to import 'chardet.langhungarianmodel' from 'chardet/langhungarianmodel.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   59s] Nuitka:INFO:Recurse to import 'chardet.langthaimodel' from 'chardet/langthaimodel.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   59s] Nuitka:INFO:Recurse to import 'chardet.langturkishmodel' from 'chardet/langturkishmodel.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   59s] Nuitka:INFO:Recurse to import 'chardet.latin1prober' from 'chardet/latin1prober.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   59s] Nuitka:INFO:Recurse to import 'chardet.mbcharsetprober' from 'chardet/mbcharsetprober.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   59s] Nuitka:INFO:Recurse to import 'chardet.mbcsgroupprober' from 'chardet/mbcsgroupprober.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   59s] Nuitka:INFO:Recurse to import 'chardet.mbcssm' from 'chardet/mbcssm.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   59s] Nuitka:INFO:Recurse to import 'chardet.sbcharsetprober' from 'chardet/sbcharsetprober.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   59s] Nuitka:INFO:Recurse to import 'chardet.sbcsgroupprober' from 'chardet/sbcsgroupprober.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   59s] Nuitka:INFO:Recurse to import 'chardet.sjisprober' from 'chardet/sjisprober.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   59s] Nuitka:INFO:Recurse to import 'chardet.universaldetector' from 'chardet/universaldetector.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   60s] Nuitka:INFO:Recurse to import 'chardet.utf8prober' from 'chardet/utf8prober.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   60s] Nuitka:INFO:Recurse to import 'chardet.version' from 'chardet/version.py'. (Module is package content of 'chardet' instructed by user to recurse to.)
[   60s] Nuitka:WARNING:Recursed to package 'cli' at '/home/abuild/rpmbuild/BUILD/chardet-3.0.4/build/lib/chardet/cli' twice.
[   60s] Nuitka:WARNING:Recursed to module 'chardetect' at '/home/abuild/rpmbuild/BUILD/chardet-3.0.4/build/lib/chardet/cli/chardetect.py' twice.
[   66s] Nuitka:INFO:Included compiled module '__internal__'.
[   66s] Nuitka:INFO:Included compiled module 'chardet'.
[   66s] Nuitka:INFO:Included compiled module 'chardet.big5freq'.
[   66s] Nuitka:INFO:Included compiled module 'chardet.big5prober'.
[   66s] Nuitka:INFO:Included compiled module 'chardet.chardistribution'.
[   66s] Nuitka:INFO:Included compiled module 'chardet.charsetgroupprober'.
[   66s] Nuitka:INFO:Included compiled module 'chardet.charsetprober'.
[   66s] Nuitka:INFO:Included compiled module 'chardet.cli'.
[   66s] Nuitka:INFO:Included compiled module 'chardet.cli.chardetect'.
[   66s] Nuitka:INFO:Included compiled module 'chardet.codingstatemachine'.
[   66s] Nuitka:INFO:Included compiled module 'chardet.compat'.
[   66s] Nuitka:INFO:Included compiled module 'chardet.cp949prober'.
[   66s] Nuitka:INFO:Included compiled module 'chardet.enums'.
[   66s] Nuitka:INFO:Included compiled module 'chardet.escprober'.
[   66s] Nuitka:INFO:Included compiled module 'chardet.escsm'.
[   66s] Nuitka:INFO:Included compiled module 'chardet.eucjpprober'.
[   66s] Nuitka:INFO:Included compiled module 'chardet.euckrfreq'.
[   66s] Nuitka:INFO:Included compiled module 'chardet.euckrprober'.
[   66s] Nuitka:INFO:Included compiled module 'chardet.euctwfreq'.
[   66s] Nuitka:INFO:Included compiled module 'chardet.euctwprober'.
[   66s] Nuitka:INFO:Included compiled module 'chardet.gb2312freq'.
[   66s] Nuitka:INFO:Included compiled module 'chardet.gb2312prober'.
[   66s] Nuitka:INFO:Included compiled module 'chardet.hebrewprober'.
[   66s] Nuitka:INFO:Included compiled module 'chardet.jisfreq'.
[   67s] Nuitka:INFO:Included compiled module 'chardet.jpcntx'.
[   67s] Nuitka:INFO:Included compiled module 'chardet.langbulgarianmodel'.
[   67s] Nuitka:INFO:Included compiled module 'chardet.langcyrillicmodel'.
[   67s] Nuitka:INFO:Included compiled module 'chardet.langgreekmodel'.
[   67s] Nuitka:INFO:Included compiled module 'chardet.langhebrewmodel'.
[   67s] Nuitka:INFO:Included compiled module 'chardet.langhungarianmodel'.
[   67s] Nuitka:INFO:Included compiled module 'chardet.langthaimodel'.
[   67s] Nuitka:INFO:Included compiled module 'chardet.langturkishmodel'.
[   67s] Nuitka:INFO:Included compiled module 'chardet.latin1prober'.
[   67s] Nuitka:INFO:Included compiled module 'chardet.mbcharsetprober'.
[   67s] Nuitka:INFO:Included compiled module 'chardet.mbcsgroupprober'.
[   67s] Nuitka:INFO:Included compiled module 'chardet.mbcssm'.
[   67s] Nuitka:INFO:Included compiled module 'chardet.sbcharsetprober'.
[   67s] Nuitka:INFO:Included compiled module 'chardet.sbcsgroupprober'.
[   67s] Nuitka:INFO:Included compiled module 'chardet.sjisprober'.
[   67s] Nuitka:INFO:Included compiled module 'chardet.universaldetector'.
[   67s] Nuitka:INFO:Included compiled module 'chardet.utf8prober'.
[   67s] Nuitka:INFO:Included compiled module 'chardet.version'.
[   92s] + exit 0
[   92s] Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.wiv8m5
[   92s] + umask 022
[   92s] + cd /home/abuild/rpmbuild/BUILD
[   92s] + cd chardet-3.0.4
[   92s] ++ '[' -f _current_flavor ']'
[   92s] ++ cat _current_flavor
[   92s] + python_flavor=python3
[   92s] + '[' -z python3 ']'
[   92s] + '[' python3 '!=' python3 ']'
[   92s] + echo python3
[   92s] ++ '[' -f _current_flavor ']'
[   92s] ++ cat _current_flavor
[   92s] + python_flavor=python3
[   92s] + '[' -z python3 ']'
[   92s] + '[' python3 '!=' python3 ']'
[   92s] + echo python3
[   92s] + /usr/bin/python3 setup.py install -O1 --skip-build --force --root /home/abuild/rpmbuild/BUILDROOT/python-chardet-3.0.4-73.1.i386 --prefix /usr
[   93s] running install
[   93s] running install_lib
[   93s] creating /home/abuild/rpmbuild/BUILDROOT/python-chardet-3.0.4-73.1.i386/usr
[   93s] creating /home/abuild/rpmbuild/BUILDROOT/python-chardet-3.0.4-73.1.i386/usr/lib
[   93s] creating /home/abuild/rpmbuild/BUILDROOT/python-chardet-3.0.4-73.1.i386/usr/lib/python3.7
[   93s] creating /home/abuild/rpmbuild/BUILDROOT/python-chardet-3.0.4-73.1.i386/usr/lib/python3.7/site-packages
[   93s] creating /home/abuild/rpmbuild/BUILDROOT/python-chardet-3.0.4-73.1.i386/usr/lib/python3.7/site-packages/chardet
[   93s] creating /home/abuild/rpmbuild/BUILDROOT/python-chardet-3.0.4-73.1.i386/usr/lib/python3.7/site-packages/chardet/cli
[   93s] copying build/lib/chardet.so -> /home/abuild/rpmbuild/BUILDROOT/python-chardet-3.0.4-73.1.i386/usr/lib/python3.7/site-packages
[   93s] copying build/lib/chardet.pyi -> /home/abuild/rpmbuild/BUILDROOT/python-chardet-3.0.4-73.1.i386/usr/lib/python3.7/site-packages
[   93s] writing byte-compilation script '/tmp/tmp_brfmpho.py'
[   93s] /usr/bin/python3 /tmp/tmp_brfmpho.py
[   93s] removing /tmp/tmp_brfmpho.py
[   93s] running install_egg_info
[   93s] running egg_info
[   93s] writing chardet.egg-info/PKG-INFO
[   93s] writing dependency_links to chardet.egg-info/dependency_links.txt
[   93s] writing entry points to chardet.egg-info/entry_points.txt
[   93s] writing top-level names to chardet.egg-info/top_level.txt
[   93s] reading manifest file 'chardet.egg-info/SOURCES.txt'
[   93s] reading manifest template 'MANIFEST.in'
[   93s] warning: no files found matching 'requirements.txt'
[   93s] writing manifest file 'chardet.egg-info/SOURCES.txt'
[   93s] Copying chardet.egg-info to /home/abuild/rpmbuild/BUILDROOT/python-chardet-3.0.4-73.1.i386/usr/lib/python3.7/site-packages/chardet-3.0.4-py3.7.egg-info
[   93s] + mv /home/abuild/rpmbuild/BUILDROOT/python-chardet-3.0.4-73.1.i386/usr/bin/chardetect /home/abuild/rpmbuild/BUILDROOT/python-chardet-3.0.4-73.1.i386/usr/bin/chardetect-3.7
[   93s] mv: cannot stat '/home/abuild/rpmbuild/BUILDROOT/python-chardet-3.0.4-73.1.i386/usr/bin/chardetect': No such file or directory

I believe sed -i '/dist.cmdclass\["install"\] = install/d' nuitka/distutils/bdist_nuitka.py has now fixed my workarea (but I am manually working around the plat/pure problem).

I honestly do not know, why we have that install overload.
Maybe this causes the scripts to be written to another path, not sure of that.
class install(distutils.command.install.install):

    # pylint: disable=attribute-defined-outside-init
    def finalize_options(self):
        distutils.command.install.install.finalize_options(self)
        # Ensure the purelib folder is not used
        self.install_lib = self.install_platlib

One of these days, I will checkout what chardet does there. Because it seems to me, that install_scripts should be handled.
But that said, we are going to take the "scripts" part under greater control anyway, since we will want to become able to use multidist and avoid having the any package installed at all, but only binaries. That as an option of course. In that endevour here, you couldn't use it like that I guess. But overloading install_scripts would then be a thing I guess. Maybe now that I think of it, that is what might be missing. We do have examples with runner scripts though, so not sure if is really an issue, maybe it is also obsolte as a bug. I wonder what you would know about that, ever retried with recent Nuitka?

Closing for lack of feedback.


Change http client to one provided by apache.httpcomponents.client

We are observing some weird JSON parsing errors. Most probably we can exclude network issues because that problem is repeatable and happens on the application network layer (http). It could be problem at server side or client side.
After changing the RestTemplate's http client we do not observe a such problem further.

@nineinchnick @MiguelWeezardo ptal

After changing the RestTemplate's http client we do not observe a such problem further.

Did you find some documentation why it is suggested route?

Did you find some documentation why it is suggested route?

No, I did not. The only proof I can imagine myself is to show that Trino server is serving valid jsons. To do it, most probably we should track whole network traffic - it is something I would rather to avoid.


feat(transformer-dts): --isolatedDeclarations dts transform

The goal of this PR is to pass the test cases in https://github.com/microsoft/TypeScript/tree/main/tests/cases/transpile
Once this is polished, we may publish a npm package with napi bindings for people to experiment with.

#3664  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Dunqing and the rest of your teammates on  Graphite

We'll follow up with a PR fixing codegen to get tests passing.


Update Forseti CV documentation

[ ] Review current CV docs about scaling
[ ] Update or remove content that is outdated or has changed.

I don't think this data is up to date with core Forseti configurations as of late. I believe we have increased the standard VM sizes by default. Also there is work to page data into CV from Forseti which is to be released soon.
Can you please review the content here and ensure it is accurate or can be removed.
https://github.com/forseti-security/policy-library/blob/master/docs/user_guide.md#how-to-handle-scaling-for-large-resource-sets
How to handle scaling for large resource sets
If you want to scale for large resource sets, you need to add more RAM to your server**.** Upgrading the Forseti server VM to n1-standard-4 (15GB of RAM) should be able to handle most use cases. Depending on the state and size of your data, this may trigger a large number of violations. Currently GRPC has a payload size limitation of 4MB. If a scanner run results in > 4MB of violation data to be generated, that will result in an error.
In the future, we will consider the following changes:
Use streaming GRPC or paging the violation results.
Split the dataset into multiple chunks and process them separately.

The information here is inaccurate. n1-standard-8 (30 GB of RAM) machine type is needed to account for larger GCP environments.
This information is accurately documented on the Forseti website and no longer exists on the Policy Library repository. Hence, this issue can be closed.


Allow for offset

It may be the case that the user has a sticky header menu, for example, in which case the sticky elements shouldn't stick to the top of the page, but take that offset into consideration. Otherwise, it works great, thank you!

v0.6.3 was just released adding offset support :)


Feature request: Exit with non-zero status code when warnings occour

I would like to have a TSLint setup where most linting errors are reported as warnings (mainly due to editor integrations to be able to visually tell TS errors and linting errors apart). However when running our build system I would like to know if any warnings or errors occurred at all. Currently if only warnings occur then tslint CLI exits with status code 0.
Would it be possible to get a command line switch or something like this to change this behavior?

I would prefer to retain consistent & predictable semantics where error == non-zero exit and warning == zero exit. A better way to approach this might be to override the defaultSeverity when running your build, either through a CLI flag or a separate tslint.json:
{
  defaultSeverity: "warning",
  extends: "editor-tslint.json"
}

we'd need to fix #2569 for the latter, though.

That would also work, although I can't see the harm (other than added feature set to maintain obviously) in simply adding a switch to always return non-zero if any warnings or errors occurred during the lint run.

I'm personally very much in favor of --strict or --max-warnings implementation.

Now that defaultSeverity can be overridden, it looks like --max-warnings is the only part of this issue still in discussion.

bump
I agree with any other method than creating dedicated tsconfig file for failing on warning.

💀 It's time! 💀
TSLint is being deprecated and no longer accepting pull requests for major new changes or features. See #4534. 😱
If you'd like to see this change implemented, you have two choices:

Recommended: Check if this is available in ESLint + typescript-eslint ✅
Not Recommended: Fork TSLint locally 🤷♂

👋 It was a pleasure open sourcing with you!
If you believe this message was posted here in error, please comment so we can re-open the issue!


Second Delay got skipped

Quests version 3.6.4-b689
Paper Spigot: 1.8.8
When the first delay running out and again the delievery then no delay and can deliver again and then comes the third delay.

custom69:
name: Some Dirt
npc-giver-id: 54
ask-message: ''
finish-message: ''
gui-display: name-BOOK_AND_QUILL:amount-1
stages:
ordered:
'1':
items-to-deliver:
- name-DIRT:amount-1
npc-delivery-ids:
- 54
delivery-messages:
- y
delay: 1
'2':
items-to-deliver:
- name-DIRT:amount-1
npc-delivery-ids:
- 54
delivery-messages:
- y
delay: 30
'3':
items-to-deliver:
- name-DIRT:amount-1
npc-delivery-ids:
- 54
delivery-messages:
- y
delay: 1

Please use Pastebin or Hastebin for the example quest. I can't do anything with the way Github formats your copy/paste.

https://pastebin.com/wCagkrrr

i had the same problem. I refused to use delays :(
Help us someone please

Up. Please fix it, i need it so much

Use http://ci.ac3-servers.eu/job/Quests/743/
There's a chance this fix could cause unintended side effects with delays. As always, please make a new Github issue should new problems arise.

Thank you so much!!!!!! <3


diesel migration run|pending|etc panics if connection fails (instead of outputing a formatted user friendly message)

Setup
Versions

Rust: rustc 1.32.0
Diesel: diesel 1.4.0
Database: postgresql 11.1 (but irrelevant for this issue)
Operating System: Linux Ubuntu 18.04 LTS (bionic)

Feature Flags

diesel: diesel-cli (diesel migration command)

Problem Description
diesel migration pending|run|etc... panics if database is down (connection refused).
What are you trying to accomplish?
run diesel migration commands
What is the expected output?
A better user friendlier formatted output from the CLI. Panicking is just odd, because it's an error with good typed context to output.
What is the actual output?
$ diesel migration pending
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ConnectionError(BadConnection("could not connectto server: Connection refused\n\tIs the server running on host \"localhost\" (<IP_ADDRESS>) and accepting\n\tTCP/IP connections on port 5432?\n"))', src/libcore/result.rs:1009:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Are you seeing any additional errors?
Maybe more CLI commands suffer from the same issue? (I just tested with diesel migration though)
Steps to reproduce

set DATABASEURL=... on .env to a valid URL that points to some random host/port/db which doen't have a db server listening to.
run diesel migration pending or diesel migration run.

Checklist

[X] I have already looked over the issue tracker for similar issues.
[X] This issue can be reproduced on Rust's stable channel. (Your issue will be
closed if this is not the case)

I'm facing this issue now too.

@mikeumus Please always include information in such comments. As currently written your comment is not helpful as it does not contain any information about which diesel version you are using, which command causes which error message and so on.


Server key address output incorrect for Electron using TCP

Given I have an Electron with valid keys for the UDP and TCP servers
When I run particle keys protocol tcp
And I run particle keys address
Then I expect the output to be tcp://device.spark.io:5683
But instead I currently see tcp://$id.udp.particle.io:5683
It seems as though the CLI implementation of particle keys address is correctly checking the protocol and correctly changing the port, but incorrectly handling the host name, allowing the CLI default even to be overridden incorrectly.

I couldn't reproduce this with CLI 1.19.2. It printed out the correct address.

The keys and protocol handling has been revamped, so this issue should be fixed, although I couldn't reproduce it.


How does APN xml match SIM card of different mobile operators with correct APN profile?

Hi Microsoft experts,
I am developing my tablet(with Qualcomm cellular modem) and I want to make sure that users can access Internet once insert their SIM card.
Due to I have no method to view full APN list of Windows 11, I am not sure that all operators have correct APNs on Windows11.
So, I want to add some APN profiles for specific mobile operators and I find following document, but it is still unclear for me to know how does Windows match APN profile with SIM card. Does it match APN through ICCID, MCC MNC or IMSI?
I would be very appreciate If you can improve this document and I will be able to add APN for MOs.

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

ID: 9ad6c4f7-b1a9-4939-295c-2cb4f743c71e
Version Independent ID: 7f5261a7-3116-5629-584a-9c6e116c6a49
Content: APN example - Windows drivers
Content Source: windows-driver-docs-pr/mobilebroadband/apn-example.md
Product: windows-hardware
Technology: mobilebroadband
GitHub Login: @aviviano
Microsoft Alias: amvivian

Hi @BobXGY,
Thanks for opening this issue.
The COSA database contains the inbox data for Windows, including APNs.
Desktop COSA/APN database settings shows that MCC, MNC, IMSI range, ICCID range, and SPN are used to match the profile.
Testing your desktop COSA/APN database submission - Windows drivers | Microsoft Learn has information for testing the local database if updates are needed, but most of the MOs should be in the Inbox database already.
Does this answer your question?

@BobXGY: Additionally, note that operators can decide on which of the identifiers they'd like to choose depending on their use case. While some operators will match devices using MCC/MNC and ICCID ranges, others may use SPN or an IMSI range to match devices with the correct APN profile.

Hi, @aviviano,
Thanks for your reply.
I've tried as this sample to customize APN: https://learn.microsoft.com/zh-cn/windows-hardware/customize/desktop/customize-cosa,
ppkg has been imported, but target device did not use new APN on Anritsu base station simulator, do you have any debug suggestions?
Additionally, will we able to check complete internal APN list on Windows11? Then we could know if the APN lists are suitable for us.
Best Regards

Hi @BobXGY,
I'm sorry, the documentation team doesn't have the bandwidth to help you with specific debugging questions. You could try posting your question on Stack Overflow, Microsoft Q&A, or the OSR NTDEV forum.
Also, note that the APN database is gone as of Win 10 v1703. We are working on updating the documentation.
Thanks again for your questions. Please open a new issue if you have further documentation questions.


Performance regression

See issue here:
Originally posted by @nfyfamr in https://github.com/Parskatt/RoMa/issues/54#issuecomment-2211545821

Should be mostly fixed by https://github.com/Parskatt/RoMa/commit/f2ec3dea08c2eaf09be0014446fa056927951098