Fix nightly CBMC regressions

Description of changes:
#2142 broke the nightly CBMC regressions, as the refactoring caused the CBMC release to be installed, which shouldn't be installed in the nightly CBMC regressions since we build it from source.
This PR fixes this issue by updating the CBMC nightly workflow to call the individual setup scripts (instead of relying on the setup action) so that it can skip installing CBMC.
Resolved issues:
Related RFC:

Optional #ISSUE-NUMBER.
Call-outs:

Testing:

How is this change tested? CI

Is this a refactor change? Partly.

Checklist

[X] Each commit message has a non-empty body, explaining why the change was made
[X] Methods or procedures are documented
[X] Regression or unit tests are included, or existing tests cover the modified code
[X] My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

Wouldn’t it make for a much smaller change if you just uninstalled CBMC after running the scripts?

Wouldn’t it make for a much smaller change if you just uninstalled CBMC after running the scripts?

Thanks for the suggestion @tautschnig. The current failure occurs while installing CBMC via the scripts, because it's already installed (by building from source). We could perhaps fix that by reversing the order so that the CBMC installation through the scripts is done first, and then uninstalled before installing from source. But we would also need uninstallation scripts that are platform dependent (e.g. brew uninstall/dpkg -r).

Wouldn’t it make for a much smaller change if you just uninstalled CBMC after running the scripts?

Thanks for the suggestion @tautschnig. The current failure occurs while installing CBMC via the scripts, because it's already installed (by building from source). We could perhaps fix that by reversing the order so that the CBMC installation through the scripts is done first, and then uninstalled before installing from source. But we would also need uninstallation scripts that are platform dependent (e.g. brew uninstall/dpkg -r).

But isn't it really just a (literal) one-liner for each platform? So I'd support the idea of reversing the order in the interest of keeping things as simple as possible.

I have a question.... if we do revert the order, shouldn't the installation from source override the system one?

I just recalled that the current order (installing CBMC from source first) was to avoid an issue with building CBMC from source when it is checked out after Kani is. See #2128 for details.

I just recalled that the current order (installing CBMC from source first) was to avoid an issue with building CBMC from source when it is checked out after Kani is. See #2128 for details.

What I don't understand is why these relationships/conflicts need to exist. Can't we just fix this by checking out and building CBMC in a different directory, somewhere next to the kani folder rather than as a subdirectory? Or work around the problem by deleting the Cargo.toml file? Maybe I'm too eager in applying it, but I do prefer to abide by KISS.

if we do revert the order, shouldn't the installation from source override the system one?

It should, but I wasn't 100% sure whether the installation from source, which is done using cmake --target install places the binaries in the same path that brew install and dpkg do so that they get overridden, and if they don't, that the built-from-source binaries are the ones that get picked up. That's why I thought it's safer/cleaner to not perform the CBMC system installation in the first place.

Again advocating for the KISS approach: to avoid even the need to re-order, would it be easier to build CBMC from source... then don't even install it, just set PATH=$(pwd)/cbmc-src/build/bin:${PATH} in subsequent steps. Kani isn't linking against CBMC, right, it's just calling binaries?

So I'd support the idea of reversing the order in the interest of keeping things as simple as possible.

