[EBPF-356] Use io.Writer in ebpf map dumps

What does this PR do?
This PR updates ebpf-manager to use io.Writer in Manager.DumpMaps, modifying all upstream callers properly.

Motivation
Improve memory behavior so that maps do not need to be serialized into memory when being printed/transmitted.
Additional Notes
Added a TestLogWriter type to wrap testing.T.Log so that it can be used as a io.Writer object.
Possible Drawbacks / Trade-offs
Describe how to test/QA your changes
All calls should be checked by the compiler, unit tests should be passing.
Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
[ ] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
[ ] If applicable, the config template has been updated.

In the description you mentioned

Improve memory behavior so that maps do not need to be serialized into memory when being printed/transmitted.

Do we have any measurements? How can we ensure there is no reserved outcome?

I haven't done any measurements from before/after. I think the idea (@brycekahle correct me if I'm wrong) is to allow the dump methods to write directly to the output, so that it isn't needed to build the full string representation of the map in memory if the caller doesn't require it (http/stdout/stderr outputs) and instead it can be written in small chunks.

allow the dump methods to write directly to the output, so that it isn't needed to build the full string representation of the map in memory if the caller doesn't require it (http/stdout/stderr outputs) and instead it can be written in small chunks.

Correct. The previous behavior is the worst case, so it can only get better.

That's true in theory, but I don't think we should rely on that. Mistakes can happen, and theories can fail
I think that's something we can easily measure and test its impact

I ran some benchmarks in the ebpf-manager library, as that makes it simpler to see the effect of just this change without interference from the eBPF maps themselves (which are going to be there no matter the writing implementation).
The testing code for the previous version (v0.3.9) looks like this:
m.DumpHandler = func(_ *Manager, mapName string, currentMap *ebpf.Map) string {
	var builder strings.Builder
	for j := 0; j < numDumps; j++ {
		builder.WriteString(dumpContents)
	}
	return builder.String()
}

for i := 0; i < b.N; i++ {
	_, err = m.DumpMaps("map_one")
	if err != nil {
		b.Fatal(err)
	}
}

For the new version with io.Writer, it looks like this:
m.DumpHandler = func(w io.Writer, _ *Manager, mapName string, currentMap *ebpf.Map) {
	for j := 0; j < numDumps; j++ {
		_, _ = io.WriteString(w, dumpContents)
	}
}

for i := 0; i < b.N; i++ {
	var buffer bytes.Buffer
	err = m.DumpMaps(&buffer, "map_one")
	if err != nil {
		b.Fatal(err)
	}
}

This code runs for different values of numDump, so that we can simulate writing maps of different sizes. Here are the results for v0.3.9, with the previous implementation that used strings.Builder to build and return the string in the DumpHandler function:

Writes
ns/dump
Bytes allocated/dump
Allocs/dump

1
92.65
16
2

3
136.0
80
4

10
204.1
328
6

100
757.5
2616
9

1000
7809
42488
16

10000
68111
359162
23

And here are the results for the new version, with io.Writer and using a bytes.Buffer as the io.Writer:

Writes
ns/dump
Bytes allocated/dump
Allocs/dump

1
107.6
112
2

3
124.1
112
2

10
216.1
240
3

100
1127
2032
6

1000
8850
16368
9

10000
88400
262128
13

Note that while it's a little bit slower (although the difference is in the order of microseconds at most) the memory behavior is better, specially for larger maps.
I did an extra test, using io.Discard as the io.Writer, to remove the influence of the backing writer on the results:

Writes
ns/dump
Bytes allocated/dump
Allocs/dump

1
63.40
0
0

3
77.09
0
0

10
117.5
0
0

100
596.2
0
0

1000
5572
0
0

10000
54041
0
0

What I interpret from this is that, by providing an io.Writer we remove the need to use the strings.Builder function and we just use as much memory as the underlying writer needs. For example, in the case of the HttpResponseWriter, we would write directly to its internal buffers, instead of creating our own and then copying them over.

I ran some benchmarks in the ebpf-manager library, as that makes it simpler to see the effect of just this change without interference from the eBPF maps themselves (which are going to be there no matter the writing implementation).
The testing code for the previous version (v0.3.9) looks like this:
m.DumpHandler = func(_ *Manager, mapName string, currentMap *ebpf.Map) string {
	var builder strings.Builder
	for j := 0; j < numDumps; j++ {
		builder.WriteString(dumpContents)
	}
	return builder.String()
}

for i := 0; i < b.N; i++ {
	_, err = m.DumpMaps("map_one")
	if err != nil {
		b.Fatal(err)
	}
}

For the new version with io.Writer, it looks like this:
m.DumpHandler = func(w io.Writer, _ *Manager, mapName string, currentMap *ebpf.Map) {
	for j := 0; j < numDumps; j++ {
		_, _ = io.WriteString(w, dumpContents)
	}
}

for i := 0; i < b.N; i++ {
	var buffer bytes.Buffer
	err = m.DumpMaps(&buffer, "map_one")
	if err != nil {
		b.Fatal(err)
	}
}

This code runs for different values of numDump, so that we can simulate writing maps of different sizes. Here are the results for v0.3.9, with the previous implementation that used strings.Builder to build and return the string in the DumpHandler function:
Writes	ns/dump	Bytes allocated/dump	Allocs/dump
1	92.65	16	2
3	136.0	80	4
10	204.1	328	6
100	757.5	2616	9
1000	7809	42488	16
10000	68111	359162	23
And here are the results for the new version, with io.Writer and using a bytes.Buffer as the io.Writer:
Writes	ns/dump	Bytes allocated/dump	Allocs/dump
1	107.6	112	2
3	124.1	112	2
10	216.1	240	3
100	1127	2032	6
1000	8850	16368	9
10000	88400	262128	13
Note that while it's a little bit slower (although the difference is in the order of microseconds at most) the memory behavior is better, specially for larger maps.
I did an extra test, using io.Discard as the io.Writer, to remove the influence of the backing writer on the results:
Writes	ns/dump	Bytes allocated/dump	Allocs/dump
1	63.40	0	0
3	77.09	0	0
10	117.5	0	0
100	596.2	0	0
1000	5572	0	0
10000	54041	0	0
What I interpret from this is that, by providing an io.Writer we remove the need to use the strings.Builder function and we just use as much memory as the underlying writer needs. For example, in the case of the HttpResponseWriter, we would write directly to its internal buffers, instead of creating our own and then copying them over.

Perfect! nice job

/merge


Women in Blockchain & Sydtek Grant Proposal

Grant proposal
Project Abstract
Women in Blockchain Canada will collaborate with Sydtek to deliver high-quality Substrate training globally as well as enable the general public to see the unprecedented benefit of using the Polkadot ecosystem to allow for greater community impact. Many projects thus far have addressed nearly every facet of need within the blockchain and crypto industry, from lending, borrowing, yield aggregation, fast-settling and low-cost infrastructure, payment rails, collectibles, blockchain ecosystems, gaming, security, automation, decentralization - and yet few attempt to address the core issue of the space: how to attract a new generation of developers to build novel blockchain applications for a more ethical and sustainable future. In this proposal, therefore, we will address the need for building a new generation of developers within the Polkadot ecosystem.
For which grant level are you applying?

[ ] Level 1:  Up to $10,000, 2 approvals
[x ] Level 2:  Up to $50,000, 3 approvals
[ ] Level 3:  Unlimited, 5 approvals (for > $100k Web3 Foundation Council approval)

Application Checklist

[x] The application template has been copied, renamed ( project_name.md) and updated.
[ x] A BTC or Ethereum (DAI/USDT) address for the payment of the milestones is provided inside the application.
[ x] I have read and acknowledged the terms and conditions.
[ x] The software delivered for this grant will be released under an open-source license specified in the application.
[ x] The initial PR contains only one commit (squash and force-push if needed).
[ x] The grant will only be announced once the first milestone has been accepted.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Hi @womeninblockchaincad: feel free to email me to<EMAIL_ADDRESS>if you want to discuss treasury funding opportunities, happy to help!

Hello,
Thank you - yes please connect us.
On Mon, Feb 7, 2022 at 10:29 AM David Hawig @.***>
wrote:

@.**** requested changes on this pull request.
Thanks a lot for the application and the interest in our grants program.
However, our current grants program focuses on open source software
development and research and doesn’t support education focused
applications. I’m therefore closing the PR.
That said the on-chain treasury
https://github.com/w3f/Grants-Program#treasury might be interested in
supporting your project. I will share the application with Raul, who helps
the on-chain council with the treasury spending. Also let me know, if I
should put you in contact with him via email.
—
Reply to this email directly, view it on GitHub
https://github.com/w3f/Grants-Program/pull/815#pullrequestreview-874851818,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXPANI5NESRK5F47OWKWQPDUZ7QMRANCNFSM5NXNVDDQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID:
@.***>

Hello,
Grateful if we can connect us to Raul.
Best,
Justyna
On Mon, Feb 7, 2022 at 10:29 AM David Hawig @.***>
wrote:

@.**** requested changes on this pull request.
Thanks a lot for the application and the interest in our grants program.
However, our current grants program focuses on open source software
development and research and doesn’t support education focused
applications. I’m therefore closing the PR.
That said the on-chain treasury
https://github.com/w3f/Grants-Program#treasury might be interested in
supporting your project. I will share the application with Raul, who helps
the on-chain council with the treasury spending. Also let me know, if I
should put you in contact with him via email.
—
Reply to this email directly, view it on GitHub
https://github.com/w3f/Grants-Program/pull/815#pullrequestreview-874851818,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXPANI5NESRK5F47OWKWQPDUZ7QMRANCNFSM5NXNVDDQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID:
@.***>

Hi Justyna, Raul already replied here, see his comment above. Feel free to contact him at<EMAIL_ADDRESS>


lib/systems: fix uname.processor for powerpc

Description of changes
Cross-compilation of anything downstream of gtk3 requires qemu (due to gobject-introspection); qemu is built with --target-list=*-linux-user.  Without this commit, those qemu builds will fail on a powerpc64le buildPlatform due to qemu being configured with --cpu=powerpc64le instead of --cpu=ppc64le.  Unfortunately the build failure message from qemu in this situation is extremely cryptic.
The root cause turns out not to be the qemu expression, but rather the fact that on powerpc64le hostPlatform.uname.processor returns the gnu-name (powerpc64le) for the cpu instead of the linux-name (ppc64le) for the cpu.
Things done

Built on platform(s)

[x] powerpc64le-linux

[x] Tested compilation of many packages that depend on this change: full workstation environment
[x] Tested basic functionality of many binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

I originally opened this PR before #189958 merged.  Now that that PR has merged, the motivation for this PR is much simpler: it makes hostPlatform.uname.processor match uname -m:
# uname -a
Linux talos 4.19.0-20-powerpc64le #1 SMP Debian 4.19.235-1 (2022-03-17) ppc64le GNU/Linux
# uname -m
ppc64le

