Move time-related enabling conditions to p2p

closes #253
@binier Note that now time passed to enabling condition is slightly differ from what is in the state.time(), but I think this is more consistent, as state.time() might jump back, and time that comes from redux is monotonous.

state.time() can't jump back. Why do you think so? In fact it should always be equal to the time that you are passing now to the enabling condition, from what I checked briefly.
Because state.time() also gets the last dispatched action time seen by the reducer and it will match last_action_id in the Store. https://github.com/openmina/redux-rs/blob/0a85a1efb6c817f9714010b801efc7cd882cb947/src/store.rs#L175

There are some issues still, probably I screwed up enabling conditions when merged them.

@binier Zura, how about that? Having additional time-aware method proved to be error-prone, so I've just added the time parameter to is_enabled.

Is this required because the substates don't have access to the top-level state time?
What about adding a new method to the trait that is defined as:
fn is_enabled_with_time(&self, state: &State, _time: Timestamp) -> bool {
    self.is_enabled(state)
}

which is what redux would call, but it allows for the current enabling conditions that do not require this workaround to keep their current definitions?

Is this required because the substates don't have access to the top-level state time?
Well, partially. On the other hand, keeping time in state is kind of a workaround.

What about adding a new is_enabled_with_time method (which redux will call instead of is_enabled) to the trait that is defined as:

That was my first idea, but with current impl we need to be super-careful implementing EnablingCondition for the global state. By default it calls is_enabled, and if it is is_enabled_with_time that is used for the substate, then it will be a mistake. With only one method we get rid of such errors.

@binier If you're fine with this, I'd like to merge it. @binier also this one: https://github.com/openmina/redux-rs/pull/1

@akoptelov right now I cannot come up with a better alternative that solves the issue you mentioned above, so +1 from me


[sigh] Fix entitlements merging when changing team while resigning

Checklist

[x] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[x] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary.

Motivation and Context
Since fastlane 2.82.0, "advanced" entitlements can be addressed by resign with --use_app_entitlementsoption.
All is working fine when resigning without changing team, but there are issues with some of these entitlements when the team of the app to be resigned is different from the one of the new provisioning profile (which is a common use case for resign).
An example of this issue is mentioned by @heps and @aklowther on #11070.
These entitlements are the following:

com.apple.security.application-groups (App Groups)
com.apple.developer.in-app-payments (Apple Pay In-App Payments / Merchant IDs)
com.apple.developer.ubiquity-container-identifiers (iCloud Containers)
com.apple.developer.icloud-container-identifiers (iCloud Containers)
com.apple.developer.pass-type-identifiers (Wallet / Pass Type IDs)

These 5 entitlements are linked to unique identifiers that are defined on the Developer Portal and that can't be shared between teams.
Hence, they must not be retrieved from the existing app if the team changes. In this case, they must be retrieved from the new provisioning profile instead.
There is only one potential issue with this : provisioning profiles only list a single generic value for pass types (even if the app entitlements allowed a restricted list of pass types), and we can't guess if a specific subset of pass types of the new team is to be used.
Allowing all Pass Types of one's team is common use and should be fine for most apps.
Anyway, there is no better way to do it for now without adding a bunch of parameters to resign.
Description
The entitlements merging logic has been changed:

The list of keys to be blacklisted from the provisioning profile has been updated and it now includes the specific keys above if there is no team change.
The list of keys to be retrieved from the existing app has been updated and now it includes the specific keys above if there is no team change.
In case of team change, a warning is displayed to inform the user of these specific merging rules.