I opened an alternative PR (#2161) which does that. I'm OK with either approach.

then don't even install it, just set PATH=$(pwd)/cbmc-src/build/bin:${PATH} in subsequent steps.

That's a good idea. I'll update #2161 to do that.

I think #2161 is much cleaner.

Closing in favor of #2161.


Fixed Get() method

See #6
PS: I don't know why GitHub also selected my other commits which have already been merged

Try this:
git add remote opensourceaix https://github.com/OpenSourceAIX/ColinTreeListView.git
git fetch opensourceaix
git reset --soft opensourceaix/master

This may works

Hi there, just want to merge and suddenly found that your commit seems have some problem.
It rewrites the whole repository line by line, even the LICENSE is changed...
Could you try to fix that commit so that I can merge it safely?

I don't know what's wrong with my repo, I guess it would be best that you make the changes (it's only two lines) and I refork again.


?_page= or &_page= no longer working.

@MGSimard - As noted by the developer of this package, the current version of json-server is a beta of V1, and there are some changes to the API endpoints. If you are looking for the older endpoints, you should install the older version of this package (pre 1.x.x). Check the Releases link on this repo to see the version history.

@dgilleland why do you think so?
requesting ?_page=3 gives me this:
{
  "first": 1,
  "prev": 2,
  "next": 4,
  "last": 126,
  "pages": 126,
  "items": 1259,
  "data": [
      ...

prev is 2, next is 4, which means I am on page 3.


404 error API

Hi,
I try to test the project. I've updated the .env with my values but when I want to register, I've a 404 error on API (log)
POST http://xxxxxx/api/v1/auth/login 404 (Not Found)
This is my .env:
`APP_ENV=production
APP_KEY=base64:xxxxx=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://xxxx.io
DB_CONNECTION=mysql
DB_HOST=<IP_ADDRESS>
DB_PORT=3306
DB_DATABASE=xx
DB_USERNAME=xx
DB_PASSWORD=xxxx
BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
REDIS_HOST=<IP_ADDRESS>
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PERSONAL_CLIENT_ID=1
PERSONAL_CLIENT_SECRET=xxxxxxxxx
PASSWORD_CLIENT_ID=2
PASSWORD_CLIENT_SECRET=xxxxxxxx
`

Do you have an idea ?

your APP_URL and api url for the frontend should be the same

Sorry, I'm not sure to understand. Where can I set the API URL ?

I've any route who works, for examples theses 2 routes send 404:
http://xxxxx.io/img/moeen.jpg
http://xxxxx.io/api/v1/auth/login

The img is not a good example because this doesn't exist ...lol
But the problem persist for all api call

.env
APP_URL=http://xxxx.io
make sure you app sending request to above mentioned APP_URL


Facing issue while accessing elements within Iframe

We are testing an UI app (Technology - Angular) which has "Iframe" elements.
There is a #document(html ->body-.>div->input) structure inside the Iframe .
We need to access the textbox elements inside the html structure within the Iframe. These elements are not located when we tried to access it using taiko (used different locators such as visible text, Id , relative & full xpath). Please help us resolving this issue.   taiko version is 1.3.2.

Have you tried the $ selector? You can pass it a function that used the native DOM api.
What I would try is to pass in a function that uses document.querySelector("iframe").contentDocument.querySelector("input[type='text']") to get a handle on an element within an iframe and try manipulating that?

@selvaganesan2005 I was facing the same issue a while ago. I could just solve this issue by running the tests in headless mode in which I had no problems accessing elements inside an iframe. But we could not solve the issue to access the elements in headful mode.


Update java-jwt to 3.14.0

Updates com.auth0:java-jwt from 3.10.3 to 3.14.0.
GitHub Release Notes - Changelog - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.auth0", artifactId = "java-jwt" } ]

labels: library-update, semver-minor

Superseded by #74.


Health checks running after resource is stopped

Is there an existing issue for this?

[x] I have searched the existing issues

Describe the bug
I see health checks to continue to run and update the UI after stopping a resource:

Is this intended?
What I would expect when the resource is no longer in the running state:

Timer that periodically runs health checks stops.
Any health checks that are in-progress are aborted and the result is ignored.
Health reports are updated to have a null state.
Health reports with a null state are pushed down to the UI so the resource details displays the message, "Waiting for health checks".

Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version info
No response
Anything else?
No response

This seems to have been intended behavior, but I agree with you.

Health reports are updated to have a null state.

If a running resource was failing, and the health reports had data about the failure, then clearing out those reports when the resource is stopped would make it harder to debug the failure. Keeping the health reports around after stopping seems like it could be helpful when things aren't working correctly.


File Error

This demo can't redirect I/O correctly.
Though I think this project will be no longer maintained.

Well, patches are welcome. I know the tool is pretty broken on X86_64, but think it should work fine on X86.


Clicking the button to add data from iRODS shows a form that needs some text edits.

Click to add a new resource
Click the new "here" button to add a resource from iRODS
The form that is displayed needs some text edits:

[x] Top text: Change "Sign in" to "Sign in to an iRODS Server"
[x] Change "Password" to "iRODS Password" so that they know not to use their HydroShare password here
[x] Change "Username" to "iRODS Username" for the same reason
[x] Move "Host" to above "Port"

@danames This has been fixed and merged to develop, and beta has been updated with the latest develop. So you can test it out on beta and close the issue if it works as expected.

Verified on pre-release beta.


MergeVariableRefactoring

In the case of MergeVariableRefactoring, the types are not mapped properly.
Commit: https://github.com/JetBrains/intellij-community/commit/7655200f58293e5a30bf8b3cbb29ebadae374564
File: BreakpointManager.java

At the moment, the feasible solution can be avoiding matching types (in the case of having PrimitiveType vs SimpleType) and only focusing on the names. https://github.com/pouryafard75/RM-ASTDiff/commit/2b945a48f9a47750cfd14a9963da487f5f7ae8d0


Add a new LuceneAppender which writes logging events to a lucene index library.

Add a new LuceneAppender which writes logging events to a lucene index library.The log4j2.xml configuration is as follows:
<Lucene name="lucene" ignoreExceptions="true" target="/target/lucene/index" expiryTime=“1296000”>
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %class{36} %L %M - %msg%xEx%n"/>
<IndexField name="time" pattern="%d{UNIX_MILLIS}" type="LongField"/>
<IndexField name="level" pattern="%-5level" />
<IndexField name="content" pattern="%d{HH:mm:ss.SSS} %-5level %class{36} %L %M - %msg%xEx%n"/>
</Lucene>
this appender relies on the Lucene 5.5.4 version.
this patch adds the corresponding test cases.

Which JIRA issue is this?

Hi,
I can't recall if we have one but I brought in the code locally and started
fiddling with it.
Please see the Lucene 5 branch here:
https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;a=shortlog;h=refs/heads/Lucene5
Gary
On Fri, Jul 7, 2017 at 1:49 PM, Mikael Ståldal<EMAIL_ADDRESS>wrote:

Which JIRA issue is this?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/apache/logging-log4j2/pull/82#issuecomment-313789609,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABIfN0Al2drnd0RlBqO2T2r9t2koHkkQks5sLpnwgaJpZM4Ns1oB
.

Note that the idea with the "5" naming is to have both modules log4j-lucene5 now and later log4j-lucene6
Gary

This PR does not have a corresponding issue.
The code is used within our company and we think he has reusability, so it contributes to the community.
The functionality has been tested and no problem.

I created a branch called "lucene5" in git. Can you test this branch?

Can you provide any documentation for the new appender? That would help a LOT! :-)

I can provide, but what does it contain? In what format?

You can add docs to the appenders page. The basic format is HTML currently. You can just follow the patterns established by all the other appenders in that page.

https://www.zybuluo.com/liyuj/note/825932
I wrote a document. Can the community help me check?

Thank you for your submission @liyuj ! Can you try the "Lucene5" branch and confirm that it works for you?

Is what is happening
in org.apache.logging.log4j.lucene5.appender.LuceneAppender.stop(long,
TimeUnit) not good enough?
Gary
On Mon, Jul 24, 2017 at 8:30 PM, asfbot<EMAIL_ADDRESS>wrote:

kenneth mcfarland on<EMAIL_ADDRESS>replies:
Why don't you call close() or commit() on the indexwriter? If log4j2 is
serious about being an auditing platform some attention to flushing and
such should be addressed. Note I am not an expert but I believe I am
somewhere in the ballpark.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/apache/logging-log4j2/pull/82#issuecomment-317618689,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABIfN6D_jsLHaJif7ngIlu4q1HLTGYJdks5sRWFQgaJpZM4Ns1oB
.

committing each time is very affecting performance.
The practice now is to commit once per minute, commit too often, will lead to performance degradation, the submission interval is too long, will lead to the query can not be queried to the nearest log.
This time interval is dynamically adjustable,  we don't think it's very meaningful at the moment.

What is the current state of this PR?
If want to continue, what do I need to do?

Updating your PR to be based on the latest master would be great. In the master branch, we've divided plugins into more modules now, so there's more examples as well.


Fix invalid reST in HISTORY.rst

I think this is the reason the README isn't rendered on PyPI.
I'm not sure how to keep the s there and be valid so I just removed it.

Thanks, hopefully this sorts it out!


feat: Add aws spot instance request

Add support for aws_spot_instance_request
Fixes: #1223

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

Thanks for PR this @lucastercas, I'll take a peek at this when I get a moment in the next few days.

Any update on this?


Configuration snippits in README.md and docs/* are outdataed

The configuration snippet in README.md and those throughout the documentation were not updated alongside #16, as such the continue to contain the outdated, verbose, configuration format. These snippets should be updated to conform to the current format.

I think I had already updated Creating a Device with the new ComponentConfig setup :thinking:

Have I missed any pages?

can this Issue be closed? @garryod


docs for bootstrap directory needs update

Laravel Version
11
PHP Version
8.3
Database Driver & Version
No response
Description
the bootstrap directory doc is outdated and need to get updated according to the new laravel 11 design.
it says that You should not typically need to modify any files within this directory. but that's not true with laravel 11.
Steps To Reproduce

Fixed: https://github.com/laravel/docs/pull/9507.


[Fix #2739] FrozenStringLiteralComment when_needed adds a comment to all files targeted to Ruby 2.3+

This fixes #2739. I changed when_needed (the default) to added the frozen_string_literal comment to all files if the TargetRubyVersion is set to 2.3+. I considered getting rid of the configuration all together and relying solely on the user to enable the cop. With frozen string literals being the default in Ruby 3, I felt that offering a configuration that enables the cop for Ruby 2.3 was important.

On ruby 2.3 the EnforcedStyle is behaves the same whatever setting I put, if I assign EnforcedStyle as 'when_needed', it shouldn't force a different setting.

@basex, yes, the settings always and when_needed act exactly the same if your TargetRubyVersion is set to 2.3+. This was intentionally done. when_needed was the only way that I could think of to have this cop enabled by default for TargetRubyVersion 2.3+, and disabled for anything lower than that. I feel that the frozen string literal comment is important to any code base running Ruby 2.3 since it is going to be default in Ruby 3.0. Without the configuration option when_needed, I this cop would need to be disabled by default. I didn't expect too many people to look through the disabled cops to find ones to enable. always is designed for code bases that support Ruby versions less and greater than 2.3 and want to future proof their application.
I am not sure that I understand your comment about it shouldn't force a different setting. Can you elaborate on this?

If you run rubocop with ruby 2.3 with the auto correct flag, this is going to add frozen_string_literal: true to all files in the project. Since the auto correct flag should be only for safe auto corrections and this automatic addition is not safe at all, this shouldn't be the default. The code will probably won't even run if the "frozen_string_literal: true" is always added without any code analysis.

That is an unfortunate side effect of this change. I will leave the judgement call of this should auto-correct by default up to @bbatsov.


Creating a new Engine during script execution doesn't work

I don't have a simple test case for this right now, but the situation is that I have rooms in my game, and each room has its own ISB Engine for execution of scripts. So when a method - called during the execution of an ISB script - creates a new Room and a new Engine(), I get strange behaviour and esoteric bugs. (For example, a StringValue I had as parameter became a number.) I solved the problem by moving the creation of the new Engine() to the next frame.
The question is if this is expected behaviour, or if this is some kind of edge case?

... when a method - called during the execution of an ISB script - creates a new Room and a new Engine() ...

Did your program behave like the following steps?

Creates and runs Engine A.
Engine A compiles and runs Script X.
Within Script X, a BASIC statement calls a custom lib function, say, LibFoo.Bar().
The C# implementation of LibFoo.Bar() creates and runs a new engine, say, Engine B.
Strange behaviors are observed when Engine B is running some other BASIC script, say Script Y.

Is this the situation that you had observed?

Yes, exactly.

ISB supports multiple engines by design. But I've never carefully considered the nested case such as engineA->scriptX->engineB->scriptY.
I created two experimental branches to demo the nested-engine case. So far everything works correctly. No strange issue is detected. Feel free to modify them and try something that is more relevant to your case.
Exp 1: Start an inner ISB Engine from Foo.Bar() - The outer engine calls the blocking version of Run...
https://github.com/wixette/isb/blob/exp_wixette_innerengine_blocking/unity_integration_demo/Assets/Scripts/Program.cs
Exp 2: The outer engine calls the non-blocking version of Run... as in a Unity coroutine.
https://github.com/wixette/isb/blob/exp_wixette_innerengine/unity_integration_demo/Assets/Scripts/Program.cs

I can't recreate my test case unfortunately, so if you want you can close this issue, and if it should ever come back for me, I would just reopen it.


Single list element causes clojure.lang.PersistentVector cannot be cast to clojure.lang.Name

This is perhaps the most befuzzling thing I've come across in a while.
I have a big vector of schemas generated by this library. They are all returned by (get-all-schemas) which has the job of loading all the schemas in from the namespaces under api.datomic-schemas.*.
When I call (s/generate-schema (get-all-schemas)), I get
CompilerException java.lang.ClassCastException: clojure.lang.PersistentVector cannot be cast to clojure.lang.Named
Hmm...surely there must be an issue with an element or two in this array
after much debugging
; Like nth but removes instead of retrieves the item
(defn drop-nth [n coll] (->> coll (map vector (iterate inc 1)) (remove #(zero? (mod (first %) n))) (map second)))

(s/generate-schema (drop-nth 5 (get-all-schemas))) ; Error
(s/generate-schema (drop-nth 10 (get-all-schemas))) ; Error
(s/generate-schema (drop-nth 12 (get-all-schemas))) ; Error
(s/generate-schema (drop-nth 18 (get-all-schemas))) ; No error! 18 is the problem child

; To confirm:

(s/generate-schema (vector (nth (get-all-schemas) 18))) ; No error

;  wat

Here's the value of (vector (nth (get-all-schemas) 18))
[{:fields {"description" [:string #{}], "weight" [:double #{}], "genus" [:string #{}]}, :name "species", :basetype :species, :namespace "species"}]

UPDATE:
Removed the "problem-child" schema to see if it would work without it. Same error, different schema BUT still number 18. Does this library somehow have a problem with the number 18? There are 30 total schemas returned by (get-all-schemas)

Hi, that is indeed strange.. That schema looks rather benign! Perhaps there's something odd about 17 instead that sets 18 up for failure? I can't imagine how though...
Could you pop in a full as possible stacktrace along with as small as possible schema that fails? ie - drop n >= 12, take m until fail?
PS. I notice drop-nth drops on index mod n - is it possible that it drops 18, 36, 54, 72? you did say 'big vector'..

@CmdrDats
Just checked the full stacktrace and found the error is on this invocation https://github.com/Yuppiechef/datomic-schema/blob/master/src/datomic_schema/schema.clj#L42
at clojure.core$name.invoke(core.clj:1518)
	at datomic_schema.schema$field__GT_datomic.invoke(schema.clj:42)
	at clojure.lang.AFn.applyToHelper(AFn.java:171)
	at clojure.lang.AFn.applyTo(AFn.java:144)
	at clojure.core$apply.invoke(core.clj:630)
	at clojure.core$partial$fn__4232.doInvoke(core.clj:2472)
	at clojure.lang.RestFn.invoke(RestFn.java:421)
	at clojure.core.protocols$fn__6074.invoke(protocols.clj:79)
	at clojure.core.protocols$fn__6031$G__6026__6044.invoke(protocols.clj:13)
	at clojure.core$reduce.invoke(core.clj:6289)
	at datomic_schema.schema$schema__GT_datomic.invoke(schema.clj:69)
	at clojure.lang.AFn.applyToHelper(AFn.java:160)
	at clojure.lang.AFn.applyTo(AFn.java:144)
	at clojure.core$apply.invoke(core.clj:626)
	at clojure.core$partial$fn__4228.doInvoke(core.clj:2468)
	at clojure.lang.RestFn.invoke(RestFn.java:421)
	at clojure.lang.ArrayChunk.reduce(ArrayChunk.java:63)
	at clojure.core.protocols$fn__6093.invoke(protocols.clj:98)
	at clojure.core.protocols$fn__6057$G__6052__6066.invoke(protocols.clj:19)
	at clojure.core.protocols$seq_reduce.invoke(protocols.clj:31)
	at clojure.core.protocols$fn__6076.invoke(protocols.clj:60)
	at clojure.core.protocols$fn__6031$G__6026__6044.invoke(protocols.clj:13)
	at clojure.core$reduce.invoke(core.clj:6289)
	at datomic_schema.schema$generate_schema.invoke(schema.clj:83)
	at datomic_schema.schema$generate_schema.invoke(schema.clj:81)
	at api.core$eval9767.invoke(core.clj:68)
	at clojure.lang.Compiler.eval(Compiler.java:6703)
	at clojure.lang.Compiler.load(Compiler.java:7130)

ahah! figured it out. your intuition about something funky with number 17 was correct.
17 was:
(schema thing
  (fields
    [field [:a :b :c] :many])))

Was missing the enum identifier!
Thanks a bunch :dancer:

Fantastic - glad you got it sorted out :) Please could you open a ticket for me to make it more obvious where the problem - throw a "Your schema thing on field does not seem to have a valid type: [:a :b :c]" would be a whole lot nicer to have for everyone - If you're feeling generous, a PR would be even better! :)


[BUG] Filters work wrongly with pseudonymized fields

Describe the bug
Filters work wrongly with pseudonymized fields
To Reproduce
Steps to reproduce the behavior:
Create a filter on a pseudonymized field. For instance:

Go to an OpenSearch Dashboards instance where some field in some index is pseudonymized for some users. For instance, the default user for https://eclipse.biterg.io has all the author_org_name fields pseudonymized.
Go to the Discover app.
Select the pseudonymized field and make sure several values are listed
Create a filter on a value of the pseudonymized field. For example: right-click and select an encircled plus or minus sign to filter that value.
Maybe, click on the Refresh button.

If the filter filters the value in no records match and the list is shown empty.
If the filter filters the value out, the filtered value is still shown in the list.

The same behaviour happens when creating the filter from a dashboard, either with the GUI controls or coding it as a DSL query.
Expected behavior

If the filter filters the value in the rest of the values should disappear from the list.
If the filter filters the value out, the rows with that value should vanish from the list.

OpenSearch Version
2.11
Dashboards Version
2.11
Plugins

repository-s3
repository-gcs

More details
Screenshots
Filtering in yields an empty list:

Filtering out keeps the banned value:

There are at least 2 values available (last page):

Host/Environment (please complete the following information):

OS: Debian 12
Browser and version: Firefox 115.10.0esr (64-bit)

Additional context

[Triage] Hi @fioddor thank you for filing this issue. Someone will take a look to see if we can reproduce this issue and follow up with further fixes for any bugs.


Patch to disable layout for mojo/templates

Hello
in cases

 $app->defaults(layout=>'foo',)
or $c->render(..., layout=>...)

i think we needs prevent rendering mojo/templates trought layout

This pull request is very incomplete. http://mojolicious.org/perldoc/Mojolicious/Guides/Contributing#CONTRIBUTING-CODE


bug: Vite Plugin tries to compile tsx files for React Components

Please provide the environment you discovered this bug in.
I've been using react with typescript in astro and its working ifne but, when i tried integrating Angualr with astro in the same project i'm getting errors. And Angular compiler is trying to compile react components too.
my React components :  src/components/react/.ts
my Angular components : src/components/angular/.tsx
my other typescript files which handles apis and data manipulation: src/components/*.ts
How can i use both react and Angular components in astro?
How can i configure angular compiler to compile only from the select angular components directory?
Which area/package is the issue in?
astro-angular
Description
my dependencies:
"dependencies": {
"@analogjs/astro-angular": "^0.1.0-beta.3",
"@angular-devkit/build-angular": "^14.2.5",
"@angular/animations": "^14.2.5",
"@angular/common": "^14.2.5",
"@angular/compiler": "^14.2.5",
"@angular/compiler-cli": "^14.2.5",
"@angular/core": "^14.2.5",
"@angular/language-service": "^14.2.5",
"@angular/platform-browser": "^14.2.5",
"@angular/platform-browser-dynamic": "^14.2.5",
"@angular/platform-server": "^14.2.5",
"@astrojs/react": "^1.1.4",
"@types/react": "^18.0.21",
"@types/react-dom": "^18.0.6",
"astro": "^1.4.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rxjs": "^7.5.7",
"tslib": "^2.4.0",
"zone.js": "^0.11.8"
}
my config:
{
"extends": "./tsconfig.json",
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"noEmit": false,
"target": "es2020",
"module": "es2020",
"lib": ["es2020", "dom"],
"skipLibCheck": true
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
},
"files": [],
"include": ["src/**/*.ts"]
}
Please provide the exception or error you saw
Sourcemap for "D:/Program<EMAIL_ADDRESS>points to missing source files
 error   Unable to render WelcomeCard because it is undefined!
  Did you forget to import the component or is it possible there is a typo?
Error: Unable to render WelcomeCard because it is undefined!
Did you forget to import the component or is it possible there is a typo?
    at Module.renderComponent (/node_modules/astro/dist/runtime/server/render/component.js:68:11)
 error   Unable to render WelcomeCard because it is undefined!
  Did you forget to import the component or is it possible there is a typo?
Error: Unable to render WelcomeCard because it is undefined!
Did you forget to import the component or is it possible there is a typo?
    at Module.renderComponent (/node_modules/astro/dist/runtime/server/render/component.js:68:11)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Other information

I would be willing to submit a PR to fix this issue

[X] Yes
[ ] No

Adding tsx files to the tsconfig.app.json should solve the issue
BEFORE:
"include": ["src/**/*.ts"]

AFTER:
"include": ["src/**/*.ts", "src/**/*.tsx"]

This should probably be added to the tsconfig.app.json template as this seems to be pretty common.

thought the file named with *.tsx, it is asking me to make soure what I've named

My Index.astro page

Looks ok to me. Check out this repo for reference which does the same thing and see if there are any differences
https://github.com/manfredsteyer/astro-last-minute

I've gone through the repository he has written React components in *.jsx files I've tried it earlier and its working fine. i was trying to use react with typescript by writing in *.tsx files. thats where the problem is

Looks ok to me. Check out this repo for reference which does the same thing and see if there are any differences
https://github.com/manfredsteyer/astro-last-minute

react components written in *.jsx files are working well. But if i wanted to use typescript with react and try to write react components in *.tsx files, it is throwing a parse error as shown above. Please help me out

Ahh I see. It's probably due to the transform picking up tsx files from this line
https://github.com/analogjs/analog/blob/main/packages/vite-plugin-angular/src/lib/angular-vite-plugin.ts#L176
If you remove the x? from the lines in the file that look like that, it will not try to compile them.

Looks ok to me. Check out this repo for reference which does the same thing and see if there are any differences
https://github.com/manfredsteyer/astro-last-minute

react components written in *.jsx files are working well. But if i wanted to use typescript with react and try to write react components in *.tsx files, it is throwing a parse error as shown above

I dont have this file in my project? sorry i'm a sort of newbie at this depth please help me out.

I see. That file is in the plugin provided by Analog that enables Angular support in Astro. We'll have to put in a fix and release a new version of the plugin.
If you'd like to take a stab at a PR let me know and I'll give you some more specific guidance

https://github.com/himyjan/Angular-Analog-15-next/tree/analog

before remove the x? from the lines:

crash
after remove the x? from the lines:

{
  "name": "@example/framework-multiple",
  "type": "module",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "dev": "astro dev",
    "start": "astro dev",
    "build": "astro build",
    "preview": "astro preview",
    "astro": "astro"
  },
  "dependencies": {
    "@analogjs/astro-angular": "^0.1.0-beta.3",
    "@astrojs/preact": "^1.1.1",
    "@astrojs/react": "^1.1.4",
    "@astrojs/solid-js": "^1.1.1",
    "@astrojs/svelte": "^1.0.1",
    "@astrojs/vue": "^1.1.0",
    "astro": "^1.4.6",
    "preact": "^10.11.1",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "solid-js": "^1.5.7",
    "svelte": "^3.50.1",
    "vue": "^3.2.40",
    "@angular/animations": "^15.0.0-next.5",
    "@angular/common": "^15.0.0-next.5",
    "@angular/compiler": "^15.0.0-next.5",
    "@angular/core": "^15.0.0-next.5",
    "@angular/forms": "^15.0.0-next.5",
    "@angular/platform-browser": "^15.0.0-next.5",
    "@angular/platform-browser-dynamic": "^15.0.0-next.5",
    "@angular/platform-server": "^15.0.0-next.5",
    "@angular/router": "^15.0.0-next.5",
    "rxjs": "^7.5.7",
    "tslib": "^2.4.0",
    "zone.js": "^0.11.8"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^15.0.0-next.4",
    "@angular/cli": "^15.0.0-next.4",
    "@angular/compiler-cli": "^15.0.0-next.5",
    "typescript": "^4.8.4"
  }
}

error

@brandonroberts Thanks for that. I will be looking forward to interact with you.

@MJ-One there are two changes that need to be made to remove the x?.
Here:
https://github.com/analogjs/analog/blob/main/packages/vite-plugin-angular/src/lib/angular-vite-plugin.ts#L125
And here:
https://github.com/analogjs/analog/blob/main/packages/vite-plugin-angular/src/lib/angular-vite-plugin.ts#L176
You can fork this repo, clone it locally, make a branch with those changes, push up the branch, and open a PR.

You can also edit this file directly from GitHub with the link below and make a PR from there.
https://github.com/analogjs/analog/edit/main/packages/vite-plugin-angular/src/lib/angular-vite-plugin.ts
Let me know if you have any questions.

@brandonroberts I've been dealing with the same issue. Switching to .jsx has solved it. I'll switch back once this issue has been solved.


Flutter web app blank white screen

Hi there, I'm develop for web apps then I suddenly into this situation. the flutter run -d chrome gets a white screen in chrome.

here is the simple code:

import 'package:flutter/material.dart';
void main() {
runApp(Container(color: Colors.red,));
}

flutter doctor:

ywd:web_app ywd$ ../flutter-beta/bin/flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 1.22.1, on Mac OS X 10.15.4 19E287, locale en-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.0)
[!] IntelliJ IDEA Ultimate Edition (version 2019.1)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[!] VS Code (version 1.41.1)
✗ Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (2 available)
! Doctor found issues in 3 categories.

