ERROR: Network scanning failed. Please check your requirements configuration.

Checklist for submitting an issue to KickThemOut:

[x] I have carefully read the README file and haven't managed to resolve my issue.
[x] I have searched the issues of this repo and believe that this is not a duplicate.
[x] I am running the latest version of KickThemOut.

OS name & version: MacOS Catalina version 10.15.6
Python version: 3.7.7
Scapy version: 2.4.4
Nmap version: 0.6.1
Link of Gist:

I enter the following:  sudo python3 kickthemout.py
Then I receive the following message:
ERROR: Gateway IP could not be obtained. Please enter IP manually.
kickthemout> Enter Gateway IP (e.g. <IP_ADDRESS>): <I enter my router's ip>
Scanning your network, hang on...
ERROR: Network scanning failed. Please check your requirements configuration.
If you still cannot resolve this error, please submit an issue here:
https://github.com/k4m4/kickthemout/issues
Details: 'nmap program was not found in path. PATH is : /opt/local/bin:/opt/local/sbin:/Applications/anaconda3/bin:/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/anaconda3/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/Library/Apple/usr/bin'

hey you have to add nmap to the PATH variable, or install nmap if you didn't already


Bug: scheduled transactions with multiple splits end up going to imbalance

Ive noticed that my scheduled transactions imported from desktop with multiple splits will chuck it in imbalance instead of where the split shows.
One example is salary, have $100,000,000 (i wish!) in income:salary, and then all that goes to assets:bank. I also have some in same split going budget:thing1, budget:thing2 and the sum of all the budgets (inversed) to budget so it all cancels out.
What i actually see is -$100,000,000 in imbalance and $100,000,000 in budget. And $0 in everything else.
The budget technique is from http://allmybrain.com/2008/12/15/better-budgeting-with-gnucash/
If it helps i can probably set up an example book to do this, this report was based off my ongoing book.

Yes please, an example book would be awesome and would help us fix the
problem.
Thank you.
On Tue, Oct 25, 2016 at 1:26 AM, Hugh Davenport<EMAIL_ADDRESS>wrote:

Ive noticed that my scheduled transactions imported from desktop with
multiple splits will chuck it in imbalance instead of where the split shows.
One example is salary, have $100,000,000 (i wish!) in income:salary, and
then all that goes to assets:bank. I also have some in same split going
budget:thing1, budget:thing2 and the sum of all the budgets (inversed) to
budget so it all cancels out.
What i actually see is -$100,000,000 in imbalance and $100,000,000 in
budget. And $0 in everything else.
The budget technique is from http://allmybrain.com/2008/12/
15/better-budgeting-with-gnucash/
If it helps i can probably set up an example book to do this, this report
was based off my ongoing book.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/codinguser/gnucash-android/issues/603, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAQ422uDG8wbI4-D-9pAw_W0zys_DIUnks5q3T6zgaJpZM4KfZdA
.

Cool. Ill try get one this weekend

I have similar problem, and noticed that the transaction currency was different than the split quantity and split value currencies.

I think I can reproduce it with my expenses file. In my case they are just simple transactions transferring from one account.
@hughdavenport in your case do you have multiple currencies in the affected transactions like @pnemonic78 or just one?

Hey,
Sorry I completely forgot about this one! From memory it was just the one currency. I haven't really been using this app for a while.


Returned SQLParseException might be incorrect when using a parameterized query.

CrateDB version
5.9.2
CrateDB setup information
single node
Problem description
It appears that using a parameterized query can partially obscure a type error. I’m not entirely sure if this qualifies as a bug. Additionally, I believe that in many cases, using parameters for the UPDATE SET clause can be avoided by leveraging the excluded table.
Steps to Reproduce
CREATE TABLE t01 (
      id TEXT PRIMARY KEY,
      obj OBJECT AS (
        txt ARRAY(TEXT)
      )
    );
 INSERT INTO t01 (id,obj) VALUES ('a', '{"x":"xx","y":["yy"]}');

json using http endpoint
{
  "stmt": "INSERT INTO t01 (id,obj) VALUES (?,?) ON CONFLICT (id) DO UPDATE SET obj = ?",
  "args": ["a", {"x":"xx","y":"yy"}, {"x":"xx","y":"yy"}]
}

Actual Result
{
  "error": {
    "message": "SQLParseException[Cannot cast value `{x=xx, y=yy}` to type `object`]",
    "code": 4000
  }
}

This might seem like the provided value cannot be case to an object, however the issue is the underlying type mismatch of column y
Expected Result
{
  "error": {
    "message": "SQLParseException[Cannot cast object element `y` with value `yy` to type `text_array`]",
    "code": 4000
  }
}

as seen with
{
  "stmt": "INSERT INTO t01 (id,obj) VALUES (?,?) ON CONFLICT (id) DO UPDATE SET obj = excluded.obj",
  "args": ["a", {"x":"xx","y":"yy"}]
}

@proddata Thank you for reporting, it's a bug and fixed by #16978. Will be included in the next 5.9.3 hotfix released.


How to tell if video of remote participant is pause/unpause (APP SDK)?

I use below code:
ParticipantVideo participantVideo = this.remoteParticipantLeader.getParticipantVideo();
participantVideo.subscribe(this.mmvrSurfaceView);
            participantVideo.addOnPropertyChangedCallback(new   Observable.OnPropertyChangedCallback() {
                @Override
                public void onPropertyChanged(Observable observable, int i) {
                    final ParticipantVideo ppVideo = (ParticipantVideo) observable;
                    ppVideo.isPaused()
                }
            });

But  ppVideo.isPaused() alway return false. Plz help me