The logic for replacing old App/Team IDs by the new ones has been optimized to prevent 2*N calls to sed on the whole patched entitlements file (this was overkill and could have exceptionally led to unintentional replacements in previous entitlements' values).
The logic to populate the iCloud Environment entitlement value has also been integrated to this block for legibility.
Also, the regular expression used with sed for extracting the entitlements values from the app entitlements was not working as expected on the multiline XML result of PlistBuddy -x.
This was not a big issue as this complete XML result with headers was correctly read by plutil -insert … -xml but lines of XML were dumped in the log for each entitlement instead of a single XML element.
This is fixed and verbose logs are now more legible when using --use_app_entitlements.

I couldn’t agree more!

This looks amazing but also way over my head 🙌 Do you have a good suggested way of testing this? I have actually never resigned anything before 🙃

@joshdholtz
I think we may be able to have some tests.
That would involve a couple of dev accounts though.
E.g. we have an ipa signed with Dev A's AppStore dev account, and want to resign it to Enterprise version.
For resign operation we need to have a private key available as part of Mac OS X Keychain.
We can get p12 protected by a password or pull certs from repo using match.
The question is how do we secure that certificate (private key)?
Is there a way to store some password-protected assets as part of fastlane repo?
Alternatively, we make this private key available for everyone, which means anyone can pull it in and use it to sign some random iOS apps.

I just tested this, it resolved the issues brought in with 2.82.0

Assigning myself to take a look at this over the weekend, but if someone else gets to it first that is 👍 .

@kapfab This looks great, thanks so much for the PR! I added two suggestions, let me know what you think?

Also the macOS CircleCI build failed while they were having an outage, you may need to push another commit to get it to rerun.

@kapfab ping

Restarted the tests on CircleCI, passes.

Nah @kapfab, more that I don't understand how it works and I keep trying to remove "needs-attention" although it uses the total age of the PR I think ;)
@getaaron Can you take a look at the comment replies from @kapfab above please? Thanks.

Ohoh, this now has merge conflicts - and the second one doesn't look trivial. Could you take a look @kapfab please?

Hi guys, I am joining the group of people affected by this.
In my particular case, we create a build that gets resigned twice: once for internal/enterprise release (for testing) and other one to the app store... these two belong to different teams and it means we need to transfer some of the entitlements over the new team id (and other identifiers).
I am trying to use the --use-app-entitlements in it but the output tends to be invalid because App Groups do not match.
Is there an estimated time to release? What's blocking this PR (other than the merge conflicts)?

@rodrigoelp nothing blocking the PR besides merge conflicts and request for improved explanation here https://github.com/fastlane/fastlane/pull/12131#discussion_r237631944

That's great read @getaaron. Hopefully the PR will get through soon :)

@rodrigoelp Feel free to take a stab at it yourself if you’re so inclined

@rodrigoelp Feel free to take a stab at it yourself if you’re so inclined

I would love to but I don't know what to improve on the transfer rules and I haven't checked the merge clash. I can try the later tomorrow once I get to the office.

Is there an estimated time to release? What's blocking this PR (other than the merge conflicts)?
Ping @kapfab

Hi,
I spent hours if not days to identify and test all merge cases last year to deliver a working fix for everyone (a single entitlement was missing for our own needs).
It has been blocked for one year now.
Initially because of a CircleCI issue, then I was asked to document transfer rules that were not documented at all before my PR and now, as time goes, another PR did its way and brought a conflict.
Honestly, trying twice to fix things I did not break is not in my current top priorities.
Though, if someone has time to work on it, I’ll be happy to bring a quick help if needed.

then I was asked to document transfer rules that were not documented at all before my PR and now

As I don't understand how they work, for me it would be enough if you documented what you do know about the rules as you touched them.

As I don't understand how they work, for me it would be enough if you documented what you do know about the rules as you touched them.

As far as I can remember, I added a comment to explain each block I touched and I even added a comment for each entitlement, explaining why it has to be blacklisted from the PP.
I know how entitlement merging (and this shell script above all) is complicated to understand, maintain and test.
If you have any question, I'd be pleased to answer, but I just don't have time to re-document the whole process by commenting code.

Any update on when this PR will be merged? We are being affected where resigning a package containing an extension and an app group, the app group is not being updated within the extension's entitlements. Have confirmed using this commit that it resolves this issue.

There are now 2 merge conflicts, one simpler and one more involved that would have to be fixed first :/

Hmm I see. I forked, rebased to fastlane/fastlane:master and resolved the conflicts, per https://github.com/silvervest/fastlane/commit/8281d6caf273a513adef50cfc7ed2eb40e9eccb6
I'm not sure how to get this fed back into this PR though, if that's even possible?

In theorey you could create a PR to @kapfab's repo which they would have to merge. In practice it might be easier to create a new PR with the same changes (and link to it here) - on merge you will both get credit in the commit history automatically.

Thanks for the advice @janpio - tried going the in-theory PR into @kapfab's repo, but the PR would include all changes between master then and now, so I went the in-practice option and submitted https://github.com/fastlane/fastlane/pull/15380

Closing this as #15388 will replace it - the original author @kapfab will also get credit if that PR is merged.

Hey everyone here, would be great if you could have a look at https://github.com/fastlane/fastlane/pull/15388 which replaced this PR and leave an "approve" review if you think this can be merged 👍


Data fraction go wrong for RTL wrappers

Hello,
I just noticed while implementing the code that data fraction is some how reversed direction on.Hover:
<input type="hidden" class="rating" data-fractions="2" value="4.5"/>

I get to fix the value="4.5", since the half star visible on page load was also reversed by changing this snippet .js (left:0 => right:0):
overflow:"hidden",right:0,width:0

However, didn`t get to fix the half star hover issue.

Thanks for your feedback! You pointed me to the solution. I just had to think as if the left was the right position :).
I have added support for fractional right-to-left symbols. So in version 1.3.1 it should work.

Thanks for the fix.


New Icon and Wallpapers

We would like to have a nice new icon, along with that generate new wallpapers and icons across the repos where applicable.
Thinking about using Midjourney or Unstable Diffusion to generate something, or possibly a commission via Fiverr
AC:

New logo put into main eldritch repo
New wallpaper variants generated for different resolutions and replace existing ones in main repo
Extra credit: New wallpaper engine wallpaper generated
Push the new logo into vscode repo (its needed for publishing to marketplace with its own icon), size should match existing one in vscode repo

Commissioned a new logo from Fiverr artist. Should take a couple days then I will crate new wallpapers for as many resolutions as I can and a new wallpaper engine

Got a new logo but still want to work on it, updated in the meantime, but looking to make it more "cthulhu"esque


Because this character ❤ causes double data to be given, one line is empty

Output of go version:
go version go1.16.3 windows/amd64

I don't understand what you means, could you create the issue by an issue template and provide more details?


cpi.service sets values in KVM guest and fails

Seems the condition the service (https://github.com/ibm-s390-linux/s390-tools/blob/master/systemd/cpi.service.in#L14) it true even in a KVM guest, but the CPI interface isn't (fully) implemented (?) there and setting the values fail.
[root@localhost ~]# journalctl -u cpi
Jul 26 09:28:01 localhost.localdomain systemd[1]: Starting Apply Control Program Identification (CPI)...
Jul 26 09:28:01 localhost.localdomain cpictl[628]: /lib/s390-tools/cpictl: line 112: echo: write error: Operation not supported
Jul 26 09:28:01 localhost.localdomain systemd[1]: cpi.service: Succeeded.
Jul 26 09:28:01 localhost.localdomain systemd[1]: Finished Apply Control Program Identification (CPI).

Related: https://bugzilla.redhat.com/show_bug.cgi?id=1985745

ping :-)

I would probably be best to suppress the error message in cpictl (cpi_commit), e.g.
echo 1 > "$CPI_SET" 2> /dev/null
As we will likely implement the CPI interface for KVM in the future, it's OK to enable the service in KVM guests.


is it possible to convert code with numpy and scipy library?

After searching document, i am not sure if it possible to convert with numpy and scipy library.
For numpy, i import it as import numpy as np and use some functions:
np.random.permutation(), np.multiply(),np.matmul(), np.hstack(),np.mean();
For scipy, i use it to io file.

Hi,
Numpy and Scipy are both written in C(++) and unfortunately cannot be used from Transcrypt. A start has been made with a port of a small part of Numpy to Transcrypt. It is called Numscrypt and currently can already do some of the things you mention. Numscrypt will be expanded in the near future,  but it will always be more limited than Numpy. Scipy is not yet on the agenda.
Numscrypt has not been tested with the newest release of Transcrypt.


how to perform entgql annotation input overwrittern ? entgql annotation output omit field

If you have HassedPassword field, you want generate a graphql input schema as "password" instead of  "HassedPassword", you also want to omit the output "HassedPassword" to user ? how do you do that

Already  fixed it , use .Sensitive() method when you declare field ;


Git add on unsaved changes

When running git plus: add on a file with unsaved changes git-plus reports the file as added but, of course, nothing has been added so git plus: commit reports Nothing to commit.
The user should be notified that the file has no changes. It would be better if the user were prompted to save the file in a way that would subsequently git add it.

I understand what you're saying. From the command line though, if you did git add with unchanged files then git would exit with a success code of 0 and subsequently, an attempt to commit would result in git saying there's nothing to commit.
This package is simply a wrapper around git's CLI so it just spits out what git says.
I think this is a valid request. It's not a priority right now but you're welcome to make a pull request with a solution.


Dev v1.4.2

This branch aims to bring new languages plus improve code quality.
Specifically,

Ukrainian translation by @Kefir2105
Chinese (Traditional) by @myfix16

Closes #44 #43 #40.


optionally disable layout rendering

I haven't found a way to disable layout rendering other than creating a layout none.phtml containing just <?=$this->content?>....not very elegant even if it works.
Disabling the layout (setTerminal(true) in zend view model terminology) can be useful when handling ajax requests. In most cases I use a JsonResponse, but sometimes an HtmlResponse is needed.
We could use the value false for the $layout template parameter to make the renderer skip the preparation of layout, because once it's added via its constructor - as far as I know - you can only change it to a different layout.
Additional notes:

i added the layout skipping test inside the render(...) method instead of the prepareLayout(...) method just to skip a function call.
I moved the cloning of the injected $layout property into the last else block. No cloning necessary if providedLayout is used.

You should add tests

I would like to merge this, but I cannot figure out from the code how it works, exactly; unit tests would help a ton in understanding your expected use case.

Hello @weierophinney ,
I will add some tests in the next days. I first wanted to make sure this feature is useful to others and sufficiently elegant (I am not sure it is, zend-view is as setTerminal() is very clear and explicit). You are right...it's usage is not evident from the patch....everything appears so clear in the same instant you are digging into the problem....
just a couple of examples to disable layout decorated rendering:
// 1. set the $layout variable globally (::TEMPLATE_ALL)
if ($isAjaxRequest) {
    $this->view->addDefaultParam('*', 'layout', false);
}

return new HtmlResponse(
    $this->view->render('blog::post/index', [
        // tpl vars here
    ]);
);

// 2. set the $layout var for the current tpl only
return new HtmlResponse(
    $this->view->render('blog::post/index', [
        'layout' => false,
        // tpl vars here
    ]);
);

the special value false is the key to disable layout rendering. Setting globally seems a little clearer because it can be called independently and conditionally just before rendering occurs, but the final result would be the same in this case.
In this example a standard request would for instance render the 1st page of blog articles in an admin area. Ajax calls (with specific page/sort/filter params) would trigger updates of an article list section only.
Returning a json object with the current article list data / pagination links data and rebuilding the html via javascript (mithril/vue) would be the most modern way to do it, but i believe that ajax html partials are still commonly utilized.
Of course a special method $this->view->disableLayout() implemented for zend-view, plates, twig would be preferrable...but I am not sure this make sense in twig (where we call the internally processed {% extends "layout.twig" %} tag) or in plates (where we apply a layout by explicitly calling $this->layout('layouts::main') inside the template).
kind regards

ping @weierophinney

Thanks, @pine3ree; merged to develop for release with 1.3.0.


Duplicate cal_flat_spirou entries in log.fits

For an unique PID, 7 cal_flat_spirou entries are entered in the reduced night log.fits.
The LEVEL_CRIT column indicates:
2 cal_flat_spirou for fiber A,
2 cal_flat_spirou for fiber B,
2 cal_flat_spirou for fiber C,
1 cal_flat_spirou for fiber AB.
The extra recipes called for fiber A, B, and C lead to the same output, but have a different PLOTDIR value (set to None).

Not sure of the cause of this.
The expected outcome should be for LEVEL_CRIT should be
num=0 fiber = AB
num=0 fiber = A
num=0 fiber = B
num=0 fiber = C

so only 4 entries for a single PID.
Weird...

Not sure of the cause of this.
The expected outcome should be for LEVEL_CRIT should be
num=0 fiber = AB
num=0 fiber = A
num=0 fiber = B
num=0 fiber = C

so only 4 entries for a single PID.
Weird...


The returned resource id shouldn't be converted into lower case by GET API of Log Analytics Workspace

After tested, I found the returned resource id in response would be converted into lower case by GET API of Log Analytics Workspace. I think it shouldn't be converted into lower case. Just exposing raw data should be fine.
Http request:
GET https://management.azure.com/subscriptions/xx-xx-xx-xx/resourcegroups/acctestRG-test/providers/Microsoft.OperationalInsights/workspaces/acctestLAW-test

Http response:
{
    .........
  "id": "/subscriptions/xx-xx-xx-xx/resourcegroups/acctestrg-test/providers/microsoft.operationalinsights/workspaces/acctestlaw-test",
  ........
}

Hi @neil-yechenwei,
My apologies for the delay,
We have involved our engineering team and they are currently looking into this.


UTF-8 issues

Im having some problem with your code using letters like å ä ö in it. just try to download a movie named "hypnositören".

@randomchars
try:
foo = foo.decode(encoding)
except AttributeError:
pass # Python3
curl to a video:
HTTP/1.1 200 OK
Date: Wed, 25 Mar 2015 15:29:26 GMT
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Cache-Control: no-cache, must-revalidate
Content-Type: text/html; charset=ISO-8859-1
Server: gws
X-XSS-Protection: 1; mode=block
Alternate-Protocol: 443:quic,p=0.5
Transfer-Encoding: chunked
Accept-Ranges: none
Vary: Accept-Encoding
curl to main page
HTTP/1.1 200 OK
Date: Wed, 25 Mar 2015 15:30:46 GMT
Server: gwiseguy/2.0
Cache-Control: no-cache
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security
-bugs/log/youtube
P3P: CP="This is not a P3P policy! See http://support.google.com/accounts/answer
/151657?hl=fi for more info."
Content-Type: text/html; charset=utf-8
X-Frame-Options: SAMEORIGIN
Expires: Tue, 27 Apr 1971 19:44:06 EST
Set-Cookie: YSC=7pbMC3QcqDU; path=/; domain=.youtube.com; HttpOnly
Set-Cookie: VISITOR_INFO1_LIVE=ZMDosiVffmo; expires=Tue, 24-Nov-2015 03:23:46 GM
T; path=/; domain=.youtube.com; HttpOnly
Set-Cookie: PREF=f1=50000000; expires=Tue, 24-Nov-2015 03:23:46 GMT; path=/; dom
ain=.youtube.com
Alternate-Protocol: 443:quic,p=0.5
Transfer-Encoding: chunked
Accept-Ranges: none
Vary: Accept-Encoding
So Youtube definitely sends charset in Content-Type. Not sure why you're not seeing it. It also varies from page to page so you actually need to extract it. Alternatively just set requests as a dependency. You can get guaranteed unicode objects from its responses that are decoded properly. You also get a HTTP library that works with both Python2 and Python3 without hacking required so it's pretty much win-win.

Pull request #62 to fix issue #61 also fixed this issue right? So it can now be closed.

Just tried here with version 0.3.0 and had no problems. I this it's closed.


fix fs write issue

run dukluv with test.js,.e.g ./dukluv test.js
var fd = uv.fs_open('uv_write.test', 'w', parseInt('0666', 8));

uv.fs_write(fd, Duktape.Buffer('abcdefg'), 0, function(){
        uv.fs_close(fd);
});

uv_write.test content maybe random value, for the Duktape.Buffer('abcdefg') may already be released in asynchronous setup.
add data_ref field in struct duv_req_t to ref to data passed from JS side
Signed-off-by: Jie Yang<EMAIL_ADDRESS>

Thanks for the fix.  If I may ask, what are you using dukluv for?

For the small footprint purpose, i use dukluv for IOT (internet of thing)
platform, thanks for your dukluv.
2016-01-06 21:46 GMT+08:00 Tim Caswell<EMAIL_ADDRESS>
Thanks for the fix. If I may ask, what are you using dukluv for?
—
Reply to this email directly or view it on GitHub
https://github.com/creationix/dukluv/pull/15#issuecomment-169326343.


alignment of the embed video

Current State of the service-mesh-performance site
Current Design - https://smp-spec.io/  of the embedded video.
Desired State of the service-mesh-performance site
We can change the position as seen in the screenshot.

Contributor Guides and Resources

🛠 Meshery Build & Release Strategy
📚 Instructions for contributing to documentation

Meshery documentation site and source

🎨 Wireframes and designs for Meshery UI in Figma
🙋🏾🙋🏼 Questions: Layer5 Discussion Forum and Layer5 Community Slack

@leecalcote Please assign this issue to me.

@gyohuangxin Please review it If there are any chances required. Let me know..


[TOPI] Bitserial low-precision convolution

Bitserial low-precision convolution operators for x86 and raspberry pi
Raspberry pi schedules include optimized microkernel

Some actionable items to improve the intrinsic id finding

Use Intrinsic::ID Function::lookupIntrinsicID  to lookup intrinsic ID by name
Register PackedFunction codegen.llvm_lookup_intrinsic_id(name: str) -> id: int
Add the implementation in intrin.py

call_llvm_intrin, with the intrinsic name as the first argument, which looks up things by name, and then uses call extern

Thanks @cowanmeg for improving the PR! this is now merged


GEDCOM import

The way this will work is an admin can upload a GEDCOM file, and it will get imported into the database.
This will require a script that parses GEDCOM and puts it into the database.

There is a rake task for doing this:
rake import:gedcom[file,verbosity]

The importer needs to also import sources.


Question about matrix elements between periodic and non-periodic basis functions

Hi,
Is there a simple way in the pbc code to compute the overlap between the Periodic GTO basis and a single non-periodic function of the basis set (one of the gaussians)? This is surely being done right now as this is just one of the many terms needed to calculate the overlap between any 2 elements of the Periodic AO basis. The question is how to obtain this overlap without needed to implement new overlap routines? Is this easily accessible in the code?
Thank you in advance!
Miguel Morales<EMAIL_ADDRESS>

Hi Miguel, to my knowledge, there isn't an immediate solution. The
evaluation is done inside pbc.gto.intor_cross i.e. in
https://github.com/pyscf/pyscf/blob/master/pyscf/pbc/gto/cell.py
which takes in a molecule intor function, but the lattice summation is then
handled in the C library function in libpbc, see e.g.
https://github.com/pyscf/pyscf/blob/master/pyscf/lib/pbc/fill_ints.c,
so things like evaluating exp(ikr) can be done quickly.
However, because the molecular GTO intor interface is exposed, it should be
reasonably straightforward to write the lattice sum yourself, i.e. you can
call gto.moleintor.getints directly for the
set of basis functions in the periodic AO basis and add them up. Examples
of how to access different components of the basis structure are in
gto.molintor. Follow up if you need more help.
Garnet
On Thu, Apr 11, 2019 at 1:37 PM mmorale3<EMAIL_ADDRESS>wrote:

Hi,
Is there a simple way in the pbc code to compute the overlap between the
Periodic GTO basis and a single non-periodic function of the basis set (one
of the gaussians)? This is surely being done right now as this is just one
of the many terms needed to calculate the overlap between any 2 elements of
the Periodic AO basis. The question is how to obtain this overlap without
needed to implement new overlap routines? Is this easily accessible in the
code?
Thank you in advance!
Miguel Morales<EMAIL_ADDRESS>—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/pyscf/pyscf/issues/307, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABvWxHRzPM_iJrs0ABAifYMGNUYHzmuTks5vf50egaJpZM4cqz-l
.

My understanding is that an overlap between non-pbc and pbc AOs is equivalent to the overlap between pbc AOs. Considering the pbc-1d case, \sum_T j(r-T)  being the pbc AO, the overlap between non-pbc function i(r) and pbc AO \sum_T j(r-T) is
S1 = \sum_T \int i(r) j(r-T) dr
if both i and j are pbc AOs, the overlap is
\sum_TR \int i(r-R) j(r-T) dr = \sum_RT \int i(r) j(r-T+R) dr = \sum_R\sum_V \int i(r) j(r-V) dr = \sum_R S1 = N S1
where N is the number of cells in lattice summation
There is no difference between the two overlaps except a multiplier N. In the actual computation, we always evaluate the per cell value, i.e. scaling the integrals by 1/N, which gives S1 for the overlap of two pbc AOs. You can use cell.pbc_intor('int1e_ovlp') for AOs in the same cell or pyscf.pbc.cell.intor_cross for AOs of different cell/mol, as posted in Garnet's answer
Qiming

Thanks for the quick replies.  The periodic overlaps contain all the information I need. Thanks!


Learn RF code not works

Hello Guys,
I attached the code and log form homebridge for learn a RF command for opening my gate. But It seems not work. I have try with Broadlink RM pro and RM pro plus .
Thanks a lot,
Marco

@MarcoVG80 Are you seeing the same issue as @S474N  on your Broadlink RM pro (not plus)?
@S474N Is yours a PRO Plus?

No, "only" RM PRO (about 4-5 years old).

@S474N Did the original RM PRO definitely have RF support?

Look, I wrote, that via eControl app is everything OK. Of course I can control RF sockets.

I must have missed that after having gone through 100 issues today. It would be worth sounding a little less hostile in response to people trying to help.
As I don't have a 4-5 year old RM Pro there's nothing else I can do here. That message appears because it's not defined as having RF support by https://github.com/momodalo/broadlinkjs so I suggest you start there.

OK, thanks for reply. Is some way, to explore exactly version of RM PRO via CLI?


Issue or typing error ?

I observed in this document that using WS2019 KMS licence can be done on Windows Server 2012R2, 2016 or 2019 KMS host... But allow to activate Windows 8.1 and more recent only. Windows 7 is not listed. If I follow some Microsoft forum, many people have problem using WS2019 KMS licence, but no one tell Windows 7 is no more supported... And some tell Windows 7/2008R2 KMS client activation still working fine. Please confirm is document supported and "not supported" to ensure the right answer to everyone.

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

ID: 70e8d8e6-a5fc-9089-5849-a6eb1022d7ca
Version Independent ID: 6a1b4ab9-8b3d-3cb6-915f-c53e61d39a1d
Content: Windows Server 2019 Activation
Content Source: WindowsServerDocs/get-started-19/activation-19.md
Product: windows-server-threshold
GitHub Login: @coreyp-at-msft
Microsoft Alias: coreyp

For anyone else looking at this, the docs have been updated to include Windows 7 and Server 2008. See this pull request. https://github.com/MicrosoftDocs/windowsserverdocs/commit/f2d5ae09d5fdc6cd7a0a00af5f6f70dbf18d7e50#diff-a196d2273ce2b285bb77da1eb8b4b627
I think it's safe to confirm that Windows 7 and 2008 are supported by this VL


Moved custom Portal implementation to react-minimalist-portal

Closes https://github.com/bsidelinger912/react-tooltip-lite/issues/6

Thanks for the PR @artemjackson, I'll look at this ASAP.

@artemjackson This change is published with v1.3.0


Add Missing Methods from valve wiki

The wiki lists 4 different methods were currently missing
GetGlobalStatsForGame
isPlayingSharedGame
getSchemaForGame
getPlayerBans
https://developer.valvesoftware.com/wiki/Steam_Web_API

This has now been published to npm as v0.3.0
Minor version bump for new methods and new testing strategy.  Props to @vincegogh for the PR with these methods!


Integration with Home Assistant To-Do?

Hi,
in Home Assistant 2023.11.0 RC, now Home Assistant have To-Do as own integration, and support integrating external to-do with Home-Assistant like Todoist.
Will this integration also support integration with Home Assistant To-Do?

Hey @saya6k !
I just saw the changelog for 2023.11.0 RC, and it looks great! Indeed, it could be a great idea!
I will have to investigate how to integrate properly with TODOs and shopping lists, but yeah, could be great!
Thank you

I will close this ticket, because I will not integrate this integration with HomeAssistant To-Do, there is no quantity in there, it's just a To-Do list. If one day they will integrate the quantity aspect, I will reconsider that :)

Now Home Assistant Todo domain have description. And I think it may used as quantity like this:

Well, the issue is not just about quantities, I took a look at that integration, and it seems there is no way to add a unique ID on each item, if you want to remove something from the list, you have to do it through the name of the item, which represents a bad way / challenge to deal with the shopping list (add, remove, update items)
I will continue to check on how that will evolve, but right now, it's still not a good idea :(


Improve E101 help text

@1r00t I hope this help text is better. Maybe you could give it a quick read and leave me a suggestion how it could be further improved. I'd appreciate that a lot. Thx Joe!

Hey. Thanks for the fast reply. I understand it now and it works great!
I needed to make these fields allow blank and null for it to work from the admin panel.
Now they automatically populate!

@1r00t ideally, you would make those fields editable=False. That way they don't pop up in the admin. You'll probably also need to populate empty fields for existing images for optimal performance.


⚠ Bofrost.at has degraded performance

In 024ef0c, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2220 ms

Resolved: Bofrost.at performance has improved in dba9b67 after 27 minutes.


/sys should be mounted readonly

When using Docker 1.6.2 and a Debian 8.1 (Jessie) image, when running a Docker container (with the capability SYS_ADMIN added) from it with systemd 215-17+deb8u1, /sys is mounted initially with read-write permissions and is only later on switched to read-only by systemd (probably by systemd-remount-fs).
# grep sys /proc/self/mounts
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd 0 0
pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
# more /etc/fstab
# UNCONFIGURED FSTAB FOR BASE SYSTEM
# systemctl status systemd-remount-fs
● systemd-remount-fs.service - Remount Root and Kernel File Systems
   Loaded: loaded (/lib/systemd/system/systemd-remount-fs.service; static)
   Active: active (exited) since Mon 2015-08-31 17:55:19 CEST; 18h ago
     Docs: man:systemd-remount-fs.service(8)
           http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
  Process: 23 ExecStart=/lib/systemd/systemd-remount-fs (code=exited, status=0/SUCCESS)
 Main PID: 23 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/docker-7b835f5018853634c7ff0aadd4eb3aa884296950ed5f364bbd4db102c0f48660.scope/system.slice/systemd-remount-fs.service
[…]

Hi!
Please read this important information about creating issues.
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
This is an automated, informational response.
Thank you.
For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
uname -a:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

How does Docker mount /sys into a container? Does it do a bind-mount?

Bug Report Information
$ sudo docker version
Client version: 1.6.2
Client API version: 1.18
Go version (client): go1.3.3
Git commit (client): 7c8fca2
OS/Arch (client): linux/amd64
Server version: 1.6.2
Server API version: 1.18
Go version (server): go1.3.3
Git commit (server): 7c8fca2
OS/Arch (server): linux/amd64
$ sudo docker info
Containers: 15
Images: 609
Storage Driver: btrfs
 Build Version: Btrfs v3.17
 Library Version: 101
Execution Driver: native-0.2
Kernel Version: 3.16.0-4-amd64
Operating System: Debian GNU/Linux 8 (jessie)
CPUs: 8
Total Memory: 30.5 GiB
Name: my-awesome-docker-server
ID: QDG3:62QH:GGBT:EOKC:XETS:RHFV:VXBL:P6X3:K5BM:UT4Q:7YEO:PWOE
WARNING: No memory limit support
WARNING: No swap limit support
$ uname -a
Linux my-awesome-docker-server 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24) x86_64 GNU/Linux

/sys is mounted ro for me except for when using --privileged.

@paulmenzel no, like mount -t sysfs sysfs /sys. It is indeed readonly for me too on master.

Thank you for your answers.
What’s the reason for mounting it with read-write permissions when --privileged is used? That’s an unexpected side-effect.

@paulmenzel Because it's privileged. What the reason for mounting it read-only?

@paulmenzel it is only --privileged.
Privileged is privileged. It means full host access.

@cpuguy83, I know that. If user want to have it mounted with read-write permissions, they can remount it without any problems.
Is there a switch to tell Docker how to mount certain directories?

@paulmenzel You can bindmount your host /sys as ro volume inside. You can add CAP_SYS_ADMIN to unprivileged container with --cap-add also.

@LK4D4, unfortunately that’s too late. As written in my report, systemd-remount-fs already does this, but that’s too late and udev is started nevertheless.

@paulmenzel Too late for what? volume with -v mounts at the same time as /sys, then /sys for you too late too.

systemd-remount-fs seems to be run after udev. So that’s too late.
I am sorry, I did not fully grasp your second sentence.

@paulmenzel Could you ping me in irc #docker-dev on freenode, pls?

Any update here?

I don't think it's bug.

Can it be closed then?

I’ll close the bug, as there won’t be a conclusion.
For systemd compatibility I’d still believe, that it should only be mount read-only even in privileged mode. With that, systemd can easily tested in privileged mode, to help users to find out what is wrong, and not change systemd’s behavior in the process. Users needing write permissions can easily remount it writable.
Issue #18796 might be interesting for people wanting to run systemd inside a container.
Therefore, I’ll close this report.

You should be able to run systemd with just --cap-add sys_admin (and maybe --security-opt seccomp=unconfined but this requirement should go away by 1.12), you should not need --privileged. In fact you may not need any privileges at all, some people have working non privileged setups.

You should be able to run systemd with just --cap-add sys_admin (and maybe --security-opt seccomp=unconfined but this requirement should go away by 1.12), you should not need --privileged. In fact you may not need any privileges at all, some people have working non privileged setups.

I don’t see how that is related to the issue at hand. I am well aware of that.
The point is, that if something does not work in a container, it’s a good practice to see if it works in a privileged container to rule out any permission problems. The current behavior makes that hard, as systemd also changes behavior as it doesn’t recognize the container as a container, as currently systemd’s specification is violated.


Update nan for io.js 2.x.x compatibility

Referencing iojs/io.js#1620
Note: this PR does not address the usage of deprecated nan features causing compiler warnings. This just allows installation and compilation with io.js v2.x.x

Closing this as a duplicate of #299


NDRS-947: RFC6979 Compliant Signatures

This PR upgrades the k256 library to use deterministic signatures conforming to RFC6979

Assuming you apply Fraser's blocking items, LGTM.

bors r+


Mariadb

This PR adds support for MariaDB for Fedora.  The hostname for the rabbitmqadmin curl command was changed to <IP_ADDRESS> due to an /etc/hosts issue with older versions of Vagrant and chkconfig was used instead of systemctl to avoid errors during provisioning.

Nice, :+1:


Change of default component name

Test results without an entry in mapping table are automatically mapped to a component named "unknown".
I am not sure - but maybe it is a useful feature to have the possibility to influence this default name.
The use case would be: User has a bunch of test results. Some of them have to be mapped to certain components. All remaining test results, for which an individual rule in the mapping table would be too much or is really not required, shall be accumulated to a component with a user defined name.
In mapping table this could be realized with an entry e.g. like this:
"BaseTests" : "[]"
With "BaseTests" is the user defined replacement for "unknown".

Hi Holger,
BaseTests will have a directory, where a substring can match.
The idea of "unknown" is to identify new tests which are not assigned to any component up to now.
Usually a test suite grows continuously which makes the possibility high that new component tests are introduced at any time.
In this case your  proposal would mix BaseTests with new tests from any other component.
So, I will close this proposal to let our implementation as it is.
Thank you,
Thomas


Prep for SR editor

Be ware that type_lib.py is weird and tools/create_class_definitions.py does weird stuff to it in order to be able to use it before the mercury_engine_data_structures package is importable.
I think your changes in general make it very incompatible with it

Be ware that type_lib.py is weird and tools/create_class_definitions.py does weird stuff to it in order to be able to use it before the mercury_engine_data_structures package is importable.
I think your changes in general make it very incompatible with it

which raises solution #3: codegen separate type_lib files for MSR and dread 🙃

bing

Is this good to go?

yeah I approved but would like dark to re-review as well since his review was out of scope for mii


[Rancher2] Change v2.x aliases to v2.6

Request Summary:
All rancher v2.x URLs should not redirect/alias to v2.5 docs. Instead, they should redirect/alias to v2.6.
Because this is a bit confusing for new users that for example the URLs listet under https://github.com/rancher/rancher#installation link to the old-stable docs and not to the current stable/latest release.
Details:
For example the URL https://rancher.com/docs/rancher/v2.x/en/installation/other-installation-methods/single-node-docker/ redirects to v2.5.

This isn't a simple matter of find and replace, so when this worked on I can help with this, or we can discuss.

No longer relevant with the new site.


Refactor of error handlings and add more async/await 'magic' to those…

In this PR:

was refactored error handling: now the user will see brief info about what exactly went wrong;
was added more async/await 'magic' to those parts where it was missed;

Ready, senior @rafaeljesus 😄 🇧🇷


[core] Remove @mui/x-data-grid-generator dependency

With @flaviendelangle we were quickly looking at why @mui/x-data-grid-generator has quite some downloads. We found https://www.npmjs.com/browse/depended/@mui/x-data-grid-generator. As far as I understand, since the new implementation of Toolpad that runs locally, this is no longer needed.

As far as I understand, since the new implementation of Toolpad that runs locally, this is no longer needed.

It was there to support copy+pasting code from the MUI docs straight into Toolpad and have it immediately work, some examples use this package. Back then we didn't support installing and using node modules.


fix: uploading empty files

What issue type does this pull request address? (keep at least one, remove the others)
/kind bugfix
Please provide a short message that should be published in the DevSpace release notes
Fixed an issue where DevSpace would always reupload empty files on initial sync.

🚢
Thank you!


Can not connect a second time to a re-created client

MVCE
#include <NimBLEDevice.h>

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  Serial.println("\n\nStarted");

  BLEDevice::init("ESP32");

  Serial.println("Create");
  NimBLEClient *pClient = BLEDevice::createClient();
  Serial.println("Connecting...");
  bool success = pClient->connect(NimBLEAddress("a4:c1:38:5d:ef:16"));
  if(success) {
    Serial.println("Connected");
    pClient->disconnect();
    Serial.println("Disconnected");

    BLEDevice::deleteClient(pClient);
    Serial.println("Create");
    pClient = BLEDevice::createClient();

    Serial.println("Connecting...");
    success = pClient->connect(NimBLEAddress("a4:c1:38:5d:ef:16"));
    if(success) {
      Serial.println("Connected");
      pClient->disconnect();
      Serial.println("Disconnected");
    }
  }
}

void loop() {
  // put your main code here, to run repeatedly:

}

Logging:
Started
I NimBLEDevice: "BLE Host Task Started"
I NimBLEDevice: "NimBle host synced."
Create
Connecting...
D NimBLEClient: ">> connect(a4:c1:38:5d:ef:16)"
D FreeRTOS: "Semaphore taking: name: OpenEvt (0x3ffc8870), owner: <N/A> for connect"
D FreeRTOS: "Semaphore taken:  name: OpenEvt (0x3ffc8870), owner: connect"
D FreeRTOS: ">> wait: Semaphore waiting: name: OpenEvt (0x3ffc8870), owner: connect for connect"
D NimBLEClient: "Got Client event "
D NimBLEClient: "Connection established"
D FreeRTOS: "Semaphore giving: name: OpenEvt (0x3ffc8870), owner: connect"
D FreeRTOS: "<< wait: Semaphore released: name: OpenEvt (0x3ffc8870), owner: <N/A>"
D NimBLEClient: "Refreshing Services for: (a4:c1:38:5d:ef:16)"
D NimBLEClient: ">> deleteServices"
D NimBLEClient: "<< deleteServices"
D NimBLEClientCallbacks: "onConnect: default"
D NimBLEClient: "<< connect()"
Connected
D NimBLEClient: ">> disconnect()"
D NimBLEClient: "<< disconnect()"
Disconnected
D NimBLEClient: ">> deleteServices"
D NimBLEClient: "<< deleteServices"
Create
Connecting...
D NimBLEClient: ">> connect(a4:c1:38:5d:ef:16)"
D FreeRTOS: "Semaphore taking: name: OpenEvt (0x3ffc8870), owner: <N/A> for connect"
D FreeRTOS: "Semaphore taken:  name: OpenEvt (0x3ffc8870), owner: connect"
D FreeRTOS: ">> wait: Semaphore waiting: name: OpenEvt (0x3ffc8870), owner: connect for connect"
D NimBLEClient: "Got Client event "
D NimBLEClient: "Got Client event "

... and then just "hangs"

This reminds of my last weekend, where I finally was "sure" that my ESP32 was broken.
For me the solution was to erase the flash , which seemed to have solved it. In the end I erased it basically before every upload.
What IDE are you using? If you are using some kind of caching mechanism, you might need to delete the compiler cache too.

I had a "broken" ESP32 too a few days ago, put it apart, I have not thrown it away yet. I'll try to erase the flash to see if that brings it back to life.
But this is another issue. I can reset to run the sketch again. I can re-flash and start the program over again. But is won't get passed the second connect(). As you can see in the logging, while connecting the first time it logs:
D NimBLEClient: "Got Client event "
D NimBLEClient: "Connection established"

and the second time it logs:
D NimBLEClient: "Got Client event "
D NimBLEClient: "Got Client event "

and then waits forever...
Most of the time, also this time, I use the Arduino IDE, 1.8.10 (that is the one but last I believe). Every now and then I use pio.

Turn on event code strings to see what
D NimBLEClient: "Got Client event "
D NimBLEClient: "Got Client event "

actually are.
Looks like you're hanging on a semaphore, or the stack is getting stuck because the peripheral has not disconnected yet. Try putting a delay of 100ms or so between deleting and creating the client.

Logging now:
Started
I NimBLEDevice: "BLE Host Task Started"
I NimBLEDevice: "NimBle host synced."
Create
Connecting...
D NimBLEClient: ">> connect(a4:c1:38:5d:ef:16)"
D FreeRTOS: "Semaphore taking: name: OpenEvt (0x3ffc88fc), owner: <N/A> for connect"
D FreeRTOS: "Semaphore taken:  name: OpenEvt (0x3ffc88fc), owner: connect"
D FreeRTOS: ">> wait: Semaphore waiting: name: OpenEvt (0x3ffc88fc), owner: connect for connect"
D NimBLEClient: "Got Client event BLE_GAP_EVENT_CONNECT "
D NimBLEClient: "Connection established"
D FreeRTOS: "Semaphore giving: name: OpenEvt (0x3ffc88fc), owner: connect"
D FreeRTOS: "<< wait: Semaphore released: name: OpenEvt (0x3ffc88fc), owner: <N/A>"
D NimBLEClient: "Refreshing Services for: (a4:c1:38:5d:ef:16)"
D NimBLEClient: ">> deleteServices"
D NimBLEClient: "<< deleteServices"
D NimBLEClientCallbacks: "onConnect: default"
D NimBLEClient: "<< connect()"
Connected
D NimBLEClient: ">> disconnect()"
D NimBLEClient: "<< disconnect()"
Disconnected
D NimBLEClient: ">> deleteServices"
D NimBLEClient: "<< deleteServices"
Create
Connecting...
D NimBLEClient: ">> connect(a4:c1:38:5d:ef:16)"
D FreeRTOS: "Semaphore taking: name: OpenEvt (0x3ffc88fc), owner: <N/A> for connect"
D FreeRTOS: "Semaphore taken:  name: OpenEvt (0x3ffc88fc), owner: connect"
D FreeRTOS: ">> wait: Semaphore waiting: name: OpenEvt (0x3ffc88fc), owner: connect for connect"
D NimBLEClient: "Got Client event BLE_GAP_EVENT_MTU"
D NimBLEClient: "Got Client event BLE_GAP_EVENT_DISCONNECT"

I think the issue is indeed that BLE_GAP_EVENT_DISCONNECT arrives AFTER calling connect() again.
I think disconnect() should wait for this event...!

Adding a 200 ms delay between createClient() and connect() solves the problem, 100 ms is too short

Adding a 200 ms delay between createClient() and connect() solves the problem, 100 ms is too short. Still I think disconnect() should wait for the event.

Interesting observation, I will test this too.

In the integration I am creating several devices are read out independently. Most don't need a connection, some do. I just want to use the functionality that is there. Also, I think it should always work
Could you give me some directions how to check if the client has disconnected? The function isDisconnected() does not do this job

For me the solution was to erase the flash , which seemed to have solved it. In the end I erased it basically before every upload.

This is must when you are building bluetooth app.

D FreeRTOS: ">> wait: Semaphore waiting: name: OpenEvt (0x3ffc88fc), owner: connect for connect"
D NimBLEClient: "Got Client event BLE_GAP_EVENT_MTU"
D NimBLEClient: "Got Client event BLE_GAP_EVENT_DISCONNECT"

This may have happen when there is no successful connection, maybe except MTU exchange, because this requires full connection established, unless MTU is called too early (in wrong place).

I have learned this   ….   after several hours :)
(It was not obvious to me before)

Am 29.05.2020 um 17:30 schrieb chegewara<EMAIL_ADDRESS>For me the solution was to erase the flash , which seemed to have solved it. In the end I erased it basically before every upload.
This is must when you are building bluetooth app.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/h2zero/NimBLE-Arduino/issues/65#issuecomment-636037032, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJ2EZC63EH42R77TCMPHLLRT7IKLANCNFSM4NNDS4XA.

This issue was just resolved in commit 4c798fe.

This issue was just resolved in commit 4c798fe.

I can confirm that. Thank you @h2zero!


Use grm's default leader election settings

How to categorize this PR?

/area scalability
/kind cleanup
What this PR does / why we need it:
This PR cleans up the decreased leader election frequency of grm introduced by https://github.com/gardener/gardener/pull/2667, which is no longer necessary with https://github.com/gardener/gardener-resource-manager/pull/119.
Which issue(s) this PR fixes:
Part of https://github.com/gardener/gardener-resource-manager/issues/77.
Special notes for your reviewer:
Release note:

`gardener-resource-manager` now uses the default leader election settings again (retries leader election every `2s`).

The default leader election resource lock of `gardener-resource-manager` has been changed from `configmapsleases` to `leases`.
Please make sure, that you had at least<EMAIL_ADDRESS>running before upgrading to `v0.24`, so that it has successfully required leadership with the hybrid resource lock (`configmapsleases`) at least once.

/ready

Looks good, but needs
/rebase
now that https://github.com/gardener/gardener/pull/3967 was merged

Done, PTAL.


Error display fix & escape hatch

if anything goes permanently wrong with the room state for some reason (like uploading an invalid file somehow), there was no way to get out of the error state except refreshing. this adds an exit button and fixes the error display

Ah, nice catch 👍


"Deferral connection..."

Hi, when I enable this resource, its not loading, only "deferral connection".

Did you set it up correctly?

Hi, when I enable this resource, its not loading, only "deferral connection".

Fixed it latest PR


ovs forwarder not getting started

the ovs forwarder doesn't start with latest deployments-k8s example and it seems to be just hanging on phase 5: register forwarder with the registry  step.
Logs attached.

ovs-forwarder-bringup-issue.log

This looks like just a connectivity issue in control plane on the k8s primary networking because  nsm mgr pod is not able to reach remote registry pod, but when both nsm mgr and registry pods are co located, then things are working.
I will debug what went wrong on the control plane network.

/cc @JanScheurich

@edwarnicke This issue occurred due to misconfig of egress interface used for calico primary network, after correcting it the forwarder comes up properly now. closing the issue.

@pperiyasamy Excellent news!


Bug: MYC API does not return end_year and area_code

The documentation for updating transition paths seems to copied without modification from Saved Scenarios section: https://docs.energytransitionmodel.com/api/transition-paths#update-a-transition-path.
Also the examples show that the end_year and area_code of a transition path are returned by the engine. For me this information does not seem to be returned, only 'id', 'title', 'created_at', 'owner' and 'scenario_ids'.

@noracato is this one to reopen or is this addressed elsewhere?

Also closed itself while I was on holiday


Remove the pass pipeline

I'm guessing you want:
for f in functions {
  pass1()
  pass2()
  ...
}

This will be an issue in the long run.
The order in which the passes apply will be significant once we implement whole-module transformations, like inlining. Further, whole-module passes will also likely be stateful and can't be re-initialized at each loop iteration. So we need the outer loop to iterate over passes, not functions, hence the array.

When the order of operations is significant, we can control that by reordering them in source code.  This is normal, innit?
a.sort()
a.removeLast()

What's wrong with
func prepareForExecution() {
  pass1(functions)
  pass2(functions)
  ...
}

?  If these passes have in common that they process every function once, maybe that's worth capturing somehow.

What's wrong with
func prepareForExecution() {
  pass1(functions)
  pass2(functions)
  ...
}

It pushes the loop over functions into every pass. I think that's unnecessary boilerplate that it's currently factored out.

If these passes have in common that they process every function once, maybe that's worth capturing somehow.

That's what I've been doing the whole time.


Update appveyor.yml

:x: Build GuiStracini.SDKBuilder 3.0.194 failed (commit https://github.com/guibranco/GuiStracini.SDKBuilder/commit/33b30f29f6 by @guibranco)

:x: Build GuiStracini.SDKBuilder 3.0.198 failed (commit https://github.com/guibranco/GuiStracini.SDKBuilder/commit/609cbf6889 by @guibranco)

:x: Build GuiStracini.SDKBuilder 3.0.200 failed (commit https://github.com/guibranco/GuiStracini.SDKBuilder/commit/027eeefc29 by @guibranco)

:white_check_mark: Build GuiStracini.SDKBuilder 3.0.206 completed (commit https://github.com/guibranco/GuiStracini.SDKBuilder/commit/64d107a070 by @guibranco)


Baggage and Propagation keys are not propagating from Spring boot web to kafka

The Baggage and Propagation keys are not propagating from restservice to Kafka listener whereas these are working fine between the microservices. And the infra are: latest stable version of Kafka(2.x),  spring-kafka, spring-boot(2.3.1) and sleuth(2.2.3).
Here is the configuration in both rest and kafka listener
spring:
  sleuth:
    baggage-keys:
      - baggage
      - e-xyz-loctran-id
    propagation-keys:
      - x-vcap-request-id
    log.slf4j.whitelisted-mdc-keys:
      - x-vcap-request-id
      - e-xyz-loctran-id

Part of logback_spring.xml from both the components:
              value="%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p [${springAppName},%X{x-vcap-request-id:-},%X{user-id:-},%X{e-xyz-loctran-id:-},%X{spanId:-},%X{baggage-TraceId:-}]) />

Log from restservice component
2020-07-07 20:22:33.664  INFO [xyz-product-service,ZXC!####,,AS1234,06bf867422a44ec6,]  INFO [,06bf867422a44ec6,06bf867422a44ec6,true] 27316 --- [nio-8080-exec-2] o.a.kafka.common.utils.AppInfoParser     : Kafka startTimeMs:<PHONE_NUMBER>658
2020-07-07 20:22:35.253  INFO [xyz-product-service,,,,,]  INFO [,,,] 27316 --- [ad | producer-1] org.apache.kafka.clients.Metadata        : [Producer clientId=producer-1] Cluster ID: bbLWBsdOcKsdQsSasdfRZLKjWKpwyA

Log from kafka component
2020-07-07 20:22:41.495  INFO [xyz-qos-audit,,,,16eabc20199706a7,]  INFO [,06bf867422a44ec6,16eabc20199706a7,true] 31460 --- [ntainer#0-0-C-1] c.e.n.qosaudit.listener.AuditListener

We can see the traceid propagated successfully but not baggage fields and propagation keys.

Please learn how to properly format the code

Please learn how to properly format the code

have formatted the code..

Can you show the way you're setting baggage and calling the Kafka code?

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.


Fixed #1270 the Load Toast visibility

Description
Fixed the Loader Toast visibility when wrong password is entered.
Related issues and discussion
#1270
Screen-shots, if any

Checklist
Make sure you've done all the following (You can delete the checklist before submitting)

[x] Apply the AndroidStyle.xml style template to your code in Android Studio.
[x] Code is well documented
[x] Include unit tests for new functionality
[x] All user-visible strings are made translatable
[x] Code passes Travis builds in your branch
[x] If you have multiple commits please combine them into one commit by squashing them.
[x] Read and understood the contribution guidelines .

Merged, thanks @amanjeetsingh150!


Computing the next valid interval

Very nice library! Thank you for your work :)
I wanted to use Timere to schedule cron-like tasks but I get stuck when I try to compute the next time the cron should run. For a task that should run every minute, I tried:
Timere.(resolve (after (Timedesc.now ()) &&& seconds [0]))
(* hangs *)

My understanding is that Timere is only able to optimize the intersections of Pattern, which seconds is but since is not. And so it resorts to computing a list of all the minutes from year 0, then doing an intersection via Seq.
Knowing this, I can sort of cheat and do multiple resolve with variations on years, months, etc to simulate since now in a way that pattern can optimize... but it's not really convenient.
Did I miss an easier way of doing this?

In any case, may I suggest a different representation for Resolver.result_space than lists or even seq? The main issue is that they can't skip any work, so it always costs O(N + M) for intersections rather than something closer to O(min(N, M)).
There is this lesser known operation on ordered collections called the successor query. It's very similar to mem/find but it returns a more useful result when the query fails:
val successor : Timere.t -> Timedesc.timestamp -> Timedesc.Interval.t option

The idea is that it should return the interval that contains the timestamp -- but if no such interval exists, then the very next interval that follows (or None at the end when the timestamp is too big.) So it's exactly the operation I'm trying to do to find when my cron should run next!
Forgive my bad illustrations but in both situations below, successor would return the [t0, t1) interval:
              timestamp
                 |
                 v
[-------)    [t0--------t1)    [------------)

              timestamp
                 |
                 v
[-------)                [t0--------t1)    [-----)

(We can recover mem/find by checking if timestamp >= t0)
The successor operation can help a lot for computing intersection, because it can skip forward and it also provides a uniform implicit representation of Timere.t. In pseudo-code:

The union of two successors is their minimum
We can produce a Seq out of a successor function by querying it at Timestamp.min_val, getting back the first interval [t0, t1) then iterating with t1 to search for the following one
The intersection is a tiny bit more complex, we have to search forward until both successors return overlapping intervals. Every failure to intersect moves us forward though.

For my situation seconds [0] &&& since now, the intersection would go through the steps:

successor (seconds [0]) Timestamp.min_val yields a first candidate [0, 1)
successor (since now) 0 returns [now, inf) which is incompatible, so we should retry with the new lower-bound
successor (seconds [0]) now yields a [now + dt, now + dt + 1) which is an overlapping interval with the previous [now, inf)
and so we managed to skip all the intermediate minutes from year 0!

It's not perfect, as you can still build intervals that have no intersection and the successor is not going to help:
[---]       [---]       [---]
      [---]       [---]       [---]

But in general it's a lot better when intersections do exist! (I used it in some terrible code that turned out to be fast enough thanks to the successor)
... And finally, the successor representation could also open the door to operations like "every 7s" that don't fit in a Pattern.

Hm, it does take surprisingly long to resolve, and indeed I think your explanation is correct.
Though I vaguely recall having some handling for cases like this, let me check...

I'll need to read your design of result_spacea bit more closely before I can give a proper response.

Very nice library! Thank you for your work :)

: D

W.r.t. your proposal:

In any case, may I suggest a different representation for Resolver.result_space than lists or even seq? The main issue is that they can't skip any work, so it always costs O(N + M) for intersections rather than something closer to O(min(N, M)).

There are a lot more skipping happening already, and successor query is accommodated in one way or another internally already. Namely internally it'll propagate the bound to the pattern resolver for it to restart the pattern matching at a different interval.
The result space is intentionally a very rough overapproximated bound in any case, and there are static and dynamic adjustment to the actual search space for union and intersection.
For static adjustment pass, mainly see:

optimize_search_space, which uses the following two internally

overapproximate_result_space_bottom_up
restrict_result_space_top_down

For dynamic adjustments, some examples:

within aux_inter

  let rec aux_inter' ~start (timeres : t list) =
    let interval_batches = resolve ~start search_using_tz timeres in
    let batch_for_sampling = collect_batch interval_batches in
    if List.exists CCOption.is_none batch_for_sampling then Seq.empty
    else
      let batch_for_sampling =
        CCList.map
          (CCOption.get_exn_or "Unexpected None in batch_for_sampling")
          batch_for_sampling
      in
      match batch_for_sampling with
      | [] -> Seq.empty
      | _ ->
        let open Timedesc.Span in
        let rightmost_interval =
          batch_for_sampling
          |> List.sort_uniq (fun x y -> Time.Interval'.compare y x)
          |> List.hd
        in
        let rightmost_start = fst rightmost_interval in
        let end_exc = rightmost_start + inter_slice_size in
        (* we shift the start of our scope to rightmost_start *)
        let timeres =
          slice_result_space_multi ~start:rightmost_start timeres
        in
        (* refresh the interval batches if the gap is too large *)
        let interval_batches =
          if
            rightmost_start - start
            >= dynamic_search_space_adjustment_trigger_size
          then resolve ~start:rightmost_start search_using_tz timeres
          else slice_batches ~start:rightmost_start interval_batches
        in
        let intervals_up_to_end_exc =
          interval_batches
          |> CCList.to_seq
          |> Seq.map (Intervals.Slice.slice ~skip_check:true ~end_exc)
          |> Intervals.Inter.inter_multi_seq ~skip_check:true
        in
        fun () ->
          Seq.Cons (intervals_up_to_end_exc, aux_inter' ~start:end_exc timeres)

where we do the skip based on a bundle of timere objects

within aux_union

  let rec aux_union' (timeres : t Seq.t) (intervals : Interval'.t Seq.t) =
    match intervals () with
    | Seq.Nil -> Seq.empty
    | Seq.Cons ((start, end_exc), rest) ->
      let open Timedesc.Span in
      let size = end_exc - start in
      if size >= dynamic_search_space_adjustment_trigger_size then
        let timeres = slice_result_space_multi_seq ~start:end_exc timeres in
        let next_intervals =
          resolve_and_merge timeres
          |> OSeq.drop_while (fun x -> Time.Interval'.le x (start, end_exc))
        in
        fun () ->
          Seq.Cons ((start, end_exc), aux_union' timeres next_intervals)
      else fun () -> Seq.Cons ((start, end_exc), aux_union' timeres rest)

I added some debug statements and can confirm the result space bounds were propagated correctly, and minutes seem to be very quick, so I am suspecting inefficiency in the pattern_resolver.
I'll try to optimise it and see where that leads us.

Right now I suspect there are too many conversions from set to seq - I'll play around with pattern_resolver.ml when I have time later.
Many thanks for raising the issue!

Hm...now I'm not very sure...

Ooh right sorry, I missed the overapproximate optimization! Indeed it calculates the right lowerbound (= now), but then it searches from 2022/01/01 until today. Maybe it's because the pattern enumeration only uses the year of the lowerbound? (overall_search_start is reset to year/01/01 below)
https://github.com/daypack-dev/timere/blob/1e272e24bac0a5f88eed962581e14375aab3cf65/src/pattern_resolver.ml#L508-L515
There's still a lot of code that I haven't read, so maybe it's not this! Thank you for looking into it so fast :)

Maybe it's because the pattern enumeration only uses the year of the lowerbound?

Oh yeah possibly! I'll need to remind myself of how all these work, it's been a year or more since I've last worked on them.

I think you're spot on.
Through dune utop src/:
let x = Result.get_ok @@ Timere.(resolve (after (Timedesc.make_exn ~year:2022 ~month:01 ~day:01 ~hour:01 ~minute:01 ~second:01 ()) &&& seconds [0]))

is significantly faster than
let x = Result.get_ok @@ Timere.(resolve (after (Timedesc.make_exn ~year:2022 ~month:12 ~day:01 ~hour:01 ~minute:01 ~second:01 ()) &&& seconds [0]))

Inefficiency of pattern resolver is addressed in #56

That was fast! Thanks a lot, it's much appreciated :)
I'm not impacted by the following, but after reading and thinking about the code, I believe there's an interesting edge case between the "search start time" optimization and lengthen:
# Timere.(resolve_exn
    (since (Timedesc.make_exn ~year:2022 ~month:1 ~day:1 ~hour:1 ~minute:0 ~second:0 ())
    &&& lengthen (Timedesc.Span.make_small ~s:(30 * 60) ()) (minutes [0]))) ;;
[2022 Jan 01 00:00:00 +00:00:00, 2022 Jan 01 00:31:00 +00:00:00)
[2022 Jan 01 01:00:00 +00:00:00, 2022 Jan 01 01:31:00 +00:00:00)
[2022 Jan 01 02:00:00 +00:00:00, 2022 Jan 01 02:31:00 +00:00:00)

If the date is increased by a minute, then the first interval is lost even though it still overlaps with since:
# Timere.(resolve_exn                                         (* vvvvvvvvv was 0 *)
    (since (Timedesc.make_exn ~year:2022 ~month:1 ~day:1 ~hour:1 ~minute:1 ~second:0 ())
    &&& lengthen (Timedesc.Span.make_small ~s:(30 * 60) ()) (minutes [0]))) ;;
[2022 Jan 01 01:00:00 +00:00:00, 2022 Jan 01 01:31:00 +00:00:00)
[2022 Jan 01 02:00:00 +00:00:00, 2022 Jan 01 02:31:00 +00:00:00)
[2022 Jan 01 03:00:00 +00:00:00, 2022 Jan 01 03:31:00 +00:00:00)

My understanding is that we would expect the first interval to be truncated by a minute, as it's what we get from a similar expression:
# Timere.(resolve_exn
    (since (Timedesc.make_exn ~year:2022 ~month:1 ~day:1 ~hour:1 ~minute:1 ~second:0 ())
    &&& (pattern_intervals `Whole
           (Points.make_exn ~lean_toward:`Earlier ~hour:0 ~minute:0  ~second:0 ())
           (Points.make_exn ~lean_toward:`Earlier ~hour:0 ~minute:31 ~second:0 ())))) ;;