It seems sync files to chrome failed? the hot restart btn is disabled.

I suddenly into this situation. before this, I can run my web app correctly. I have switched to master channel to run the 'gallery' app. now I'm in beta channel.

I create a new flutter project and it and run successfully. I can copy files to new project and run correctly. Maybe some config in my previous project cause the problem?

Hi @YWD
I cannot reproduce this issue on the latest master channel.
Can you please upgrade to the latest  master and try again
flutter channel master
flutter upgrade --force
flutter doctor -v

hello @pedromassangocode, could you please clone this project 'https://github.com/YWD/flutter_framework_study.git' and run in chrome? It's a very simple app(I delete all other files) , just render a container but It can't work.

Hi @YWD
I cannot reproduce on master channel.

Please either switch to master channel or wait the fix to land on the beta channel.
Closing this as fixed.

so rude @pedromassangocode  if these are the contribution guidlines flutter talks of in there read me i donot want it


Always on top not working for latest version (1.12)

Always on top not working for latest version (1.12)

Any more details? Seems to be working fine for me with the latest 64-bit binary on Windows 10.


FIX Prompt learning with latest transformers error

The error in PEFT is occurring after this transformers change:
https://github.com/huggingface/transformers/pull/33870
Now, in our tests, some model_kwargs no longer necessarily contain past_key_values, resulting in a KeyError. We now account for this possibility. Affected models were opt and gpt2.
Example of failing CI: https://github.com/huggingface/peft/actions/runs/11256453704/job/31298371856
Note that CI won't detect this issue as it requires the latest transformers install. I ran this locally using pytest tests/test_decoder_models.py -k "(prefix or prompt) and (opt or gpt2)" -v.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Makes sense 👍 (and apologies for breaking things here)


Added compound index. Fixes #93

@bengl wrote, in https://github.com/louischatriot/nedb/pull/208
As discussed in https://github.com/louischatriot/nedb/issues/93, this adds compound indexes.
I went with detecting whether fieldName is an array, rather than also having a fieldNames property in ensureIndex. Either way (or another way) is fine by me though, so let me know if you'd like me to change it.

Merging.


Use samples browser link

