Add gradient calculation for the covariance between points in GPyModelWrapper

This change adds a method get_covariance_between_points_gradients to the GPyModelWrapper to facilitate obtaining the gradients of the corresponding get_covariance_between_points method implemented in the wrapper.
These gradients are useful when optimising any batch acquisition function that relies on the covariance between batch points (such as Multi-point Expected Improvement) sequentially, i.e. when optimising with respect to one element of the batch only.
A second change introduced is vectorization of the gradient calculation for full covariance in the GPyModelWrapper class. Replacing the for-loop with numpy array operations results in ~50% speed-up for larger batches of points (> 50).
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #347 (49f5389) into master (dc43cb5) will decrease coverage by 0.29%.
The diff coverage is 48.00%.

@@            Coverage Diff             @@
##           master     #347      +/-   ##
==========================================
- Coverage   89.42%   89.13%   -0.30%
==========================================
  Files         123      123
  Lines        4049     4059      +10
  Branches      460      459       -1
==========================================
- Hits         3621     3618       -3
- Misses        332      345      +13
  Partials       96       96

Impacted Files
Coverage Δ

emukit/model_wrappers/gpy_model_wrappers.py
75.67% <48.00%> (-7.66%)
:arrow_down:

Continue to review full report at Codecov.

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

To answer the two points:

This PR introduces a new method that isn't declared in any model interfaces. That's backwards from Emukit's point of view. Are you planning to use this method anywhere? Perhaps create a new acquisition? If so, let's define an interface, or augment an existing one if that makes more sense.
This is indeed intended for an implementation of a new acquisition. It comes in handy whenever optimizing any of many batch acquisition functions sequentially – i.e. by selecting optimising batch acquisition with respect to one point in the batch at a time.  Currently, get_covariance_between_points is part of the IEntropySearchModel interface, so maybe something like IDifferentiableEntropySeachModel would make sense?
Both changes carry some pretty heavy matrix algebra, which is really hard to follow. Can you please add some comments throughout, to clarify what's going on? Thanks!
Fair point, I'll try and make it easier to follow.

Codecov Report

Merging #347 (d34de42) into main (3ea2581) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #347      +/-   ##
==========================================
+ Coverage   89.44%   89.45%   +0.01%
==========================================
  Files         123      123
  Lines        4072     4077       +5
  Branches      462      461       -1
==========================================
+ Hits         3642     3647       +5
  Misses        334      334
  Partials       96       96

Impacted Files
Coverage Δ

emukit/model_wrappers/gpy_model_wrappers.py
83.67% <100.00%> (+0.57%)
: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 3ea2581...d34de42. Read the comment docs.

What about the interface discussion? Is this resolved? Where exactly is the new method required in Emukit, i.e., is there an acquisition function that requires the method?

Hey @mmahsereci , good to hear from you again!
@BrunoKM promised us an acquisition later down the line. But that's a good point that I forgot all about - the function shall be there as an implementation of some interface. Thanks for catching!

That sounds great, thanks for catching me up @apaleyes! And, yes I am back now it seems. :)

@apaleyes sorry, resolving the interfaces has been on the stack of my todos for the past couple of weeks, I will get around to it soon.
Yes, this is for a new acquisition that is hopefully still in the pipeline :)

@BrunoKM are you still planning to work on this PR (and the follow up of it)? Or shall we just close it?

Thanks for the follow-up @apaleyes!
I'm still happy to finish off this PR (if I don't do it before the end-of-year, feel free to close it).
I've been a bit on the fence about whether to push the new acquisition soon afterwards. It's one with particularly tricky gradients: i.e. manually writing a gradient function for it in pure NumPy turned out to be a pain. The current implementation internally uses either jax/pytorch to automatically get the gradient function. I'd assume adding these dependencies is not in line with the philosophy of the rest of the EmuKit repo.
I'm still hoping I'll be able to add the manual gradients later down the line and push the new acquisition function, but due to limited time, I can't say how soon that might be.

I added an interface that specifies the covariance between points derivative method. Let me know your thoughts!
As for the new acquisition function, I think I'll be able to add it without an evaluate_with_gradients method relatively soon. An update with evaluate_with_gradients could follow later down the line.

I added an interface that specifies the covariance between points derivative method. Let me know your thoughts!
As for the new acquisition function, I think I'll be able to add it without an evaluate_with_gradients method relatively soon. An update with evaluate_with_gradients could follow later down the line.


Salt is not packed for NSEC3 records

#392 was meant to stop packing the salt from NSEC3/NSEC3PARAM records if the salt was empty (i.e. had the - value) but instead just completely stopped packing salts. This causes signature verification failure for signatures of NSEC3/NSEC3PARAM records.

This also came up in #426.


[SPARK-8140] [MLlib] Remove construct to get weights in StreamingLinearAlgorithm

ping @srowen

Merged build triggered.

Merged build started.

Test build #34499 has started for   PR 6720 at commit 3a07de5.

Yes LGTM

Test build #34499 has finished for   PR 6720 at commit 3a07de5.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Yes, LGTM as a follow-up simplification.


Fix Kinesis resharding issues

This PR makes several adjustments to areas related to Kinesis resharding:

The Kinesis supervisor now filters out closed shards before sending partition/sequence num mappings in task specs. Previously this would cause tasks to fail because the supervisor does not include closed shards in the setEndOffsets call.
When a shard expires, the supervisor will now remove the expired shard from metadata storage and the partitionGroups.
The logic for determining shard ID -> task group mappings is changed. Previously this was done with (index of shard ID in shard list % task count). This fluid mapping caused issues with the same shard being assigned to multiple task groups when expired shards were removed from the shard list. This now attempts to parse the shard number from the shard ID, instead of using the list position. If the parse attempt fails, the number % task count will be a hash of the shard ID instead.
(Unrelated to sharding) Fixes a bug in SeekableStreamIndexTaskRunner with the publishing sequences: When iterating through the list of sequences to publish, it was possible for the publish future to complete before the task was done iterating through the sequence list; this would cause sequences to be skipped, as the publish future removes items from the sequence list. This block now snapshots the sequence list before publishing them.
Adds shard split/merge test to Kinesis supervisor tests, adds end-of-shard handling test to Kinesis task test

This PR has:

[x] been self-reviewed.

[x] using the concurrency checklist

[x] added documentation for new or modified features or behaviors.
[x] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
[x] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
[x] added unit tests or modified existing tests to cover new code paths.
[x] been tested in a test Druid cluster.

Marking WIP, will add more documentation around the code areas changed

Adds shard split/merge test to Kinesis supervisor tests, adds end-of-shard handling test to Kinesis task test

Nice.

@gianm Updated to reflect PR comments, I also renamed some methods so that SeekableStreamSupervisor refers only to "partitions" instead of shards, and added a supportsPartitionExpiration() method

@jon-wei A minor yet real style point reported by CI —
[ERROR] /home/travis/build/apache/incubator-druid/extensions-core/kinesis-indexing-service/src/test/java/org/apache/druid/indexing/kinesis/KinesisIndexTaskTest.java:2621:5: ';' is preceded with whitespace. [NoWhitespaceBefore]

Updated the patch to only use shard ID hashing for determining task group mappings


Convex-Monotone interpolation gives bad results

Has somebody tested the Convex-Monotone interpolation looking at the data points vs the interpolant?
I find that the interpolant does not even go through the data points. I'm wrapping around it in a simple way from my code, and the wrapping code is the same as for the Cubic Spline but the Cubic Spline works fine. I can see this problem even with very simple data points from a polynomial.

Hi sebgur , can you write a test case to exploit this bug  ?

Good idea, I'll unwrap my code and write an MWE. If the problem is still there in the MWE, I'll post it.

Here is a minimal piece of code that reproduces what I think is wrong. Or I might be using QLNet incorrectly, so if I do please let me know what I'm doing wrong.
The code creates sample points (xList, yList), puts them in the interpolator, and then uses the interpolator to calculate the interpolant at the original points xList. It should be identical to yList but it's not. You can comment in the LinearInterpolation instead, which works as expected.
Program.txt

ConvexMonotone is tested on T_PiecewiseyieldCurve.cs test class , is used to bootstrap curve and works as expected , I'm not sure about your test , still investigating . Btw both library give same results.

Thanks. I've seen the test code when I was trying to check if I'm using the code incorrectly, but I'm not familiar enough with quantlib to see in details what it tests. Would that test fail if the interpolation missed its original points?
-----Original Message-----
From: "Andrea Maggiulli"<EMAIL_ADDRESS>Sent: 04/02/2016 10:06
To: "amaggiulli/qlnet"<EMAIL_ADDRESS>Cc: "sebgur"<EMAIL_ADDRESS>Subject: Re: [qlnet] Convex-Monotone interpolation gives bad results (#73)
ConvexMonotone is tested on T_PiecewiseyieldCurve.cs test class , is used to bootstrap curve and works as expected , I'm not sure about your test , still investigating . Btw both library give same results.
—
Reply to this email directly or view it on GitHub.

I guess a good test will be to compare the QuantLib implementation with the results obtained from the example VBA code available on the interpolation author's website http://finmod.co.za/Monotone%20Convex%20Interpolation.xls I'll do this when I get a chance. QuantLib may be wrong, although the source code comments say it is an enhanced version of the original so this might explain any differences.

Many thanks for the link, I'll take a look. Maybe I'll translate in C# and see what happens.
-----Original Message-----
From: "jbtheming"<EMAIL_ADDRESS>Sent: 18/02/2016 08:44
To: "amaggiulli/qlnet"<EMAIL_ADDRESS>Cc: "sebgur"<EMAIL_ADDRESS>Subject: Re: [qlnet] Convex-Monotone interpolation gives bad results (#73)
I guess a good test will be to compare the QuantLib implementation with the results obtained from the example VBA code available on the interpolation author's website http://finmod.co.za/Monotone Convex Interpolation.xls I'll do this when I get a chance. QuantLib may be wrong, although the source code comments say it is an enhanced version of the original so this might explain any differences.
—
Reply to this email directly or view it on GitHub.

If any good come share with us :)


Sidebar is hidden after components update

So I've updated all the components to the latest versions and now the sidebar is hidden at login screen because lg-flex class is not overriding the hidden
Same happened to aside and the profile picture in the dashboard

Looks like new Uploadthing css styles mess up the tailwind styles

hey @xumix drop a screenshot for better understanding :)

Looks like new Uploadthing css styles mess up the tailwind styles, I've removed the import<EMAIL_ADDRESS>line and everything works now

Thanks for this! I completely got rid of UploadThing, and this was missing from my sight.


sfDoctrineRecord::getDateTimeObject() returns current time when value is null

