Map API revisions

Consolidation of security functions to the auth package
Removed AuthFilter and replaced with SignedRequest annotations
and supporting DynamicFeature, Filter, and Interceptor.
Updated HMAC algorithm and supporting tests and documentation.
API for swapping sites revised to idempotent PUT
Signed-off-by: Erin Schnabel<EMAIL_ADDRESS>

This change is

Closing so that I can create another PR which is Reviewable by me.


proposal: x/crypto/ssh/terminal: move all APIs to x/term and deprecate

What version of Go are you using (go version)?

$ go version
go version go1.12.1 darwin/amd64

Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
not important

What did you do?
import (
	"os"
	"golang.org/x/crypto/ssh/terminal"
)

// abridged version
func checkIsTerminal(fd *osFile) bool {
	if fd != nil {
		return terminal.IsTerminal(int(fd.Fd()))
	}
	return false
}

What did you expect to see?
no "crypto" or "ssh" wording in import directive - there is nothing is going on what is  cryptography-related
What did you see instead?
Since it has "crypto" part in a path, we have to explain to our legal department what do we do here, why do we need it, and how it affects whole solution software export restrictions.
It would be nice to have non-crypto and non-password related parts to be moved into library that has nothing to do with "crypto" or "ssh", as it definitely has more utility than just for ssh-related work.

We've created golang.org/x/term exactly for this purpose. But the move hasn't been done yet.
This is related to issue #13104.
/cc @matloob @bradfitz

I think we should move all exposed APIs over from x/crypto/ssh/terminal to x/term (using type aliases as needed) and mark x/crypto/ssh/terminal frozen and deprecated. It indeed makes no sense in x/crypto and that's what x/term is for.

It would be nice if we had a maintainer for any of this code.
Overall I guess it is OK if we just move that code wholesale into x/term.
I'm not really sure about the API, but it would at least clean things up
not to have it in crypto.

This seems OK. We can't delete the old code but we can deprecate it.
I've seen no objections, so this seems like a likely accept.

@rsc -- what does "maintainer" role implies, sorry?

A maintainer is someone with experience with the code who is willing to take responsibility for reviewing contributions and fixing issues related to the code.

No change in consensus, so accepted.


How to add additional CSS libraries to Formeo

Hello, I'm currently trying to integrate the bootstrap CSS javascript addition to formeo(since I want to add an option to do dropdowns to the, and cards to the forms I make). I was wondering how I to add to CSS files to--since trying to install and link the file locations isn't working.
@kevinchappell

I have the same requirement. Would love some better documentation specific to CSS and integrating with Bootstrap 4.5. @Gfellha, did you figure it out?
The Library seems awesome, but I could not find enough documentation to figure it out completely. If there is documentation, please send link.


Follow-up for comments in PR 18

Refactored usage of removeExistingClusterWatcher
Rename getLabel/setLabel to getClusterIDLabel/setClusterIDLabel
Moved SetLabels call
Refactored structure of runQueueWorker

The orchestrator code is obsolete now.


Batch saving with the full name of the topic/thread

Just improvement. In the past I requested a feature for adding more options to save images and saving images with the thread name... Sometimes the app doesn't create the folder with the full thread title and I have to rename manually. It's possible to improve this? Or exists an limitation of the number of characters you can use?

Thread title is truncated to the first 30 characters.

A question, in my phone appears the directory three when I try to save something and the save dialog appears... That counts as characters too? You can't make possible to put more characters? Thank you.

Only thread title characters are counter, not all path, if I understand you.
I think 30 characters is enough for directory name. I can make ~50, but does it decide something?

Hahaha, that's because sometimes I'm too lazy to rename manually sometimes. And some anon make topics with giant titles. I would appreciate if you include in the next update.
Sorry for my English, it's very limited because I don't know some English words. Thank you for your attention.

Ok, next version I'll make 50 chars.

Sorry for my English, it's very limited because I don't know some English words. Thank you for your attention.

Lol, mine isn't good too.

Closing this issue because I realized That the now the app is creating folders with more characters.
Tbh your English is better than mine and very understandable.


Disable service worker by default (#18914)

Backport https://github.com/go-gitea/gitea/pull/18914 to 1.16 as requested in https://github.com/go-gitea/gitea/issues/19341#issuecomment-1091824340. It's a harmless change that should fix a lot browser cache issues. Later on, I plan to remove the ServiceWorker entirely.

I think generally, we should be able to expect users to not have copy-pasted the example config as-is so unless they willingly set this option, they should rely on the default.
But yes, a note could be added to further reinforce that this is essentially a bugfix and we suggest to disable it in all cases for production setups.


Sponsor page tweak

Tweak the sponsors view to output only logo  that links to sponsor's website/page, grouped by level. Similar to drupalconLA https://events.drupal.org/losangeles2015/sponsors

This is now done. @jonraedeke FYI. The sponsors can now be styled.

Links to sponsors home page doesn't seem to work.

When using features overrides on a view it doesn't seem to record the field order, which is why this was broken. To fix, save proper order on live site manually. It will not override the feature!


Remove tabIndex from preview component

Hi!
Currently developing a project that uses react-player and we are using a custom focus system. Having this tabIndex on the preview is sadly breaking it, and there is no easy way to remove it.
I think the tabIndex should be handled by the user implementing the player (Aka : wrap it around a div with tabindex)

I think the tabIndex should be handled by the user implementing the player (Aka : wrap it around a div with tabindex)

Wouldn't that prevent the user from being able to "click" the preview using the keyboard? You would need the clickable thing in focus.
I'm happy to add a previewTabIndex prop that defaults to 0? Or maybe just previewProps that lets you override anything on that div.

I think the tabIndex should be handled by the user implementing the player (Aka : wrap it around a div with tabindex)

Wouldn't that prevent the user from being able to "click" the preview using the keyboard? You would need the clickable thing in focus.
I'm happy to add a previewTabIndex prop that defaults to 0? Or maybe just previewProps that lets you override anything on that div.

I'm happy to add a previewTabIndex prop that defaults to 0? Or maybe just previewProps that lets you override anything on that div.

That's a better solution I think

I'm happy to add a previewTabIndex prop that defaults to 0? Or maybe just previewProps that lets you override anything on that div.

That's a better solution I think


sharing authentication between multiple projects (e.g. widgets)

Is your feature request related to a problem? Please describe.
We have multiple projects (typically, widgets on a web page), done by multiple teams. Because of single signout, we typically run a silent-refresh when a page is opened, to get a token if possible (we use authorization code flow, and prompt=none is typically used to make this non-invasive).
Widgets are not necessarily done in angular and are just separate scripts who don't know of each other, but they should be able to
a) know that authentication is ready (whether a user is actually logged or not), and
b) can the token is session storage.
c) rely upon the fact that tokens are refreshed on a regular basis
Describe the solution you'd like
As widgets with actual features are not really responsible for authentication, and there is no real master which could trigger it anyway, we created a widget with no output whose sole purpose is initiating silent request, and emitting an event when done.
From then on, it emits an event, which can be caught by other widgets.
Other widgets then can use the token from session storage.
The authentication widgets is further using the refresh scope, so tokens are refreshed properly.
Describe alternatives you've considered

Implementing the authentication widget as a script (not angular), but that would have to be done with another library, which might complicate integration in angular widgets.

Additional context
The question here is: could we have a feature that would make such feature easy to implement? Or even a part of the library that wouldn't depend on angular and could be started wherever on a page, firing an event when ready?

I don't think this library aims to work outside of an Angular context, or in a lightweight way as you describe. Even more so, since the library is about interactive flows involving redirects, it doesn't make much sense to have many instances of it on one browser tab.
What you can do, is make the main application running all them widgets (assuming that one is an Angular application) use the library and manage the session with the IDP. You can implement your own OAuthStorage and provide it, and build one that shares the token with the widgets in any fashion you deem secure and useful. The widgets then only need their own interceptor (or some such, since you mention not using Angular for them) to add an Authorization: bearer {token} header using the access token from the storage.
So in short, I think that what you want, in so far the library aims to provide it, already exists?
PS. If you don't want to use Angular at all, anywhere, this library is for sure not for you. I'd then recommend using another library entirely.

The main page isn't an angular application. It's a Drupal site. Each widget is delivered separately. The ones from our team are done with angular prime, but other teams use preact. So, this library is really a good much for us and this main authentication widget is solving our problem for now, but do you think there would be a better way to generalize our approach?

Ah, now I understand the question a bit better.
If you're going quite a bit outside the Angular ecosystem, especially if the main page isn't one, I'd certainly not use this library. There are surely other plain JavaScript OAuth2/OIDC libraries that are far better suited to that scenario.
How that'd work is probably more up to how Drupal does its thing. The main overarching application seems like it should be responsible for signing in a user and allowing widgets access to any security features.

Well that would be one way for sure. Now, some of the widgets are also shared across regular angular applications as npm libraries. And a new one we're going to develop is actually some part of an existing angular application. The part which is running the authentication flow, outside of our application, doesn't need to use this library. But for everything angular, I still think that using it is the best solution. Sure, we don't need much in that case (reading the token, and using the http interceptor to pass it to our backend), but I still think that using an existing library works better than reinventing the wheel.

All fair points, albeit quite specific to your scenario.
I changed the post to "[question]"; correct me if I'm wrong, but there's no specific "feature" being requested at the moment, right? That is, all the interception points you'd need to customize use of this library for your scenario are there already. You have many points as protected in the library, the option to add extra HttpInterceptors, an events stream on the library, and several things you can provide yourself including an OAuthStorage that would allow you to share things between various instances.
I personally would still look for a non-Angular but more Drupal-focused library, since you can consume non-Angular libs inside Angular just fine anyways. But that's more my opinion than a constraint of the library or some such.
If you feel there are specific features missing to support your scenario, which are also sensible to add to the library in a way where the cost (time to build & maintain, plus added complexity, risk, and 'weight' to other users) is worth it: do let us know!
Good luck with your scenario! Hope my bits of info were of some help.

My use case is indeed quite specific, but I do think there is a generalization that would benefit more people: when there are multiple independent widgets or applications on a page, how to initiate the authentication flow centrally and still make all widgets / applications aware?

I wouldn't focuss on Drupal too much, as our use is anecdotical (could change, the fact that multiple widgets need to share the authentication is what's important and I'd rather handle it client-side).
I do think that some kind of event that the library could subscribe to would be useful. Or do you have another idea which would let centralize this authentication flow?

Or do you have another idea which would let centralize this authentication flow?

The library aims to implement OAuth2/OIDC which I think it does, and it exposes the various interception and extension points I mentioned. So everything you'd need for your situation is already there. From there on out it's all application-specific stuff.
The "some kind of event that..." sounds a tad vague to me, again, all the plumbing you'd need is there already? I'd have to see a concrete, pragmatic, realistic scenario where the library is missing features to be able to tell/judge if such features would be worth it.