mips64el needs an analogous fix, so I've pushed 4383fe1b772f138a09b3ce09999335fbee7269aa except onto this PR instead of opening a separate one in order to avoid creating a merge conflict with myself.
Without 4383fe1b772f138a09b3ce09999335fbee7269aa, the qemu builds needed for cross-compiling to mips64el will fail.


Backport "Cleanup defn annotations" to LTS

Backports #19514 to the LTS branch.
PR submitted by the release tooling.
[skip ci]

No regressions detected in the community build up to lts-19520.
Reference


Release 1.2.0

Yet another release.

Worked as expected:
[2022-03-03T20:22:08Z INFO  release_rs] found possible release commit:
[2022-03-03T20:22:08Z INFO  release_rs] 	128ae2d chore(main): release 1.2.0
[2022-03-03T20:22:09Z INFO  release_rs] detected release

https://github.com/hendrikmaus/rust-pr-based-release-workflow/runs/5413191714?check_suite_focus=true


Selection of landmark-only animation in GPA

Add selection between visualizing with points only vs a reference model

addressed in commit dde2c0baaff8b7a08d0568a2f863e4e520037aaa


Fix backtick example in markdown guidance page

In the markdown guidance page, the example indicating code blocks and inline code display the backticks as the monospace text '`'. This PR uses the HTML <code> tag so that the backticks render properly.
Before:

After:

#sign-off


add/remove Task in To-Do

this commit contains functionality to add/remove Task in To-Do using HTML,CSS,JS.

meets guidelines


normalizing awscredential service with other cred services (json resp…

…onse, sproc args)

Codecov Report

Merging #71 into master will decrease coverage by 0.34%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master      #71      +/-   ##
==========================================
- Coverage   24.79%   24.45%   -0.35%
==========================================
  Files          42       42
  Lines        1839     1865      +26
  Branches      197      199       +2
==========================================
  Hits          456      456
- Misses       1361     1387      +26
  Partials       22       22

Impacted Files
Coverage Δ

lib/python/treadmill_aws/awscredential.py
0% <0%> (ø)
:arrow_up:

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 957510f...fe7ab54. Read the comment docs.


[Spark runner] Support running (VR) tests with Java 17

Support running (VR) tests with Java 17 (closes #24400)

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R: @echauchot

@mosche thanks, reviewing ...

@mosche please rebase on master

@mosche is there any CI job added to run compilation/tests/VRtests with java 17 (using -PcompileAndRunTestsWithJava17) ?

no, for now this is just fixing the build to support such runs


Sampler links

This fixes: #366

Codecov Report

Merging #8 (24c7151) into master (2bab26e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master       #8   +/-   ##
=======================================
  Coverage   95.00%   95.01%
=======================================
  Files         164      164
  Lines        7086     7099   +13
=======================================
+ Hits         6732     6745   +13
  Misses        354      354

Impacted Files
Coverage Δ

sdk/include/opentelemetry/sdk/trace/sampler.h
100.00% <ø> (ø)

...lude/opentelemetry/sdk/trace/samplers/always_off.h
100.00% <ø> (ø)

...clude/opentelemetry/sdk/trace/samplers/always_on.h
100.00% <ø> (ø)

.../include/opentelemetry/sdk/trace/samplers/parent.h
100.00% <ø> (ø)

.../opentelemetry/sdk/trace/samplers/trace_id_ratio.h
100.00% <ø> (ø)

sdk/src/trace/samplers/trace_id_ratio.cc
100.00% <ø> (ø)

sdk/test/trace/tracer_test.cc
100.00% <ø> (ø)

sdk/src/trace/samplers/parent.cc
100.00% <100.00%> (ø)

sdk/src/trace/tracer.cc
73.52% <100.00%> (ø)

sdk/test/trace/always_off_sampler_test.cc
100.00% <100.00%> (ø)

... and 3 more


Make include/exclude patterns available in config.toml

Currently it seems as if enabling/disabling individual checks/lints is the only thing supported in the config.toml, this means that I still have to manually maintain a list of ignored files when running statix.
I'd like if this was configurable through the config.toml.

I have had the same gripe, will add this!

implemented in v0.5.5, try statix dump for a sample config!


Implemented Feat/get_block_transaction_count

Pull Request type

Please check the type of change your PR introduces:

[ ] Bugfix
[X] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] Documentation content changes
[ ] Testing
[ ] Other (please describe):

What is the current behavior?

Not implemented
Issue Number: #182
What is the new behavior?

Return number of transactions in a block

Does this introduce a breaking change?

[ ] Yes
[X] No

Other information

Depends on pull #197

Is this still dependent on @danilowhk new Node/Payload impl. If so can you move to a draft?

Is this still dependent on @danilowhk new Node/Payload impl. If so can you move to a draft?

Yes i do think so.
I will.

@all-contributors please add @phklive

@all-contributors please add @phklive  for Code

@all-contributors please add @phklive  for code


Update Docker run documentation

You need to update documentation to reflect your image name and version on some of your docker run examples.
docker run -d --name config-server -p 8888:8888 anilallewar/config-server
Should be
docker run -d --name config-server -p 8888:8888 anilallewar/basic-config-server:0.0.1
Dockercompoise appears OK

Updated, thanks :)


Fix date picker icon layout at dashboard

Bug report
Title
Fix date picker icon layout at the dashboard
Issue Description
Fix date picker icon layout at dashboard
Preconditions
1. framework Version- master

Steps to reproduce
1. step1- check the admin panel dashboard

Actual result

Hi @jitendra-webkul,
I think you fixed the date that exist when u add new product type booking.
The reported issue still not fixed, the date need to be fix showing directly on the dashboard page.
To fix it we need to remove the position:abusloute;
/bagisto/packages/Webkul/Ui/src/Resources/assets/sass/app.scss
&.date, &.datetime {
     &::after {
         background-image: url("../images/Icon-Calendar.svg");
         width: 24px;
         height: 24px;
         content: '';
         display: inline-block;
         vertical-align: middle;
         margin-left: -34px;
         pointer-events: none;
         position: absolute;        <=====Remove this.
         left: 70%;                       <=====Remove this.
         top: 50%;                       <=====Remove this.
     }
 }

I fixed it bascially. but I did not know how to complie the Ui and minify it.. I tried npm run prod but it does not make it minified.. just npm run dev works but its not minified as its dev.
/bagisto/packages/Webkul/Ui
run npm dev
run npm prod

@jitendra-webkul
This issue has been fixed for me.

I think its fixed for me too!


Archiving website!

Hello ml5-website contributors past and present! We are launching a new redesign of the website as documented in these repos:
https://github.com/ml5js/ml5-website-v02-gatsby
https://github.com/ml5js/ml5-website-v02-docsify
We would like this website to be archived so that users of ml5.js versions 0.12.2 and prior can continue to access the documentation.
I don't have the keys to the netlify deployment of this website. Perhaps @bomanimc or @joeyklee you might be able to pass those along?
cc @MOQN and team who is working on the new website!
Thanks everyone for your patience and understanding as we do our best to navigate the complexity of this transition!
cc @sharellb

Amazing! Congrats on all the latest developments. I'm so thrilled to see how far everything has come over the last couple years. @shiffman I can add you via netlify. Is there a good email I can send the invite link to? TY!

Thank you @joeyklee, I'll send you a note via email!

A quick update, the site has now been transitioned over! Here are all the domains:
https://ml5js.org/ -> homepage for ml5 next gen!
https://docs.ml5js.org/ -> docs for ml5 next gen!
https://archive.ml5js.org/ -> archive of homepage for ml5 0.12.2
https://archive-docs.ml5js.org -> archive of docs for ml5 0.12.2
We can update all the links in this repo then make sure we are referencing / documenting links to the archive on the new website and materials! Feel free to use this thread to note any errors I made or requests to adjust subdomains, etc!

tagging in @alanvww as we are discussing this!

The website is now archived and deployed to https://archive.ml5js.org/ with a banner thanks to @alanvww!

The next step is to "archive" this repo via GitHub, @alanvww would you have some time to document that the site is archived with any relevant information in the README and I will then go ahead and select the archive option in the GitHub settings?
After that, we can move onto archiving the ml5-library repo as well.

@shiffman Sounds good! I will work on it. But I am not sure if archiving the repo will affect the deployment or not. I will test it on my own first.

@shiffman Sounds good! I will work on it. But I am not sure if archiving the repo will affect the deployment or not. I will test it on my own first.

Oh, good point! We likely should not archive the repo if it's still live deploying, even if just to update necessary security fixes/updates for dependencies. Documenting the state of the repo and the project in the README and maybe renaming this repo to ml5-website-archive are probably the more important pieces!


Add test for front-end franchise handler

Pull Request Test Coverage Report for Build 327333710

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+1.4%) to 79.313%

Totals

Change from base Build 327319001:
1.4%

Covered Lines:
878

Relevant Lines:
1107

💛  - Coveralls


Page stops working after adding import statement

Hi! I'm trying to set up a project using vega-lite. After installing the packages and modifying the rollup.config.js, I got this error of Uncaught TypeError: Cannot destructure property 'ANY' of 'require$$26' as it is undefined. in my browser's console right after I add the line of import { VegaLite } from "svelte-vega";. I also had warnings of Circular dependencies and this has been rewritten to undefined:

(!) this has been rewritten to undefined
https://rollupjs.org/guide/en/#error-this-is-undefined
node_modules/fast-json-patch/module/helpers.mjs
4:  * MIT license
5:  */
6: var __extends = (this && this.__extends) || (function () {
^
7:     var extendStatics = function (d, b) {
8:         extendStatics = Object.setPrototypeOf ||
...and 1 other occurrence
node_modules/vega-lite/build/src/compile/compile.js
1: var __rest = (this && this.__rest) || function (s, e) {
^
2:     var t = {};
3:     for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
...and 1 other occurrence
node_modules/vega-lite/build/src/log/index.js
2:  * Vega-Lite's singleton logger utility.
3:  */
4: var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
^
5:     if (kind === "m") throw new TypeError("Private method is not writable");
6:     if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
...and 3 other occurrences

I'm not sure what is happening and would really appeaciate any help or clarifications. Thanks in advance!

Please update to the latest Vega-Lite and also see https://github.com/vega/svelte-vega/issues/90. Does that fix it?

Thank you for your reply! My vega-lite is up-to-date and I was using rollup and copied the svelte-vega package's configuration code but still got the

this has been rewritten to undefined

error.

That's a warning, not an error, no?

Ah yes, sorry! The error I got is actually [!] Error: You must specify "output.file" or "output.dir" for the build. Do you think this is because I was using JavaScript instead of TypeScript as my rollup.config.js looks like this:

Thanks!

This sounds like an issue with your build config and not this project. I am closing this issue but am happy to reopen if you think that's a mistake.

Thanks for your help!


Can't login

system:
Home Assistant version: 2021.12.8
Plugin version: 2.2.7
AAD SKU: AAD P1
AAD app registration: single tenant, no MSA
(M365 is requiring MFA on all accounts)
plugin config:
o365:
  client_secret: !secret o365_clientsecret
  client_id: !secret o365_appid
  email_sensor:
    - name: inbox
      max_items: 2
      is_unread: True
  query_sensors:
    - name: "HA Notifications"
      folder: "Inbox/Test_Inbox"
      from<EMAIL_ADDRESS>      subject_contains: "Notifcation from home assistant"
      has_attachment: True
      max_items: 2
      is_unread: True

AAD app config:

expected behaviour:

when clicking "Link O365 account" I am forwarded to my orgs login page
entering credentials and receiving MFA request
(surprisingly no consent screen is being shown)
login page closes
Pressing "I authorized successfully" should have received and stored the token

observed behaviour:
the return-url does not seem to receive (or being able to parse) the token. When calling the return uri directly (https://.ui.nabu.casa/api/o365) I receive a Error, the originating url does not seem to be a valid microsoft redirect so I assume the return_uri endpoint is available.
HA logs:
This error originated from a custom integration.

Logger: custom_components.o365.utils
Source: custom_components/o365/utils.py:45
Integration: Office 365 Calendar (documentation, issues)
First occurred: 3:58:15 PM (2 occurrences)
Last logged: 3:58:15 PM

Could not loacte token at .O365-token-cache/o365.token

For the record, I also tried the alternative authentication method by adding the additional two return_urls to my app registration but I wasn't able to grab the URI right after the MFA confirmation as the consent isn't showing up for me.

Sorry, I hadn't got to this one yet. I think I used alt_auth=True for my install. I think I did a fix in the standard method as well, but I forget the details.
Going to look and see if I can create a sensor to pull the summary info....


KeyUp from bunit does not assign value to a property in Blazor

blazor razor:
<input id="search" class="form-control" type="search" @bind-value="searchTerm" @bind-value:event="oninput" @onkeyup="search" placeholder="Search by any column" />
blazor code behind:
private string searchTerm { get; set; }
private void search()
{
if (initialCollectionOfEmployees == null)
{
initialCollectionOfEmployees = new List();
employees.ForEach(e => initialCollectionOfEmployees.Add(e));
}
        if (!string.IsNullOrEmpty(searchTerm))
        {
            employees = initialCollectionOfEmployees.Where(e => (e.ID + e.FirstName + e.MiddleName + e.LastName + Convert.ToDateTime(e.DateOfBirth).ToShortDateString() + e.Position + +e.DepartmentID + e.Gender).ToLower().Contains(searchTerm.ToLower())).ToList();
            if (employees.Count == 0)
            {
                employees = new List<Employee>();
            }
        }
        else
        {
            employees = new List<Employee>();
            initialCollectionOfEmployees.ForEach(e => employees.Add(e));
        }
    }

bunit:
var searchElement = cut.Find("#search");
searchElement.KeyUp("Mike");
The search method in the code behind of blazor gets hit with the above bunit code, but the searchTerm property in the code behind does not get populated with "Mike". What do I need to do in bunit to assign searchTerm to "Mike"?

Resolution is
var searchElement = cut.Find("#search");
searchElement.Input("Mike");
searchElement.KeyUp(Key.Up);


Help calling begin() with separate I2C interfaces

Help request (relatively new to I2C and C++): I see that there's an option to Begin using a specific I2C interface, but I'm lost trying to pass in a TwoWire to the Begin call. I'm trying to use two SHT21s with an ESP32, and I've already set up two TwoWire instances and two sensors via:
TwoWire I2Cone = TwoWire(0);
TwoWire I2Ctwo = TwoWire(1);
SHT2x internal;
SHT2x external;

In my setup() I've initiated the two TwoWire object (I think) with:
I2Cone.begin(SDA_1, SCL_1, 100000);
I2Ctwo.begin(SDA_2, SCL_2, 100000);

And I've tried initiating the two sensors with:
internal.begin(I2Cone);
external.begin(I2Ctwo);

But when compiling in PlatformIO I get errors about 'no matching function for call to 'SHT2x::begin(TwoWire&)'. Any hints as to what I'm missing?

Thanks for the issue, will answer asap but might be a few days.

You need an & I guess.
Can you test this sketch - it compiles without error messages.
If it works I will add it to the examples
//
//    FILE: SHT2x_demo_ESP32_2.ino
//  AUTHOR: Rob Tillaart
// PURPOSE: demo usage 2 I2C ports + SHT2X
//     URL: https://github.com/RobTillaart/SHT2x

#include "Wire.h"
#include "SHT2x.h"

TwoWire I2Cone = TwoWire(0);
TwoWire I2Ctwo = TwoWire(1);
SHT2x internal;
SHT2x external;

uint32_t start;
uint32_t stop;

SHT2x sht;

void setup()
{
  Serial.begin(115200);
  Serial.println(__FILE__);
  Serial.print("SHT2x_LIB_VERSION: \t");
  Serial.println(SHT2x_LIB_VERSION);

  internal.begin(&I2Cone);
  external.begin(&I2Ctwo);

  uint8_t stat = internal.getStatus();
  Serial.print(stat, HEX);
  Serial.println();
  stat = external.getStatus();
  Serial.print(stat, HEX);
  Serial.println();
  Serial.println();
}

void loop()
{
  start = micros();
  internal.read();
  external.read();
  stop = micros();

  Serial.print("\t");
  Serial.print(stop - start);
  Serial.print("\t");
  Serial.print(internal.getTemperature(), 1);
  Serial.print("\t");
  Serial.print(internal.getHumidity(), 1);
  Serial.print("\t");
  Serial.print(external.getTemperature(), 1);
  Serial.print("\t");
  Serial.println(external.getHumidity(), 1);
  delay(1000);
}

// -- END OF FILE --

Thanks for the very quick help - and with one change that worked. (I was sure I had tried using the &, but it was getting late and I think I was going in circles and confusing myself.)
In your version, you didn't pass new SDA and SCL pins to the I2Ctwo interface and 'begin' it separately, so only the sensor using I2Cone (which I guess auto-began with the ESP32 default pins of 21 and 22) worked. The second sensor reported a meaningless constant result (-40 for temp and -6 for humidity), I assume because it was trying to use the second bus which was itself trying to use the same default SDA/SCL pins as the first one.
The following worked perfectly for me:
//
//    FILE: SHT2x_demo_ESP32_2.ino
//  AUTHOR: Rob Tillaart
// PURPOSE: demo usage 2 I2C ports + SHT2X
//     URL: https://github.com/RobTillaart/SHT2x

// #include <Arduino.h> // for PlatformIO
#include "Wire.h"
#include "SHT2x.h"

#define SDA_1 21
#define SCL_1 22
#define SDA_2 33
#define SCL_2 32

TwoWire I2Cone = TwoWire(0);
TwoWire I2Ctwo = TwoWire(1);
SHT2x internal;
SHT2x external;

uint32_t start;
uint32_t stop;

SHT2x sht;

void setup()
{
  Serial.begin(115200);
  Serial.println(__FILE__);
  Serial.print("SHT2x_LIB_VERSION: \t");
  Serial.println(SHT2x_LIB_VERSION);

  I2Cone.begin(SDA_1, SCL_1);
  I2Ctwo.begin(SDA_2, SCL_2);

  internal.begin(&I2Cone);
  external.begin(&I2Ctwo);

  uint8_t stat = internal.getStatus();
  Serial.print(stat, HEX);
  Serial.println();
  stat = external.getStatus();
  Serial.print(stat, HEX);
  Serial.println();
  Serial.println();
}

void loop()
{
  start = micros();
  internal.read();
  external.read();
  stop = micros();

  Serial.print("\t");
  Serial.print(stop - start);
  Serial.print("\t");
  Serial.print(internal.getTemperature(), 1);
  Serial.print("\t");
  Serial.print(internal.getHumidity(), 1);
  Serial.print("\t");
  Serial.print(external.getTemperature(), 1);
  Serial.print("\t");
  Serial.println(external.getHumidity(), 1);
  delay(1000);
}

// -- END OF FILE --

And using this principle, my original project is back on track. Thanks again!

Although, I do think the extra SHT2x sht up at the beginning just before setup() is superfluous, and came along for the ride from one of your other examples... Forgot to mention that and remove it from my test...


Hello, what do you think about translate documentation?

Describe the feature request
Hello, what do you think about translate documentation for another lanugages?
I can help you with it.
Describe alternatives you've considered
Description of the alternatives you've considered here.
Additional context
Additional context here.

Great sir. it's helpful

I propose Indonesian

Great

i think it's a good idea, we are evaluating some ways to do this now. i opened an issue in our website repo: https://github.com/taikoxyz/website/issues/44


added path plugin

Added path plugin which prints out path in nice format.

Thanks, added missing quote

This is not suitable to occupy a whole plugin.


Update install.php

fix syntax.

@lamjed001 could you please remove the link to for the message, since the translation now belongs to the core translate


Add option to show nav items as collapsed by default

User story.
As a technical writer for a large API that is actually comprised of many APIs, I'd like to see nav items collapsed when Elements loads instead of expanded, so that the table of contents is more scannable and not so overwhelming
Describe the solution you'd like
A nav today might look like this:

As you can see, you can't see the APIs that are farther down in the nav. With this optional setting changed to "collapsed" the nav would look like this:

The API that I work with has many more groups and APIs than are shown here, so the problem with everything expanded by default is much worse.
There could be two configuration settings, one that controls whether nav items are expanded/collapsed by default and the other for nav groups.

Actually ToC already has a prop for controlling what is shown on initial render - https://github.com/stoplightio/elements/blob/main/packages/elements-core/src/components/MosaicTableOfContents/TableOfContents.tsx#L29 - it's called maxDepthOpenByDefault - it just has to be utilised in API and StoplightProject components.


SPFx extension not displaying image asset coming from Microsoft 365 CDN

Category

[x] Question
[ ] Typo
[ ] Additional article idea

Question

I have a SPFx extension for the header which basically displays some images coming from Microsoft 365 CDN origin. In the classic experience, there was a auto-rewrite publishing feature which basically was replacing those urls to publiccdn.sharepoint..... but it's not happening into the SPFx extension, I have tested to build that static url manually inside of the extension and it's not working either.  Is the CDN supposed to work from a extension? If not, is there a way to load images from the Microsoft CDN from there?

Environment details (development & target environment)
I tested that in a Team and Communication modern site collection

Can you see if this feature from the 1.13 release that might help you - https://docs.microsoft.com/en-us/javascript/api/sp-image-helper?view=sp-typescript-latest


#41 update about page Lexi

Description

Added pictures
Added descriptions
Updated styles

Please note:
Will need further improvements to align with the consistent design of the rest of the app.
Related to
#41
Checklist:

[x] My code follows the style guidelines of this project
[x] I have carefully reviewed my own code
[x] I have commented my code
[x] I have updated any documentation

Welldone Lexi


Improve ILE-based grammar rules consistency

"Identical Lexical Entries" (ILE) based grammar rules learned with POC-English-Amb(disAmb) corpus are inconsistent from day to day, leading to volatile PA and PQ metrics.

Done - PR https://github.com/singnet/language-learning/pull/68


local images loaded on pageload

My local images that are passed as data-thumbnail attributes to a vimeo-iframe are always loaded on pageload and not, when they come into view. I tried to set lazyload: false, it did not have any effect. Any idea, what the problem might be?
Example Page: https://www.praktikawelten.de/freiwilligenarbeit-ghana

Thanks for your feedback!
That's wierd. If you take a look at http://codepen.io/viktor/pen/EgNpav the last item has a local image that get's lazyloaded as soon as it is in the viewport.
What are your settings? You should not set lazyload to false.

lazyload: true is all I pass as options. Yes, I saw on the example page, that it is working.

Did you ever find a solution for this?

I'm closing this due to inactivity


Html mark with error

Hello, How are you?
 sub topic.
2- Check the html, There is a extra "a" in a button line there.
From:
<button class="nav-link" id="v-pills-profile-tab" data-bs-toggle="pill" data-bs-target="#v-pills-profile" type="button" role="tab" aria-controls="v-pills-profile" aria-selected="false">Profile</buttona>
To:
<button class="nav-link" id="v-pills-profile-tab" data-bs-toggle="pill" data-bs-target="#v-pills-profile" type="button" role="tab" aria-controls="v-pills-profile" aria-selected="false">Profile</button>
Regards,

This is fixed in 51c7075

Yeah docs are only deployed for each release.


Fix string interpolation in code blocks using Starlight's Code component

Summary

I fixed the issue where string interpolation wasn't working inside code blocks in https://developers.cloudflare.com/workers/get-started/guide/ by using Starlight's Code component.
Screenshots (optional)

Before
After

Documentation checklist

[ ] The documentation style guide has been adhered to.
[ ] If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
[ ] Files which have changed name or location have been allocated redirects.

Thanks for flagging!
We just noticed this ourselves and are running a bigger fix in #16137

Thanks for the contribution either way, we really appreciate it!


Using artifact engine 0.1.18 to get latest fix on the resource file s…

…etting.

PR has to be completed to make a hotfix. What I can hold of is to update to the .nuget dependencies for the deployment.

@GitHubSriramB Can't generate hotfix build from a another repo.. will close this and open another one..


Automated cherry pick of #10044

Cherry pick of #10044 on cloud.
/cc  @hmhealey
NONE

/update-branch


Linting with Ruff

What's new

Dropped isort and flake8 for ruff
Upgraded MyPy library

Codecov Report

Merging #74 (5986364) into master (9e4ba3d) will decrease coverage by 0.05%.
The diff coverage is 100.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@             Coverage Diff             @@
##            master      #74      +/-   ##
===========================================
- Coverage   100.00%   99.95%   -0.05%
===========================================
  Files           46       46
  Lines         1988     2009      +21
===========================================
+ Hits          1988     2008      +20
- Misses           0        1       +1

Files Changed
Coverage Δ

ninja_extra/details.py
100.00% <ø> (ø)

ninja_extra/throttling/decorator.py
100.00% <ø> (ø)

ninja_extra/conf/settings.py
100.00% <100.00%> (ø)

ninja_extra/controllers/base.py
100.00% <100.00%> (ø)

ninja_extra/controllers/registry.py
100.00% <100.00%> (ø)

ninja_extra/controllers/response.py
100.00% <100.00%> (ø)

ninja_extra/controllers/route/__init__.py
100.00% <100.00%> (ø)

ninja_extra/controllers/route/context.py
100.00% <100.00%> (ø)

ninja_extra/controllers/route/route_functions.py
100.00% <100.00%> (ø)

ninja_extra/exceptions.py
100.00% <100.00%> (ø)

... and 9 more


Memory: mmap returned an error

My node stops producing block at around 9500 block number (~25th era, ~50th session). The first error is:
Encountered consensus error: ClientImport("Execution(Other(\"Memory: mmap returned an error\"))")

Which then causes the following error infinite times:
Encountered consensus error: ClientImport("Execution(Other(\"ApplySnapshotFailed\"))")

I tried restarting the chain from scratch 3 times and the error happened at block 9519 and 9558 and 9551.
The chain I'm using is available in the develop branch of https://github.com/PolymathNetwork/Polymesh
It is based on substrate commit 93569d0d1af7aa5eb67b9de8b58d7fffde63b421 but has a bunch of changes.

Can you reproduce consistently? Did it happen at those blocks each of those 3 times or you mean that the error happened once at 9519, once at 9558 and once at 9551?
What are the memory parameters of the machine you are running on? I assume it is 64 bit? How much free memory it had at failure times? Do you maybe run it inside of a docker container? Do you have any related logs to it?
Related #3780

I have reproduced it thrice consecutively. The error happened at those blocks on 3 different chains. I am running it on a single node in --dev mode so once the error happens, the chain is forever stuck and needs to be started from scratch.
64bit Ubuntu bionic. 16 gigs of ram. It had free ram available when the error happened initially (the system logs have no mention of oom). However, after a few hours of this error, the node eventually goes oom and the system kills it.
I am not using any docker containers.
What kind of logs would you like?

For start, it would be helpful to see if there are anything that can be seen in the regular logs (ie those that are printed in stdout by default).
Besides that, I think it would help to know

what is the amount of RSS and VIRT memory the node consumes before, at the time of failure, and after the failure.
what is the number of mmaping the app requests. You can do it either with pmap <pid> (preferable) or cat /proc/<pid>/maps.
are there any limits set in place for that process? ulimit -a
what is sysctl vm.max_map_count?

Thanks that would be very helpful

I am currently running it on a fresh chain. The current ram usage is 13gb and increasing there's obviously a memory leak somewhere (could be due to one of our changes). I suppose at around 9500 block, there won't be enough ram left to process the block.

So the error happened again. At block 9453 with just 30mb available memory left. 15 gigs+ consumed by the node. Need to figure out the root cause of the memory leak now.

Is that a dev chain that you are using?

Yes, it is.

FYI ran it with valgrind and there's confirmed memory leak within 20 blocks being mined. A snippet of the output: https://gist.github.com/maxsam4/aa8c72dfe40996bab6738d085bd14e49
FWIW the node is compiled in release mode. I am doing more tests now. Including testing it on the substrate's node template and Polkadot node.

There seem to be a memory leak in Polkadot as well: https://gist.github.com/maxsam4/809295d919f392f655f84af551e0d3e1
However, it's much lower than the leak in our node.

After a bit more poking around, it seems like polkadot has the same problem. Memory usage is growing without bounds on the latest polkadot node running in dev mode. I'm measuring heap usage with valgrind massif right now, will post the graph and massif file after collecting a bit more data.
Right now, the node has mined 120 blocks and it's using 600mb of ram (and growing).

600mb and growing is totally ok
If/when it grows total > 2-3 Gb, can you run it with -lusage=trace and post some logs?

in telemetry, you can order node by memory usage, and you can see many using > 5g, which is too much

Slightly unrelated, both my sentry nodes on Kusama got stuck maybe due to oom.
One has this error
Verification failed from peer: UnknownBlock: BlockId::Hash(0x8b2ae3c1441d9d8c34a4236b8ead3253d51eccdd610cdaf6de505afd978b3f8f)
Idle (4 peers), best: #1054646 (0x8d9d…0950), finalized #1054646 (0x8d9d…0950), ⬇ 14.0kiB/s ⬆ 20.3kiB/s

and the other has
Verification failed from peer: UnknownBlock: BlockId::Hash(0x7bf7e3f58d9f722fd72d8fde80b9cf45c1a6856092ad43539455cc2c2c0a9cb9)
Idle (4 peers), best: #1015366 (0xb9fd…b277), finalized #1015366 (0xb9fd…b277), ⬇ 14.0kiB/s ⬆ 1.0kiB/s

A lot of people in the riot validator chat have the same problem.

@NikVolf Polkadot's node is printing these with ltrace 2020-02-19 16:30:03.517 main-tokio- TRACE usage  Usage statistics: caches: (1153008 state, 8021310 db overlay), i/o: (7 tx, 13281 write, 132402 read, 1897 avg tx, 250/259 key cache reads/total)
but my node is not. do you know why?

@NikVolf Interestingly, polkadot's memory usage hasn't grown much after I enabled ltrace. It could be that valgrind was adding the overhead and not polkadot itself. I am running without valgrind this time.

Here's some heap details of my node when it was consuming 10 gigs of ram in total.
https://drive.google.com/file/d/1TYGaC5sSNjdADWwLA6pKZ1ul-2k7lSfE/view?usp=sharing
Use massif-visualizer to view it properly.
among other things, it seems like polling future is causing high memory usage. Any ideas what's going wrong? We have not touched the babe/grandpa/futures modules.

Here's some heap details of my node when it was consuming 10 gigs of ram in total.
https://drive.google.com/file/d/1TYGaC5sSNjdADWwLA6pKZ1ul-2k7lSfE/view?usp=sharing
Use massif-visualizer to view it properly.
among other things, it seems like polling future is causing high memory usage. Any ideas what's going wrong? We have not touched the babe/grandpa/futures modules.

We indeed had troubles with memory leak in master after updating libp2p, but it is fixed now. I'd suggest you update to latest master.

We indeed had troubles with memory leak in master after updating libp2p, but it is fixed now. I'd suggest you update to latest master.

Thanks, I was trying to delay that till next substrate release because that'll be another big refactor for us but I suppose we should just do it at this point.

I forgot to update this issue but upgrading to latest substrate indeed fixed this issue.


Why the software history was not kept?

Hi there,
I'm a researcher studying software evolution. As part of my current research, I'm studying the implications of open-sourcing a proprietary software, for instance, if the project succeed in attracting newcomers. However, I observed that some projects, like djinni, deleted their software history.
https://github.com/dropbox/djinni/commit/b5bacd702e878c2a1cb0b474410190d82207c135
Knowing that software history is indispensable for developers (e.g., developers need to refer to history several times a day), I would like to ask dijinni developers the following four brief questions:

Why did you decide to not keep the software history?
Do the core developers faced any kind of problems, when trying to refer to the old history? If so, how did they solve these problems?
Do the newcomers faced any kind of problems, when trying to refer to the old history? If so, how did they solve these problems?
How does the lack of history impacted on software evolution? Does it placed any burden in understanding and evolving the software?

Thanks in advance for your collaboration,
Gustavo Pinto, PhD
http://www.gustavopinto.org

Hi, Gustavo.  I'm happy to give some thoughts on this on behalf of developers at Dropbox.  I'm not sure if an issue is the right place for detailed discussion of this, though.  Feel free to reach out by email (my address is in the README.md file).  To be clear, history wasn't deleted, it was simply never published when an internal product became an open-source one.  In short, the history which is unpublished is history of Djinni's development internal to Dropbox, as well as the internal development of some new major features as they're added.  That history is available to us in an internal repo at Dropbox, but contains details of internal product development (such as unannounced product codenames, or links to our code-review server) which wasn't meant for public consumption.
If any non-Dropbox developers want to chime in about whether this practice has impacted their ability to contribute, feel free to comment.  I'm going to close out this issue, though.

Hi @artwyman,
thanks once again for answering our research inquiries. We were able to collect 35 responses and we drafted a research paper with the results. The paper was submitted and accepted for the 14th International Conference on Open Source Systems (http://oss2018.org/). You can find the paper here. Hope you enjoy reading the paper!
Thanks again,
Gustavo


Brave-Browser: version updated from 1.16.76 to 1.17.73

Version updated for Brave Browser to 1.17.73:

Added a dependency for libxkbcommon.
Updated SHA256 for the version bumped brave browser.

Signed-off-by: nasirhm<EMAIL_ADDRESS>
Motivation for this change
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 105303 run on x86_64-linux 1

1 package built:

brave


Fixup: missing pull request template creation file

Following PR https://github.com/pycontw/pycon.tw/pull/770 and add the unexpectedly missing file.

Codecov Report

Merging #771 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #771   +/-   ##
=======================================
  Coverage   75.55%   75.55%
=======================================
  Files          70       70
  Lines        2684     2684
=======================================
  Hits         2028     2028
  Misses        656      656

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 8014509...041c1b0. Read the comment docs.


Improving renewable electricity chart

I think that this chart, "Renewable electricity", which currently only shows the percentage share of renewable electricity available could do with some improvements:

We could possibly paint a clearer and bigger picture if we could add more info to the chart, for example:

Percentage share of specific renewable electricity sources which add up to  the cumulative share of renewable electricity (i.e. 5% solar, 10% wind etc.)

Other ideas welcome!

Percentage share of specific renewable electricity sources which add up to the cumulative share of renewable electricity (i.e. 5% solar, 10% wind etc.)

Very good idea!

Done!


[Task Class] Create price and time atributes

Create two new atributes for the task class:

task.time that gives the time that the simulation took to run (task.end_time - task.start_time. The unit in which this is  displayed is in seconds;
task.price = xxxx that gives the price of the simulation (task.time * 'price of the machine in which the simulation ran').

Closing this, since it was already open in another issue management.


Update search and user methods to adhere to REST v3.3 (fixes #48)

Codecov Report

Merging #49 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master    #49   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           6      6
  Lines         358    372   +14
=====================================
+ Hits          358    372   +14

Impacted Files
Coverage Δ

jikanpy/exceptions.py
100% <ø> (ø)
:arrow_up:

jikanpy/aiojikan.py
100% <100%> (ø)
:arrow_up:

jikanpy/jikan.py
100% <100%> (ø)
:arrow_up:

jikanpy/abstractjikan.py
100% <100%> (ø)
:arrow_up:

jikanpy/parameters.py
100% <100%> (ø)
:arrow_up:

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 375f2e3...7a57c31. Read the comment docs.


Place "Snake Border" button in the correct alphabetical order under Animated

Place "Snake border" in the correct alphabetical order under Animated. Changes should be made only in assets/js/buttons-examples.js

I would like to work on this. Please assign me.

hello @shahednasser can you please assign me this project? I would love to work on it. Thank you !!

Hi, I fixed this issue as no one has assigned to this untill now. Please have a look on pull request.
Thank you!


file not retrieved in assistant_retrieval notebook

Using the exact script in the notebook, I get the following results:
https://github.com/microsoft/autogen/blob/main/notebook/agentchat_oai_assistant_retrieval.ipynb
user_proxy (to assistant):
What is the name of the class of agents I gave you?

assistant (to user_proxy):
It appears that there aren't any documents uploaded in this conversation. To provide you with the name of the class of agents, I would need the relevant document or information to be uploaded. Could you please upload the document that contains the information about the class of agents you're referring to?

@thinkall fyi

Hi @ramsoai , have you replaced the file id to the one you have access to?
@gagb Whether the comment # add id of an existing file our openai account should be # add id of an existing file of your openai account?

added a pr. see above

I have kept the format as is, and replaced the fileid with another one I have uploaded manually to the openai playground.  I still get the same answer.
llm_config = {
"config_list": config_list,
"assistant_id": assistant_id,
"tools": [
{
"type": "retrieval"
}
],
"file_ids": ["file-CmlT0YKLB3ZCdHmslF9FOv69"]
# add id of an existing file our openai account
# in this case I added the implementation of conversable_agent.py
}
I've also tried multiple files in this format as well:
"file_ids": ["file-CmlT0YKLB3ZCdHmslF9FOv69","file-xxxx"]

This has been solved with the latest beta6 update.  Thank you!!


create and push image to GHCR

With a push to master, a new image will be built and pushed to
github container registry at URL:
ghcr.io/k8snetworkplumbingwg/sriov-cni:${tag}
The accompanying tag can wither be sha or latest.
With a creation of a new release and associated tag which starts
with 'v', a new image will be built and pushed to github
container registry at URL:
ghcr.io/k8snetworkplumbingwg/sriov-cni:${tag}
The accompanying tag will start with 'v' and the version number.
Note:
I will remove WIP when Network Resources Injector's image push to GHCR is working ok. This is essentially the same patch.
Signed-off-by: Kennelly, Martin<EMAIL_ADDRESS>

@adrianchiris Is this ok with you?


Open full URL of a submission from / prompt

As one can lanch rtv like this rtv -l "https://redd.it/a1b2c3" rtv should be able to open a link from it's internal prompt: Enter page:  https://redd.it/a1b2c3

Thanks, this was also mentioned here: https://github.com/michael-lazar/rtv/issues/267. Agreed that it would be a nice feature to have.

Created a pull request that addresses this partially #314

This feature was merged in #340


Bypass DwmIsCompositionEnabled checks on Win8+.

DWM composition is always enabled on Win8+, so there's no need to call DwmIsCompositionEnabled on those platforms. See also https://bugs.chromium.org/p/chromium/issues/detail?id=942165.

This is in reference to issue #1452 but I'm not sure how to link them.

I'm looking to remove or replace the DWM hack but if we do keep it I will definitely merge this fix. Thanks!

This has been merged as 87458617e0d6094630a255d043c55e085f70c07f.


asciidoctor pdf command pipe

I'm trying to use the asciidoctor-pdf with pipes for integration inside a gulp script (the .js  I found on the web are too young yet and does not provide the PDF backend)
I found that when I'm trying this command
$ cat test.adoc | asciidoc-pdf -o - - > test.pdf

and the error I get is
can't convert IO into String
  Use --trace for backtrace

The error disappears when I use the following syntax
$ cat test.adoc | asciidoc-pdf -o test.pdf -

Thanks,

For those who are looking for a gulp integration of the asciidoctor command line, here is what I do:
function genAsciiDoc(file, backend) {
    var args = [];
    if(backend == 'pdf') {
        args = args.concat(['-r', 'asciidoctor-pdf'])
    }

    args = args.concat([
        '-b',
        backend,
        '-o',
        '-',
        '-'
    ]);

    var ext = (backend == 'html5' ? 'html' : backend);

    return gulp.src(file)
    .pipe(spawn({
        cmd: 'asciidoctor',
        args: args
    }))
    .pipe(ext_replace('.' + ext))
    .pipe(gulp.dest('doc/'));
}

Thanks for pointing this out. It looks like Prawn's render_file method doesn't support IO objects, so we'll need to handle this ourselves in the converter.
Here's code I just tested that seems to work
  def write pdf_doc, target
    if ::IO === target
      if target == STDOUT
        ::StringIO.open do |io|
          pdf_doc.render io
          io.rewind
          target.write io.read
        end
      else
        pdf_doc.render target
      end
    else
      pdf_doc.render_file target
      @pdfmarks.generate_file target if @pdfmarks
    end
    nil
  end

Sadly, we can't stream to STDOUT as Prawn relies on the size method, which isn't available on the STDOUT object.

PR sent. Please check it out when you get a chance.

Hi,
Sorry for the delay but I was on other topics these days. I tried your code and it worked as expected using the command line. I did not try using my gulp plugin yet, as I don't know how to say which asciidoctor-pdf to use in the command line.
I hope this could be merged and released soon :smile:

Thanks for the feedback @jeremyVignelles! I'll try to get this into the upcoming 1.5.0.alpha.9 release, out by the end of this week hopefully.

I sorted out how to get streaming to STDOUT working! \o/
I had to wrap STDOUT in a decorator to track the size and expose that information using an accessor. Then, it works!


(#110) - add the --no-stdout-logs option

LGTM :+1:

green and merged: 573be832322a63d8b7a5f5cd3b93d8f6a5691585


node_modules directory replicated in every theme

Unless I'm misunderstanding the Slate application, it seems incredibly wasteful/untidy to replicate the node_modules folder in every new slate theme created.
My main issue with this is that it generates some 10,000 odd files, which wreaks havoc with cloud sync services like Dropbox and OneDrive and causes the sync utilities to either crash or take hours to perform a sync.
It would be a useful feature if the location of the node_modules folder could be redirected and shared amongst the projects, or at least the ability to move this folder to another location on the local machine on a per-theme basis.
Forgive me if I'm misunderstanding this, or this isn't the right place to discuss such issues. Any suggestions to get around this issue would be appreciated.

@LukeStratton Each project having its own node_modules is intended.
I understand what you mean about it being "wasteful" to sync those files to Dropbox.  That's taken care of for projects that are using git for version control, we mark that folder in the .gitignore file: https://github.com/Shopify/slate/blob/41b3269ff7164e9193aeb758a10554527dbb318f/packages/slate-theme/.gitignore-sample#L8-L14
What you're describing about Dropbox and node_modules is an issue with using Dropbox.  I recommend you ignore the folder using selective sync. I found an article about another developer facing the same issue you're describing: https://www.justinsilver.com/technology/osx/ignore-node_modules-dropbox/


docs: update links

Update outdated links.
Spotted in:
https://github.com/lukso-network/docs/pull/703

Codecov Report

Merging #354 (e415077) into develop (9640d9f) will decrease coverage by 0.49%.
Report is 16 commits behind head on develop.
The diff coverage is 72.72%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@             Coverage Diff             @@
##           develop     #354      +/-   ##
===========================================
- Coverage    83.71%   83.23%   -0.49%
===========================================
  Files           18       18
  Lines         1130     1139       +9
  Branches       255      262       +7
===========================================
+ Hits           946      948       +2
- Misses          98       99       +1
- Partials        86       92       +6

Files
Coverage Δ

src/constants/constants.ts
100.00% <100.00%> (ø)

src/constants/interfaces.ts
100.00% <ø> (ø)

src/lib/getDataFromExternalSources.ts
61.29% <33.33%> (-2.05%)
:arrow_down:

src/lib/utils.ts
82.09% <81.81%> (-1.03%)
:arrow_down:

src/lib/encoder.ts
82.78% <64.28%> (-1.18%)
:arrow_down:

Closing as it was removed in this PR as stated by Jean:

https://github.com/ERC725Alliance/erc725.js/pull/352


v3.x missing feature - configuring the schema encoder

Before 3.x it was possible for example to do something like this:
typealias SchemaEncoder = (type: SchemaType) -> String?

    encoding {
        schemaEncoder { type ->
            when (type.javaType) {
                ByteArrayWrapper::class.java -> jssJson.encodeToSchema(
                    serializer = ByteArrayWrapperSerializer
                )

                UUID::class.java -> jssJson.encodeToSchema(
                  serializer = UUIDSerializer
                )
                OffsetDateTime::class.java -> jssJson.encodeToSchema(
                    serializer = OffsetDateTimeSerializer
                )

                else -> {
                    jssJson.encodeToSchema(
                        serializer = serializer(type)
                    )
                }
            }
        }
        schemaDefinitionsField = "definitions"
    }

For the example encoder it is possible with 3.x.
I couldn't find a way to implement the schema encoder example with 3.x.
Is this not possible anymore, or is their a way?
If not, is it possible to add this functionality again?

You can customize the new schema generator, some information here.
You can then for example:

customize the general schema generation steps, to e.g. handle swagger or jackson annotations (more info here)
generate a specific type as another given type via type redirects
completly customize the input data for the schema generation via custom type processors

there is currently also an open issue about custom schema for LocalDateTime that might be relevant.
I hope these links are helpful enough. I'm still working on the new schema generator and the wiki, so if you encounter any questions or issues, please let me know.


Error on lab file 05

Module: 00
Lab/Demo: 05
Task: 00
Step: generate-image.py
Description of issue
Upon executing the code, line 26 does not complete successfully.
submission = requests.post(url, headers=headers, json=body)
Printing the error message shows the following error
POST request status code: 404
POST request response: {'error': {'code': 'notFound', 'message': 'Task not found.'}}
As a result, the next command errors and throws an exception:
operation_location = submission.headers['Operation-Location']
Repro steps:

Hello @nikkiconley
I have just ran the lab and found no issues with the Python part, I was able to generate images without errors.
Can you re-create the Azure OpenAi resource and try again? ,making sure you use East US region when creating it.
Regards,
Mihai

Hi @nikkiconley ,
I ran into the same issue as you did, and then I took @Mihai-Ac 's advice to use a "eastus" endpoint of AOAI, the code worked.
Btw, you don't have to deploy dalle models, you can just use it for REST API calls.


Can not choose second gpu using wgpu

Running on windows I have tried to set my intel gpu using let-env WGPU_ADAPTER_NAME = 'intel'  via nushell to no succsess.
I also tried changing device choose to let device = WgpuDevice::DiscreteGpu(0); and it too did not work.
in the end I had to set type Backend = WgpuBackend<burn_wgpu::Vulkan, f32, i32>; and use VK_ICD_FILENAMES = '\windows\system32\DriverStore\FileRepository\iigd_dch_d.inf_amd64_50b98d237e0753a8\igvk64.json' to use the intel gpu (for anyone stumbling upon this the link may be different depending on gpu, so you will need to manually find igvk64.json)
not sure if this is an issue with whisper-burn or the wgpu backend for burn, I think it's a wgpu-burn issue but thought it would be safer to report issue here first

@Quackdoc if you don't mind, can you refile this ticket with Burn? We can trouble shoot there. It's more related to the backend set up. Since this backend just release, please bear with us on this.

done, and no problem. will do what I can to help work through


cephfs: add AtStatxDontSync and deprecate AtNoAttrSync

This change follows the upstream deprecation of AT_NO_ATTR_SYNC in
favor of the standard AT_STATX_DONT_SYNC.
Fixes: #741
Signed-off-by: Sven Anderson<EMAIL_ADDRESS>

I think we're generally on the same page now, but just in case. The issue was the the AT_STATX_DONT_SYNC would be required in v17.2.(n)  and AT_STATX_DONT_SYNC would be required in v17.2.(n+1) and there only way our code base and others would be similar #define tricks. Since that'd break simple backwards compatibility I felt it was best to get it fixed in ceph first.
I hope that's clear.

I wasn't even aware of that intra-release change, which is quite flabbergasting. But as a library covering several releases we need to cover both cases anyway, so our specific case it doesn't make a difference, does it?

I wasn't even aware of that intra-release change, which is quite flabbergasting.

If you're not aware of the ceph backport process I can (try to) explain it some time.   It sometimes leads to issues like this one (IMO).

But as a library covering several releases we need to cover both cases anyway, so in our specific case it doesn't make a difference, does it?

It shouldn't. I think the gist of your change is fine. It wouldn't be an issue because you used C preprocessor macros to decide to alias the flag only when it is not defined. That'll work OK. My concern was that our code needs to work on older versions of v17.2.X or v16.2.X where X is not the latest release. This is good for go-ceph going forward.
The other scenario, if someone grabbed an older release of go-ceph and tried to use it on v17.2.X it would definitely fail to compile if this issue is not fixed.  Once ceph fixes the reported issue and backports it we're golden in both directions.

The other scenario, if someone grabbed an older release of go-ceph and tried to use it on v17.2.X it would definitely fail to compile if this issue is not fixed. Once ceph fixes the reported issue and backports it we're golden in both directions.

I didn't mean to invalidate the upstream fix, which is important, even more so, if they decided to backport the change to Pacific. I just see it as two orthogonal things, which is why I didn't understand the "either/or" notion from earlier conversations (that I maybe got wrong then).

Wait for the upstream fix to merge? I don't think there is any dependency, so why wait?

Wait for the upstream fix to merge? I don't think there is any dependency, so why wait? (Note, that I didn't set the No-Api label, so it need two approvals anyway.)

Fine.

@Mergifyio rebase

This is fine, but I was also waiting to see if ceph would also do another quincy hotfix this week. Because we're stuck with the v17.2.2 mgr crash issue blocking all CI runs.  It's starting to drag on now so I'm thinking workaround but I wanted to wait until Monday.

How is that related? 🤔

That's why I haven't done a proper review.

@Mergifyio rebase


Named slot gets ts(7053) error with

Say I have below component: SlotComponent. It has normal

<template>
  <slot name="header"></slot>

  <slot></slot>

  <slot name="footer"></slot>
</template>

And when using it in another component:

Named slots get error:
Element implicitly has an 'any' type because expression of type '"header"' can't be used to index type '{} | {}'.
  Property 'header' does not exist on type '{} | {}'.ts(7053)

But as long as I remove , everything is fine.
Please kindly suggest.

Seems to have the same problem.
named slot will changes the type of elements and attributes to any

and this problem only seems to occur when setup sugar is used

so, what happend?


[Bug] VRCX Crash League of legends

Describe the bug
So thishappened for many times, and i was wondering why whenever i closes VRChat, my League game would function normally, but if i have VRChat on, the game will crash after like lets say 10 mins. So what happen is i close my VRChat and everything run perfectly..
Now when i try closing VRCX while having VRChat on, it dint crash too.. So i assume that might be VRCX causing the issue here.
My league game just crash, no warning, no error (cant even find any error code from Event viewer) it just poof.. and closes.. faster than alt + f4 rage quit tbh.
What version you are running
VRCX Nightly 2024-11-18T03.52-c560389

try disabling GPU acceleration

I did, and it still crash.


Add support for schema names with table names

We should have support to include the schema name as well as the table name when generating or using SQL.
e,g,
SELECT [identity], [First Name], [Last Name], [ContactName] FROM [Contacts]
s.b.
SELECT [identity], [First Name], [Last Name], [ContactName] FROM [dbo].[Contacts]
It is possible to have access to a DB where you would have multiple schema names. Currently Persism fails to find them.
It is also possible that a DB has multiple schemas with tables with the same name.  Need to be able to handle that situation.

Progress update.  This is working now in pre-release. Working on getting a new release out soon.

2.2.0


AWIPS 18.1.1 City Database (Mac)

The city database seems to be off. I am zoomed into central Oklahoma in the screenshot below. I believe those cities are in Georgia.

I can confirm this.  I am seeing it on 18.1.1 on Mac as well running macOS High Sierra.

Still an issue. Running macOS Mojave (v10.14.1) and all cities are not correct. It seems the markers are on actual city coordinates but the city name field is shifted resulting in the names being wrong. It also seems that the trigger for which cities display based on the zoom level is also incorrect. So now random locations show first as opposed to significant locations within a density area.
Additionally, the text seems to be bold by default (and unmodifiable via menu) which reduces readability of all text.

@JHughesWX @AIM-Media-Indiana @wxtech1

what graphics device are you using?
does this happen for all projections? and does this happen every time when initially loading cities?

On my macOS High Sierra with a NVIDIA GeForce GT device the cities load as intended

but I have noticed that when switching to a Mercator projection the cities will plot incorrectly

so can you tell me if this is the case for you as well, or if it happen regardless of projection?
thank you

@mjames-upc
Sorry for the delay. Running AMD Radeon R9 M290 2048 MB. Appears to happen no matter what projection I am on.
Thanks!


Scottwhi dynamic params

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

BingAds/hotel-ads/release-notes.md
:white_check_mark:Succeeded

BingAds/hotel-feed/create-csv-hotel-feed.md
:white_check_mark:Succeeded

BingAds/hotel-feed/create-hotel-feed.md
:white_check_mark:Succeeded

BingAds/hotel-feed/reference.md
:white_check_mark:Succeeded

BingAds/pos-feed/create-pos-feed.md
:white_check_mark:Succeeded

BingAds/pos-feed/reference.md
:white_check_mark:Succeeded

BingAds/transaction-message/google-bing-transaction-message-differences.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


大平台結束遊戲API

Do this!!
End of the game
Once the game is over, frontend can call the following endpoint to close the game, and close the iframe window as well.
request
POST 'https://spt-games-split.zeabur.app/api/v1/games/${GAME_ID}/end-game-via-gaas-token'
Headers: 'Authorization: Bearer ${TOKEN_FROM_GAAS}'

response
// 200
{
  "message": "Game ended"
}

// 422
{
  "message": "Failed to end game"
}

completed

Btw (in the future) I'd like to use the GaaS token(Auth0 token) in whole processes.
So that client don't need to keep 2 jwt at the same time 🤣


Drafts not loading for form with repeating structure

From @samfmoody on January 28, 2019 15:1
Description
I have a form that makes use of repeats, both as pages of the form and within pages. Once answers have been entered into the boxes that define the number of repeats, and then the form is saved as a draft, when you try to load that draft to continue working on it, an error occurs.
Steps to Reproduce
Error test 2.xlsx

Upload the attached form into KoBo (on the humanitarianresponse.info server) and deploy it. I had to attach as .xlsx but it was created and uploaded into KoBo as xls.
Open form in Enketo
Set the 'number of workstreams' to 2
Give the workstreams names and click 'next'
On the second page, set the 'number of objectives' to 1
Click next to get to the final page. You do not need to enter anything here
Save the form as a draft
Go to the queue and click on the draft to try to load it

Expected behavior
The form is loaded with the information that you previously saved in the draft
Actual behavior
The draft is not loaded and an error message appears saying "TypeError: Cannot read property 'nodeName' of undefined". The form opens and the number of repeat boxes match the draft but they are blank (e.g. if the draft listed 2 workstreams, the first page would show 2 boxes for workstreams but none of the text entered into the draft).
Additional details
The issue does not occur if you enter '1' workstream and therefore get the second page only once.
Copied from original issue: kobotoolbox/kpi#2174

This is a bug in Enketo resulting from a (good) change in pyxform. Hence we see different behavior on different servers with the same Enketo version (pyxform version is different).

similar issue with calculation


🍒 Cherry pick PR #17988 to staging 🍒

🍒 Cherry pick https://github.com/Expensify/App/pull/17988 to staging 🍒

🚀 Cherry-picked to staging by https://github.com/OSBotify in version: 1.3.5-6 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes.

🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.5-6 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes.

🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.28-5 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


Hooks fail with excessively large payloads

Trying to run with multiple key files in ~/.ssh breaks:
(from @petrosp in slack)
<a huge string> is 135732 chars long
2017-06-01 22:37:03 ERROR exec:Cmd:Run: 90a7d81ba8f3002aedd14099f72e7f782668aed4e35ae81084657a78db26ae2f, /opt/nanobox/hooks/user, [{"os":"darwin","provider":"docker-machine","ssh_files":{<a huge string>}]
2017-06-01 22:37:03 ERROR exec:cmd:Output: rpc error: code = 2 desc = oci runtime error: exec failed: argument list too long
, err: bad exit code(126):
2017-06-01 22:37:03 ERROR failed to execute hook (user) on 90a7d81ba8f3002aedd14099f72e7f782668aed4e35ae81084657a78db26ae2f: util:Exec:/opt/nanobox/hooks/user: bad exit code(126):
2017-06-01 22:37:03 ERROR goroutine 1 [running]:
runtime/debug.Stack(0xc420210140, 0x9a, 0x0)
    /home/travis/.gimme/versions/go1.7.3.linux.amd64/src/runtime/debug/stack.go:24 +0x79
github.com/nanobox-io/nanobox/util.Err.log(0xc420210140, 0x9a, 0x949348, 0x0, 0x0)
    /home/travis/gopath/src/github.com/nanobox-io/nanobox/util/error.go:51 +0xca
github.com/nanobox-io/nanobox/util.ErrorfQuiet(0x651fa9, 0x25, 0xc420555448, 0x3, 0x3, 0x17, 0xc420085810)
    /home/travis/gopath/src/github.com/nanobox-io/nanobox/util/error.go:61 +0x10e
github.com/nanobox-io/nanobox/util/hookit.Exec(0xc420212b40, 0x40, 0x638c16, 0x4, 0xc4204d4000, 0x2126c, 0x638982, 0x4, 0xc4204d4000, 0x2126c, ...)
    /home/travis/gopath/src/github.com/nanobox-io/nanobox/util/hookit/hookit.go:32 +0x2e6
github.com/nanobox-io/nanobox/util/hookit.DebugExec(0xc420212b40, 0x40, 0x638c16, 0x4, 0xc4204d4000, 0x2126c, 0x638982, 0x4, 0xc420478840, 0x0, ...)
    /home/travis/gopath/src/github.com/nanobox-io/nanobox/util/hookit/hookit.go:38 +0x9e
github.com/nanobox-io/nanobox/processors/code.prepareBuildEnvironment(0xc420212b40, 0x40, 0x0, 0x0)
    /home/travis/gopath/src/github.com/nanobox-io/nanobox/processors/code/build.go:85 +0xe7
github.com/nanobox-io/nanobox/processors/code.Build(0xc42048e0b0, 0x0, 0x0)
    /home/travis/gopath/src/github.com/nanobox-io/nanobox/processors/code/build.go:46 +0x2ae
github.com/nanobox-io/nanobox/processors.Build(0xc42048e0b0, 0x0, 0x0)
    /home/travis/gopath/src/github.com/nanobox-io/nanobox/processors/build.go:30 +0x94
github.com/nanobox-io/nanobox/commands.buildFn(0x923e00, 0xc4202fed90, 0x1, 0x1)
    /home/travis/gopath/src/github.com/nanobox-io/nanobox/commands/build.go:40 +0x47
github.com/nanobox-io/nanobox/commands/steps.Run.func1(0x923e00, 0xc4202fed90, 0x1, 0x1)
    /home/travis/gopath/src/github.com/nanobox-io/nanobox/commands/steps/run.go:20 +0x13c
github.com/nanobox-io/nanobox/vendor/github.com/spf13/cobra.(*Command).execute(0x923e00, 0xc4202fed60, 0x1, 0x1, 0x923e00, 0xc4202fed60)
    /home/travis/gopath/src/github.com/nanobox-io/nanobox/vendor/github.com/spf13/cobra/command.go:561 +0x43d
github.com/nanobox-io/nanobox/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x921200, 0x0, 0x0, 0x1)
    /home/travis/gopath/src/github.com/nanobox-io/nanobox/vendor/github.com/spf13/cobra/command.go:656 +0x3d8
github.com/nanobox-io/nanobox/vendor/github.com/spf13/cobra.(*Command).Execute(0x921200, 0x694cf0, 0x0)
    /home/travis/gopath/src/github.com/nanobox-io/nanobox/vendor/github.com/spf13/cobra/command.go:615 +0x2b
main.main()
    /home/travis/gopath/src/github.com/nanobox-io/nanobox/main.go:117 +0x27a

This seems to be a limitation of the kernel regarding how argument size, we likely don't need ever key a user has stored, perhaps there is a way to slim down what gets imported/passed to the user hook?

Hey guys, in the meantime -- until this finds its way in production -- is there any way we can define a custom location where nanobox will be picking the keys up from, i.e. via an ENV variable?
I am also wondering if the .git/config file is also copied with the SSH keys? If someone has more than one SSH keys in their ~/.ssh folder they are most probably referenced in their respective section in the config file.
Considering a solution where nanobox picks a customized ssh folder in a per-project basis, could perhaps solve the issue once a for all.
Thanks for listening!

I am going to start on a feature where you can do nanobox configure ssh_key /path/to/folder/ or nanobox configure ssh_key /path/to/actual/key_rsa
with the first option it will read all keys in the folder
and the send option it will read that exact key


Redux over the wire?

This is a great way of using flux on mobile, with web workers or whatever - splitting it on the client and server.
Could this be done in redux? This seems to me more magical as redux has stateless stores. Typically the simplest solution of this is to keep state in stores and stream stores changes to components which are located in other context.

As I understood from middleware docs it is pretty easy to intercept and even redirect actions.
So in this scheme direction from Component to Store Producer is manageable so I can log actions for example.
          +----------------> onChange ---------------+
          |                                                              v

Store Producer/Action Consumer             Store Consumer/Action Producer
"SSoT" or "Dispatcher"                               "View" or "Component"
^                                                             |
+---------------- onDispatch --------------+
But is that possible to intercept store changes in the same way?

I am looking for such configuration:
client reponsibility:
generate actions
consume store changes
server reponsibility:
generate store changes
consume actions
As I comprehand redux API only action generation is interceptable for now.

Figured out solution, thanks to @raydeo.
redux has public methods subscribe/get notified on new state/,  dispatch,
getState, which allows to

Here is implemention of this approach and demo

Let's continue this discussion in #313.


BUG: Re-add range reset on bounds change if range is invalid

The setAxesToChartBounds call has recently been removed so that the chart extent is not reset when the transfer function bounds change. This prevented resetting the extent defined by the user when shifting the transfer function. However, if there was no valid extent defined, without this call the chart was not shown at all. By resetting the extent only if it was invalid solves both issues.

Thank you, looks good to me. Fixes https://issues.slicer.org/view.php?id=4518.

Thanks for integrating! I set the issue to resolved.


NullPointerException  on buildToolsVersion 24.0.0 rc4

i use ButterKnife 7.0.1  ,when I change buildToolsVersion to 24.0.0 rc4   it can't use. but i use some grammar in java8  so I can't change the buildToolsVersion

Butterknife does not work with the Jack compiler (Required for compiling with build tools 24). Currently looking for a workaround.

Jack is not required for using build tools 24.
On Thu, Jun 16, 2016 at 11:25 AM Roberto Eduardo Zubieta <
<EMAIL_ADDRESS>wrote:

Butterknife does not work with the Jack compiler (Required for compiling
with build tools 24). Currently looking for a workaround.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/JakeWharton/butterknife/issues/616#issuecomment-226520089,
or mute the thread
https://github.com/notifications/unsubscribe/AAEEEYdIX2HclDpGNv_pc3VXqaTsxcNhks5qMWrYgaJpZM4I19eZ
.

@smallobserver Try using this with build tools 24.0.0 now.

Butterknife does not work with the Jack compiler

This is not true. Replace apt with annotationProcessor.

@JakeWharton Finally figured it out. It DOES work. But not in with the "stable" build tools. You need the gradle 2.2.0 alpha3 build tools. I couldn't get it working before because I try to keep to stable branches for most projects.
To get this working:
./build.gradle
dependencies {
        classpath 'com.android.tools.build:gradle:2.2.0-alpha3'
    }

app/build.gradle
apply plugin: 'com.android.application'

android {
    compileSdkVersion 24
    buildToolsVersion "24.0.0"

    ...
}

dependencies {
    compile 'com.jakewharton:butterknife:8.1.0'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.1.0'
}

gradle/wrapper/gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14-all.zip


MySQL connection appears to be closed

I am getting an intermittent error that I think may be related to the mysql connection timing out. Mysql is set to a 5 minute connection timeout.
Username 'login_test' login failed for {{{badmatch,{error,closed}},[{mysql_protocol,prepare,3,[{file,"src/mysql_protocol.erl"},{line,98}]},{mysql,handle_call,3,[{file,"src/mysql.erl"},{line,585}]},{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,629}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,661}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]},{gen_server,call,[<0.24751.0>,{param_query,"select is_superuser from mqtt_user where username = ? limit 1",[<<"login_test">>]},infinity]}}

Hi @josephduchesne, the root cause is https://github.com/mysql-otp/mysql-otp/issues/33
Please configure emqttd_plugin_mysql/etc/plugin.config for a quick fix:
   {mysql_pool, [
        %% ecpool options
        {pool_size, 8},
        {auto_reconnect, 1},

        %% mysql options
        {host,     "localhost"},
        {port,     3306},
        {user,     ""},
        {password, ""},
        {database, "mqtt"},
        {encoding, utf8},
        {keep_alive, 60000}
    ]},

@josephduchesne, The mysql driver has been upgraded to 1.2.0. Please pull the last master branch of emqttd project.


Some widgets from the "Copy table" dialog invades into the main shell

Symptom

How to reproduce

File > New > Transformation
D&D any step
Tools > Wizard > Copy Table
Cancel
Close the tab
Yes to save it

This actually happens in Spoon too.

Resolved by 86f560a9d36bc4981ce6534b1d02b28854676804.


fix: interface member order enums

When having multiple enums and structs, the rule was being falsely triggered.
The error consisted on the switch cases, the case StructDefinition to be precise.
When the case was entered, it was adding EnumDefinition as a struct member.
So after that, when doing the .find filter, it was finding a duplicate of the enum in the array, using a wrong index.
Example of wrong enums inside the structs array:

Example of duplicated enums in the orderedMembers / unOrderedMembers array

This fix elimintates the duplicated enums.

Thanks for spotting this


Fragment inference

Hello. I noticed that in test mode, each frame is processed by multiple times which called 'fragment inference'.
In this case, the points in the voxel which has < count.max() points are inferenced by multiple times.
And each results affects the final result (e.g., miou).
Why didn't you inference only one time and then simply map each voxel's predicted label to points in the voxel?

Hi, simply mapping each downsampled point to the original resolution might have a negative influence on the final performance. According to the issue you mentioned, we do have a solution mentioned here (https://github.com/Pointcept/Pointcept/issues/108#issuecomment-1893709522) and I have verified that it won't have a negative influence compared with our fragment inference

Thank you for the comment !

Hi, simply mapping each downsampled point to the original resolution might have a negative influence on the final performance. According to the issue you mentioned, we do have a solution mentioned here (#108 (comment)) and I have verified that it won't have a negative influence compared with our fragment inference

Hello, Xiaoyang. Recently I am writing an Instance Tester refers to SemSegTester and InsSegEvaluator. Does it mean using Inverse mapping downsampled point to the original resolution also has a negative influence on the final performance? In issue 40 I noticed that you mentioned InsSegEvaluator is precise which directly uses knn query to get idx.

Yes, I did not design a better test strategy for instance segmentation. Yet you can trust inverse mapping can at least provide an accurate evaluation of the final performance.

@Gofinge Hello, I would like to test on semanticKITTI, and I noticed that there are no labels provided in the test set. It seems that we need to upload the label files generated during the inference process to obtain the final results. However, I found that Fragment inference takes a significant amount of time during testing.
I would like to ask if skipping Fragment inference during testing would affect the generated label file results, and how can I disable it?
Thank you very much for your response!


inheritance of controller templates with custom theme not working properly

I have a strange behavior when I load a custom template inside a controller which extends a custom theme:
Controller loads a template: $this->renderStorefront('@Storefront/mycontroller/index.html.twig');.
The template extends the base.html.twig of a custom theme: {% sw_extends<EMAIL_ADDRESS>%}. The file only contains the sw_extends, nothing else.
The template of the custom theme changes some contents and extends the shopware theme: {% sw_extends<EMAIL_ADDRESS>%}
The page loads but it doesn’t display all the changes of the base.html.twig of the custom theme.

Hi Uli,
can you please try to delete the cache directory (delete whole /var/cache Dir) per console and tell me if the changes of the custom theme are displayed after a reload?
We are aware of a current bug in the cache:clear command, that can result in this behaviour.
Greets,
Stefan

Hi @ssltg,
I tried both, clear:cache and rm -rf /var/cache, both didn't help

Hi  @uehler ,
can you please provide some more details? Maybe the contents of the different twig-files?
Is the Theme associated with the saleschannel you are calling?
Are no changes from the theme-template displayed or just some?

Hi @ssltg,
the theme is the theme of the current saleschannel. I stripped the html of the theme file, the plugin file is only contains the sw_extends
Themefile:
custom/plugins/CustomTheme/src/Resources/views/storefront/base.html.twig
{% sw_extends<EMAIL_ADDRESS>%}

{% block base_script_hmr_mode %}
    {# some code #}
{% endblock %}

{% block base_navigation %}{% endblock %}

{% block base_header %}
    {% sw_include<EMAIL_ADDRESS>%}
    {% block base_header_inner %}
        {% sw_include<EMAIL_ADDRESS>%}
        {% block base_navigation_flyout %}
            {% sw_include<EMAIL_ADDRESS>%}
        {% endblock %}
        {% sw_include<EMAIL_ADDRESS>%}
    {% endblock %}
{% endblock %}

{% block base_footer_inner %}
    {% sw_include<EMAIL_ADDRESS>%}
{% endblock %}

Pluginfile:
custom/plugins/CustomPlugin/src/Resources/views/episerver/index.html.twig
{% sw_extends<EMAIL_ADDRESS>%}

The theme file empties the navigation block and includes the navigation in another block.
When I call my controller, which loads the plugin template, the navigation is duplicated, because the  {% block base_navigation %}{% endblock %} of the theme file is ignored.
Right now I have to copy the whole theme file into my plugin to get the expected result

hey @ssltg,
do you have any updates on this?

Hey @uehler ,
at first, sorry for the Delay.
I tried to setup a similar system, but I cannot reproduce the behaviour you mentioned.
I will contact you on Thursday morning. I guess I need to take a look at your actual setup.

We updated to shopware 6.1.3, but this is still not working. Looks like plugins and themes can only extend from templates with the same path. For example page/content/index.html.twig of a custom theme may only extend page/content/index.html.twig from the shopware theme but not from storefront/base.html.twig. In this case, any change a custom theme made to a custom storefront/base.html.twig is ignored and only the content of the base.html.twig of the shopware theme is loaded.

I didn't look further into it.
Shopware did some patches which I have backported, which helped a bit, and I loaded the base.html.twig directly with my controller and only showed a flash message.

This is fixed with <IP_ADDRESS> with https://github.com/shopware/platform/pull/1396

I just wante to mention that with this command rm -rf /var/cache you actually removed the cache folder in your linux directory /var. It is very dangerous to do that. You have to remove / from the beginning of the var. rm -rf var/cache/*

Hi @ssltg,
I tried both, clear:cache and rm -rf /var/cache, both didn't help

I just wante to mention that with this command rm -rf /var/cache you actually removed the cache folder in your linux directory /var. It is very dangerous to do that. You have to remove / from the beginning of the var. rm -rf var/cache/*


feat: :sparkles: Add favorite

📝 Changed routes:

/

(view full size)

And 2 other routes:

/api/food/favorite/[id]
/api/food/favorite

Commit 65caa240e70052f9820a520092d97b9b82df35bf (https://what-do-we-ixr4ou394-alex289.vercel.app).


Remove file

Dear Sir,
Thanks for sharing such a nice project, Sorry to bother you that much. I am stuck to refer the file name to pass through the axios call. my api is working perfect  it require filename to handle. but i fail to pass it. I enclosed screenshot and my vue file for you concern.
Your help will be appreciated
Warm regards
Iftakher Ahammed

<template>

    <dropzone
      ref="PlaceAds"
      id="myVueDropzone"
      url="/upload"
      method='POST'
      acceptedFileTypes='.jpg,.png'
      v-on:vdropzone-success="showSuccess"
      v-on:vdropzone-removed-file="removeThisFile"
      v-on:vdropzone-mounted="vdropzoneMount"
      :preview-template="template"

      >
      <input type="hidden" name="token" value = "xxx">
    </dropzone>

</template>

It should be
  removeThisFile (file) {
        let FileName = file.name
        ....
}

If in doubt console.log(file) or use the chrome developer tools to see what the file object looks like

Thanks boss you save my life one more issue how can I resolve
GET http://gadgado-spa.dev/undefined 404 (Not Found)
where is the request from?

@iahammed Have you installed any extension in your browser? Many users claimed the same issue. We really didn't found anything related to this in component.

It's a bit hard to tell sorry @iahammed , when does the error appear in the console? It may be related to manually adding the files I think and an issue around cross-origin requests trying to generate a thumbnail...

Thanks for your nice repo, you are right error in manually adding the files if any file exist in server,  any way my project is working.
Wishing every success....

@iahammed Hi, how about to get the hashed name of file ?
removeThisFile (file) {
let FileName = file.hashName
....
}
I have duplicated files under my folder how to identify if I only want to delete one of those files.

@rosnaib11 hi, i tried to use removeFile successfully to delete, but when i moved to a different route. removeFile returns to action


Bug: Bows only work in creative mode

All bows work in creative mode but when I switch the gamemode to survival they stop working and even after switching back to creative they're still broken.
I think that happens because you compare the bow the player has in his hand with the bow of your BowManager.java
if (item.isSimilar(BowsManager.getBowItem(BowsManager.getBowByName("destructionBow"))))
But when you use a bow in survival the durability drops and then the items are technically not the same anymore.

Got it, would you mind to make a pull request? That would be great.
If you don't have time for that, i'll fix it later.

Fixed the bug with pr #3


command overlaps prompt with stash

If there is a stash, the stash symbol for the git-radar display overlaps the first character of my command. Here's an example where I've typed OOO into the command line, you can see how it overlaps the first O.

My PS1 line in .bashrc is:
PS1="$PS1\$(git-radar --bash --fetch)"

If I add a trailing space to PS1 like:
PS1="$PS1\$(git-radar --bash --fetch) "

but then in any non-git repos there are two spaces after the the $ in my prompt which I find annoying.

#110 Might not be that useful to you several years later, but I made a PR 3 or so years ago that lets you add a configurable prefix and suffix string for git-radar, so you can add a space to the end of git radar and it will only render when in a repo.
There hasn't really been any activity on this repo though so it hasn't been merged.
I started my own version of git-radar here written in golang (I wanted an excuse to learn go), if you are interested as well.