[2022 Jan 01 00:01:00 +00:00:00, 2022 Jan 01 00:31:00 +00:00:00) (* <--- *)
[2022 Jan 02 00:00:00 +00:00:00, 2022 Jan 02 00:31:00 +00:00:00)
[2022 Jan 03 00:00:00 +00:00:00, 2022 Jan 03 00:31:00 +00:00:00)

I believe the "search start time" for patterns has to subtract the intervals durations to catch these overlapping ranges (that starts before but end after)... Anyway I'm not impacted at all by this behavior, but I could not resist thinking about the cool algorithms involved in timere!
Thanks again for your quick support!

Yes indeed lengthen has been a source of headache for the result/search space adjustment, also shift.
(I usually leave discovery of these cases to fuzzer, but I lack the equipment for fuzzing right now sadly). But I think you found a case that wasn't caught by fuzzer previously in any case : D
Fixed now by #57 I believe

Yes it works! Thanks a ton, I'm a big fan of your reactivity and I'm very happy of how easy the cron scheduling turned out be thanks to timere! Have a nice weekend :)

Good to hear!
Right now somewhat waiting on timedesc 0.7.0 publish before submitting this version of timere, but if pointing to the git repo suffices for you then I'm not gonna try to hurry too much as I'm still busy with other stuff.