Me too.
participantVideo.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {
	@Override
	public void onPropertyChanged(Observable observable, int i) {
		if(observable instanceof ParticipantVideo) {
			switch (i) {
				case ParticipantVideo.PARTICIPANT_VIDEO_PAUSED_PROPERTY_ID:
					//get pause status
					break;
			}
		}
};

I have a workaround for this bug, which lets me detect remote video pause/unpause so I can hide or show the remote video view on remote video (un)pause.
I encountered this defect in the SfB Android App SDK, in all versions from 0.5 to the currrent 1.1
Hopefully the SfB App SDK for Android team will fix this soon! Are you watching guys?
Here is my workaround :

Join the meeting with the remote video view hidden
In the OnFrameRendered method of your MMVRSurfaceView.IMMVRCallback implementation, unhide the remotee video view if it is hidden. Also set a flag that frames were rendered.
Before you subscribe to an external video stream, clear the rendered flag
In your external video paused property changed handler, check the rendered flag to see wheter we are currently paused. Then simply toggle to the other state.

This works reasonably well in most meeting connect flows but it is a bit brittle; missing paused changed messages can result in the video window remaining visible while external video is paused.

@dcmen @guoGavin @VincentH-Net I will look into this one.
Thanks for reporting this.

@rahulyaa any progress on this? Is it fixed in 1.0.3?
(1.0.3 has been out for 10 days now but without any release notes on what was fixed / changed. 1.0.3 is not even mentioned on https://msdn.microsoft.com/en-us/skype/appsdk/releasenotes)


refactor(UI): update account details UI [GTN-347]

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


REDIR_URI behind reverse proxy

Hello,
I am trying to use this package to login with Azure Active Directory in a Django app behind a reverse proxy.
I read in the docs that the "REDIR_URI" param is deprecated an now is automatically calculated. This represents a problem for me because the authentification process tries to  redirect me directly to the host behind the proxy causing a 403 - Forbidden
Is there some configuration param that I am missing? Can I somehow change how the REDIR_URI is calculated?
Thanks a lot!

The middleware use django.contrib.auth.views.redirect_to_login which defaults to settings.LOGIN_URL if not supplied.
In other words you can change your LOGIN_URL Django settings to your own implementation of this view, where you generate your own redirect URI.

Did you figure it out?

Closing for inactivity. Let me know if you still have issues.


Make Storage API and implementation more friendly to Spine's storage-specific libraries

This PR addresses some inconsistencies in both Storage API and its base/abstract implementation, so that descendant port libraries, such as Spine RDBMS could migrate their features to Spine 2.x with less hassle.
Major breaking change (breaking for SPI users, that is) is merging EntityRecordSpec and MessageRecordSpec into a single RecordSpec type. It has been done for several reasons.

Allow to assemble the columns for EntityRecords consistently on top of EntityRecord itself. Previously, the column values in EntityRecordWithColumns — which were picked from Entity state directly — could differ from those values actually stored in EntityRecord.
Provide an ability to re-assemble RecordWithColumns instances purely with the relevant Message instance along with its spec. Previously, Entity-related RecordWithColumns could only be assembled with an Entity instance.
Simplify the code in Storage API, eliminating one of type inheritance branches.

Other changes include:

Storage column definitions made public.
Transformation of generic entity queries into Storage-internal RecordQuery instances now preserves the type of the column, by which values query aims to filter the dataset.
Behaviour of AggregateStorage.historyBackward() has been made eager instead of lazy, as previously. This is needed to ensure the access to the history under the circumstances of maintaining the connection to the database.
More documentation was added to the tenancy modes recommended for certain scenarios, such as configuring system storages (e.g. InboxStorage).
FieldMaskApplier has been made @Internal-ly public, as its functionality is required in descendant libraries to prevent any code duplication.

@alexander-yevsyukov PTAL.

@alexander-yevsyukov it has been a long time since this PR was first approved. Many things have changed since then. PTAL again.

@alexander-yevsyukov PTAL.


tools:fix n6000 static code analysis issue-Buffer Overflow Non-null T…

…erminated String

Buffer Overflow - Non-null Terminated String
Buffer overflow of 'bom_info' due to non null terminated string 'bom_info

Signed-off-by: anandaravuri<EMAIL_ADDRESS>

Coverage increased (+0.03%) to 61.254% when pulling 2548095e54d565a8389838f9fb7719740e73bb01 on aravuri/fix_kw_fpgainfo into 4463450da7cdf3480acb88ec6b948c46101c045c on master.


feat(compaction): support sub-level in L0

What's changed and what's your intention?
Always pick files in the same unit if possible
Checklist

[x] I have written necessary docs and comments
[x] I have added necessary unit tests and integration tests
[x] All checks passed in ./risedev check (or alias, ./risedev c)

Refer to a related PR or issue link (optional)

current main branch:

this PR

the total write data reduce 16% and the compaction becomes more smooth.
current main branch. The number of files in L0 increase to a large value and than compact them all to L6 in one compact task.

Suspend this Pr until we have decide key-encoding for vnodemap.
Maybe we do not need to implement unit-aware compaction after we sort all data by vnode-id.

Suspend this Pr until we have decide key-encoding for vnodemap. Maybe we do not need to implement unit-aware compaction after we sort all data by vnode-id.

vnode encoding is completed via #3416 and #3432. Shall we revisit this PR to see whether we still need it?

Suspend this Pr until we have decide key-encoding for vnodemap. Maybe we do not need to implement unit-aware compaction after we sort all data by vnode-id.

vnode encoding is completed via #3416 and #3432. Shall we revisit this PR to see whether we still need it?

Since https://github.com/singularity-data/risingwave/issues/3617 will use OverlappingLevel to replace L0 and it is a 2D array,  So I can rewrite tiercompactionpicker so that we can pick files with less overlap.

restart this PR after we change proto mentioned in https://github.com/singularity-data/risingwave/issues/3617

I written a lot of code to refactor our version level with sub-level and I have try my best to optimize our compaction speed and write-amplification.
But there is a bad message: I can not make write-amplification better (smaller) than our main branch, even if I reached this goal based on hash-compaction.
The major problem is our algorithm can not compact a file to target position but not overlap with many other files without unit-id help. But there are still some work we can do after this PR.
The following is the different between my PR  and main branch:

There will be several sub-levels in l0. And every time we commit epoch, we can generate a new sub-level. For spill-to-s3, we may generate several sub-levels in once checkpoint. All tables locate in sub-level will be read as a OrderedMergeIterator because we may flush several files in once checkpoint and there may be several version of one key.
Only allow the last sub-level compact files to base-level (level 1).
If the min-compaction of last sub-level would cause large write-amplification, we will pick up more sub-level in this compaction task.
If several sub-level are small, merge them to a large sub-level.
If some table in sub-level-2 does not overlap with anyone in sub-level-1, it can be moved from sub-level-2 to sub-level-1 without compaction task.
I use epoch as the sub-level-id for every new sub-level. But i do not think it is a good idea..

this pr contains 1700+ LoC. is it possible to break it down into several parts?

this pr contains 1700+ LoC. is it possible to break it down into several parts?

It's difficult because sub-level change both the structure and strategy of read and compaction. If I split it to several parts, any one of them will make risingwave run incorrectly.

I will split trivial-move to another PR.


(WIP) Use subpath instead of sys.modules for aliasing

Our previous import aliasing hack was (at the least) breaking a unit test and causing enough obfuscation that static analyzers were having trouble understanding the code.  I also wasn't able to convince myself that it wasn't causing subtle breakage elsewhere.  This new hack should be a lot better.

I've verified that the Python tarball works properly on GNU/Linux.  I haven't yet tried the AppImage, Android, or Windows binaries (though they all do build without errors).

AppImage, Windows, and Android were all broken; I've fixed AppImage and Windows.  I think Android may be fixed, but I don't have an easy way to test it.

Here's an Android binary based on this PR:
http://zs7xwvcspvnnrqhvyxyxpjkihc4lva3yustfr75j6giy24mdfg3rcwqd.onion/#FkL9aNjhMhE6WAtjZCweDA
SHA256 hash is 6d01b298fe4a8e7f674f6e9d70cc17a906802b1580e776a044641bbfbdac3278

Here's an Android binary based on this PR:
http://zs7xwvcspvnnrqhvyxyxpjkihc4lva3yustfr75j6giy24mdfg3rcwqd.onion/#FkL9aNjhMhE6WAtjZCweDA
SHA256 hash is 6d01b298fe4a8e7f674f6e9d70cc17a906802b1580e776a044641bbfbdac3278

Somewhat on Matrix reports that this Android binary works fine and has no substantive differences compared to our latest official binaries.  So, I think it's fine to merge this.

Removed the WIP tagging.  I'll merge this if the Travis build passes.

macOS builds were broken.  Will push an attempted fix shortly.

The macOS build passes now.  If the rest of the Travis build passes, I'll remove the WIP tag and then merge.

Travis passed.  Removed the WIP tag, will merge shortly.


terrascan-action only available as docker image?

Hi,
we have to use self-hosted runners. I did some investigation and found out that self-hosted runners don't support github actions based on docker images.
How can I use terrascan without using the docker image?

Hi @Olgoetz I am also trying to run terrascan on a self-hosted runner.  It tries to download the image and it seems like it should work, but I'm getting a rate limit due to trying to download the image anonymously from Docker Hub.  I was looking to see how to include my personal access token for terrascan to use to pull the image, but now I'm wondering if it would even work.

This project it obviously no longer supported.


Curious about AOT compilation

Hi sir, sorry this is not a bug, just curious about this lib even works fine with AOT mode, because System.Management is obviously not compatible with AOT mode: https://github.com/dotnet/runtime/issues/61960
so what magic did you use, sir?
and thanks~

I wrote this library on Jul 12, 2020 but AOT became available with .NET 7 on Nov 8, 2022
I don't know why it works with AOT :)
Perhaps it works because my code never call the methods mentioned in the link you provided:
ManagementClass managementClass = new ManagementClass("Win32_BaseBoard");
var instances = managementClass.GetInstances();
foreach (var obj in instances)
{
    //...
}

I wrote this library on Jul 12, 2020 but AOT became available with .NET 7 on Nov 8, 2022
I don't know why it works with AOT :)
Perhaps it works because my code never call the methods mentioned in the link you provided:
ManagementClass managementClass = new ManagementClass("Win32_BaseBoard");
var instances = managementClass.GetInstances();
foreach (var obj in instances)
{
    //...
}

thanks man~ :)


working with ggplot2 v 2.0.0

(This works fine on one machine, but I've just reinstalled R etc on my other machine, leading to the following)
I've recently reinstalled everything related to R on this machine, and have installed ggplot2 from CRAN. When I try to install emoGG, I get the following:

installing source package 'emoGG' ...
 You need the latter with the version of ggplot2 now on CRAN.
I need to switch this over this week...
On 20/01/2016 13:11, markrt wrote:

(This works fine on one machine, but I've just reinstalled R etc on my
other machine, leading to the following)
I've recently reinstalled everything related to R on this machine, and
have installed ggplot2 from CRAN When I try to install emoGG, I get the
following:

installing /source/ package 'emoGG' ** R ** inst ** preparing
package for lazy loading Error : package 'ggplot2' 200 was found,
but == 101 is required by 'emoGG' ERROR: lazy loading failed for
package 'emoGG'
removing 'C:/misc_directories/emoGG' Error: Command failed (1)

—
Reply to this email directly or view it on GitHub
https://github.com/dill/emoGG/issues/10.

Resolved with the update!


Allow RunGcloud to work with --help.

Some commands, including anything with the --help flag, ignore the
--format=json flag and can't be used with RunGcloud as is. (It
expects JSON formatted output and complains otherwise.) This allows
these commands to be used and just returns the full output as a
single string if JSON parsing fails.

How do you mean? It does try to parse them as JSON first and only returns the raw string if that fails. Also, a single string is also valid a valid JSON object (you'd just need to put a set of quotation marks around it).
But, yeah, I agree that it shouldn't just ignore it when a command doesn't respect the format flag. I could explicitly check if the help flag was in the command, but that seems a little brittle.

sorry, I confused myself here. I meant to format them as valid JSON if they're not deserialized correctly, (basically just to make sure that whatever the return value is can be passed to json.dumps() without error), but like you said the raw string already satisfies that. I think this is fine.

That's a good sanity check. I'll add a test for that before merging this.


Add Kerberos authentication option

Hello,
I was going to use this connector for hdfs, but I noticed it does not support Kerberos authentication.
To address this, I added Kerberos authentication functionality along with other related options.
In implementing this feature, I have used the existing hdfs sink connector codes as a reference, which already does support Kerberos authentication. (document link)
The example config would look like
iceberg.hdfs.authentication.kerberos: true,
iceberg.connect.hdfs.principal<EMAIL_ADDRESS>iceberg.connect.hdfs.keytab: "/tmp/user.keytab",
kerberos.ticket.renew.period.ms: 3600000

I understand there should be further tasks such as updating README and adding some test codes, but I wanted to share the core idea with you first for initial feedback.
Please take a look. Thank you.

:wave: This repository is in the process of being moved to Iceberg core.  Half of it has been moved already.  I would suggest making a PR there as these files are already present in Iceberg core https://github.com/apache/iceberg/tree/e6a1a45624b8bd8246c6ef5601cae046015f4532/kafka-connect


How do I inject spring bean into a job

When I tried use @Autowired to inject a spring bean to Job,It show me
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'returProductStoreJob' defined in file [E:\EclipseWorkSpaceFolder\MyWorkspace\jesquedemo\target\classes\cn\jaychang\jesquedemo\ch03\ReturProductStoreJob.class]: Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities)
Job class I use @Scope("prototype") and @Component annotation

Could we please have a response to this question?
kind regards


Scanned Dependencies Count

Some users have reported the scanned dependency count at the top of the report is different then number of rows in the dependency table (after clicking show all). These should match.

Upon further investigation it was determined that the count at the top of the page was including duplicates (i.e. if Apache Struts 2.1.2 was included twice in the scan then the dependency count would be 2).
I have added a unique count to the report. This will be included in the next release.


Undefined variable: message

Hi, I'm kind of new with this. Managed to get the installation going, was able to access most of the pages except for Login page. It's showing the header and the following as the content.
Any idea why the message variable is not defined from the controller?
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: message
Filename: auth/login.php
Line Number: 4
Backtrace:
File: /home/revest/public_html/application/third_party/ion_auth/views/auth/login.php
Line: 4
Function: _error_handler

Thanks for reporting the issue.
The problem is due to the view file (auth/login.php) conflict from Ion Auth (/application/third_party/ion_auth/views/) with that from Frontend Website. I have resolved it by changing the folder to "views_sample" in last commit (3456229f307e99ccc7f644a46f2ca6a3d5df6eec) and it should work fine now.

Thanks waifung.
If possible, can you walk me through how you manage to catch that conflict?

I caught the conflict because I saw the file "/home/revest/public_html/application/third_party/ion_auth/views/auth/login.php" is shown in Backtrace, so I wonder whether it overrides the display of my own auth/login.php view. Then it is proved after I did a quick test changing the folder name from Ion Auth.


Using codeActions

Should have a pseudo-comment with code action.
Have to wait for the pull request to merge, but also update of binport version

The relevant pull request is https://github.com/leanprover/lean4/pull/1661

I missed the fact that https://github.com/leanprover/lean4/pull/1661 has been merged four weeks ago. We should look at this carefully and design our interface to use it.
Note that lazy code actions are part of the API. So we do not have to worry about tirggering while editing.

It is really nice that lazy actions are supported by default. I'll take a look at the PR and try a few experiments imitating my lean3 code on the lake-update branch.

I have been trying various experiments with the test file "codeactions.lean" and asking Ed Ayers things. It looks like what we get easily is a position in a file. We can then read the file and work with it.
Given this, a good strategy may be to have a code action that picks up a comment before the present position (though after may be easier in terms of parsing). This can be pretty convenient to a user.

We will also need to account for the different kinds of comments /-- -/, /-! -/, /- -/ (so they may not always be perfectly palindromic). I will take a look at how the InfoTree stores the information about comments.

What I meant was that we can try to:

get the position,
get text up to that position and "trim",
reverse this,
use a parser to recognize a comment block starting the text,
extract the body and reverse again

You are correct that we have to deal with stuff that does not look fully like comments. But once we are alert to this it is easy.

But InfoTree may be more principled.

The question is do you know how to get the InfoTree from within a document?

Okay, I see a getInfoTrees function. But it still seems non-trivial at IO level to get the InfoTree and work with it. Working with just the text may be easier.

I am writing as I think, but here is my latest attempt at a simple implementation:

take text up to the cursor and trim it.
check that it ends with -/, otherwise do nothing (perhaps with a warning).
split along the last of the possible starts /-, /--, /-! - if all are absent do nothing.
now trim to get the text to work with.
translate this.
all this is done with a lazy code-action.

No, I have not yet figured out how to operate with the InfoTree. I agree, the string parsing option seems simpler - I will try that one first.

Stuff in the following thread may be useful:
https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/Syntax.20pos.20to.20LSP.20pos/near/310623959

Thanks, I will take a look. So far I have managed to extend the range to the entire line (not just the position where the hole command was invoked).

We don't want holes. One should just invoke a code action. I am asking on Zulip how to get the file.

Ed Ayers has a solution to build on:
https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/code.20action.20behaviour.3F/near/310845415

In the above readDoc gives an EditableDocument from which we get a FileMap, then a source which is presumably what we want.

By the way, @0art0 it looks like mathport is now getting regularly updated and building. So feel free to update the lean-update branch (with basic checks) to use the latest code for code-actions (which has had many updates)

I was able to extract the last docstring in the file through code actions and FileMap.source. I was also able to extract the smallest node of the InfoTree containing the start position of the snapshot, as well as the correspondingSyntax (this is a superset of what we need - which is node of the InfoTree containing the current position).

Looks good. May be convenient to make test code-actions that just paste the code retrieved (maybe in a comment) and succssively to get pieces of it. I mean refine towards code actions to get the query string without worrying about the OpenAI call, prompt etc (which will be easy once one gets the query string).

I agree. The code action I wrote currently just gets the body of the doc-string and pastes it in the editor.
This is the code I wrote. I will also experiment further with the InfoTree approach (since I have most of the code already and it may be more robust) and finally push a fully working version to lean-update on Monday.
open RequestM in
@[codeActionProvider]
def readFile : CodeActionProvider := fun params _snap => do
  let doc ← readDoc
  let text := doc.meta.text
  let source := text.source
  let pos := text.lspPosToUtf8Pos params.range.end
  let edit : TextEdit := {
    range := params.range
    newText :=
      let comments := source.splitOn "/-" |>.reverse
      let comment := comments.head!.dropRight 2
      comment
  }
  let ca : CodeAction := {title := "Translate comment to a Lean theorem", kind? := "quickfix"}
  return #[{eager := ca, lazy? := some $ return { ca with edit? := WorkspaceEdit.ofTextEdit params.textDocument.uri edit}}]

@0art0 I tried the above (in a different project) and it works very nicely.
My suggestion is that you factor things so that a function takes source  and pos as arguments and returns text to insert. This is to allow handling variants such as user cliking before a comment, inserting theorem with title etc.

@0art0
Here is the design I feel will work well for the main code action:

Get the text up to the present position and trim.
Check that this ends with -/; if not give a warning and do nothing (or paste a warning in comment during a debugging phase); if so dropRight 2.
Split along /- to detect if we have either a comment or a docstring; if no split then an error, otherwise look at the last piece and distinguish by whether it starts with - (coming from /--).
Get the core, trim and run the translation.
For docstrings paste on a new line with format example <the completion> := by sorry
For comments simply paste the completion (padded with spaces).

A second code action can be generating docstrings. Here the focus is assumed to be the beginning of a theorem, and we take the head after splitting by ":=". I have pushed code for a function statementToDoc to do the querying for this.

Here are few minor features in addition to the main design that I think may be useful:

Detecting /-- <comment> -/ theorem  or /-- <comment> -/ def patterns and triggering either theorem translation or definition translation.
Detecting /-- <comment> -/ theorem <name> patterns to use the specified name rather than one generated by Codex.
Moving the user's cursor to the := sorry after the translation has been pasted into the editor.

Here are few minor features in addition to the main design that I think may be useful:

Detecting /-- <comment> -/ theorem  or /-- <comment> -/ def patterns and triggering either theorem translation or definition translation.
Detecting /-- <comment> -/ theorem <name> patterns to use the specified name rather than one generated by Codex.
Moving the user's cursor to the := sorry after the translation has been pasted into the editor.

Agreed, but the first may be blocked till we have definitions in the database. I am looking for a demo product on the timescale of a couple of weeks.
The second looks feasible (and is a good idea), as also allowing clicking before and in the middle of a comment/docstring. As for the third I do not know how easy it is. We can discuss though what are the priority features for the present.

I agree, it may be best to leave out these additional features for the demo product. These may also become easier to implement later on as more high-level API surrounding widgets and code actions gets added.

There is a technical issue we will face, but looks like there is a clean solution (was trying something else when I realized this).

the translations after correction, filtering etc end up in TermElabM Expr and we want IO String
firstly, there are delaborators (which I use in many places) that will give TermElabM String
this is reduced to CoreM String by using run' twice - something done before calling by all my command line programs.
the tricky part I thought would be to run from CoreM String to IO String (via EIO) - in the command line programs this is done by building environments.
luckily there is a function RequestM.runCore, which calls Snapshot.runCore. Looks like the best bet is to run this from snap picking up parameters from the Request environment (same ones we are using already).
indeed, in the first to run' invocations (to reduce to CoreM) instead of dummy filenames we may want to use stuff picked from the environment.

For doc-string comments, I managed to use the InfoTree to extract the relevant information in the form of Syntax. It works fine for all three kinds of patterns mentioned in the comment above, and works from anywhere in the doc-string. However, it does not work for plain comments (of the kind /- ... -/).

Leo had mentioned in a conversation that comments are not part of the syntax tree if they are at the end. He had said that Lean 4 could be changed to accommodate this, but if we request this we will do so at a much later stage.
It is nice if things can be picked up from anywhere in the doc-string, but one should make sure the range is set at the end of the doc-string (using the source-info in syntax and converting to Lsp positions).

@0art0 There is a technical issue we will face, but looks like there is a clean solution (was trying something else when I realized this).

the translations after correction, filtering etc end up in TermElabM Expr and we want IO String
firstly, there are delaborators (which I use in many places) that will give TermElabM String
this is reduced to CoreM String by using run' twice - something done before calling by all my command line programs.
the tricky part I thought would be to run from CoreM String to IO String (via EIO) - in the command line programs this is done by building environments.
luckily there is a function RequestM.runCore, which calls Snapshot.runCore. Looks like the best bet is to run this from snap picking up parameters from the Request environment (same ones we are using already).
indeed, in the first to run' invocations (to reduce to CoreM) instead of dummy filenames we may want to use stuff picked from the environment.

I just pushed a function running to Core for when needed

I have added the feature of pasting at the end of the line, and it seems to be working correctly.

Thanks. I will now try to create a full working prototype on a branch of lean-update.

@0art0 since I have been bitten by this a couple of times,

when testing translations one needs to have Mathbin.All as an import
the code for translation has some collision if we do have Mathbin.All as import.
so one needs to use a separate file for examples/tests

Thanks. I was puzzled by why the translations were failing. I will create a separate file.

Realized that what may be breaking in binport is the delaborator. This can be bypassed if it is the only problem. Will check if more basic things are fine.

Realized that what may be breaking in binport is the delaborator. This can be bypassed if it is the only problem. Will check if more basic things are fine.

Indeed a simple code-action shows that there is no fundamental problem. Will work on avoiding delaboration (by just remembering the syntax that worked) and test.

It is good to know that the code actions can be used with Mathbin after all. I have pushed an outline for the approach to code actions by parsing strings.

The bad news is that bypassing delab using syntax did not fix the weird binport errors.

It is good to know that the code actions can be used with Mathbin after all. I have pushed an outline for the approach to code actions by parsing strings.

It is better not to use the snapshot for positions - as I usnderstand it is for internal use to avoid recomputing. Working with the source text and positions (like my getting the tail) is likely to be more robust.
We should try to get things working in one case. Can look to cover more cases later.

@siddhartha-gadgil I have added code for extracting the comment nearest to a given position in the document. It works when the cursor is anywhere in the comment, or even slightly before or after. I would like to make a few more improvements:

[ ] Scanning just a nearby block of text rather than the whole document
[ ] Adding Syntax parsing in addition to string parsing
[ ] Making the extractCommentText function more robust.

@0art0 before making the improvements, can you try to call the translation function and paste the translation instead of the comment? This is so that we have something that works fully first before adding requirements for additional pieces.

I see that it works, but to add to the above have it appended with a newline and enclosed in example and := by sorry to make valid code? Just want to see a full working example.

@0art0 I did this. The base case looks good now.

@0art0 Good news :smile:
Just tried the code action with binport and it worked fine.

I was able to confirm it on my set-up too (after rebuilding mathlib3port). However, I couldn't see any recent changes to the code. Was it the delaboration fix from earlier that made it work?

I was able to confirm it on my set-up too (after rebuilding mathlib3port). However, I couldn't see any recent changes to the code. Was it the delaboration fix from earlier that made it work?

Actually it seems that our "intermediate" test code failed while the final code worked. As binport is a hack some things like this perhaps have no good reason.

Mentioning it so I don't forget: in the case where there are no valid translations, it may best for the user to give the auto-corrected syntax for the first translation in the generated list (more useful than sorries).
In the longer run we can still do this, but with integration with infoview.

I believe that the Try this syntax might already be a part of Lean4, although I could find only a single example in the Lean source, and it does not appear to print directly to the infoview.

I believe that the Try this syntax might already be a part of Lean4, although I could find only a single example in the Lean source, and it does not appear to print directly to the infoview.

There is no need to use Try as this is our own function. I already have an optional translation function (used for batch translation). I will implement the fallback (maybe also tweak the syntax, where there are extra spaces).
I will make a "project" here so we can keep track.

This is done.


Zip & unzip not installed

Zip & unzip are not installed as part of the base box. If I add them to extra_packages, that doesn't seem to run until after a bunch of composer stuffs. On my slow internet connection, that means vagrant provision always fails. Why should the absence of zip/unzip matter? Composer cannot use prefer-dist if those aren't available, forcing it to do a git clone. That pushes me over the 300 second limit and the composer install fails, killing the provision.
Solution: add zip/unzip as part of the base box so they are just there.

I don't think @geerlingguy has added anything extra to the boxes. Everything is done through ansible.
For a quick hacky solution to get this fixed right away you could do:
php_packages:
  - php5
  - php5-mcrypt
  - php5-cli
  - php5-common
  - php5-curl
  - php5-dev
  - php5-fpm
  - php5-gd
  - php-pear
  - php-apc
  - libpcre3-dev
  - unzip

This would install it before the composer task runs.
As for a more stable solution. We can't really bump the extra package install task further up as it's common to use this for "addon" packages that depend on the roles that run before. Maybe we just add it as a dependency in the init pre_tasks https://github.com/geerlingguy/drupal-vm/blob/master/provisioning/tasks/init-debian.yml.

Yeah, I'm thinking we could just do it in pre_tasks for debian (and RHEL too, if it's not available there).