DON'T YET MERGE
@briacht Looks like the README is in https://github.com/dotnet/machinelearning-samples/tree/main/samples/modelbuilder/ObjectDetection_StopSigns/StopSignDetection instead of https://github.com/dotnet/machinelearning-samples/tree/main/samples/modelbuilder/ObjectDetection_StopSigns/? (opened https://github.com/dotnet/machinelearning-samples/pull/887 for that)
Also need to enable the "download zip" button for ease of download for page visitors (I pinged you in an issue containing some details on this) (trying to address it in the same PR).

@Youssef1313 Is there anything that I need to do here?

@briacht Nope, already opened https://github.com/dotnet/machinelearning-samples/pull/887 to move the README to the parent directory, but still blocked on how to get the "Download ZIP" button there (this is being discussed in https://github.com/dotnet/docs/issues/23380 - once I know the correct way for doing this, I'll update https://github.com/dotnet/machinelearning-samples/pull/887 and this will be ready to get merged).

Awesome, thank you @Youssef1313 !


feat: one lemma about LocallyFinite

From sphere-eversion; I'm just submitting this upstream.

Thanks! :tada:
bors merge


Update mobile Brigade sign up form

Description
We've recently updated the Brigade sign up form at codeforamerica.org/brigade
We removed the organize and work in government check boxes, instead directing them to new pages. We also added a City field.
We didn't update the mobile form to match!

Files
list-brigades.php
To Dos

[ ] Remove check boxes from mobile form
[ ] Add links to /organize and to the Peer Network
[ ] Add field for City
[ ] Consider rewriting the entire site ...

This will get redone when the marketing team gets me the new site wide signup forms.


REED and FED receiving of multicasts from neighboring routers

According to section <IP_ADDRESS> of thread spec 1.1.1 REEDs and FEDs must maintain one-way links with neighboring routers so that the REED/FED can receive MAC-secured multicasts from them. Currently in openthread FEDs/REEDs use link requests & accepts as required, but drop incoming MAC-secured transmissions that are not from their parents.
This is because the method of validating a MAC source address uses GetNeighbor(), which switches on the current role:
https://github.com/openthread/openthread/blob/1f6528e6c9a600b7f04128ed8f22e841107361f6/src/core/mac/mac.cpp#L1572-L1576
Of course, this behaviour of GetNeighbor is usually needed, so perhaps a special case in Mac.cpp to check the router table too, in the case of an FFD child receiving a broadcast frame?
Example Logs (I used an address query from a non-parent router to generate):
Child establishing one way link:
[6] [INFO]-MLE-----: Receive Advertisement (fe80:0:0:0:2c18:59bb:9377:9a0f,0x8000)
[6] [INFO]-MLE-----: Send Link Request (fe80:0:0:0:2c18:59bb:9377:9a0f)
[6] [INFO]-MAC-----: Sent IPv6 UDP msg, len:92, chksum:1cb5, to:2e1859bb93779a0f, sec:no, prio:high
[6] [INFO]-MAC-----: src: fe80:0:0:0:1432:68b9:eb2d:53b7
[6] [INFO]-MAC-----: dst: fe80:0:0:0:2c18:59bb:9377:9a0f
[6] [INFO]-MAC-----: Received IPv6 UDP msg, len:97, chksum:8e81, from:2e1859bb93779a0f, sec:no, prio:low, rss:-20.0
[6] [INFO]-MAC-----: src: fe80:0:0:0:2c18:59bb:9377:9a0f
[6] [INFO]-MAC-----: dst: fe80:0:0:0:1432:68b9:eb2d:53b7
[6] [INFO]-MLE-----: Receive Link Accept (fe80:0:0:0:2c18:59bb:9377:9a0f,0x8000)

Router table of child:
router table[6] [INFO]---------: execute command: router table

| ID | RLOC16 | Next Hop | Path Cost | LQ In | LQ Out | Age | Extended MAC     |
+----+--------+----------+-----------+-------+--------+-----+------------------+
| 29 | 0x7400 |       29 |         1 |     0 |      0 |  41 |<PHONE_NUMBER>000000 |
| 32 | 0x8000 |        0 |         0 |     3 |      3 |   4 | 2e1859bb93779a0f |

Done

And the filtering upon receiving of a multicast:
[6] [INFO]-MAC-----: Frame rx failed, error:UnknownNeighbor, len:65, seqnum:195, type:Data, src:0x8000, dst:0xffff, sec:yes, ackreq:no
[6] [INFO]-MAC-----: Frame rx failed, error:UnknownNeighbor, len:65, seqnum:196, type:Data, src:0x8000, dst:0xffff, sec:yes, ackreq:no

@CiaranWoodward, good catch!  Would you like to submit a PR with the proposed fix?

@jwhui Sure, I'll look further into it and submit a PR soon


CVE-2007-4559 Patch

Patching CVE-2007-4559
Hi, we are security researchers from the Advanced Research Center at Trellix. We have began a campaign to patch a widespread bug named CVE-2007-4559. CVE-2007-4559 is a 15 year old bug in the Python tarfile package. By using extract() or extractall() on a tarfile object without sanitizing input, a maliciously crafted .tar file could perform a directory path traversal attack. We found at least one unsantized extractall() in your codebase and are providing a patch for you via pull request. The patch essentially checks to see if all tarfile members will be extracted safely and throws an exception otherwise. We encourage you to use this patch or your own solution to secure against CVE-2007-4559. Further technical information about the vulnerability can be found in this blog.
If you have further questions you may contact us through this projects lead researcher Kasimir Schulz.

@TrellixVulnTeam I'm not so keen to introduce more code that is hard to maintain. Why not make this PR directly to Python's source? I see that your group has made a large number of similar PRs to other repositories as well. What have other people said?


bump Rust

@bors r+

:pushpin: Commit faadb86159bf3c65a1e69db0432ba52c980b6324 has been approved by RalfJung

:hourglass: Testing commit faadb86159bf3c65a1e69db0432ba52c980b6324 with merge c86e24772849c143dfab871f39c7c0bff65f6bdc...

:sunny: Test successful - checks-travis, status-appveyor
Approved by: RalfJung
Pushing c86e24772849c143dfab871f39c7c0bff65f6bdc to master...


Plugin support

Is there a way to add plugins?

Is there a way to add plugins?

Sadly, currently, it's not possible because esbuild doesn't allow it. We added scss support manually in Go, but we can't do it for all possible plugins.

is there a way to maybe create new builds of esbuild with plugins? :)

Could you vote for this PR: https://github.com/evanw/esbuild/pull/3539

Ah already done :)

@ia3andy now that the PR got merged, is this possible?


Update bioSurvey_v1 query with _V2 test variables

Details from Julie:
I tested the V2 version of the Blood/urine/mouthwash survey in Dev for<EMAIL_ADDRESS>CID:<PHONE_NUMBER>.
The responses are recorded in the “Testing Scenario 1” tab here: https://nih.box.com/s/fxq2vmww1ww766ix6enpqsio996i6q91.

I updated the FlatConnect.bioSurvey_v1_JP table in dev to reflect any new variables present in the Connect.bioSurvey_v1 table, including any _v2 variables.


Modify executions controller to get a item of executions

To get a item of executions by exid or id

Wow! Thanks a lot!


[SU-64] Allow typing spaces in attribute editor

This fixes a bug introduced in #2895.
When editing attributes, string values and entity names for references need to be trimmed after editing is finished. Currently, they are trimmed in the input's onChange handler, which makes typing a value that includes a space difficult.
https://user-images.githubusercontent.com/1156625/160475145-dde95f75-102d-45de-a4e9-9368d37ec356.mov

Yes, the screen recording is of the new version.


Multiple pay buttons

Hi,
I need to add multiple pay button on the same page but I realized than the stripe.js script is only added to the first button multiple time actually. I guess you could fix it quite easily if you change the injectCheckoutScript() function.

The script is loaded only once as it should. You don't need multiple scripts for multiple buttons.