Probably I'm just misunderstanding, I have a hard time visualizing what "widgets" means in the context of Angular, unless you perhaps mean "Angular Elements" / web components?
Anyways, I'll leave it open for others in the community to help out with this question, as I'm not able to visualize the concrete scenario myself. Alternatively, you could do a Proof of Concept of what you think the library should provide? Perhaps if we'd see a start of the features you feel are missing in the library to build what you want, one of us could help form it into a proper (set of) feature(s)? Or you could create a minimal repro / small repository for a practical scenario that can currently not be handled?
Or perhaps another community member can chip in to turn the question into a practical proposal.

To clarify, by using the term "widgets", I actually mean any independant angular-elements component on the page, or any application / web components combination.

I'll possibly let the use case mature some more, and create a pull request then.
Thanks for your feedback.


feat(NumberField/CanonicalEmbedding/FundamencalCone): define the logMap

We define a map from the mixed space to the log space (The space used in the proof of Dirichlet theorem). By taking the inverse image of a fundamental domain of the unit lattice, we will get the fundamental cone, see #12268.
This PR is part of the proof of the Analytic Class Number Formula.

[x] depends on: #16762

bors r+


Update benchmarks

Fixes #2 by adding a table with the output of -prof gc.

Current coverage is 54.13%

Merging fix/2 into master will increase coverage by +0.39% as of a61702a

Powered by Codecov


Table 5 values but broken down into obj, attr, and rel

Do you folks have the values of NegCLIP on Table 5 from SugarCREPE but broken down? E.g., Replace-Obj, etc.
Also, are the SugarCREPE values from Table 5 a micro-average of the broken down values?

yes it is micro-average, will post the broken-down values asap

Table-5 RN50 train from scratch

Hard-negative
Replace-obj
Replace-att
Replace-rel
Swap-obj
Swap-att
Add-obj
Add-att

-
78.55
70.60
67.02
58.13
61.76
72.08
67.20

Replace
79.48
74.37
68.23
60.30
63.51
73.91
69.99

Swap
78.45
71.49
68.30
73.12
68.40
73.12
68.40

Negate
78.91
72.04
65.88
60.70
60.96
71.77
66.57

Rep+Sw+Neg
80.02
74.75
69.94
65.31
68.57
73.91
70.62

Table-5 ViT-b-16 fine-tune from OpenAI checkpoint | SugarCrepe

Model
Replace-obj
Replace-att
Replace-rel
Swap-obj
Swap-att
Add-obj
Add-att

OpenAI
90.92
80.08
69.20
61.38
63.96
77.20
68.79

Normal FT
93.58
85.79
73.83
68.29
71.77
88.12
78.03

NegCLIP FT
92.68
85.91
76.46
75.20
75.38
88.80
82.80

Replace
93.46
90.36
81.01
73.98
75.23
90.93
87.86

Swap
93.52
86.68
75.533
74.80
76.73
88.99
79.34

Negate
93.58
85.53
74.54
67.48
71.32
88.46
78.03

Thanks!!!

Table-5 ViT-b-16 fine-tune from OpenAI checkpoint | SugarCrepe

It's ViT-B/32, right?

Thanks!!!

Table-5 ViT-b-16 fine-tune from OpenAI checkpoint | SugarCrepe

It's ViT-B/32, right?

Yes, nice catch!


Clear up Dependabot alerts

See the Security tab for a list of reported vulnerabilities.

@robinbortlik, is this something you can look at when you're next working with this?

@mike-parkhill will take a look on it tomorrow :)

Hi @mike-parkhill ,
I'm very sorry, but I can't find any vulnerability reported. Is this the "security" tab you mentioned? https://github.com/docknetwork/developer-program/security
It seems there is not even dependabot configured. Do you want me to configure it?
Btw, this is just a static site generator, not code runs on server except build task running on github-actions . Do you think it is worthy to deal with dependabot it this case?

Dependabot is on and alerting me. Maybe you don't have access to see it: https://github.com/docknetwork/developer-program/security/dependabot
I'll check the permissions on that.

Check that link now - I think you should have access.

@mike-parkhill works now :) Thanks


Blog is down

And therefore the port's homepage is down too. Are you abandoning the project or deprecating it for another in the works?

Hi,
I haven't abbandonned the project. But I'm actually too busy to make update on it. I'll still continue to bug fix but I won't add any feutre except if someone want to.
And I'll fix the blog when I'll have the time to ^^
Anyway, like I said, it's usuable atm so I won't worj a lot on it.


DNScrypt Service won't running

Hello, I already use SimpleDNScrypt for long time but today the service cannot be start I try to reinstall it but it's not working. The slider won't turn green like always. Can't you look into it? Thanks

Oh and I try to change the fallback resolver to <IP_ADDRESS>:53 and it's still get the same message

Are you in Indonesia?

@jedisct1 Yes yes, I'm in Indonesia

Unfortunately, the dnscrypt website has been blocked by the government, so the list cannot be downloaded from it any more :(
Maybe the download location can be changed to https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v2/public-resolvers.md, if Github is not blocked (yet).

@jedisct1 If needed i can host the files from my website.

And your website will get blocked as well :/

@jedisct1 for now it's works! I changed it to https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v2/public-resolvers.md, hope it gonna last
@evilvibes Maybe I'll take the offer if the government make another block :(

One thing I can implement is the ability to have multiple URLs for a given source. They will be tried in random order.
This will allows having multiple mirrors for these files, which will greatly improve resiliency.

Alternative url can be found here
evilvibes.com/list/


Firebird missing DDL for procedures, views

With Firebird, we dont have DDL on procedures and views, also we cant save modifications because the sources are only readable.

I'll add CREATE/ALTER DDL statements.
But they will remain read-only for a while. Generic driver doesn't support sources modification.

Its okay if the DDL are good :) Im always saving my scripts, after every modification for versioning.


Unable to run StreamPipes for Core Development

Where does your observation occur?
None
What do you want to report?
I am trying to setup streampipes. I followed the documentation from this website - https://cwiki.apache.org/confluence/display/STREAMPIPES/Core
I did the following:

Cloned the github repository.
git checkout dev.
cd installer/cli && ./streampipes env --set backend.
./streampipes up -d
Opened the Poject in IDE (IntelliJ IDEA).
There are 2 run configurations:
A. core
B. StreamPipesCoreApplicationMinimal
I ran core configuration.
I can see that the application is running on port 8030 with context path '/streampipes-backend'.
I opened http://localhost:8030/streampipes-backend/ in the browser.
I am getting 401 Unauthorized (visible in network logs) and a Whitelabel error page.
I have tried some other paths as well which are listed in UnauthenticatedInterfaces.java file. But, I am getting the same error for all of them.

I see the following logs in the console repeating. But, I think they are not relevant to the problem:
2024-01-08T21:40:15.858+05:30  INFO 84218 --- [pool-3-thread-1] o.a.s.s.SpServiceDiscoveryCore           : Could not find any extensions services, retrying (1/3)
2024-01-08T21:40:16.872+05:30  INFO 84218 --- [pool-3-thread-1] o.a.s.s.SpServiceDiscoveryCore           : Could not find any extensions services, retrying (2/3)
2024-01-08T21:40:17.889+05:30  INFO 84218 --- [pool-3-thread-1] o.a.s.s.SpServiceDiscoveryCore           : Could not find any extensions services, retrying (3/3)
2024-01-08T21:40:18.909+05:30  INFO 84218 --- [pool-3-thread-1] o.a.s.s.SpServiceDiscoveryCore           : No service found

Am I missing something or doing something wrong? Thank you.
Solving the problem
I don't know whether this is the issue or if I am doing something wrong. I would appreciate any help getting started contributing as soon as possible.
Anything left
No response
Are you willing to submit a PR?
None

Hi @himanshu-pareek,
thank you for reaching out to us.
It looks good to me the way you've done it.
Can you perhaps have a look at the environment variables that are set in IntelliJ for the core?
Cheers,
Philipp

HI @tenthe
These are the environment variables which are set for core run configuration in IntelliJ:

And the following is the complete run configuration for core:

Thanks

Hi @himanshu-pareek can you access the UI?
It seems the backend is running. It is normal that you get a 401 when accessing the backend directly without authentication. You can also check the output of the extension service running in Docker to make sure it can connect to the locally running backend.

Hi @dominikriemer
Thanks for the help. In the output of the command ./streampipes up -d, I can see that the URL of local docker is http://localhost/. I have opened the URL in the browser. And after some time of loading, I see a login page.
Is that the expected behavior? If yes, then what is the email and password to log in?
Thanks.

You can find the default credentials in the documentation: https://streampipes.apache.org/docs/try-installation/
I'll convert this issue to a discussion since it's probably not related to a bug.


John tool

Not sure if i've made a mistake with the setup but when trying to use john all the job detail options have nothing populated in the dropdown menus.
[Queue Server]
[General]
WebRoot=/var/cracklord/www
CACertFile=/etc/cracklord/ssl/cracklord_ca.pem
CAKeyFile=/etc/cracklord/ssl/cracklord_ca.key
CertFile=/etc/cracklord/ssl/queued.crt
KeyFile=/etc/cracklord/ssl/queued.key
BindIP=<IP_ADDRESS>
BindPort=443
LogFile=/var/log/cracklord/queued.log
LogLevel=Info
[Authentication]
type=INI
adminuser=admin
adminpass=changeme
standarduser=user
standardpass=changeme
readonlyuser=read
readonlypass=changeme
[ResourceManagers]
directconnect=true
#aws=/etc/cracklord/resourcemanagers/aws.conf
[Resource Server(s)]
[General]
CACertFile=/etc/cracklord/ssl/cracklord_ca.pem
CertFile=/etc/cracklord/ssl/resourced.crt
KeyFile=/etc/cracklord/ssl/resourced.key
BindIP=<IP_ADDRESS>
BindPort=9443
LogFile=/var/log/cracklord/resourced.log
LogLevel=Info
[Plugins]
#hashcat=/etc/cracklord/plugins/hashcat.conf
nmap=/etc/cracklord/plugins/nmap.conf
johndict=/etc/cracklord/plugins/johndict.conf

Can you post your john configuration and confirm you are using the john-jumbo community version?

i doubt that i got the john-jumbo community version but will install that first

Sorry for the late response but i finally got john-jumbo installed and all the hash types and dictionaries than you for your help

I'm sorry to bring this old thread up again.
I have john-jumbo installed on ubuntu 14.04.3 server and still have the same problem...
I followed this guide for john-jumbo:
https://github.com/magnumripper/JohnTheRipper/blob/bleeding-jumbo/doc/INSTALL-UBUNTU
Thanks in advance.


ToolTip Delay

Where would one go to change the delay before a tooltip is shown?

Please read docs carefully before opening an issue, it's really easy to find
F_GeonBit_UI_UserInterface_TimeToShowTooltipText.htm
(Just search tooltip)
Thanks.

Ah i see what i did wrong, i searched through the repo and not the docs.
Also i checked UserInterface.Active, when it was in UserInterface alone.
Thanks tho!


Apriltags submodule is at wrong version

PR #224 reverted the april tags submodule to an old commit. This has removed the april tags opencv fix and caused a regression to the apriltag_ros node crashing when a cube comes in to view.