Yes the git pin is great! There's absolutely no need to rush, please take your time :)

Thanks for the warning! I don't think it has affected us, we use it to schedule tasks in the future on regular intervals like "every friday" :) (with no reason to end up with negative month day)

Out of curiosity: are you guys using it for task scheduling akin to cron?

Yes! We use it in current-bench to allow running longer benchmarks every so often, rather than the default to run on every commit/PR where shorter benchmarks are more appropriate. It was really easy to setup in a generic way thanks to your libs :)

Oh neat! So it's actually used in practice : D Also very happy to see timere-parse seems usable enough for config files for the pipeline
(I'm guessing #69 is related to the same project then, in which case I'll just track timere 0.8.0 progress on that issue.)

Thanks a lot for the great work and support! :)


variants/qemu_q35/releases.md: v0.1.0 scope

LGTM overall, of course TBDs have to be replaced with correct values


compatability problems with version 5.0.2

Hi all,
I just updated my redmine installation to version 5.0.2 and it seems like this plugin is not compatible with it. I changed the version of deep_clonable to 3.2.0 as the used reference was not compatible with rails 6.1.6. Bundle install was succesfull but during db migration I received
"LoadError: cannot load such file -- redmine_recurring_tasks"
Was anybody able to use this plugin with 5.0.x already?

