Custom directive binds differs on components vs elements

Version
2.6.10
Reproduction link
https://jsfiddle.net/bponomarenko/uom10qd2/
Steps to reproduce

Open browser console.
Click on Toggle button two times.

What is expected?
Directive will emit the same console messages when applied to DOM elements and to components (on init and after click on button).
I'm not sure what should be expected output. Either
bind: first comp
bind: first elem
unbind: first comp
unbind: first elem
bind: first comp
bind: first elem

or
bind: first comp
bind: first elem
unbind: second comp
unbind: second elem
bind: first comp
bind: first elem

What is actually happening?
Messages from the directive are the same on init, but different after button have been clicked.
Actual console output:
bind: first comp
bind: first elem
unbind: first comp
unbind: second elem
bind: second comp
bind: first elem

It seems that order in which directives are applied to DOM elements and components are different. In my setup I have custom directive which relies on some DOM attribute with configuration data. When this custom directive is bound/unbound in a "regular flow" – everything works as expected (directive binds after element attributes are updated). However when directive is bound/unbound in case of Vue "in-place patch strategey", behavior seems to be different.

Seems like the directive is called with the old component (because it's reused) but it still has old attrs
As a workaround, set a key on one of the components

@bponomarenko
What @posva said is already covered in the documentation.
You can refer to this.
https://vuejs.org/v2/guide/conditional.html#Controlling-Reusable-Elements-with-key

@posva @pistis Thanks for the answer. Yeah, that is what we used eventually as a workaround. However presence of key attribute will not allow to use Vue.js rendering optimisations. Would be great to have it fixed.

The optimization is based on that you have stateless elements so Vue won’t bother to take care of correctly managing event handlers or local states when trying to reuse an element. So I think this is not a bug but can be potentially improved in our docs so that our users can understand this more easily.

@Justineo I understand the concepts behind an optimization itself. In my situation, custom directive is responsible for adding the state attribute to element on bind and removing that attribute on unbind. And directive is perfectly added/removed when component is re-used by Vue.js. However order of component properties update and directive initialization is different in different moments of component lifetime, which makes it hard to develop custom directives.
Indeed additional documentation on these optimization techniques might be helpful, but inconsistent directives lifecycle events are rather a bug to fix in my opinion.

As a workaround, set a key on one of the components

I am using a directive of vue-clipboard2 and this bug happened, the bug report comes from 2019: https://github.com/Inndy/vue-clipboard2/issues/75
I've made a PR there that would bypass this issue, but like @bponomarenko said, the order should be fixed. Doesn't make sense for a directive to start to unbind without bind it first.
In the directive above, the key solution doesn't work...


Export to Python script on Web

Re https://github.com/microsoft/vscode-jupyter/issues/9996
This PR is the initial prep for supporting Export commands on Web. It includes following changes:

Move src/interactive-window/commands/exportCommands-node.ts off node. https://github.com/microsoft/vscode-jupyter/commit/763bf7069bf8abdcbbcd311a04e2e74b0e20e756 Majorly removing dependencies on fs
Move exportDialog and exportFileOpener.ts off node.
Common src/platform/export/exportToPythonPlain.ts https://github.com/microsoft/vscode-jupyter/commit/8beca33b170a91df23a5450cb8ae8bb9df0baebe. exportToPythonPlain.node and exportToPythonPlain.web will behave differently on EOL checking
Lastly, register Export To Python (plain, not nbconvert) to Web service entry

To test the change, run "Extension (web)" and tweak the when clause of jupyter.exportAsPythonScript command to test on notebooks (as we don't have Interactive Window yet).

Codecov Report

Merging #10016 (1de6ccf) into main (38caef1) will increase coverage by 0%.
The diff coverage is 80%.

@@          Coverage Diff           @@
##           main   #10016    +/-   ##
======================================
  Coverage    63%      63%
======================================
  Files       209      215     +6
  Lines      9948    10135   +187
  Branches   1591     1615    +24
======================================
+ Hits       6326     6470   +144
- Misses     3111     3146    +35
- Partials    511      519     +8

Impacted Files
Coverage Δ

src/platform/export/types.ts
100% <ø> (ø)

src/platform/common/platform/fileSystem.ts
66% <66%> (ø)

src/platform/common/platform/fileUtils.ts
66% <66%> (ø)

src/platform/export/exportToPythonPlain.ts
78% <78%> (ø)

src/platform/export/exportFileOpener.ts
94% <81%> (ø)

src/platform/export/export.index.node.ts
100% <100%> (ø)

src/platform/export/exportDialog.ts
34% <100%> (ø)

src/platform/export/exportToPythonPlain.node.ts
100% <100%> (+11%)
:arrow_up:

src/platform/export/fileConverter.node.ts
88% <100%> (ø)

src/platform/serviceRegistry.node.ts
97% <100%> (-1%)
:arrow_down:

... and 12 more

@DonJayamanne I removed duplicates for fileUltils. However for making filesystem web enabled, it will be ambitious to have it in this PR as it will require checking the real usage of the fileSystem.* apis in each component. My suggestion would be

We take another PR to web enable fileSystem
Or we do the "dup" approach, and when we move other components off node, we move away from fileSystem.node gradually

With all said above, it seems I do need some sort of fileSystem.web as vscode.workspace.fs.readFile is not available in unit test environment. I'll give it a try.

ems I do need some sort of fileSystem.web as vscode.workspace.fs.readFile is not available in unit test environment. I'll give it a try.

Yes,  I think we can implement only some of the methods of the IFileSystem for web, i.e. methods that are specific to local, can throw errors, Ideally those wouldn't be called in web scenario.

Since I'm not going to fix Export on Web and finish all file system related refactoring in one PR, I'll stop here and leave the remaining web/node FileSystem refactoring to next PR. The last few commits since @DonJayamanne 's review are all about introducing a IFileSystem instance for Web. As said above, IFileSystem was too fat and the interface itself has knowledge about NodeJs, so I made following changes to ensure that we have a good separation between common/web/node and still allow us to use NodeJs related fs when needed:

import { IFileSystem } from 'platform/common/platform/types'; is the common file system instance, it doesn't have access to Node. If you don't explicitly call Node fs, use this one.
Nodejs specific fs API will only exist on import { FileSystem } from 'platform/common/platform/fileSystem.node, note that most native fs dependent API are not declared on IFileSystem. This is intentional that we know we are using Nodejs API.
There are a few NodeJs dependent APIs left in IFileSystem and current Web fileSystem will throw if they are invoked by mistake. They should be removed from the interface in follow up PRs.

@DonJayamanne I have already FileSystem for Web and separate the common and node FileSystem module, please help take a look.


added oh-my-zsh

Added oh-my-zsh to the list of customization tools.
I use it everyday and it makes using the console a lot more comfortable.

I also use it. But it seems that it's about zsh not bash 😄

Ups, my bad. :sweat_smile: :grin:

No problem :)


Cleaner code

4 of the 8 conditionals had repeated logic. Here the logic is more concise and readable

Great!


Issue: Foldererv does not work with live preview mode

According to Licat https://discord.com/channels/686053708261228577/716028884885307432/911327832481886269
foldererv needs to use registerCodeBlockPostProcessor

It's already working
https://user-images.githubusercontent.com/31102694/142719340-09918a2c-ce69-4b50-b51e-6080560f54ff.mp4


feat: pass extension into the constructor.

This allows someone to pass an extension/extensions into the CloudEvent contructor when creating a CloudEvent.

fixes #209
Signed-off-by: Lucas Holmquist<EMAIL_ADDRESS>

Added an Extension interface as well as tests


Added Basic UI and UI Tests for EpisodeView

Proof that travis will report UI Test failure https://travis-ci.org/ubclaunchpad/RocketCast/jobs/162657107


enter room by enter key

やるなら https://github.com/myokoym/shogiwebroom/commit/9e55021f74a44dffb0af376852478ed79d245366#diff-cd970f3916a0beca92072d389c55d3cdR21 と同じやり方で可能


javascript comments page makeover [guide english]

Remove redundant information
Fix link styles
Make everything easier to read

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

Hi @moT01 thanks for the PR.
Next time could you please make a PR from you fork? Thanks for understanding.

Will do

gonna help this <3


Add more command tests

Signed-off-by: David Gageot<EMAIL_ADDRESS>

ping @docker/machine-maintainers

LGTM

ping @docker/machine-maintainers

LGTM
There's already a FakeAPI in libmachinetest so I'll submit a quick follow up to use that instead (I know that may seem nitpicky but we've had serious code duplication issues in the past).

@nathanleclaire Good, I couldn't find it. I'm all for getting rid of duplication


High battery usage since updating to latest version.

Version 0.0.11 is eating much battery (15%), compared to 0.0.5, which almost eat none. What are the changes between 0.0.11 and 0.0.5? I wonder if I can downgrade to 0.0.5 instead?

Have you noticed a change in battery life, or is this just based on your device's battery usage reporting?
The new Intra VPN core shouldn't significantly increase battery usage, but it may cause battery usage stats to falsely indicate a higher number, because the system attributes all other apps' network activity to Intra.

In 0.0.5, I can run Intra starting from morning to afternoon and still have
~50% battery remaining (50-60%). Since the latest version, I end up in less
than 40% remaining with same schedule.
Pada tanggal Sab, 22 Sep 2018 03.21, Benjamin M. Schwartz <
<EMAIL_ADDRESS>menulis:

Have you noticed a change in battery life, or is this just based on your
device's battery usage reporting?
The new Intra VPN core shouldn't significantly increase battery usage, but
it may cause battery usage stats to falsely indicate a higher number,
because the system attributes all other apps' network activity to Intra.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Jigsaw-Code/intra/issues/68#issuecomment-423644918,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHJylpxDBzIjHoRz_HK8GSHUHrD-CmJsks5udTw8gaJpZM4WwJNN
.

Same issue. It's physically draining, my battery life span halfed. Unusable.
Version 1.1.1. it's happening recently, I guess like 4 weeks when I started to pay attention that something wrong..

Same issue for Version 1.3.3.
It eats up 15% of the battery and it decreases the battery life


Local dev script fix ups

Which issue this PR addresses:

No Jira
What this PR does / why we need it:
Fixes a couple issues we noticed during wi/mi hackdays:

Shell scripts exit the terminal on a non-zero exit code
When running local_dev_env.sh, the env var PLATFORM_WORKLOAD_IDENTITY_ROLE_SETS gets incorrect double quotes rather than single quotes, making it impossible to source

Test plan for issue:
Ran them locally.

Is there any documentation that needs to be updated for this PR?

How do you know this will function as expected in production?

/azp run ci


Metadata Tweaks to support Master Sample Gallery

ALL sample.json files must:

Include full path for image files
Add tool help to references
Preview image - ALT text

Update template.sample.json to include above

Right just an update, this is now registered with the master sample gallery site, we are now waiting on the results of the processing. :-)

This is live! Wahoo!


Internal GitHub images won't render with .ve-media

I can't get an image uploaded using the Juncture Media Tool to render correctly using the .ve-media tag.
For example, trying to render the internal image: https://da4asandbox.github.io/cameronessay-organization/media/Activity2-1Overview.svg , I attempted all of the following and could not get the image to properly render:
.ve-media https://da4asandbox.github.io/cameronessay-organization/media/Activity2-1Overview.svg left static caption="Figure 0 from Interdisciplinary in Data Science Pedagogy"

.ve-media "https://da4asandbox.github.io/cameronessay-organization/media/Activity2-1Overview.svg" left static caption="Figure 0 from Interdisciplinary in Data Science Pedagogy"

.ve-media src=https://da4asandbox.github.io/cameronessay-organization/media/Activity2-1Overview.svg left static caption="Figure 0 from Interdisciplinary in Data Science Pedagogy"

.ve-media src="https://da4asandbox.github.io/cameronessay-organization/media/Activity2-1Overview.svg" left static caption="Figure 0 from Interdisciplinary in Data Science Pedagogy"

.ve-media gh:da4asandbox/cameronessay-organization/media/Activity2-1Overview.svg left static caption="Figure 1 from Interdisciplinary in Data Science Pedagogy"

.ve-media gh:/cameronessay-organization/media/Activity2-1Overview.svg left static caption="Figure 2 from Interdisciplinary in Data Science Pedagogy"

.ve-media gh:cameronessay-organization/media/Activity2-1Overview.svg left static caption="Figure 2 from Interdisciplinary in Data Science Pedagogy"

.ve-media gh:/media/Activity2-1Overview.svg left static caption="Figure 4 from Interdisciplinary in Data Science Pedagogy"

.ve-media gh:media/Activity2-1Overview.svg left static caption="Figure 5 from Interdisciplinary in Data Science Pedagogy"

.ve-media gh:/Activity2-1Overview.svg left static caption="Figure 6 from Interdisciplinary in Data Science Pedagogy"

.ve-media gh:Activity2-1Overview.svg left static caption="Figure 7 from Interdisciplinary in Data Science Pedagogy"

.ve-media https://da4asandbox.github.io/cameronessay-organization/media/Activity2-1Overview.svg

Is this a syntax error on my behalf, or is there a reason these are not rendering correctly?

There are a couple of things going on here.
First, the .ve-media viewer requires an IIIF manifest as the first argument.  While Juncture can automatically generate IIIF manifests for Github-hosted content the URL syntax would be different than simply using a URL that points to the image (or in this case SVG) file directly.  For the first file in your snippet a manifest URL would need to look like one of the following:

https://iiif.juncture-digital.org/gh:da4asandbox/cameronessay-organization/media/Activity2-1Overview.svg/manifest.json
gh:da4asandbox/cameronessay-organization/media/Activity2-1Overview.svg

These are equivalent.  The second is a shorthand version of the first.
The other issue is that IIIF does not support SVGs.  To use that image as an IIIF image you would need to first convert it to a jpeg or png.  A future version of the Juncture IIIF server could potentially do this SVG-to-JPEG/PNG conversion automatically, but for now that would need to be done outside of Juncture.  In looking at your repository I see that you already jpg versions of these SVGs so the resolution is pretty easy.  Just convert the manifest URLs in each of your .ve-media tags to look like this:

.ve-media gh:da4asandbox/cameronessay-organization/media/Activity2-1Overview.jpg


[WIP] [2.0] A maths library for Silk.NET

TODO

[ ] Testing
[ ] Docs
[ ] Matrix Types

Nice-to-haves

[x] Use .Net 5 Half
[ ] Brush up & expose Scalar
[ ] Plane - a plane in 3D space.
[ ] Curve3 - a quadratic bezier curve
[ ] Curve4 - a cubic bezier curve

Summary of the PR
Adds a maths library that patches in the holes left by System.Numerics.
What version does this PR target?
2.0
Related issues, Discord discussions, or proposals
Replacement #190
Further Comments

@jit-asm

The messages only work when the pipeline is in the default branch. I've tested this on my fork and it should work.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.2 out of 3 committers have signed the CLA.:white_check_mark: HurricanKai:white_check_mark: Perksey:x: JIT CIJIT CI seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Consider creating an ember-modifier class

The <FroalaEditor /> component largely depends on interaction with the attached element to initialize the Froala Editor. Technically ember now allows this access by using a modifier. Most of the <FroalaEditor /> code could be moved to a modifier class definition. However, there are some downsides that the component version guards against (mainly ensuring @content is passed in and not used as block content <FroalaEditor>{{this.content}}</FroalaEditor>). Currently this addon uses ember-render-modifiers to gain access to the element. At minimum, I would say both (component and modifier) would be provided by the addon if we do move to a modifier. An alternate and more custom solution is to create a custom modifier manager too, to avoid a dependency on ember-modifier.

One question to be answered is with extensibility. If the consumer extends the modifier, will the built-in component use the extended modifier? And is that ideal?


Failed to load response data: Shopify install app

For bug reporting only! If you're posting a feature request or discussion, please ignore.
Hello Team,
I have followed all the steps mentioned in the "Installation" section for creating the Shopify app.
But after installing the app laravel Blade content not showing on the app which is mentioned in the "welcome.blade.php".
In-Network tab of inspecting window showing 302 redirects, the response failed to load.
Please check the attached

Expected Behavior
It should install and show the shop domain as per the instruction.
Please suggest me better solution I am stuck after installing app into my shopify store.
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Package Version: v17.1.0
Laravel Version: v7.0
PHP Version: v7.4.X
Using a toolset (Docker, Laradock, Vagrant, etc.):

Failure Logs
Please include any relevant log snippets or files here.

Hi @testrj0321
I've tried to replicate this with a fresh install but I am getting to the welcome screen perfectly fine.
Can you provide more information on your set up and settings.

@testrj0321   make sure your hosting service up and running correctly. this is not package issue.  package latest version working fine

Closing stale ticket.


Dart Analysis Server don't work well with nest parameter type

Dart SDK Version 2.1.0-dev.5.0.flutter-a2eb050044
Using macOS 10.14
When I was writing a flutter project with dart stream and rxdart by Android Studio 3.2.1
I got a problem with dart analysis server
Here is the sample code:
if I code list this
Observable _list = Observable.empty();

every thing is fun.
but when I want to add the parameter type like this
Observable<List<Something>> _list = Observable.empty();

the dart analysis server is stuck in analysis...... I try to restart server by using Android Studio, but it's not work.
And I tried other class like Future<T> , the same thing will happen.

@stereotype441 Yes, I checked and it was consuming large amounts of memory. I noticed that the more type parameters nested, the more memory it may consume.
I also checked #35001. I think we got the same condition.

Ok, thanks.  I'm going to mark as a duplicate then.  Feel free to open if you find out more and realize it's not a duplicate.
Duplicate of #35001


Update init.py

explicitly specified utf-8 encoding on json.load(). Required to avoid UnicodeDecodeError.

finally got around to merging this. thanks for the patience! 🙂


New cop: Detect return with argument on the top-level

Is your feature request related to a problem? Please describe.
return has been allowed on the top-level since Ruby 2.4.
foo

return # Since Ruby 2.4.

bar # It is never executed.

But the argument of return is ignored always.
return 1 # 1 is always ignored.

It will be detected since Ruby 2.7. https://github.com/ruby/ruby/commit/aa97410b0a85cb4ceb956ab943b5eee92a128411
But RuboCop doesn't.
Describe the solution you'd like
Add a new cop to detect the problem. Maybe it will be named Lint/TopLevelReturnWithArgument.
Describe alternatives you've considered
nothing
Additional context
nothing

Can I take a stab at this?


Fix relative URLs

Some of the relative URLs needed an extra ../ to be correct
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Thanks a bunch @benjaminmullard .


Add PushScaler interface and impl external-push scaler

Closes #820
Signed-off-by: Ahmed ElSayed<EMAIL_ADDRESS>This PR introduces
type PushScaler interface {
	Scaler

	// Run is the only writer to the active channel and must close it once done.
	Run(ctx context.Context, active chan<- bool)
}

with 1 implementation in an external-push scaler with the following grpc call
service ExternalScaler {
  rpc StreamIsActive(ScaledObjectRef) returns (stream IsActiveResponse) {}
}

ExternalScaler also keeps a pool of GRPC connections per-metadata hash. So if there are multiple scaledObjects all pointing to the same grpc endpoint with the same metadata, they will all use the same grpc.ClientConn with separate grpc.Client per-scaledObject.
This PR also removes the following methods from the external scaler interface:
service ExternalScaler {
-    rpc New(NewRequest) returns (google.protobuf.Empty) {}
-    rpc Close(ScaledObjectRef) returns (google.protobuf.Empty) {}
}

This is a breaking change for external scaler.
 How I understood it it was going to be a new “push” scaler built in the core.

 How I understood it it was going to be a new “push” scaler built in the core.

It's a really good question. It didn't have to alter the existing scaler, I just meant to add a completely new scaler, external-push, but since a bunch of grpc plumbing code will be shared between then I was taking a look at the existing scaler, and thought of few improvements to it.
This PR can be thought of as 2 parts:

all files under pkg/scaling/* (and the interface in pkg/scalers/scaler.go) are the "core" part of it. This change allows a scaler to implement a method where they'll get a write channel to an active state anytime.

all the external scaler changes under pkg/scalers/* are adding support for external-push and making changes to the existing external scaler.

The reason to change external scaler was just to clean up the contract a bit. The current contract is this:
service ExternalScaler {
    rpc New(NewRequest) returns (google.protobuf.Empty) {}
    rpc IsActive(ScaledObjectRef) returns (IsActiveResponse) {}
    rpc GetMetricSpec(ScaledObjectRef) returns (GetMetricSpecResponse) {}
    rpc GetMetrics(GetMetricsRequest) returns (GetMetricsResponse) {}
    rpc Close(ScaledObjectRef) returns (google.protobuf.Empty) {}
}

When I was implementing external scalers for testing the contract for "new" and "close" as GRPC calls is very awkward/unclear. In fact both the example external scalers we have don't do anything on Close (durable and artemis) and durable also just logs the request on New. Artemis uses new to store some global metadata, but this locks it to only 1 scaledObject. Handling this on per invocation for IsActive is a more flexible and doesn't require every implementation to handle state. This PR adds IsActiveStreaming that allows the implementation to return isActive: true any time.

@ahmelsayed Thanks for the info! So if you build an external scaler, we don't mandate it to support pull & push but merely just give the contract or am I understanding it wrong (sorry, have to dig deeper on this topic).
Just want to avoid that it's becoming more complex to write an external scaler while we don't need the complexity.

@ahmelsayed Thanks for the info! So if you build an external scaler, we don't mandate it to support pull & push but merely just give the contract or am I understanding it wrong (sorry, have to dig deeper on this topic).

@tomkerkhove Yeah, that's correct. See there are 2 types of External scaler: https://github.com/kedacore/keda/pull/865/files#diff-386297fb2affbd3c0b4799eed66e7e6bR353-R356

:shipit:

btw, is there a place we're tracking breaking changes in v2? I can add a couple of lines to the CHANGELOG for this.

btw, is there a place we're tracking breaking changes in v2? I can add a couple of lines to the CHANGELOG for this.

@ahmelsayed that's right. We don't have anything atm, the same goes for docs. Start the v2 section in Changelog with this PR and I'll add the other changes then.

Since it has not been shipped yet, would it make sense to use "Upcoming" or move the WIP to a Google Doc?

@tomkerkhove the changelog will be in the v2 branch, so it will not interfere with master branch.

Good point, sounds good to me 👍

@ahmelsayed are going to add the Changelog as part of this PR or do you want to create another? If it is the latter option we can merge this PR.

Sorry for the delay, I was out the last couple of weeks. I added a line to the CHANGELOG for this breaking change. We can add another PR for other breaking changes in v2.
I also opened a docs PR here https://github.com/kedacore/keda-docs/pull/193


cannot return plain buffer to js when use_buffer_object disabled

Duktape version 2.6
when DUK_USE_BUFFEROBJECT_SUPPORT is turned off:
C CODE:
//add to global as function buf_alloc()
static duk_ret_t buf_alloc(duk_context* ctx) {
	int num = duk_require_int(ctx, -1);
	if (num > 1024 || num < 0)return 0;
	duk_push_fixed_buffer(ctx, num);
	return 1;
}

JSCODE:
buf = buf_alloc(10);
causes output:
TypeError: coercion to primitive failed
Target has very limited mem, and plain buffer api looks enough. How..
buf[0] = 0x1;  //this is enough.
How to use plain buffer  with small memory overhead?

caused by duk_cmdline.c result print.
not a issue.


Fix: Fix kazoo bug on windows platform when viewing znode tree

issue: kazoo: error 10038 An operation was attempted on something that is not a socket
please see  https://groups.google.com/d/msg/python-zk/EHdF-c_N0OI/6VTWuTHhdnUJ

This seems fine. Will go ahead and merge. Thanks for the PR :)


A couple more trivial changes extracted from #5662

R: @axelmagn

Axel is at a team event - R: @angoenka


Upgrade to go v1.19

Simple task to warm up with gh workflows.

we have upgraded to go1.19 during upgrade to v1beta1


change json file fn to appended to file

Right now it's just calling File::create, I assume we need to use OpenOptions.

[ ] json::file("foo.log") creates foo.log if it doesn't exist
[ ] json::file("foo.log") doesn't truncate foo.log if it does exist
[ ] output::new().add_target(json::file("foo.log")?).print(text("hello world!")) appends "hello world" to foo.log

Could you elaborate on what's needed here? Do you want it to append to the file if it exists?

Hi! Yes, exactly. If the file exists, append to it, otherwise create it. If tried to make this a bit clearer in teh description above.
If you have any questions, don't hesitate to ask! Also, this project is in a very early stage, but I tried to write issues for things I know need to addressed in any case.


Ability to store plugins like embedded resources inside bridge libraries

Embedded plugins should have logical name (resource name) starts with "Bridge.Plugins."

#840 - Fixed WIN10 + VS2015 case - check if assembly already loaded even if it should "the first loading".


How do I advertise as a bluetooth device?

How do I advertise as a bluetooth device on my 1st android device so that my 2nd android device can scan and connect to the 1st android device?
I did read through https://www.jianshu.com/p/795bb0a08beb (translated to English via Google Chrome, so maybe something was lost in translation?) and also studied the readme of this repo. I haven't found anything yet. Am I missing something?
Thanks for your time!

hey, is there any solution for this?


pip compile reads output file as input file

The output of uv pip compile depends on if you redirect the output to a file, if that file already exists. Without, or without existing output file, numpy==1.26.4; with existing output file, numpy==1.26.0.
(.venv) C:\Code\Bug>uv --version
uv 0.1.27 (f60e7495c 2024-04-01)

pyproject.toml
[project]
name = "bug"
dependencies = ["numpy"]

requirements.txt
numpy==1.26.0

(.venv) C:\Code\Bug>uv pip compile pyproject.toml
Resolved 1 package in 181ms
# This file was autogenerated by uv via the following command:
#    uv pip compile pyproject.toml
numpy==1.26.4

(.venv) C:\Code\Bug>uv pip compile pyproject.toml -o requirements.txt
Resolved 1 package in 15ms
# This file was autogenerated by uv via the following command:
#    uv pip compile pyproject.toml -o requirements.txt
numpy==1.26.0

This is by design and consistent with pip-tools. You can run with --upgrade to ignore versions in the existing output file.

Closing as "working as intended".


Added option for vertical flipping data augmentation

I wanted this augmentation for my custom dataset and thought I would give you a PR.

Looks good, thanks! I'll merge.


fix template when use output dir

What this PR does / why we need it:
Fix: https://github.com/helm/helm/issues/11321
fix template when use output dir.
Special notes for your reviewer:
If applicable:

[ ] this PR contains documentation
[ ] this PR contains unit tests
[x] this PR has been tested for backwards compatibility

Any updates when it is going to be merged?


How to change the title of a legend?

I'm struggling to figure out how to change the title of a legend?

Hi, it should work using the pair syntax, that is mapping(color = column => "some label"), same as is used for changing the axis labels here. It's true that there is no example for the legend (it may be worth adding) but the same principles apply.

Thanks for your help! Yeah it is very intuitive once you get it, however it took me a while to figure this out and also how to sort the legend. I'll submit a pull request to update the legend-tweaking section to make it a little more obvious


feat: add yls-yara

@mason-org/triage notify(Reason::NewPullRequest)
This comment ensures a notification is delivered to maintainers.
 🤖 This is an automated comment.    📖 Source code


Github token update in Publish stage

test: updating github token variable

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

v2.2.1
GitHub release

Your semantic-release bot :package::rocket:


Replace abstract classes with single abstract method with interfaces.

Please fix jphp-debugger

@MWGuy Sure.


readthedocs points at the wrong repo

Since creating a new fork of payu at the
https://github.com/marshallward/payu
the documentation:
https://payu.readthedocs.io
is building from the wrong repo and not picking up changes I have made like https://github.com/payu-org/payu/commit/82e5eefb9c7d47e86fbf05aeeb227fc764a00696

I have updated the URL, should update the docs shortly.


Feat/export to pdf

:books:  Summery

Download notes as a pdf file.
Installed :

pdfMake
html-to-pdfmake

[x] Resolves  #13

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

Chrome Web Store
GitHub release

Your semantic-release bot :package::rocket:


[Work in progress] Implement concurrent resync

Rather than stopping the world to resync with etcd, process the resync in parallel with watching etcd.  Improves scalability under high churn.

[x] Introduce driver threads
[x] Merge updates into consistent stream
[x] Pass logging config to driver
[x] Driver initialises logging
[x] Pass status messages from driver to Felix
[x] Handle config key updates in Felix
[x] Handle Ready key update in driver
[x] Special-case top-level directory deletions?  If a delete nukes the ready flag, it's better to resync than to send in 1000s of deletes and spot the ready flag in the middle.
[x] Rework snapshot processing to use in-sync message instead

[x] do cleanup after in-sync message
[x] ipset manager defers update to dirty tags until we're in-sync
[x] dispatch chains defers updates until in-sync
[x] profile rules manager defers programming (at least deletions) until we're in sync
[x] hosts ipset
[x] status reporting cleanup

[ ] Explicit logfile name in config
[x] Handle trie corner cases: encode invalid characters?
[x] Handle etcd error cases in driver:

[x] Snapshot error response
[x] Event error response

[ ] Tidy up

[x] Driver code: comments, logging
[ ] ijson loop
[ ] fetcd code
[ ] Check syslog process name

[ ] Make simple etcd response handling common (reuse python-etcd objects?)
[ ] logrotate config for new driver log file
[x] Fix existing UTs
[ ] UTs for driver
[ ] UTs for felix
[x] Package ijson for Ubuntu
[x] Package datrie for Ubuntu
[ ] Docs

[ ] Update install docs.
[ ] Update release docs
[ ] Update config docs

Extras?:

[ ] Optimize incremental parsing perf?
[ ] Use faster json library for parsing events?

skip ci

retest this please

@plwhite I think this is worth a first look while I'm on vacation.  Some areas that I know still need work:

There's duplicated etcd request/response code in the driver.  Might make sense to use python-etcd for the simpler requests.
I have to fake up a Node object to pass to the PathDispatcher, which feels a bit ugly.  Maybe that's liveable-with though.
Feels like the socket read/write code could go into utility functions.

Mostly this just looks right, though had a poke round rather than a full review. Some comments.

Can we rely in messages arriving in order with SOCK_STREAM? Probably this is OK since there is only one thing on the other end, so it must be fine, but should we use something with guaranteed ordering to make the point?

If the driver process dies, how does Felix notice? I assume it must, but I couldn't see the code.

I need to do more, but net of this is that I'm comfortable with what I've seen.

SOCK_STREAM is guaranteed in-order.  It's basically equivalent to TCP.
If the driver dies, Felix should get an exception on its recv().

@plwhite For the record, SOCK_STREAM is definitionally in-order, regardless of the underlying protocol (AF_UNIX, AF_APPLETALK, whatever), which means your desire to "use something with guaranteed ordering to make the point" is actually already done by this code! This is one of the few good decisions of the socket API: you can ask for "whatever is equivalent to TCP" on your chosen protocol and get it. Specifically, from the man page:

SOCK_STREAM provides sequenced, reliable, two-way, connection-based byte streams.

Note also:

SOCK_DGRAM supports datagrams (connectionless, unreliable messages of fixed maximum length).

Though I have no idea how AF_UNIX and SOCK_DGRAM combine to produce unreliability: feels like a fun thing to investigate some time: can you actually lose a datagram on an AF_UNIX socket?
@matthewdupre might be interested by the possibility of combining AF_UNIX and SOCK_SEQPACKET:

SOCK_SEQPACKET provides a sequenced, reliable, two-way connection-based data transmission path for datagrams of fixed maximum length; a consumer is required to read an entire packet with each input system call.

In other words: SCTP you can actually use! Clearly @matthewdupre needs to get this into the Felix code sometime.

@Lukasa I started with SOCK_SEQPACKET but it puts a maximum size limit on the size of a message.  Although that limit is large, I'm always wary of limits that could bite at some random time in the future so I switched to SOCK_STREAM instead.  (msgpack had good stream support so there wasn't any pain in our code to use a stream anyway.)

retest this please

I concluded that it probably was OK, but I'm happy with being told that it definitely is! So if that's not the subtle, hard-to-find and yet critical bug that's hidden in the code, where is it?

retest this please

retest this please

retest this please

retest this please

retest this please

I suggest you add package the RPM python debs up to the list too.  While we haven't done it for the others, we can at least prevent the problem from growing.

Another required pre-merge item: remove the 1.3.0~~smc version.

retest this please

@matthewdupre the debs were cleanly built with py2dsc so I say we defer the build until there's something for Jenkins to build.

This PR is merged, but we should still discuss the queue size issue. That is a small enough detail not to block anything.


Add list config function

Description
This PR is to change the way get all available config.
Now, script gets available configs via parsing include/mbedtls/mbedtls_config.h . It is not same with binary. Sometime it causes local test fail and waste debug time.  ( That's not problem for CI testing)
Report configs from executable files can resolve that.
Status
READY

Updated.

Sorry, managed to merge without backports. Can we get them in ASAP next week?

@paul-elliott-arm I think a direct backport should work: https://github.com/ARMmbed/mbedtls/pull/5312. We don't need a 2.16 backport at this stage.


Update Dockerfile: Set version using ARG

Mon 13 Mar 2023 21:07:31 GMT

Capture version using ARG
Create static/zig-version

This is clever, thanks.

Wed 15 Mar 2023 07:44:11 GMT
Has a new container been built / deployed?   The header is showing v0.10.1 vs 0.10.1.  I left the v off to visually verify that the site was using the new code.  (Also why I'd not removed the zig-version file.)

Sorry, I thought maybe the zig-version file was leftover from testing. I can deploy a new image here shortly.

Thu 16 Mar 2023 08:21:40 GMT
The new version now appears for me at zig-play.dev.
Are you happy with the location of the version information (in the header)?


tracking: support tableau

Support parameters:
SET client_min_messages ERROR
client_encoding
extra_float_digits
timezone

We can ignore the parameter values and return a warning note to the client.

We can ignore the parameter values and return a warning note to the client.

We'd better validate the value and reject unsupported values, for example setting encoding to non-utf8

All 4 parameters listed above can now be set, although 3 of them (except timezone) are not effectively using the value.
Shall we close this issue or are there other subissues for tableau?

I tested the connection to RisingWave on Tableau Desktop (2023.2.1), and the data source connector uses PostgreSQL.
The connection was not successful, the error message is as follows:
An error occurred while communicating with the PostgreSQL data source 'Untitled Data Source'
Unable to connect to the server. Check that the server is running and that you have access privileges to the requested database.
Error Code: A018C2A1
An I/O error occurred while sending to the backend.
Unable to connect to the PostgreSQL server "localhost". Check that the server is running and that you have access privileges to the requested database.

The following is the sql query part of the log logged when Tableau connects to PostgreSQL@14:

querys
SET extra_float_digits = 3
SET application_name = 'Tableau Desktop/Desktop/jdbc-server 20232.23.0805.0415'

BEGIN
SET TIMEZONE TO 'UTC'
COMMIT

BEGIN
SET client_min_messages TO 'ERROR'
COMMIT

BEGIN
-- x rw x
show "lc_collate"
COMMIT

BEGIN
-- statement does not return rows
-- x rw x
SELECT *
INTO TEMPORARY TABLE "#Tableau_30_25B571F1-F906-4D07-8438-3E3A1D353C9E_1_Connect_Chec"
FROM (SELECT 1 AS COL) AS CHECKTEMP
LIMIT 1
COMMIT

BEGIN
DROP TABLE "#Tableau_30_25B571F1-F906-4D07-8438-3E3A1D353C9E_1_Connect_Chec"
COMMIT

BEGIN
-- x rw x
CREATE LOCAL TEMPORARY TABLE "#Tableau_30_25B571F1-F906-4D07-8438-3E3A1D353C9E_2_Connect_Chec" (
    "COL" INTEGER
) ON COMMIT PRESERVE ROWS
COMMIT

BEGIN
INSERT INTO "#Tableau_30_25B571F1-F906-4D07-8438-3E3A1D353C9E_2_Connect_Chec" ("COL")
    VALUES ($1)
COMMIT

BEGIN
CREATE INDEX "_tidx_#Tableau_30_25B571F1-F906-4D07-8438-3E3A1D353C9E_2_Connec" ON
    "#Tableau_30_25B571F1-F906-4D07-8438-3E3A1D353C9E_2_Connect_Chec" ("COL")
COMMIT

BEGIN
DROP TABLE "#Tableau_30_25B571F1-F906-4D07-8438-3E3A1D353C9E_2_Connect_Chec"
COMMIT

SELECT NULL AS TABLE_CAT, n.nspname AS TABLE_SCHEM, c.relname AS TABLE_NAME,  CASE n.nspname ~ '^pg_' OR n.nspname = 'information_schema'  WHEN true THEN CASE  WHEN n.nspname = 'pg_catalog' OR n.nspname = 'information_schema' THEN CASE c.relkind   WHEN 'r' THEN 'SYSTEM TABLE'   WHEN 'v' THEN 'SYSTEM VIEW'   WHEN 'i' THEN 'SYSTEM INDEX'   ELSE NULL   END  WHEN n.nspname = 'pg_toast' THEN CASE c.relkind   WHEN 'r' THEN 'SYSTEM TOAST TABLE'   WHEN 'i' THEN 'SYSTEM TOAST INDEX'   ELSE NULL   END  ELSE CASE c.relkind   WHEN 'r' THEN 'TEMPORARY TABLE'   WHEN 'p' THEN 'TEMPORARY TABLE'   WHEN 'i' THEN 'TEMPORARY INDEX'   WHEN 'S' THEN 'TEMPORARY SEQUENCE'   WHEN 'v' THEN 'TEMPORARY VIEW'   ELSE NULL   END  END  WHEN false THEN CASE c.relkind  WHEN 'r' THEN 'TABLE'  WHEN 'p' THEN 'PARTITIONED TABLE'  WHEN 'i' THEN 'INDEX'  WHEN 'P' then 'PARTITIONED INDEX'  WHEN 'S' THEN 'SEQUENCE'  WHEN 'v' THEN 'VIEW'  WHEN 'c' THEN 'TYPE'  WHEN 'f' THEN 'FOREIGN TABLE'  WHEN 'm' THEN 'MATERIALIZED VIEW'  ELSE NULL  END  ELSE NULL  END  AS TABLE_TYPE, d.description AS REMARKS,  '' as TYPE_CAT, '' as TYPE_SCHEM, '' as TYPE_NAME, '' AS SELF_REFERENCING_COL_NAME, '' AS REF_GENERATION  FROM pg_catalog.pg_namespace n, pg_catalog.pg_class c  LEFT JOIN pg_catalog.pg_description d ON (c.oid = d.objoid AND d.objsubid = 0  and d.classoid = 'pg_class'::regclass)  WHERE c.relnamespace = n.oid  AND (false  OR ( c.relkind = 'f' )  OR ( c.relkind = 'm' )  OR ( c.relkind = 'p' AND n.nspname !~ '^pg_' AND n.nspname <> 'information_schema' )  OR ( c.relkind = 'r' AND n.nspname !~ '^pg_' AND n.nspname <> 'information_schema' )  OR ( c.relkind = 'v' AND n.nspname <> 'pg_catalog' AND n.nspname <> 'information_schema' ) )  ORDER BY TABLE_TYPE,TABLE_SCHEM,TABLE_NAME

SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 2615 AS oid , 2 AS attnum UNION ALL SELECT 1259, 2 UNION ALL SELECT 2609, 4) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum)

It can be tested that RisingWave does not support the following expressions:

show "lc_collate" (ref)
SELECT INTO (ref)
CREATE LOCAL (ref)

btw lc_collate also needed by pgAdmin 4, https://github.com/risingwavelabs/risingwave/issues/11180.


Export settings from default theme separately

Hello! Question related to typedoc-theme-hierarchy
Prior to typedoc version 0.23, theme and visibility settings were outside the navigation. Now they are inside the navigation. My theme completely overrides it, but I don't have the ability to reuse settings from the default theme. Because typedoc does not export the settings component separately
Could you separate the settings into a separate exportable component?

Seems like a reasonable request :+1:

Thanks!


Add a new project: Zodiac Sign Calculator

Describe the feature
Zodiac Sign calculator takes the users date of birth as input and gives their zodiac sign along with their personality traits.
Tech stack used:
HTML
CSS
JavaScript
Bootstrap
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@nadarmega Issue assigned to you


Fixed problem encountered during asset pre-compilation

Describe the changes you have made in this PR -

The error : Error: Cannot find module 'jquery'
So added jquery through yarn which fixed this problem.

@satu0king Please review

Coverage remained the same at 84.266% when pulling fc64018e3ae7fa0d867d8c65f83d40d00253098b on Ananthavijay:precompile into 0499c088b162e52aa8bbe2dbaf68a002beef5c0c on CircuitVerse:master.


programs spawned by pmc are bound to one thread

I presume this was not intentional. For example if one is to run pcm-core -- make -j $BIGNUM, it will all execute on one thread. Tested on FreeBSD and Linux.

This could be the same issue as in https://github.com/opcm/pcm/issues/378
Could you please try the temp workaround: https://github.com/opcm/pcm/issues/378#issuecomment-1059777310

Fixed with b941b03d93272a33458eeb941171684c2a396e32


[Bug]: command failed: command sh -c node install.mjs

Minimal, reproducible example
{
  "name": "test",
  "description": "None",
  "version": "0.0.1",
  "devDependencies": {  # or "dependencies"
    "puppeteer": "^21.0.1"
  },
  "engines": {
    "node": ">=0.10"
  }
}

Error string
command failed: command sh -c node install.mjs
Bug behavior

[ ] Flaky
[ ] PDF

Background
npm install and npm ci don't work
Expectation
Puppeteer should install fine.
Reality
npm info run<EMAIL_ADDRESS>postinstall node_modules/puppeteer node install.mjs
npm info run<EMAIL_ADDRESS>postinstall { code: 1, signal: null }
npm verb stack Error: command failed
npm verb stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27)
npm verb stack     at ChildProcess.emit (node:events:517:28)
npm verb stack     at maybeClose (node:internal/child_process:1098:16)
npm verb stack     at ChildProcess._handle.onexit (node:internal/child_process:303:5)
npm verb pkgid<EMAIL_ADDRESS>npm verb cwd /home/matthijs/src/roslibjs
npm verb Linux 6.2.0-37-generic
npm verb node v18.18.0
npm verb npm  v10.2.4
npm ERR! code 1
npm ERR! path /home/matthijs/src/roslibjs/node_modules/puppeteer
npm ERR! command failed
npm ERR! command sh -c node install.mjs
npm verb exit 1

Puppeteer configuration file (if used)
No response
Puppeteer version
21.6.1
Node version
18.18.0
Package manager
npm
Package manager version
10.2.4
Operating system
Linux

I have tested in a clean docker, with the installation according to the node.js website. This works.
Previously I was using the node installation via snap. That might be the issue, as when I use the node.js installation on my machine it also works.
So leaving this message for future references.

The error can be reproduced if node is installed via snap.

+1 for this being an issue when Node is installed via Snap on Ubuntu.

I can reproduce this issue on Ubuntu 22.04 with Node.js installed via Snap (with both v20.11.1 and v21.6.2).
While searching for a solution, I stumbled upon a similar issue in esbuild that was found to be related to stderr not being writable in the Snap version of Node.js. It was fixed by simply prepending stdio: 'pipe' to a execFileSync call. Hope it helps to narrow down the root cause.


staticgen.com is now jamstack.org

https://jamstack.org/generators/ added instead of staticgen.com

Thank you!


Microsoft.UI.Composition.Toolkit project does not seem to be complete

The project "Microsoft.UI.Composition.Toolkit" in WindowsUIDevLabs-master\Demos\Reference Demos currently does not include all referenced files. Therefore I cannot build all demos that rely on this project.
Thanks for the good work,
Robert

@robert-virkus Thanks for logging this issue. We'll update that project file.

Cleaning up an old issue...
I tried out the CompositionImageSample project in SampleGallery that references the Toolkit, and it builds and runs successfully. I believe this issue no longer occurs.


add event listener dropdown

Current coverage is 45.48%

Merging #192 into master will not affect coverage as of 188f4e7

@@            master    #192   diff @@
======================================
  Files           20      20
  Stmts          332     332
  Branches         0       0
  Methods          0       0
======================================
  Hit            151     151
  Partial          0       0
  Missed         181     181

Review entire Coverage Diff as of 188f4e7

Powered by Codecov. Updated on successful CI builds.


[question] Can i extract upgrades from weapon/armor/gun/tool?

Look title

No, upgrades are permanent.


Unable to copy name from WIM message window

Describe the bug
When trying to copy the name of the player I'm chatting with it throws an error and does not copy the name.
Addon Version
3.12.1
To Reproduce
Steps to reproduce the behavior:

Open chat with friend
Wait for some reply
Right click the nick and choose "Copy Character Name""
See error

Expected behavior
Being able to copy the name of the player I'm chatting with.
Not sure if just the name or the name and the server should be copied (now with cross-realm guilds it would be great)
Additional context
Providing the stacktrace:
3x [ADDON_ACTION_FORBIDDEN] AddOn 'WIM' tried to call the protected function 'CopyToClipboard()'.
[string "@!BugGrabber/BugGrabber.lua"]:485: in function <!BugGrabber/BugGrabber.lua:485>
[string "=[C]"]: in function `CopyToClipboard'
[string "@Blizzard_UnitPopupShared/UnitPopupSharedButtonMixins.lua"]:1340: in function <...zard_UnitPopupShared/UnitPopupSharedButtonMixins.lua:1339>
[string "=(tail call)"]: ?
[string "=(tail call)"]: ?
[string "=[C]"]: in function `securecallfunction'
[string "@Blizzard_Menu/Menu.lua"]:854: in function `Pick'
[string "@Blizzard_Menu/MenuTemplates.lua"]:64: in function <Blizzard_Menu/MenuTemplates.lua:58>

Locals:
_ = Frame {
}
event = "ADDON_ACTION_FORBIDDEN"
events = <table> {
}

Hmm... Looks like its a protected function now. I wont be able to call it, I will see if I can instead handle it like we do URLs and show a popup with selectable/copiable text.

hi @Pazza
yeah I just got this error tonight too...
bummer.. why does Blizzard cause so much trouble...
thx for working on a fix. or at least a work around...

Just checking in for an update on this one. Thanks for your support.


UTF Import Issues

Importing a file for a project needs to identify the file's UTF type to correctly ingest contents.  JavaScript and Java process strings natively as UTF-16.  An ASCII file read will convert to UTF-16.  But, an otherwise ASCII file can also be interpreted as UTF-8.  If sprinkled UTF-8 characters exist (such as NBSP), the UTF-8 characters are apparently imported as raw binary characters.  When imported to native UTF-16, these characters remain as UTF-8 sequences as there is no UTF type identifying the original file to perform a conversion.
This report is a WIP as variations of UTF processing may have unknown effects on an OpenRefine import.
To Reproduce
Steps to reproduce the behavior:

Load a file with UTF-8 characters sprinkled in.  A late model MS Excel spreadsheet may end strings with a UTF-8 NBSP character as Windows 10 is UTF-8 by default.
Examine that cells end with an extra "space" character by highlighting the text.
Perform a GREL strip() on the text and examine that the "space" is not removed.

Current Results
As per "To Reproduce" above.  UTF-8 characters are not processed properly into native UTF-16.
Expected Behavior
UTF-8 and other UTF versions are processed properly into native UTF-16.  A solution is to ask the user for a UTF setting to process the import file.  Defaulting imports to UTF-8 may be acceptable for most instances.
Screenshots
None
Versions

Operating System: Linux, Ubuntu 21.04
Browser Version: Chrome
JRE or JDK Version: JDK 11
OpenRefine: OpenRefine 3.5.2

Datasets
Example file to be posted,
Additional context
None.

Thanks! I think it would be useful to provide an example file for which this happens. I suspect this issue is specific to the Excel importer.

I think the best course of action is probably to change the default charset for the XLSX importer to be UTF8.  That eliminates at least a large majority of the problems that cause users to be surprised later on.  What do you think of just doing that @AtesComp in this issue?

I agree that that would generally be an acceptable base solution. It is hard to tell how the non-breaking space is getting into the text, but I suspect MS is doing it behind the scene as I've seen in MS Word documents--Word makes bad automatic decisions about adding non-breaking spaces.
Where is the affected code?  I need to get back on this with a sample file and test.

@AtesComp Start here: https://github.com/OpenRefine/OpenRefine/tree/master/main/src/com/google/refine/importers

I'm having a hard time understanding where this problem lies. Is it with XLS import or XLSX or both? What source program(s) ie versions of Excel or other spreadsheets? One or more files that demonstrate the problem would definitely be very useful (ie necessary).
I think that this should all be handled internally by Apache POI and/or the source program. For legacy files written by older versions of Excel, I suspect that the situation will be that you have to write the file using a code page which is expected by the receiving system and communicate that information out of band, just like in the olden days when folks mailed their floppies to each other.
In any case, a reproducer would help track it down.
@thadguidry The most common code page for legacy files will be CP1252. Modern versions of Excel should correctly set the code page when writing the files.

@tfmorris yes, modern Excel versions seem to be just fine.  Here is my test XLSX file for Excel 365 latest version.  It does not exhibit any problem and I could not get a NBSP to appear "automatically" at the end of text in cells unless I specifically typed in a NBSP char into the cell into Excel as shown in test file below.  I wonder if the problem might come up due to formula use?
OpenRefine Excel XLSX Test Unicode.xlsx

As far as @AtesComp suggestion of enhancing GREL strip() function to not only remove leading and trailing whitespace but also any leading and trailing U+00A0 (nbsp) chars, I would be +1👍 for that enhancement.

To clarify, the test case needed is one which reproduces the problem.
strip() is a synonym for trim() which already removes NBSP (and all other funky whitespace characters).
Note that there is an issue with line-based importers and NBSP which is described in #5246. There is a pending PR that fixes it.


How to resolve the problem of 'Trying to abandon more columns than allowed'?

Hi.
I am interested in your research and I try to use a new parity check matrix(248*1116) as input. However, the code seems like throwing an error 'Trying to abandon more columns than allowed'. What should I do to acquire the simulated result？

The input is CSS code with the hz logical check method

Hi. In the first instance you should try reducing the OSD order to zero (it is set to 40 in the default example). If you can send the parity check matrix matrix you are working on I can try and diagnose the problem more precisely.

Thanks for your enthusiastic help.
The parity check martrixs is attached on the letter. If it is convenient, can you apply a Partity-to-alist code?The parity-to-alist code that I used is attached on the letter too,but the simulated result is amazing——1000 codes are all decoded wrong.
------------------ 原始邮件 ------------------
发件人:                                                                                "quantumgizmos/bp_osd"                                                                                @.>;
发送时间: 2021年6月18日(星期五) 晚上10:59
@.>;
<EMAIL_ADDRESS>主题: Re: [quantumgizmos/bp_osd] How to resolve the problem of 'Trying to abandon more columns than allowed'? (#7)
Hi. In the first instance you should try reducing the OSD order to zero (it is set to 40 in the default example). If you can send the parity check matrix matrix you are working on I can try and diagnose the problem more precisely.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Hi. I can't see the parity check matrix? Perhaps it didn't attach properly. Could you send it to me?
<EMAIL_ADDRESS>


html comments work wrong

VSCode Version: Code 1.7.1 (02611b40b24c9df2726ad8b33f5ef5f67ac30b44, 2016-11-03T13:53:14.822Z)
OS Version: Windows_NT ia32 6.1.7601
Extensions:

Extension
Author
Version

Steps to Reproduce:
<!---------- this comment cause error --------->
<script src="init.js"></script>
<script src="drag_elem.js"></script>
<script src="create_elem.js"></script>

<!--  normal comment -->
<link rel="stylesheet" type="text/css" href="left/border/border.css">
<script src="left/border/border.js"></script>

paste code, see that end of the comment "-->" in first line does not work proper

Can you help format your description a little bit to help understand the problem?

Check out https://www.w3.org/TR/html5/syntax.html#comments:

text must not ... contain two consecutive U+002D HYPHEN-MINUS characters (--), nor end with a U+002D HYPHEN-MINUS character (-)

That's why the comment content is rendered red ('invalid')
duplicate of #13778


Direction ID 145 is creating an error

The UW frequently tries to access a direction ID of 145 and it fails 100% of the time because the system doesn't know what it is.

Added this to the datastore by hand...


Info labels

Trello card: https://trello.com/c/vqxDOJXG/79-s-as-someone-looking-at-a-profile-i-need-context-so-that-i-can-understand-what-the-information-is-on-someone-s-profile

I checked it locally, it doesn't look right:

Looks like:

The font size in general doesn't match the desing
Role and team is not displayed correctly
Additional Information and Skills have wrong label size
Spacing between the lines also doesn't seem to match

Apologies if it's been mentioned elsewhere but what's going on with this work? Something I can help with?

@novotnyjakub one last look?

Here is what it looks like right now.

That looks pretty good now, I think. Only the 'Additional information' should be 'Extra information:'.
Could you please rebase on master and integrate with @threedaymonk latest changes for the phone numbers?


Update Apple clang compiler on macos-latest

Tool information

Tool name: Apple clang compiler
Add or update? update  version 11.0.0 (clang-1<IP_ADDRESS>)
Desired version: version 11.0.0 (clang-1<IP_ADDRESS>)
Approximate size:
If this is an add request:

Brief description of tool:
URL for tool's homepage:

Area for Triage:

Question, Bug, or Feature?:

Virtual environments affected

[ x] macOS 10.15
[ ] Ubuntu 16.04 LTS
[ ] Ubuntu 18.04 LTS
[ ] Windows Server 2016 R2
[ ] Windows Server 2019

Can this tool be installed during the build?

Are you willing to submit a PR?

Hello, shz0116
Xcode 11.2.1(clang-1<IP_ADDRESS>) set by default - https://github.com/actions/virtual-environments/blob/master/images/macos/macos-10.15-Readme.md
You should switch from Xcode 11.2.1(default) to Xcode 11.3, if you want to use clang-1<IP_ADDRESS> compiler.
sudo xcode-select -s /Applications/Xcode_11.3.app/Contents/Developer
Example:
- name: Set Xcode 11.3
      run: |
        sudo xcode-select -s /Applications/Xcode_11.3.app/Contents/Developer
        clang -v

Closing as solved. Let me know if you feel this should be reopened.


Add integration test for cassandradatacenter_controller.go

┆Issue is synchronized with this Jiraserver Task by Unito
┆Issue Number: K8SSAND-152
┆Priority: Medium

Closing in favor of tests in k8ssandra-operator


Implement no_std support

Background
Although Risc0 supports std, many (most?) zkVMs and compilers will not. To accommodate these, we should support no_std in the SDK.

Consider using a type alias for Arc/Rc which conditionally enables atomics depending on a compiler flag (so that we can use it both inside and outside of the zkvm)
Use maybestd where possible. For types not covered by maybestd, re-export them from a module and point all imports there. This way, we automatically switch between core and std at compile time.
Consider creating a custom crate for collections instead of using std::collections so that we can easily swap to optimized primitives and avoid dependencies on libraries with compatibility issues (like once_cell and ahash)

thiserror present is not support no_std, suggest use displaydoc to replace with thiseeror.

After many iterations of discussions, no_std requirement is quite brutal and in reality is not needed by existing zkVM frameworks.
I would suggest to close this issue to avoid confusion.
It might be that some parts of SDK will be no_std, but not whole framework.


Deprecate dense labels

What is the expected enhancement?
Dense labels are confusing to use. I'm sure I'm not the only one who thinks this; I have encountered bugs in other people's code that arose from the use of dense labels. There are two sources of confusion:

It is easy to forget to account for the accumulated sign due to permutation of fermionic modes
Dense labels in Qiskit Nature use big endian ordering, which is the opposite of Qiskit Terra's convention

Dense labels are not necessary because sparse labels can always be used instead.

After some offline discussion, I agree that the dense labels are no longer needed since the sparse labels are arguably more useful and less error-prone. As such, their deprecation will:

avoid future bugs/confusion of users
de-clutter the code by allowing us to remove various aspects of the code which are only needed for dense labels
resulting in overall more maintainable code :+1:

Feel free to go ahead and open a PR which properly deprecates the use of dense labels. We are already announced that the default display_format will be changed from dense to sparse (side note: @ikkoham @manoelmarques did we actually update this already?) so adding another deprecation warning now to fully remove support for dense labels in 0.5 or 0.6 (technically required by Qiskit deprecation policy) seems like a good idea :+1:


Backport: device: Ease device access for rootfs device to allow node creation

For docker in docker scenario, the nested container created
has entry "b : m" in the list of devices it is allowed to access
under /sys/fs/cgroup/devices/docker/{ctrid}/devices.list.
This entry was causing issues while starting a nested container
as we were denying "m" access to the rootfs block devices.
With this change we add back "m" access, the container would be
allowed to create a device node for the rootfs device but will
not have read-write access to the created device node.
This fixes the docker in docker use case while still making sure
the container is not allowed read/write access to the rootfs.
Note, this could also be fixed by simply skipping {"Type : "b"}
while creating the device cgroup with libcontainer.
But this seems to be undocumented behaviour at this point,
hence refrained from taking this approach.
Fixes #806
Signed-off-by: Archana Shinde<EMAIL_ADDRESS>(cherry picked from commit 5dc7ae4bebe5413e957bb52387a13fcaa0c6a6e5)

/test-ubuntu


Merge pull request #1 from UTSAVS26/main

Pull Request for PyVerse 💡
Requesting to submit a pull request to the PyVerse repository.

Issue Title
Issue - #615

[x] I have provided the issue title.

---  Add Most Important Project for Today's era #615

[x] I have described the aim of the project.
To add Credi Card Fraud Detection

Name
@SimranShaikh20
GitHub ID
@SimranShaikh20
GSSOC'24 Extd

[x] I have mentioned my participant role.

Closes
Enter the issue number that will be closed through this PR.
Closes: #issue-number
#615

[x] I have provided the issue number.

Describe the Add-ons or Changes You've Made
Give a clear description of what you have added or modified.
I have added Credi Card Frad Detection using ML which is one of most important project.
Describe your changes here.
New Project

[x] I have described my changes.

Type of Change

[x] New feature (non-breaking change which adds functionality)

Checklist
Please confirm the following:

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

@UTSAVS26  is there any changes

@SimranShaikh20 there is no file in the PR.


Handle ValueError raised on missing table name

Handle ExclusiveStartTableName missing in table names.

Coverage decreased (-0.005%) to 94.289% when pulling ed5e0b586c50955515fb2ed72a7c028ece91a9d3 on d-ryzhikov:fix/table-filter-value-error into 1017e040b3a944008aabf9f262d2d829c073c435 on spulec:master.

@bblommers , merged in latest master.


Draft: update richtextv2 to handle v1 data

Little demo here. You can imagine me toggling the richtext version is equivalent to what they will do when they upgrade through a breaking version and the export is changed in the runtime.
https://github.com/makeswift/makeswift/assets/20950876/3ce09d23-72a8-4b58-8e95-2a715154ffdd


Fix dataproc startup (temp folder)

As described in #157

Will there need to be some handling for test runs?
The test temp bucket is at ['storage', 'default', 'test', 'tmp'], might we need something like:
if get_access_level() == 'test':
  tmp_bucket_config_list = ['storage', 'default', 'test', 'tmp']
else:
  tmp_bucket_config_list = ['storage', 'default', 'tmp']

tmp_bucket = config_retrieve(tmp_bucket_config_list)

Will there need to be some handling for test runs?

I believe this is handled intelligently in config generation - test runs don't have main storage locations, so storage/default/tmp in a test run will point to a test path. In a standard/full permission run it will point to a main path


How to use my own map services

This has been answered: https://github.com/nicksenger/react-arcgis/issues/58


LP hangs when printer is offline and jobs are queued

If a job is sent to an offline USB printer using the lp command, the lp command hangs on all subsequent calls for all printers (or even if no command-line arguments are given) until the job(s) in the offline printer's queue are deleted.
CUPS version 2.2.10 (ARM)
Steps to reproduce:

Set up multiple printers in CUPS connected to USB ports
Take one printer offline (turn it off, unplug, etc)
Send a job to that printer
Try to run the lp command again (any/no command line arguments) - it will hang and never terminate.

I can't reproduce this on my Pi Zero. If you can provide complete configuration info, please report this to the OpenPrinting CUPS project.


HTTP Error 504

This is an awesome project!
However, I can't seem to figure out what's going on here... I keep getting HTTP Error 504 when trying to download a financial report:
./reporter.py -u<EMAIL_ADDRESS>-p "iTC Access" -a 219903 getFinancialReport 80092992 US 2016 01
HTTP Error 504. Did you choose reasonable query arguments?
I'm able to getStatus, etc, and have tried changing the server to add -sh to the URL per some other recommendations.

Are trying to grab password from keychain or not?
On Fri, Dec 9, 2016 at 1:39 AM, Arash Keshmirian<EMAIL_ADDRESS>wrote:

I can't seem to figure out what's going on... I keep getting HTTP Error
504 when trying to download a financial report:
./reporter.py -u<EMAIL_ADDRESS>-p "iTC Access" -a 219903 getFinancialReport
80092992 US 2016 01
HTTP Error 504. Did you choose reasonable query arguments?
I'm able to getStatus, etc, and have tried changing the server to add -sh
to the URL per some other recommendations.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/fedoco/itc-reporter/issues/5, or mute the thread
https://github.com/notifications/unsubscribe-auth/AQ6RZHDJF8hJ8x5i7jXosnDs36DJZv9Yks5rGLE7gaJpZM4LIfU2
.

Yep, using -p to pull password from keychain. I've verified this works by putting a bogus password in the keychain entry; I get a password error then.

On Dec 8, 2016, at 5:48 PM, damienkilgannon<EMAIL_ADDRESS>wrote:
Are trying to grab password from keychain or not?
On Fri, Dec 9, 2016 at 1:39 AM, Arash Keshmirian<EMAIL_ADDRESS>wrote:

I can't seem to figure out what's going on... I keep getting HTTP Error
504 when trying to download a financial report:
./reporter.py -u<EMAIL_ADDRESS>-p "iTC Access" -a 219903 getFinancialReport
80092992 US 2016 01
HTTP Error 504. Did you choose reasonable query arguments?
I'm able to getStatus, etc, and have tried changing the server to add -sh
to the URL per some other recommendations.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/fedoco/itc-reporter/issues/5, or mute the thread
https://github.com/notifications/unsubscribe-auth/AQ6RZHDJF8hJ8x5i7jXosnDs36DJZv9Yks5rGLE7gaJpZM4LIfU2
.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@ArashKeshmirian Have you made sure the iTunes Connect account you're using is allowed to retrieve financial reports?

Yeah, checked that too.  We’ve been using it for appfigures / AutoIngestion for years.
—arash

On Dec 9, 2016, at 8:14 AM, fedoco<EMAIL_ADDRESS>wrote:
@ArashKeshmirian https://github.com/ArashKeshmirian Have you made sure the iTunes Connect account you're using is allowed to retrieve financial reports?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/fedoco/itc-reporter/issues/5#issuecomment-266053049, or mute the thread https://github.com/notifications/unsubscribe-auth/AAF178fVydYcgOgn8eGQeP5taUgLjIPLks5rGX5VgaJpZM4LIfU2.

Hmm. Does Apple's official Reporter tool work for you right now?

Sort of.  Here's the transcript there (anonymized).  I've tried at the office and at home with the same results:
$ java -jar Reporter.jar p=Reporter.properties Finance.getStatus
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Status>
    0
    <Message>Finance Reporter is currently available.</Message>
</Status>

$ java -jar Reporter.jar p=Reporter.properties Finance.getAccounts
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Accounts>
    <Account>
        <Name>Company, Inc.</Name>
        <Number>123456</Number>
    </Account>
</Accounts>

$ java -jar Reporter.jar p=Reporter.properties Finance.getVendorsAndRegions
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Error>
  111
  <Message>Network is available but cannot connect to application. Check your proxy and firewall settings and try again.</Message>
</Error>

As stated in the error message, this implies that you're facing a general problem with your connection that doesn't seem directly related to my Python script. I would therefore suggest to reach out to Apple's developer support in order to sort out the issue. Sorry.

I just found a possible cause for the problem you're experiencing: https://forums.developer.apple.com/thread/65994
Could it be possible that some component in your connection somehow still cached the invalid SSL certificate from weeks ago?

I'm running this on a fresh new MacBook Pro, so that seems unlikely, but I will investigate.  Thanks for the troubleshooting, @fedoco.

@arash maybe try using Mitmproxy (https://github.com/mitmproxy/mitmproxy)
to sniff the HTTPS packets and double check the headers and the ssl cert
been sent ...
On Fri, Dec 9, 2016 at 8:48 PM, Arash Keshmirian<EMAIL_ADDRESS>wrote:

I'm running this on a fresh new MacBook Pro, so that seems unlikely, but I
will investigate. Thanks for the troubleshooting, @fedoco
https://github.com/fedoco.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/fedoco/itc-reporter/issues/5#issuecomment-266119275,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQ6RZANXv0isSKx86NACssbTY9AV7Cxxks5rGb6lgaJpZM4LIfU2
.


flutter build ios crash

command
flutter build ios

exception
ArgumentError: Invalid argument(s)

#0      _StringBase._interpolate (dart:core/runtime/libstring_patch.dart:833:9)
#1      BuildIOSCommand.runCommand (package:flutter_tools/src/commands/build_ios.dart:78:62)
<asynchronous suspension>
#2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:401:18)
<asynchronous suspension>
#3      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:335:33)
<asynchronous suspension>
#4      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:142:29)
<asynchronous suspension>
#5      _rootRun (dart:async/zone.dart:1124:13)
#6      _CustomZone.run (dart:async/zone.dart:1021:19)
#7      _runZoned (dart:async/zone.dart:1516:10)
#8      runZoned (dart:async/zone.dart:1463:12)
#9      AppContext.run (package:flutter_tools/src/base/context.dart:141:18)
<asynchronous suspension>
#10     FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:326:20)
#11     CommandRunner.runCommand (package:args/command_runner.dart:196:27)
<asynchronous suspension>
#12     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:401:21)
<asynchronous suspension>
#13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:142:29)
<asynchronous suspension>
#14     _rootRun (dart:async/zone.dart:1124:13)
#15     _CustomZone.run (dart:async/zone.dart:1021:19)
#16     _runZoned (dart:async/zone.dart:1516:10)
#17     runZoned (dart:async/zone.dart:1463:12)
#18     AppContext.run (package:flutter_tools/src/base/context.dart:141:18)
<asynchronous suspension>
#19     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:361:19)
<asynchronous suspension>
#20     CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:111:29)
#21     new Future.sync (dart:async/future.dart:224:31)
#22     CommandRunner.run (package:args/command_runner.dart:111:11)
#23     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:241:18)
#24     run.<anonymous closure> (package:flutter_tools/runner.dart:60:20)
<asynchronous suspension>
#25     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:142:29)
<asynchronous suspension>
#26     _rootRun (dart:async/zone.dart:1124:13)
#27     _CustomZone.run (dart:async/zone.dart:1021:19)
#28     _runZoned (dart:async/zone.dart:1516:10)
#29     runZoned (dart:async/zone.dart:1463:12)
#30     AppContext.run (package:flutter_tools/src/base/context.dart:141:18)
<asynchronous suspension>
#31     runInContext (package:flutter_tools/src/context_runner.dart:43:24)
<asynchronous suspension>
#32     run (package:flutter_tools/runner.dart:51:10)
#33     main (package:flutter_tools/executable.dart:51:9)
<asynchronous suspension>
#34     main (file:///Users/cuikunkun/development/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:3)
#35     _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:287:32)
#36     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)

flutter doctor
[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.14.2 18C54, locale zh-Hans-CN)
    • Flutter version 1.0.0 at /Users/cuikunkun/development/flutter
    • Framework revision 5391447fae (4 weeks ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at /Users/cuikunkun/Library/Android/sdk
    • Android NDK at /Users/cuikunkun/Library/Android/sdk/ndk-bundle
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 29.0.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] VS Code (version 1.30.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.21.1

[✓] Connected device (1 available)
    • iPhone XS • BA890837-DFEE-43C5-B59D-8C142B4DFEBB • ios • iOS 12.1 (simulator)

• No issues found!

Is there anything special about this application?
Can you reproduce with a new project created with flutter create foo?

Duplicate of #23616


Fine-tune dataset access

Hello,
I see you have made .mdb dataset files available. How would one go about simply extracting and using the fine-tune data for downstream tasks? I would like to fine-tune my own model so the training script will not work.
Best,
Logan

Hi Logan,
You can try the code below (we use Thermostability as example):
`
import lmdb
import json
lmdb_dir = "/your/path/to/LMDB/Thermostability/normal/train"
env = lmdb.open(lmdb_dir, readonly=True)
operator = env.begin()
length = int(operator.get("length".encode("utf-8")).decode("utf-8"))
for i in range(length):
key = f"{i}".encode("utf-8")
value = operator.get(key)
data_dict = json.loads(value.decode("utf-8"))
print(data_dict.keys())
break
`
I hope this could solve the problem.
Best,
Jin

This works great. Thanks for the help!


Finish Signup Form Barebones UI (nothing special)

Create Barebones UI
Link to backend endpoint: /api/user/create
make sure it is successful and has a notification that says login successful or something
add the userid to local storage
make sure the home page is only displayed when the user is logged in, otherwise redirect to the sign up page


f22apply

https://acmcsuf.com/f22apply
Link to the google form for the fall 2022 applications

likewise


Reduce package size

I'm trying to land as part of Firefox a package that depends on webidl-rs. That's unfortunately not possible because of the following files:

1.9M	lalrpop-snap/src/newparser.rs
1.9M	lalrpop-snap/src/parser/lrgrammar.rs
1.9M	lalrpop/src/newparser.rs
2.3M	lalrpop/src/parser/lrgrammar.rs
832K	webidl/src/parser/grammar.rs
177K	webidl/tests/mozilla_webidl.zip

It would be great if we could find a way to get rid of these files.
For mozilla_webidl.zip and grammar.rs, I believe it's just a matter of adding an exclude in Cargo.toml. For lalrpop-*, I believe that more recent versions don't contain such huge files anymore.

Apparently, I made a mistake and this doesn't remove all the files I thought it would.
Blocked by https://github.com/lalrpop/lalrpop/issues/333.

Are you sure grammar.rs is still included? It doesn't seem to be there from what I see.

I believe #13 fixes the cause of grammar.rs sometimes ending up in the vendor directory.  This could happen when cargo build builds the file out of the Cargo cache ($HOME/.cargo/registrysrc). The build script would then put its output in that cached source directory because of lalrpop/lalrpop#280. Later runs of cargo vendor then copy the source from that directory, including the generated file.

I'm going to keep this open until lalrpop/lalrpop#333 has been dealt with.

I'm currently trying to get a new version out, but there's a problem with the include! used. I opened an issue in lalrpop (#350)

As far as I can tell, this does the trick.
Thanks!


Embed without authentication

Hello,
I am trying to incorporate a report on the company's intranet page, but I would like no authentication to be requested.
I tried the way below (pass login by parameter in the url) that I saw in a post but it didn't work. Is there any way to do it?
<iframe src="http://myusername@mypassword:MyServerRport/relatorios/powerbi/Inteligencia/Cashback?rs:embed=true" width="100%" height="800" frameborder="0"></iframe>
Versions used:

Microsoft Power BI Report Server (May 2020)
SQL SERVER 2019 Developer Edition (15.2002.4709.1) (Both in PT-BR)

You will need to implement your own custom security extension with anonymous Auth (A sample is available https://github.com/microsoft/Reporting-Services/tree/master/CustomSecuritySample)

totally it doesn't work on iframe when use IP instead of  localhost, for example
It doesn't work -->
It works fine -->


Speaker adaptation - error when synthesising new text using adapted models

I am working on speaker adaptation in Merlin using the VCTK data. I had no problems in training the average and adapted voices. The script has a module for synthesising text using the average voice (07_run_merlin.sh), and it worked. But it has no recipe for synthesising text using the adapted voice. I tried using the same script that I use for classic merlin synthesis (with minor modifications) and also a modified version of 07_run_merlin.sh, but I am getting the following error:
IOError: [Errno 2] No such file or directory: '/speech/anusha/Downloads/merlin-master/egs/speaker_adaptation/s1/experiments/adapt_p234/acoustic_model/inter_module/label_norm_HTS_425.dat'
The above mentioned model is not generated during training for the adapted voice, but is generated for the average voice. Is there something that I am missing? Please let me know how to proceed.
Thanks

I was able to solve this issue by changing the last line of run_demo_voice.sh of adaptation (https://github.com/CSTR-Edinburgh/merlin/blob/master/egs/speaker_adaptation/s1/run_demo_voice.sh).
Instead of using duration configuration for acoustic training (./13_adapt_acoustic_model.sh conf/duration_adapt_p234_fine_tune.conf), acoustic configuration was used for acoustic training (./13_adapt_acoustic_model.sh conf/acoustic_adapt_p234_fine_tune.conf).

I just discovered this bug too. Someone needs to fix it.

Another issue: The synthesis configuration files generated for the adapted models expect the model name "feed_forward_6_tanh", but the generated adapted models have the name "models_adapted_using_fine_tune".

@jasonlilley if you have a fix, please open a PR with the changes to make this work. That's the fastest and best way to get something fixed on a collaborative project :-)


Can't remove the old feature_test video when run twice

Below is terminal output. This happens when I run a feature test video the second time on Windows 10.
Process Process-2:
Traceback (most recent call last):
  File "C:\Anaconda2\envs\santosgui\lib\site-packages\multiprocess\process.py", line 258, in _bootstrap
    self.run()
  File "C:\Anaconda2\envs\santosgui\lib\site-packages\multiprocess\process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\svaughan\Documents\GitHub\SantosGUI\application\cloud_api.py", line 679, in _function
    ret = func(*args, **kwargs)
  File "C:\Users\svaughan\Documents\GitHub\SantosGUI\application\cloud_api.py", line 272, in getTestConfig
    self.writeToPath(r, file_path,file_name)
  File "C:\Users\svaughan\Documents\GitHub\SantosGUI\application\cloud_api.py", line 57, in writeToPath
    os.remove(path)
WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\svaughan\\Documents\\SantosGUI\\project_dir\\demo\\feature_video\\feature_video.mp4'

Turns out the QMediaPlayer is keeping the file open on Windows. We have to close the file by giving our QMediaPlayer a null QMediaContent, before we can write to feature_video.mp4.

Resolved by #109


Add a Sass build step

Is your feature request related to a problem? Please describe.
We use regular CSS right now and it's fine but verbose.
Describe the solution you'd like
I want to see Sass.
Describe alternatives you've considered
We could use less but there's not a maintained Go port so we would have to add npm to the stack :(.
Additional context
If we have a development Docker image we could have it watch the .scss files and re-run sass.

https://github.com/sass/dart-sass#in-docker


Content bug in post view

The content of the following post is not showing up properly in the PWA.
Link: https://arquitecturaideal.com/alfombras-gan-para-crear-espacios-acogedores/

I'm going to take a look

Closed in favor of https://github.com/frontity/wp-plugin/issues/29.


Multiple session dicts (vs one) causes stale session data to get stored

With websockets, I commonly have multiple requests in flight, since the websocket one is long-lasting. I'm using sessions for auth, and I have this issue:

websocket connects, auth=False (session dict copy #1)
user POSTs to /login, sets auth=True, sessions saved with auth=True (session dict copy #2)
now websocket closes (this runs response middleware), session gets updated with auth=False because that's what's in the websocket's SessionDict copy #1
all future requests get auth=False instead of True

The reason for this seems to be that each request is using a clone of the SessionDict. If there was just one SessionDict per session key and all requests in that session got that dict, then when the user logged in, the single SessionDict would be updated to True, and then when the websocket closed down, it would just save auth=True as expected.
Is this expected behavior? I'd think it would be better if there was one SessionDict per key, and all requests with that key would share the same session dict so they'd see each other's changes while they're running.
I made a simple change to cache and reuse sessions in memory in base.py; that works OK for me. I'll add it to this issue to see if you like it.

I will look into this.


Resque.enqueue_at accepts ActiveRecord::Duration without erroring

Hello,
Resque.enqueue_in and Resque.enqueue_at are very similar, and I've seen bugs where an ActiveRecord::Duration is passed to Resque.enqueue_at accidentally. However, no error happens.
My suggestion is to add validation that ensures that Resque.enqueue_at requires a full timestamp and not just a ActiveRecord::Duration, and likewise that Resque.enqueue_in  only takes a duration and not a full timestamp.

The enqueue_at might be a little difficult, as it appears to allow a Numeric timestamp also.  Not sure how to improve that one.

I'm not sure I understand why we want to limit Resque.enqueue_in to only Numerics. Time, by default does a type check against other Time values and then performs a type cast before doing the add.
When you mix in ActiveSupport, it does its own thing where it handles ActiveSupport::Durations in a way that it returns a Time object.
What if we went with this alternative to #610?
       def enqueue_in(number_of_seconds_from_now, klass, *args)
+        number_of_seconds_from_now = Integer(number_of_seconds_from_now)
         enqueue_at(Time.now + number_of_seconds_from_now, klass, *args)
       end

       def enqueue_in_with_queue(queue, number_of_seconds_from_now,
                                 klass, *args)
+        number_of_seconds_from_now = Integer(number_of_seconds_from_now)
         enqueue_at_with_queue(queue, Time.now + number_of_seconds_from_now,
                               klass, *args)
       end

That would let us keep the niceties of this syntax:
Resque.enqueue_in(30.minutes, FooWorker)

over the harder-to-reason about:
Resque.enqueue_in(1_800, FooWorker)
# or
Resque.enqueue_in(30 * 60, FooWorker)

or the easy-to-forget:
Resque.enqueue_in(30.minutes.to_i, FooWorker)

As for Resque.enqueue_at, it looks like there's already some coercion that happens to make a job enqueue immediately if the timestamp is in the past. Other than that, I'm not sure what can be done to help with the initial request, since the interface is only #to_i for timestamps.
PS: I'm happy to submit a PR if you are interested.


Tutorial for XCode error

Hi, I am able to follow your tutorial fine to load up Kitura server via Terminal.
However when I run the command
swift build -X
to create a xCode project and try to build it, I get this:

Why is that?
My package is literally:
import PackageDescription

let package = Package(
    name: "myFirstKitura",
    dependencies: [
        .Package(url: "https://github.com/IBM-Swift/Kitura.git", majorVersion: 0, minor: 17)
    ]
)

The swift version I am using is:
Welcome to Apple Swift version 3.0-dev (LLVM dffa09ffd8, Clang 9f0d189820, Swift 1c720b8f84).

Is that Swift 3 tech preview 1 running on Xcode 8 beta?  If so, I'm afraid that is not yet supported.
Please use Xcode 7.3.1 with DEVELOPMENT-SNAPSHOT-2016-05-09-a of Swift - see DEVELOPMENT-SNAPSHOT-2016-05-09-a


CORS troubleshooting

After uploading jsons to the new data.covid19.ca.gov host and using them to power charts we are seeing intermittent CORS issues in our build tools that are retrieving these charts.
So far we have applied the:

CORS policy on S3
modified CloudFront to respond to OPTIONS requests

At this point we are no longer seeing any issues in our testing in browsers
We are still seeing issues in the git action build tool which tries to read chart svgs to pregenerate the charts for CDPH
The failures are intermittent and not easily reproducible.
We have rolled back all code referencing this new json host.

We sorted out the issues with CORS on CloudFront, we do need to apply the custom CORS policy we created for CloudFront in addition to all the other steps. This info is documented in the CORS section of the infrastructure setup doc: https://github.com/cagov/odi-engineering/wiki/Setting-up-a-new-headless-site-instance
CORS verified on data.covid19.ca.gov and that domain is now used in production for covid19.ca.gov chart data retrieval


Copy and paste problem of pandas dataframe

Environment data
Version: 1.65.0-insider
Commit: 97c1e76d668d23d568044feb31083407f4c4b1ed
Date: 2022-02-07T08:57:29.966Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Linux x64 5.10.92-14504-gce3218298464

Jupyter Extension version (available under the Extensions sidebar): 2022.2.1001822818
Python Extension version (available under the Extensions sidebar): 2022.1.1814617073-dev
OS (Windows | Mac | Linux distro) and version: Ubuntu
Python and/or Anaconda version: Python 3.8
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): poetry
Jupyter server running: Remote

Behaviour
Copy and paste of a pandas dataframe pastes the cell content sometimes. Also, the context menu does not open on right-click on the mouse and the selection color does somehow change from blue to grey.
https://user-images.githubusercontent.com/44866753/153435483-d1a09347-5b96-426f-bd2d-23ad37bcdd20.mp4
Steps to reproduce:
import pandas as pd
df = pd.DataFrame({"A": [1, 2, 3], "B": [4, 5, 6]})
df

#142974 duplicate, sorry (just searched here after it was transferred to this repo).

This should be fixed now.


No data transfer with RPI 3/4

Hello.
I have some difficulties to run successfully the script. After some issues with MQTT connexion (Remove the space after "=" for login and password in config file), i have this :
root@raspberrypi:/opt/miflora-mqtt-daemon# sudo python miflora-mqtt-daemon.py

Xiaomi Mi Flora Plant Sensor MQTT Client/Daemon
Source: https://github.com/ThomDietrich/miflora-mqtt-daemon

[2021-03-20 16:44:00] Connecting to MQTT broker ...
[2021-03-20 16:44:00] MQTT connection established

Adding sensor to device list and testing connection ...
Name:          "Basilic"
[2021-03-20 16:44:01] Attempting initial connection to Mi Flora sensor "Basilic" (C4:7C:XX:XX:XX:XX)

An that's all. Nothing happend.
The script runs on RPI 3, Sensor is detected by the RPI.
I tried to update blueZ with version 5.56 without success.
i tried to switch differents libs.
#from btlewrap import BluepyBackend, GatttoolBackend, BluetoothBackendException
#from bluepy.btle import BTLEException
from btlewrap.bluepy import BluepyBackend

Someone will have an idea on the issue origin, or success to run the script on RPI3 ?
Best regards.

Hey @Chouille, it's weird you are not seeing any error pop up after a certain timeout. Still, the error is very likely related to the bluetooth setup on your system. There were quite a few hurdles over the years and I can't help specifically. Did you receive results during the scan? https://github.com/ThomDietrich/miflora-mqtt-daemon#configuration

Thanks @ThomDietrich for your answer.
I changed the code just in order to try to solve the issue by myself before to open a thread. I recopy your script, and let turn it currently. Wait and see.
My config if you see something strange :
`[General]
reporting_method = mqtt-json
adapter = hci0
[Daemon]
enabled = true
period = 300
[MQTT]
hostname = localhost
port = 1883
keepalive = 60
basic_topic = miflora
homie_device_id = miflora-mqtt-daemon
username=XXXXXXXXXXXXXX
password=XXXXXXXXXXXXXX
[Sensors]
Basilic            = C4:7C:XX:XX:XX:XX`
After a night, i interrupt the command and i have this :
`
Adding sensor to device list and testing connection ...
Name:          "Basilic"
^C^CTraceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/miflora/miflora_poller.py", line 128, in firmware_version
res = connection.read_handle(_HANDLE_READ_VERSION_BATTERY)  # pylint: disable=no-member
File "/usr/local/lib/python3.7/dist-packages/btlewrap/bluepy.py", line 27, in _func_wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/btlewrap/bluepy.py", line 75, in read_handle
return self._peripheral.readCharacteristic(handle)
File "/usr/local/lib/python3.7/dist-packages/bluepy/btle.py", line 530, in readCharacteristic
resp = self._getResp('rd')
File "/usr/local/lib/python3.7/dist-packages/bluepy/btle.py", line 407, in _getResp
resp = self._waitResp(wantType + ['ntfy', 'ind'], timeout)
File "/usr/local/lib/python3.7/dist-packages/bluepy/btle.py", line 347, in _waitResp
rv = self._helper.stdout.readline()
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/btlewrap/bluepy.py", line 27, in _func_wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/btlewrap/bluepy.py", line 64, in disconnect
self._peripheral.disconnect()
File "/usr/local/lib/python3.7/dist-packages/bluepy/btle.py", line 454, in disconnect
self._getResp('stat')
File "/usr/local/lib/python3.7/dist-packages/bluepy/btle.py", line 407, in _getResp
resp = self._waitResp(wantType + ['ntfy', 'ind'], timeout)
File "/usr/local/lib/python3.7/dist-packages/bluepy/btle.py", line 339, in _waitResp
raise BTLEInternalError("Helper exited")
bluepy.btle.BTLEInternalError: Helper exited
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "miflora-mqtt-daemon.py", line 206, in
flora_poller.fill_cache()
File "/usr/local/lib/python3.7/dist-packages/miflora/miflora_poller.py", line 85, in fill_cache
firmware_version = self.firmware_version()
File "/usr/local/lib/python3.7/dist-packages/miflora/miflora_poller.py", line 130, in firmware_version
_HANDLE_READ_VERSION_BATTERY, format_bytes(res))
File "/usr/local/lib/python3.7/dist-packages/btlewrap/base.py", line 55, in exit
self._cleanup()
File "/usr/local/lib/python3.7/dist-packages/btlewrap/base.py", line 62, in _cleanup
self._backend.disconnect()
File "/usr/local/lib/python3.7/dist-packages/btlewrap/bluepy.py", line 31, in _func_wrapper
time.sleep(RETRY_DELAY)
KeyboardInterrupt
`
Don't worry, i understand the issue is problably due to my device. I'm not an expert but if you have some idea of things i can check, i'm listen :)

Because it was anyhow needed: I've just installed a fresh system for this.

Raspberry Pi Zero W
Latest buster lite image (+ ssh and wifi preparation)
the typical tzdata and locale reconfigure
Compiled and installed bluez, see https://learn.adafruit.com/install-bluez-on-the-raspberry-pi/installationhttps://learn.adafruit.com/install-bluez-on-the-raspberry-pi/installation
sudo hcitool lescan shows my devices
Daemon seems to work:

Hello.
I followed your instructions and restart setup from beginning + compile/install bluez, but same result :
`
pi@raspberrypi:/opt/miflora-mqtt-daemon $ sudo python3 miflora-mqtt-daemon.py
Xiaomi Mi Flora Plant Sensor MQTT Client/Daemon
Source: https://github.com/ThomDietrich/miflora-mqtt-daemon
[2021-03-28 21:47:03] Connecting to MQTT broker ...
[2021-03-28 21:47:03] MQTT connection established
Adding sensor to device list and testing connection ...
Name:          "Basilic"
`
Stupid question, my sensor is this one : https://www.amazon.fr/gp/product/B01LXOJSWA/
Does the script will work with it ? they says "Xiaomi Plant Monitor"...

Hello.
I received my Pi zero and tested the script : works like a charm.
So, don't know what failed on RPI3/4. I don't have enough knowledge to solve, but if i found the solution, be sure i will update.
I will change the title to be more explicit on the issue, maybe someone will solve it.
Thanks again for your help.

Thanks.
I'm honestly quite annoyed by Rasbian. It is supposed to be a baseline system for Raspi tinkerers and I honestly never encountered a worse linux default setup, at least not in the last 20 years.
The software must work with all Raspberry Pis but maybe a slightly different setup is needed. If you are not able to get it working you can always just use openHABian. It features openHAB (which you can disable if not needed) and a correctly configured bluetooth stack.


Add tooltip and click handler to Funnel Charts

PR Checklist
Please check if your PR fulfills the following requirements:

[ ] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Currently Funnel Charts don't support tooltips or an onClick handler to return relevant data
Issue Number: GOOD-76
What is the new behavior?
Funnel Charts now support tooltips on hover and an onClick handler to return relevant data
Does this PR introduce a breaking change?
[ ] Yes
[x] No

Other information
https://github.com/reaviz/reaviz/assets/40581813/fc1aa4d7-215b-458f-9ab9-3fbb23507c22

@ghsteff - Is this ready for another review?

@ghsteff - Is this ready for another review?

No I found a little issue with some of the radial charts that I'm gonna address

@ghsteff - Is this ready for another review?

Ok ready for another review