Fixed by #551.


Each Portfolio Background Image Cannot Display Correctly

The reason is that:
See lfdantoni commented on Aug 12, 2019 on
https://github.com/angular/angular-cli/issues/12797
Angular 8 cannot translate url(relative path) to absolute path

Currently, the temporary solution is to change url("/assets...") to url("~src/assets...") based on https://www.gitmemory.com/issue/angular/angular-cli/14587/498184343
https://github.com/angular/angular-cli/issues/14587
Waiting for a better solution


Task9 & Task10

Task9: Concatenate the first name and last name, Read the values from the input dialogue box and store the values in Array and write into text file through the index values.
Task10: Add the Multiple choices of weekdays. Based on user selection from 1 to 7, the message needs to be displayed (Do the task in Sequence).

Added Task 11
Task: Add the Multiple choices of fruits or vegetables. Based on user selection from Fruits or Vegetables, the message needs to be displayed (Do the task using Flow Chart).

Added Task12
Task: Find Differences between Excel and Excel Work Book.

@MaheshKaramala
Task -9
Code verified.
Task -10
Code verified.
Task -11
Code verified.
Task -12
Code verified.


Create flannelctl utility

It would be great to have a command line utility to manipulate config in etcd, list current leases, etc.

https://github.com/pegerto/flannelctl