The test suite should be extended to ensure that at least one cube is collected for one robot running in a dense uniform cube distrubution. At the very least we should add tests that ensure the apriltags_ros node is still up and functioning after the sim has run for a while (long enough that we know the robot has seen a cube).


Add SSL on AWS domain

AWS Certificate Manager – Deploy SSL/TLS-Based Apps on AWS
https://aws.amazon.com/blogs/aws/new-aws-certificate-manager-deploy-ssltls-based-apps-on-aws/
AWS Certificate Manager
https://aws.amazon.com/certificate-manager/

https://pttalertor.dinolai.com


Validation error when trying to save a buffer to the database

I'm experiencing this same issue referenced in #792 that was fixed in 0.10.16, but I'm running 0.10.26. My code
setProperties: async function({siteTitle = 'Continuum', logo}){
    let cc = await ClientConfig.findOrCreate({}, {siteTitle});
    if (logo){
      //let image = await fs.readFileAsync(logo.fd);
      let image = fs.readFileSync(logo.fd);
      console.log(image);
      cc.logo = image;
    }
    return cc.save();
  }

The error
Invalid attributes sent to ClientConfig:
 • logo
   • `undefined` should be a binary (instead of "[object Object]", which is a object)

The log shows buffer data above the error so that seems to be coming in just fine, not sure what to look at beyond this.

@athieriot @AnvarPK @mattcodez @devinivy @tjwebb @particlebanana Hey everyone, we've moved Waterline issues to our main Sails issue hub with the label "orm." This bug appears to have been patched and resolved in an updated version of Waterline. Thanks for contributing time and efforts and hope it's working for everyone now.

This has been published.


Wrap boolean values in quotes to support docker-compose v2

Errors like the following arise if using docker-compose V2.

services.fcrepo.environment.FCREPO_DISABLE_SYN must be a string, number or null

They can be resolved by putting those variables in double quotes. See:
https://github.com/docker/compose/issues/8097

@dwilcox ran into this, too.  It's a thing.  We should probably jump on this one soon.

This ticket appears not to be relevant anymore. I'm closing it but feel free to reopen it if you disagree.

I personally use Docker Compose version v2.10.2 to run ISLE


Support for preselect property of CompletionItem

As reference, gopls is one language server that supports it, it's quite useful (coc.nvim supports it on NeoVim, if server provides it).

How does this work in gopls? Is the most likely candidate marked as preselected?

@kjeremy yes, which avoids having to manually select the first menu option most of the time. Just need to confirm on half word.

Yeah, we don't support any kind of completion scoring/ordering at the moment, that's a big topic!

OK. Just a reminder that this case refer to just a single most relevant word, not score/ordering of all.

@oblitum what does that mean exactly? Can you give some examples?

@oblitum yes but:

this case refer to just a single most relevant word

That could mean many different things so I would like to understand what you mean by the above with examples of things that both match and do not.

I don't define what's most relevant. I think preselect, as provided by LSP for server to take advantage of, is of their consideration what to pick as the most relevant item in a result set.
When I use gopls with coc.nvim, coc does its local candidate ranking, but leave any of the items preselected according to gopls, it may even not be the first one in the completion list, it doesn't harm completion, as I as a user may or may not click <enter> if I feel the preselected item is relevant, which gopls it is most of the time.

Okay, I misunderstood. I thought that you had a heuristic for deciding what was most relevant.

The only thing I have to say on that subject is what I pointed before, as it's just a single item, the heuristic, whatever it is, may not need to be implemented by having all the items ranked in order just to return a single one.

Would string similarity suffice as a way of identifying the most relevant item? Also, maybe preselecting an item if it's the only item in the list is a good middle-ground solution?

For other discussion why preselect exists you may check https://github.com/MaskRay/ccls/issues/513#issuecomment-564274619.

We now have a basic version of completion item sorting (using sortText), and set preselect when the score is above some threshold. This does result in more than one item with preselect set, so I'm not sure how the LSP clients handle this.
@oblitum is this working how you would expect now?

The spec says:
/**

	 * Select this item when showing.
	 *
	 * *Note* that only one completion item can be selected and that the
	 * tool / client decides which item that is. The rule is that the *first*
	 * item of those that match best is selected.
	 */
	preselect?: boolean;

On Sun, Mar 14, 2021, 4:33 PM Josh Mcguigan @.***>
wrote:

We now have a basic version of completion item sorting (using sortText),
and set preselect when the score is above some threshold. This does
result in more than one item with preselect set, so I'm not sure how the
LSP clients handle this.
@oblitum https://github.com/oblitum is this working how you would
expect now?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rust-analyzer/rust-analyzer/issues/2037#issuecomment-798974817,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABBACRG33IXR3RYOFI733G3TDUMSHANCNFSM4JCSVXVQ
.

and set preselect when the score is above some threshold
@oblitum is this working how you would expect now?

@JoshMcguigan It's not working as I expect, but it seems behavior changed:

In my view the gopls server seems to work ideally, it always have a preselected option while typing (in green background). With rust-analyzer, only call showed up.

Random "call" preselect was fixed in https://github.com/neoclide/coc.nvim/pull/3338. Thanks for the help folks.


Add support for SQLCancel

Would it be possible to add support for SQLCancel?
It appears a patch was created by GoogleCodeExport in another repository, but that repository seems maintained.
https://github.com/Ferritas/pyodbc/issues/340

I can.  To make sure I understand - how do you expect it to be used?  Pass the cursor to another thread which cancels after a timeout or a button is clicked, etc.?
(BTW, if a timeout, don't forget that you can set a timeout on the connection to raise a timeout error instead of scheduling your own cancel.)

My use case is that a user will fire off a query in a QT UI. If the user gets impatient, they'll click "cancel/stop" etc and the query would be stopped.
In this scenario, the user is running queries that can be very long, so we don't set a timeout on the connection.

Any word on this?  I'm building a script to execute long running jobs.  I would like to have a thread that checks for a trigger and then would send a cancel to the job.  If I'm not mistaken the only way to do this now would be to kill the job thread.

Just curious, was this supposed to be closed?

Yes, Cursor.cancel() was added in the commit referenced above, 5eb9d0d, and released in the latest release.


windows are wanted

i use my windows computer ,and deeply want orb, do you have a plan for windows?

No, OrbStack will be focused on macOS for the foreseeable future. https://github.com/orgs/orbstack/discussions/307


fix: gelu_hook when using Deepspeed's profiler on sgconv

Pull Request Template
Description
Adds approximate kwarg to Deepspeed's profiler gelu_hook.
Changes
Please delete options that are not relevant.

[X] Bug fix (non-breaking change which fixes an issue)

Final checks:

[ ] Follows guidelines of project
[ ] Self-review of code
[ ] Commented code in hard-to-understand areas
[ ] Corresponding changes to the documentation
[ ] Changes generate no new warnings
[ ] Dependent changes have already been merged
[ ] Checked code correction any misspellings

@gugarosa, can you double-check if this change affects you?

Looks good and already incorporated on branch!
Please check Teams message.


OpacityLayer can use twice the memory as needed if its children are not stable

OpacityLayer will attempt to cache its children and render them with an alpha value as it renders from the cache. This is around the same speed as doing a saveLayer with the alpha value, which is the default fallback implementation, but it can be much faster if the children are stable and it can reuse their cache entry from the previous frame.
If the children are not stable, it should be similar in performance to saveLayer anyway, but there are a few drawbacks to our layer raster cache that make it less than ideal:

If the children are unstable then on each frame we will cache the new children, render them with alpha from the cache, and then only delete the old cache entry at the end of the frame - thus we have 2x the memory for the children for the bulk of the work on every frame (the old cache entry and the new one). Between frame renderings there is only a single cache entry, though.
If we reimplement the cache to make cache eviction and populate decisions in a single pass rather than split between Preroll (for populating) and a final cleanup pass (for evictions), then we would avoid having both cache items around during the rendering pass
If we did the cache evict/populate in a single pass, we might find that we can reuse the cache entry from the previous children, but by this point the savings over a saveLayer may be minimal (would need to test to be sure).

The peephole optimizations being added in https://github.com/flutter/engine/pull/29775 may remove the need for caching or saveLayers, provided the conditions are met for the peephole validation.

Benchmark results: https://flutter-flutter-perf.skia.org/e/?begin=1658253277&end=1658571306&queries=test%3Dcolor_filter_with_unstable_child_perf__e2e_summary&requestType=0


add mountPath option to prepend a custom path

sorry for the last PR.

Coverage decreased (-17.07%) to 82.933% when pulling 3ce7e7f996a3bb02c7c242e6de84228d0a45a7f4 on InteractiveObject:master into 38f54a702146dd7b5c7c0d9c76676a0d416b9750 on botmasterai:master.

Hi Younes,
Thanks for your interest in Botmaster.
I get what you trying to do here. I guess the best way to do that would be to add a default setting called mountpath to settings and set it to '/' by default. Then in addBot and removeBot, replace the slash with ${settings.mountpath} (this avoids having to have an "if" block in both those functions). You would then ideally update and add a couple of tests in https://github.com/botmasterai/botmaster/blob/master/tests/botmaster/add_bot.js and https://github.com/botmasterai/botmaster/blob/master/tests/botmaster/constructor.js to reflect that.
And potentially also update the two last tests in https://github.com/botmasterai/botmaster/blob/master/tests/botmaster/remove_bot.js

Coverage decreased (-38.0%) to 62.032% when pulling 28e73d607363e98b788b0b82dabbde02dd53d8db on InteractiveObject:master into 38f54a702146dd7b5c7c0d9c76676a0d416b9750 on botmasterai:master.

Coverage decreased (-38.0%) to 62.032% when pulling 28e73d607363e98b788b0b82dabbde02dd53d8db on InteractiveObject:master into 38f54a702146dd7b5c7c0d9c76676a0d416b9750 on botmasterai:master.

Coverage decreased (-38.7%) to 61.29% when pulling 555beadcc2a02afd6b5ed49fc12ef449fc34d759 on InteractiveObject:master into 38f54a702146dd7b5c7c0d9c76676a0d416b9750 on botmasterai:master.

Coverage decreased (-38.8%) to 61.186% when pulling 3e5d50bbd9562b8b1578aa59688f890f60270810 on InteractiveObject:master into 38f54a702146dd7b5c7c0d9c76676a0d416b9750 on botmasterai:master.

Coverage decreased (-17.5%) to 82.48% when pulling 87f6eef2388cbee677ca7de664c985895e9e4be9 on InteractiveObject:master into 38f54a702146dd7b5c7c0d9c76676a0d416b9750 on botmasterai:master.

Coverage decreased (-17.5%) to 82.48% when pulling ad5b7c444ccbc975ff8ba057cc3dfba1b1d3268b on InteractiveObject:master into 38f54a702146dd7b5c7c0d9c76676a0d416b9750 on botmasterai:master.

Coverage decreased (-17.5%) to 82.48% when pulling ad5b7c444ccbc975ff8ba057cc3dfba1b1d3268b on InteractiveObject:master into 38f54a702146dd7b5c7c0d9c76676a0d416b9750 on botmasterai:master.

Coverage decreased (-17.5%) to 82.48% when pulling ad5b7c444ccbc975ff8ba057cc3dfba1b1d3268b on InteractiveObject:master into 38f54a702146dd7b5c7c0d9c76676a0d416b9750 on botmasterai:master.

Coverage decreased (-17.3%) to 82.749% when pulling 871c35ffe286528c6ba599cb3649545dd7c035cc on InteractiveObject:master into 38f54a702146dd7b5c7c0d9c76676a0d416b9750 on botmasterai:master.

Coverage remained the same at 100.0% when pulling 54017f832004e1c2fd4ac4a57104c7d4528b26c4 on InteractiveObject:master into 38f54a702146dd7b5c7c0d9c76676a0d416b9750 on botmasterai:master.

Support for something along those lines added in 3.1.0

Thanks @jdwuarin and sorry for the delay ;)


