Configuration of addresses could be more robust

We need to configure the TCP router IP address in order to run RATs.  Unfortunately, the router IP address varies by deployment and also may be unstable if you are tearing down and recreating an environment.  This forces us to manually update the IP address for each environment and also each time we recreate an environment.
If instead, RATs accepted a DNS name (e.g. tcp.luna.cf-app.com) for the tcp router address, then we wouldn't need to change it every time we recreate an environment.  This would be a bit better for our use case, and it's not clear to us why it wouldn't work.
cc: @staylor

@jaresty @staylor :
RATs does accept a DNS name (e.g. tcp.luna.cf-app.com) for the tcp router address. We are currently running RATS in our CI environments with DNS name and we haven't had any issues.
Closing this issue for now. Feel free to open another issue if you are having trouble running RATS.
Regards
Shash

Hi @shashwathi,
Thanks for letting us know!  Perhaps you could update the example
config.json on this page
to use a DNS name instead of an IP address?  Since the api key on that page
contains api.bosh-lite.com while the "addresses" section is using an IP
address, it appears as if the proper configuration requires an IP address.
Thanks,
Josh && @staylor
On Fri, Jan 20, 2017 at 12:50 PM Shashwathi<EMAIL_ADDRESS>wrote:

Closed #5
https://github.com/cloudfoundry-incubator/routing-acceptance-tests/issues/5
.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/cloudfoundry-incubator/routing-acceptance-tests/issues/5#event-931282223,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABQMNCsOg3hIvQBL49Yy8ilYTIw18GSEks5rUR4tgaJpZM4LosZ_
.

@jaresty:
I agree we need to add more documentation for addresses property in config.json. We have just updated the README, please let us know if it's still unclear.
Regards
Aaron & @shashwathi

Thanks - it looks much better now!
2017年1月23日(月) 10:14 Aaron Hurley<EMAIL_ADDRESS>
@jaresty https://github.com/jaresty:
I agree we need to add more documentation for addresses property in
config.json. We have just updated the README
https://github.com/cloudfoundry-incubator/routing-acceptance-tests/commit/b3b4839354117167ecee9423cfa6bc11e1c4788a,
please let us know if it's still unclear.
Regards
Aaron & @shashwathi https://github.com/shashwathi
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/cloudfoundry-incubator/routing-acceptance-tests/issues/5#issuecomment-274570479,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABQMNKK6h0AXeLso0Msurtaxegv4ZaHBks5rVO4agaJpZM4LosZ_
.


Link to the VM

The README file mentions these samples are used in a VM. Can you add instructions to the README on how to download and use this VM?

@martygubar Marty, is it possible to have the VM linked from the README file?

@brunoborges Done!


[refactor]: Type check by injection

One trick that you could do here is to insert the actual type with the fully qualified path. What this will do is also type check the output of the function.
So you could for example replace the return type with ::iroha_validator::validator::ValidatorResult, and allow rustc to also type check the output, not just be a passive observer.
Originally posted by @appetrosyan in https://github.com/hyperledger/iroha/pull/3723#discussion_r1278086983

Was done initially in #3723 as I pointed here


To improve performance ,disable concurrent GC

In document  fundamentals of garbage collection

To improve performance when several processes are running, disable concurrent garbage collection

I think concurrent GC is help to improve application performance.It reduce the pauses time when GC is running. Why disable concurrent garbage can improve performance?

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

ID: d8948cf5-0aec-308c-8046-965cc15763b2
Version Independent ID: a30a0be5-b741-2a9c-e997-55d6d9960ca9
Content: Fundamentals of garbage collection
Content Source: docs/standard/garbage-collection/fundamentals.md
Product: dotnet
Technology: dotnet-standard
GitHub Login: @rpetrusha
Microsoft Alias: ronpet

@rpetrusha  perhaps you can answer this question?

@Maoni0, can you answer this question?

yeah, that should be changed. I actually wonder if we even want to keep this section anymore - this talks about the version of the concurrent GC before BGC and BGC has been in existence since .NET 4.0 so do we want to keep the doc for pre 4.0?

I think we want to keep it for 3.5 and earlier, @Maoni0, but it clearly needs some fairly extensive revision. I'm about to start working on the other GC issues, so I'll do this at the same.


Awareness seams not to work properly

Description
I am using the playground from the repo. Even there the awareness states are not correctly synced between browsers. It works within the same browser but in different tabs/windows tho. Firefox does not work at all showing both the connect and disconnect buttons.
Steps to reproduce the bug
Steps to reproduce the behavior:
Clone the repo and run the playground as started in the readme.
Expected behavior
All active users for a document should be synced as described in the docs.
Environment?

operating system: MacOs iOS
browser: Safari, Chrome, Firefox
mobile/desktop: Mobile and Desktop
hocuspocus version: 1.0

Closing this, let me know if you're still facing issues @andrezimpel


How to Add OpenPGP_OnePassSignaturePacket when Signature ?

how can i add OpenPGP_OnePassSignaturePacket object when signature? i show in code have class_for in openpgp_packet when it will call?

If you want to construct a one-pass style signature you will have to construct the packet manually and then re-order the message so it matches RFC4880 for the one-pass signature messages.


created pr checker automation workflow

Usage:
When a pull request is created or edited, the workflow automatically triggers.
The workflow checks for:

A non-empty PR description.
A valid issue reference format (Fixes # or Fixes #NEW).
If either check fails, the PR will be marked as failing, and the author will receive clear error messages in the PR comments.
If all checks pass, a confirmation message will indicate that the PR is valid.

Title of the Pull Request

[x ] Have you renamed the PR Title in a meaningful way?

Related Issue

Closes: #1052
fix #1052
Description
This workflow automatically checks every pull request for adherence to coding standards and quality guidelines. It runs linting and testing processes to ensure that code meets the repository's requirements before merging, helping to maintain code quality and consistency.
How Has This Been Tested? ⚙

Screenshots 📷

Type of change
What sort of changes have you made:

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

Checklist

[ x] My code follows the code style of this project.
[ x] I have followed the contribution guidelines
[ x] I have performed a self-review of my own code.
[ x] I have ensured my changes don't generate any new warnings or errors.
[ x] I have updated the documentation (if necessary).
[ x] I have resolved all merge conflicts.

hello @vishanurag please review the pr


Added parameter pricing preview calculator

This is a fix for #614

This change is

Codecov Report

Merging #615 into master will increase coverage by <.01%.
The diff coverage is 85.18%.

@@             Coverage Diff              @@
##             master     #615      +/-   ##
============================================
+ Coverage      58.1%   58.11%   +<.01%
- Complexity    18682    18693      +11
============================================
  Files          1932     1932
  Lines         99508    99534      +26
  Branches      10109    10112       +3
============================================
+ Hits          57821    57843      +22
  Misses        38609    38609
- Partials       3078     3082       +4

Continue to review full report at Codecov.

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

I've merged this pull request in a separate branch in our repository in order to see how the proposed feature works and then review the changes.


Empager update

So, I had another issue with pager ambeded in a UITabBarController. This time with calendar Example. I've updated EMPageViewController and applied your changes. The problem seems to be gone. Please, review the changes.
Also, I think that EMPageViewController should be added to the project as a direct dependency (podspec dependency, don't know if carthage support this, but sure it does). But this is just my thoughts)

Thanks 🙌
Yeah, it really should've been added as a direct dependency. It didn't support Carthage at the time and I didn't want to use CocoaPods, so I just included it manually. But I'm planing on moving away from EMPageViewController anyway, so I might just leave it until I've made a replacement.

@rechsteiner hello :)
I hope you are feeling well
checkout this PageControl
I think it could be a good alternative to EMPageViewController

Cool! Looks like a really nice framework 👌 It won't work for Parchment though, as the data source requires you to pass in all your view controllers at once. With EMPageViewController you can initialize view controller as you swipe, meaning you don't have the overhead of creating all of them up front. It also means it won't support infinite data sources, like the calendar example.


Custom Logging by Default

Could we have custom logging by default on all services?
Advantages:

Colors don't explode all over the place when refreshing
Logs don't differ when refreshing
Online detection regardless of whether it's printed to logs or not (I see minecraft servers failing a lot here)

You want to explain what custom logging is?

custom: true in the logging properties of a service.
Having the daemon do the logs instead of the games, since they may differ from console output

No. That doubles the amount of space being used for log storage, and puts additional unnecessary IO and memory pressure on the daemon.
It is up to the person making an egg to determine if they need to use custom logging or not.

So this has been implemented into the daemon. I'm leaving the logging stuff in the eggs for now, but it will be removed down the road since it does nothing currently.


Copilot chat could not give any answer after inputing  any command in copilot chat extension, always show me "it is generating"

Copilot Chat Extension Version: GitHub Copilot Chat
v0.20.1
VS Code Version: 1.93.1
OS Version: macos Sonoma 14.5 (23F79)
Logs:

Steps to Reproduce:

click the Copilot chat button in vscode ,  it works fine before.
from yesterday ,  it could not give any answer after inputing  any command in copilot chat extension
always show me "it is generating"

please help, thanks.

Can you check the logs in the Copilot Chat output channel and share them? A screenshot might help too.

sorry for late reply, how to reopen it?

/reopen


Fix the issue of unexpected warning icons appearing.

Description
The design in the UI does not match the code. I did not add an icon in the code, but it appears in the UI.

https://github.com/lightsail-network/app-stellar/commit/77d6fcc06a49c7cb764426128998392e5003f812
Your environment

Stax and Flex
speculos 0.96
SDK v21.2.1

Steps to reproduce
git clone https://github.com/lightsail-network/app-stellar
cd app-stellar
git checkout 77d6fcc06a49c7cb764426128998392e5003f812

# build
sudo docker run --rm -ti -v "$(realpath .):/app" --user $(id -u $USER):$(id -g $USER) ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
BOLOS_SDK=$STAX_SDK make

speculos -m stax --display qt bin/app.elf

Enable hash signing in settings.
pip install strledger
export LEDGER_PROXY_ADDRESS=<IP_ADDRESS> && export LEDGER_PROXY_PORT=9999
strledger -v sign-hash a85c933d37847689825acbdfeb50e66d791814abf03b9be4bd6450abb6c99616

Related code https://github.com/lightsail-network/app-stellar/blob/77d6fcc06a49c7cb764426128998392e5003f812/src/ui/nbgl_hash.c
Expected behaviour
Warning icon does not appear.
Actual behaviour
Please refer to the screenshot above.
Logs
N/A
Proposed solution
If you have an idea of how to fix this issue, please write it down here, so we can begin discussing it
Additional information
What further confuses me is that these warning icons do not appear 100% of the time; they appear and disappear intermittently during testing.
This is the different screenshot generated from running tests yesterday and running tests today, with no changes made to the relevant code. https://github.com/lightsail-network/app-stellar/commit/77d6fcc06a49c7cb764426128998392e5003f812

fixed by https://github.com/LedgerHQ/ledger-secure-sdk/pull/739
cc: @overcat


Session properties cannot be overridden once a transaction is active

System information:

Operating system: MacOS
DBeaver version: Version <IP_ADDRESS>105021514
DB: Presto

Describe the problem you're observing:
Hi,
I had been using right click -> Execute -> Export from Query -> Copy to Clipboard to paste query results into local.
But since yesterday when I tried to import a huge .csv file and failed multiple times, this copy to clipboard thing does not work anymore with this error message.
Task execution failed
Reason:
SQL Error [65536]: Query failed (#20210513_071843_02069_7amz6): Session properties cannot be overridden once a transaction is active

I tried restart, reinstall to make sure there is no action transaction, but this error is not resolved.
Please help. Thank you very much!

@wandajuan-houzz do you use manual commit or auto-commit?

Both. But I just realized when switching to auto-commit, the same error also showed up.

Also experiencing the same issue as OP when using "Export from Query" after trying to import a csv. Option was working fine until recently.

is it still actual against 21.1.0?

Yes - I recently updated to 21.1.0 from a (much) older release and still hitting a similar error

Can you show how your transactions options are configured

there is no update on an issue for a long time.
If it is still actual - feel free to reopen it with additional info to reproduce the issue.


Fix RegExp.exec (#194)

(with optimization for when the result is only index-accessed)

Now forbidding exec call on non-literals (since we can't easily replicate the multiple-calls-on-same-global-regexp case).

LGTM.


Project Idea: Add tags to datasets automatically based on file names during import

I'm working on this now, back of the dev hack room


Issue with bot account thats whitelisted but halts PRs

URL to the linked Repo/Org:
https://github.com/ConsenSys/tessera/pull/1175
Steps to reproduce the problem:

quorumbot is in the list of users that have signed the CLA on the repo
Any other information? (attach screenshot if possible)

Raise a PR where quorumbot is a user and merges are halted at the CLA check. Ref https://github.com/ConsenSys/tessera/pull/1175
PR's cannot be merged because the CLA check fails

What is the expected result?
PRs are not halted on the CLA check with qurourmbot (or any other user in the whitelist)
What happens instead?
PRs are halted on the CLA check with qurourmbot

@joshuafernandes the PR, which you have linked here seems to be ok. Have you solved this issue on your own or do you still need help?

Looks good now, thankyou


[SMALLFIX] Use hostname instead of ip:port as the ufs block location

Two reasons:

Alluxio uses hostname when returning cached block locations.
Keep it consistent with Spark.  https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/rdd/ReliableCheckpointRDD.scala & line = 89
https://github.com/apache/spark/blob/master/streaming/src/main/scala/org/apache/spark/streaming/util/HdfsUtils.scala & line = 72

@calvinjia

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/11265/
Test PASSed.

LGTM


Update sha256 checksum for keepassxc-2.1.0

See: https://github.com/keepassxreboot/keepassxc/releases/download/2.1.0/KeePassXC-2.1.0.dmg.DIGEST
If there’s a checkbox you can’t complete for any reason, that's okay, just explain in detail why you weren’t able to do so.
After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} reports no offenses.
[x] The commit message includes the cask’s name and version.

Additionally, if adding a new cask:

[ ] Named the cask according to the token reference.
[ ] brew cask install {{cask_file}} worked successfully.
[ ] brew cask uninstall {{cask_file}} worked successfully.
[ ] Checked there are no open pull requests for the same cask.
[ ] Checked the cask was not already refused in closed issues.
[ ] Checked the cask is submitted to the correct repo.

Looks like this got submitted while I was working on it as well. Closing.


A few questions

Hi there,
I was looking for a Portisch firmware replacement (which is no longer being developed) for my SONOFF RF Bridge R2 V1.0 and found yours.
If you don't mind, I have a few questions.

What is the relationship of this with the Portisch firmware? Is this a "fork"/"continuation"?
What does this "Portisch: No" in the README table mean?
Status says: "should not be used by typical users", but is this also valid for EFM8BB1 or only for OB38S00?

Thanks a ton.

Hi, I recently modified Portisch source to compile with SDCC compiler and to use hardware abstraction.
Unfortunately, Portisch does not yet work on OB38S003 for unknown reasons despite being able to compile.
I hope to figure out why sooner or later.
However, since you have the Sonoff R2 V1.0 (black box correct?), you can test this Portisch port here:
https://github.com/mightymos/RF-Bridge-OB38S003/releases/tag/v0.4.0
The rcswitch version is basically just a smaller compiled size so more protocols can be supported at one time.
Portisch takes up more code space and therefore cannot fit many protocols.
Howver Portisch has the sniffing feature - I can produce output from my radio door sensor durign sniffing but I do not know if the output is actually correct or ultimately helpful to decode unknown protocols.
The passthrough version basically just allows decoding on the ESP8285 itself without requiring hardware modification.
I have only tested these firmware primarily on my development board, so if you try them out on black box Sonoff it would be helpful to hear if you are successful in decoding or transmitting or not.

That sounds very good. I don't think I will be able to test it anytime soon, but if I do, I'll surely report back.
Thank you very much for the response, and good luck with the project.

This single but thorough user has managed to test the Portish port with a good deal of success:
https://github.com/mightymos/RF-Bridge-OB38S003/issues/11
However, I really can't say there is a particular reason to use this version for v1.0 hardware users unless some type of bug(s) are found which was not previously addressed in original Portisch...
https://github.com/Portisch/RF-Bridge-EFM8BB1/issues/232
And even then I am not sure if any bug is visible to user operation or not.
Anyway, cheers mate.


Bluetooth: Mesh: Use mesh settings API only if settings are enabled

Don't call bt_mesh_settings_store_pending if CONFIG_BT_SETTINGS is not
enabled.
Signed-off-by: Pavel Vasilyev<EMAIL_ADDRESS>

@LingaoM, @alxelax sorry, forgot to rebase the branch, please re-approve.

@LingaoM @jhedberg @alxelax could you please re-approve again?


[Server] Dedicated server crashes upon loading a gravitite ore entity (item)

Judging from logs here it seems that upon ticking the block shortly after mining it, there's an error causing the server to crash, this also happens upon reloading the server (multiple times)
Other fabric mods, Versions of those mods, JVM Flags, and other system info are available in the crashlog
All other functions seem unaffected

This is because the server is trying to call a class that only exists on the client side.

should be fixed in next version

This is because the server is trying to call a class that only exists on the client side. Oops

ah
well nowhere in hell would i have figured that one out myself xd

resolved in b1.0.3


Revise CI setup to do less redundant work

Right now, our test setup doesn't cache anything, which forces tasks to re-download dependencies and take longer to complete than they need to. Also, re-pushes don't cancel in-progress builds of the former commit on PR. This leads to overlapping and redundant jobs. The combination of these means longer run queues and more parallel jobs than helpful.
I'm not sure how well cancellation features work, but actions/cache@v2 is very commonly used to cache go and docker dependencies between runs.

Hi! I had a look around some of your other open issues, and I am willing to help with your builds/CI.
Looks like there is just some elbow grease needed in image optimization and the like. Also, I think I can improve your caching situation by using Earthly. One advantage of Earthly over actions/cache@v2 is that the cache can also be shared by local developers too, which can improve the local dev/test loop.
Disclaimer: I work for Earthly. But, not all the improvements or help would be dependent on our tool; I genuinely think we have something we could offer you here.
Willing to get started, if you are open to my contribution?

Disclaimer: I'm pretty new to the projects here even if fairly prolific in this repo lately. Take my opinion as just that.
Thanks for reaching out @dchw! Personally, I'm intrigued and in concept like this better than bazel. I also like reproducibility and prefer something the build manages vs trying to emulate GH actions like https://github.com/nektos/act (though I might still try to use this anyway). Personally, I would like to get experience with earthly even if it turned out to be something needed to change later.
One glitch here is that it only recently and with heavy effort is somewhat like our other projects. To then move it to be unlike is not bad, as someone needs to progress. On the other hand, this repo isn't stable, yet and it has a lot of moving parts and adding something new to the build may distract from fixing the other things. In other words, to add another new thing here now, might not be the best timing.
I noticed https://github.com/tetratelabs/getenvoy-package is full of custom scripts and things, but seems like it doesn't need to. I can't speak for others, but you could check there and someone might answer. Meanwhile, if other maintainers are on board with trying here, I'd support it also, just above commentary in mind.

Makes sense. I get that it might be hard to move or introduce weirdness in a single repository without adopting it organization wide. Maybe, the best approach then is to give it a shot, but try to decouple enough benefit from our tool that its not a complete waste of time for you and your team? Though, I do also believe that Earthly could offer a lot based on what I have seen from snooping around.

With expectations set as you mentioned, seems fair enough. Main thing about a tool is usually it needs a champion and if I switch projects it could be perceived a bomb if others aren't on board. Anyway, the best way forward is like you said imho. meta discussing < trying and deciding. If you are ok with a potential not-merge, please show us the way!

there's little going on anymore as everything including e2e is 2m after #200


Bug: Hovercards are not displaying on the Contributor Distribution chart

Describe the bug
When hovering over an avatar, the contributor card should be displayed
Steps to reproduce

Go to a repo page contributors
https://app.opensauced.pizza/s/facebook/react/contributors
Hover over an avatar
Note no card is displayed

Hi @brandonroberts @zeucapua,
The Avatar component is being passed instead of AvatarHoverCard in the contributor-card component. I've fixed it locally. If the fix works, should I ask to be assigned to this issue?
screen-capture (22).webm

Thanks @SURAJ-SHARMA27. This work is already assigned. Its the chart that's not showing the hovercards

Sure, no problem if the issue is already assigned. However, I was going through the documentation and have made some progress in solving it. If I can help, please let me know :) . @brandonroberts @zeucapua
screen-capture (23).webm

I've tried a bunch of things for this, and I think the issue lies in the fact that it's a foreign object in SVG that houses an HTML element. I've tried z-indices, portals, dialogs, no dice... yet.
Going to punt on this for a little bit to focus on the pizza CLI work.

I see you have #3982 up @zeucapua. Is that still being worked on? If so, we can reassess once that work is done.

Hey everyone,
To enable mouse interactions on a nodeComponent (specifically, a foreign element), we need to explicitly define the onMouse events for that component, as it overrides the default mouse interactions. Once these onMouse events are handled, I have defined a customTooltip for the hover card.
Further review is needed. I look forward to your feedback.


Expose IPV6_FLOWINFO* on Linux

r? @gnzlbg
(rust_highfive has picked a reviewer for you, use r? to override)

:pushpin: Commit b59eb6b423a0f4b9cfcdcc9e9d58e4812eddc72e has been approved by gnzlbg

@bors: r+

:hourglass: Testing commit b59eb6b423a0f4b9cfcdcc9e9d58e4812eddc72e with merge 605d5f0ff74ab6807fefcc4ad93bc34c6e81de4f...

:broken_heart: Test failed - checks-travis

@bors: retry

:hourglass: Testing commit b59eb6b423a0f4b9cfcdcc9e9d58e4812eddc72e with merge cf2397e15fd72f78df4db2a4f2069a2f57dc56fd...

:broken_heart: Test failed - checks-travis

@bors: retry

:hourglass: Testing commit b59eb6b423a0f4b9cfcdcc9e9d58e4812eddc72e with merge 577fdc86b239f1909645e60ef6a79f5e7f76b783...

:sunny: Test successful - checks-cirrus, checks-travis, status-appveyor
Approved by: gnzlbg
Pushing 577fdc86b239f1909645e60ef6a79f5e7f76b783 to master...

Thank you!


GPU utilization rate

How to improve GPU utilization? I ran IPPO code on the 14900k+4090 platform, which took up 18-19 threads of CPU, less than 9GB of GPU memory, and only about 20% GPU til.
How to modify parameters or configurations to improve GPU utilization.
Also, may I ask how long it takes to run IPPO code using the 4080, which CPU it is paired with, and whether weak CPU performance will affect code efficiency.
Which image displayed by Wandb can reflect the simulation speed.
At present, I am renting a machine and would like to test which CPU and GPU combination can maximize revenue. Your suggestions will be very helpful to me.

Hi @dwegfe16,
Thank you for reaching out! It is true that although the raw GPU utilization of the simulator is near 100%, our Stable-Baselines IPPO implementation contains some inefficiencies that result in a lower overall utilization rate.
To address this, we have recently integrated a new IPPO implementation based on PufferLib. This implementation achieves approximately 80% GPU utilization, depending on settings such as num_worlds, max_cont_agents, and kMaxAgentMapObservationsCount (please refer to src/consts.hpp to configure these settings). We recommend using this implementation for faster training. You can find further details here. Running this will log several metrics under the performance/ directory, including pad_agent_sps (total agent steps) and controlled_agent_sps (valid and controlled agents).
In our paper, we provide information about the GPUs used for speed benchmarking, specifically, we used both NVIDIA RTX 4080 and A100 GPUs.
One important note about measuring GPU utilization: the "utilization" reported by tools like nvidia-smi does not factor in the number of Streaming Multiprocessors or more granular resource metrics, such as tensor core activation, floating point intensity, and DRAM-SRAM bandwidth. "Utilization" is simply a measure of whether the GPU is busy over time. For more information on this topic, here is a helpful blog post: https://arthurchiao.art/blog/understanding-gpu-performance/.
Hope that's helpful and good luck!

Thank you for your enthusiastic response. It's very professional and informative. I hope your work will be even more outstanding！

Thank you!


docslegal

Docs Build status updates of commit 7e1d39b:
:clock10: Pending: waiting for processors (7 builds ahead of you)
:warning: Docs Build is busy, currently there are 7 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 7e1d39b:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

DocsLegal/TOC.md
:white_check_mark:Succeeded

DocsLegal/learntv/codeofconduct.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


flutter run fails in flutter/layers on iOS

Steps to Reproduce
On a mac with an iOS simulator open, execute
cd examples/layers
flutter run -t widgets/hello_world.dart

The build fails (log below). It appears that pod install was not done as part of building (cc @jakobr-google )
Works fine on the same host machine with an Android emulator open instead of the iOS simulator.
Logs
$ flutter run -t widgets/hello_world.dart
Launching widgets/hello_world.dart on iPhone 7 in debug mode...
Running Xcode build...                                0.8s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **

    The following build commands failed:
    	PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-AB1344B0443C71CD721E1BB7.sh
    (1 failure)
Xcode's output:
↳
    Build settings from command line:
        ARCHS = x86_64
        BUILD_DIR = /Users/mravn/github/flutter/examples/layers/build/ios
        ONLY_ACTIVE_ARCH = YES
        SDKROOT = iphonesimulator10.3

    === CLEAN TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release ===

    Check dependencies
    Release.xcconfig line 2: Unable to find included file "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
    Release.xcconfig line 2: Unable to find included file "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"

    Clean.Remove clean /Users/mravn/github/flutter/examples/layers/build/ios/Release-iphonesimulator/Runner.app
        builtin-rm -rf /Users/mravn/github/flutter/examples/layers/build/ios/Release-iphonesimulator/Runner.app

    Clean.Remove clean /Users/mravn/github/flutter/examples/layers/build/ios/Release-iphonesimulator/Runner.app.dSYM
        builtin-rm -rf /Users/mravn/github/flutter/examples/layers/build/ios/Release-iphonesimulator/Runner.app.dSYM

    Clean.Remove clean /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build
        builtin-rm -rf /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build

    ** CLEAN SUCCEEDED **

    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release ===

    Check dependencies
    Release.xcconfig line 2: Unable to find included file "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
    Release.xcconfig line 2: Unable to find included file "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"

    Write auxiliary files
    write-file /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-AB1344B0443C71CD721E1BB7.sh
    chmod 0755 /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-AB1344B0443C71CD721E1BB7.sh
    write-file /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner-own-target-headers.hmap
    write-file /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner-project-headers.hmap
    write-file /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-95BB15E9E1769C0D146AA592.sh
    chmod 0755 /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-95BB15E9E1769C0D146AA592.sh
    /bin/mkdir -p /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Objects-normal/x86_64
    write-file /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Objects-normal/x86_64/Runner.LinkFileList
    write-file /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner.hmap
    write-file /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-9740EEB61CF901F6004384FC.sh
    chmod 0755 /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-9740EEB61CF901F6004384FC.sh
    write-file /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-532EA9D341340B1DCD08293D.sh
    chmod 0755 /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-532EA9D341340B1DCD08293D.sh
    write-file /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-3B06AD1E1E4923F5004D2608.sh
    chmod 0755 /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-3B06AD1E1E4923F5004D2608.sh
    write-file /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner-all-non-framework-target-headers.hmap
    write-file /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner-all-target-headers.hmap
    write-file /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner-generated-files.hmap

    Create product structure
    /bin/mkdir -p /Users/mravn/github/flutter/examples/layers/build/ios/Release-iphonesimulator/Runner.app

    ProcessProductPackaging "" /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner.app.xcent
        cd /Users/mravn/github/flutter/examples/layers/ios
        export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/mravn/.rvm/gems/ruby-2.2.2/bin:/Users/mravn/.rvm/gems/ruby-2.2.2@global/bin:/Users/mravn/.rvm/rubies/ruby-2.2.2/bin:/usr/local/share/npm/bin:/Users/mravn/.pub-cache/bin:/Users/mravn/github/engine/src/third_party/android_tools/sdk/platform-tools:/Users/mravn/github/flutter/bin:/Users/mravn/tools/depot_tools:/Users/mravn/bin:/usr/local/git/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/mravn/.rvm/bin"

    Entitlements:

    {
        "application-identifier" = "AQ7UHDBEXJ.io.flutter.examples.Layers";
        "keychain-access-groups" =     (
            "AQ7UHDBEXJ.io.flutter.examples.Layers"
        );
    }

        builtin-productPackagingUtility -entitlements -format xml -o /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner.app.xcent

    PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-AB1344B0443C71CD721E1BB7.sh
        cd /Users/mravn/github/flutter/examples/layers/ios
        /bin/sh -c /Users/mravn/Library/Developer/Xcode/DerivedData/Runner-fhkkylgwmjuozlesoxkkfccsachc/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-AB1344B0443C71CD721E1BB7.sh
    diff: /../Podfile.lock: No such file or directory
    diff: /Manifest.lock: No such file or directory
    error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

Could not build the application for the simulator.
Error launching application on iPhone 7.

Flutter Doctor
[✓] Flutter (on Mac OS X 10.12.4 16E195, channel master)
    • Flutter at /Users/mravn/github/flutter
    • Framework revision 9d3fb1f309 (15 hours ago), 2017-05-18 11:26:43 -0700
    • Engine revision 82815836eb
    • Tools Dart version 1.23.0-dev.11.11

[✓] Android toolchain - develop for Android devices (Android SDK 25.0.3)
    • Android SDK at /Users/mravn/Library/Android/sdk
    • Platform android-25, build-tools 25.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] iOS toolchain - develop for iOS devices (Xcode 8.3.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 8.3.2, Build version 8E2002
    • ios-deploy 1.9.1
    • CocoaPods version 1.2.1

[✓] Android Studio (version 2.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Gradle version 3.2
    • Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] IntelliJ IDEA Community Edition (version 2016.3.4)
    • Dart plugin version 163.13137
    • Flutter plugin version 12.0

[✓] WebStorm (version 2017.1.1)
    • Flutter plugin version 13.0

[✓] Connected devices
    • iPhone 7 • 61761BAD-7CA3-4A75-BFBA-39CA8D573E25 • ios • iOS 10.3 (simulator)

I tried to do a manual pod install in the ios folder:
FLUTTER_FRAMEWORK_DIR=~/github/flutter/bin/cache/artifacts/engine/ios pod install

Then flutter run gives a different error. Tooling appears to insist on a lib/main.dart file?
$ flutter run -t widgets/hello_world.dart
Launching widgets/hello_world.dart on iPhone 7 in debug mode...

Error launching application on iPhone 7.

Thanks for the report. If this is still happening, please reopen. I'll close for now.

Thanks for the report. If this is still happening, please reopen. I'll close for now.

Sometimes I can archive the project but sometimes I got this error:
ld: library not found for -lvideo_player
clang: error: linker command failed with exit code 1 (use -v to see invocation)

But the -l library is changing
Any ideas?


Destroy session

Hi,
Is there any method similar to session_destroy()?
Thanks!

Sorry, didn't see $session->destroy()!


Failed to load history. TypeError: e.summary is undefined

At a certain point in my Netflix watch history, the sync stops with the message "Failed to load history". The error can be reproduced in Firefox, Edge and Chrome.
Console shows the message "Failed to load history. TypeError: e.summary is undefined".
Can I look up the exact episode that is being synced here?

So, I managed to track down the show that caused the crash and deleted it from my history. It was indeed no longer available on Netflix.
The sync continued for a few entries, but then crashed again a short time later - probably on another show that is no longer available.


Grpc 1.8 upgrade broke our CI

Please answer these questions before submitting your issue.
Should this be an issue in the gRPC issue tracker?
Yes, it's a regression.
What version of gRPC and what language are you using?
1.8 python
What operating system (Linux, Windows, …) and version?
ubuntu 16.04
What runtime / compiler are you using (e.g. python version or version of gcc)
python 2.7
We are hitting the following error in CI: https://github.com/grpc/grpc/blob/94e676e10f8c739289924b8458a246699e3623ce/src/core/lib/iomgr/wakeup_fd_eventfd.cc#L61
it's fairly reproducible (like 10% chance) so let me know if you want some sort of additional logging.
We were previously on 1.6 but based on some light testing I believe this is a regression after 1.7.

We'd love to know however much more you can tell us, of course.

@nathanielmanistaatgoogle I meant if there's any logging flags you want me to enable, let me know. The failing tests are integration tests of Dropbox's deployment system running inside docker containers.

GRPC_TRACE=all GRPC_VERBOSITY=debug are great environment variables. If that's too much see if changing all to api helps. Those are my strong go-tos; I'd have to look around for others.

(FYI, I have temporarily disabled 1.8.0 from PyPI, so make sure you are actually running 1.8.0 and not 1.7.3 if you are re-fetching from pip)

Yes, we are running 1.8, we have an internal mirror so we've already pulled it from PyPI and we version things explicitly.
OK, will give the logging a shot

 -- CONTENT TRUNCATED; Look for original XML file for the full data.
E
E           [INFO 20171213 19:37:44.249 root<PHONE_NUMBER>53152] Build exited with error code -6```

@nathanielmanistaatgoogle is that helpful?

@nathanielmanistaatgoogle let me know if there's any other logs I can provide that will help you debug!

@nathanielmanistaatgoogle have you had a chance to look into this issue? :)


Write README to scoring directory describing its structure. Closes #5

@marjorief : Any comments on the README to be written to each scoring directory?

(click "Files changed" on the pull request to see the file)


DropBox missing size property

It would be nice to have the size property in the DropBox.

I submitted #158 for this

Close this issue!  @GabiAxel  @martinwh99

Resolved by #158


Update README.md

port swigger web application security link added in vulnerable web application

sorry i forgot to put the name in the  CONTRIBUTORS.md file actually i do not know how to edit two different file at the same time in GUI version of git my git command line is having some issue for connecting me to my account if you say so i will create another pull request  CONTRIBUTORS.md file to add my name.

sorry i forgot to put the name in the CONTRIBUTORS.md file actually i do not know how to edit two different file at the same time in GUI version of git my git command line is having some issue for connecting me to my account if you say so i will create another pull request CONTRIBUTORS.md file to add my name.

Yeah go ahead!


board variable should be an enum

The variable to distinguish the board (CW310 vs. CW305) is currently just a string, but this should be an enum. See comment.

There have been many changes in the repository since this issue was opened.
We are now distinguishing between boards in device.py using the name of the bitstream file, and no longer using the board variable.
I am therefore closing this issue.


removing deprecated function calls from the test suite

Codecov Report

Merging #29 (ba64f7c) into release-v3.0.0.beta (6d20449) will decrease coverage by 5.40%.
The diff coverage is 94.15%.

@@                   Coverage Diff                   @@
##           release-v3.0.0.beta      #29      +/-   ##
=======================================================
- Coverage                87.03%   81.62%   -5.41%
=======================================================
  Files                       21       20       -1
  Lines                     6270     6362      +92
=======================================================
- Hits                      5457     5193     -264
- Misses                     813     1169     +356

Flag
Coverage Δ

unit
81.62% <94.15%> (-5.41%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

tests/test_api.py
31.81% <0.00%> (-66.69%)
:arrow_down:

tests/test_python_api.py
90.12% <33.33%> (-7.11%)
:arrow_down:

helics/capi.py
81.35% <50.00%> (-4.24%)
:arrow_down:

tests/test_filters.py
94.27% <96.00%> (+0.40%)
:arrow_up:

tests/test_badinputs.py
100.00% <100.00%> (ø)

tests/test_combinationfederate.py
100.00% <100.00%> (ø)

tests/test_init.py
93.18% <100.00%> (ø)

tests/test_iteration.py
100.00% <100.00%> (ø)

tests/test_messagefederate.py
100.00% <100.00%> (ø)

tests/test_messagefilter.py
100.00% <100.00%> (ø)

... and 16 more

Continue to review full report at Codecov.

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


Render to HTML5 canvas

Since my announcement of canvas rendering was met with considerable interest (by KaTeX developers as well as for bokeh/bokeh#647), I decided to share my work early on. At the time I'm opening this request, this branch is in a very early stage of development. But others are welcome to contribute, be it by commenting, by suggesting ideas, or by providing code in the form of pull requests against this branch.
After launching the local development server, see http://localhost:7936/canvas.html for an example of rendering to canvas.

This is very exciting, I am at a conference this weekend but I should be able to take a closer look next week. I am happy to help out in any way I can. For some context about the Bokeh use-case, we'd like to be able to render math text into an existing canvas at a specified locations (similar to ctx.fillText).

This can now reproduce most of the formulas used for the snapshot tests. \rule is the only exception that I'm aware of. I'm surprised by how quickly this is progressing and nearing feature completeness. So if you notice anything which doesn't work besides \rule, please add a comment here and I'll investigate.
If anyone has experience with the CSS font loading module and/or the Web Font Loader project, I'd be glad if anyone would have a look at hooking up our fonts so that we don't have to guess and hope when they'll be available. It would be best if we could introduce two more options. One to control whether the formula should be rendered with incorrect fonts if the correct ones aren't available, as opposed to not rendering at all, and the other to register a callback which gets called if all (or perhaps even if more) fonts have become available, to trigger a redraw of the canvas.

It's awesome to see how quickly this coming along.  I checked out the branch and gave it try.  The rendering seems blurry compared to the HTML.  It might have something to with being on a retina device.  Also, there was some clipping going on, but I think adjust the size of the canvas to match the bounding box of the output should fix that.
Canvas:

HTML:

Yes, the canvas so far is simply fixed size and pixel density 1. For the latter, this tutorial by Paul Lewis points the way towards a solution. Have done that in another project alreary, works like a charm. Haven't integrated it with the former, i.e. with auto-resizing canvas, yet, but it's certainly doable.

I was just about to link that, we used the same article to develop Bokeh's support for HiDPI modes. @gagern do you think that the capability to render at a specified location onto an already existing, user-supplied canvas is feasible for this work? If not, it should be easy enough for us to maintain small private canvases for annotations, that can be quickly blitzed onto the main canvas, but I thought it would be worth asking about.

For retina support, I write this last night: https://gist.github.com/spicyj/1d9145ab46190782260f

@bryevdv: Sure you can render to an existing canvas. Have a look at these lines for an example application. There I compute the box up front, then draw something else (in this case the bounding box and its base line) and then draw the box I computed before. If all you care about is render at a given position, you can call renderToCanvas instead of canvasBox. It will prepare a box and immediately render it at the given position. You can still control horizontal alignment using the halign property of the options object.

@gagern that's great. We have a new release coming up in a few weeks but immediately after that we will start looking into integrating this as a high priority!

@gagern I'd like to be able to do hit testing when using the canvas renderer.  This is for a personal project, but I think that other people might find that ability useful as well.  The code generates a flat data structure which is okay for select individual atoms, but makes it impossible to select groups.  I'm going to take a stab at refactoring the code this weekend so that CanvasRenderer.protoype.prepare returns a nested data structure as opposed to appending to this.outList.

@kevinb7 My main reason for this flat data structure is performance. The prepared box can be typeset fairly quickly as many times as you want to. Keep this in mind when refactoring, by either doing performance tests on different browsers (perhaps via jsperf?) to show that the cost of a nested data structure is negligible, or by keeping the flat structure as an option.

@gagern I think I'll create a second renderer base on your implementation.  This will make it easy to compare the two approaches.
On another note, I tried using webfontloader with some success.  It doesn't recognize the KaTeX_Size fonts as being loaded.  The browser shows that they're loading fine.  I'll file a bug for this tomorrow.
I added this script tag to canvas.html:
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.5.10/webfont.js"></script>

and this code at the bottom of canvas.js:
var activeCount = 0;

WebFont.load({
    custom: {
        families: ['KaTeX_AMS:n4', 'KaTeX_Main:n4,i4', 'KaTeX_Math:n4,i4',
            'KaTeX_Size1:n4', 'KaTeX_Size2:n4', 'KaTeX_Size3:n4'],
    },
    fontloading: function(familyName, fvd) {
        console.log("loading: " + familyName + " " + fvd);
    },
    fontactive: function(familyName, fvd) {
        console.log("active: " + familyName + " " + fvd);
        activeCount++;
        if (activeCount === 8) {
            init();
        }
    },
    fontinactive: function(familyName, fvd) {
        console.log("inactive: " + familyName + " " + fvd);
        activeCount++;
        if (activeCount === 8) {
            init();
        }
    }
});

Here's what dev tools shows in the network tab.

Found the issue:
http://stackoverflow.com/questions/6879469/google-typekit-webfont-loader-does-not-detect-non-ascii-fonts

I'm one of the developers of the webfontloader. We are currently using an ASCII string to detect whether or not a font has loaded. So if your font does not include the characters "BESbswy" the webfontloader won't be able to detect it. We're working on adding support for configurable test strings (so you can include some characters from the Unicode range your font supports.) I've opened an issue for this on the webfontloader repository (https://github.com/typekit/webfontloader/issues/104).

Problem solved with this minor change:
    custom: {
        families: ['KaTeX_AMS:n4', 'KaTeX_Main:n4,i4', 'KaTeX_Math:n4,i4',
            'KaTeX_Size1:n4', 'KaTeX_Size2:n4', 'KaTeX_Size3:n4', 'KaTeX_Size4:n4'],
        testStrings: {
            'KaTeX_Size1': '()[]',
            'KaTeX_Size2': '()[]',
            'KaTeX_Size3': '()[]',
            'KaTeX_Size4': '()[]'
        }
    },

@kevinb7: Oh, thanks! I've been using the WebFontLoader myself as well, but I've had my machinery tied in with the active callback, not the fontactive. And the active callback would apparently fire if at least one font was loaded successfully, giving up on the others after some timeout. So I got everything displayed, but it took longer than I had expected. I guess it would have taken me quite some time to find out that this is due to wrong test strings. With your configuration, the even fires much sooner now, which is great!

With all the fonts we have at our disposal once #132 gets merged, web font loader is quite busy:
            families: [
                "KaTeX_Main:n7,i4,n4",
                "KaTeX_Math:i7,i4,n4",
                "KaTeX_AMS:n4",
                "KaTeX_Size1:n4",
                "KaTeX_Size2:n4",
                "KaTeX_Size3:n4",
                "KaTeX_Size4:n4",
                "KaTeX_Caligraphic:n4,n7",
                "KaTeX_Fraktur:n4,n7",
                "KaTeX_SansSerif:n4",
                "KaTeX_Script:n4",
                "KaTeX_Typewriter:n4",
            ]

This causes lots of fonts to get loaded unneccessarily, which delays page loads considerably. I think I'll have to come up with a way to load these fonts on demand. Either my PreparedBox objects will contain a list of all the fonts that have been used during typesetting, or the options object can contain some function which gets called whenever a font is required, and which can cause the rendering to abort if said font is not available yet. Something like this.

I was just thinking that it might be good to use this as a fallback for browsers with rendering bugs.  See https://github.com/Khan/KaTeX/issues/45 for some examples.

Might make sense in some scenarios, yes. And now that #264 got merged, I can look about tweaking that to process the same set of test cases using canvas rendering. Will need to employ executeAsyncScript so that the browser can call back to Selenium once all its fonts have been loaded and the rendering should be stable.

ping @canavandl

So I added @spicyj's fix for retina displays and it looks good on Firefox and Safari

but Chrome is messed up

I tried rendering "(" from KaTeX_Size2 and KaTeX_Size3 in a scale canvas and it just gets them wrong.  Not sure why Chrome doesn't like these fonts.  :disappointed:

Weird, I think it worked fine for me when I tried.

How tightly do we want to integrate KaTeX with WebFontLoader? Since 5b182fc99b02143f390d4c0d2ba28c09aa859594 I'm exporting the set of used fonts, so the application can trigger required font loads on demand, and then repaint the canvas once the fonts are available. I have that logic implemented in my own application. Should we move some of this into KaTeX? And if so, what should the API look like?

I think we want to keep KaTeX pretty lean so canvas related code and any use of WebFontLoader would probably end up in contrib/.

My render-to-canvas is building on the katex-internal dom representation, so if you'd prefer having render-to-canvas outside the core code, then we'd need some API to expose that layer instead.
Would it be acceptable to have contrib code covered by travis-verified screenshots? In the long run I'd like to run the full set of screenshot tests through render-to-canvas as well, to ensure that noone forgets about that when modifying the dom structure, in particular when adding new CSS classes.

It should be relatively easy to return the internal DOM representation.

Returning the internal DOM is technically easy, yes. It might however be considered a promise to keep that API stable in the future, so we should be aware of that commitment. Or there should be some kind of big red warning sign stating that even though the representation is accessible from the outside, it is only intended to be used by code which evloves in lockstep with KaTeX.
On current master, merging in my canvas branch increases the gzipped size from 29,432 bytes to 32,009 bytes, so one might consider canvas support to cost approximately 2.5kB and increase the overall size by 9%. That is a noticable increase, so I can see how having this separate would be preferable.

It would definitely need to include a warning that this is an unstable internal data structure, use at your own risk.
I can't see us include canvas support as part of the default build.  I think it makes sense as an optional module.

I can easily see us including support for canvas if it's faster or otherwise better than the default rendering. It may well be more efficient, though I'm worried about the perf of measureText. Would be nice to do some benchmarks.
The implementation here takes the DOM tree as input, which is too low-level. It shouldn't need to parse out class names to decide what to do. We should have an intermediate stage that's made up of hlists, vlists, boxes, glue, etc. which can then be rendered to either HTML (DOM) or Canvas.

If we replace DOM rendering with canvas rendering then it makes sense to include in the build, but I think there's a lot of questions to answer before we get to that state.  The perf concerns of measureText could be addressed by including the horizontal glyph metrics.  I'm also concerned about the wonky rendering that I was seeing in Chrome (version 44).  It would be nice to have an intermediate layout rep.  We kind of already do with the groups, but parts of it (like the vlists) get specified at the same time that our internal DOM rep gets created.

@spicyj what was the original reason for DOM rendering over Canvas rendering?

Seemed easier at the time, and IE8 support.

@gagern, is it possible to render server-side using node-canvas?

@lukeburns Should be possible. Not sure what steps would be required to make the relevant fonts available to Cairo, but installing them in a suitable directory should be enough I think. Server-side rendering in this fashion stirs some unpleasant memories of the server-side latex calls being used to render GIFs, though.

@gagern Some immediate trouble with node-canvas: http://cdn.img42.com/322b7c639f5c3a539305106b9ced9dcc.png. The code: https://gist.github.com/lukeburns/9dab651d886c494ff694.

Rendering to canvas is great. But I'm curious to why no one has mentioned SVG, which seems to be the better choice over HTML5 canvas. SVG can contain  tags with absolutely positioned glyphs, which allows full control. Unlike canvas, SVG is scalable and searchable. And it's pretty cross-platform, at least within the modern browsers. Actually, there is a tool called dvisvgm, which can generate such SVG files directly from latex (server-side). See this stackexchange question for more.

@pnsaevik: When using just the formulas all by themselves, then SVG is probably better than canvas, and HTML probably better than both. So the main reason to choose canvas output is to integrate math rendering with an already existing canvas-based rendering pipeline. And there may be many reasons to use canvas. One might be performance, another a focus on raster-based image sources and operations. And there is also compatibility with other output devices to consider. So there are good resons for a web app to choose canvas, and those who do might benefit from integrating KaTeX like this. Those apps who already are using SVG would of course benefit from KaTeX exporting SVG, so it might make sense to have both in the long run.

hi @gagern
So I was able to render LaTeX onto an already existing canvas element. It works as expected, except that modifying the context.font and have the change be reflected in the rendered text. Is that not implemented or am I missing something?
Demonstration of working katex.renderToCanvas method using a Bokeh plot:
(the lower text is the canvas branch, the upper is an overlaid div using KaTex)

Thanks again for working on this.

@canavandl: In our implementation we are extracting the size from the context font and then passing that as an option to the canvasBox invocation. As far as I can tell, the size is the only thing worth passing along, since KaTeX will use its own fonts and styles. Perhaps I should support the textAlign property one day, though. Having that set to anything but 'left' will severely break rendering, I guess.
By the way: this presentation (which is part of a group of talks on CindyJS) demonstrates KaTeX to Canvas in an interactive environment, with a comparison to MathJax, the outcome of which you all can easily guess.

@gagern : your CindyJS example resolved my issue (I'd misread the regex and was passing '16px' instead of '16' as the fontSize).
My last question is about the text dimensions.  The box.depth and box.height values are correct for "single level text", but not correct for quotients or similar. Is there a way to more correctly get the output dimensions (we'd like to support drawing background boxes). Again, this is a "nice to have" and not "must have".
Here's an example:

@canavandl: I fail to reproduce your problem. Running make serve and then opening http://localhost:7936/canvas.html?size=32 in my browser, I obtained the following picture:

This is using a tweak I just added to this branch here to allow changing the font size; otherwise you'll be at the default size of 74 * 1.21 = 89.54 which is generally used for the development server. The cyan box is drawn using the dimensions from the prepared box, and it looks pretty much correct to me. Could it be that by the time you drew the background box, the fonts were not available yet? If that's not it, can you reproduce my cyan box as described above?
By the way, I just added some changes to ensure that merging my branch with the current master will not only be free of conflicts, but will actually work up to the point where make serve displays what it should.

Out of curiosity, what's blocking progress on this? Is it a lack of interest? Or prioritization?
I'd noticed, for example, that some diacritics weren't rendering properly with this renderer even though they are supported by the standard renderer.
I also noticed that this PR is based off of a time when the regular renderer didn't yet support \underline as I tried to use regular rendering off of this PR.

@marcianx there are a couple of things that I'm concerned about with this and don't have good answers for at the moment:

although there aren't a lot of changes, this does increase the size of the KaTeX bundle, it would be preferable for this to live in contrib (not a big change in and of itself)
it relies on knowing about the internal structure returned by buildHTML... ideally we'd have a more display agnostic representation of the layout

Out of curiosity, what's blocking progress on this? Is it a lack of interest? Or prioritization?

Knowledge of the hackish nature of this approach, and lack of time for a proper solution.

I'd noticed, for example, that some diacritics weren't rendering properly with this renderer even though they are supported by the standard renderer.

I expect there are several things which the main renderer can handle but this code can not. Essentially what this code does is read some HTML-like representation, then use the CSS classes from that and turn that into its own metrics information. Essentially a bit like a very lightweight CSS engine, but not based off the KaTeX css file but with parts of that CSS duplicated in JavaScript program logic.
So this will miss classes I forgot, or nesting constucts I forgot, or I got wrong. It will also miss classes added to the CSS since I started this branch. I haven't revisited that file in quite a while. And it will miss positioning expressed through means other than these classes, e.g. new ways of per-node positioning, or box borders, or combining characters. All of this is the reason why we consider this more of a hack and proof of concep implementation than a fully supported feature: with the current approach, keeping things in sync is rather hard. We'd prefer some intermediate representation which makes positioning explicit in a way that can be handled cleanly both by CSS and canvas.

I also noticed that this PR is based off of a time when the regular renderer didn't yet support \underline as I tried to use regular rendering off of this PR.

You are right, underline isn't supported as it wasn't in core when I started this. It should be possible to add it, if someone (might include me) finds the time. In the meantime, I've resolved some conflicts so this branch merges with master again. That way, people can use master with all its current features to see which of these are supported by the canvas renderer.

Out of curiousity, have you thought about going straight from the parse to HTML canvas, a renderCanvas.js alongside renderHTML.js instead of this specialized HTML -> Canvas approach?  Is that what you mean by "a proper solution"?

Right now, buildHTML handles both metrics/styling decisions (for example, the supsub function that handles superscript/subscript vertical positioning) as well as how to encode those in HTML with CSS classes. I suppose the ideal is something akin to another intermediate representation (at least conceptually) which has sufficient positioning information and can be used to output to either HTML or Canvas.

I agree. Writing a canvas-specific version of buildHTML.js would cause a lot of code duplication for things that essentially work out how a given high-level construct should get positioned at the lower level, before turning that low level representation into acutual dom nodes. A proper solution would identify the appropriate cut point between the code that would need to be duplicated and the code that is HTML-specific, introduce some clean interface there and allow different backends to get plugged in. I envision something like a box model representation, but making that sufficiently expressive to cover all our existing CSS use cases will require some work.

Firstly, thank you very much for rebasing this PR!
Secondly, is abstracting out the rendering backend from the general layout computation via an intermediate representation a priority? Is there a tracking bug? There seems to be a general desire for plugging in SVG and canvas backends.

Hello, I'd be interested in contributing to this PR. I'm just curious...what is required to take this over the finish line and ready to be merged.
I'd be happy to assist with any work that's needed.

@marcianx I've closed this PR for now but the rebased code lives on in the canvas branch.  #376 is tracking an intermediate representation.

@gagern Thank you for this PR. It's really exciting to see Latex rendering being brought to the canvas!
With this PR, is it possible to be able to get the appropriate width/height and translate each individual character?

@rrandallcainc the PR uses the Canvas API to measure the glyphs to get the width of each as it lays them out.  Another approach which is may be performant is to grab widths for glyphs beforehand.  Running make extended_metrics will generate a version of src/fontMetricsData.js that contains widths for all of the glyphs in the KaTeX fonts.  We'd still need to measure at runtime the width of any unicode characters we don't have metrics for.

I'm going to close this PR since whenever we get to supporting canvas it will require substantial rework.  It's linked to in a number of other issues.

FWIW, I am working on modernizing this solution, and already have most of the features implemented. I reached out to @gagern but received no response :(. I'd like to open-source the solution in a separate package to allow others to benefit. This would still leverage KaTeX's parsing/buildTree.
If anyone is interested in seeing progress, lmk. I can see what I can do.

@ry-randall – @gagern did this canvas rendering in order to KaTeX with CindyJS, meanwhile he left the project, and we are a bit lost, as we are using an ancient version of KaTeX now (see https://github.com/CindyJS/CindyJS/issues/829). Is there any way I could help? I could try to contact @gagern through other channels, but this only makes sense if this would help you…

Sorry for lack of response to @ry-randall in https://github.com/KaTeX/KaTeX/pull/251#issuecomment-360329560. I find I've trouble keeping up with many comms channels. @kortenkamp I'll provide you with a phone number just in case. If there is any plan to get render-to-canvas support into KaTeX I'd be interested to contribute, but I only have limited time available besides day job.
Alternatives that I can think of:

Update my ancient branch to work with current KaTeX.
I'd prefer to only do that if it actually gets merged in and maintained. Either into KaTeX proper, or into a separate fork which receives integrates from KaTeX on a regular basis. Probably should have some automated tests on the rendered images, similar to the screenshotter tests KaTeX uses for its HTML rendering. I believe I had screenshotter tests for canvas created at some point, but I don't see them in this PR here so perhaps not. I don't think I can promise maintaining such a fork on an ongoing basis. So unless someone can promise to take care of things going forward, we would be in the same spot again in a few years.

Invest in a proper design, refactor code.
This sounds like a lot more work, but has the highest chances of getting accepted by KaTeX. Would require someone from KaTeX involved in discussions as to what kinds of design direction would be acceptable.
Perhaps the first step would be to inspect tree.js and figure out a way how each VirtualNode could translate itself (and its children) into canvas draw instructions. I imagine the API would take something like the CanvasState from this PR here as argument, and produce something like the CanvasRenderer.outList list of atoms.

Make this a separate package.
One problem is that the current renderer in this PR here is based off the intermediate VirtualNode representation from tree.js, which is not part of the public API of KaTeX, and probably shouldn't be because it's not stable enough. Furthermore, you would run into issues by people trying to use incompatible versions. Trying to support more than one version of KaTeX would quickly turn into a nightmare.
I think forking KaTeX and re-integrating regularly would stand a better chance, since that would give you access to all the internals, and would allow you to keep things well aligned in terms of versions, since you'r merge from upstream, address all issues then do your own release on a well-tested combination.

Random thought: It might make sense to also have SVG in mind when doing all of this. On the one hand, SVG should have all the primitives needed for rendering, so translating between the two should be really simple. On the other hand, that would allow using resulting SVG files as test cases. Processing those in automated tests should be a lot easier than processing screenshots, so one could build a really exhaustive collection of test cases and ensure they keep rendering to the same SVG files over time. Of course, the internal structure of those SVG might occasionally change with no real impact on the rendering, but if we avoid deeply nested grouping constructs in SVG, and instead render each primitive symbol on its own, then there shouldn't be a lot of variation there.


"AttributeError: module 'zenoh' has no attribute 'open'"

When I run  ''run-cuda.sh'',  I got the following error:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: InvalidData("AttributeError: module 'zenoh' has no attribute 'open'")', runtime/src/main.rs:91:87
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
./run-cuda.sh: line 3:  3056 Aborted

I have changed different versions of eclipse-zenoh, but still no work.

Hi, @kkhao are you using the master version of zenoh-python?
The demo is supposed to work with that version.

I installed via pip install eclipse-zenoh, then version is 0.5.0b9.

@gabrik Could you tell me the version you are using? Thanks.

You should use the version from master: https://github.com/eclipse-zenoh/zenoh-python/ so please follow this instructions:
$ git clone https://github.com/eclipse-zenoh/zenoh-python/
$ cd zenoh-python
$ pip install -r requirements-dev.txt
$ python3 setup.py bdist_wheel
$ pip3 install ./dist/*.whl

Thank you very much, I have solved the above problem, but now I have encountered a new problem. When recog.py is initialized, the following error occurred:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: InvalidData("AttributeError: module 'sys' has no attribute 'argv'")', runtime/src/main.rs:91:87
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
./run-cuda.sh: line 3:  3391 Aborted

I found that this error occurs when importing tensorflow, but I don't know what happened.


Rails 7 support — installer crashes against 7.0.0.alpha2

Pre-check
when devise is installed with rails 7.0.0.alpha2, the devise installer crashes with
Environment

Ruby 2.7.2
Rails 7.0.0.alpha
Devise 4.8.0

Current behavior
after adding gem 'devise', the installer crashes with
% rails generate devise:install
Resolving dependencies...
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Traceback (most recent call last):
	36: from bin/rails:4:in `<main>'
	35: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
	34: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
	33: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
	32: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
	31: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
	30: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/railties-7.0.0.alpha2/lib/rails/commands.rb:18:in `<main>'
	29: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/railties-7.0.0.alpha2/lib/rails/command.rb:48:in `invoke'
	28: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/railties-7.0.0.alpha2/lib/rails/command/base.rb:87:in `perform'
	27: from /Users/jason/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
	26: from /Users/jason/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
	25: from /Users/jason/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
	24: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/railties-7.0.0.alpha2/lib/rails/commands/generate/generate_command.rb:21:in `perform'
	23: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/railties-7.0.0.alpha2/lib/rails/command/actions.rb:14:in `require_application_and_environment!'
	22: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/railties-7.0.0.alpha2/lib/rails/command/actions.rb:22:in `require_application!'
	21: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
	20: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
	19: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
	18: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
	17: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
	16: from /Users/jason/Work/Hot_Glue/DevTest-20211010-Rail7/config/application.rb:7:in `<main>'
	15: from /Users/jason/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler.rb:174:in `require'
	14: from /Users/jason/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/runtime.rb:58:in `require'
	13: from /Users/jason/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/runtime.rb:58:in `each'
	12: from /Users/jason/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/runtime.rb:69:in `block in require'
	11: from /Users/jason/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/runtime.rb:69:in `each'
	10: from /Users/jason/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/runtime.rb:74:in `block (2 levels) in require'
	 9: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/zeitwerk-2.5.0.beta5/lib/zeitwerk/kernel.rb:35:in `require'
	 8: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
	 7: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
	 6: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
	 5: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
	 4: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
	 3: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/devise-4.8.0/lib/devise.rb:11:in `<main>'
	 2: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/devise-4.8.0/lib/devise.rb:342:in `<module:Devise>'
	 1: from /Users/jason/.rvm/gems/ruby-2.7.2/gems/devise-4.8.0/lib/devise.rb:340:in `mailer='
/Users/jason/.rvm/gems/ruby-2.7.2/gems/devise-4.8.0/lib/devise.rb:321:in `ref': undefined method `reference' for ActiveSupport::Dependencies:Module (NoMethodError)

Expected behavior
• this version appears to be incompatible with Rails 7

So I guess we can use this until Rails 7 is final:
gem "devise", git: "https://github.com/heartcombo/devise.git", branch: "main"


feat(Chunks): add in-place modifier for Chunks#toChunkRegion

Contains
This is a follow up to #4384 to allow for in-place mutation of BlockRegion in Chunks math operations.
This allows to create or recieve a BlockRegion (mutable) that should be modified in-place by the chunk calculation. Instead of
BlockRegion region = new BlockRegion(...);
for (Vector3ic pos : Chunks.toChunkRegion(region, region)) {
    // do stuff
}

we could inline region as it is used implicitly as both input and output:
for (Vector3ic pos : Chunks.toChunkRegion(new BlockRegion(...))) {
    // do stuff
}

Outstanding before merging

[ ] add test cases
[ ] add javadoc
[ ] check Chunks for consistency

I'm wondering if there are any problems with source to destination but min modifies min and max modifies max so I think this should be fine.

I'm wondering if there are any problems with source to destination but min modifies min and max modifies max so I think this should be fine.

I'm wondering if there are any problems with source to destination but min modifies min and max modifies max so I think this should be fine

This was actually what I was wondering about when asking about this on Discord. If I understood the answers by you and httpdigest correctly the methods taking a dest should guarantee that the modification of dest is the last thing that happens, and that is is safe to use the same input as source and destination.
I agree that this needs tests.

I'm wondering if there are any problems with source to destination but min modifies min and max modifies max so I think this should be fine

This was actually what I was wondering about when asking about this on Discord. If I understood the answers by you and httpdigest correctly the methods taking a dest should guarantee that the modification of dest is the last thing that happens, and that is is safe to use the same input as source and destination.
I agree that this needs tests.

do we still want this. the in place modifiers are already in Chunks.


How to hide example?

I don't want to show any example.
LANG=en_US.UTF-8 trans -no-ansi imposes

imposes
/imˈpōz/
verb
force (something unwelcome or unfamiliar) to be accepted or put in place.
- "The mayor said officials would not impose either decision on the families."
Synonyms: foist, force, inflict, press, urge, saddle someone with, land someone with
take advantage of someone by demanding their attention or commitment.
    - "After all, you had already imposed yourself on them (as it seldom was a her) and to start a conversation where none was offered seemed an unwelcome intrusion."
Synonyms: take advantage of, exploit, take liberties with, treat unfairly, bother, trouble, disturb, inconvenience, put out, put to trouble, be a burden on, walk all over

arrange (pages of type) so that they will be in the correct order after printing and folding.

Synonyms
verb
- foist, force, inflict, press, urge, saddle someone with, land someone with
- take advantage of, exploit, take liberties with, treat unfairly, bother, trouble, disturb, inconvenience, put out, put to trouble, be a burden on, walk all over
- levy, charge, apply, enforce, set, establish, institute, introduce, bring into effect
- inflict, bring down, visit
- levy
- enforce
Examples
- The government imposes restrictions on freedom of religion.
- The law imposespenalties consisting of fines of up to $500,000 and 10 years in jail.

- Cargo operations were less affected because trade continued while travel restrictions were imposed by several countries.

- A fine of £4,000 was imposed for each offence.

- One example is forced marriage, which is imposed on some South Asian women by their parents, usually Muslim.

- the director was unable to impose himself on the production

- Numerous forces have been imposed on physicians to make them change their practice behaviours.

- One hopes a lot of analysis goes on before any traffic restrictions are imposed.

- The Waterford News & Star asked a number of people while they did their grocery shopping what they thought of the government imposing a charge on plastic bags.

- Information is the very opposite of chance - if you want to arrange letters into a sequence to spell a message, a particular order has to be imposed on the matter.

- The temporary restraining order was imposed on November 20.

- Russia's foreign minister declared that democracy cannot be imposed from the outside.

- The Court of Appeal had only considered whether the restriction imposed by the judge was correct.

- He said there were two main reasons for imposing the restrictions.

- As a result, a handful of members of Congress were allowed to impose their extremist positions on the rest of the legislation body.

- The state government had imposed restrictions on the use of air-conditioners in government offices.

- Such outcomes reinforce the court's power to impose its decisions, and to punish those who disobey.

- They cry out for ‘a ‘system’ of some kind, where order could be imposed on nature's unruly endlessness.’

- All pharmacies consulted believed that in imposing service charges they were acting according to the regulations laid down by the government.

- Unanimous rather than majority vote of seven military commissioners will be required to impose the death penalty.

- After all, you had already imposed yourself onthem (as it seldom was a her) and to start a conversation where none was offered seemed an unwelcome intrusion.

- No attempt is made to impose a specific model or solution.

- At the end of March, the bank imposed tough restrictions to slow the growth of bank lending which the International Monetary Fund had blamed for the country's widening trade gap.

- Kass does not suggest that a society anything like that depicted by Huxley will be imposed on us by force.

- Last week, the government revealed its plans to double the fine for driving while using a mobile to £60 and impose three penalty points on the driver's licence.

- So if a group fails to agree, rather than negotiate further, a minority of strong members should seize control and impose a decision?

- His core topic was whether discipline should be imposed on teens for their own good or whether decisions should be justified and explained.

- If operators fail to meet their ten per cent rural obligation they face penalties imposed by the government.

- Fines and penalties are imposedfor lateness, for not turning up for work, even in the case of illness, and for ‘negligent’ work.

- In the meantime, if the bill is delayed, local authorities, including Merton, could introduce individual bylaws to impose restrictions in their areas.

A --no-examples flag would be really useful!

A --no-examples flag would be really useful!

That would be awesome. I always have to scroll to see the relevant info. The examples are nice but in most cases unnecessary.


Feature request - Muximux

would like to see https://github.com/mescon/Muximux as one of the options.

Just a quick update to say progress on this application is coming along nicely with an estimated ETA of the end of the week baring any issues in testing.

This has now been added. Please could you give it a test and report back with what linux version you used and how you get on :-)

Closing as has been available for over 2 weeks now with no reported issues.


Built in File Validation (Feature Request)

#Feature Request
As noted in the docs uploading files & validating them forces the developer to check for several validations & security threats. Any chance this could be simpler & built in somewhat to encourage best practices for common types of file uploads?

We've moved this issue to the Backlog milestone. This means that it is not going to happen for the coming release. We will reassess the backlog following the current release and consider this item at that time. However, keep in mind that there are many other high priority features with which it will be competing for resources.


[CARBONDATA-1592]added new parameters for create and load events

added new parameters for create and load events, which will help for some specific validations on table during create and load
Be sure to do all of the following checklist to help us incorporate
your contribution quickly and easily:

[*] Any interfaces changed?
NA
[*] Any backward compatibility impacted?
NA
[*] Document update required?
NA
[*] Testing done
Please provide details on
- Whether new unit test cases have been added or why no new tests are required?
- How it is tested? Please attach test report.
- Is it a performance related change? Please attach the performance test report.
- Any additional information to help reviewers in testing this change.
only parameters are added for events, testing is not needed, unless listeners are added
[*] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

Build Success with Spark 2.2.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/462/

handled comment, plesae review @jackylk

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/1727/

Build Success with Spark 2.2.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/468/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/1736/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/2111/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/2116/

Build Success with Spark 2.2.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/514/

Build Success with Spark 2.2.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/517/

Build Success with Spark 2.2.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/519/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/1771/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/2152/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/1782/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/1789/

Build Success with Spark 2.2.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/551/

LGTM

retest this please

Build Success with Spark 2.2.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/558/

LGTM

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/1808/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/2181/


Issues dashboard not showing anything

I have an LG G4 ANDROID 6.0. Issues dashboard do not show anything. In github web site I can see my issues.

Is this the same as #106?

yes

Closing then


[Build Binary Android] - Error build my app with issue duplicate class (Execution failed for task ':app:checkDebugDuplicateClasses')

hi Master,
I have build binary maplibre-gl-native for android and add file (MapboxGLAndroidSDK-release.aar) in to project,
I am trying to run my application a device but i keep getting this error, kindly help me with this error:
The error description is as follows:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
.....
Duplicate class com.mapbox.mapboxsdk.*** found in modules jetified-android-sdk-9.4.2-runtime (org.maplibre.gl:android-sdk:9.4.2) and jetified-mapbox-runtime (MapboxGLAndroidSDK-release.aar)
.......
Thanks

I ran into this also. I added android.enableJetifier=true and android.useAndroidX=true to gradle.properties which sorted all the errors.


Semver is too restrictive

I love semver. I wish everyone used it. I use it exclusively.
However, by forcing semver it means that builds of software from upstreams who don't use semver cannot be uploaded to Bindle without breaking the incredibly important correlation between the upstream version and the downstream binary version.

The use of semver was a purposeful decision when we originally crafted Bindle. Semver goes along well with the idea of immutability and is a clear way of expressing intent with a new version. Bindle would be far from the first tool to require semver (e.g. Go, Rust, and other package managers for starters) though it would be the first object store to do so.
I would also point out that Bindle is the "silverware drawer" anyway. Sometimes it will be used for a single binary/project/system, but often times it is gluing together binaries and other artifacts from various sources. So in the end, it is an entirely new thing that isn't tied to a specific upstream binary outside of the specific binary assigned to that invoice (which cannot change)
However, this is the exact purpose for annotations on an invoice. If there is a desire to "point back to" an upstream location, this information can be included in an annotation


RunInTransaction documentation

I'd like to add some documentation on correct usage of RunInTransaction methods (both synchronous and asynchronous).
I'm not sure what would be the correct location for it. Currenlty the documentation seems to be in two places: the Wiki pages and the README.mdown file.
What's the preffered location, i.e. where should I put the additional documentation?

Hello. What do you know if the transaction was executed ok?
Does RunInTransaction() method throws exceptions?
Thanks.

@ATopeDev I added a small section to the doc mentioning how exceptions are bubbled up.


Fix verify install kinds for kind NetworkAttachmentDefinition

Please provide a description of this PR:
Fix https://github.com/istio/istio/issues/46859

@hanxiaop: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-notes_istio
37a7fc3b2a3ddcda1398e63fe9867991ff1d77e8
link
true
/test release-notes

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

Verified it's working in my environment:
 istioctl verify-install
1 Istio control planes detected, checking --revision "default" only
...
✔ DaemonSet: istio-cni-node.istio-system checked successfully
✔ NetworkAttachmentDefinition: istio-cni.default checked successfully  # this one
✔ ServiceAccount: istio-cni.istio-system checked successfully
✔ DaemonSet: ztunnel.istio-system checked successfully
✔ ServiceAccount: ztunnel.istio-system checked successfully
✔ ServiceAccount: istio-reader-service-account.istio-system ch

In response to a cherrypick label: new pull request created: #46944


Updating admin.rb

The quickstart fails to 'list' on go generated tables.  Using listTableNames() instead of listTables() corrects that problem and is more efficient to boot.

I changed the PR so the GoogleBot is unhappy.  LGTM


Disabling passion feed to have stable endpoint for RMRK

As seems passion feed does more harm than good, i.e crashing and breaking the basic usability of KodaDot
To bring back stability, it's time to turn passion feed off everywhere, until we will inspect outside production what's the culprit.
Later we will adjust and relaunch it with new and optimal resources as seems this query is super hungry.
Suggestions are more than welcome what could be the cause of this.
Query which drops rubick is mentioned in https://github.com/kodadot/rubick/issues/109
First downtimes we've noticed are around May 28 ~
Potential queries

explorer
series-insight
spotlight

Ref

https://github.com/kodadot/rubick/issues/109
https://github.com/kodadot/nft-gallery/issues/3420
https://github.com/kodadot/nft-gallery/issues/3419
https://github.com/kodadot/rubick/pulls?q=is%3Apr+sort%3Aupdated-desc+passion+is%3Aclosed
https://github.com/kodadot/nft-gallery/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc+passion
https://github.com/kodadot/nft-gallery/pulls?q=is%3Apr+sort%3Aupdated-desc+passion+is%3Amerged
https://github.com/kodadot/nft-gallery/pull/3023
https://github.com/kodadot/nft-gallery/issues/2222
https://github.com/kodadot/nft-gallery/pull/3101
https://github.com/kodadot/nft-gallery/pull/3304
https://github.com/kodadot/rubick/blob/main/src/mappings/utils/cache.ts#L11
https://github.com/kodadot/rubick/issues/97
https://github.com/kodadot/nft-gallery/issues/3287
https://github.com/kodadot/nft-gallery/pull/2995

Seems Spotlight goes slow as snail 👀

👋

Possibility passion feed is not the culprit turns out, BUT it would be needed to cache it for the user to speed up loads.

May rename and close this ?


Add support for MySQL backend

Add support for MySQL backend
https://github.com/aschn/drf-tracking/commit/83448b73c2f954b420b6a31a19fa26e113a48246
was dropped in  split migrations
https://github.com/aschn/drf-tracking/commit/b138fcbcbcf798310b97186269bac148c3febe3c

The problem revolves around the query_params field with db_index set to True. There is an MySQL InnoDB restriction that text field based indices must have a defined length.
So, in theory you could either drop the db_index=True or specify a length parameter for the index to enforce.
I am in favor of dropping the index requirement.

Addressed in release: https://github.com/aschn/drf-tracking/releases/tag/1.0.0

Addressed in the following release: https://github.com/aschn/drf-tracking/releases/tag/1.0.1


Provide example to map RDF-based model to entity services

Given a model defined with RDFS, infer or generate the corresponding model in entity services vocabulary and use that generated model to build an integration application.
This is a kind of scenario/recipe/enhancement.  It requires some method for using triples to create in-memory entity models (#188)

This may be a redundant recipe, come to think of it.  I'll triage later today.

I've actually been starting a little work in this direction in prototyping model-from-triples.
It uses the famous wine.rdf ontology to create some entity types.


Tests in remix-solidity fail

Hello,
i wanted to create a new pull request to include a new static analysis module https://github.com/ethereum/browser-solidity/issues/882
Unfortunately many tests in the folder remix-solidity do not run. The reason is a change in the invocation of the compiler (from https://github.com/ethereum/solc-js/blob/master/wrapper.js compile to the function compileStandardWrapper). The problem is that compileStandardWrapper invokes the solc internal static analysis modules. That means that many test examples do not compile anymore ( https://github.com/ethereum/remix/tree/master/remix-solidity/test/decoder/contracts, https://github.com/ethereum/remix/tree/master/remix-solidity/test/analysis/test-contracts), that happily compiled by using the compile function. Meaning no AST is produced in the resulting object, all the errors are provided in an errors array. Interestingly almost all of the warnings classify as type warning.  The test functions all lack handling for compilation errors (the lack of an AST produced) and therefore fail.
Why does ´compileStandardWrapper´ return no AST as soon as a warning exists? Can we circumvent that somehow?

there were a bug in remix-lib ( compilerInput() ) . pulling the last remix-lib should fix it

please let us know if that fix your problem

Works! Thank you!