Yeah, same problem here

Ok managed to fix. Trivial.
Just do this in the init.rb (aside from removing the deep clone reference you already did:
at the top (before anything else:
remove this line with require
# require 'redmine_recurring_tasks'

# and replace with those two
require 'redmine'
require_relative 'lib/redmine_recurring_tasks'

at the end of init.rb (after all)
require File.dirname(__FILE__) + '/lib/redmine_recurring_tasks'

migrate and ready to go

Great, I can confirm that your solution is working.
Thanks a lot!

@albenik85 it's working and loads the plugin but dispatching is still broken as deep clone fails. I will fix this today and submit the fix here.

Ok, no code changes needed. After you apply the code I placed above, the only remaining thing is to reset the copied associations:

Just use the reset and save. Then all should work as expected.

Looks like that works but im now missing the top menu bar option "recurring tasks" that would take you to a list of current recurring tasks, is that missing for you guys as well?

Hello
I've followed these information and looks ok also
Thanks

To complete
before_filter has been deprecated in Rails 5.0 and removed in 5.1.
Then should be replaced by before_action in ./app/controllers/recurring_tasks_controller.rb and repl


what is onboardingTimer

@loboere OnboardingTimer is how long interval between each connection to proxies... so if you set it to a lower value like 100 the bots will spawn faster... yes you can also set it to 1 but need good internet connection.

I set myn to -999999999999999999999 would it do anything?

@Butterflypanda Idk but its useless to set it to that value and can also trigger some other bugs...  you can set it to 0 and it will be same thing but better.

you can onboard the clients over time with this value


Arrow keys stops working when reset is sent to parent tmux session.

Describe the bug
On Tmux, when you have :term running, and go to the other vim text edit session and send clear-history, the arrow keys stops working, but only hjkl both on Mac and Linux.
To Reproduce
Detailed steps to reproduce the behavior:

Run tmux, with this option. bind-key r send-keys -R \; clear-history
Run vim
~Type :term~
~Press Ctrl + W twice to switch back the original vim text edit session.~
Send clear-history from tmux with the keybind you configured on step 1.
Resize terminal to cause the terminal to show vim properly again
Try navigating with arrow keys.(not hjkl)

Expected behavior
Arrow keys works as before.
Screenshots
None
Environment (please complete the following information):

Vim version: 8.2
OS: Fedora 33, Mac
Terminal: Tmux. (on iterm2 when on Mac, tilix on Linux)

Additional context
None

Thanks for the explanation! @lacygoill
I think this is a designed behaviour.
Indeed bind-key r if-shell -F '#{m:*vim,#{pane_current_command}}' '' { send-keys -R; clear-history } is what I need. I needed to change to *vi*, which might be dangerous, but works. :) fedora has , vi, vim, vimx.
I didn't expect such a kind support from github issue. Thank you very much.

For remote session, vim should be launched like this.
 printf '\033]2;vim\033\\' && vim && printf '\033]2;ssh\033\\'
with this tmux option fto avoid -R destroying vim.
bind-key r if-shell -F '#{m:*vi*,#{pane_title}}' '' { send-keys -R; clear-history }


Very long mentions in notification area are cut off with no indicator showing there is more text when opened

If you receive a long reply and go to the notifications section to read it theres a chance you reply before reading the full post because the posts are cur off with no indication that there is more text to be read. Maybe adding a ... or a "read more" icon/button like on the home feed would be helpful.
Device:
iphone 10S

Should be fixed now in prod 🙇♂


Add task deduplication support

Adds support for decontamination of pretraining dataset with downstream tasks.

@dimapihtar should be good to go know, please review when you get the chance. Feel free to ping me with any questions.


Added queue in java

@viveksdf :: It would be great if you can add the description along with the issue number.
Feel free to use our contribution guidelines (https://github.com/fnplus/interview-techdev-guide/blob/master/CONTRIBUTING.md) for reference

Thanks for contributing!


Allow dumping of individual shards with arangodump

Scope & Purpose
Added --shard option to arangodump, so that dumps can be restricted to one or multiple shards only.
In addition fix an unrelated assertion failure in arangorestore when using --create-collection false and clean up an old option in arangodump.

[ ] :hankey: Bugfix (requires CHANGELOG entry)
[x] :pizza: New feature (requires CHANGELOG entry, feature documentation and release notes)
[ ] :fire: Performance improvement
[ ] :hammer: Refactoring/simplification
[x] :book: CHANGELOG entry made

Backports:

[x] No backports required

Testing & Verification

[x] The behavior in this PR was manually tested
[x] This PR adds tests that were used to verify all changes:

[x] Added new integration tests (e.g. in shell_client)

Link to Jenkins PR run:
http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/14202/

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/14205/


Integration tests failing locally, passing in CI

The following tests fail locally when running entire cucumber suite, running the individual file, and the individual test. However, they're passing in CI.
(::) failed steps (::)

undefined method `click' for nil:NilClass (NoMethodError)
./features/step_definitions/web_steps.rb:89:in `/^(?:|I )follow "([^"]*)"$/'
features/teacher_navigates_classes_using_left_pane.feature:19:in `And I follow "Student Roster"'

undefined method `click' for nil:NilClass (NoMethodError)
./features/step_definitions/web_steps.rb:89:in `/^(?:|I )follow "([^"]*)"$/'
features/teacher_navigates_classes_using_left_pane.feature:25:in `And I follow "Class Setup"'