please use, from @caseyjwach

when will #bitcoin or #etherium add to the list of important projects barcode scanning like Wechat in China? It's literally Tencent's Kudegra to CC and debit cards, much less cash... let's start now.

No relevant code changes. This should be a feature request.


Allow exit codes in CkExit() / ConverseExit()

Original issue: https://charm.cs.illinois.edu/redmine/issues/1584

Currently, CkExit() and CkAbort() do not allow passing a custom exit code to the calling shell, making it necessary to use workarounds such as ~~https://charm.cs.illinois.edu/gerrit/#/c/2556/~~ https://github.com/UIUC-PPL/charm/commit/b7267600414fc819124f674c323b5e35e29e7195 in order to inform the user.
It would be nice to have this functionality.
Care must be taken since

The method signature should no the changed. CkExit() is currently extern "C" 'ed, so an optional parameter is not possible.
In case multiple PEs call CkExit(), which exit code is reported?

Original date: 2017-06-22 15:26:42

As a core API change, this is not going to be appropriate for a bug-fix/patch release. So, re-targeting for a future feature release.

Original date: 2017-06-22 15:34:25

We could do something like this: https://stackoverflow.com/questions/3046889/optional-parameters-with-c-macros
which would not need an API change.

Original date: 2018-05-22 17:27:44

It would be nice to get this into 6.9.0 since Jozsef Bakosi recently requested it.

Original date: 2018-05-22 20:56:42

Matthias Diener wrote:

We could do something like this: https://stackoverflow.com/questions/3046889/optional-parameters-with-c-macros
which would not need an API change.

I can't seem to make this work with a zero argument instance.
Either way, it is possible to overload a function with C linkage as long as the overload does not also have C linkage. (Tested with GCC, clang, and MSVC.)
#include <stdio.h>

void CkExit(int status)
{
  printf("CkExit(%d);\n", status);
}

extern "C" void CkExit(void)
{
  CkExit(0);
}

int main(void)
{
  CkExit();
  CkExit(1);

  return 0;
}

This still would not allow CkExit with a parameter to be called from C (or Fortran) but for those cases I would propose also adding a void CkExitCode(int status).

Original date: 2018-05-22 21:03:44

Another option would be to always require an exit code for CkExit() (like exit() does), and to change all existing code.

Original date: 2018-05-22 21:05:28

I don't believe changing all existing code would make it out of committee.

Original date: 2018-05-22 22:07:05

~~https://charm.cs.illinois.edu/gerrit/#/c/charm/+/4219/~~ https://github.com/UIUC-PPL/charm/commit/9f3ac0e893cd014c30276ce614d805ad0090d4b6 has a proof-of-concept implementation for CkExit() based on the optional C parameter idea. Seems to work so far, at least on LRTS.

Original date: 2018-05-30 20:06:55

~~https://charm.cs.illinois.edu/gerrit/#/c/charm/+/4219/~~ https://github.com/UIUC-PPL/charm/commit/9f3ac0e893cd014c30276ce614d805ad0090d4b6 is ready for review.


Mount-DiskImage does not assign driver letter every third time

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
When running the following code, Mount-DiskImage will not assign an drive letter every third time. I have no idea why the failure occurs precisely every third time。
PS C:\Users\admin> $ImagePath="C:\ISO\Windows\en-us_windows_server_2022_x64_dvd_620d7eac.iso"
PS C:\Users\admin> $disk = Mount-DiskImage -ImagePath $ImagePath -StorageType ISO -Access ReadOnly -PassThru
PS C:\Users\admin> $disk | Get-Volume

DriveLetter FriendlyName         FileSystemType DriveType HealthStatus OperationalStatus SizeRemaining    Size
----------- ------------         -------------- --------- ------------ ----------------- -------------    ----
D           SSS_X64FRE_EN-US_DV9 Unknown        CD-ROM    Healthy      OK                          0 B 5.17 GB

PS C:\Users\admin> $disk | Dismount-DiskImage

Attached          : False
BlockSize         : 0
DevicePath        :
FileSize          :<PHONE_NUMBER>
ImagePath         : C:\ISO\Windows\en-us_windows_server_2022_x64_dvd_620d7eac.iso
LogicalSectorSize : 2048
Number            :
Size              :<PHONE_NUMBER>
StorageType       : 1
PSComputerName    :

PS C:\Users\admin> $disk = Mount-DiskImage -ImagePath $ImagePath -StorageType ISO -Access ReadOnly -PassThru
PS C:\Users\admin> $disk | Get-Volume

DriveLetter FriendlyName         FileSystemType DriveType HealthStatus OperationalStatus SizeRemaining    Size
----------- ------------         -------------- --------- ------------ ----------------- -------------    ----
D           SSS_X64FRE_EN-US_DV9 Unknown        CD-ROM    Healthy      OK                          0 B 5.17 GB

PS C:\Users\admin> $disk | Dismount-DiskImage

Attached          : False
BlockSize         : 0
DevicePath        :
FileSize          :<PHONE_NUMBER>
ImagePath         : C:\ISO\Windows\en-us_windows_server_2022_x64_dvd_620d7eac.iso
LogicalSectorSize : 2048
Number            :
Size              :<PHONE_NUMBER>
StorageType       : 1
PSComputerName    :

PS C:\Users\admin> $disk = Mount-DiskImage -ImagePath $ImagePath -StorageType ISO -Access ReadOnly -PassThru
PS C:\Users\admin> $disk | Get-Volume

DriveLetter FriendlyName         FileSystemType DriveType HealthStatus OperationalStatus SizeRemaining    Size
----------- ------------         -------------- --------- ------------ ----------------- -------------    ----
            SSS_X64FRE_EN-US_DV9 Unknown        CD-ROM    Healthy      OK                          0 B 5.17 GB

PS C:\Users\admin> $disk | select *

Attached              : True
BlockSize             : 0
DevicePath            : \\.\CDROM1
FileSize              :<PHONE_NUMBER>
ImagePath             : C:\ISO\Windows\en-us_windows_server_2022_x64_dvd_620d7eac.iso
LogicalSectorSize     : 2048
Number                : 1
Size                  :<PHONE_NUMBER>
StorageType           : 1
PSComputerName        :
CimClass              : ROOT/Microsoft/Windows/Storage:MSFT_DiskImage
CimInstanceProperties : {Attached, BlockSize, DevicePath, FileSize…}
CimSystemProperties   : Microsoft.Management.Infrastructure.CimSystemProperties

PS C:\Users\admin>

Expected behavior
($disk | Get-Volume)[0].DriveLetter is available every time.

Actual behavior
($disk | Get-Volume)[0].DriveLetter is null **every third time**.

Error details
No output.

Environment data
PS C:\Users\admin> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.2
PSEdition                      Core
GitCommitId                    7.4.2
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals
No response

This module is bundled with Windows and is not maintained in this repository. Unfortunately the only way to provide feedback about it is to submit it via the "Feedback hub" app where it will of course be ignored because there's too much garbage for them to sort through.
As for the problem you have, it doesn't happen on my machine so it must be something about your environment. You can work around it by just not using the driveletter and instead use the volume path directly, like this:
PS C:\Users\Martin> $Path = Mount-DiskImage -ImagePath "C:\VMData\Windows 11 23H2.iso" -PassThru -NoDriveLetter | Get-Volume | select -ExpandProperty Path
PS C:\Users\Martin> ls -LiteralPath $Path

        Directory: \\?\Volume{97b6d912-f98f-11ee-8467-d8cb8a18ac3c}\

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-r--          01-10-2023   10:29                boot
d-r--          01-10-2023   10:29                efi
d-r--          01-10-2023   10:30                sources
d-r--          01-10-2023   10:30                support
--r--          01-10-2023   10:27          128 B autorun.inf
--r--          01-10-2023   10:27       431.7 KB bootmgr
--r--          01-10-2023   10:27        1.59 MB bootmgr.efi
--r--          01-10-2023   10:27       93.47 KB setup.exe

Most tools support volume paths without any issues and for the ones that don't, you could just copy the files out of the ISO to a temp folder on C:\ or whatever and provide the app with that path instead.

@MartinGC94 Thanks for your reply.
I have tried using the -LiteralPath parameter, but some third-party modules reports error, such as they use Resolve-Path and Test-Path -Path.
Now I call mountvol.exe in my script to assign the drive letter myself, everything works perfectly.
This problem only occurred on two PC, and the drive letter was not assigned strictly every third time. I'm very interested in this problem and want to debug it myself. Do you have any recommendations? For example, where should I look for the log file and what tools can help me?
Thank you again.


#suggest  Add uniform coding

Similar to the python file header encoding, the first line of code
- * - coding:utf-8 - * -
When coding is not uniform, the editor often overwrites the entire code
Result in code rewrite
I think we should unify the encoding. The default encoding of VS is not necessarily utf-8, sometimes gbk, but UTF-8 by default of gcc. When we switch compiler tools, we often encoding in disorder.
Another problem is to add the original string like python, r"STR".

Suggestions for language features/changes should go through the RFC process. See https://github.com/ponylang/rfcs


Invalid csrf token

I searched your discord and found other people having the same problem I face with no solutions. So I thought I should open an issue.
The Problem I Face when trying to use Tavern AI is that I need to reconnect very often, as it gives me this Error Every Three Generations or so. Sometimes even a Restart is needed, and sometimes it just doesn't connect outright until i reboot my PC. The Same Happens With Silly tavern just so you know.
Here is the Error Code it gives me:
ForbiddenError: invalid csrf token
at doubleCsrf (C:\snapshot\TavernAI\node_modules\csrf-csrf\lib\cjs\index.cjs:18:61)
at Object. (C:\snapshot\TavernAI\server.js:0:0)
at Module._compile (pkg/prelude/bootstrap.js:1930:22)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:651:32)
at tryModuleLoad (internal/modules/cjs/loader.js:591:12)
at Function.Module._load (internal/modules/cjs/loader.js:583:3)
at Function.runMain (pkg/prelude/bootstrap.js:1983:12)
at startup (internal/bootstrap/node.js:320:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:660:3)