I think we can close this issue if we add a link to the tool


DataTables responsive and knockout binding

While using dataTables with Knockout, the binding is not working when resizing the table.Find the sample fiddle where you can click on the colors.
http://jsfiddle.net/Purushoth/2zrx2jf0/
Re-size the output window then click on the color and binding will not work.

SO: http://stackoverflow.com/questions/31209014/knockout-binding-issue-with-responsive-datatables

I would not expect this to work with Responsive in the way you describe. The information shown in the child row is a copy of the data data shown in the DataTable - not the original element. So if you want an event listener on it, you would need to add an event listener.
The other option would be to write a custom renderer that does use the original elements.
Going to close this here - it is working as expected at the moment (even if not desired). If you would like to see this feature in future, a feature request in the Response repo would be the correct place to fine it.

Here is a solution/workaround for this issue.
http://clanjs.com/2015/10/23/knockout-binding-issue-with-responsive-datatables/


handleFilterSuggestions breaks drop down suggestions click handlers

Hi, when I include handleFilterSuggestions and return the array of suggestions without modification, it does what you would expect: all suggestions populate the drop down list. However, when i click any of the suggestions, they all do the same thing: call handleAddition with the first element from the possibleSuggestionsArray. Am i missing something here ? All of the click handlers are passing the first element of the array to handleAddition. If I remove handleFilterSuggestions the problem is fixed.
Here's the basic shape of what I'm talking about:

handleAddition(tag) {
    // tag always equals the first element in possibleSuggestionsArray
}

handleFilterSuggestions(textInputValue, possibleSuggestionsArray) {
    // possibleSuggestionsArray is what you would expect
    return possibleSuggestionsArray;
}

...

<ReactTags
    handleFilterSuggestions={this.handleFilterSuggestions} />

@brianarpie Do you still have your behaviour? I cannot reproduce it

@brianarpie do you still have your behaviour? :)

For anyone else who happens to run into this issue, the fix I found was to disable the autocomplete.
Looks like the if statement is causing the issue: https://github.com/react-tags/react-tags/blob/4cd4f6519a51b3d0b17b40ccf5d12ff85e9d24e6/src/components/ReactTags.js#L383


Error while running tool

What happened:
Error while running tool
How to reproduce it (as minimally and precisely as possible):
horusec_sast:
  stage: check-code
  image: horuszup/horusec-cli:latest

  services:
  - docker:dind

  script:
    - horusec start -p ./ -o json -O horusec-report.json

   artifacts:
   paths:
     - horusec-report.json
   expire_in: 1h

time="2022-06-27T08:42:12Z" level=warning msg="{HORUSEC_CLI} During execution we found some problems:"
time="2022-06-27T08:42:12Z" level=error msg="{HORUSEC_CLI} Error while running tool DotnetCli: Error response from daemon: invalid mount config for type \"bind\": bind source path does not exist: /builds/maingroup/subgroup/project/.horusec/8d61c6b9-f012-4ad7-bad7-b8f893ef74c1"
time="2022-06-27T08:42:12Z" level=error msg="{HORUSEC_CLI} Error while running tool SecurityCodeScan: Error response from daemon: invalid mount config for type \"bind\": bind source path does not exist: /builds/maingroup/subgroup/project/.horusec/8d61c6b9-f012-4ad7-bad7-b8f893ef74c1"
time="2022-06-27T08:42:12Z" level=error msg="{HORUSEC_CLI} Error while running tool Semgrep: Error response from daemon: invalid mount config for type \"bind\": bind source path does not exist: /builds/maingroup/subgroup/project/.horusec/8d61c6b9-f012-4ad7-bad7-b8f893ef74c1"
time="2022-06-27T08:42:12Z" level=error msg="{HORUSEC_CLI} Error while running tool Trivy: trivy config cmd: Error response from daemon: invalid mount config for type \"bind\": bind source path does not exist: /builds/maingroup/subgroup/project/.horusec/8d61c6b9-f012-4ad7-bad7-b8f893ef74c1"

Environment:

Horusec version (use horusec version):
Version: v2.8.0
Git commit: https://github.com/ZupIT/horusec/commit/df32c1ce03d2de748cecb76cff383f2851e198c3
Built: Wed Jun 08 13:57:08 2022
Distribution: normal

How to fix this problem?

hello @john047
Make sure you have privileged access in your settings as docker will mount some volumes with your project.

Hello @wiliansilvazup
config.toml has privileged = true setting

Why might the tool not work?

Into gitlab configuration the recommended is run using docker format like this issue opened #1086


Inconsistent and inaccurate naming of course enrollment

Issue
If set up correctly, Artemis allows users to enrol themselves in courses. Incorrectly, however, this is named "registration". We already have reserved the word "registration" for the functionality the user uses to sign up to Artemis (if configured).
Additionally, the German and English versions differ from each other: English uses "registration", and German uses "Anmeldung", which corresponds to "sign in"/"login".
Suggestion
I suggest consistently using the words enroll (ENG) and einschreiben (GER) when working with this functionality. This increases the consistency between both language versions and makes our language more precise.
It affects code and template

Good suggestion. Let's fix that directly. @pal03377 is working on this at the moment. Could you directly implement it in your current PR?

I created the issue because he didn't want to do it in the PR.
Honestly, I think doing it in another PR would be better. Easier to focus on the relevant code segments to review.

Hello @krusche, I have been working on this issue and, as pointed out replaced key & value pairs in the following matter:

Anmeldung -> Einschreibung
Register -> Enroll
in the files student-dashboard.json, course.json (and also the connected .HTML and .ts files)
Artemis Users cannot see an instance of Anmeldung/Register on the UI anymore.

However, I have also noticed that variables, components,... are also named register instead of enroll. These span over a lot of files that would require change if it is desired to do so. Should I change them as well or not?

@dearjasmina I'll allow myself to answer as I created the issue :D
The intention was to fix this system-wide. This includes everything UI-related, but also variables, tests, etc.
Because if we don't have consistency everywhere, you just have to wait for someone to read the variable and create some new text using the wrong term. And then we have the same issue once again.
However, it's up to you if you want to create multiple smaller PRs that tackle only a part of the issues so you get faster reviews and faster testing or if you want to, create a larger PR solving the issue at once.
Just don't close the issue before it's solved completely :)
Feel free to edit the issue and add different categories that need renaming (e.g. Translation, different classes, different tests, etc). This way, if you decide that you only want to do a portion, you can check everything you've done and someone else can take over.


TypeError: list indices must be integers or slices, not NoneType

Environment:
Docker Image Version: <IP_ADDRESS> GPU Pytorch
Vitis AI Version:3.0
Hello everyone, I encountered an error during the custom model quantization phase.
This is the error message:

This is a portion of my code:
class my_net(nn.Module):
    def __init__(self, b0, gamma):
        super(my_net, self).__init__()

        self.quant_stub = nndct_nn.QuantStub()
        self.dequant_stub = nndct_nn.DeQuantStub()

        self.quant_stub1 = nndct_nn.QuantStub()
        self.dequant_stub1 = nndct_nn.DeQuantStub()

        self.unet1 = UNetRes(50, 50)

        self.add_nndct1 = functional.Add()

        self.cat_nndct1 = functional.Cat()

    def forward(self, y, Phi, Phi_s):
        y = self.quant_stub1(y)
        Phi = self.quant_stub(Phi)
        temp = y.reshape([y.shape[0], 1, y.shape[1], y.shape[2]])
        temp1 = self.cat_nndct1([temp for _ in range(50)], dim=1)
        temp2 = self.add_nndct1(temp1, Phi)
        theta = self.unet1(temp2)

        xx = self.dequant_stub1(theta)

        return xx

Through my own analysis, I found that the problem occurs with the concatenated temp1. When I feed it into unet1, an error occurs.
What could be causing this issue? Are there any solutions? I would appreciate any help or suggestions you might have.

As a supplement, I followed the error message and checked the corresponding file, discovering that the issue can be traced to the following location in base_graph.py:

It is precisely because the code on line 452 mentioned above does not hold that the error mentioned earlier occurs. I wrote the code according to the operators provided officially, so why is there such an error? Is there any way to resolve this issue? I hope everyone can give me some advice so that I can solve this problem.


Add fixed parameters in the GWSampler

This adds the parameters that have delta-function priors when sampling. It is needed so that the sky rotation transform and importance sampling works when holding some parameters fixed.
Corner plotting is also updated with a new flag for whether to include these fixed parameters. Default is to not include them.
This still needs to be tested.

Yes, this PR fixes running injections with fixed parameters.
I tested the PR on the tutorial example and the following code worked to generate an injection with fixed posterior parameters except for chirp mass and mass ratio:
    # Load the network
    pm = PosteriorModel(model_path, device="cpu")
    sampler = GWSampler(model=pm)

    # Generate an injection consistent with the data the model was trained on.
    injection = Injection.from_posterior_model_metadata(pm.metadata)
    injection.asd = ASDDataset(asd_path, ifos=["H1", "L1"])
    theta = injection.prior.sample()
    inj = injection.injection(theta)

    # Generate 10,000 samples from the normalizing flow.
    sampler.context = inj
    sampler.run_sampler(10000)

    result = sampler.to_result()

    # Run importance-sampling on the result.
    num_processes = 8
    result.importance_sample(num_processes=num_processes)

    # Make a corner plot and save the result.
    result.print_summary()

However, running dingo_pipe on a model with Delta priors does not work (the weights are nan?). I will do some more investigation to track down the bug.

Try it now. I'm excluding the fixed parameters when evaluating the prior.

I tested the new commit on dingo_pipe of the tutorial example with chirp mass and mass ratio:

It works and runs through.
The corner plot contains chirp mass, mass ratio, log prob, log prior, log likelihood and weights (as expected).

Example plot:

This should be sufficient for the tutorial. You can merge the branch.


"Found built image, launching..." but the session is not launching

Bug description

This morning I shared my Jupyter Book project on social media -- all of the notebooks included in the book have Binder instances -- but Binder is not launching for the notebooks. The build log says "Found built image, launching..." but the instance never launches. Maybe this is happening because more people than usual are trying to launch Binder instances? Any suggestions for fixing this issue would be much appreciated.
How to reproduce

Go to https://melaniewalsh.github.io/Intro-Cultural-Analytics/Data-Analysis/Pandas-Basics-Part1.html
Click on the Binder instance in the top right corner https://mybinder.org/v2/gh/melaniewalsh/Intro-Cultural-Analytics/master?urlpath=lab/tree/book/Data-Analysis/Pandas-Basics-Part1.ipynb
See "Found built image, launching..."

Your personal set up

OS: MacOS 10

Logs

"Found built image, launching..."

Just an update that it seems to be working again. For the future: does number of users impact Binder load time?

Just an update that it seems to be working again. For the future: does number of users impact Binder load time?

Hi 👋 and what a cool book/project!
We limit the number of simultaneous instances of one repository to 100. When a repo reaches that limit the build log will say so. This means that this is/was a different thing.
Usually the "Found image, launching ..." means that the image is being launched but for some reason isn't reporting back "hey I am alive now, send the user over!!". Most of the time this is because there is a problem with the entrypoint/command of the image. However if your image worked and then stopped working without you making changes, this is probably not it.
I'll take a look at the logs to see what I can see.
tl;dr: not sure, probably not your fault, probably related to how popular the repo got (in a short amount of time).

Hi 👋 and what a cool book/project!
We limit the number of simultaneous instances of one repository to 100. When a repo reaches that limit the build log will say so. This means that this is/was a different thing.
Usually the "Found image, launching ..." means that the image is being launched but for some reason isn't reporting back "hey I am alive now, send the user over!!". Most of the time this is because there is a problem with the entrypoint/command of the image. However if your image worked and then stopped working without you making changes, this is probably not it.
I'll take a look at the logs to see what I can see.
tl;dr: not sure, probably not your fault, probably related to how popular the repo got (in a short amount of time).

Thanks, Tim (@betatim)! 🎉 Binder is a huge part of what makes the book/project cool (in my humble opinion)!
This is very helpful to know re simultaneous instances and the "Found image, launching..." message. I'm sure that I can also make my project more streamlined for faster launch times. If you find anything in the logs with regard to that kind of improvement, I would love to know. I'm still learning, and my project is still growing!

Thanks, Tim (@betatim)! 🎉 Binder is a huge part of what makes the book/project cool (in my humble opinion)!
This is very helpful to know re simultaneous instances and the "Found image, launching..." message. I'm sure that I can also make my project more streamlined for faster launch times. If you find anything in the logs with regard to that kind of improvement, I would love to know. I'm still learning, and my project is still growing!

I think you might have been a victim of an upgrade of a dependency we use to talk to the Kubernetes API. At least I can't find anything else that looks out of the ordinary.
To make launches faster there are two things you can investigate:

not reference master/main but a tag. This way not every typo fix triggers a rebuild. Instead you can periodically move the tag (say once a week or so)
investigate making your image smaller via something like https://github.com/binder-examples/minimal-dockerfile. Smaller images are faster to transfer over the network which is one of the main time sinks after building the image

(2) speeds up launches a bit but means you are going the manual route, so some of the "magic" of binder (actually repo2docker) is lost. However with the increased control you can shrink the image a lot. Maybe something to investigate once things are becoming stable and development of the book slows down a bit?
(If you are happy please close the issue to help keep things a bit tidy :D We should continue optimisation talk in the forum on discourse.jupyter.org as that is more discoverable and has more readers who have ideas)

I think you might have been a victim of an upgrade of a dependency we use to talk to the Kubernetes API. At least I can't find anything else that looks out of the ordinary.
To make launches faster there are two things you can investigate:

not reference master/main but a tag. This way not every typo fix triggers a rebuild. Instead you can periodically move the tag (say once a week or so)
investigate making your image smaller via something like https://github.com/binder-examples/minimal-dockerfile. Smaller images are faster to transfer over the network which is one of the main time sinks after building the image

(2) speeds up launches a bit but means you are going the manual route, so some of the "magic" of binder (actually repo2docker) is lost. However with the increased control you can shrink the image a lot. Maybe something to investigate once things are becoming stable and development of the book slows down a bit?
(If you are happy please close the issue to help keep things a bit tidy :D We should continue optimisation talk in the forum on discourse.jupyter.org as that is more discoverable and has more readers who have ideas)

Thanks so much! These are great tips for optimizing the Binder launch time, and it's good to know about the upgrade. I will take any further questions or discussion to the Discussion Forum! Cheers.

Thanks so much! These are great tips for optimizing the Binder launch time, and it's good to know about the upgrade. I will take any further questions or discussion to the Discussion Forum! Cheers.


futures::Future trait implementation not available for IAsyncOperation in v0.58 for some APIs

Summary
Trying to update to 0.58 in https://github.com/deviceplug/btleplug, now getting errors on all async calls to the WinRT Bluetooth APIs:
error[E0277]: `IAsyncOperation<GattCommunicationStatus>` is not a future
  --> src\winrtble\ble\characteristic.rs:72:32
   |