undefined method `click' for nil:NilClass (NoMethodError)
./features/step_definitions/web_steps.rb:89:in `/^(?:|I )follow "([^"]*)"$/'
features/teacher_navigates_classes_using_left_pane.feature:31:in `And I follow "Assignments"'

Failing Scenarios:
cucumber features/teacher_navigates_classes_using_left_pane.feature:17 # Scenario: Teacher visits Student Roster page
cucumber features/teacher_navigates_classes_using_left_pane.feature:23 # Scenario: Teacher visits Class Setup page
cucumber features/teacher_navigates_classes_using_left_pane.feature:29 # Scenario: Teacher visits Materials page

The navigation those tests are using is about to be replaced: https://github.com/concord-consortium/rigse/pull/524 So you might want to check out that branch and see if they are still failing.


Relative links rendered with incorrect directory path

Expected behavior
When adding a link with a relative path, I expect it to render display and link to the directory path I indicated.
[/v3/orders/{order_id}/transactions](/api/v3/openapi-v3.html#gettransactions/) should provide https://domain.com/api/v3/openapi-v3.html#gettransactions.
Actual behavior
Links that contain .html instead of a relative directory path strip the part of the url so the link for [/v3/orders/{order_id}/transactions](/api/v3/openapi-v3.html#gettransactions/) becomes https://domain.com/v3/openapi-v3.html#gettransactions.
Steps to reproduce
This above behavior has been seen with middleman with Slate.
Attempts to troubleshoot have included adding a trailing slash and removing it or changing the placement.

[/v3/orders/{order_id}/transactions](/api/v3/openapi-v3.html/#gettransactions)
[/v3/orders/{order_id}/transactions](/api/v3/openapi-v3.html#gettransactions)
[/v3/orders/{order_id}/transactions](/api/v3/openapi-v3.html#gettransactions/)

Middleman config file:
# Markdown
set :markdown_engine, :redcarpet
set :markdown,
    fenced_code_blocks: true,
    smartypants: true,
    disable_indented_code_blocks: true,
    prettify: true,
    tables: true,
    with_toc_data: true,
    no_intra_emphasis: true

# Sitemap
page "/sitemap.xml", :layout => false

# Assets
set :css_dir, 'stylesheets'
set :js_dir, 'javascripts'
set :images_dir, 'images'
set :fonts_dir, 'fonts'

# Activate the syntax highlighter
activate :syntax

activate :autoprefixer do |config|
  config.browsers = ['last 2 version', 'Firefox ESR']
  config.cascade  = false
  config.inline   = true
end

# Github pages require relative links
activate :relative_assets
set :relative_links, true

# Build Configuration
configure :build do
  # If you're having trouble with Middleman hanging, commenting
  # out the following two lines has been known to help
  activate :minify_css
  activate :minify_javascript
  # activate :relative_assets
  # activate :asset_hash
  # activate :gzip
end

helpers do
  require './lib/toc_data.rb'
end

Hello @PreciselyAlyss,
I tried to create a new Slate project with your build and inserting this link:
[/v3/orders/{order_id}/transactions](/api/v3/openapi-v3.html#gettransactions/)

But it generates a link to localhost:4567/api/v3/openapi-v3.html#gettransactions/. Also, there is no ./lib/toc_data.rb file so I guess that's a custom file that you've defined but the problem may come from here.
Could you please isolate an example Slate application or Redcarpet reproduction script to showcase the problem ? I don't think that's a Redcarpet problem ; this line looks really suspicious but let's wait, I may be wrong.
Thanks for reporting anyway ! :-)

thanks

Hello there,
As you might have noticed, this project has pretty limited resources. If you are still experiencing this issue, please do provide a reproduction snippet so we can isolate the problem and reopen this ticket if needed.
I'm giving this a close ; thanks.


validation for GROUP BY is incorrect in PostgreSQL timescaledb

Version
Other
What happened?
in latest version: v1.11.0
ref pr: #1285
Relevant log output
# package gen
query.sql:25:10: column reference "bucket" not found

Database schema
CREATE TABLE IF NOT EXISTS weather_metrics
(
    time             TIMESTAMP WITHOUT TIME ZONE NOT NULL,
    timezone_shift   INT                         NULL,
    city_name        TEXT                        NULL,
    temp_c           DOUBLE PRECISION            NULL,
    feels_like_c     DOUBLE PRECISION            NULL,
    temp_min_c       DOUBLE PRECISION            NULL,
    temp_max_c       DOUBLE PRECISION            NULL,
    pressure_hpa     DOUBLE PRECISION            NULL,
    humidity_percent DOUBLE PRECISION            NULL,
    wind_speed_ms    DOUBLE PRECISION            NULL,
    wind_deg         INT                         NULL,
    rain_1h_mm       DOUBLE PRECISION            NULL,
    rain_3h_mm       DOUBLE PRECISION            NULL,
    snow_1h_mm       DOUBLE PRECISION            NULL,
    snow_3h_mm       DOUBLE PRECISION            NULL,
    clouds_percent   INT                         NULL,
    weather_type_id  INT                         NULL
);

SQL queries
SELECT time_bucket('15 days', time) AS bucket, city_name, AVG(temp_c)
FROM weather_metrics
WHERE time > NOW() - (6 * INTERVAL '1 month')
GROUP BY bucket, city_name
ORDER BY bucket DESC;

Configuration
version: "1"
packages:
  - name: "gen"
    path: "gen"
    queries: "query.sql"
    schema: "query.sql"
    engine: "postgresql"

Playground URL
https://play.sqlc.dev/p/875234d4bd68eeabdb60d76859ea6597ed3c7f26607986a4c77eb86336a2c3aa
What operating system are you using?
macOS
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go

This is also breaking us.

@kyleconroy  @timstudd


Update README.md to correct the semantic versioning

Co-authored-by: KyleBoudewyn<EMAIL_ADDRESS>Co-authored-by: Lzzhengyi<EMAIL_ADDRESS>Co-authored-by: KCrandall6<EMAIL_ADDRESS>Co-authored-by: tmow12<EMAIL_ADDRESS>Co-authored-by: AaronJGaut<EMAIL_ADDRESS>

Redundant with another push


the lvr and lvg data are inconsistent

hwameistor version
[root@controller-node-1 ~]# helm list -n hwameistor
NAME               	NAMESPACE 	REVISION	UPDATED                                	STATUS  	CHART                      	APP VERSION
hwameistor-operator	hwameistor	5       	2023-11-14 12:58:26.176442229 +0000 UTC	deployed	hwameistor-operator-v0.13.1	v0.13.1

the same pv pvc-09df41ba-9079-48d4-bf4d-bc38a3407405 ,lvg shows node [controller-node-1,worker-node-2], lvr shows node  [controller-node-1,worker-node-1]
[root@controller-node-1 ~]# kubectl get lvg 2d9af1be-6b05-4d0f-af4e-ea44c42ead56 -o yaml
apiVersion: hwameistor.io/v1alpha1
kind: LocalVolumeGroup
metadata:
  creationTimestamp: "2023-11-28T01:50:58Z"
  finalizers:
  - hwameistor.io/localvolumegroup-protection
  generation: 4
  name: 2d9af1be-6b05-4d0f-af4e-ea44c42ead56
  resourceVersion: "9880867"
  uid: eb929d90-3d3d-49f2-8490-305443c440c9
spec:
  accessibility:
    nodes:
    - controller-node-1
    - worker-node-2
    regions:
    - default
    zones:
    - default
  namespace: default
  volumes:
  - localvolume: pvc-09df41ba-9079-48d4-bf4d-bc38a3407405
    pvc: tk-c-tk-0

[root@controller-node-1 ~]# kubectl get lvr
NAME                                              CAPACITY      NODE                STATE         SYNCED   DEVICE                                                                  AGE
pvc-09df41ba-9079-48d4-bf4d-bc38a3407405-22kf6n<PHONE_NUMBER>    worker-node-1       Ready         true     /dev/LocalStorage_PoolHDD/pvc-09df41ba-9079-48d4-bf4d-bc38a3407405      13m
pvc-09df41ba-9079-48d4-bf4d-bc38a3407405-xkmjqh<PHONE_NUMBER>    controller-node-1   Ready         true     /dev/LocalStorage_PoolHDD/pvc-09df41ba-9079-48d4-bf4d-bc38a3407405      5m31s

I suggest adding a sync logic when the LocalVolume was updated. Maybe it is efficient to make the LocalVolumeGroup access node same as the LocalVolumeReplicas node

adding a sync logic for LocalVolumeGroup when the LocalVolume was updated

this should be added already at: https://github.com/hwameistor/hwameistor/blob/d2bc8904d7ce020571a470b38e9e7d24ce46b2fc/pkg/local-storage/member/controller/volumegroup/manager.go#L93-L97
this makes accessability in volumegroup keep same with associated volume.

adding a sync logic for LocalVolumeGroup when the LocalVolume was updated

this should be added already at:
https://github.com/hwameistor/hwameistor/blob/d2bc8904d7ce020571a470b38e9e7d24ce46b2fc/pkg/local-storage/member/controller/volumegroup/manager.go#L93-L97
this makes accessability in volumegroup keep same with associated volume.

But if the LocalVolume access node is updated when len(lvg.Spec.Accessibility.Nodes) > 0, the sync will be broken.

why say so, in my opinion, this is the common case when ha-volume is created.
can you paste the source to explain this?

https://github.com/hwameistor/hwameistor/blob/d2bc8904d7ce020571a470b38e9e7d24ce46b2fc/pkg/local-storage/member/controller/volumegroup/manager.go#L576-L581

adding a sync logic for LocalVolumeGroup when the LocalVolume was updated

this should be added already at:
https://github.com/hwameistor/hwameistor/blob/d2bc8904d7ce020571a470b38e9e7d24ce46b2fc/pkg/local-storage/member/controller/volumegroup/manager.go#L93-L97
this makes accessability in volumegroup keep same with associated volume.

But if the LocalVolume access node is updated when len(lvg.Spec.Accessibility.Nodes) > 0, the sync will be broken.

why say so, in my opinion, this is the common case when ha-volume is created.
can you paste the source to explain this?

It found a matched LocalVolumeName in lvg,but if len(lvg.Spec.Accessibility.Nodes) > 0,the lvg access node will not be updated

adding a sync logic for LocalVolumeGroup when the LocalVolume was updated

this should be added already at:
https://github.com/hwameistor/hwameistor/blob/d2bc8904d7ce020571a470b38e9e7d24ce46b2fc/pkg/local-storage/member/controller/volumegroup/manager.go#L93-L97
this makes accessability in volumegroup keep same with associated volume.

But if the LocalVolume access node is updated when len(lvg.Spec.Accessibility.Nodes) > 0, the sync will be broken.

why say so, in my opinion, this is the common case when ha-volume is created.
can you paste the source to explain this?

https://github.com/hwameistor/hwameistor/blob/d2bc8904d7ce020571a470b38e9e7d24ce46b2fc/pkg/local-storage/member/controller/volumegroup/manager.go#L576-L581
It found a matched LocalVolumeName in lvg,but if len(lvg.Spec.Accessibility.Nodes) > 0,the lvg access node will not be updated

adding a sync logic for LocalVolumeGroup when the LocalVolume was updated

this should be added already at:
https://github.com/hwameistor/hwameistor/blob/d2bc8904d7ce020571a470b38e9e7d24ce46b2fc/pkg/local-storage/member/controller/volumegroup/manager.go#L93-L97
this makes accessability in volumegroup keep same with associated volume.

But if the LocalVolume access node is updated when len(lvg.Spec.Accessibility.Nodes) > 0, the sync will be broken.

why say so, in my opinion, this is the common case when ha-volume is created.
can you paste the source to explain this?

https://github.com/hwameistor/hwameistor/blob/d2bc8904d7ce020571a470b38e9e7d24ce46b2fc/pkg/local-storage/member/controller/volumegroup/manager.go#L576-L581
It found a matched LocalVolumeName in lvg,but if len(lvg.Spec.Accessibility.Nodes) > 0,the lvg access node will not be updated

yes, this may cause a problem when volume accessability updated after convert, migrate happens.
@wwwnay is there any operations like migrate or convert ever happend to this volume?

I did not perform any migrate or convert operations;
I just created an STS and stopped it after it was running successfully, intending to perform the migration operation ，then i find this issue


VSCode does not start on Ubuntu 19.10

VSCode Version:
1.42.0-insider
7c0095ee2d064033fc13184127a9adc603454729
x64

1.41.1
26076a4de974ead31f97692a0d32f90d735645c0
x64

OS Version:
NAME="Ubuntu"
VERSION="19.10 (Eoan Ermine)"

Steps to Reproduce:

Install Visual Studio Code or Visual Studio Code Insiders using any method (snap, apt install downloaded deb file)

a) Run VSCode from Dash -> empty non-responding window appears (or empty window with a top menu with no useful options in the case of Insiders)

b) Run VSCode from command line -> no window appears, only following output

$ snap run code-insiders --verbose --disable-extensions --disable-gpu --prof-s
tartup -s
(process:5584): Gtk-WARNING **: 22:19:29.528: Locale not supported by C library.
        Using the fallback 'C' locale.
FAILED to start profiling for 'main' on port '35769'
FAILED to start profiling for 'renderer' on port '35770'
FAILED to start profiling for 'extHost' on port '35771'

Does this issue occur when all extensions are disabled?: Yes
Note: I copied contents of my home directory from a WSL2 Ubuntu 18.04 distro and deleted .vscode and .vscode-server directories. Could there be another file in my home directory which could cause the problem? (Note2: I don't use WSL or WSL2 currently, my Ubuntu is standalone)
Hardware:
$ sudo lshw -short
H/W path       Device  Class          Description
=================================================
                       system         TUF Gaming FX705GM_FX705GM
/0                     bus            FX705GM
/0/0                   memory         64KiB BIOS
/0/3a                  memory         16GiB System Memory
/0/3a/0                memory         16GiB SODIMM DDR4 Synchronous 2667 MHz (0,4 ns)
/0/3a/1                memory         [empty]
/0/3a/2                memory         [empty]
/0/3a/3                memory         [empty]
/0/45                  memory         384KiB L1 cache
/0/46                  memory         1536KiB L2 cache
/0/47                  memory         9MiB L3 cache
/0/48                  processor      Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
/0/100                 bridge         8th Gen Core Processor Host Bridge/DRAM Registers
/0/100/1               bridge         Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controll
/0/100/1/0             display        GP106M [GeForce GTX 1060 Mobile]
/0/100/1/0.1           multimedia     GP106 High Definition Audio Controller
/0/100/2               display        UHD Graphics 630 (Mobile)
/0/100/4               generic        Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsy
/0/100/8               generic        Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th Gen Core Processor Ga
/0/100/12              generic        Cannon Lake PCH Thermal Controller
/0/100/14              bus            Cannon Lake PCH USB 3.1 xHCI Host Controller
/0/100/14/0    usb1    bus            xHCI Host Controller
/0/100/14/0/2          input          USB OPTICAL MOUSE
/0/100/14/0/6          input          Wireless Receiver
/0/100/14/0/b          multimedia     USB2.0 HD UVC WebCam
/0/100/14/0/e          communication  Bluetooth wireless interface
/0/100/14/1    usb2    bus            xHCI Host Controller
/0/100/14.2            memory         RAM memory
/0/100/14.3    wlo1    network        Wireless-AC 9560 [Jefferson Peak]
/0/100/15              bus            Cannon Lake PCH Serial IO I2C Controller #0
/0/100/16              communication  Cannon Lake PCH HECI Controller
/0/100/17              storage        Cannon Lake Mobile PCH SATA AHCI Controller
/0/100/1d              bridge         Cannon Lake PCH PCI Express Root Port #9
/0/100/1d/0            storage        SSDPEKNW020T8 [660p, 2TB]
/0/100/1d.4            bridge         Cannon Lake PCH PCI Express Root Port #13
/0/100/1d.4/0  enp3s0  network        RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
/0/100/1e              communication  Intel Corporation
/0/100/1f              bridge         Intel Corporation
/0/100/1f.3            multimedia     Cannon Lake PCH cAVS
/0/100/1f.4            bus            Cannon Lake PCH SMBus Controller
/0/100/1f.5            bus            Cannon Lake PCH SPI Controller
/0/1                   system         PnP device PNP0c02
/0/2                   system         PnP device PNP0b00
/0/3                   generic        PnP device INT3f0d
/0/4                   system         PnP device PNP0c02
/0/5                   system         PnP device PNP0c02
/0/6                   system         PnP device PNP0c02
/0/7                   system         PnP device PNP0c02
/0/8                   input          PnP device PNP0303
/1                     power          To Be Filled By O.E.M.

Ok, the reason was that I forgot to remove
export DISPLAY=...:0
which I used in the WSL2 .bashrc


Unexpected behavior when setting IsShareSizeScope and ShareSizeGroup

Describe the bug
I'm writing a HeaderedContentControl based control, it is designed for automatic layout of a form, and adaptively handles the display width of field area for each column under the same Panel.
Previously it was a control I wrote under WPF (xaml,code), and now after porting to Avalonia, I found that the behavior is inconsistent with that in WPF.
It seems to be caused by the logical order when calculating the layout. I can't figure out where the problem is. I hope to get help.
To Reproduce
The avalonia version control code here: (axaml,code)
Check the Preview in axaml.
NOTICE: The preview of the control in Design.PreviewWith is not exactly the same as that in the window, please copy it to the window to test the actual layout.
The behavior inGrid and StackPanel is okay, but there is something wrong in ItemsControl, set the  Grid.IsSharedSizeScope="True" on ItemsControl will works (it's existed in code, try remove it and check the behavior.)
Expected behavior
The layout should be update automatically after the panel is loaded, and it doesn't need to set IsSharedSizeScope outside externally.
Screenshots

Desktop (please complete the following information):

OS: Windows 11
Version 0.10.18

Additional context
Some control behavior in Design.PreviewWith display in designer is not same in window, may need to check.

In Avalonia we have visual and logical parent. These are similar, but not the same. You can use DevTools to check both trees. I think you are looking for the logical parent. In case of ItemsControl I think the type of parent you are looking for is ItemsControl and not Panel.
It works for me if I change your code like this:
private AvaloniaObject? GetPanelParent(StyledElement control)
{
    return this.GetLogicalAncestors().FirstOrDefault(x => x is Panel or ItemsControl) as AvaloniaObject;

    // Note this works also, but I shortened for readability.

    // StyledElement? parent = control;
    // do
    // {
    //     if (parent is Panel or ItemsControl)
    //         return parent;
    //
    //     parent = parent.Parent;
    // } while (parent != null);
    //
    // return null;
}

Result:

I don't think it is an actual bug, so I'll convert this into a Q&A. I hope you're fine with this.


Add regionprops function

Hi @jluethi ,
here comes the regionprops function we discussed on image.sc. You will see it's just another py-file that hooks a function into napari. Let me know if I should add more documentation or anything!
Looking forward to hearing what you think!
Best,
Robert

Hey @haesleinhuepf
Looks cool, I'll test it in the next days :) Thanks a lot for the contribution!

Codecov Report

Merging #4 (e2479b8) into master (b3b13dd) will decrease coverage by 9.87%.
The diff coverage is 25.92%.

@@            Coverage Diff             @@
##           master       #4      +/-   ##
==========================================
- Coverage   55.55%   45.67%   -9.88%
==========================================
  Files           3        4       +1
  Lines         108      162      +54
==========================================
+ Hits           60       74      +14
- Misses         48       88      +40

Impacted Files
Coverage Δ

napari_feature_visualization/_regionprops.py
24.52% <24.52%> (ø)

napari_feature_visualization/__init__.py
66.66% <100.00%> (+6.66%)
:arrow_up:

Continue to review full report at Codecov.

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