At the moment, you can disable csrf token in config.conf set this:
const csrf_token = false;
But this may partially reduce security. There is no need to restart the computer here, if you get this error, it is enough to restart TavernAI in the browser by closing the other tabs with TavernAI .


Bump async to 3.2.0

It looks ok to me.  But since mostly server changes, @tanviraumi  Can you take a look?

@curtisman Thanks for taking a look! I'm not sure what is the procedure for bumping versions of affected packages.

@tanviraumi - I'm pretty confident that changes are equivalent to the original, so I'm going to go ahead and approve/merge to keep things flowing.
The API changes introduced in Async 3.0 are:

You register event callbacks with a method instead of assigning a property (e.g. q.empty(callback) instead of q.empty = callback.  If you omit the callback, async returns a promise instead (e.g. await q.empty()).
Similarly, q.push(..) now returns a Promise if the callback is omitted.
The type returned from queue() is now QueueObject instead of AsyncQueue...  but it's the same thing created the same way.

You may want to tag a code owner to have a look at where @evaliyev needed to add 'void' to suppress lint errors and verify that the dropped Promise is intentional.  (These should probably have either a comment or a .catch() that logs the error.)

So glad to see this commit @evaliyev. Big moment!


Two Warnings in Source Code

Library setup method: file.
Xcode version: 11.0 (11A420a)

    var value: String {
      switch self {

      ......

      case .accessibleAlways:
        return toString(kSecAttrAccessibleAlways)
      //Xcode shows "'kSecAttrAccessibleAlways' was deprecated in iOS 12.0: Use an accessibility level that provides some user protection, such as kSecAttrAccessibleAfterFirstUnlock"

      case .accessibleWhenPasscodeSetThisDeviceOnly:
        return toString(kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly)

      case .accessibleAlwaysThisDeviceOnly:
        return toString(kSecAttrAccessibleAlwaysThisDeviceOnly)
      //Xcode shows "'kSecAttrAccessibleAlwaysThisDeviceOnly' was deprecated in iOS 12.0: Use an accessibility level that provides some user protection, such as kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly"
      }
  }

So I wonder whether I should change the code to the suggested option? Will that be different from what you want to achieve actually?

@YunyushuLiu, it looks like new iOS version will no longer allow unsafe storage options kSecAttrAccessibleAlways and accessibleAlwaysThisDeviceOnly. So I would suggest to remove those two cases from the switch.

Alternatively, instead of using the file installation, you can install this library with CocoaPods, Carthage or Swift Package Manager, it should not show those warnings (I hope).

This has been fixed in version 18 of the library. Let me know if anyone still has an issue.


Bug: ELRS Backpack control on Lowband

To reproduce:

Use a Expresslrs backpack flashed TX (used TX16S) ver 1.4.1 and goggles flashed with 1.4.1 too
Select raceband and use the lua script to change the channels R1 to R8, and see work nicely, changing the channel on goggles  and vtx at same time.
Now select lowband on goggles and try the same on channels L1 to L8.... The vtx change the channel ok, but the goggles doesn't change.

Others functions of the backpack works nicely, like the DVR control.

One question: Why is necessary to have a menu with Raceband or Lowband for selection? Why not a Lowband on/off and select the channels L1-L8,R1-R8,F1,F2,F4,E1 freely ?

Did you unlock lowband for your vtx?
In fact, most people use raceband, and for them lowband is redundant.

Yes, I unlocked lowband on vtx, and the vtx is working well on lowband, this affect only the Goggles and backpack

Is there a technical issue that prevents both the normal channels and low
band channels from being visible in menu at same time?
It makes more sense to have them always visibly and just change the menu
toggle to grey them out and skip over them when selecting/scanning.
On Wed, Nov 22, 2023, 10:52 zandorsp @.***> wrote:

Did you unlock lowband for your vtx?
In fact, most people use raceband, and for them lowband is redundant.

Yes, I unlocked lowband on vtx, and the vtx is working well on lowband,
this affect only the Goggles and backpack
—
Reply to this email directly, view it on GitHub
https://github.com/hd-zero/hdzero-goggle/issues/378#issuecomment-1823030282,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFNT6YG63SHEGDEK3I5SKSTYFYNVNAVCNFSM6AAAAAA7TZKYHCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRTGAZTAMRYGI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

I think a lowband unlock on goggles option make sense... And if unlocked lowband and normal channels is selectable freely, If locked only channels R1-R8, E1, F1,F2 and F4 selectable.

Displaying all channels (20) at the same time will make the UI look very bloated, and I don't like complicated things. And scanning all channels at the same time will be more time-consuming than before. I did this first, but the experience was not good.

Agree it sounds bloated, unneeded, and undesirable for most users.
How about we try to support all channels at once, only
display/select/search from one band at a time, default to display/search
the band current channel exists in, move band toggle from sources page and
add a hint for quick toggle/transition feature into the channels display
page.
Maybe?
This way all channels feel more accessable for users and the ability to
switch quickly will likely improve user education..
-p
Just
On Thu, Nov 23, 2023, 06:03 Ligen @.***> wrote:

Displaying all channels (20) at the same time will make the UI look very
bloated, and I don't like complicated things. And scanning all channels at
the same time will be more time-consuming than before. I did this first,
but the experience was not good.
—
Reply to this email directly, view it on GitHub
https://github.com/hd-zero/hdzero-goggle/issues/378#issuecomment-1824229693,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFNT6YGXMYPGPPMNYK3R46DYF4UOTAVCNFSM6AAAAAA7TZKYHCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUGIZDSNRZGM
.
You are receiving this because you commented.Message ID:
@.***>

I have a sugestion for the UI on scan now menu:

On live view all 20 channels available on dial (L1-L8,R1-R8,E1,F1,F2,F4)
and a lowband unlock option

We started flying lowband more, when we have 8 pilots in the air.
Its so frustrating going to menu and change from race to low. Please make option so all freqs available in live view

We started flying lowband more, when we have 8 pilots in the air. Its so frustrating going to menu and change from race to low. Please make option so all freqs available in live view

+1


[Feature Request]: Create a WorkflowQueryEngine for custom query engines that wrap existing workflows

Feature Description
With the recent introduction of workflows, we can add a query engine that just wraps a workflow
Reason
No response
Value of Feature
No response

Closing this for now, as it's no longer something we are pursuing -- workflows are a way to orchestrate events yes, but converting existing classes is going to be messy and unnatural.
Instead, pushing docs changes and prebuilts to slowly shift people to using workflows


setup telemetry and add account_connected event

Summary
Based on https://github.com/mattermost/mattermost-plugin-servicenow/pull/177
Telemetry added while keeping min_server_version unchanged(6.3.0).
Added telemetry race prevention mechanisms and account_connected event after successful connect (it can be verified through logs or rudderstack-dev).
Ticket Link
FIxes https://mattermost.atlassian.net/browse/MM-51748

@DHaussermann This PR is ready for your review

@DHaussermann Gentle reminder to review this PR

Codecov Report
Patch coverage has no change and project coverage change: -1.38 :warning:

Comparison is base (bb7356b) 65.22% compared to head (bd63218) 63.84%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #183      +/-   ##
==========================================
- Coverage   65.22%   63.84%   -1.38%
==========================================
  Files          16       17       +1
  Lines        1990     2033      +43
==========================================
  Hits         1298     1298
- Misses        653      696      +43
  Partials       39       39

Impacted Files
Coverage Δ

server/plugin/activate_hooks.go
0.00% <0.00%> (ø)

server/plugin/api.go
68.79% <0.00%> (-0.22%)
:arrow_down:

server/plugin/configuration.go
38.46% <0.00%> (-2.64%)
:arrow_down:

server/plugin/plugin.go
62.06% <ø> (ø)

server/plugin/telemetry.go
0.00% <0.00%> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

@DHaussermann Are we fine to merge the PR?

Sorry for the delay @hanzei
We never got to to a point where there was a good way to test telemetry tasks. As such we would typically merge tasks similar to this and differ testing.
I'm in favor of merging this task.


Adds timeout option for loading AQUA config.

Description
Recently, notebook sessions without a configured SGW began encountering errors related to loading the AQUA starter config. This PR resolves the issue by adding a timeout option to the config loading operation.

@mrDzurb unit tests need to be updated for this change.


HTML - Form Element

Create form elements for user input
follow items on the wireframe (page10 of the presentation pdf)

Hey @dinozio-design  does this form element issue have been done ?


improve titlebarpart layout perf

fixes #60326

@bpasero sorry about the delay here, fyi I just force pushed a totally different commit into this branch so the initial changes aren't here anymore. please see new code.

@sbatten there is still a noticable flicker of the title right after startup:

Another thing I noticed is that the fonts do not seem to align (title to menu items):

The title seems slights higher.
Would it not be possible to do the layout via CSS rules only? What is the behaviour of the title that forces it to require a custom JS layout after a timeout?

@bpasero the title is centered differently in 2 cases.

If room allows, center the title with respect to the entire window
Else center the title between the menu and window controls.

AFAIK this is not possible with just CSS and flex box.

@sbatten maybe check what watermark does and do the same: here

@bpasero watermark never deals with extra elements in its own div correct? The js calculations aren't for centering. We just need to know if we should position inside the flex box or absolutely. The rest is then handled by CSS. The reason we are seeing jitter is that we have to delay this calculation so that the menubar dimensions are accurate.

@sbatten sorry I have no clue why GH did not deliver your message to me. I will soon be out for vacation so we should try to finish this. I would suggest to go with your change if it resolves the layout trashing on startup and then we fix jitter as a follow up bugfix if possible.


Type tests broken

Travis fails, but locally I cannot reproduce locally:
Error: /home/travis/build/vfile/vfile/types/vfile-tests.ts:67:29
423ERROR: 67:29  expect  TypeScript@next compile error:
424Argument of type 'unknown' is not assignable to parameter of type 'CustomData'.
425
426    at /home/travis/build/vfile/vfile/node_modules/dtslint/bin/index.js:193:19
427    at Generator.next (<anonymous>)
428    at fulfilled (/home/travis/build/vfile/vfile/node_modules/dtslint/bin/index.js:6:58)
429

https://github.com/vfile/vfile/blob/9f4180893db6fb4d16fa070fd2ec437118276e21/types/vfile-tests.ts#L66-L69

Hmm weird. Typescript@next might be temporarily broken... Our code still looks good to me. Did you try rerun the test?

Yes, I did rerun them, and clearing the caches has no effect!

I'm investigating now. I'll leave comments after I learn something.
FYI, I could reproduce the error in my local machine(Pop!_os 19.04, Node v10.15.2)

It seems behavior of typescript for never keyword has been changed.
Once never is returned, the typescript compiler stops checking types of the below code because they are considered as unreachable. I guess it is a part of performance optimization.
And, in vfile-tests.ts:47, file.fail('test') is returning never.(because it throws an error)
So I think we can fix it by 2 ways.

Move file.fail('test') to most bottom
put file.fail('test') in a function

And I'll submit an issue about this to typescript repo.

@wooorm
It seems intended. So I guess we should change the code.
https://devblogs.microsoft.com/typescript/announcing-typescript-3-7/#better-support-for-never-returning-functions


ENG-555: Fix check in submitBottomUpMsgBatch

This PR implements the following suggestion from the audit:
Change the statement to
if (batch.blockHeight % s.bottomUpMsgBatchPeriod != 0 || block.number < batch.blockHeight) {
        revert InvalidBatchEpoch();
}

@dnkolegov, this code will be modified in #543.
@cryptoAtwill, FYI. let's double check that we include this fix also in the new code.

Btw, @dnkolegov the bottom up checkpoint facet is removed in #543 as BottomUpMsgBatch is deprecated.

@cryptoAtwill Should we merge it and then resolve the conflict?


WASM / Xamarin Forms - ListView, TableView doesn't work

After adding ListView or TableView to the page, the browser shows blank page and console shows error (attached). Without ListView or TableView other controls (Grid, Label, Button, Entry) work OK.

Wow, that's bad. Would you confirm that this is Ooui 0.10?

Yes, this is 1.10.222 (Ooui, Ooui.Wasm, Ooui.Forms). Here is working example:
https://github.com/zbigniew-gajewski/ooui-wasm-aspnet-core-xaml
If you add <ListView></ListView> element just after Button element in
OouiTestXamlApp/Views/MainPage.xaml then this bug appears.
Grid, Button, Label - all work OK.

I have the same problem...

How's it looking on this one?  I just hit this as well.

Sorry for the delays. I’ll take a look at this tomorrow.
Sent from my iPhone

On Jun 4, 2018, at 9:21 PM, davidlsharp1<EMAIL_ADDRESS>wrote:
How's it looking on this one? I just hit this as well.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Any news on this?  I believe I'm bumping into the same problem.


enhancement: build for wasi

What does this PR change? What problem does it solve?
Build for wasi

Setting the stage for being able to run (a subset of) restic in the browser
Was the change previously discussed in an issue or on the forum?
I can't see any discussion of Web Assembly on GitHub

Checklist

[ ] I have read the contribution guidelines.
[ ] I have enabled maintainer edits.
[ ] I have added tests for all code changes.
[ ] I have added documentation for relevant changes (in the manual).
[ ] There's a new file in changelog/unreleased/ that describes the changes for our users (see template).
[ ] I have run gofmt on the code in all commits.
[ ] All commit messages are formatted in the same style as the other commits in the repo.
[ ] I'm done! This pull request is ready for review.

What is the use case for running restic in the browser? There's no filesystem to read from?
In addition, please remove the additional CI tasks and use our standard cross-building setup https://github.com/restic/restic/blob/master/.github/workflows/tests.yml#L200 .

#832

Embedding restic into a website is fundamentally different from adding an HTTP API (well actually REST API) to restic.

I see your point.
I hadn't expected to draw any attention to this (draft) PR before it was ready, and I apologise for wasting resources by running workflows when it was not necessary.
I suppose my goal can be restated as "enabling restic to be interacted with via a REST API", regardless of whether or not it is embedded in a website.
For example, the functions in this file could allow one to create /snapshots/new and /snapshots/find endpoints. And if those features work correctly, and the project could be built in a WASM environment, then one could send data from web filesystem API to a restic repository by using the restic.NewSnapshot and restic.FindFilteredSnapshots directly rather then hitting endpoints which call those functions.
As I worked on this, I realised it doesn't need to be part of the main restic repo, as I can achieve my goal by exposing internal features of restic using go mod edit -replace and pointing to a local copy of restic which I keep as a submodule.
I defer to your expertise as to whether or not there is any value in exposing restic's internals to the outside world.

There are currently no plans on our side to expose the internals of restic as that would create an API that should remain mostly stable. Keeping the CLI backwards compatible is already enough work.

Closing for now as the internals of restic are not yet ready for another API.


Specify Option::unwrap_or by ignoring ~const trait bound mismatches

Fixes #656

I think this might not be right. After looking into exactly what ~const is for (https://internals.rust-lang.org/t/pre-rfc-revamped-const-trait-impl-aka-rfc-2632/15192) it seems that A: ~const B should probably just be treated as A: B for our purposes, rather than being ignored.
However, the special Destruct trait (which iirc was the root of issue #656) can be ignored.

OK, I changed it to ignore Destruct trait bounds instead of ~const ones.


Update libraries and test files from CPython v3.12

No changes for bz2.py #5104

Thank you so much. Could you rebase it on latest main branch? It will fix the unrelated CI failures.

Thank you so much. Could you rebase it on latest main branch? It will fix the unrelated CI failures.

Sorry I think I just merged it instead of rebase it, I'm still strugglin with PRs


Handle varargs method calls.

You may pass in either an array (as in the past) or individual Python arguments,
the match for a varargs method call is the minimum match for each of the
arguments.  Zero length arrays (i.e. no arguments) are also permitted with a
match value of 10.
Additionally, a jpy.type_translations dictionary is available with allows you to
easily wrap or modify all created objects of a particular java type.

There is a matching issue when there are zero argument methods vs. a varargs method that needs to be corrected before this should merge.


leveldb: manifest corrupted

I may have accidentally avoided entering the passphrase for my paper key?
$ keybase device list
▶ ERROR leveldb: manifest corrupted (field 'comparer'): missing [file=MANIFEST-000024]
 $ keybase paperkey                                                                         <<<
▶ WARNING Failed to load 8dee0d072fe8708e7c3ff571f73f8b00 from storage: leveldb: manifest corrupted (field 'comparer'): missing [file=MANIFEST-000024]
▶ ERROR leveldb: manifest corrupted (field 'comparer'): missing [file=MANIFEST-000024]

my log id: 3e6e024a73f273352d23e71c

Oh dear. Would you please move your ~/.local/share/keybase/keybase.leveldb folder to ~/keybase-broken-leveldb or something (rather than deleting it, so that we have the option of restoring it or looking at it later)? Any chance that just fixes the problem?

I actually rectified the situation myself. Left bug open in case there was
a UX lesson here ☺
Are there any logs that might be helpful?
On Wed, Feb 10, 2016, 5:49 PM oconnor663<EMAIL_ADDRESS>wrote:

Oh dear. Would you please move your ~/.local/share/keybase/keybase.leveldb
folder to ~/keybase-broken-leveldb or something (rather than deleting it,
so that we have the option of restoring it or looking at it later)? Any
chance that just fixes the problem?
—
Reply to this email directly or view it on GitHub
https://github.com/keybase/client/issues/1967#issuecomment-182670366.

Thanks. Do you happen to remember what you were doing when the corruption first showed up?

I believe I misplaced my device key password and manually destroyed the GUI window hoping to restart the login process but I think keybase lost track of where it was and tried to proceed as though I had entered the password correctly. After that I was unable to provide any passwords or login at all due to db corruption.

Just found this bug in my own node (on a server).
I guess this is due to a forced shutdown :O


Add links for additional logistics pages to the homepage

Also make all links site-relative

Wait - I take that back.  Will pages render okay with the .md at the end?

@ChristinaLK yup!


Using Cellpose for IMC data

Hi,
I'm writing to ask for help regarding the use of Cellpose on Imaging Mass Cytometry (IMC) data. I have approximately 22 channels attributed to the cytoplasm and 2 nuclear markers. I'm using the model pretrained on the TissueNet dataset. However, I'm not obtaining meaningful results because the cytoplasmic channels seem to be under-evaluated by the program; only extreme values of cell probability expand the mask beyond the nucleus.
I was wondering if there are specific settings or code modifications that could improve the results. Additionally, I'm working with pancreatic ductal adenocarcinoma (PDAC) tissues, and compared to images processed with Ilastik and CellProfiler, my results tend to predict overly round cells. Is there a way to adjust the program to produce more irregularly shaped masks?
Thank you in advance

the issue is that the tissuenet model is trained on cells that are mostly round - you can try other built-in models or try training your own model. if training your own model doesn't work, please post an issue here. alternatively/additionally this might be a good question for https://forum.image.sc where there might be forum posters working with the same data

Here’s a more fluent version of your message:
Hi,
Thank you for your response.
I'm currently working on collecting data as I plan to train my own model. Following your advice, I’ve also posted on the forum at image.sc.
I have one more question: I’m wondering how to extract the underlying data from the "cell pose" plot generated by the plot.show_segmentation function. Sometimes, I notice significant differences between the segmentation displayed in that plot and the actual mask that’s produced. Can  you also explain why this discrepancy occurs?
Thank you for your help

Hi,
Thank you for your response.
I'm currently working on collecting data as I plan to train my own model. Following your advice, I’ve also posted on the forum at image.sc.
I have one more question: I’m wondering how to extract the underlying data from the "cell pose" plot generated by the plot.show_segmentation function. Sometimes, I notice significant differences between the segmentation displayed in that plot and the actual mask that’s produced. Could you explain why this discrepancy occurs?


[Android] Expand Java GN rules to support more complex usecases

Problem

Our Java GN rules are very simple and don't support things such as a java_library depending on another java_library
In the next PR, will use Gradle to download JARs that we want to depend on, and need a GN rule to wrap around those "prebuilt" jars.

Change overview

The following changes are loosely based on Chromium (write_build_config, java_library_impl).
Add jar_path field in java_library template, mutually exclusive with sources. If set, the build rule skips the javac and jar actions and instead just copies the JAR from jar_path into the build directory.
Create write_build_config.py script, which outputs a JSON file ("build config") describing each build target.

Specifically, contains list of dependent build configs, and dependent JARs (recursive) for the target.
This allows us know about child JARs when compiling a parent build rule, and add them to the classpath.

Amend javac_runner.py to read a build config JSON and modify classpath accordingly.

Testing

Add python test, which checks that the correct JARs are created, and that the contents of build configs match expected.

Caveat: in order to test java_prebuilt rules, I created generate_jars_for_test.py. This script needs to be run before other Java things are built, or GN won't be able to find the jar_path.

In android.py, go back to copying JARs to libs/. The app only needsCHIPController.jar and SetupPayload.jar, but the chipSdkBuildDir approach would copy all JARs.

@chrisdecenzo @Damian-Nordic @hawk248 @jmartinez-silabs @msandstedt?


[compatibility improvement] Deprecate use of build-essentials and yum-epel cookbooks

Cookbook version
2.0.5/latest
Chef-client version
>= 14
Platform Details
Any supported
Scenario:
Trying to cut down on deprecation warnings (build-essentials cookbook) or manage Yum EPEL via other means more naturally.
Steps to Reproduce:
Include resources or recipes per README in a Chef 14 environment,  attempt to use the Chef 14 build-essential resources manage EPEL (or just yum in general) in other ways outside of the yum-epel cookbook.
Expected Result:
Less dependencies when implementing this cookbook for configuration and letting the implementor manage dependencies outside of this cookbook which should be focused on nrpe, not how one manages yum-epel or build-essentials.
Actual Result:
Unexpected and unpredictable cookbook resolution results, resource naming conflicts, potential cookbook bloat, deprecation warnings in every Chef run. That should about do it for now I think.
Recommendation:
Move any current requirements to the testing fixture area of the cookbook if possible and make a couple more assumptions that things exist before deploying and configuring nrpe services.
Thanks!  =)

build-essential can be dropped when we drop Chef 13 support, but we'll want to keep yum-epel around since that allows for a no touch setup of EPEL on hosts. It's used throughout the Chef community so removing it here doesn't accomplish much.

Is there a set timeline for that to happen yet @tas50? Thanks!

Also, to my point, my suggestion doesn't prevent Chef 13 from being compatible, there just might be the additional step of adding a dependency on the consumer side as they are able to transition from 13 > 14

I think we drag our heels on this one until April and deprecate it then. Along with Chef-13! :)
Thanks for opening up an issue

Works for me! Thanks guys!


Question on how to properly obtain the in[active] orbitals for removal in ActiveSpaceTransformer

I am trying to use https://qiskit.org/documentation/nature/stubs/qiskit_nature.second_q.transformers.ActiveSpaceTransformer.html to reduce a quantum chemistry problem for a more feasible computation.
However, the class requires active_orbitals as input, and there is no explicit mention on how we could achieve orbital removal whether we feed in active_orbitals input or not.  Besides, how would we come up with the active_orbitals input if we do not know which are the inactive orbitals for removal in the first place ?
The relevant code snippet within ActiveSpaceTransformer is as follows, however I am not sure how it works.
    def _determine_active_space(
        self, grouped_property: GroupedElectronicProperty
    ) -> Tuple[List[int], List[int]]:
        """Determines the active and inactive orbital indices.
        Args:
            grouped_property: the `GroupedElectronicProperty` to be transformed.
        Returns:
            The list of active and inactive orbital indices.
        """
        particle_number = grouped_property.get_property(ParticleNumber)
        if isinstance(self._num_electrons, tuple):
            num_alpha, num_beta = self._num_electrons
        elif isinstance(self._num_electrons, (int, np.integer)):
            num_alpha = num_beta = self._num_electrons // 2

        # compute number of inactive electrons
        nelec_total = particle_number._num_alpha + particle_number._num_beta
        nelec_inactive = nelec_total - num_alpha - num_beta

        self._validate_num_electrons(nelec_inactive)
        self._validate_num_orbitals(nelec_inactive, particle_number)

        # determine active and inactive orbital indices
        if self._active_orbitals is None:
            norbs_inactive = nelec_inactive // 2
            inactive_orbs_idxs = list(range(norbs_inactive))
            active_orbs_idxs = list(
                range(norbs_inactive, norbs_inactive + self._num_molecular_orbitals)
            )
        else:
            active_orbs_idxs = self._active_orbitals
            inactive_orbs_idxs = [
                o
                for o in range(nelec_total // 2)
                if o not in self._active_orbitals and self._mo_occ_total[o] > 0
            ]

        return (active_orbs_idxs, inactive_orbs_idxs)

Relevant issue : please see question 1 of https://github.com/tencent-quantum-lab/tensorcircuit/issues/120#issue-1570971882

The ActiveSpaceTransformer does not require you to provide active_orbitals. That is an optional input argument which allows you to hand-pick the active orbitals based on their indices. If you do not provide it, the active orbitals are automatically chosen around the Fermi level such that their occupation matches your selection of active number of electrons and number of orbitals. This is also explained in the documentation here. This tutorial also has a section on the ActiveSpaceTransformer where you find some examples of how to construct the class and use it.
That said, this is a very simple transformation as it simply takes the orbitals as given. There is no tooling in Qiskit Nature for more advanced (or automated) active space selection techniques. Picking your active orbitals often requires both, further optimization (or localization) of your orbitals as well as a lot of chemical intuition on which orbitals to pick. That is a whole area of research so and definitely exceeds of what I can summarize in this comment. That said, here are a few potentially useful resources that aid the user in finding an active set of orbitals from the top of my head (unordered and obviously incomplete):

https://arxiv.org/abs/1904.00097 (https://scine.ethz.ch/download/autocas)
https://arxiv.org/abs/1701.07862 (implemented in PySCF: pyscf.mcscf.avas)

And for larger systems where you want to confine your active orbitals to a subsystem in physical space (rather than orbitals in "energy space") you should look into localization and/or projection techniques. Depending on the method this might already produce a reduced problem size or it will simplify and the hand-picking of your active orbital set.
And as a final remark, I highly suggest that you switch to using the new and non-deprecated version of the ActiveSpaceTransformer which you can find here: https://github.com/Qiskit/qiskit-nature/blob/main/qiskit_nature/second_q/transformers/active_space_transformer.py (note the import-path is now qiskit_nature.second_q.transformers.ActiveSpaceTransformer).

I am checking the actual paper reference which seems to combine both density and wavefunction approaches.  Could anyone explain more on this ?
When I checked further, it seems that there is no way for the user to explicitly provide the total number of electrons for ParameterNumber object instance.
Note that num_electrons class input is only for number of active electrons

Besides, I do not quite understand the intuition behind the following code snippet.
        if self._active_orbitals is None:
            norbs_inactive = nelec_inactive // 2
            inactive_orbs_idxs = list(range(norbs_inactive))
            active_orbs_idxs = list(
                range(norbs_inactive, norbs_inactive + self._num_molecular_orbitals)
            )

chatGPT gave the following reply which does not give the intuition, but rather only just reading through the code.

If the active_orbitals input is not provided by the user, the determine_active_space method computes the number of inactive electrons as the difference between the total number of electrons in the system and the number of electrons in the active space.
Then it computes the number of inactive orbitals (i.e., orbitals not included in the active space) as the number of inactive electrons divided by 2. It assumes that the active orbitals are the num_molecular_orbitals orbitals following the inactive orbitals.
So, the method determines the active orbital indices as num_molecular_orbitals orbitals starting from the first inactive orbital index, and the inactive orbital indices as the first nelec_inactive // 2 orbital indices. These indices are then returned as a tuple (active_orbs_idxs, inactive_orbs_idxs).

I am checking the actual paper reference which seems to combine both density and wavefunction approaches. Could anyone explain more on this ?

The ActiveSpaceTransformer provided in Qiskit Nature implements the embedding into HF orbitals. The extension towards embedding into DFT is discussed over in #26. There are no further updates on the DFT Embedding which I can provide at this time.

When I checked further, it seems that there is no way for the user to explicitly provide the total number of electrons for ParameterNumber object instance.

When you switch to using the refactored code of Qiskit Nature 0.5 (rather than 0.4) you can set the total number of electrons in your system via the ElectronicStructureProblem.num_particles attribute. See the migration guide for more details on how to update your code.

Besides, I do not quite understand the intuition behind the following code snippet.

Let me add some comments inline:
        # when no active orbital indices were hand-picked, we automatically pick them
        if self._active_orbitals is None:
            # we can infer the number of inactive orbitals from the number of inactive electrons
            # more specifically, all inactive orbitals are doubly occupied, hence we divide by 2
            norbs_inactive = nelec_inactive // 2
            # we then simply say that the lowest orbital indices are the inactive ones
            # e.g. [0, 1, 2] for nelec_inactive = 6
            inactive_orbs_idxs = list(range(norbs_inactive))
            # the active orbitals are now simply starting above the inactive orbitals
            # continuing the example of nelec_inactive = 6 (norbs_inactive = 3) we get:
            # [3, 4, 5] assuming self._num_molecular_orbitals = 3
            active_orbs_idxs = list(
                range(norbs_inactive, norbs_inactive + self._num_molecular_orbitals)
            )

class ActiveSpaceTransformer(num_electrons, num_spatial_orbitals, active_orbitals=None)

Given that num_electrons indicates the number of active electrons, how do we decide its value if we do not know about active_orbitals in the first place ?  I feel that this is like a chicken-and-egg issue, please correct me if wrong.
I will also check the two arxiv papers you linked earlier

Normally you first pick the size of your problem to which you want to restrict your active space. And given a particular system based on chemical intuition you should be able to come up with a desired number of active electrons and a desired number of active orbitals to place them in.
But that is exactly where the difficulties of embedding approaches like this one arise :wink:

@mrossinek Thanks for your suggestion, I have the LUMO and HOMO molecular orbitals now for Fe2+ metallic ion for carbon capture MOFs.

regarding "active_orbitals" from the documentation it should only be used to enforce an active space that is not chosen purely around the Fermi level.
most of the interaction are happening around the Fermi level and changing it for a compound such as (Fe2+)CO2 can give not accurate results as if it was centered around the Fermi level as the class will do
thus I suggest to let active_orbitals=None
by this the code will specify the HOMOs and LUMOs that are really involved in the calculation
specifying active_orbitals can be fine in the case of single species molecules like N2, yet for a compound that can be misleading

Someone told me the above, could you advise further ?


kubectl proxy fails during kubectl e2e test

From http://jenkins.kubernetes.io//job/kubernetes-e2e-gce/3014/console I can see that the kubectl should scale a replication controller test failed because it was never able to verify the image that was running on the scheduled pods.
The tests waits a while for the pod to be scheduled and running, but then proceeds to get 404 responses from the kubectl proxy when trying to fetch the data.json file hosted by the pod. There are many repeated lines showing the 404 response from the get request:
INFO: Running '/jenkins-master-data/jobs/kubernetes-e2e-gce/workspace/kubernetes/hack/../cluster/gce/../../platforms/linux/amd64/kubectl kubectl --auth-path=/var/lib/jenkins/jobs/kubernetes-e2e-gce/workspace/.kube/kubernetes-jenkins_e2e-test-jenkins/kubernetes_auth get pods update-demo-nautilus-opsb5 -o template --template={{and (exists . "currentState" "info" "update-demo" "state" "running")}}'
INFO: true
INFO: Running '/jenkins-master-data/jobs/kubernetes-e2e-gce/workspace/kubernetes/hack/../cluster/gce/../../platforms/linux/amd64/kubectl kubectl --auth-path=/var/lib/jenkins/jobs/kubernetes-e2e-gce/workspace/.kube/kubernetes-jenkins_e2e-test-jenkins/kubernetes_auth get pods update-demo-nautilus-opsb5 -o template --template={{(index .currentState.info "update-demo").image}}'
INFO: kubernetes/update-demo:nautilus
INFO: update-demo-nautilus-opsb5 is running right image but fetching data failed: received non-200 status code from master: 404

Part way through the test, the kubectl proxy appears to crash because rather than printing 404 responses, the requests now fail to connect to the local web server:
INFO: Running '/jenkins-master-data/jobs/kubernetes-e2e-gce/workspace/kubernetes/hack/../cluster/gce/../../platforms/linux/amd64/kubectl kubectl --auth-path=/var/lib/jenkins/jobs/kubernetes-e2e-gce/workspace/.kube/kubernetes-jenkins_e2e-test-jenkins/kubernetes_auth get pods update-demo-nautilus-qipjz -o template --template={{and (exists . "currentState" "info" "update-demo" "state" "running")}}'
INFO: true
INFO: Running '/jenkins-master-data/jobs/kubernetes-e2e-gce/workspace/kubernetes/hack/../cluster/gce/../../platforms/linux/amd64/kubectl kubectl --auth-path=/var/lib/jenkins/jobs/kubernetes-e2e-gce/workspace/.kube/kubernetes-jenkins_e2e-test-jenkins/kubernetes_auth get pods update-demo-nautilus-qipjz -o template --template={{(index .currentState.info "update-demo").image}}'
INFO: kubernetes/update-demo:nautilus
INFO: update-demo-nautilus-qipjz is running right image but fetching data failed: Get http://localhost:8011/api/v1beta1/proxy/pods/update-demo-nautilus-qipjz/data.json: dial tcp <IP_ADDRESS>:8011: connection refused

/cc @jlowdermilk

One option would be to replace the use of kubectl in proxy mode with direct api calls to the master's proxy service. This might make the test more reliable but we would lose test coverage of the proxying code in kubectl.

The kubectl go tests have not failed since the above PR was merged yesterday. Closing as fixed.


Javascript not always recognized

Example:
var f=45
new OptimizeCSSPlugin({
cssProcessorOptions: config.build.productionSourceMap
? { safe: true, map: { inline: false } }
: { safe: true }
})

Auto detection is best effort and not guaranteed. The problem is that it’s not a large enough sample to accurately determine the language.

Not at all.  Read CHANGES.md.  We make improvements to auto-detect regularly.  It's a key differentiating feature, but it is not magic.  At best it's accurate 80-90% of the time when given a large enough snippets of text (and when the languages used for auto-detect are scoped narrowly).  Using only a few languages will have better results than using the default web build, but even that will have better results than just loading the whole library (and all languages) via Node, etc.
What you are seeing here (with this small JS snippet) is merely the limits of the existing auto-detect system - not a "bug" (ie there is nothing immediately to "fix"), which is what my original response tried to state clearly and directly.
If every issue like this was left open we'd just have a forum full of "hey auto-detect doesn't work on my small snippet".
Context:
https://github.com/highlightjs/highlight.js/issues/1213

For many use cases where it's hard or impossible to manually identify the code snippet auto-detect can be quite useful even when making a "best guess"... and sometimes that doesn't work well at all... that's par for the course.
If you have experience with such things and think you could help improve them, we're all ears, but it's a non-trivial problem.  Also auto-detect is not our -primary- use case - that is highlighting.

@allejo @egor-rogov It's also possible there is room for a docfix here, though this issue doesn't come up so commonly anymore.

I do have a warning in highlight.php about autodetection not being magic. I don't think there'd be any harm in making that clear in highlight.js

I'd be fine with some verbiage along those lines somewhere in the readme. :)  @step135 Would that have helped you though?  I always wonder about just adding things to the README how many people actually read it. :)


use and explain ray tempdir, RAY_ADDRESS

closes #99

adds --temp-dir flag to ray script to handle User collisions
adds RAY_ADDRESS env var to ray script to allow for ray.init connection
explains why we have to do so in surrounding text

@mbsabath, It is ready to merge.


Bug report: Unnecessary save can lead to losing of page content with spo page set

Description
From time to time when using the spo page set command, it happens that the content is removed due to an unnecessary page save.
Steps to reproduce
It seems to only happen when for instance the --publish flag is used.
Expected result
Publishing the page without losing the contents.
Actual result
Sometimes contents are lost.

Good catch! Thanks for reporting and picking it up!


AutoPr-Billing-msft-adrianma-REST Spec PrNumber 6041

@msft-adrianma , if this PR still needs to be merged, please:
This doesn't match the new repo structure. Please see https://github.com/Azure/azure-sdk-for-net/issues/5213 for the guidelines or follow the structure of one of the azurestack libraries which was recently moved into this new structure https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/azurestack/Microsoft.AzureStack.Management.AzureBridge.Admin
The overall process could be find at here, especially the steps for new service

@msft-adrianma, I'm closing this PR since no response. Please follow my previous comment to open a new PR if need.


Fix sample text of Cantonese; Add sample text for Hakka; Rename Chinese languages in a consistent format

I originally opened https://github.com/google/fonts/pull/7782 but Chris told me to move the PR here. So this PR fixes the following issues:

The original sample text of yue_Hant (Cantonese) is actually in Simplified Chinese characters. This PR updates them into Traditional Chinese characters.
Sample text for Hakka Chinese was missing. This PR adds sample texts for Hakka.
The naming of Chinese languages was inconsistent. This PR renames them with the consistent XX Chinese format.
Zhuang still has an active speaker population and an ongoing revitalizing effort to bring back the writing of using Sawndip. This PR sets its population number and removes the historical: true tag.

BTW, it seems like the downstream https://github.com/google/fonts is not in sync with this repo. As you can see from that PR, the downstream google/fonts contains wuu_Hant.textproto, cjy_Hant.textproto, gan_Hant.textproto, hsn_Hant.textproto and wuu_Hant.textproto while this googlefonts/lang is missing those files. I am not sure if this is worth investigating but this PR is adding those files back.

@nathan-williams a proposal for more front end sample text changes

I defer to Simon but overall this LGTM :) Simon is out this week for UK holidays but I expect can review next week :)