72 |         let result = operation.await?;
   |                               -^^^^^
   |                               ||
   |                               |`IAsyncOperation<GattCommunicationStatus>` is not a future
   |                               help: remove the `.await`
   |
   = help: the trait `futures::Future` is not implemented for `IAsyncOperation<GattCommunicationStatus>`, which is required by `IAsyncOperation<GattCommunicationStatus>: std::future::IntoFuture`
   = note: IAsyncOperation<GattCommunicationStatus> must be a future or must implement `IntoFuture` to be awaited
   = note: required for `IAsyncOperation<GattCommunicationStatus>` to implement `std::future::IntoFuture

I looked through the CHANGELOG but it's rather dense for this version update and I'm not sure what I'm missing.
Our last library version was released using v0.52, and updating to v0.57 still seems to work, it's just moving to v0.58 that seems to be causing this issue.
Crate manifest
No response
Crate code
No response

This was removed in #3142 out of safety concerns, but there is an attempt to bring it back in #3177.

Closing in favor of #342

I have the same problem, is this fixed now somehow? I can't seem to find a clear answer in all the related links. How do i get to call await?

Yes, this has been fixed as of #3213 - there just hasn't been a release of the windows crate with this update.

Ok. I've reverted to 0.56 in the meantime, also in 0.57/0.58 the 'implement' COM macro complains about core any not being available


fix(ui): sync populated to field value in bulk upload

What?
This PR fixes an issue where bulk upload on an upload field with hasMany, which had errors on sequential uploads, caused only the last successful upload to be saved to the field value.
Why?
To save all successful uploads to the field value and sync what was shown in the ui to the actual field data.
How?
By triggering a rerender that syncs populatedDocs to the fields value on each sequential successful upload after form errors were resolved.
Fixes #9890
Before:
Bulk-upload-before--Post---Payload.webm
After:
Bulk-upload-after---Payload.webm
Notes:

Noticed a minor UI bug where the sidebar thumbnails displayed the wrong thumbnail after a successful form was popped from the FormsManager. Likely cause is not updating thumbnails array after each succesful request.
The core issue was that onChange would not correctly set the field value in useField resulting in stale values that would overwrite old docs.
I'm not pleased that I couldn't avoid a useEffect here despite trying to. I likely overlooked something, or a refactor should be considered somewhere here.

Hey @akhrarovsaid - Thanks for taking the time to solve this!
I did some digging / testing and your approach does seem to work but I think there is a simpler way to fix #9890
You're right that the onSuccess function is basically stale in the above scenario so you should simply just need to add this effect in the Upload / Input file:
React.useEffect(() => {
    setOnSuccess(onUploadSuccess)
  }, [value, onUploadSuccess, setOnSuccess])

and then remove other usage of setOnSuccess from that file and your current PR changes.
If you want to make this change, I'll review it once more afterwards - if you're busy, I can also go ahead and make a PR for this - let me know!


document release process

Fixed - I hadn't rebased my local branch. The changes that you saw were already merged into master.

@shaper let me know if this looks good.


Support UDFs operating multiple MV columns as Clickhouse does

Data Model, tag_names, tag_values and tag_properties are MultipleValue columns.
tag_names: [x, foo, foo, x]
tag_values: [bar, y, y, y]
tag_properties: [a, b, c, d]
We have a customer want to move from Clickhouse to Pinot and their CH expression below:
arrayElement(tag_properties, arrayFirstIndex (( n, v) -> n = 'x' AND v = 'y', tag_names,  tag_values))
return d
Another advanced usage is
arrayElement(tag_properties, arrayFirstIndex (( n, v) -> n = 'x' AND match(bar, '/.*fo.*/'), tag_names,  tag_values))
return a
https://clickhouse.com/docs/en/sql-reference/functions/array-functions
In order to meet arrayElement(tag_properties, arrayFirstIndex (( n, v) -> n = 'x' AND v = 'y', tag_names,  tag_values)), I wanted to contribute following ArrayFunctions below: arrayElement(tag_properties, arrayFirstInt(arrayIntersect(arrayIndexAllString(tag_name, x), arrayIndexAllString(tag_value, y))))
arrayIndexAllString(tag_name, x) -> [0,3]
arrayIndexAllString(tag_value, y) -> [1, 2, 3]
arrayIntersect([0,3], [1,2,3]) -> [3] (Note, the result is always sorted)
arrayFirstInt([3]) -> 3
arrayElement(tag_properties, 3) -> d

For the lambda expression implementation (regexp should be part of the lambda), it's out of the scope of this PR. In my two cents, maybe we can use groovy in the future.

arrayFirstInt(col) is equivalent to arrayElementAtInt(col, 0)
arrayElement is available in different types (currently pinot doesn't have type matching, so the type needs to be included in the function name
Would you like to help contribute the other 3?

arrayFirstInt(col) is equivalent to arrayElementAtInt(col, 0) arrayElement is available in different types (currently pinot doesn't have type matching, so the type needs to be included in the function name
Would you like to help contribute the other 3?

yep, I will contribute the ArrayIndexAll{Type} and ArrayIntersect.

Also, does arrayIndexAllString(tag_name, x) have an implicit filter of WHERE tag_name=x ?

Also, does arrayIndexAllString(tag_name, x) have an implicit filter of WHERE tag_name=x ? If so we can also leverage inverted index for filtering.

Great idea. But the result needs to be the index in the MV column. I need to check how to leverage inverted index.

Yeah, I would first try to rewrite the query arrayElement(tag_properties, arrayFirstIndex (( n, v) -> n = 'x' AND v = 'y', tag_names,  tag_values)) to pinot format.
E.g.
SELECT
    arrayElement(
        tag_properties,
        arrayElementAtInt(
            arrayIntersect(
                arrayIndexAllString(tag_name, x),
                arrayIndexAllString(tag_value, y)
            ),
            0
        )
    )
FROM myTable
WHERE tag_name=x AND tag_value=y


port turner's stubbed copy to show off a few real case studies

its a start...

reordered sections
added hardcoded star counts to showcase projects
stubbed in a couple new ones


Substituting the same variable multiple times into

Given the example query
drop table if exists {{population_table}};
create table {{population_table}} as....;

If I call:
query, bind_params = j.prepare_query(templ, params_dict)
and then
engine.execute(query, bind_params)
I get the error that there aren't enough bind_params to substitute into query. I believe this is because I've included the {{population_table}} variable twice in the template.
How could I go about fixing this? (It might be true that I should execute those queries separately, but it's also valid to have a case where there are several of the same substitution in one query).

What kind of param style are you using? Have you tried looking at the query which is created from jinjasql?

@notconfusing JinjaSQL works perfectly well with multiple usages of the same variable in a single query. It assigns a random postfix to the key generated for same named parameter. In your case, JinjaSQL would have created two keys - population_table and poulation_table#456 (with some random number).
Can you please share the following details to track this issue down?

Output of j.prepare_query(templ, params_dict)
Which param_style are you using, or is it just the default one?
Your database engine.

@devashishsharma2302 The version of jinjasql which replaces with an underscore has not yet been pushed to pypi. On version 0.1.6 it's currently using # as a delimiter not _.
Because of this jinjasql will fail when trying to execute in sqlalchemy using named parameters, as # is not considered a valid character in sqlalchemy bind parameters.
I would guess that issue is happening here, since engine looks sqlalchemy like. 🤔

@henryrizzi Version 0.1.7 with the change is pushed to PyPi now. Thank you for reporting!
@notconfusing Can you upgrade JinjaSQL to version 0.1.7 and check if the issue still persists?

Closing this ticket as I believe the underlying issue has long been resolved.


Duplicated atom mapping after "canonicalize_prod.py"

i followed the readme and setup the environment successfully, and i wanted to apply the code to my own dataset. However some errors occured for the preprocessing process.
One of my reactions with the atom mapping is
"[F:1][c:2]1c:3[cH:4]c:5c:6[cH:7]1.[NH2:13][c:14]1[s:15][cH:16][cH:17][c:18]1[C:19]#[N:20]>>[c:2]1([NH:13][c:14]2[s:15][cH:16][cH:17][c:18]2[C:19]#[N:20])c:3[cH:4]c:5c:6[cH:7]1".
After running "canonicalize_prod.py", the remapped reaction is "[F:1][c:9]1[cH:10]c:11c:13[cH:15][c:16]1N+:17[O-:19].[N:1]#[C:2][c:3]1[cH:4][cH:5][s:6][c:7]1[NH2:8]>>[N:1]#[C:2][c:3]1[cH:4][cH:5][s:6][c:7]1[NH:8][c:9]1[cH:10]c:11c:13[cH:15][c:16]1N+:17[O-:19]", where there are two atoms with the same atom mapping in the reactants.
And then i inputted it to the "parse_info,py", it was failed to be extract reaction info. I guess it was caused by the duplicated atom mapping.
There are a lot of similar errors in my own dataset, and if i skip the "canonicalize_prod.py", most of them could be processed normally by "parse_info.py".
could you fix this error? or could i skip the "canonicalize_prod.py" without affecting the performance?
Any help would be greatly appreciated.

Thank you for providing that example, it makes sense - I didn't check for duplicates after remapping (didn't need to with the USPTO-50k), and a fix is needed to account for this, and remap the duplicates differently. The fix itself should not take time, but I am time squeezed for the next couple of weeks.
The edit prediction step should be invariant to the application of canonicalize_prod.py.
The order of fragments however is dependent on canonicalization, which influences leaving group completion performance especially if you have no canonicalization during training and canonicalization during testing (the latter is standard practice during evaluation).
You can skip the canonicalize_prod.py step if you don't change the order across training and testing, I think.

Thank you for providing that example, it makes sense - I didn't check for duplicates after remapping (didn't need to with the USPTO-50k), and a fix is needed to account for this, and remap the duplicates differently. The fix itself should not take time, but I am time squeezed for the next couple of weeks.
The edit prediction step should be invariant to the application of canonicalize_prod.py. The order of fragments however is dependent on canonicalization, which influences leaving group completion performance especially if you have no canonicalization during training and canonicalization during testing (the latter is standard practice during evaluation).
You can skip the canonicalize_prod.py step if you don't change the order across training and testing, I think.

Thanks a lot for your quick reply.
I'll try skipping the 'canonicalize_prod.py' and see how it works. Looking forward to your fix.

I tried to write a fix for the code, but the example you provided fails to give me a molecule with the following error
- SMILES Parse Error: unclosed ring for input: '[c:2]1([NH:13][c:14]2[s:15][cH:16][cH:17][c:18]2[C:19]#[N:20])c:3[cH:4]c:5c:6[cH:7]1'
Can you provide a different example so I can check for correctness?

I tried to write a fix for the code, but the example you provided fails to give me a molecule with the following error - SMILES Parse Error: unclosed ring for input: '[c:2]1([NH:13][c:14]2[s:15][cH:16][cH:17][c:18]2[C:19]#[N:20])c:3[cH:4]c:5c:6[cH:7]1'
Can you provide a different example so I can check for correctness?
Edit: Script for reference
from rdkit import Chem
rxn_smi = "[F:1][c:2]1c:3[cH:4]c:5c:6[cH:7]1.[NH2:13][c:14]1[s:15][cH:16][cH:17][c:18]1[C:19]#[N:20]>>[c:2]1([NH:13][c:14]2[s:15][cH:16][cH:17][c:18]2[C:19]#[N:20])c:3[cH:4]c:5c:6[cH:7]1"
r, p = rxn_smi.split(">>")
pmol = Chem.MolFromSmiles(p)

oh, it seems that my reaciton was parsed incorrectly by the markdown syntax. sorry for not discovering it earlier.
The plain text of the reaction is
[F:1][c:2]1[c:3]([N+:10](=[O:11])[O-:12])[cH:4][c:5]([F:9])[c:6]([F:8])[cH:7]1.[NH2:13][c:14]1[s:15][cH:16][cH:17][c:18]1[C:19]#[N:20]>>[c:2]1([NH:13][c:14]2[s:15][cH:16][cH:17][c:18]2[C:19]#[N:20])[c:3]([N+:10](=[O:11])[O-:12])[cH:4][c:5]([F:9])[c:6]([F:8])[cH:7]1

Perfect, thank you. Let me try with this!

I have pushed a fix, please try it out and let me know if there are any issues!

I have pushed a fix, please try it out and let me know if there are any issues!

thanks a lot! i will try it and give feedback soon

Sorry, there was an issue with variable naming, it is fixed now

Closing this issue now, feel free to reopen if necessary!


spawn_npc.py missing?

CARLA version: 0.9.13
Platform/OS: Windows 10
Problem you have experienced:
What you expected to happen: spawn_npc.py missing from examples directory
https://carla.readthedocs.io/en/0.9.13/tuto_G_retrieve_data/#map-setting
Set Traffic

should the documentation reflect the new generate_traffic.py?

I too use Carla on Windows. spawn_npc.py is within carla\Co-Simulation\Sumo directory for me. I think you may look at the same directory. However, I couldn't execute it and encountered with an error. If you make it execute, could you please inform me?
Error: C:\Users\re\anaconda3\python.exe: can't open file 'spawn_npc.py': [Errno 2] No such file or directory

@apiszcz - I stumbled across exactly the same issue last week when I upgraded to 0.9.13. generate_traffic.py seems to have the same functionality as spawn_npc.py - so I am assuming that it is a replacement. And yes, the documentation does not seem to reflect this yet.

Probably you've been checking an older version of the documentation. As far as I know, almost all instances of spawn_npc.py mentioned there have been replaced with the new generate_traffic.py script. It's basically the same, just a name change. We'll double check the documentation anyway, thanks for mentioning this!

Just to flag it here, the documentation (0.9.13 and latest) is still using the spawn_npc.py:
https://carla.readthedocs.io/en/latest/tuto_G_retrieve_data/#carla-traffic-and-pedestrians

@MattRowe18 Please, can you make this change?


Added required and suggested extensions to composer.json

This allows to fail during composer package installation rather than on run time.

Didn't even know this was possible. Thanks!


kernel/common-config: enable a whole bunch of stuff

Description of changes
This is just useful things I've found while diffing our kernel configs with Arch and Fedora. Some of these have a small performance overhead, most are completely free.
Commence the bikeshed!
Verified that x86_64 and aarch64 kernel configs evaluate with this.
Things done

Built on platform(s)

[x] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

What about SATA_MOBILE_LPM_POLICY=3? Both the distributions you mentioned have it and it should be a significant power saving.

I'll just make the switch to schedutil, and if we find reasons not to, we can back it out.

Also, build-tested all kernels up to 6.6 on x86_64, aarch64 (cross) and i686.

Didn't manage to fully review it today, will finish tomorrow, sorry!
My Hydra's now building my machines with this PR on top so I can start using it starting tomorrow for testing.

Could you consider some configs mentioned there?

Which specific ones? Some of what you listed there is enabled already, or enabled here. Other things I'd like to see justification for.

Which specific ones? Some of what you listed there is enabled already, or enabled here. Other things I'd like to see justification for.

Sorry, it seems that this difference is outdated, but there are still some things to consider, such as UCLAMP_TASK

UCLAMP_TASK is enabled in this PR.

Kernel changes doesn't go via staging usually.
Le mar. 19 mars 2024, 15:15, Bjørn Forsman @.***> a
écrit :

@.**** requested changes on this pull request.
Reminder that this probably should go to staging (due to 2500+ rebuilds).
—
Reply to this email directly, view it on GitHub
https://github.com/NixOS/nixpkgs/pull/296867#pullrequestreview-1947500416,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACMZRFWU5CVU7AT4VYODKTYZC2IVAVCNFSM6AAAAABE3INZOWVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTSNBXGUYDANBRGY
.
You are receiving this because your review was requested.Message ID:
@.***>

Let's do this then.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/battery-life-still-isnt-great/41188/12


New Integrated ad blocker trackers of the new duckduckgo web browser

Hello, it looks like google might remove the google account of those who use an adblocker on youtube, so the solution seems to be "Duck Player," which shows (most) YouTube videos "without privacy-invading ads" and doesn't feed your recommendations"
duckduckgo is making a web browser for windows and mac in beta version with a lot of privacy tools!
https://arstechnica.com/gadgets/2023/06/duckduckgo-offers-its-privacy-centered-browser-in-a-windows-open-beta/
other developers make web browsers with an integrated adblock like the experimental uazo browser and the macchrome web browser..., maybe our beloved Thorium browser can integrate these options, thank you very much!
https://github.com/uazo/bromite-buildtools
https://duckduckgo.com/windows
https://duckduckgo.com/mac
https://github.com/duckduckgo/Android
https://github.com/duckduckgo/iOS
https://github.com/uazo/bromite
https://github.com/macchrome/winchrome/releases
https://github.com/macchrome/droidchrome/releases

You can try to solve the problem of web ads by installing ad filtering extensions, etc. If the site does not allow the use of ad filtering extensions, please consider complying with the site's rules if possible
@trimechee

I already use ublock origin but i said to myself adblocker integrated natively in the browser would be even more efficient , and the new features of the new duckduckgo web browser are revolutionary....but i search and i can't find the source code of duckduckgo web browser for windows

duckduckgo is sadly quite "sus" in terms of security, since they seem to love violating their own privacy policy quite a lot

https://github.com/yuliskov/SmartTubeNext


How do I resize image correctly ?

Hi,
In my markdown file, I have following image embeded.
![alt text](image.png)
Could you advise the correct way of resizing the image while I am using dark-theme-editor ?
best regards,
winston

Hello,
Sorry for the late update. Unfortunately, there is no easy way to resize images in markdown currently. The style file fixes the width of the image to 100%. Apparently, unless you write the inline style, there is no way to overwrite this rule. This will be fixed in the next release. Thanks for your understanding.

thank you for advise.


Expose PadForwardPayloadHeader in JWTRule

Describe the feature request
Currently, when outputPayloadToHeader is specified in the JWTRule config there is no way to force padding the (base64) forwarded value. It is controlled by: pad_forward_payload_header on Envoy jwt_auth filter.
We need this PadForwardPayloadHeader to be exposed in JWTRule.
As comparisons with other products, in Consul we have this field exposed here: https://developer.hashicorp.com/consul/docs/connect/config-entries/jwt-provider#forwarding-padforwardpayloadheader.
Describe alternatives you've considered
We needed to craft our own EnvoyFilter.
Affected product area (please put an X in all that apply)
[x] Networking
[x] User Experience

cc. @zirain

Can you explain why we need this? IIUC this means we are going to take a encoded token that we said we would forward and modify it? Why?

Another service will consume the forwarded encoded token (produced by the envoy's jwt_authn filter) via the specified header. For some implementations, decoding base64 string without padding causes an issue (for example: a legacy service owned by a different team). [Setting PadForwardPayloadHeader] to true (https://github.com/envoyproxy/envoy/blob/8d1ab6332f86b8010f8662fee233aadf79ad5ee0/source/extensions/filters/http/jwt_authn/authenticator.cc#L383-L385) makes sure the encoded value has proper padding.

What @dio said is correct. The proxy/mesh/gateway team is often not the same team as underlying services that assume padded Base64. This is especially true when integrating onto large existing systems. Older versions of golang default to require padding.
Since this flag is already present in Envoy, there's likely use cases for it and should be reasonably expected here as well?

this sounds reasonable for me, a simple API change will help, @howardjohn  WDYT?

I am not sure it makes sense to put header manipulation rules in request
authentication. This could be solved with a simple lua filter or wasm
plugin to re-write the header into a format appropriate for the user
On Mon, May 27, 2024, 6:17 PM zirain @.***> wrote:

this sounds reasonable for me, a simple API change will help, @howardjohn
https://github.com/howardjohn WDYT?
—
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/issues/50856#issuecomment-2134195832, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEYGXPJLVQKM7HTV4SRVKDZEPLK7AVCNFSM6AAAAABHGNQIZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZUGE4TKOBTGI
.
You are receiving this because you were mentioned.Message ID:
@.***>


WIP Integration of SymbolTable into HeapStatData / ThreadLocalStore

Comparing this against ambuc/symbol-table.
This has a few bugs -- I think this segfaults about 50% of the time while destructing something inside server/server.cc, so it can be built and run but tends to crash hard when it begins closing and draining listeners (I think I put some private member variables in the wrong order).
Otherwise this works (!!) and saves ~20% memory consumption on a config of O(10k) clusters.
NB: I think there are places in here where I naively perform the same encode twice in a row, or where it might make sense to perform an encode and then pass that StatNamePtr alongside the original string into some new function, to avoid needing to perform the encode. Feel free to point them out if you see them.

Don't merge this :octocat:


Transpiling

Can you provide some docs on how to setup the transpiling process.
Is there a babel plugin?

I wrote careless-loader, but that's for webpack. I'm planning to publish it to npm probably later this week.


Update awesome-linux link

https://github.com/dhamaniasad/awesome-linux/ has been merged with https://github.com/aleksandar-todorovic/awesome-linux/

Thanks!


Move qier222.yesplaymusic 0.3.4 to qier222.YesPlayMusic 0.3.4

Microsoft Reviewers: Open in CodeFlow

https://github.com/microsoft/winget-pkgs/pull/156289#issuecomment-2146097791

[Policy] Reset Labels


⚠ Bofrost.fr has degraded performance

In 1298485, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 971 ms

Resolved: Bofrost.fr performance has improved in b208092.


Mismatch in normal and compressed build_matrix

build_matrix yields different results depending on the compressed argument (see #38 for a commented-out test).

No, I just forgot the meaning of compressed. This is correct...


Debounce TokenScript and Dapp signing

Debounce TokenScript function signing.
Debounce DappBrowser signing.
Debounce TokenScript view click.
Tidy up confirmation call.

Example issues that are fixed:

Go to NFT factory. Set up token. Click 'deploy contract' button as fast as you can.
Go to tokenscript entry token, go to 'enter' and then spam the confirm button as fast as you can. You can sometimes get the app into a 'zombie' state where the signing dialog doesn't do anything and can't be dismissed. It's because the real signing dialog is buried underneath.

@JamesSmartCell can you clearly write what the problem is and how the PR solved it.

The PR code fixes the button issues detailed above. It ensures you can't button mash the JavaScript web buttons and get multiple dialogs. Also during external testing we saw ppl pressing the send tx/sign button in between the first fingerprint check and the dialog popping up. This fix displays a progress spinner and removes focus from the button during that time, in all the places where this could possibly happen.
It's not an essential fix but helps reduce the chance of unexpected things happening during interaction.
We tested the same on iOS it's partly solved; we managed to get some weird things happening (unexpected dialogs popping up if you mash the 'deploy' JS button on token factory) but nothing that breaks the flow.


Update live tests to use generated matrix configuration

This PR updates the live test platform configuration to utilize the matrix generation functionality, instead of a static configuration in the pipeline yaml. Moving to this new model will helps us solve our job matrix definition and filtering problems dynamically, e.g. testing multiple clouds, operating systems, test flags, host infrastructure, and so on.
I added a few features to the matrix generation scripts to support parity with some existing scenarios. See the README.md changes for usage details and syntax. Hopefully the pipeline logic reads a little better now that we don't have to rely as heavily on yaml template expressions to filter out platforms.

Support filtering the job template whether a container image is specified
Support additional matrix/platform entries defined in tests.yml files.
Support filtering by a job display name regex in the pipeline UI
Support groups of matrix values, meaning we only generate one matrix permutation per group, but splat the parameters on generation.


token_info 'verified_email'

Hi,
Hopefully i am posting this in the correct place.  We have noticed that in the file 'users_id_token.py' that when the email address is being verified it is using.
 if token_info.get('verified_email'):     _logger.warning('Oauth token email isn\'t verified.')     return
However, upon checking the responses from 'https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=xxx' that sometimes 'verified_email' is returned and other times 'email_verified' is returned.  When 'email_verified' is returned the error is triggers.
Presently we have monkey patched the code to check for both, but thought I would alert you nonetheless.
Many thanks

I am also having the same issue!

Hi Salvador, below is by no means a long term solution but i patched the code with
  if token_info.get('email_verified') == False or token_info.get('verified_email') == False:     _logger.warning('Oauth token email isn\'t verified.')     return
if you search for 'token_info.get('verified_email')' it should take you to a file 'users_id_token.py' in which you can make the fix.
Cheers

Thanks @dudedolf .
For local development (if appengine), we can monkey-patch to use a most recent token api version:
# On your appengine_config.py add the following.
if os.environ.get('SERVER_SOFTWARE', '').startswith('Development'):
    from endpoints import users_id_token
    users_id_token.___TOKENINFO_URL = users_id_token._TOKENINFO_URL
    users_id_token._TOKENINFO_URL = 'https://www.googleapis.com/oauth2/v2/tokeninfo'

Thank you I will look at implementing.

Is this happening only in local development? Or also when running on App Engine?


[CraftQueue] Enchanting Vellum not shown in Reagent Tooltip

I may be encountering a related issue.
The frame to select and optional reagent in old world profession is no longer being displayed for me.
this occurred while leveling TBC enchanting.  I was able to select the item for several crafts and then the frame just vanished.

Troubleshooting steps taken:
-Uninstalled and Re-installed CraftSim
-Removed Stored variables for the addon using the CurseForge "Delete Settings" Feature
-Disabled all addons except CraftSim to see if other addons were causing a conflict.
I am happy to assist with debugging this or submitting a new bug report if this issue is unrelated.
.yssupykcits on discord


Class 'OroCRM\Bundle\CaseBundle\Entity\Mailbox' does not exist

Hi,
I'm using the orocrm application.
I added my own bundle in src/ folder and the great bundle "doctrine/doctrine-migrations-bundle" via composer.
But when I used it to migrate my entities,  I always got the following error :
  [Doctrine\Common\Persistence\Mapping\MappingException]
  Class 'OroCRM\Bundle\CaseBundle\Entity\Mailbox' does not exist

In fact, this is true, this class does not exist, Mailbox Class is in Oro\Bundle\EmailBundle, not in OroCRM\Bundle\CaseBundle.
The trouble come from class inheritance through differents bundles.
The way to solve it is to replace in file orocrm/vendor/oro/platform/src/Oro/Bundle/EmailBundle/Entity/MailboxProcessSettings.php :
    /**
     * @var Mailbox
     * @ORM\OneToOne(targetEntity="Mailbox", mappedBy="processSettings")
     */
    protected $mailbox;

by
    /**
     * @var Mailbox
     * @ORM\OneToOne(targetEntity="Oro\Bundle\EmailBundle\Entity\Mailbox", mappedBy="processSettings")
     */
    protected $mailbox;

If someone can apply this fix in the source code...

Thanks @hmillet, we'll apply the fix


set html to textview

how can i set parsed html to TextView instead of add view?

That's not possible, as the HTML may get parsed to multiple views.
Did you consider the built-in HTML capabilities of TextView? They might be sufficient for simple HTML, see http://stackoverflow.com/questions/2116162/how-to-display-html-in-textview

yes sir, i tested that. unfortunately built-in html parser its not work
with your library and i like to use your library instead of that, thanks

مهندس مهدی پیشگوی

متخصص تولید
 سامانه های تحت وب و اپلیکیشنهای موبایلی اندروید

 با محوریت وب سرویس بر روی بسترهای RestFul و سوکت

@stefanhaustein oh i have a question. after add htmlview to other view, that can be selectable by user? for example select some character,word after parse to save or set that to other style as he want?

It's possible but you'll need your own method to do so.
Should look roughly like this:
void makeSelectable(ViewGroup viewGroup) {
    for (int i = 0; i < viewGroup.getChildCount(); i++) {
       View child = viewGroup.getChildAt(i);
       if (child instanceof ViewGroup) {
         makeSelectable((ViewGroup) child);
       } else if (child instanceof TextView) {
         ((TextView) child).setTextIsSelectable(true);
       }
    }
  }

its work fine, Thank you very much


Add /resources html-css beginner resources

Using https://docs.google.com/document/d/1Ts2CIvD7zXPVuOJF69w3Y5gFgHQxKENPOWjZMsnYLJo/ in #62, I added the /resources html-css command and the beginner resources in the doc.

Initial glance looks good, but i'll give it a full review tomorrow


Windows: Dragging extended frame window from Maximized doesn't update layout

Describe the bug
See #5581 this comment for video
Window has an added Style selector to add 8px padding when maximized to get around a Win32 thing, but that remains after dragging the window out of maximized state until something forces a render pass (like hovering over a button). Restoring via the max/restore button works fine
The WindowState property does update as expected and calling any of the Invalidate methods has no effect
To Reproduce
Expected behavior
Window padding should be removed when window is restored
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: Windows
Version 0.10.3

Additional context
Add any other context about the problem here.

I can still reproduce this on v0.10.6


Wavefront dropwizard metrics reporter for version 4.0.0

Hi,
Dropwizard metrics version 4.0.0 is released. can I use the wavefront reporter directly from Maven?

Just added support fro dropwizard metrics 4.0 (and removed support for the experimental dropwizard 4.0.x branch). Should be there once we make the next release.

Thanks!

Hi, I still can't find the new dropwizard-metrics-wavefront package as described in https://github.com/wavefrontHQ/java/tree/master/dropwizard-metrics/dropwizard-metrics-wavefront
Any idea when it will be available?

@ankrim It should be available within the next few weeks.

@ankrim FYI, the latest libs have been pushed to Maven repos. For dropwizard 4.0.0 you would want to use https://github.com/wavefrontHQ/java/tree/master/dropwizard-metrics/dropwizard-metrics

Thanks, yes, I updated to the new release today.


low resolution on flutter web

Hello.
I am writing a candlesticks chart in the Flutter: candlesticks. and I am using canvas to paint my candles. but the resolution of my chart is not very good when the user zooms out. compare my result with the Tradingview:
tradingview

my candlesticks

is it a flutter bug? or is there any way that I can improve resolution? thanks

@r-mzy47
Can you provide flutter doctor -v and a complete reproducible code sample that we can use to verify this behavior ?
Does the resolution works as expected in html rendering mode ?

flutter doctor:
[√] Flutter (Channel stable, 2.10.5, on Microsoft Windows [Version 10.0.19044.1645], locale en-US)
    • Flutter version 2.10.5 at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5464c5bac7 (3 weeks ago), 2022-04-18 09:55:37 -0700
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at C:\Users\r.mirzaei\AppData\Local\Android\sdk
    • Platform android-32, build-tools 31.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[!] Visual Studio - develop for Windows (Visual Studio Build Tools 2019 16.11.8)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
    • Visual Studio Build Tools 2019 version 16.11.32002.261
    X The current Visual Studio installation is incomplete. Please reinstall Visual Studio.

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] VS Code (version 1.67.0)
    • VS Code at C:\Users\r.mirzaei\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.40.0

[√] Connected device (3 available)
    • sdk gphone x86 (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • Windows (desktop)       • windows       • windows-x64    • Microsoft Windows [Version 10.0.19044.1645]
    • Chrome (web)            • chrome        • web-javascript • unknown

[√] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

reproducible code sample:
https://github.com/r-mzy47/binance_candles
no improvement in html mode. according to documentation resolution and performance in canvaskit mode are higher than html mode.

@r-mzy47
Please check this issue and see if it helps your case.

@darshankawar
no. I'm using canvas to draw candles.

Thanks for the feedback. I cloned your repo and ran it using canvaskit (flutter run -d chrome) using latest stable and tried zooming which zoomed properly as expected. See below:
https://user-images.githubusercontent.com/67046386/167629901-81e03eaf-023f-46b3-80c7-9878f3465e07.mov
Are there any different steps to replicate the behavior you originally reported ?


Package priority not respected by devenv shell

Describe the bug
Setting a package priority with lib.lowPrio or lib.highPrio isn't respected by decenv. Normally the meta.priority attribute is respected by buildEnv to choose which file to keep when building the environment if two packages provide the same file, but because devenv adds all the packages' outputs to the buildEnv, these priorities aren't respected.
I would expect the below devenv.nix file to give me bin/ruby 2.7 instead of 3.2
To reproduce
# devenv.nix
{ pkgs, ... }:

{
  packages = [ pkgs.ruby_3_2 (pkgs.lib.hiPrio pkgs.ruby_2_7) ];
}

Version
devenv: 0.6.2
I'm pretty new to nix, but updating the drvOrPackageToPaths function (https://github.com/cachix/devenv/blob/c90896345449b92d8f503cf8c2a339088bec0ddc/src/modules/top-level.nix#L9) to set the meta.priority of each output to match the top-level derivation if the output doesn't already have a priority might do the trick.
For now, I am using a custom version of hiPrio to call hiPrio on all of the outputs of a package and it seems to work:
{
hiPrio = pkg:
  pkgs.lib.updateManyAttrsByPath
    (builtins.map (output: { path = [output]; update = pkgs.hiPrio;} )
       pkg.outputs)
    pkg;
}

+1

Confirming that the devenv-profile/bin always has the highest priority (stays first entry in PATH).