Well I think if I have 2 buttons, the injectCheckoutScript() is called 2 times, at the end I got 2 times the script loaded (see screenshot).
(https://cloud.githubusercontent.com/assets/2089097/21763661/46a91a64-d65f-11e6-8b74-a5390c01bf0e.png)

Did you download the most recent release? The multiple buttons support was added very recently.

Right, did an update and it's working now :-)
Thanks for the great job!


in this case:service automatically wakes up my app, logging system does't work sometimes

My app user significant-change location service,it may be automatically wakes up,but logging system does't work sometimes in the case. I can't see the log in log file sometimes. alway logging system sometimes work, sometimes does not work in the case。but I use writeToFile method.It can write the log string to file.
1.I turn my app in background.
2.I close iphone
3.wait a moment,i restart iphone.
4.app be automatically wakes up
most of time ddlog work well,sometime it does not work,but writeToFile method work,i can see log in the file wiche writed by writeToFile method.

(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
NSString *ddlogfilePath = ...
NSString *myFilePath = ...

//use ddlog
DDLogFileManagerDefault *fileManagerOne = [[DDLogFileManagerDefault alloc]    initWithLogsDirectory:ddlogfilePath
DDFileLogger *loggerOne = [[DDFileLogger alloc] initWithLogFileManager:fileManagerOne];
[DDLog addLogger:loggerOne withLevel:DDLogLevelAll];
DDLogInfo("app lanch");
// use wirteToFile method
NSString *newString = [NSString stringWithFormat:@"app lanch"];
[newString writeToFile:myFilePath atomically:YES encoding:NSUTF8StringEncoding error:nil];
......
}

@niushuiniu1999 is this still an issue?


added orca detection code

This commit adds 4 scripts for the issue #22  namely,

orcacnn_detection.py: This contains my network configuration for the CNN.
predict.py: This script predicts which images are orcas by using the saved model weights and copies the detected orca calls in a new folder which assists in determining start and end time of orcas.
report.py: This script prints a sklearn classification report. @yosoyjay should I add those 70 pos and neg samples?
determine_calls.py: Determine the start and end time of orca calls.

The Trained Notebook contains one of my trained notebook which achieved 95% test accuracy.
I'll be updating the readme in a few days.

@ZER-0-NE Let's kept this repo focused on code and documentation.  We can archive that data on Google Cloud.


Script to create bootstrap.json config files?

I have been wondering whether someone of you has written a script (shell, Python, whatever) to create the content of the bootstrap.json file based on input data (e.g. certificates, private keys, etc).
Using the Web UI is great but it obviously has limitations. Using a text editor is fun but not when using long certificates.

I guess you talk about leshan-bsserver-demo ?
Just to be sure, you're fine with the current UI but you would like a way to add a new bootstrap configuration via an API ?
OR if the UI was better you don't need this API (like being able to select a file instead of copy/paste Hexa) ?
Currently, the REST API is intended to be used by the UI but I know there is a lot of user which use it directly.

I have been wondering whether someone of you has written a script (shell, Python, whatever) to create the content of the bootstrap.json file based on input data (e.g. certificates, private keys, etc).

Here there is a python script which allows to create the config using REST API. (I didn't test it recently so maybe it is a bit obsolete and should be adapted).
I guess the missing part for you is getting a filepath as input then convert the file content in an array of byte (E.g. : [115,101,99,114,101,116,95,107,101,121])

@hannestschofenig  do you succeed to do what you wanted ?
Do not hesitate to share code here :pray:

Should I close this one ? If you need help do not hesitate to ask ?

I close this one. But feel free to reopen if needed.
If you have a script or any feedback about this, do not hesitate to share.


Closes #208 | Implement dataloaders for UIT_VSFC

Closes #208.
Note that since this dataset supports both topic modeling and sentiment analysis, they both fall into the schema of General Text Classification. During unit testing, please run the command:
python -m tests.test_seacrowd seacrowd/sea_datasets/uit_vsfc/uit_vsfc.py --subset_id uit_vsfc_sentiment
for sentiment analysis and:
python -m tests.test_seacrowd seacrowd/sea_datasets/uit_vsfc/uit_vsfc.py --subset_id uit_vsfc_topic
for topic modeling.
Checkbox

[x] Confirm that this PR is linked to the dataset issue.
[x] Create the dataloader script seacrowd/sea_datasets/my_dataset/my_dataset.py (please use only lowercase and underscore for dataset naming).
[x] Provide values for the _CITATION, _DATASETNAME, _DESCRIPTION, _HOMEPAGE, _LICENSE, _URLs, _SUPPORTED_TASKS, _SOURCE_VERSION, and _SEACROWD_VERSION variables.
[x] Implement _info(), _split_generators() and _generate_examples() in dataloader script.
[x] Make sure that the BUILDER_CONFIGS class attribute is a list with at least one SEACrowdConfig for the source schema and one for a seacrowd schema.
[x] Confirm dataloader script works with datasets.load_dataset function.
[x] Confirm that your dataloader script passes the test suite run with python -m tests.test_seacrowd seacrowd/sea_datasets/<my_dataset>/<my_dataset>.py.
[ ] If my dataset is local, I have provided an output of the unit-tests in the PR (please copy paste). This is OPTIONAL for public datasets, as we can test these without access to the data files.

Hello @ljvmiranda921, I have merged all of your suggestions to the commit, please have a check :)

LGTM! I think we are waiting for @sabilmakbar for final approval.
Tested with
python3 -m tests.test_seacrowd seacrowd/sea_datasets/uit_vsfc/uit_vsfc.py --subset_id uit_vsfc_sentiment --schema 'TEXT'

python3 -m tests.test_seacrowd seacrowd/sea_datasets/uit_vsfc/uit_vsfc.py --subset_id uit_vsfc_topic --schema 'TEXT'

python3 -m tests.test_seacrowd seacrowd/sea_datasets/uit_vsfc/uit_vsfc.py --subset_id uit_vsfc_topic

python3 -m tests.test_seacrowd seacrowd/sea_datasets/uit_vsfc/uit_vsfc.py --subset_id uit_vsfc_sentiment


Add instructions for booting terrascan demo

@cesar-rodriguez we've put together the first version of the GitHub badge!

As far as I can tell, the booted version of Terrascan works. I was able to curl v1/terraform/v12/aws/local/file/scan.
What do you think?

Hi @cesar-rodriguez, did you see the latest version of the docs?

Thanks! Let me know if you have any issues


TypeError occurs when serializing Segments to JSON output format.

Awesome project. Thank you @ahmetoner.
When using the output format set to 'json' and ASR_ENGINE is set to 'faster_whisper', with v1.7.0 I get a TypeError which indicates that the 'Segments' object is not Serializable. I was able to work around by changing the utils.WriteJSON method by using a custom JSON encoder.
class JSONEncoder(json.JSONEncoder):
    def default(s, o):
        if dataclasses.is_dataclass(o):
            return dataclasses.asdict(o)
        return super().default(o)

class WriteJSON(ResultWriter):
    extension: str = "json"

    def write_result(self, result: dict, file: TextIO):
        json.dump(result, file, cls=JSONEncoder)

Not sure if this is the best approach so I didn't raise a PR. Specifically, the signature of the segment is different with my change, as  the segment is an object with field names such as start / end / tokens. In v1.6.0 a segment is an array one has to pluck the values from by index.
J

It seems that with the new release, they faster-whisper modified the response object, and now segments cannot be serialized using the previous approach. Unfortunately, Faster Whisper engine is currently not functioning as expected in release v1.7.0.


What Body should I POST to a string array in db.json?

In db.json:
{
  "items": [
    "A",
    "B",
    "C"
  ]
}

If I wanna add an element "D" into the array "items", what body should I POST to url: "http://localhost:3000/items"?
I tried "D" but get 500 Error: TypeError: Cannot read properties of undefined (reading 'id').

Only objects are supported.
{
  "items": [
    { "id": 1, "value": "A" },
    { "id": 2, "value": "B" },
  ]
}

Then POST { "value": "D" }


fix(backend): revert merge that removed code

This reverts commit 19e391773fa23ec041f8d8bce149ff74d9f07433.

🍰 Pullrequest
As far as I understand what happened:

#1509 was created first
#1518 was based on #1509
#1518 was merged in master
#1509 was merged in master and all the changes done by #1518 were removed

Therefore I reverted #1509
Issues

None

Todo

[X] None

@trinity2701 Please check what happened here


Add a section into doc about projects using OnlineTechnicalIndicators.jl

Hello,
Maybe we should add a section into documentation about projects that are using OnlineTechnicalIndicators.jl
I currently see TechnicalIndicatorCharts.jl from @g-gundam
but some others may be existing
An other section about related project ie project sharing similar concepts like OnlinePortfolioAnalytics.jl should probably be also written.
Best regards

I think that's a good idea.  I think I'm going to make an early release of TechnicalIndicatorCharts.jl even though there's a lot of work left to be done on it, because I'd like to get a little more exposure for these libraries and maybe attract some helpful people.


Codelive/dynamic apex

What does this PR do?
Adds recipes for Dynamic Apex, demonstrating how to dynamically make execution decisions at runtime.

@codefriar Looks good to me except the build has issues. Will you be fixing it since failing builds will make package generation not possible!

@codefriar Looks good to me except the build has issues. Will you be fixing it since failing builds will make package generation not possible!

Oh yeah. Working around a gnarly catch 22
On Jan 20, 2021, 10:02 PM -0500, Mohith Shrivastava<EMAIL_ADDRESS>wrote:

@codefriar Looks good to me except the build has issues. Will you be fixing it since failing builds will make package generation not possible!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Oh yeah. Working around a gnarly catch 22
On Jan 20, 2021, 10:02 PM -0500, Mohith Shrivastava<EMAIL_ADDRESS>wrote:

@codefriar Looks good to me except the build has issues. Will you be fixing it since failing builds will make package generation not possible!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.


Provide point conversion functions in kx

To utilize key exchange algorithm X25519 for the keys generated from Ed25519, libsodium provides two functions int crypto_sign_ed25519_pk_to_curve25519 and int crypto_sign_ed25519_sk_to_curve25519.
However, these functions are not exposed in sodiumoxide. I think it's good to place the corresponding rust binding functions in kx module.

Thanks for the pull request. Unfortunately I’ve closed pull requests adding this functionality more times than I can count. Please look through the history of closed issues for the reasoning why.

https://github.com/sodiumoxide/sodiumoxide/pull/361#issuecomment-519459157


Install latest patch version if major.minor semantic version provided; Add latest command to install

Should resolve the ask in #121.
Adds:
goenv install latest
goenv install unstable
if the semantic version is only supplied with major/minor, find the latest patch version and use that for install.
e.g. if 1.19 is supplied and the following versions are available:
1.19.0
1.19.1
1.19.2

1.19.2 will be installed
Added unit tests to validate functionality

This is looking already pretty good: I just left a feed comments that have more to do with long-term maintenance than anything else.
Plus, if I got the regexp right, I think you are intending to match "latest" version to also "beta" and "rc" releases, and I don't think it's a great idea. But I'm not the owner of the repo, so I'd leave it to @syndbg and other maintainers to make the call.
Personally, I think the vast majority of users want a tool that lets them easily switch version of go, while they move across their repositories/projects. Those people are rarely interested in non-stable versions of Go.

Addressed all comments @detro

Awesome!

@syndbg This looks ready to merge; tests all passed


Hide AudioProcessor trait from public API and force users to use worklet

Hey, this is meant as a discussion starter. I think our AudioWorkletNode implementation is mature enough to serve all custom processing needs for end users. Hiding our non-spec AudioProcessor keeps the API surface neat and tidy, and allows for further iteration without breaking changes.
As you can see from the latency_tester example, using the AudioWorkletProcessor reduces boilerplate without sacrifying features.
The only thing missing then is the MessagePort functionality. I have some work prepared how we could fill this in, but it does become a bit awkward due to lack of inheritance. Since rust has message passing natively built in, we could also opt to leave this functionality out (and provide useful examples to fill in the gap).

The MessagePort implementation could look like https://github.com/orottier/web-audio-api-rs/compare/feature/hide-audioprocessor-trait...feature/message_port?expand=1
However I think the added complexity is not worth it (and there are still some issues to fix in that implementation)

Hey, looks like a pretty good idea!
Would be interesting to port other example, for example https://googlechromelabs.github.io/web-audio-samples/audio-worklet/ to see if everything looks good. I could try to have a shot on that when I find some time
For message port, I think this is quite interesting to have it as it would guarantee the order of the messages, but we could take some time to iterate of course

Thanks for the feedback. I will add an example with manual message passing via Rust primitives. Then I will probably merge and see if I can iterate on a better design of the message port. The Box<dyn Any> to allow for any message object type is very cumbersome

Hey it took quite a bit of mental gymnastics but I'm quite happy with the result.
The AudioWorkletNode now has a spec compliant port() -> MessagePort method.
On the render thread we diverge a bit, and have a separate AudioWorkletProcessor::onmessage method a RenderScope.post_message. But still I think that is as clean and performant as it could be.

The diff is quite large so I recommend you to look at the examples/worklet_message_port.rs example

If you agree with all this @b-ma I will release a version 1.0 release candidate :)

Hey, I think it looks all good to me

The AudioWorkletNode now has a spec compliant port() -> MessagePort method.
On the render thread we diverge a bit, and have a separate AudioWorkletProcessor::onmessage method a RenderScope.post_message. But still I think that is as clean and performant as it could be.

Yeah a bit disappointing but I agree the API looks rather clean

If you agree with all this @b-ma I will release a version 1.0 release candidate :)

It's up to you :) (...but I have to confess I start to have some hard time thinking of possible issues on that point)


Error notification: CustomEditor and NativeNotebook experiments cannot be turned on together

Testing codespaces scenario https://github.com/microsoft/vssaas-planning/issues/1593