This is excellent, thank you very much!

Why is the new pattern "XYZ Chinese", "XYZ Chinese (Simplified)", "XYZ Chinese (Latin)"?
Why is "Traditional" assumed to be the default? Would having "(Simplified)" make sense for some of them?
Isn’t the "name" supposed to match the ISO 693 name and "preferred_name" the one used by GF?
There are also some inconsistencies:

code
name
preferred_name
comment

cjy_Hans
Jin Chinese (Simplified)

cjy_Hant
Jin Chinese

gan_Hans
Gan Chinese (Simplified)
Gan Chinese (Simplified)
Redundant preferred_name as is.

gan_Hant
Gan Chinese
Gan Chinese
Redundant preferred_name as is.

hak_Hans
Hakka Chinese (Simplified)

hak_Hant
Hakka Chinese

hak_Latn
Hakka Chinese (Latin)

hsn_Hans
Xiang Chinese (Simplified)

hsn_Hant
Xiang Chinese

lzh_Hans
Literary Chinese (Simplified)
Does it actually make sense to have this one? It doesn’t have data anyway.

lzh_Hant
Literary Chinese

lzh_Phag
Literary Chinese, Phags-pa
"Literary Chinese (Phags-pa)"

nan_Hans
Southern Min Chinese (Simplified)