Seems good for me. After the little CS fix, can you squash your commits in only one?
Ping @jeromemacias & @j0k3r for validation.

:+1:


KILabel lead to a wrong index for didSelectRowAtIndexPath

lead a wrong index when select between cells。
KILabel which on a tableviewCell contentView lead to a wrong index for didSelectRowAtIndexPath

It was already explained in other ticket. There is a typo in touchesEnded:withEvent method.
You need to replace line 686:
[super touchesBegan:touches withEvent:event];
with:
[super touchesEnded:touches withEvent:event];
I have also moved [super touchesEnded:touches withEvent:event]; call from line 667 to line 667.
The final touchesEnded:withEvent method should look like this:
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
    // If the user dragged their finger we ignore the touch
    if (_isTouchMoved)
    {
        self.selectedRange = NSMakeRange(0, 0);
        [super touchesEnded:touches withEvent:event];
        return;
    }

    // Get the info for the touched link if there is one
    NSDictionary *touchedLink;
    CGPoint touchLocation = [[touches anyObject] locationInView:self];
    touchedLink = [self linkAtPoint:touchLocation];

    if (touchedLink)
    {
        NSRange range = [[touchedLink objectForKey:KILabelRangeKey] rangeValue];
        NSString *touchedSubstring = [touchedLink objectForKey:KILabelLinkKey];
        KILinkType linkType = (KILinkType)[[touchedLink objectForKey:KILabelLinkTypeKey] intValue];

        [self receivedActionForLinkType:linkType string:touchedSubstring range:range];
    }
    else
    {
        [super touchesEnded:touches withEvent:event];
    }

    self.selectedRange = NSMakeRange(0, 0);
}

Thanks for your reply !
Best Regards !

在 2016年1月21日，下午9:42，Damian Wojtczak<EMAIL_ADDRESS>写道：
It was already explained in other ticket. There is a typo in touchesEnded:withEvent method.
You need to replace line 686:
[super touchesBegan:touches withEvent:event];
with:
[super touchesEnded:touches withEvent:event];
I have also moved [super touchesEnded:touches withEvent:event]; call from line 667 to line 667.
The final touchesEnded:withEvent method should look like this:

(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
// If the user dragged their finger we ignore the touch
if (_isTouchMoved)
{
self.selectedRange = NSMakeRange(0, 0);
[super touchesEnded:touches withEvent:event];
return;
}
// Get the info for the touched link if there is one
NSDictionary *touchedLink;
CGPoint touchLocation = [[touches anyObject] locationInView:self];
touchedLink = [self linkAtPoint:touchLocation];
if (touchedLink)
{
NSRange range = [[touchedLink objectForKey:KILabelRangeKey] rangeValue];
NSString *touchedSubstring = [touchedLink objectForKey:KILabelLinkKey];
KILinkType linkType = (KILinkType)[[touchedLink objectForKey:KILabelLinkTypeKey] intValue];
  [self receivedActionForLinkType:linkType string:touchedSubstring range:range];

}
else
{
[super touchesEnded:touches withEvent:event];
}
self.selectedRange = NSMakeRange(0, 0);
}
—
Reply to this email directly or view it on GitHub https://github.com/Krelborn/KILabel/issues/57#issuecomment-173573262.


For the includeAll tag, "Not a valid resource entry" is written

Description
If resources are added via includeAll, then we get an invalid resource error.
If the file is specified explicitly, then it is processed correctly
To Reproduce
Liquibase: 3.8.7
db.changelog-master.xml:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
						 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
						 xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
<!--	<include file="2020/03/08_1034.xml" relativeToChangelogFile="true"/>-->
	<includeAll path="2020/**" relativeToChangelogFile="true"/>
</databaseChangeLog>

2020-03-09 11:38:14.766  INFO 80831 --- [           main] l.lockservice.StandardLockService        : Successfully acquired change log lock
2020-03-09 11:38:24.883  WARN 80831 --- [           main] i.s.SpringLiquibase$SpringResourceOpener : Not a valid resource entry: jar:file:/CUT_PATH/db.jar!/db/changelog/2020/
2020-03-09 11:38:24.895  WARN 80831 --- [           main] i.s.SpringLiquibase$SpringResourceOpener : Not a valid resource entry: jar:file:/CUT_PATH/db.jar!/db/changelog/2020/03/
2020-03-09 11:38:24.902  WARN 80831 --- [           main] i.s.SpringLiquibase$SpringResourceOpener : Not a valid resource entry: jar:file:/CUT_PATH/db.jar!/db/changelog/2020/03/08_1034.xml

The problem is reproduced only on JDK 13 - there is no problem on JDK 1.8
JDK 1.8:
2020-03-09 12:12:44.987  INFO 80889 --- [           main] l.lockservice.StandardLockService        : Successfully acquired change log lock
2020-03-09 12:12:47.979  INFO 80889 --- [           main] liquibase.changelog.DatabaseChangeLog    : Reading resource: db/changelog/2020/
2020-03-09 12:12:47.980  INFO 80889 --- [           main] liquibase.changelog.DatabaseChangeLog    : Reading resource: db/changelog/2020/03/
2020-03-09 12:12:47.980  INFO 80889 --- [           main] liquibase.changelog.DatabaseChangeLog    : Reading resource: db/changelog/2020/03/08_1034.xml

┆Issue is synchronized with this Jira Bug by Unito

I faced a similar problem while running integration tests. I'm using Liquibase 3.8.8 and Java 11.
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
    <includeAll path="classpath*:db/6.7.0"/>
    <includeAll path="classpath*:db/6.8.0"/>
    <includeAll path="classpath*:db/6.9.0"/>
    <includeAll path="classpath*:db/6.10.0"/>
    <includeAll path="classpath*:db/6.11.0"/>
    <includeAll path="classpath*:db/6.12.0"/>
</databaseChangeLog>