open a codespace with a Python file
among other notification dialogs (see microsoft/vscode-python#14833) I get

Unclear to me as user what has caused this and what I need to do differently.

I think i know what's going on here.

In insiders NativeNotebook is always on in experiment.
Now assume user happens to fall into the CustomEditor experiment in VS Code Insiders.
At this point, user is in both experiment groups.

Solution

Modify the inExperiment method to check if experiment argument == CustomEditor & if user already belongs to native notebook experiment, in such a case, just return false

I have the identical message.  Latest insiders edition of VSC.

Validated. I can't simulate control tower opting me into custom editor, but if I manually opt into native notebooks and custom editor experiments in VSCode Insiders, creating a new blank Jupyter notebook still opens into the native notebooks UI and I don't get a prompt.
@PaoloTCS we have a fix in for this. If the fix works as expected, it will be available in our next release, which will hopefully be in about 2 weeks' time. Thanks for letting us know 😊


Add visualizations

A couple of nice data visualizations to show at the top of index.md might be nice. Add candidates to assets/images folder.

I added a couple stock images. Nothing special. No attribution needed.

9191c13

f54d115 Move planetary movement image to FAQ and add photo to index


Update how-to-update-via-usb.md

need to use sudo to run these commands

@IoTDan : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Hi @IoTDan - This pull request was opened in the public repo. This content has a private repository, and PMs usually should work in the private repo, per the Microsoft Docs contributor guide. We can keep this PR open for review and merge, but would you make future content updates in the private repo? Thank you!

Hello! I simply clicked the edit button. I am happy to follow this process. Please make sure the edit button points to the private repo.
Thanks
Dan
From: Kristine Toliver @.>
Sent: Monday, March 15, 2021 10:07 AM
To: MicrosoftDocs/azure-docs @.>
Cc: Dan Rosenstein @.>; Mention @.>
Subject: Re: [MicrosoftDocs/azure-docs] Update how-to-update-via-usb.md (#72170)
Hi @IoTDanhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FIoTDan&data=04|01|danrose%40microsoft.com|4af159e7673144cda88808d8e7d4ca41|72f988bf86f141af91ab2d7cd011db47|1|0|637514248409501365|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=0%2FS0KWlR0lrVQW18NmOEkUG29yKDdiDfilk%2FOpZfhUM%3D&reserved=0 - This pull request was opened in the public repo. This content has a private repository, and PMs usually should work in the private repo, per the Microsoft Docs contributor guide. We can keep this PR open for review and merge, but would you make future content updates in the private repo? Thank you!

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fpull%2F72170%23issuecomment-799587351&data=04|01|danrose%40microsoft.com|4af159e7673144cda88808d8e7d4ca41|72f988bf86f141af91ab2d7cd011db47|1|0|637514248409511361|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=VMWz0XZZwZ%2BgeOW143rsAEwxapPZ6C4P9mREgsYaFqY%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAB5YFXW336T2O4NLDBOUM43TDY5ELANCNFSM4ZG3QFGQ&data=04|01|danrose%40microsoft.com|4af159e7673144cda88808d8e7d4ca41|72f988bf86f141af91ab2d7cd011db47|1|0|637514248409521359|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=Gppf8xsMrrBDMyh%2FHJwxGf6CezbDv9v0g0GrvH%2BoFKA%3D&reserved=0.

changes already made per mike


Can this be used as the default Database

I am trying to completely switch from mysql to elasticsearch. Would this be a good solution?

It depends on the requirements for your application. If you want to ensure that your data is really stored somewhere, I would recommend against using Elasticsearch as your primary data store.

To summarize: Elasticsearch appears to lose writes–both updates and even non-conflicting inserts–during asymmetric partitions, symmetric partitions, overlapping partitions, disjoint partitions, and even partitions which only isolate a single node once. Its convergence times are slow and the cluster can repeatably deadlock, forcing an administrator to intervene before recovery.

(from https://aphyr.com/posts/317-call-me-maybe-elasticsearch)
Elasticsearch is good at what it does - being really fast for inserting, indexing and searching documents. I would not, however, trust it as a primary source for data.
I would recommend reading this Elasticsearch blog post for some further information: https://www.elastic.co/blog/found-elasticsearch-as-nosql


Enums Christmas edition: support one object type, plus strings/booleans/integers.

…to one object.
Needs some more testing, and checking that the one variant with payload has a payload which as type object, instead of just assuming it.

@thangngoc89

This:
type payload = {
  x: int,
  y: option(string),
};

type withPayload = [
  | `a
  |<EMAIL_ADDRESS>"bRenamed"] `b
  |<EMAIL_ADDRESS>true] `True
  |<EMAIL_ADDRESS>20] `Twenty
  | `c(payload)
];

produces:
export type payload = {readonly x: number, readonly y?: string};

export type withPayload = "a" | "bRenamed" | true | 20 | payload;

OMG 😮 This is soo cooooool


Add reportFlow param to the broken site report pixel

Task/Issue URL: https://app.asana.com/0/488551667048375/1205957959864913/f
Description
Add the reportFlow parameter to the broken site report pixel
Steps to test this PR
Menu flow

[ ] Navigate to the site breakage report screen through menu -> Report Broken Site
[ ] Send report
[ ] Verify that "reportFlow"="menu" param is included in the epbf pixel.

Dashboard flow

[ ] Navigate to the site breakage report screen through Privacy Dashboard -> "Website not working?"
[ ] Send report
[ ] Verify that "reportFlow"="dashboard" param is included in the epbf pixel.

No UI changes

Current dependencies on/for this PR:

develop

PR #3881   👈

This stack of pull requests is managed by Graphite.


Issue building CARLA during make build.utils: Downloading FBX SDK 403

CARLA version: 0.9.13
Platform/OS: Ubuntu 18
Problem you have experienced: Impossible to build CARLA because the make build.utils tries to download FBX SDK and received a permission denied (403) response.
What you expected to happen:

Cannot download the FBX SDK archived:  https://www.autodesk.com/content/dam/autodesk/www/adn/fbx/2020-0-1/fbx202001_fbxsdk_linux.tar.gz using wget
You can download it using a browser but not using: wget -c https://www.autodesk.com/content/dam/autodesk/www/adn/fbx/2020-0-1/fbx202001_fbxsdk_linux.tar.gz /tmp
You can download it using wget --user-agent="Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" -c https://www.autodesk.com/content/dam/autodesk/www/adn/fbx/2020-0-1/fbx202001_fbxsdk_linux.tar.gz /tmp

Steps to reproduce:

Build the Carla.Dockerfile using master or 0.9.13 branches.
This happens when running cd Util/BuildTools && make build.utils (bash BuildUtilsDocker.sh)

Other information (documentation you consulted, workarounds you tried):

Change the file Util/BuildTools/BuildUtilsDocker.sh line 20 from wget -c "${FBXSDK_URL}" -P "${CARLA_DOCKER_UTILS_FOLDER}" to wget --user-agent="Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" -c "${FBXSDK_URL}" -P "${CARLA_DOCKER_UTILS_FOLDER}"

It has been fixed in the latest dev branch using wget -c "${FBXSDK_URL}" -P "${CARLA_DOCKER_UTILS_FOLDER}" --user-agent="Mozilla".
Thanks!


Stop manually maintaining all META-INF/services files

There are two options for how to use this tool:
@MetaInfServices
public class MyEngine implements ContentTypeEngine {

and
@MetaInfServices(ContentTypeEngine.class)
public class MyEngine implements ContentTypeEngine {

The less verbose style does not work for classes with multiple interfaces or hierarchies.  So this PR currently uses the second more verbose style for everything.
If you wish to use the less verbose style, where possible, I can refine.

Please add an entry in changelog. Thanks!


Create visitorId before the first request is sent

Instead of relying on the first call to get a visitorId, we can automatically generate one when the script is loaded.
It will be set in the Cookies as usual, so the JSUI should read this one

Codecov Report

Merging #180 into mp-eventcontext will decrease coverage by <.01%.
The diff coverage is 86.66%.

@@                 Coverage Diff                 @@
##           mp-eventcontext     #180      +/-   ##
===================================================
- Coverage            83.52%   83.51%   -0.01%
===================================================
  Files                   17       17
  Lines                  443      455      +12
  Branches                74       77       +3
===================================================
+ Hits                   370      380      +10
  Misses                  46       46
- Partials                27       29       +2

Impacted Files
Coverage Δ

src/client/analytics.ts
83.92% <100%> (+0.59%)
:arrow_up:

src/client/analyticsFetchClient.ts
76% <80%> (-0.48%)
:arrow_down:

Continue to review full report at Codecov.

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

I'm still investigating how this behavior can break our internal workflows (ETL/ELT). I need to chat with the Analytics team.


feat(TextProcessing): add ability to defer text processing

The new TextProcessor concept allows the text processing to be deferred
to a Text Processor type. The Unity UI Text type is provided by default
as it is the current functionality. But it would now be possible and
trivial to make a Text Processor for TextMeshPro that could then be
used on the tooltip without needing to include TextMeshPro with this
repo.

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

npm package (@latest dist-tag)
v1.2.0
GitHub release

Your semantic-release bot :package::rocket:


Update table and add in grid view

swaps out html table for TableChart component
Updates styles for red and green cells
Dynamically calculates the height of the table
remove data point colors for now (need to revisit this)
basic styling for grid view
add in grid/table toggle switch

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Fix abseil forward ref warning for StrSplit

Patching StrSplit usage for bugprone-move-forwarding-reference warning as seem from https://github.com/firebase/firebase-ios-sdk/pull/9486.  StrSplit requires a forwarding reference (rvalue ref inferred from a template param) to be passed into its first parameter, and we are currently passing a lvalue ref instead.

I believe this has been resolved. Closing the PR. Please reopen if still needed.


Disable highlighting?

Is there a way to disable highlighting completely? All I need is the ability to find and look through my TODOs. I do not want highlighting, signs, etc. Signs can be disabled quite easily, but I would like to be able to disable highlighting as well. Is this possible? I don't see an obvious way to do this in the configuration.

Change the higlihgt pattern to something that will never match. Searching todos uses another pattern, so that should do the trick!


Rename repo to message-schemas

Description
https://github.com/foxglove/ros-message-schemas/blob/6807f46716017a0461656f56dde5274943c7d528/LocationFix.proto
This repo contains a non-ros proto file which corresponds to our documented schema: https://foxglove.dev/docs/messages/location-fix
We should rename this repo to message-schemas and have to top level folders under proto: ros and foxglove where we store the two variants.

@jtbandes thoughts?

Ok. It seems useful to have both the JSON Schema and .proto definitions available for our custom schemas as well as the ROS schemas. Don't think those will be able to share any of the same generation scripts (since the script uses parsed .msg files as input) but we could keep them in the same repo.

Renamed


examples with hooks in the main concepts.

Very nice to have examples using classes, but I think it is interesting (in the view of a beginner) to show an alternative using hooks, since it is considered a good practice and for me it was easier to understand.
At the beginning of the walkthrough, specifically in the part of the life cycle and the states, as much as it is expected that you have prior knowledge with classes, it would be good if we already had contact with the hooks, in order to know how to use them , even if succinctly, as an alternative to classes.

Hey @PabloProta, thanks for the suggestion.
We're working on this as part of the new site in https://github.com/reactjs/reactjs.org/issues/3308

Hey @PabloProta, thanks for the suggestion.
We're working on this as part of the new site in https://github.com/reactjs/reactjs.org/issues/3308


QV-3: Improve gateway card

Wallet not connected:

User with no tokens:

User with tokens:

The last screenshot looks wrong? Shouldn't it read 10 votes?

The last screenshot looks wrong? Shouldn't it read 10 votes?

Indeed. The problem is in the UI because the DAO does not have QV plugin and it's showing the QV modal. After I added the plugin it's showing 10 votes


Fix potential encoding errors for EncointerBalances and catch ALL errors while sending extrinsics

An API change in BN.js v5 lead to potential encoding issues. The catchy thing here was that we depend on Bn.js v4, which encodes correctly, but for some (non-deterministic) reason, webpack sometimes resolves to v5, and then we got an encoding error as our bitlength setting was ignored.
Another notable change introduced is that we now try-catch the whole extrinsic sending process - I thought this would fix the endless activity indicators while sending an extrinsic, but it seems that they still occurr.
Failing IOS tests seem to occur on all branches now, and it seems unrelated to this PR: #1485

I also did the rococo tests on one of the last commits: https://github.com/encointer/encointer-wallet-flutter/issues/1484


bazel RBE test failure: msan use-of-uninitialized-value in //test/cpp/ext/filters/census:grpc_opencensus_plugin_test

(this hasn't been introduced recently, bazel RBE runs more tests than the "msan C" tests suite on kokoro)
https://source.cloud.google.com/results/invocations/002f8276-25ff-48ca-9210-c58e19dfcab7/targets/%2F%2Ftest%2Fcpp%2Fext%2Ffilters%2Fcensus:grpc_opencensus_plugin_test@poller%3Depoll1/log
From the code it looks like the problem might be in absl code, but at the same time, msan doesn't support warning suppressions, so we need to decide what's the test way to address this.
+ test/cpp/ext/filters/census/grpc_opencensus_plugin_test
D1029 09:26:32.737378947      20 test_config.cc:391]         test slowdown factor: sanitizer=4, fixture=1, poller=1, total=4
[==========] Running 5 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 5 tests from StatsPluginEnd2EndTest
==20==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x7ffa28c14dd8 in int UnwindImpl<false, false>(void**, int*, int, int, void const*, int*) /proc/self/cwd/external/com_google_absl/absl/debugging/internal/stacktrace_x86-inl.inc:294:9
    #1 0x7ffa28c11986 in Unwind<false, false> /proc/self/cwd/external/com_google_absl/absl/debugging/stacktrace.cc:74:14
    #2 0x7ffa28c11986 in absl::GetStackTrace(void**, int, int) /proc/self/cwd/external/com_google_absl/absl/debugging/stacktrace.cc:96
    #3 0x7ffa28d13757 in absl::(anonymous namespace)::GetStack(void**, int) /proc/self/cwd/external/com_google_absl/absl/synchronization/mutex.cc:1280:10
    #4 0x7ffa28c3c6e7 in absl::synchronization_internal::GraphCycles::UpdateStackTrace(absl::synchronization_internal::GraphId, int, int (*)(void**, int)) /proc/self/cwd/external/com_google_absl/absl/synchronization/internal/graphcycles.cc:691:15
    #5 0x7ffa28d11198 in absl::DeadlockCheck(absl::Mutex*) /proc/self/cwd/external/com_google_absl/absl/synchronization/mutex.cc:1309:19
    #6 0x7ffa28cadaf6 in absl::DebugOnlyDeadlockCheck(absl::Mutex*) /proc/self/cwd/external/com_google_absl/absl/synchronization/mutex.cc:1375:12
    #7 0x7ffa28cabaaa in absl::Mutex::Lock() /proc/self/cwd/external/com_google_absl/absl/synchronization/mutex.cc:1434:16
    #8 0x7ffa33515023 in absl::MutexLock::MutexLock(absl::Mutex*) /proc/self/cwd/external/com_google_absl/absl/synchronization/mutex.h:520:16
    #9 0x7ffa28fa719a in opencensus::stats::DeltaProducer::AddMeasure() /proc/self/cwd/external/io_opencensus_cpp/opencensus/stats/internal/delta_producer.cc:80:19
    #10 0x7ffa290f7722 in opencensus::stats::Measure<double> opencensus::stats::MeasureRegistryImpl::Register<double>(absl::string_view, absl::string_view, absl::string_view) /proc/self/cwd/external/io_opencensus_cpp/opencensus/stats/internal/measure_registry_impl.cc:53:27
    #11 0x7ffa290bc245 in opencensus::stats::Measure<double>::Register(absl::string_view, absl::string_view, absl::string_view) /proc/self/cwd/external/io_opencensus_cpp/opencensus/stats/internal/measure.cc:29:38
    #12 0x7ffa33ee9081 in grpc::RpcClientSentBytesPerRpc() /proc/self/cwd/src/cpp/ext/filters/census/measures.cc:46:31
    #13 0x7ffa33ec26e0 in grpc::RegisterOpenCensusPlugin() /proc/self/cwd/src/cpp/ext/filters/census/grpc_plugin.cc:43:3
    #14 0x4fe178 in grpc::testing::(anonymous namespace)::StatsPluginEnd2EndTest::SetUpTestCase() /proc/self/cwd/test/cpp/ext/filters/census/stats_plugin_end2end_test.cc:61:33
    #15 0xeb1cf0 in testing::TestCase::RunSetUpTestCase() /proc/self/cwd/external/com_github_google_googletest/googletest/include/gtest/gtest.h:887:29
    #16 0x10961d6 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::TestCase, void>(testing::TestCase*, void (testing::TestCase::*)(), char const*) /proc/self/cwd/external/com_github_google_googletest/googletest/src/gtest.cc:2402:10
    #17 0xeb115d in void testing::internal::HandleExceptionsInMethodIfSupported<testing::TestCase, void>(testing::TestCase*, void (testing::TestCase::*)(), char const*) /proc/self/cwd/external/com_github_google_googletest/googletest/src/gtest.cc:2438:14
    #18 0xc3f61d in testing::TestCase::Run() /proc/self/cwd/external/com_github_google_googletest/googletest/src/gtest.cc:2769:3
    #19 0xcf3290 in testing::internal::UnitTestImpl::RunAllTests() /proc/self/cwd/external/com_github_google_googletest/googletest/src/gtest.cc:4649:43
    #20 0x10b90d1 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /proc/self/cwd/external/com_github_google_googletest/googletest/src/gtest.cc:2402:10
    #21 0xec7473 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /proc/self/cwd/external/com_github_google_googletest/googletest/src/gtest.cc:2438:14
    #22 0xcef73c in testing::UnitTest::Run() /proc/self/cwd/external/com_github_google_googletest/googletest/src/gtest.cc:4257:10
    #23 0x552ed5 in RUN_ALL_TESTS() /proc/self/cwd/external/com_github_google_googletest/googletest/include/gtest/gtest.h:2233:46
    #24 0x4fece4 in main /proc/self/cwd/test/cpp/ext/filters/census/stats_plugin_end2end_test.cc:375:10
    #25 0x7ffa270e582f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
    #26 0x488d18 in _start<EMAIL_ADDRESS>  Uninitialized value was created by an allocation of 'absl_raw_logging_internal_basename' in the stack frame of function '_ZN4absl13base_internalL16DoAllocWithArenaEmPNS0_13LowLevelAlloc5ArenaE'
    #0 0x7ffa28b418c0 in absl::base_internal::DoAllocWithArena(unsigned long, absl::base_internal::LowLevelAlloc::Arena*) /proc/self/cwd/external/com_google_absl/absl/base/internal/low_level_alloc.cc:515
SUMMARY: MemorySanitizer: use-of-uninitialized-value /proc/self/cwd/external/com_google_absl/absl/debugging/internal/stacktrace_x86-inl.inc:294:9 in int UnwindImpl<false, false>(void**, int*, int, int, void const*, int*)

@Vizerai   this seems to be census related, can you take a look?

To repro with bazel RBE, please follow https://github.com/grpc/grpc/tree/master/tools/remote_build

These warnings are coming from absl libraries.  I see similar warnings from other tests not related to opencensus in grpc:
bazel run test/cpp/client:client_channel_stress_test --config=msan
bazel run test/cpp/client:credentials_test --config=msan


Dropdown not scrolling on Android device

I'm able scroll multiple items in a dropdown list using Selectric on all mobile platforms except Android. Has anyone else had this issue. I don't want to turn disableOnMobile on because we are using custom icons in each item in the list. Any work arounds to this.

Bit late to comment on this question, but i had the same issue. With the default android browser you can't scroll in the dropdown.
This issue is caused by the default selectric styling, on the class "selectric-items" there is a negative z-index "-1" specified. I changed this to a positive z-index of "2" to fix the issue.
.selectric-items {
display: none;
position: absolute;
top: 100%;
left: 0;
background: #FFF;
border: 1px solid #dbd9cf;
z-index: 2;
box-shadow: 0 0 10px -6px;
}


OpenCV Issue with large Image file of 2-5MB File

While Uploading High Resolution Image, OpenCv throws

Out of memory Exception , and
cv::error(): OpenCV Error: Assertion failed (8) in H, file , line 175 03-15 22:32:18.532

any solution for this issue ??

When you input 2-5MB file, it takes a lot of time to detect contours edges of bitmap even in background thread. You must scale a bitmap to certain width and height and input the scaled bitmap.

@DroidNinja
I am having the following error
OpenCV Error: Assertion failed (scn == 3 || scn == 4) in void cv::cvtColor(cv::InputArray, cv::OutputArray, int, int)
while changing in scan.cpp file as below
cvtColor(mbgra, dst, CV_BGR2GRAY);
i want to change it to CV_GRAY2BGR565 it gives error as below
It would be very helpful to me if you can answer me.
Thank you


Input length validation may be inaccurate.

Hi @snjv94,
Looking at the code, I'd say the error is still due to the length of the string. At the moment, the code is checking for a number of characters in a string (here 1701 and 2053), which here is lower than the number of bytes (here 5035 and 6091). So it passes the condition but failed to receive a valid response from the API. By chance, you still received an answer for the shortest sample, even if it seems it is slightly oversize bitwise.

Note: in my case at first I received None as an answer for the shortest sample string; because you forgot the return statement in you function.

https://github.com/nidhaloff/deep-translator/blob/fa67ada6c5d17617628fb13447de5457a5158dc6/deep_translator/google.py#L51-L75
As we can see here, len(text) is used and text is a string:
https://github.com/nidhaloff/deep-translator/blob/fa67ada6c5d17617628fb13447de5457a5158dc6/deep_translator/validate.py#L27-L43
A way to solve this issue is probably to use the string encode method to encode the string in UTF-8 as an array of bytes. In the Python documentation about Unicode, we can read the following snippet:
>>> u = chr(40960) + 'abcd' + chr(1972)
>>> u.encode('utf-8')
b'\xea\x80\x80abcd\xde\xb4'
>>> u.encode('ascii')
Traceback (most recent call last):
    ...
UnicodeEncodeError: 'ascii' codec can't encode character '\ua000' in
  position 0: ordinal not in range(128)
>>> u.encode('ascii', 'ignore')
b'abcd'
>>> u.encode('ascii', 'replace')
b'?abcd?'
>>> u.encode('ascii', 'xmlcharrefreplace')
b'ꀀabcd޴'
>>> u.encode('ascii', 'backslashreplace')
b'\\ua000abcd\\u07b4'
>>> u.encode('ascii', 'namereplace')
b'\\N{YI SYLLABLE IT}abcd\\u07b4'

Which makes me believe len(text) should be replaced by len(text.encode('UTF-8", "ignore") or len(text.encode('UTF-8", "xmlcharrefreplace"). And, maybe return the size for the string and bytes for the user when raising the error.

Thanks for the assistance, @Vincent-Stragier
Originally posted by @snjv94 in https://github.com/nidhaloff/deep-translator/issues/169#issuecomment-2277172621

So if I understand correctly, it would be enough to use:
if max_chars and (not min_chars <= len(text_bytes) < max_chars):
    raise NotValidLength(text, min_chars, max_chars)"```

I would use the following to avoid raising an encoding error:
text_bytes = text.encode('utf-8', "ignore")
# or
text_bytes = text.encode('utf-8', "replace")
# or
# probably better to avoid getting an underestimated size (still not perfect).
text_bytes = text.encode('UTF-8", "xmlcharrefreplace")

if max_chars and (not min_chars <= len(text_bytes) < max_chars):
    raise NotValidLength(text, min_chars, max_chars)"


Group Education - Progress report

Issue
On the individual report we need to show the record of attended group education topics and the dates of the education.
This part will come through patient record.

Patient record page
Group education page

Todo

Create the screen per designs
Implement the logic

https://nutrition-ihangane.pantheonsite.io/app/#patient-record/
QA Review
Found issues and questions:

Not sure if it's important, but the table header says Date instead of education date. I think it's meaning is obvious and the shorter version is preferable.

Checked and approved:

On the progress report the Health education tab lists the topics and dates.


[upload csv to hive] fix call to unicodereader.next()

Calling unicodeReader.next() was problematic because it works on python2 but not python3. The correct way to get the first item in the list is next(items) or for i in items. next(items) works in both python2 and 3.
@michellethomas @john-bodley

Codecov Report

Merging #4804 into master will not change coverage.
The diff coverage is 0%.

@@           Coverage Diff           @@
##           master    #4804   +/-   ##
=======================================
  Coverage   72.34%   72.34%
=======================================
  Files         208      208
  Lines       15511    15511
  Branches     1202     1202
=======================================
  Hits        11221    11221
  Misses       4287     4287
  Partials        3        3

Impacted Files
Coverage Δ

superset/db_engine_specs.py
51.89% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

@timifasubaa it seems in Python 2 uses reader.next() whereas Python 3 uses next(reader). Is this what you mean by being unreliable?
For Python 2 there is a next(reader) method however the logic differs.

@john-bodley yes. Thanks for making it clearer. I updated the PR description
I tested on python2 and 3 and it works fine.

LGTM


Python 3.12 support

Please add a pre-built wheel for Python 3.12

@Enkelmann

@jstucke Not solved: the pre-built wheel is still not published on PyPI.

@jstucke Not solved: the pre-built wheel is still not published on PyPI.

I'm aware of this and there will be a new binary release when @Enkelmann provides me with access to the project on PyPI (which should be soon)

@jstucke Not solved: the pre-built wheel is still not published on PyPI.

I'm aware of this and there will be a new binary release when @Enkelmann provides me with access to the project on PyPI (which should be soon)

Great!

But you can technically already install the package on Python 3.12 if you have a Rust compiler installed and install directly from the repository.


added source option can be a function

By passing source as a function you can now choose the source conditionaly.
F.e. if role is COMPANY use property title, if not use firstName+LastName.
Function can be passed alternativly to String or Array.

thanks for merging, can you tag a release, pls

Sorry, I didn't had time recently to maintain this module. I will tag it today this evening. At the weekend I will try to rework it a little without braking it and write tests to cover use cases.

thanks for the tag, on npm its still on 0.7.2?
does npm need some notification?

Hi, I've updated npm. Just remember that this extension is not stable (0.7). I didn't had time to finish it properly and I'm too busy to spend time on it. Extension is not unit tested at the moment.


Padding for input number looks too big

Current input number:

those paddings are too big, especially because arrows in smaller inputs cover the numbers.

Closing as done.


Use new Result wrapper in kotlin 1.5

Use for:

[ ] Bulk items
[x] msearch response items

doing bulk items is too disruptive for now


Add the usecase support for iot.

https://crosswalk-project.org/jira/browse/CTS-1901
Impacted tests(approved): new 65, update 0, delete 0
Unit test result summary: pass 42, fail 18, block 5
The result is normal.

LGTM


Use vec! in oid! macro

Hi,
This pull request changes the oid! macro to use the vec! macro rather than manually creating a vector and then pushing elements onto it one-by-one. The vec! macro creates a vector that is already of the correct size avoiding unnecessary reallocations.

Looks great, thanks!


Add some control over the dev-server from the dev-ui

🚀🚀🚀

@melloware it would be nice if we could add some control over the dev server in the dev-ui:

have the ui logs
run install and restart
restart

Love these ideas.  I will take a look if you want to assign this ticket to me!

OK I got the PackageManager Install working but I am having trouble getting the stopDev and start working because if I try and pass the ForwardDevBuildItem to the UIProcessor I am getting a "Chained Build Exception".

@melloware
A possible workaround for the restart (and restart after install) would be to find a way to trigger a refresh like when there is a config change, this restarts the dev server again.
If you can find a way to do that, you may do a PM install and then restart (I don't think it's a problem to keep the process running during the install and restart after).

Awesome let me try that.

OK just for fun I tried this...
    @BuildStep(onlyIf = IsDevelopment.class)
    HotDeploymentWatchedFileBuildItem watchLockFile(QuinoaConfig quinoaConfig, OutputTargetBuildItem outputTarget) {
        final ProjectDirs projectDirs = resolveProjectDirs(quinoaConfig, outputTarget);
        final Path packageFile = projectDirs.uiDir.resolve("package-lock.json");
        return new HotDeploymentWatchedFileBuildItem(packageFile.toString());
    }

And when I do an install that changes the package-lock.json and I see this in the log
2023-03-27 13:11:18,174 INFO [] (executor-thread-1) File change detected: C:\dev\quarkus\nextjs\src\main\webui\package-lock.json
2023-03-27 13:11:18,174 INFO [] (executor-thread-1) Restarting quarkus due to changes in package-lock.json.

But I don't see the ForwardDevProcessor actually stop and restart which I thought it would.

@melloware try this:
public HotDeploymentWatchedFileBuildItem(String location, boolean restartNeeded) {
        this.location = location;
        this.restartNeeded = restartNeeded;
    }

OK yeah I had some extra code I think its working now.


[ui/ng] nested menu

Implementation of nested menu. Resolves #565.
Static/UI:

Angular:

A few notes:

Opting for a markup (both in UI and NG) that allows us to have dropdown items that are not nested. Otherwise, we could end up with a button inside button, which is not good.
Using desugared syntax for our popover and moving the dropdown-menu class to <clr-dropdown-menu> allowed us to get rid of a hack in our css. Yay!
open to feedback on name changes for the new css classes and the angular component's input clrDropdownSubmenuOpenDirection
Updated the css tests to include dropdown with nested menu items.

Signed-off-by: Jeeyun Lim<EMAIL_ADDRESS>

@youdz would appreciate your review on the code changes. Had a discussion with @lil-kim also and decided to go forward with reveal on click (as opposed to hover) to make the experience consistent. I'll hold off on rebasing until your review.


Link to the PowerShell Modules to modify configuration settings

Can you please add under Additional Resources the links to the PowerShell Modules and commands that would allow us to modify these AWS Enterprise Application settings, like the commands to modify the Provisioning Automatic properties, and to generate new Metadata, etc.

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

ID: 3bd35b3e-5e84-8be5-f87b-b4b666a9f7cd
Version Independent ID: c768f626-4ea1-4ede-492d-3a9d9e2178f3
Content: Tutorial: Azure Active Directory integration with Amazon Web Services (AWS) to connect multiple accounts
Content Source: articles/active-directory/saas-apps/aws-multi-accounts-tutorial.md
Service: active-directory
GitHub Login: @jeevansd
Microsoft Alias: jeedes

@msilinda Thanks for your feedback! We will investigate and update soon on it.

@msilinda AFAIK this is currently not possible using Power-Shell.
@jeevansd Can you please provide your inputs on the same.

@msilinda Yes, this is not possible today using PowerShell. We don't have any PowerShell for SAML setup.

@jeevansd Thanks for your confirmation.
@msilinda We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.

#please-close


Generated javadocs webpage

I generated the javadocs webpage based off of the javadoc comments in pathplanner lib to help with documentation. There are alot of missing comments, but it is a start. You can host the javadocs using github pages too https://docs.github.com/en/pages/getting-started-with-github-pages/creating-a-github-pages-site

I think I want to handle this a bit differently. I can set up some github actions workflows that can generate these docs on every commit and publish them with github pages in a separate branch. That way it won't clutter up the main branch.

Yeah I want them too just have to find the time to set up the actions. I definitely don't want to have to generate these manually every time a change is made.


Ability to coerce value of a property of an entity

Originated from stackoverflow.
I have old project which used ADO.NET to access the persistent store. Currently, I want to migrate it to EF (6.1.3, if it matters), in order to support several DB providers with minimal code duplicate.
There is an entity, which contains Hashtable property:
public class Record
{
    ...
    public Hashtable data { get; set; }
}

With ADO.NET, the BinaryFormatter was used to convert this data property to the BLOB, and vice versa:
using (MemoryStream stream = new MemoryStream())
{
    BinaryFormatter formatter = new BinaryFormatter();
    formatter.Serialize(stream, data);
    result = stream.GetBuffer();
}

//----------

using (MemoryStream serializationStream = new MemoryStream((byte[])value))
{
    BinaryFormatter formatter = new BinaryFormatter();
    result = (Hashtable)formatter.Deserialize(serializationStream);
}

Now I need to tell EF how it should store and retrieve that property.
What have I tried
I could store one more property in the entity:
public class Record
{
    public byte[] dataRaw { get; set; }

    [NotMapped]
    public Hashtable data {
        get {/*deserialize dataRaw */ }
        set { /*Serialize to dataRaw*/}
    }
}

But this solution is prone to errors, and special workflow with that property must be followed.
P.S. Actually this question is not about the Hashtable only, but about every custom class which must be stored and retrived in a special way.

This isn't something we are planning to implement in EF6.x. It is something we are planning to add to EF Core in the future though https://github.com/aspnet/EntityFramework/issues/242


Add dropdown to tables on smaller screensizes

Looks like tables are pretty broken on smaller screensizes due to a lot being shown in a single row
Should add some sort of dropdown table for each row

On smaller screensizes, only first column is show, rest of the options are then shown on clicking that column