nan_Hant
Southern Min Chinese

nan_Latn
Southern Min Chinese (Latin)

wuu_Hans
Wu Chinese (Simplified)
Shanghainese (Simplified)

wuu_Hant
Wu Chinese
Shanghainese

yue_Hani
Yue Chinese
Cantonese
Data is pretty much a copy of "yue_Hant". Hani is a superset of Hant and Hans. Should it be removed?

yue_Hans
Yue Chinese (Simplified)
Cantonese (Simplified)

yue_Hant
Yue Chinese
Cantonese

za_Hans
Zhuang, Simplified Han

Does it actually make sense to have this one? It doesn’t have data anyway.

za_Hant
Zhuang, Traditional Han

"Zhuang (Sawndip)"?

za_Latn
Zhuang

"Zhuang (Latin)"?

zh_Hans
Simplified Chinese

"Chinese (Simplified)"?

zh_Hant
Chinese (Traditional)

zh_Hebr
Chinese, Hebrew

"Chinese (Hebrew)"?

zh_Phag
Chinese, Phags-pa

"Chinese (Phags-pa)"?

There are plenty of other multipscript languages with ",

@moyogo  You are right that some of the preferred names are redundant. They there simply because they were originally there for unknown reasons. I want to minimize the changes and risks so I didn't delete them. If you believe they are safe to delete we can make another PR. I have the same confusions about the Simplified Literary Chinese and Simplified Zhuang as well. Again I didn't touch them because they were there in the beginning for unknown reasons. We might need to find the original authors of them and ask for the rationales of adding them.