Here is a workaround for this:
        <profile>
            <id>db-integration-tests</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-dependency-plugin</artifactId>
                        <version>3.1.2</version>
                        <executions>
                            <execution>
                                <id>unpack-dependencies</id>
                                <phase>process-classes</phase>
                                <goals>
                                    <goal>unpack-dependencies</goal>
                                </goals>
                                <configuration>
                                    <includeGroupIds>your.groupId</includeGroupIds>
                                    <includeTypes>jar</includeTypes>
                                    <includes>**/*changelog.xml</includes>
                                    <excludeTransitive>true</excludeTransitive>
                                    <outputDirectory>${project.build.outputDirectory}</outputDirectory>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

This way the the changelog files in dependant module shall be in the "target/classes" folder which Liquibase will happily find and execute.

@sskjames  Thanks for updating the issue with the workaround or alternative configuration.  @BorzdeG will that change solve your issue as well with JDK 13?

@sskjames @BorzdeG We made changes around the file resource lookup in 4.0.  Can you please try without workarounds in the 4.0 beta version?

@molivasdat I have migrated from Spring Boot to Ktor right now, but I can make a test case for verification. How to get version 4.0?

@BorzdeG I am not as familiar with ktor but you can download and run it locally from www.liquibase.org/download.
The mvn tag version is 4.0.0-beta1

Turn reproduce bug in Example - re-open ticket


Failure to start in Windows WSL2

Cube-in-a-box docker-compose up fails on WSL2. See logs below.
Building jupyter
[+] Building 30.7s (11/15)
 => [internal] load build definition from Dockerfile                                                                                0.3s
 => => transferring dockerfile: 38B                                                                                0.3s
 => [internal] load .dockerignore                                                                                0.3s
 => => transferring context: 34B                                                                                0.2s
 => [internal] load metadata for docker.io/opendatacube/geobase:runner-3.0.4                                                                                4.7s
 => [internal] load metadata for docker.io/opendatacube/geobase:wheels-3.0.4                                                                                4.5s
 => [env_builder 1/4] FROM docker.io/opendatacube/geobase:wheels-3.0.4@sha256:4a8479bc427aecfb0a3fb52e95dc0edbf84dde9151347bc693b64a2ad4faa8ef                                                      0.0s
 => [internal] load build context                                                                                0.1s
 => => transferring context: 38B                                                                                0.1s
 => CACHED [stage-1 1/6] FROM docker.io/opendatacube/geobase:runner-3.0.4@sha256:544992c5bf60dcf2c290088c4abdc8ee5c4e4aadb6c10c7aafadebac118e5db1                                                   0.0s
 => CACHED [env_builder 2/4] RUN mkdir -p /conf                                                                                0.0s
 => CACHED [env_builder 3/4] COPY requirements.txt /conf/                                                                                0.0s
 => CACHED [env_builder 4/4] RUN env-build-tool new /conf/requirements.txt /env /wheels                                                                                0.0s
 => ERROR [stage-1 2/6] COPY --chown=1000:100 --from=env_builder                                                                                25.3s
------
 > [stage-1 2/6] COPY --chown=1000:100 --from=env_builder  :
------
cannot copy to non-directory: /var/lib/docker/overlay2/0liqdipk735zo73mh1rca6yqw/merged/usr/local/man
ERROR: Service 'jupyter' failed to build

Presumably due to path issues / symlinks.

Hey @whatnick  Any progress on this?

This before that copy "fixed" problem for me
RUN rm -rf /usr/local/man

Same issue on MacOS. Suggestion from @tahvane1 worked for me.


Create Omeda+IdentityX package w/rapid identify

Allows for “rapid identification” of an IdentityX user with Omeda. Once identified, the Omeda IDs are added to the IdentityX user as external entity IDs. Both the “standard” and “encrypted” IDs are applied.

 Omeda integration


Feature request: Open directly from lockscreen

I have Cuppa as a shortcut on my android lockscreen.
Currently you have to unlock the device when the shortcut is pressed. It would be great to not have to do so, making it much easier to start the timer.
This appears to be a flag set on the activity. (FLAG_SHOW_WHEN_LOCKED)

Hello, and thanks for your suggestion!
If understand correctly, you've been able to add a shortcut to Cuppa on your lock screen? I'm not familiar with this functionality -- and my Pixel phone can't do this -- but it sounds super useful, and I'd like to try to make Cuppa work better in that context. I did a little research and it seems some phone manufacturers have added similar functionality to their custom flavors of Android. For example, Samsung lets Galaxy users add custom lock screen shortcuts, per this article.
Since lock screen app shortcuts are not supported in stock Android, could you tell me what device you are using and what version of Android? That will help me investigate if there are any options.
Also, where did you find info about the FLAG_SHOW_WHEN_LOCKED flag on the app activity? This flag was deprecated with Android 8.1 (reference) and I am unsure if the new method will have the same effect.

There have been some rumors that Google may add custom lock screen shortcut functionality to Android 14, so I'm going to wait and see what happens there.
In the meantime, @kennioje, can you confirm what device and Android version you're using?

Today, I was able to experiment with adding FLAG_SHOW_WHEN_LOCKED to Cuppa, along with the FLAG_DISMISS_KEYGUARD which I found in some discussions of lock screen functionality. I tested Cuppa on a Galaxy S23 emulator's lock screen, with each flag individually and also with the combination of both flags. Adding these flags does not allow Cuppa to be opened from the lock screen without unlocking the device. Cuppa can be added as a shortcut but it is always in the "requires unlock" category. I scoured the internet but I cannot find any documentation from Samsung about giving developers the ability to override this setting. I believe it is not possible (probably for security reasons, to prevent users from bypassing device locks).
I've also done some more research on the lock screen functionality that will be added with Android 14, and it turns out that users will not be able to add any app as a shortcut -- Android 14 will limit it to certain system apps/functions. We won't have the ability to add a lock screen shortcut for Cuppa.
I am closing this issue because I think it is impossible to achieve the requested behavior.


OpenBSD:  LuaSnip & telescope-fzf-native.nvim fail to build and install

Describe the bug
LuaSnip and telescope-fzf-native fail to build when making use of kickstart.nvim on OpenBSD.
To Reproduce
$ uname -a
OpenBSD foo.example.com 7.5 GENERIC.MP#46 amd64
$ git clone https://github.com/nvim-lua/kickstart.nvim ~/.config/nvim
Cloning into '/home/neovim/.config/nvim'...
remote: Enumerating objects: 833, done.
remote: Counting objects: 100% (21/21), done.
remote: Compressing objects: 100% (18/18), done.
Receiving objects: 100% (833/833), 387.38 KiB | 2.02 MiB/s, done.
remote: Total 833 (delta 8), reused 10 (delta 3), pack-reused 812
Resolving deltas: 100% (414/414), done.

$ nvim
[installation continues inside neovim]

             Failed (2)
               ● LuaSnip 27.3ms ✔ build     ■■ build failed
                   *** Parse error in /home/neovim/.local/share/nvim/lazy/LuaSnip: Missing dependency
                   operator (Makefile:37)
                   *** Parse error: Need an operator in 'endif' (Makefile:42)
               ● telescope-fzf-native.nvim 0.17ms ✔ build     ■■ build failed
                   *** Parse error in /home/neovim/.local/share/nvim/lazy/telescope-fzf-native.nvim:
                   Missing dependency operator (Makefile:3)
                   *** Parse error: Missing dependency operator (Makefile:6)
                   *** Parse error: Need an operator in 'else' (Makefile:10)
                   *** Parse error: Need an operator in 'endif' (Makefile:13)
                   *** Parse error: Need an operator in 'else' (Makefile:14)
                   *** Parse error: Need an operator in 'endif' (Makefile:18)

             Installed (21)
               ● cmp-nvim-lsp 0.17ms 󰢱 cmp_nvim_lsp  nvim-lspconfig     ■ already up to date
               ○ cmp-path  nvim-cmp      ■ already up to date
               ○ cmp_luasnip  nvim-cmp      ■ already up to date
               ● Comment.nvim 6.36ms  start     ■ already up to date
               ● conform.nvim 2.71ms  start     ■ already up to date
               ● fidget.nvim 57.62ms  nvim-lspconfig     ■ already up to date
               ● gitsigns.nvim 4.23ms  start     ■ already up to date
               ● mason-lspconfig.nvim 0.91ms  nvim-lspconfig     ■ already up to date
               ● mason-tool-installer.nvim 23.1ms  nvim-lspconfig     ■ already up to date
               ● mason.nvim 1ms  nvim-lspconfig     ■ already up to date
[quit out of neovim]

$ nvim
stylua: failed to install
lua-language-server: failed to install
Press ENTER or type command to continue

Output from :checkhealth includes:
WARNING stylua unavailable: Command not found
Desktop

OS: OpenBSD
Terminal: xterm

Neovim Version
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1692716794

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/share/nvim"

Regarding stylua: I also had this error. The unzip command was missing.

Believe it or not, I actually encountered the fzf issue when I tried running on NetBSD because the SDF uses that.
You're going to need to do some poking around yourself, because I'm unsure if we have anyone who contributes regularly who even has an OpenBSD system to look at for this.
Here's the snippet I had to put in my .zshrc to make it work:
if [[ `uname -s` == "NetBSD" ]]; then
        export FZF_BASE="/usr/pkg/share/fzf"
fi
source $ZSH/oh-my-zsh.sh

LuaSnip has some requirements documented here. Be sure you have those installed and in your PATH.

No activity in a week. Closing. Please feel free to reopen if we can help in some way that doesn't involve finding new hardware to install OpenBSD on.


fix broken links

@natke @luisquintanilla I'm just clearing the warnings from the build here but the sentence visit the following link should also be revisited for SEO/accessibility.


Computed Column Error for Boolean Fields

Boolean fields have the option for all, average, sum, and is_null columns to display, but the first three of these cause an error 500.

Traceback (most recent call last):
  File "e:\Homestead_App\.venv\lib\site-packages\django\core\handlers\exception.py", line 55, in inner
    response = get_response(request)
  File "e:\Homestead_App\.venv\lib\site-packages\django\core\handlers\base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "C:\Users\eriku\AppData\Local\Programs\Python\Python38\lib\contextlib.py", line 75, in inner
    return func(*args, **kwds)
  File "e:\Homestead_App\.venv\lib\site-packages\django\contrib\auth\decorators.py", line 23, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "e:\Homestead_App\.venv\lib\site-packages\data_browser\views.py", line 265, in query
    return _data_response(request, query, media, privileged=True)
  File "e:\Homestead_App\.venv\lib\site-packages\data_browser\views.py", line 295, in _data_response
    bound_query = BoundQuery.bind(query, orm_models)
  File "e:\Homestead_App\.venv\lib\site-packages\data_browser\query.py", line 233, in bind
    orm_bound_field = get_orm_field(query_field.path)
  File "e:\Homestead_App\.venv\lib\site-packages\data_browser\query.py", line 223, in get_orm_field
    orm_bound_field = orm_field.bind(orm_bound_field)
  File "e:\Homestead_App\.venv\lib\site-packages\data_browser\orm_aggregates.py", line 104, in bind
    agg_func = _get_django_aggregate(previous.type_, self.name)
  File "e:\Homestead_App\.venv\lib\site-packages\data_browser\orm_aggregates.py", line 72, in _get_django_aggregate
    return {
KeyError: 'all'

What database and Django version are you using?
On Tue, Jun 27, 2023 at 10:35 PM Erik @.***> wrote:

Boolean fields have the option for all, average, sum, and is_null columns
to display, but the first three of these cause an error 500.
[image: image]
https://user-images.githubusercontent.com/76848161/249291084-36aa36c3-8335-43b5-82a3-ffed3e58ba91.png
Traceback (most recent call last):
File "e:\Homestead_App.venv\lib\site-packages\django\core\handlers\exception.py", line 55, in inner
response = get_response(request)
File "e:\Homestead_App.venv\lib\site-packages\django\core\handlers\base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "C:\Users\eriku\AppData\Local\Programs\Python\Python38\lib\contextlib.py", line 75, in inner
return func(*args, **kwds)
File "e:\Homestead_App.venv\lib\site-packages\django\contrib\auth\decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "e:\Homestead_App.venv\lib\site-packages\data_browser\views.py", line 265, in query
return _data_response(request, query, media, privileged=True)
File "e:\Homestead_App.venv\lib\site-packages\data_browser\views.py", line 295, in _data_response
bound_query = BoundQuery.bind(query, orm_models)
File "e:\Homestead_App.venv\lib\site-packages\data_browser\query.py", line 233, in bind
orm_bound_field = get_orm_field(query_field.path)
File "e:\Homestead_App.venv\lib\site-packages\data_browser\query.py", line 223, in get_orm_field
orm_bound_field = orm_field.bind(orm_bound_field)
File "e:\Homestead_App.venv\lib\site-packages\data_browser\orm_aggregates.py", line 104, in bind
agg_func = get_django_aggregate(previous.type, self.name)
File "e:\Homestead_App.venv\lib\site-packages\data_browser\orm_aggregates.py", line 72, in _get_django_aggregate
return {
KeyError: 'all'
—
Reply to this email directly, view it on GitHub
https://github.com/tolomea/django-data-browser/issues/64, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGERUHTB2T7KUDGL54UBALXNNGZRANCNFSM6AAAAAAZWFO6CI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Django version 4.0.9
Postgres version 15
Data Browser version 4.0.13

Thanks for the bug report.

Boolean fields have the option for all, average, sum, and is_null columns
to display, but the first three of these cause an error 500.

I can reproduce the issue with all (it also impacts durations) but the
others work fine for me. Do you experience the same stack trace for those?
On Tue, Jun 27, 2023 at 10:56 PM Erik @.***> wrote:

Django version 4.0.9
Postgres version 15
Data Browser version 4.0.13
—
Reply to this email directly, view it on GitHub
https://github.com/tolomea/django-data-browser/issues/64#issuecomment-1610271565,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGERUFJQ5VOL763HOCQMF3XNNJHDANCNFSM6AAAAAAZWFO6CI
.
You are receiving this because you commented.Message ID:
@.***>


Latency increasing after long period operation

Hi AlexxIT,
I built a gstreamer rtsp server and downloaded pre-built go2rtc_linux_arm64.
go2rtc worked properly with very low latency and I appreciated for that.
But after like a day, latency was increased like 2 seconds.
I checked rtsp stream with gstream rtspsrc command it worked properly, but in api page(:1984) the stream has latency.
Any reason for that?
I checked other issues but can't find this phenomenon and I checked info in api page it seems webrtc udp4 works properly.
I set stream as like below
streams:
camera: rtsp://<IP_ADDRESS>:8554/test
Thank you!

It's from gstreamer rtsp server which works like IP camera and stream encoded with H264. Gstremaer rtsp server get streams from other cameras.

Latency may increasing between:

camera => go2rtc
go2rtc => browser/other client

Thank you for your reply.
In go2rtc=>browser/other client case, is there anything that I can do to keep the low latency?

Latency can be only from TCP connection (MSE/MP4/WebRTC TCP).
Latency should no be from WebRTC UDP connection

Can I make WebRTC works as UDP via modification of yaml file?
I'll look into RTSP, if I get something I'll report it here

WebRTC will auto choose technology based on your network capabilities.

Great, thanks a lot!!

Seeing the same issue with some reolink cameras. Initially fine, but after a day or two, latency climbs to several seconds. Web stream from the camera UI seems fine, so I'm not sure where it is being introduced.

@rbray89 This is known problem for Reolink cameras. Awful RTSP TCP realisation. Can be fixed via using RTSP UDP, but go2rtc doesn't support it directly for now.

Please let me know if the problem is relevant


Cannot screenshot multiple stories with addDecorator

First of all, need to say this is a great add-on. Thanks!
Issue:
When looping over stories, addDecorator seems to get stuck after a single story. It will only generate the images for the one story.
As mentioned by @gcazaciuc in #3, it would be very handy not to have to decorate every story manually.
This does not work:
storiesOf('corp-site/atoms/Button', module)
  .addDecorator(withScreenshot(getScreenshotOptions))
  .add('with Black and Active', () => (
    <Button color="black" isActive>Button</Button>
  ))
  .add('with White and inactive, also inaccessible', () => (
    <Button color="white">Button</Button>
  ))
  .add('with Purple and inactive', () => (
    <Button color="purple">Button</Button>
  ))

It will only take screenshots of the first story: with Black and Active.
It would be great to be able to use the addDecorator globally within the config to take screenshots of all stories that are being imported and looped over.

Have the same issue

This change to the example breaks down creating screenshots.
https://github.com/tsuyoshiwada/storybook-chrome-screenshot/compare/master...alexeybondarenko:master

Hi @camsloanftc Thank you for issues! and sorry late...
Is it possible to tell me which version the problem will occur?
Also, if you encounter any errors when using the --debug option, it will be helpful if you let me know together :pray:

I've debugged what in my case, withScreenshot for the story Button.withText is called twice. Therefore counter is more than the results.lengts.
Can't understand why

Hi @alexeybondarenko Thank you for report!
It's a big help :+1:

@alexeybondarenko I could confirm that with text was called twice in the same way. I would like to take a closer look.

@camsloanftc @alexeybondarenko
Released as 0.6.1. Please check when you have time.

@tsuyoshiwada thanks 👍  In 0.6.1 the bug with the freezing was fixed.
But I've found the new one. It's related to https://github.com/tsuyoshiwada/storybook-chrome-screenshot/issues/3.
I've added the global decorator and in the result, not all stories were screenshotted.
https://github.com/alexeybondarenko/storybook-chrome-screenshot/commit/5160effbb0ebfadae9e4b92394677fa5026b5563
Didn't were created the screenshots for:
Tag.with text
Tag.with large size
Heading.with subtitle

This could help to debug
https://github.com/alexeybondarenko/storybook-chrome-screenshot/commit/3617b2c261aed5b4e95d6d882437e86042873ed1
Log: debug.log

Hi @alexeybondarenko Thank you for confirmation :smiley:
There seems to be a case that screenshots are not taken when using the global decorator as you say.
It may take some time to fix the bug. It will be very helpful if you can PR if possible :+1:

@tsuyoshiwada okay 😀 I will try to fix it

Hi @tsuyoshiwada, @camsloanftc. I've made the PR, that is fixing a lot of the race conditions in the capturing process. I'm using my fork in the project, that has 120+ stories (syftapp.com). All these stories are capturing by this plugin and are uploading to Argos Ci for the visual regression testing.
I would be appreciated for the review. 😄

Hi @alexeybondarenko @camsloanftc I merged #14 PR. Released it as v0.8.0 :tada:
Please check when you have time :)

1.1.0-alpha.1 – a lot of screenshots are duplicated. I could see button for button story, checkbox, and even App story. It does not got updated.
Using withScreenshot as a global decorator.


Add HyperHDR daemon

^
Waiting for test reports before marking it ready.

Please note that pre-release will not appear in latest, do you think we need to add some way to fetch pre-release as well?

Nah, that's fine. Will re-run the workflow once a tagged release of the manifest/ipk is pushed.
Thanks tho ;)


onReady usage

The rootscope solution works, but the onReady solution presents as being ready, but doesn't work. Am I using it correctly?
I am using angular-translate 2.8.1 and angular 1.4.6
$translatePartialLoader.addPart('pages/cadastros/unidade-metrica');
           $rootScope.$on('$translateChangeSuccess', function () {
                $scope.label.yes = $translate.instant('Cost_UnitOfMeasure_Yes');
            });

            $translate.onReady().then(function () {
                if ($translate.isReady()) {
                    $scope.label.no = $translate.instant('Cost_UnitOfMeasure_No');

                }
                console.log($translate.isReady()); // returns false but should return true
            });

@marcelorio  Do you using 2.8.1? Because the bug with isReady() should be fixed.
$translate.onReady() is already a promise which does not require to check for isReady().

Ah, I have missed your said already using 2.8.1.
So, no you don't have to call isReady(), although it should work and looks like the bug was not fixed in 2.8.1

Indeed the isReady() inside the onReady() is a bit redundant. I only used it as a test to see if it would show up in the console, and it does, but the translation isn't loaded.

I don't know if it's the same cause but I was using $translateProvider.preferredLanguage and I think that was firing the onReady callbacks. I removed that line and onReady fired correctly (at least the first time)

What do you mean?

I was using $translateProvider.preferredLanguage, but taking it from the code did not solve the problem..

So basically this does not work for you? https://github.com/angular-translate/angular-translate/blob/2.8.1/src/directive/translate-cloak.js#L37-L39

In combination with a condition I 've fixed a bug. I'll close this in favor.


Missing LICENSE for open source

Hello, would you be able to mark this repository as open-sourced by adding a LICENSE? An MIT license should work well.
https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository

I have added a file about the license.
Thank you very much.


Extra whitespaces in debug opts in alluxio-env.sh causes processes to fail to start

Alluxio Version:
Current main
Describe the bug
Alluxio processes fail to start if ALLUXIO_*_ATTACH_OPTS is set and contains a leading or trailing whitespace.
logs/worker.out says Error: Could not find or load main class. No class name is included in this error message.
To Reproduce

Enable the Java debugger to attach to Alluxio processes e.g. the worker, by setting ALLUXIO_WORKER_ATTACH_OPTS to  -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=60003, with a leading whitespace, in conf/alluxio-env.sh.
Start the worker process by running bin/alluxio process start worker
Wait for the worker to start.

Expected behavior
The worker process should start normally, with the debugging port open.
Urgency
Normal
Are you planning to fix it
No
Additional context
https://github.com/Alluxio/alluxio/blob/8329244d17031e8d7be6bbe23bc5fca433a9a8a5/cli/src/alluxio.org/cli/processes/worker.go#L73-L77
The launcher prepends the attach opts to the command, by first splitting the opts with a whitespace as the delimiter. In the case where the opts string contains a leading whitespace, there is a empty string after the split. This empty string is then passed to the java command as a positional argument, which interprets it as the name of a main class.
Since alluxio-env.sh is a shell script, a user can reasonably expect to set the options with a leading whitespace as they are usually concatenated to form a longer command line. Not respecting this convention may be surprising.

@Xenorith FYI.


Bosh deployment fails with "Unknown alias: xyz"

Describe the bug
Some of our deployments are facing an issue with yaml anchors. That fails the deployment at the very beginning while loading the manifest yaml with:
D, [2022-06-06T01:38:32.096112 #5838] [task:300244] DEBUG -- DirectorJobRunner: (0.000564s) (conn: 4320) BEGIN
D, [2022-06-06T01:38:32.097385 #5838] [task:300244] DEBUG -- DirectorJobRunner: (0.000708s) (conn: 4320) UPDATE "tasks" SET "event_output" = ("event_output" || '{"time":1654479512,"error":{"code":100,"message":"Unknown alias: ref_0"}}') WHERE ("id" = 300244)

Our current expectation is that https://github.com/cloudfoundry/bosh/blob/919702d3a1baeac8321ca229c2f8e5400a700616/src/bosh-director/lib/bosh/director/jobs/update_deployment.rb#L330 is missing the parameter aliases: true if it is called via REST API and not BOSH CLI
To Reproduce
This issue can be reproduced by creating a deployment via REST API and providing a deployment manifest that uses yaml anchors.
Here a manifest snippet:
stemcell-alias: &cell-alias "ubuntu"
stemcells:
- alias: *cell-alias
  os: "ubuntu-bionic"
  version: "latest"

And the REST API invocation:
bosh -e bosh curl -X POST /deployments -H 'Content-Type: text/yaml' --body=service-fabrik-mongodb.yml

We expect that this issue was introduces with v272.1.0
Additional context
To mitigate the problem we rolled back to our last known good bosh version v271.16.0

Great! Changed the status accordingly.

I proposed a PR to fix the issue: https://github.com/cloudfoundry/bosh/pull/2386

Since the issue is fixed I do close the issue


[DDW-1227] Fix out-of-memory errors on ci.iog.io

We’re OOM-ing on https://ci.iog.io/, and therefore have cache misses – developers have to build devshells locally (slow), instead of downloading them from the cache. Let’s reduce the memory footprint of the evaluation
This PR fixes that by reducing the number of times we evaluate Nixpkgs. After the changes, they'll only be evaluated once per each target system. Previously they were evaluated once per each pair of Cardano network and target system (i.e. for each installer), and also multiple times for devshells (we have separate devshells for each Cardano network).
IMO, it doesn’t require a QA run, since it has no functional changes, just build changes (and not significant ones)
You can see that it is a safe transformation in terms of the actual builds, because:

the main change is to move the cluster parameter down 1 level (previously we had internal.x86_64-windows.mainnet.unsignedInstaller, now we have internal.x86_64-windows.unsignedInstaller.mainnet) – this is done by wrapping some attrs with genCluster (cluster: …), and later referencing them with the suffix .${cluster},
some symbol names have changed: newCommon → common, daedalusPkgs → common,
code from old-default.nix has been moved to common.nix,
old-shell.nix has been renamed to devshells.nix and it now takes pkgs and common from inputs.self.internal.*, preventing previous reevaluations

You can also see that it worked here: https://ci.iog.io/build/598723#tabs-constituents
Todos
n/a
Screenshots
n/a
Testing Checklist

Slack QA thread
[ ] Test

Review Checklist
Basics

[x] PR assigned to the PR author(s)
[ ] input-output-hk/daedalus-dev and input-output-hk/daedalus-qa assigned as PR reviewers
[x] If there are UI changes, Alexander Rukin assigned as an additional reviewer
[x] PR has appropriate labels (release-vNext, feature/bug/chore, WIP)
[x] PR link is added to a Jira ticket, ticket moved to In Review
[x] PR is updated to the most recent version of the target branch (and there are no conflicts)
[x] PR has a good description that summarizes all changes
[x] PR contains screenshots (in case of UI changes)
[x] CHANGELOG entry has been added to the top of the appropriate section (Features, Fixes, Chores) and is linked to the correct PR on GitHub
[x] There are no missing translations (running yarn manage:translations produces no changes)
[x] Text changes are proofread and approved (Jane Wild / Amy Reeve)
[x] Japanese text changes are proofread and approved (Junko Oda)
[x] Storybook works and no stories are broken (yarn storybook)
[x] In case of dependency changes yarn.lock file is updated

Code Quality

[ ] Important parts of the code are properly commented and documented
[ ] Code is properly typed with typescript types
[ ] React components are split-up enough to avoid unnecessary re-renderings
[ ] Any code that only works in main process is neatly separated from components

Testing

[ ] New feature/change is covered by acceptance tests
[ ] New feature/change is manually tested and approved by QA team
[ ] All existing acceptance tests are still up-to-date
[ ] New feature/change is covered by Daedalus Testing scenario
[ ] All existing Daedalus Testing scenarios are still up-to-date

After Review

[ ] Update Slack QA thread by marking it with a green checkmark

I couldn't find anything to complain about. good work!


MacOs impeller-jank

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
I am experiencing junk mainly when working with a data table with approximately 10-20 columns and 20-30 rows.
The UI is more complex, with a side panel and a simple appbar, but it is the data table that is making the performance graph spike. The cells are texts and change to a text field when clicked on.
I am working on an
14" MacBook Pro
M2 Max
32 GB Ram
MacOS 13.4.1
Expected results
I was experiencing similar junk without the impeller enabled as well, but it seems to be slightly worse with impeller.
Actual results
The UI is responsive most of the time, but the dev tools show junk, and the data table is expected to be a lot larger.
Code sample
Unfortunately I cannot share the code.
Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs

Flutter Doctor output
Doctor output
[✓] Flutter (Channel master, 3.13.0-3.0.pre.7, on macOS 13.4.1 22F82 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.80.0)
[✓] Connected device (2 available)
[✓] Network resources

We need either examples of the code that is slow, timeline traces saved from devtools, screenshots/videos, et cetera.
A vague description of what the UI is doing isn't actionable.

I have the devtools trace, will email you! @jonahwilliams

I am working with Leigha Jarett. Sorry for the incompleteness, as I only have measurements from dev tools and was unable to upload them into the issue. Just sent them by email.

FYI you can upload a timeline to github by zipping it up.

I'm looking through the timeline trace and I don't see a single frame missed due to raster time, are you sure this is the correct timeline?

I am sending a few measurements I have made. As I mentioned the app does not freeze or anything extreme, but the timeline showed a lot of 'Red Columns', which I expected to symbolize something might be wrong.
Archive.zip

@mendoxe - the trace in there seems to have some issues (for example there is an event in there that seems to be taking a minute or more for dispatch pointer data packet which has a lot of nested frame events and would indicate some kind of corruption in the file).
It looks like you have a lot of UI thread jank there, which is not specific to impeller - you may just be doing too much work on the UI thread (some frames are taking 26 or more ms for example to run the Dart code on the UI thread).
One possible cause of this is if you're running devtools while you are interacting with the app - it will periodically request more timeline data which can itself cause jank in the app.
Since this is not an impeller specific bug I'm going to close it. If you have something more to share about getting 25ms+ UI frames on macOS it may be worth filing another issue for that.


Use Elastix on large images

Hi,
I'm new on using Elastix. I'm use it on large whole slide images. I use the file parameters that i found on the database. the probleme that it take very much time to process (on the hight resolution images). Should i process the low resolution images instead and how to apply the transformation on the high resolution images after. I tried transformix and it does not apply the transformation of the low resolution on the high ones (i have a low resolution images as a result).
her is the parameters file that i used.
// Example parameter file for B-spline registration
// C-style comments: //
// The internal pixel type, used for internal computations
// Leave to float in general.
// NB: this is not the type of the input images! The pixel
// type of the input images is automatically read from the
// images themselves.
// This setting can be changed to "short" to save some memory
// in case of very large 3D images.
(FixedInternalImagePixelType "float")
(MovingInternalImagePixelType "float")
// The dimensions of the fixed and moving image
// NB: This has to be specified by the user. The dimension of
// the images is currently NOT read from the images.
// Also note that some other settings may have to specified
// for each dimension separately.
(FixedImageDimension 2)
(MovingImageDimension 2)
// Specify whether you want to take into account the so-called
// direction cosines of the images. Recommended: true.
// In some cases, the direction cosines of the image are corrupt,
// due to image format conversions for example. In that case, you
// may want to set this option to "false".
(UseDirectionCosines "true")
// **************** Main Components **************************
// The following components should usually be left as they are:
(Registration "MultiResolutionRegistration")
(Interpolator "BSplineInterpolator")
(ResampleInterpolator "FinalBSplineInterpolator")
(Resampler "DefaultResampler")
// These may be changed to Fixed/MovingSmoothingImagePyramid.
// See the manual.
(FixedImagePyramid "FixedRecursiveImagePyramid")
(MovingImagePyramid "MovingRecursiveImagePyramid")
// The following components are most important:
// The optimizer AdaptiveStochasticGradientDescent (ASGD) works
// quite ok in general. The Transform and Metric are important
// and need to be chosen careful for each application. See manual.
(Optimizer "AdaptiveStochasticGradientDescent")
(Transform "BSplineTransform")
(Metric "AdvancedMattesMutualInformation")
// ***************** Transformation **************************
// The control point spacing of the bspline transformation in
// the finest resolution level. Can be specified for each
// dimension differently. Unit: mm.
// The lower this value, the more flexible the deformation.
// Low values may improve the accuracy, but may also cause
// unrealistic deformations. This is a very important setting!
// We recommend tuning it for every specific application. It is
// difficult to come up with a good 'default' value.
(FinalGridSpacingInPhysicalUnits 16)
// Alternatively, the grid spacing can be specified in voxel units.
// To do that, uncomment the following line and comment/remove
// the FinalGridSpacingInPhysicalUnits definition.
//(FinalGridSpacingInVoxels 16)
// By default the grid spacing is halved after every resolution,
// such that the final grid spacing is obtained in the last
// resolution level. You can also specify your own schedule,
// if you uncomment the following line:
//(GridSpacingSchedule 4.0 4.0 2.0 1.0)
// This setting can also be supplied per dimension.
// Whether transforms are combined by composition or by addition.
// In generally, Compose is the best option in most cases.
// It does not influence the results very much.
(HowToCombineTransforms "Compose")
// ******************* Similarity measure *********************
// Number of grey level bins in each resolution level,
// for the mutual information. 16 or 32 usually works fine.
// You could also employ a hierarchical strategy:
//(NumberOfHistogramBins 16 32 64)
(NumberOfHistogramBins 32)
// If you use a mask, this option is important.
// If the mask serves as region of interest, set it to false.
// If the mask indicates which pixels are valid, then set it to true.
// If you do not use a mask, the option doesn't matter.
(ErodeMask "false")
// ******************** Multiresolution **********************
// The number of resolutions. 1 Is only enough if the expected
// deformations are small. 3 or 4 mostly works fine. For large
// images and large deformations, 5 or 6 may even be useful.
(NumberOfResolutions 3)
// The downsampling/blurring factors for the image pyramids.
// By default, the images are downsampled by a factor of 2
// compared to the next resolution.
// So, in 2D, with 4 resolutions, the following schedule is used:
//(ImagePyramidSchedule 8 8  4 4  2 2  1 1 )
// And in 3D:
//(ImagePyramidSchedule 8 8 8  4 4 4  2 2 2  1 1 1 )
// You can specify any schedule, for example:
//(ImagePyramidSchedule 4 4  4 3  2 1  1 1 )
// Make sure that the number of elements equals the number
// of resolutions times the image dimension.
// ******************* Optimizer ****************************
// Maximum number of iterations in each resolution level:
// 200-2000 works usually fine for nonrigid registration.
// The more, the better, but the longer computation time.
// This is an important parameter!
(MaximumNumberOfIterations 200)
// The step size of the optimizer, in mm. By default the voxel size is used.
// which usually works well. In case of unusual high-resolution images
// (eg histology) it is necessary to increase this value a bit, to the size
// of the "smallest visible structure" in the image:
//(MaximumStepLength 1.0)
// **************** Image sampling **********************
// Number of spatial samples used to compute the mutual
// information (and its derivative) in each iteration.
// With an AdaptiveStochasticGradientDescent optimizer,
// in combination with the two options below, around 2000
// samples may already suffice.
(NumberOfSpatialSamples 2048)
// Refresh these spatial samples in every iteration, and select
// them randomly. See the manual for information on other sampling
// strategies.
(NewSamplesEveryIteration "true")
(ImageSampler "Random")
// ************* Interpolation and Resampling ****************
// Order of B-Spline interpolation used during registration/optimisation.
// It may improve accuracy if you set this to 3. Never use 0.
// An order of 1 gives linear interpolation. This is in most
// applications a good choice.
(BSplineInterpolationOrder 3)
// Order of B-Spline interpolation used for applying the final
// deformation.
// 3 gives good accuracy; recommended in most cases.
// 1 gives worse accuracy (linear interpolation)
// 0 gives worst accuracy, but is appropriate for binary images
// (masks, segmentations); equivalent to nearest neighbor interpolation.
(FinalBSplineInterpolationOrder 3)
//Default pixel value for pixels that come from outside the picture:
(DefaultPixelValue 0)
// Choose whether to generate the deformed moving image.
// You can save some time by setting this to false, if you are
// not interested in the final deformed moving image, but only
// want to analyze the deformation field for example.
(WriteResultImage "false")
// The pixel type and format of the resulting deformed moving image
(ResultImagePixelType "unsigned char")
(ResultImageFormat "tiff")
Thank you in advanced.

Hi  abenchaaben,
Please post your question on the mailing list: https://groups.google.com/forum/#!forum/elastix-imageregistration
We reserve the issue tracker for technical issue, related to programming.
Best, Marius


Make is possible to decorate clients and servers at URL context

Currently, the parts needed to resolve an http URL come from different objects at different availabilities, notably not yet accessible when constructing a decorating service. This makes it complicated, and difficult to do things such as request sampling.
For example, to get a client URL requires the following logic and availabilities:

RequestLogAvailability.SCHEME
RequestLogAvailability.REQUEST_HEADERS

    public static String generateUrl(RequestLog requestLog) {
        if (!requestLog.isAvailable(RequestLogAvailability.SCHEME) ||
            !requestLog.isAvailable(RequestLogAvailability.REQUEST_HEADERS)) {
            return null;
        }
        final Scheme scheme = requestLog.scheme();
        final String authority = requestLog.authority();
        final String path = requestLog.path();
        final String query = requestLog.query();
        final SessionProtocol sessionProtocol = scheme.sessionProtocol();
        final String uriScheme;
        if (SessionProtocol.httpValues().contains(sessionProtocol)) {
            uriScheme = "http://";
        } else if (SessionProtocol.httpsValues().contains(sessionProtocol)) {
            uriScheme = "https://";
        } else {
            uriScheme = sessionProtocol.uriText() + "://";
        }

        final StringBuilder uriBuilder = new StringBuilder(
                uriScheme.length() + authority.length() + path.length() +
                (query != null ? query.length() + 1 : 0));

        uriBuilder.append(uriScheme)
                  .append(authority)
                  .append(path);

        if (query != null) {
            uriBuilder.append('?').append(query);
        }

        return uriBuilder.toString();
    }

I think decoration at a resolved http request abstraction is a better fit for things like metrics and tracing, and also notably can avoid accidental retries inside a decorator. For example, in OkHttp, there is a separate concept of network interceptor from application, where the former has access to network details more fundamentally required.

I think it's possible to get the request URI (as in Brave's http.uri tag) without much complexity. Let me try to send a PR for this soon.


fix cannot find OE_QMAKE_STRIP

fix cannot find OE_QMAKE_STRIP when I use below:
test.pro

QMAKE_POST_LINK += $(STRIP) $(TARGET)

in my Makefile:
42 SED           = sed
43 STRIP         = $(OE_QMAKE_STRIP)

On Tue, Apr 19, 2016 at 7:39 AM, ZiLin Chen<EMAIL_ADDRESS>wrote:

in my Makefile:
42 SED = sed
43 STRIP = $(OE_QMAKE_STRIP)

Please send it to the mailing list; we don't take pull requests for this
layer.
--
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1<PHONE_NUMBER>


Automatic error report

<!---   *** BEFORE SUBMITTING: PASTE CLIPBOARD HERE TO COMPLETE YOUR REPORT ***   ---!>
when source save as the sample name of file, I agree 'yes' to replace. Then, It make the window of Spyder internal error.
当我将源码另存为一个相同文件名，我同意替换之前的源码文件。然后，它弹出一个关于Spyder 内部错误的窗口。

Please update to our latest version (3.3.2) by opening the Anaconda Prompt and running there
conda update spyder

That version has much better reporting facilities and will let us better know what's happening in your case.


When I type a command I get an error....

When I type a command I get an error....
That is not a valid environment.
This is the command I type: mv create "FastDiamonds" -s -93927677120122015 -g normal

Information

Server version:

Full output of /mv version -p:

Server log:

Help request
Problem

What I have tried

Screenshots

The order of arguments matters. The command should be:
/mv create FastDiamonds normal -s -93927677120122015

What nicegamer said should work. Next time, fill in the issue template. It's there for a reason.


the bug

when i train the Virconv-L, in the beginning, the train runs well ,when it runs serval epochs,it will ocuur the error in the below:
"epochs:  76%|????????  | 38/50 [19:53:52<6:18:46, 1893.87s/it, loss=2.13, lr=0.00328]
Traceback (most recent call last):
File "messagestream.pyx", line 91, in scipy._lib.messagestream.MessageStream.close
TypeError: remove: path should be string, bytes or os.PathLike, not NoneType
Exception ignored in: 'scipy._lib.messagestream.MessageStream.dealloc'
Traceback (most recent call last):
File "messagestream.pyx", line 91, in scipy._lib.messagestream.MessageStream.close
TypeError: remove: path should be string, bytes or os.PathLike, not NoneType
traintest.sh: line 3: 91725 Segmentation fault      python3 train.py --cfg_file cfgs/models/kitti/VirConv-L.yaml --extra_tag testpro
",
please tell me how to fix this problem ?

Did you resolve this issue?
If so, could you share the solution?


Testing a pull request to document onboarding new contributers

@gvetticaden Still need this PR?  Can you close it, if not? Thanks


Wrote a script to generate videos with segmentation

🚀 Feature
Generating a video
Motivation & Examples
I wanted to generate videos out of the set of output frames and wrote a script for the same. It works for me and wanted to contribute it to the repo.
Note
We only consider adding new features if they are relevant to this library.
Consider if this new feature deserves to be here or should be a new library.

That sounds really cool @heemalsic !
Mind sharing how that would fit with lang-sam? How would users use this feature?

Sorry I don't exactly get what you mean by 'fit with lang-sam'. But it it utilizes the following functions/classes from lang-sam for it to work-
from lang_sam import LangSAM from lang_sam.utils import draw_image
Regarding its use, for instance if someone wants to study how sam segments data in real time traffic, so they can extract frames from their video data and feed the containing folder to the script which will output a corresponding video with segmentation masks and bounding boxes exclusive to the text prompt given by the user.


feat: add decent mint items

This PR updates the with-next-mint-nft examples repository to include Decent's hooks for cross-chain minting.
Updates include:

DecentMint: a new mint button component that prepares calldata for a crosschain transaction based on the actionArgs included in the index.tsx file.  This component sends the transaction & then tracks its progress, surfacing blockscanner links for users.
TokenSelectorUsage: (optional) this is the Token Selector component from Decent's UI components library.  It lets users select which token they would like to pay with on the chain to which they are connected.  This can be removed if we just want to demonstrate cross-chain tx's using native gas tokens only.  TODO: there seems to be a potential class conflict that is causing some formatting issues in the modal -- functionally works though.
two new packages: @decent.xyz/box-hooks & @decent.xyz/box-ui.

Testnet liquidity for cross-chain tx's is extremely poor, so we created a new NFT to test with - block explorer link.

@cdsiren Bumped this example to separate directory with-next-decent-box and used static versioning so that if there are breaking changes it won't fail the CI. Do you have a rate limited example API key we can use for the example? The sign-up process right now is a bit frictioned.


Days getting shifted?

Hi,
For some reason, the heatmap is shifting some of the JSON values. I don't think this is related to timezone because all of my events (recorded in EST) occur before 11pm (viewing in central time zone).
I did some debugging, and found that I have the following events on sunday:
Sun 17 @<PHONE_NUMBER>
Sun 7 @<PHONE_NUMBER>
Sun 14 @<PHONE_NUMBER>
Sun 5 @<PHONE_NUMBER>
Sun 9 @<PHONE_NUMBER>
However, the heatmap graphs a lot of sunday events (last row is sunday). I know for sure that the data generated by my backend is correct.

I'm not sure why this is happening. Can someone give me some guidance?

I was seeing this same issue in Gitlab and was able to determine it was based on the user's timestamp, when converting a timestamp that is at midnight (example<PHONE_NUMBER>) by doing new Date(1372791600 * 1000) you will get a date that has the difference that is your the timezone of your browser client.
My data for example had<PHONE_NUMBER>, my server provided this with UTC time, my browser was set to EDT (Eastern Daylight Time) which is -0400 so when I do just:
new Date(1413158400 * 1000);
// Sun Oct 12 2014 20:00:00 GMT-0400 (EDT)

This is no good, because the contributions calendar Gitlab uses is a daily thing, it means all dates will appear to be off by one day, because the what should have been Monday Oct 13th at midnight became Sunday Oct 2 at 20:00.
So if your server does not consider the user's timezone, which is probably won't, then your client needs to.
I fixed this with an afterLoadData function
afterLoadData: function (timestamps) {
  var d = new Date();
  return timestamps.map(function (timestamp) {
    return timestamp + (d.getTimezoneOffset() * 60)
  })
}

solid answer @benhutchins ... this issue could/should be closed @wa0x6e

Lovely answer @benhutchins, and it saved my sanity. However, there are a few bugs in your code snippet. This is my corrected version, which I'm putting here for convenience:
afterLoadData: function (timestamps) {
  var offset = new Date().getTimezoneOffset() * 60;
  var results = {};
  for (var timestamp in timestamps) {
    var commitCount = timestamps[timestamp];
    timestamp = parseInt(timestamp, 10);
    console.log(timestamp)
    results[timestamp + offset] = commitCount;
  };
  return results;
}

Again, thanks so much for providing the original answer. :smile:

Thanks for the solution, @benhutchins and @pydanny! There is an additional issue with this solution. I'm in EST timezone, and there is daylight saving time(EDT) change on every March 12th. So when you do offset calculation in EDT time, the dates before March 12th is shift back one day. and there will be a missing date on March 12 in my project. At that time I would rather to use 5-hour-offset instead of 4-hour-offset.

@voidsteed @benhutchins @pydanny
Hey guys, thanks for your help!
I've updated afterLoadData based on the comment from @voidsteed and this SO answer
const afterLoadData = timestamps => {
  const stdTimezoneOffset = date => {
    const jan = new Date(date.getFullYear(), 0, 1);
    const jul = new Date(date.getFullYear(), 6, 1);
    return Math.max(
      jan.getTimezoneOffset(),
      jul.getTimezoneOffset()
    );
  };
  const offset = stdTimezoneOffset(new Date()) * 60;
  let results = {};
  for (let timestamp in timestamps) {
    const value = timestamps[timestamp];
    timestamp = parseInt(timestamp, 10);
    results[timestamp + offset] = value;
  };
  return results;
}

P.S.: It's ES6, but you can easily update it to be ES5

Lovely answer @benhutchins, and it saved my sanity. However, there are a few bugs in your code snippet. This is my corrected version, which I'm putting here for convenience:
afterLoadData: function (timestamps) {
  var offset = new Date().getTimezoneOffset() * 60;
  var results = {};
  for (var timestamp in timestamps) {
    var commitCount = timestamps[timestamp];
    timestamp = parseInt(timestamp, 10);
    console.log(timestamp)
    results[timestamp + offset] = commitCount;
  };
  return results;
}

Again, thanks so much for providing the original answer. 😄

I have been debugging this issue for a while and wish I'd found this issue earlier :-) The issue I'm seeing is that the offset from utc appears to be (24 - my timezone offset), so for PST -8, I need to add 24-8 hours. Not sure why yet or if I've done something else which has contributed to the issue, but this afterLoadData and adding 24-8hrs is a working workaround for me.


Create Product outline

https://github.com/department-of-veterans-affairs/va.gov-team/blob/master/platform/product-management/product-outline-template.md

Megan Kelly to confirm location by EOD 06/12

Moving to done because the only thing remaining is figuring out where to put it - @anushyaprasad to make a card for that


524 errors are not properly retried in up42-py

We have encountered a 524 error when running a UP42 search which lead to failure of our pipeline.
It seems like the up42 client retrying was not handling this 524 error. (Incorrect statement - it seems that request retrying should handle it)
Our up42-py version == 1.0.0
Executed code:
catalog = up42.initialize_catalog()
search_results = catalog.search(search_parameters, as_dataframe=False)

Traceback:
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/dist-packages/up42/auth.py", line 122, in request
    response: requests.Response = self._request_helper(request_type, url, data)
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/up42/auth.py", line 91, in _request_helper
    response: requests.Response = self.session.request(
                                  ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/up42/http/session.py", line 18, in request
    response.raise_for_status()
  File "/usr/local/lib/python3.11/dist-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 524 Server Error:  for url: https://api.up42.com/catalog/hosts/oneatlas/stac/search

The above exception was the direct cause of the following exception:
***
    search_results = catalog.search(search_parameters, as_dataframe=False)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/up42/catalog.py", line 365, in search
    response_json: dict = self.auth.request("POST", url, search_parameters)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/up42/auth.py", line 144, in request
    raise requests.exceptions.HTTPError(err_message) from err
requests.exceptions.HTTPError: error code: 524

Is it possible to improve retrying so that 524 errors are properly retried in up42 client?
Also is there a way to increase the number of retries the up42 client does?

Hi @klaucos, due to the resilience settings the client retries 3 times with backoff on all server error status codes. I'm not sure that retrying more will necessarily improve the resilience if an endpoint consistently fails.
Also is there a way to increase the number of retries the up42 client does? - we don't think this needs to be part of the client's UX. You can still find ways around since it's Python, but I'd not recommend that.

Hello @javidq
I am sorry for the confusion, I confirmed that "524" value is really present in request Retry object in status_forcelist attached to session adapter, so retrying should be done.
However we would still prefer if there was a way to increase the number or retries while creating the UP42 client.
As I said we have encountered and 524 error and we would prefer if we could rather increase number of retries or increase backoff_factor to avoid hitting transient errors while communicating with up42.


correction in read me page @

Hope this makes the instructions   better,
Breaks ,
Cannot find name 'Restangular'
at,
constructor(  private restangular: Restangular) { }
Add this line in the component,
import { Restangular } from 'ng2-restangular';
Pl. add this line in read me guide. (The demo tutorial has it right)

Thanks @moorthi07, we update  Quick Configuration


Add option to generate random string similar to #[now], or #[short-random]

Is your feature request related to a problem? Please describe.
As a test engineer I need an option to generate random strings with only a-Z chars
Describe the solution you'd like
New case in Scenario var  - com/cucumber/utils/context/vars/ScenarioVars.java - for string-random
case "string-random":
return RandomStringUtils.random(new Random().nextInt(50), true, false);

I believe #[uid] is not applicable here, since it contains numbers, also.
However, instead of implementing new dedicated scenario variables, you may wanna use a less coarsened solution, such as the SpEL feature:
  * var s="#{T(org.apache.commons.lang3.RandomStringUtils).random(new java.util.Random().nextInt(50), true, false)}"

will generate:
var s = oKGiXPmTNkUgnxgVUzoaPlrRYZYZLqDARDtY

Does that suffice ?


{Network} az network private-dns zone: Migrate commands to codegen

Related command

Description

https://github.com/Azure/aaz/pull/250
7 commands
Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

Network


[#139296467] Add redirection to add www to the system domain

#139296467 Redirect from cloud.service.gov.uk (no www prefix)
What?
Set it up so that if users try to navigate to cloud.service.gov.uk in their browsers, they will be redirected to https://www.cloud.service.gov.uk
We use a configuration based on Cloudfront + API Gateway to redirect to the www.${apex} domain from the APEX system domain.
Limitation: Any other path will return a 403 error. In order to make API Gateway work with any path, we must use proxy mode and send the request to a Lambda function or similar.
Dependencies
This supersedes the PRs https://github.com/alphagov/paas-cf/pull/791 and https://github.com/alphagov/paas-product-page/pull/2
How to review?

Code review
Deploy from master with make dev setup_cdn_instances ACTION=apply, then check the difference checking out this branch and running make dev setup_cdn_instances ACTION=plan

You can deploy it by make dev setup_cdn_instances ACTION=apply again, and check that you are reaching the govuk product page when running curl -v -I -k https://${DEPLOY_ENV}.dev.cloudpipeline.digital
Note that cloudfront creation takes some minutes.
Who?
Anyone but @keymon

Travis failures are due to terraform lint.

Fixed that

This looks to be working correctly now with the changes in the WIP PR.
Happy to merge once those are squashed in, and the DEPLOY_ENV thing is adderessed.


[Bug]: Logos aren't visible in light mode

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug

Expected behavior
The logo must be of different colors in light mode(black).
Add ScreenShots
No response
On which device are you experiencing this bug?
No response
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

Kindly assign this issue to me !

Please assign this issue to me @apu52

@sristy17 u are assigned.


JS directive is parsed as a conditional

See comment: https://github.com/EmranMR/tree-sitter-blade/pull/53

Can I ask if you have the link for the documentation? I actually came across a few of your pull request on Laravel as well, but could not find any documentation as Taylor suggested there!
Is it AlpineJS > Using the @js directive or a Laravel Directive? :)

@js started off as a Livewire directive, but was then added to the framework
Not sure why Taylor doesn't want to document it, but it's used in Breeze so :man_shrugging:

Haha thanks for that! It's actually handy I didn't know about it myself as well!

@calebdw sorry to bother, but could you test the new update with your AlpineJS javascript injection using the following edge case?
<div x-data="{ posts: @js($posts) }">
</div>

Sorry it took so long!
Here it is below:

@calebdw no bother! thanks for getting back
I can not see the AST, in relation the javascript injection and the @js($php)
I suspect it is all good? Can I go ahead and close this issue? 😊

Actually, the @js is being parsed as a php_statement---not sure if this is intended:

@calebdw oh good catch! 🤦♂
Will fix it, that was a mistake!

That should be it, all fixed! thanks for catching!


[QUESTION] Difference between serverless-plugin-chrome vs @sparticuz/chromium

I am implementing a common html to pdf generation service for my application.
been through various resources such as
https://www.npmjs.com/package/chrome-aws-lambda
https://github.com/alixaxel/chrome-aws-lambda
https://www.npmjs.com/package/@sparticuz/chrome-aws-lambda
https://github.com/Sparticuz/chromium
and
https://github.com/adieuadieu/serverless-chrome/tree/master/packages/serverless-plugin
serverless-plugin-chrome
need a suggestion what is the difference
serverless-plugin-chrome vs @sparticuz/chromium
https://github.com/adieuadieu/serverless-chrome/issues/177

serverless-chrome is a serverless plugin, but only supports up to chromium 88
alixaxel's chrome-aws-lambda support overriding puppeteer's functions as well as some other hooks, but the last version only supports puppeteer 10.1, chromium 92
@sparticuz/chrome-aws-lambda was my fork of alixaxel's repo, and continues compiling chromium supporting up to puppeteer 17.1.3, chromium 106
@sparticuz/chromium is ONLY chromium, not bundling puppeteer, or the overrides and hooks. This package can be used with any nodejs system. Puppeteer/playwright/etc... I'm biased, but I would use this. It seems to be the only one being actively maintained, currently supports up to chromium 108.


[travis] manually cache Mac builds to S3

Travis doesn't support caching in open-source Mac builds, so we'll do it ourselves.
this does basically what travis's casher does; it downloads a tarball from S3, extracts it into the cache directory, runs the build, then updates the tarball with the new contents of the cache directory. if anything changed, it uploads the new tarball back to S3.
this cuts the mac build time by about 10 minutes!

@facebook-github-bot import


Moved let to if expression ( this fixes #141 )

OK. This is better.  Thank you.
FYI, this error(E706) was removed in Vim 7.4.1546.


fix: DropCollections waits for all

Fixes dropCollections to wait for all the collections to be dropped before resolving the promise.
What type of PR is this? (check all applicable)

[ ] Refactor
[ ] Feature
[x] Bug Fix
[ ] Optimization
[ ] Documentation Update

Description
The dropCollections was not waiting for all the collections to be dropped before resolving. This was causing a race condition.
Related Tickets & Documents

Related Issue #
Closes #

Added/updated tests?

[ ] Yes
[ ] No, and this is why: please replace this line with details on why tests
have not been included
[ ] I need help with writing tests

Is this change backwards compatible?

[x] Yes
[ ] No, and this is why: please replace this line with details on why?

Does it require updates to Tigris docs?

[ ] Yes, and here is the link: please create an issue in tigris-docs repo
and link here as tigrisdata/tigris-docs#123
[x] No

[optional] Are there any post deployment tasks we need to perform?

Codecov Report
Patch coverage: 20.00% and project coverage change: +0.08 :tada:

Comparison is base (8274d62) 90.44% compared to head (521ea4d) 90.52%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #319      +/-   ##
==========================================
+ Coverage   90.44%   90.52%   +0.08%
==========================================
  Files          29       29
  Lines        5493     5488       -5
  Branches      653      653
==========================================
  Hits         4968     4968
+ Misses        524      519       -5
  Partials        1        1

Impacted Files
Coverage Δ

src/db.ts
93.69% <20.00%> (+1.04%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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


Allow to use macOS services via keybindings

I have the exact same problem as unnamedcrewman reported here. I'm trying to use a keyboard shortcut that calls a system service which in turn invokes a productivity tool called PopClip on mac OS. As unnamedcrewman mentioned, the shortcut and service work in every application I tried except for VS Code. Unfortunately, the linked issue was closed even though the problem persists.
Could someone perhaps look into this again?

If someone has ideas how to make this happen, feel free to chime in.

This actually seems to work fine when I select text in a native input field in VSCode, but not when selecting text in the editor, so I suspect this is due to the way how we have a virtual selection with a hidden text area
//cc @rebornix

/duplicate https://github.com/microsoft/vscode/issues/27799


npm audit moderate vulnerability

This mirrors a security problem that exists in the forked package. Is there a chance you can fix it? https://github.com/jonschlinkert/markdown-toc/issues/135

+1

Pull request welcome! #hacktoberfest


Module build failed: Error: unsupported type for static module: UnaryExpression

https://gist.github.com/aakilfernandes/4d3c26d41aec0668507498b1600d8020
I'm getting this when I try to require https://github.com/ipfs/js-ipfs-api

fixed in https://github.com/browserify/static-module/pull/33


Incorporating some Functional Programming Concepts

Hi Everyone,
After looking through the FloatTensor.Ops.cs file and trying to add a few functions, I was thinking that incorporating some functional programming ideas could help increase productivity. For example building a handful of higher order functions could help make our code more adaptable to changes. To illustrate this idea a bit I have written a few such functions here:
https://github.com/galletti94/OpenMined/blob/master/Assets/OpenMined/Syft/Tensor/FloatTensor.Ops.cs
The idea is that if we now want to add Homomorphic Encryption, parallelism, exceptions, etc to all the tensor functions, we need only change the main combinators (map(), filter(), fold() etc). And if we change our minds about whether each function should mutate the input or produce a new tensor, we can easily change that too.
What do you guys think of this approach? Let me know your thoughts!

That's a great question! It is true that with functional programming often comes adverse effects on performance. After doing some research on C#, I think these effects are minimal with the way we wrote our functions. Let me try and walk through the Map() example. We have the following:
   `public FloatTensor Map(Func<float, float> f)
    {
        FloatTensor output = new FloatTensor (this.shape, dataOnGpu);
        if (dataOnGpu) {
        return this;   //just a placeholder
        } else {
            for (int i = 0; i < size; i++) {
	    output.data [i] = f(this.Data [i]);
	}
	return output;
        }
    }`

And we declare:
   `public FloatTensor ScalarMultiplication(float scalar)
    {
        return this.Map((x) => x*scalar);
    }`

The lambda function (x) => x*scalar will be bound to the variable f of the Map function. It looks like the only time this binding happens is when the function is called. Here because we are not making a recursive call to map (which would be the typically FP way of writing such a function) this binding only happens once. So it seems like the only overhead we will experience from this approach should not propagate through the for loop. I will run some tests just in case :)

@emregoynugur Shouldn't' this be closed?
@galletti94 We tested the performance with both approaches (functional and non-functional), and it was much faster when using non-functional programming (probably there's a better term for this).

Good to know - thanks for letting me know! Ill close this issue now


Add state preparation

Context:
To support state preparations on hardware, a conversion from a state to a series of gates is necessary. This is achieved i.e. using the Möttönen state preparation.
Description of the Change:
This pull requests adds two new methods to the PennyLane template section:

BasisStatePreparation: simply apply PauliX gates to all wires that have a 1
MottonenStatePreparation: use the Möttönen state preparation to construct an arbitrary state

Both functions also work on subsets of wires.
Benefits:
Plugins can now easily implement state preparations on hardware by simply resorting to the above templates.
Possible Drawbacks:
None.
Related GitHub Issues:
#273

Thanks for this @johannesjmeyer. A BasisStatePreparation template is actually really useful as well!

This is now ready for review.
One thing that confused me was that the state preparation will always yield states that have a very high fidelity compared to the input state (this is also what I am testing right now), but the state vectors will look rather different. Is this a behaviour that was anticipated?

I applied the review suggestions and implemented the graycode myself (which was actually a one-liner) and removed the sympy dependence.
Concerning the points you raised:

It might be worth adding a default.qubit integration test to ensure that the probabilities are identical.

Yes, this is a very good idea. I'll do that!

A separate thought I had: since the QNode knows what operations the device supports, it could seamlessly use the template in the background if qml.BasisState or qml.QubitStateVector is not supported. This allows plugins to continue to use their own decompositions if available, but allows those without to still support it.

I'd leave this to the plugins actually. If they want to support qml.QubitStateVector and qml.BasisState then they can use the templates. But maybe this is not desirable, so I would not make it an automatism.

I added a probability vector test.

Thanks @antalszava, I applied your suggestions!


Ask for contributing

This is not a report issues.
Hello developpers of cordova-plugin-photos.
I am Jérémy im developper for canal+ in France.
I have forked your project for fix differents bugs and remove differents callbacks unused.
If possible i want contribute in your project library with your rules for sure.
Contact me<EMAIL_ADDRESS>Good day !

Hi Jeremy
Just make a pull request in GitHub. I’ll verify and apply or reject with comments.
Anyway, thank you for your contributions!
—
Sincerely,
Max

On Apr 16, 2020, at 07:53, jguyet<EMAIL_ADDRESS>wrote:
This is not a report issues.
Hello developpers of cordova-plugin-photos.
I am Jérémy im developper for canal+ in France.
I have forked your project for fix differents bugs and remove differents callbacks unused.
If possible i want contribute in your project library with your rules for sure.
Contact me<EMAIL_ADDRESS>Good day !
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Hello everyone, this code
Photos.image(photo.ID,
    function(data) {
       console.log(data)
    },
    function(error) {
        console.error("Error: " + error);
    });

with the proper photo.id return by this code
Photos.photos(
    function(photos) {
        console.log(photos);
    },
    function(error) {
        console.error("Error: " + error);
    });

does not works, i've this error Photo ID is undefined
@jguyet  even with your fork i've the same error

@ishigo1987 Why photo.ID? Object's properties in JS are case-sensitive. If you retrieved a  photo object by Photos.image() function then you have to address image ID as photo.id.


Unable to get $OriginalVM.StorageProfile.OsDisk.Vhd.Uri

I am unable to get $OriginalVM.StorageProfile.OsDisk.Vhd.Uri, this is what I have when I call $OriginalVM.StorageProfile.OsDisk
OsType             : Windows
EncryptionSettings :
Name               : XXXXX-XXXXX-VM1_OsDisk_1_355a93a755a442d38e7915fcdb98d1c6
Vhd                :
Image              :
Caching            : ReadWrite
CreateOption       : FromImage
DiskSizeGB         : 128
ManagedDisk        : Microsoft.Azure.Management.Compute.Models.ManagedDiskParameters

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

ID: 7eed234f-9a8d-4c1b-2368-fe4c8fbe8299
Version Independent ID: 876980d5-e42c-b070-c0a6-73ed3f2c91d1
Content: Change a VMs availability set | Microsoft Docs
Content Source: articles/virtual-machines/windows/change-availability-set.md
Service: virtual-machines-windows
GitHub Login: @Drewm3
Microsoft Alias: drewm

I guess it is because I use Managed Disks instead of storage account.

@thomasmktong Thank you for your feedback! We will investigate and get back to you with our findings.

@thomasmktong you are correct. This doc is made specifically for Virtual Machines that were not created as managed disks. Good find and I think we should call this out on the doc to begin with.
You should be able to follow the this script to achieve what you are looking to do using Manged Disks:
# To login to Azure Resource Manager
Login-AzureRmAccount

# To view all subscriptions for your account
Get-AzureRmSubscription

# To select a default subscription for your current session
Get-AzureRmSubscription –SubscriptionID ‘SUBSCRIPTONID’ | Select-AzureRmSubscription

#Fill in all variables
$subid = “SUBSCRIPTION ID”
$rgName = “RESOURCE GROUP NAME”;
$loc = “LOCATION”;
$vmSize = “SIZE”;
$vmName = “DESIRED VM NAME;
$nicName = “NIC NAME”;
#$avName = “AV SET NAME”;
$osDiskName = “OS DISK NAME”;
$osDiskResouceId = “OS DISK RESOURCE ID”;
#$dataDiskName = “DATA DISK NAME”;
#$dataDiskResourceId = “DATA DISK RESOURCE ID”;

#Comment/uncomment based on feature needs

#No AV Set
$vm = New-AzureRmVMConfig -VMName $vmName -VMSize $vmSize;
#AV Set
#$avSet = Get-AzureRmAvailabilitySet –Name $avName –ResourceGroupName $rgName;
#$vm = New-AzureRmVMConfig -VMName $vmName -VMSize $vmSize -AvailabilitySetId $avSet.Id;

#Get NIC Resource Id and add
$nic = Get-AzureRmNetworkInterface -Name $nicName -ResourceGroupName $rgName;
$vm = Add-AzureRmVMNetworkInterface -VM $vm -Id $nic.Id;

#Windows VM
$vm = Set-AzureRmVMOSDisk -VM $vm -ManagedDiskId $osDiskResouceId -name $osDiskName -CreateOption Attach -Windows;

#Linux VM
#$vm = Set-AzureRmVMOSDisk -VM $vm -ManagedDiskId $osDiskResouceId -name $osDiskName -CreateOption Attach -Linux;

#Data Disks – optional
#Add-AzureRmVMDataDisk -VM $vm -ManagedDiskId $dataDiskResourceId -Name $dataDiskName -Caching None -DiskSizeInGB 1023 -Lun 0 -CreateOption Attach;

New-AzureRmVM -ResourceGroupName $rgName -Location $loc -VM $vm

Taken from here: https://blogs.technet.microsoft.com/mckittrick/how-to-rebuild-from-an-existing-managed-disk/
@Drewm3 can you take a look at this article and considering adding a note that the steps mentioned are for Non-Managed disks?

This script allways create a windows VM type, how i can create a linux type?
Maybe its necessary to use Set-AzureRmVMOperatingSystem

I had not seen the flag, sorry. Everything is alright now! Thank you

#please-close @thomasmktong thank you for the feedback. We are going to add an item to our backlog to document doing this with managed disks for Windows and Linux. Thanks again!


Not passing openAIApiKey to OpenAIEmbeddings constructor throws error

First of all, great work on this library 👏, I find my self using it every other day and it works great.
Now for the issue, I kept getting this error that had me scratching my head for a while: (Azure) OpenAI API key not found. At first I wasn't sure why I was getting this error because when instantiating the model I passed in the api key as such:
const model = new OpenAI({ openAIApiKey: "key" });

I was also using the OpenAIEmbeddings class, and it took me a while to realize that I also have to pass the api key when instantiating this class as such:
 new OpenAIEmbeddings({ openAIApiKey: "key" })

By doing this I was able to get rid of the aforementioned error.  I must say I'm not sure if this is actually an issue or it's the intended behaviour, but I was unable to find any documentation about this.

Hi @rodgetech I believe this is as designed, if you don't pass it an API key it won't work as an api key is required to call the openai api


Fix travis errors

This PR is meant to fix the Travis validation error that has appeared due to something changing on the Travis side.
Please don't approve until the PR actually validates.

\o/
Please approve.
To the one merging this: please squash the commits so my bumbling trial and error attempts at subverting Travis java handling instead of reading documentation aren't made part of the historical record of OPTiMaDe :)


Revert recent foundation commits that cause source compatibility failure

@swift-ci please smoke test

@phausler I have to revert these commits because they seem to fail several compatibility tests. https://ci.swift.org/job/swift-master-source-compat-suite/748/

please do not merge this...

The failure is not in Data, but in Sequence and RangeReplaceableCollection.
cc @airspeedswift

@swift-ci Please Test Source Compatibility

These are the only commits from where the bot starts to fail. Let's test source compatibility here to see if the reverting fixes the tests.

We're still working on this.

#10803 is the preferred method to fix this, plus I added a unit test to verify the expected behavior for that incompatibility

@phausler it will be great to test source compatibility in PR before merging. Thank you!


feat: support transient identities and traits

This PR supersedes #54 and apples all of the fixes for the comments made on that PR.
Note that as part of this PR, I have started to use more functionality of the mockServer class in the tests. I would love to move all of the tests eventually to use when(...).respond(...) but that was out of the scope of this PR. This PR focuses solely on implementing the transient attribute where necessary and writing it's own tests.

Closes #52