So making Traditional as the default would keep the naming consistency.

Weren't "Simplified" and "Traditional" consistently present before?
The mixed up samples come from https://github.com/eric-muller/udhr/ they should also be fixed there if possible.

The original naming pattern was inconsistent. It had Chinese Jinyu in hans, Chinese Yue in hani and Wu Chinese with an autonym (I don't know what autonym does here). And as you said Literary Chinese in Simplified and Zhuang in Simplified wouldn't make sense. They are written in only one script which is the traditional one. That's reason why I assume the traditional script as the default. Otherwise creating Literary Chinese (Traditional) would be quite confusing, because there is simply no non-traditional Literary Chinese.


Emulator will get stuck if audio isn't triggered

...e.g. on browsers without WebGL the emulator seems to be frozen (even though the UI works) because the audio cycle count isn't advanced, this will cause the CPU to stop because it thinks it is running to far ahead of audio!

Here's background info on this, it's only happening on iOS Safari since this only allows WebAudio from inside user interaction, otherwise audio playback will silently fail (and cause this strange freezing behaviour in the emulator since the audio buffer callback only seems to be called once). The emulator works perfectly fine if audio playback would work at all, only the broken WebAudio behaviour on iOS9+ has the freezing behaviour.
http://www.html5gamedevs.com/topic/17326-ios-9-webaudio-issues/

...this also happens on Windows natively if there's no audio initialized (e.g. an USB head phone isn't attached).

Not sure but I think this is fixed now.


Don't use global functions for no reason

That addon uses local variables, but something strange reason, you create only global lua functions.
That is really bad and can do errors and problems with gmod and other addons!
Your addon takes a high place in workshop, please correct this, do not make the game worse.

Thanks for pointing this out, I'll fix it for the current workshop version as well as the wip v2

fixed in the old branch and is not a problem in v3


TypeError: 'numpy.float64' object cannot be interpreted as an integer

Your code has many error when i run with python3, please help me check this :(

Kakalot:eyeshadow kakalot$ python3 eyeshadow.py
Traceback (most recent call last):
File "eyeshadow.py", line 115, in
ext(u_l0,l_l0+1,i)
File "eyeshadow.py", line 31, in ext
y.extend((ones(b-a)*i).tolist())
File "/usr/local/lib/python3.6/site-packages/numpy/core/numeric.py", line 192, in ones
a = empty(shape, dtype, order)
TypeError: 'numpy.float64' object cannot be interpreted as an integer

Try sudo pip install -U numpy==1.11.0, it works for me then.

MODIFY   y.extend((ones(b-a)*i).tolist())   TO  y.extend((ones(int(b-a), dtype=np.int32)*i).tolist())

val = color.rgb2lab((im[x, y] / 255.).reshape(len(x), 1, 3)).reshape(len(x), 3)
IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices
I have encounter this problem guys please help

my resolution:
if problem is:
'numpy.float64' object cannot be interpreted as an integer
then use the resolution written by biyuehuang
if the problem is:
ValueError：assignment destination is read-only
in line im[x,y] = color.lab2rgb(val.reshape(len(x),1,3)).reshape(len(x),3)*255
then MODIFY im=imread('input.jpg') to im=np.array(imread('input.jpg'), im2=np.array(imread('input.jpg')