Routes do not respect the order they are defined

The documentation states:

Routes are matched in the order they are defined. The first route that matches the request is invoked.

Nevertheless the following code
import static spark.Spark.get;

public class HelloWorldService {
  public static void main(String[] args) {
    get("/hello", (req, res) -> "Hello World");

    get("/hello/:varname", ((req, res)
      -> "Hello " + req.params("varname")));

    get("/hello", "text/html", (req, res)
            ->  "<!DOCTYPE html>
" +
            "Hello World
");
  }
}

behaves as follows:
$  wget -qO- "http://localhost:4567/hello"
Hello World⏎
$ wget -qO- "http://localhost:4567/hello" --header "Accept: text/html"
<!DOCTYPE html>
Hello World
⏎

Following the documentation I'd expect the second request should also return the plain/text response unless the order of the get() is reversed.

No issue here. you are specifically specifying to accept html in the second request. To accept just text you need to specify "text/plain" in the header.

No issue here. you are specifically specifying to accept html in the second request. To accept just text you need to specify "text/plain" in the header.

@franklinexpress I found it rather convenient to work the way it is. The javadoc doesn't state anything about defaults. Diving into the Code of get(path, route) reveals a */* as content type which I would read as catchall.

I see, but I thought this was an HTTP thing. Isn't the default content-type text/plain when not specified? I'm not on my laptop now but I thought it was an RFC822 thing. but don't hold me to it because I'm not sure, I just didn't think it had anything to do with the framework. Maybe you are correct though.
Sent from my iPhone

On Nov 5, 2015, at 1:08 AM, Benjamin Schmid<EMAIL_ADDRESS>wrote:
@franklinexpress I found it rather convenient to work the way it is. The javadoc doesn't state anything about defaults. Diving into the Code of get(path, route) reveals a / as content type which I would read as catchall.
—
Reply to this email directly or view it on GitHub.


Nokia Lumia 930 is detected as apple device

The Nokia Lumia 930 device is recognized as apple device when checking "isMobile.apple.device"

@stenit Hi, thanks for reporting this. Any way you can provide the user agent for your Lumia device?

Hmm a quick Google search reveals that the device pretends to be both Android and iPhone by including those strings in its user agent: http://wmpoweruser.com/wp8-1-update-1s-ie-user-agent-pretends-to-be-android-4-0-and-ios-7-good-enough-to-fool-gmail/

It might relevant to #36

Closing as the phone's user agent tries to be everything. The downside of UA sniffing.


fix: carry existing container secret config over

Description of changes

When a customer selected "don't update secrets" when deploying changes to a containers resource, the existing secrets config was removed rather than retained. This change adds logic to parse the existing secret config and apply it to the updated template
Issue #, if available

https://github.com/aws-amplify/amplify-cli/issues/6669
Description of how you validated changes
Manually tested and added unit tests
Checklist

[x] PR description included
[x] yarn test passes
[x] Tests are changed or added

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

Codecov Report

Merging #7224 (300fed2) into master (ec1613e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #7224   +/-   ##
=======================================
  Coverage   52.28%   52.28%
=======================================
  Files         491      491
  Lines       25242    25242
  Branches     4952     4952
=======================================
  Hits        13199    13199
  Misses      11091    11091
  Partials      952      952

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 ec1613e...300fed2. Read the comment docs.


[WIP] Include Python 3.8 images

Checklist

[ ] Affected Issues have been mentioned in the Closing issues section
[ ] Documentation has been written/updated
[ ] PR title is ready for changelog and subsystem label(s) applied

Changelog Entry
Add images for use of Python 3.8
Closing issues
TBC

Ugh - this has just gave me a flashback - as soon as Alpine shifted their Python3 package from 3.7 to 3.8, we've inadvertently also installed 3.8 alongside in our 3.7 images...
(because we use python dockerhub images, but then use apk to add packages
https://github.com/amazeeio/lagoon/blob/master/images/python/Dockerfile#L37-L38)
We'll have to rethink our use of apk here (I foreshadowed this in https://github.com/amazeeio/lagoon/pull/1531#issuecomment-604721771)
python:/$ apk info | grep python3
python3
python3-dev
python:/$ which python
/usr/local/bin/python
python:/$ find / -name python
/usr/local/bin/python
python:/$ /usr/local/bin/python -V
Python 3.7.7
python:/$ find / -name python3
/usr/bin/python3
/usr/local/bin/python3
python:/$ /usr/local/bin/python3 -V
Python 3.7.7
python:/$ /usr/bin/python3 -V
Python 3.8.2

In regards to https://github.com/amazeeio/lagoon/pull/1531#issuecomment-604721771, my vote would go to supporting one version via the system package manager...
Package management is tricky but if you are managing system packages along-side language specific package managers, maintenance is a lot better when using the system package manager....


I want to get a culture trigger description, Am I not doing it right anywhere?

I want to get a chinese description of the trigger。
but the ToString() seems not work.

and in your document:

I have get the newest code  and add the zh-CN  resources.

Add to my question again.
I want to make a WindowsService which can scanning and collect information about all the task on the current computer.

Thank you for your reply, your advice I have try early when I when I finished decompile the DLL, but it was dosn't work.
And then I have solved this problem about an hour ago.
it's caused by I didn't create a folder to contains the resouce.dll
like this:
before:

after:   fixed.

I was going to close the question tomorrow, but I got your email, so I'd better get back to it now.
Thank you again for your reply.


highlight shortcode makes code very hard to read

This is basically unreadable!

Simply removing some css turns it into this, much better.

I can submit a PR with the CSS I removed, but It might make more sense to change the CSS to play nice with both backtick code blocks and highlight shortcodes.

Hey @maxbla, thanks for filing this issue — I'm not much of a shortcode user in Hugo, so this was in my blindspot. Great catch!
I'm having a little trouble finding many shortcodes in the Hugo docs for code. Is this coming from the {{< gist >}} shortcode? If you can help me reproduce this, then it'll be quicker to fix. 🙂

It is coming from the hightlight shortcode. The screenshot was generated with the following markdown
{{< highlight python >}}
def log_2(num):
    """
    Integer logarithm base 2. Returns the integer part of the log base 2
    """
    iterations = 0
    while(num > 1):
        num = num >> 1
        iterations += 1
    return iterations

def ln(num):
    """
    Approximates the natural logarithm of an integer
    Error is bounded by 1/binary_log_e ~ 0.69
    Uses the change of base formula
    """
    binary_log_e = 1.442695040888  # log base 2 of e
    return log_2(num)/binary_log_e

def pi(num):
    """
    Approximates the prime counting function
    """
    return num//(int(ln(num)))

{{</highlight >}}

Let me know if you can't reproduce my screenshots, and I can give your more info.

I just realized I referenced this in #78:

Code blocks in general could be improved, as they don't play very nicely with Hugo's highlight shortcodes either.

Originally posted by @AngeloStavrow in https://github.com/AngeloStavrow/indigo/issues/78#issuecomment-587666053
It's probably worth tackling both issues at the same time.

I decided #78 wasn't applicable because the title specifically mentioned MS edge. Maybe the MS Edge suffix could be removed.
Would you find it useful for me to post the CSS change and the screenshots in that issue instead?

Nope, no worries for that! You made the right choice to open a new issue, as they're materially different issues. 🙂
Both problems just happen to involve the same bit of my less-than-awesome CSS. 😂


Add 'PRE17' makefile variable for proper compilation with OTP >= 17.0

This PR fixes #75 without relying on rebar.

Looks good! Thanks!


[FR] can there be added an option to install dot net framework 3.5 automatically?

PS: I flash windows on a lot of PCs and most of them need this framework for various purposes, and it really is hectic to install it in each PCs since I batch install

Not tested but something like that i think:
<unattend xmlns="urn:schemas-microsoft-com:unattend">
  <settings pass="windowsPE">
    <component name="Microsoft-Windows-NetFx3-OnDemand-Package" processorArchitecture="*" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
      <settings>
        <component name="NetFx3" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="*">
          <enable>true</enable>
        </component>
      </settings>
    </component>
  </settings>
</unattend>

@Subhashis2007 can you test out @Syntax3rror404 script and see if it works for you?

For sure, I'll try today.

@memstechtips @Syntax3rror404  I added it before audit user part and it simply resulted the iso into this,

my unattended.xml
https://hastebin.skyra.pw/kewuvofiyu.htm

Hmmmm if this not works, we can try it with dism like that:
Offline, but needs the cab containing the req files.
DISM /Image:C:\test\offline /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:D:\sources\sxs
OR
Online, needs internet connection.
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All
Source: https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/deploy-net-framework-35-by-using-deployment-image-servicing-and-management--dism?view=windows-11
@memstechtips do you know, if the microsoft images containing the .net framework 3.5? If yes we sould be able to add the offline dism command to the powershell scripts????

@memstechtips do you know, if the microsoft images containing the .net framework 3.5? If yes we sould be able to add the offline dism command to the powershell scripts????

It does, I know for sure. Since this exists

In your link the source of .net framework is the network:

To install .NET Framework 3.5 from installation media located on a network share, use the following command:
PowerShell
Install-WindowsFeature Net-Framework-Core -source \network\share\sxs
Where \network\share\sxs is the location of the source files.
For more information about the Install-WindowsFeature cmdlet

Source: https://learn.microsoft.com/vi-vn/windows-hardware/manufacture/desktop/enable-net-framework-35-by-using-windows-powershell?view=windows-11

Source: https://learn.microsoft.com/vi-vn/windows-hardware/manufacture/desktop/enable-net-framework-35-by-using-windows-powershell?view=windows-11

check this

Ok, then we can try this. Not tested hope this works. I can test it tomorrow.
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
            <RunSynchronous>
                <RunSynchronousCommand wcm:action="add">
                    <Order>1</Order>
                    <Description>Install .NET Framework 3.5</Description>
                    <Path>DISM /Image:C:\test\offline /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:D:\sources\sxs</Path>
                </RunSynchronousCommand>
            </RunSynchronous>
        </component>
    </settings>
</unattend>

Or something like this to get near to your example in your link:
<!-- Command File Template for DISM Execution -->
<File path="C:\Windows\Setup\Scripts\install_netfx35.cmd"><![CDATA[
@echo off
Title Installing .NET Framework 3.5
:: Check if sources are available
for %%I in (D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist "%%I:\\sources\sxs\microsoft-windows-netfx3-ondemand-package.cab" set setupdrv=%%I
if defined setupdrv (
    echo Found source drive %setupdrv%
    echo Starting .NET Framework 3.5 installation...
    Dism /online /enable-feature /featurename:NetFX3 /All /Source:%setupdrv%:\sources\sxs /LimitAccess
    echo Installation complete.
) else (
    echo No installation media found. Please ensure the Windows installation media is inserted.
)
pause
]]>
</File>

<!-- Additional settings for system customization as previously structured -->
<Extensions>
    <File path="C:\Users\Default\AppData\Local\Microsoft\Windows\Shell\LayoutModification.xml"><![CDATA[
    <LayoutModificationTemplate Version="1" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification">
        <LayoutOptions StartTileGroupCellWidth="6" />
        <DefaultLayoutOverride>
            <StartLayoutCollection>
                <StartLayout GroupCellWidth="6" xmlns="http://schemas.microsoft.com/Start/2014/FullDefaultLayout" />
            </StartLayoutCollection>
        </DefaultLayoutOverride>
    </LayoutModificationTemplate>
    ]]></File>
</Extensions>
</unattend>

I haven't tested your script yet but I think we have 2 choices:

Either write a script that automatically downloads and installs .NET FX 3.5 during the OOBE phase (This will require an internet connection)
Download the .NET FX 3.5 package and add it to your ISO with AnyBurn. Then include a command in the answer file that runs that package during one of the Windows installation phases.

Thoughts?

It looks to me, that .Net 3.5 is offline available.
See link from @Subhashis2007 https://winaero.com/how-to-offline-install-net-framework-3-5-in-windows-11-with-dism/
The batch script is also from this side. I think to call this script in the setup should work?!

I haven't tested your script yet but I think we have 2 choices:

Either write a script that automatically downloads and installs .NET FX 3.5 during the OOBE phase (This will require an internet connection)
Download the .NET FX 3.5 package and add it to your ISO with AnyBurn. Then include a command in the answer file that runs that package during one of the Windows installation phases.

Thoughts?

it is better offline, since the package already exists inside the iso

The batch script is also from this side. I think to call this script in the setup should work?!
the script looks good tho. and it is dynamically detects installation drive. I'll try and tell.

.NET 3.5 auto enabled in https://github.com/memstechtips/UnattendedWinstall/commit/a9348a19ad425bb840c2a3e4e67501a81715ef66

.NET 3.5 auto enabled in a9348a1

thanks a lot,


Docs: disable printing of hrefs

Fixes #18711.

Having skimmed the referenced issue, sounds reasonable to me.


Fix heading typo and translate "Dropdowns"

line 5: Corrected spelling of desplegables in ##Listas desplegables
line 7:  translated "dropdowns" to "menús desplegables"

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Congrats @raulrd3 on your first pull request (PR)! 🎉
Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 📝


Add function to convert an answer set back to a nested data structure

Should be the inverse of dict_to_facts in fact_utils.

def facts_to_dict(facts: List) -> Mapping:
    """
    A generic decoder that converts an answer set into a nested data structure
    """
    pass

Let's call it answer_set_to_dict and take in a list of Symbols (https://potassco.org/clingo/python-api/5.4/#clingo.Symbol).

Let's call it answer_set_to_dict and take in a list of Symbols (https://potassco.org/clingo/python-api/5.4/#clingo.Symbol).


Issue #3486 fix broken unit tests

Related issues

closes #3486
Short description and why it's useful

Enables Unit Tests to use mountMixinWithStore, and mountMixin from test > unit > utils.
Instead of using "import" and relative paths, node "require" is used instead. This is to make allowances if the /core gets moved in the future.
Screenshots of visual changes before/after (if there are any)

Which environment this relates to
Check your case. In case of any doubts please read about Release Cycle

[x] Test version (https://test.storefrontcloud.io) - this is a new feature or improvement for Vue Storefront. I've created branch from develop branch and want to merge it back to develop
[ ] RC version (https://next.storefrontcloud.io) - this is a stabilisation fix for Release Candidate of Vue Storefront. I've created branch from release branch and want to merge it back to release
[ ] Stable version (https://demo.storefrontcloud.io) - this is an important fix for current stable version. I've created branch from hotfix or master branch and want to merge it back to hotfix

Upgrade Notes and Changelog

[x] No upgrade steps required (100% backward compatibility and no breaking changes)
[x ] I've updated the Upgrade notes and Changelog on how to port existing VS sites with this new feature

IMPORTANT NOTICE - Remember to update CHANGELOG.md with description of your change
Contribution and currently important rules acceptance

[x] I read and followed contribution rules
[x] I read the TypeScript Action Plan and adjusted my PR according to it
[x] I read about Vue Storefront Modules and I am aware that every new feature should be a module

This is funny I just checked this and I don't have a problem with the newest develop branch to run the tests.
And I am not 100% sure why it should work for me without the changes from this PR.
Do I need to use npm to install all packages that it is broken?
Maybe with some info I can help you to have them work for you without the changes from your pr.

@ResuBaka
My Dev set-up is the manual install using Docker, both for StoreFront and StoreFront-API.
I also did a (local) amendment to the DockerFile to make a 'node_modules' volume, so that they would be visible to my IDE, and of course, to Jest. (Maybe this should be a new Issue...??)
Anyways, on checking the '@vue-storefront' node module, the unit-tests/utils directory is gone.
But the utils is now in the main repo. Hence, why I submitted this PR.

@David-Dorr did you ran yarn first hand? It's creating the folders/links for virtual modules @vue-storefront/*; we can't run npm install we need to run yarn install instead

Let me run some tests locally,
For example, delete the node_modules directory, re run the docker image, and try with yarn.. etc.

I will close this Pull request.
This is not the correct solution. In short, there are some symlinks missing from the "@vue-storefront" node module when using the Docker installation


Clean partial_pipeline session in auth_process view

In case that partial_pipeline is saved in session it making a race condition and various bugs depending on user pipeline functions. It looks like that the root cause is the existence of the session data.
One example is with a form for additional data in a middle of pipeline. Similar like in example app. If a user does not complete the registration process and wants to authenticate with a different backend, there is a race condition (and/or one bug related to multiple keyword argument pipeline_index in calling backend.continue_pipeline in auth_complete in views.py).
It would be expected to clean partial_pipeline session on starting new authentication. One of the solutions is to add:
    try:
        del request.session[setting('SOCIAL_AUTH_PARTIAL_PIPELINE_KEY',
                                    'partial_pipeline')]
    except KeyError:
        pass

to auth_process in views.py.
Best,
Janos

Duplicate of #271, this changeset fixed the issue https://github.com/omab/django-social-auth/commit/7418ec96d36ac3f690dcda9ca3531a20bfc50f7b


Losing information when reading from existing file?

Hello,
my goal is to read any kind of Excel file (xlsx, xlsm, xlsb) and modify or add data to it and save it to disk. The file should contain all the changes that the original file that I am reading contains. I was able to figure out how to do that - so far so good. As mentioned in https://github.com/guyonroche/exceljs/issues/35 with the current version 0.2.3 I was not able to produce none corrupt file. So I switched to the older version 0.2.2.
Now I am able to write a file that can be opened with Excel but I lost for example all cell formatting styles e.g. colors. I was also trying a different library with the same result. One option would be to add the styles, if possible, back to the new written file. But a better option would be if I could just use the read file as my "template".
Kind regards,
ezintz

+1

+1

+1


executeCommandProvider fails with 'semantic.refactor.command' already exists with multi-root servers

When I tried to start multiple sourcekit-lsp servers, the vscode shows 'semantic.refactor.command' already exists.
This issue is similar to https://github.com/Microsoft/vscode-languageserver-node/issues/333, but I didn't call registerCommand. The registerCommand is called by the initialize function of client.ts.  https://github.com/Microsoft/vscode-languageserver-node/issues/333 says we should register command with uuid, but I didn't see client.ts doing the same thing.
I think client.ts should be patched
initialize(capabilities) {
        if (!capabilities.executeCommandProvider) {
            return;
        }
        this.register(this.messages, {
            id: UUID.generateUuid(),
            registerOptions: Object.assign({}, capabilities.executeCommandProvider)
        });
    }

Actually statically registering commands in a multi server setup will only work if we allow to pass a prefix to the client when created. Can't you use dynamic registration in our case?

I am following the example code at https://github.com/microsoft/vscode-extension-samples/blob/master/lsp-multi-server-sample/client/src/extension.ts
It doesn't provide any dynamic registration examples. Where can I find them?

An example is the ESLint server which registers the formatter dynamically. See https://github.com/microsoft/vscode-eslint/blob/master/server/src/eslintServer.ts#L1002
Ping if you have additional questions.

thx


Suggestions for pubspec.yaml

This can wait until later, but...
It would be nice to advertise the dartpad corresponding to each generated gist. Also, I'm not sure that "homepage" is the right word for where the gist is. For dart tutorial samples, the real homepage is either the dart-tutorial-samples repo or (probably better) the doc page with the embedded dartpad.
If we created custom fields for the gist and dartpad locations, would anything bad happen? I'm thinking instead of this:
homepage: http://gist.github.com/kwalrath/a0d6042d97b7e71347c2

Have this:
gist: http://gist.github.com/kwalrath/a0d6042d97b7e71347c2
dartpad: https://dartpad.dartlang.org/a0d6042d97b7e71347c2

It might not be a bad idea for us to add a homepage entry (by hand):
homepage: https://www.dartlang.org/docs/dart-up-and-running/ch02.html
gist: http://gist.github.com/kwalrath/a0d6042d97b7e71347c2
dartpad: https://dartpad.dartlang.org/a0d6042d97b7e71347c2

What do you think?
/cc @sfshaza

sounds good to me, should work now like that

Cool. Thanks!!


Expo Supported?

I would like to know if it's supported by the expo. i read the docs but I didn't find any clue that's expo supported

This library is deprecated. Use [react-native-google-mobile-ads][0] instead.
Please migrate to the [new library][0] if you were using this library as this library is no longer maintained. Now more stronger features are available in the [new library][0].


Console.Out not displayed in output panel

If a test writes to Console.Out (or Debug.Write) then that output does not appear in the output pane of the test runner.
VS2015
R# Ultimate 10.0.2
resharper-xunit 2.3.2

You don't mention the version of xUnit.net you're using, but I'm assuming it's 2.x. The release notes for 2.0 mention this:

Test Output
In xUnit.net v1, we captured output written to standard output, standard error, the debug channel, and the trace channel, and we surfaced this output up to the test runners (which displayed them in a way that was appropriate to the test). In addition, the output was placed into the XML output, if you saved the result of your test runs.
With xUnit.net v2, we have stopped capturing these sources. The primary reason is that these are shared resources, and it's impossible to know which of the many unit tests running in parallel might be writing to the console or the tracing system. Instead, tests can accept ITestOutputHelper as a constructor argument, and use that to provide output that is reported up to the runners (and placed into the XML results). It can be used from the constructor, from within the test, and from within IDisposable.Dispose() (if it's defined).
For more information on using test output, please see the TestOutputExample sample project.

What Brad said :) If you're not using xunit2, then please reopen.

Apologies for my slow response. Christmas time.
I'm using 2.1.0. Using ITestOutputHelper works, thanks. I understand the problem it's trying to solve, and it's an elegant solution to that problem. Would be great if it could be more discoverable. Perhaps the test runner could notice anything appearing on stdout/stderr and suggest using this technique.


Generic efficient BDD representation

Previously, the generic BDD implementation was implemented with an additional function argument in gen_bdd.erl. This is not good according to the efficiency guide, as function calls are slower if the caller is a Variable.
BDDs are now implemented with macro expansion, which allows for the old implementation of substitution to be used. Substitution is now much faster now. Modules are also smaller in size.
Runtime for tests that are currently ignored:

Function
main (6a43e0c)
generic-fast-bdd

list_pattern_02
5.0s
0.3s

list_pattern_07
6.4s
3.0s

some_fun
5.2s
2.3s

fun_local_03
383.2s
79.3s

fun_local_04
2315.0s
96.0s

fun_local_02_plus
8.4s
4.2s

my_plus
92.1s
31.1s

Ready to rebase and merge @skogsbaer


[gossiper] Ignore received ChannelAnnouncements for own channels

Fixes https://github.com/lightningnetwork/lnd/issues/4690

hmm unit tests are unhappy

hmm unit tests are unhappy

Uh, yeah need to fix the unit tests.

Uh, yeah need to fix the unit tests.

Needs a rebase!


Feature request: Set default tags for the provider

Summary
Add provider settings to define one or more tags that get added by default to resources.
Use cases
Default tags would provide several useful use cases:

Set a tag like "terraform-managed" to see that Terraform manages the 1Password object
Set a tag to identify which service/repository etc the resource belongs to/is used by

Proposed solution

Define optional default tags in the provider settings
Default tags are merged together with any tags defined in the resource

Example format:
provider "onepassword" {
  default_tags {
    tags = ["foo", "bar"]
  }

Given a resource like this, the finalized set of tags for the resource would be ["foo", "bar", "baz"].
resource "onepassword_item" "example" {
  tags = ["baz"]
}

Is there a workaround to accomplish this today?
None I'm aware of.
References & Prior Work

Default tags in the AWS Terraform provider

Generally the workaround for this is something like
`locals {
op_default_tags = ["foo", "bar"]
}
resource "onepassword_item" "example" {
tags = concat(local.op_default_tags, ["baz"])
}
`
So if you are managing multiple items, you need only define the tags in one place.


Have a list of available GC machines via API

At the moment not all Google Cloud instances are available via API, and there is not documented anywhere which type of instance are available via API.
There needs to be a function with all a list of available instances, or at least a documentation to which the users can refer to and learn more about the machines and their types, because Google documentation is not very intuitive.

Hey! I have done a hard-coded implementation of this with the CLI. In this way, users can understand the machines and the cores available.
However, it is not the best implementation since any update in the backend machines would imply a change here. So an endpoint would be required.
I can open a PR with that code, as a prototype and then we clean the interface to fetch from backend.
Moreover, related with this, having the information about the amount machines users can still launch would be super valuable. I will open an issue on that.

Closing this issue since it is now available on the Client via CLI, but will open soon one on the backend, to fetch this information from there or google.


Vampyrium not initializing, no effect on gameplay

Describe the bug
vampyrium has what appears to be 0 effect on my game apart from a active effect entitled vampirism which details the blood potency which is at 0 and feeding level which is also at 0 and does not appear to be affected by feeding or killing enemies via spell etc etc i have started 2 fresh games to see if it would change it. also apparently there's supposed to be a config book but i can find nothing of the sort
Save
Add a save to reproduce your problem. You can find them at Yggdrasil VR/profiles/Yggdrasil/saves.
Desktop (please complete the following information):

Yggdrasil VR version: 2.0-5? i think latest one on wabbajack
Storage type Yggdrasil VR is installed on: SSD
OS version: Windows 11
RAM: 31.2 gb
CPU: amd Ryzen 7945hx with radeon graphics
GPU: Nvidia RTX 4080 laptop gpu
Antivirus Windows Defender

Additional context
Add any other context about the problem here.

still no book but pars of the mod are available ie:sanctus vampir area and perk area but i havent gotten  single level

cant gain bloodpoints or progress tword a perk point

ive just decided to run w another pack i apologize

Just leave the issue open so I can investigate when I've got some time haha
enjoy :)


Additional link removed

:x: Validation status: errors

File
Status
Preview URL
Details

:x:Error

Details

[Error] Cannot sync git repo to specified state. Please make sure the pull request is mergeable. Details: Git merge results in conflict, repository remote url: https://github.com/MicrosoftDocs/OfficeDocs-SkypeforBusiness-Test-pr.es-es, working directory: W:\mhcp-s, target branch: master, target branch commit: b4eb6803aab9355e28188d361a03f8c7cb0bcc2f, source branch: 7aeca97f3b2cb3207d7d4d19a2ca6c10/US-1128069, source branch commit: .

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

server-2013/lync-server-2013-configuring-network-region-links.md
:white_check_mark:Succeeded
View

server-2013/lync-server-2013-create-network-region-links.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Parallel bible content update issue

In parallel bible reading initialy it fetches what user chosen on left side , then if do change on the left its updating the content on rightside.

Testing completed and the issue is fixed . The content is updating correctly. As discussed moving this issue to done.


Shortcut for Tab Switching [Feature request]

While using keyboard, moving your hand to your mouse repeatedly to switch between tabs might be disgusting after some time.
To solve this, adding shortcut like Alt+Right , Alt+Left or Alt+ 1,2,3... for switching between tabs might enhance the user experience.

Ctrl+(Shift)+Tab to switch between tabs.
Ctrl+Num(1-9) to quickly switch to specified tab.

Tab switching shortcuts are documented in home page.

I don't have numpad keyboard and ctrl + tab is bit hard to use. Ctrl + Left,Right might be better for ergonomics.

I don't have numpad keyboard and ctrl + tab is bit hard to use. Ctrl + Left,Right might be better for ergonomics.

Ctrl+(Shift)+Tab to switch between tabs.
Ctrl+Num(1-9) to quickly switch to specified tab.
This is basically following the standard used by most of the apps that supports tab switching.


[Azure Search] Add CatchPoint availability tests for all search service instances

If within 5 point timebox, add SEV3 alert. Otherwise, do alert later

I made Adhoc tests for all of them but they need to be formalized into Sev 2 eventually.


Fix auto-upgrade for apt

Description

Copy 20auto-upgrades file in all cases ( when system_packages_upgrade_unattended variable is true or false)
Enable or disable auto-upgrades with system_packages_upgrade_unattended variable

How to test
With molecule:
molecule test -p bookworm --destroy=never

Login to instance:
molecule login -h bookworm

When system_packages_upgrade_unattended variable is false
Run the following command in the instance:
sudo systemctl restart apt-daily-upgrade.service

Output:
bookworm systemd[1]: Starting apt-daily-upgrade.service - Daily apt upgrade and clean activities...
bookworm systemd[1]: apt-daily-upgrade.service: Deactivated successfully.
bookworm systemd[1]: Finished apt-daily-upgrade.service - Daily apt upgrade and clean activities.

Nothing happens
When system_packages_upgrade_unattended variable is true
Run the following command in the instance:
sudo systemctl restart apt-daily-upgrade.service

Output:
Oct 15 19:44:56 bookworm systemd[1]: apt-daily-upgrade.service: Consumed 39.215s CPU time.

Logs available in /var/log/unattended-upgrades/

Hi @mikinhas ,
Thanks for the contribution, please submit a merge request in the Gitlab please.
This repo is a mirror for Ansible Galaxy.


spirv-val: VUID-FragCoord-FragCoord-04212 interaction with PerVertexKHR

Hi,
I'm working on a bug in DXC related to SPV_KHR_fragment_shader_barycentric.
From what I gather, an input decorated with the PerVertexKHR becomes a an array of N elements, N being the number of vertices composing the primitive.
float4 frag(nointerpolation float4 position : SV_Position) : SV_Target {
    return GetAttributeAtVertex(position, 1);
}

Building this code yields this SPIR-V:
               OpCapability Shader
               OpCapability FragmentBarycentricKHR
               OpExtension "SPV_KHR_fragment_shader_barycentric"
               OpMemoryModel Logical GLSL450
               OpEntryPoint Fragment %frag "frag" %gl_FragCoord %out_var_SV_Target
               OpExecutionMode %frag OriginUpperLeft
               OpSource HLSL 610
               OpName %out_var_SV_Target "out.var.SV_Target"
               OpName %frag "frag"
               OpDecorate %gl_FragCoord BuiltIn FragCoord
               OpDecorate %gl_FragCoord Flat
               OpDecorate %out_var_SV_Target Location 0
               OpDecorate %gl_FragCoord PerVertexKHR
       %uint = OpTypeInt 32 0
     %uint_3 = OpConstant %uint 3
      %float = OpTypeFloat 32
    %v4float = OpTypeVector %float 4
%_arr_v4float_uint_3 = OpTypeArray %v4float %uint_3
%_ptr_Input__arr_v4float_uint_3 = OpTypePointer Input %_arr_v4float_uint_3
%_ptr_Output_v4float = OpTypePointer Output %v4float
       %void = OpTypeVoid
         %12 = OpTypeFunction %void
%gl_FragCoord = OpVariable %_ptr_Input__arr_v4float_uint_3 Input
%out_var_SV_Target = OpVariable %_ptr_Output_v4float Output
%_ptr_Input_v4float = OpTypePointer Input %v4float
     %uint_1 = OpConstant %uint 1
       %frag = OpFunction %void None %12
         %15 = OpLabel
         %16 = OpAccessChain %_ptr_Input_v4float %gl_FragCoord %uint_1
         %17 = OpLoad %v4float %16
               OpStore %out_var_SV_Target %17
               OpReturn
               OpFunctionEnd

So we have:
OpDecorate %gl_FragCoord BuiltIn FragCoord
OpDecorate %gl_FragCoord PerVertexKHR
%gl_FragCoord = OpVariable %_ptr_Input__arr_v4float_uint_3 Input %out_var_SV_Target = OpVariable %_ptr_Output_v4float Output
This seem to go in the direction of the extension spec, but SPIRV-val complains that we go against VUID-FragCoord-FragCoord-04212 as the variable decorated with FragCoord doesn't have the correct type.
I believe this is a "validation" error, but since not SPV_KHR_fragment_shader_barycentric nor VK_KHR_fragment_shader_barycentric relaxes the validation rules, maybe that's a spec issue?

My immediate thought is that I'm not sure that you're supposed to be able to use PerVertex on builtins at all, although the spec doesn't actually say that. GLSL doesn't allow this and the Vulkan spec only talks about matching PerVertex inputs with the user outputs of the previous stage. From an implementation point-of-view, these values are normally generated per-fragment, so it's not clear that the vertex values would be available, or possibly are even well-defined.
Having said all that, if this were to be allowed then yes, I think the array level would need to be removed first so that the value at each vertex follows the normal rules for what the value has to be (a vector of floats, in this case).

Which part of the spec limits PerVertexKHR to user inputs?
Reading:
https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_KHR_fragment_shader_barycentric.html
PerVertexKHR, which indicates that a fragment shader input will not have interpolated values, but instead must be accessed with an extra array index that identifies one of the vertices of the primitive producing the fragment

Seems like any vertex shader output can be forwarded to the fragment shader input as-is, including builtins..
(On the DXC side, the feature is mostly broken, so any decision is fine for me)

Which part of the spec limits PerVertexKHR to user inputs?

There isn't really one, as I said, but I think this was the intent, so the lack of a restriction would be a bug. Technically the spec does have the VUs:

The variable decorated with FragCoord must be declared as a four-component vector of
32-bit floating-point values

and

Variables with a Storage Class of Input in a fragment shader stage that are decorated with
PerVertexKHR must be declared as arrays

which would prohibit this, but if it is supposed to be banned then it should be much clearer.

Seems like any vertex shader output can be forwarded to the fragment shader input as-is, including builtins.

The problem is that some of the fragment shader builtin inputs do not have corresponding vertex shader outputs. I can imagine that FragCoord is supposed to match Position from the vertex stage, which mostly makes sense (although the viewport transform, etc come between them), but something like FrontFacing doesn't have a corresponding vertex output.
My implementation doesn't support this extension at the moment, but it would be disproportionately expensive for us to provide access to these not-quite-vertex-outputs at each vertex.

I guess @gnl21 summed up my thoughts... I guess from my reading of just the spec, spirv-val is doing what it should... maybe @stu-s (being the champion of VK_KHR_fragment_shader_barycentric) might know if this is a spec oversight or intended

Right, thanks!
So to recap, PerVertexKHR shall only be used on used-defined outputs, and no builtins at all. I can work with that on the compiler side :)

I guess @gnl21 summed up my thoughts... I guess from my reading of just the spec, spirv-val is doing what it should... maybe @stu-s (being the champion of VK_KHR_fragment_shader_barycentric) might know if this is a spec oversight or intended

As @gnl21 said, it's possibly missing a restriction.  I don't think it was intended, though I didn't really touch this bit of the spec in the  move from NV to KHR other than the "missing vertex" stuff.


Eliminate code duplication

We have a lot of duplicated code.  Obviously, we need to decide exactly what the target should be, but we're currently exceeding any reasonable target.
Using this tool with the following command produced this output.
pmd cpd --language swift --ignore-literal-sequences --ignore-literals --ignore-identifiers --ignore-annotations  --minimum-tokens 70 --dir ~/src/val/Sources

Using this tool with the following command reports these >50% probabilities of duplication:
python3 -W ignore duplicate-code-detection-tool/duplicate_code_detection.py -d ~/src/val/Sources --file-extensions swift --ignore-threshold 50

I don't really understand how to interpret the results of these tools so it's difficult to derive any actionable insight.

Taking responsibility for this issue; I'm not sure it's as serious a problem as I reported.


Update tslint to expect Google LLC rather than Google Inc for file headers

See individual commits.

This change only causes conflicts in 1 PR, the other PRs are either unaffected or target a different branch.

$ yarn ng-dev pr discover-new-conflicts 20629
Retrieved 31 total pending PRs
Checking 6 PRs for conflicts after a merge of #20629
[========================================] ETA: 0s | 6/6

Result:
1 PR(s) which conflict(s) after #20629 merges:
    - #20556: fix(@angular/cli): Support XDG Base Directory Specfication

@josephperrott, can you please create a separate PR for patch versions as it has conflicts?  Thanks


Additional Steps Needed For Krew Submission

I submitted a Krew plugin manifest for this plugin, but it still needs some slight modifications.
https://github.com/kubernetes-sigs/krew-index/pull/1008

I wanted to make your approval trackable.
I wanted to let you control how you handle the auth request
I wanted to give you visibility into the Caveats/Description etc.

@shpwrck Hi! Thanks for your effort! I was on vacation last few days.
The authentication plugins have been imported now: https://github.com/knight42/kubectl-blame/commit/27ad579f9d6c72c3dc2e5ae622ee4c3fa2236ab3 and I have made a new release: https://github.com/knight42/kubectl-blame/releases/tag/v0.0.4

This plugin could be installed by krew now: kubectl krew install blame. Thanks for your effort!


Design - explore better empty states for sidecar tabs?

Currently sidecar tabs with no data will look like this:

Maybe we can improve the design to show some kind of empty state message.

moving to https://github.com/kui-shell/plugin-kubeui/issues/189


After withProgress Clear Notification is clicked, vscode.CancellationToken.isCancellationRequested is set to true in non-Insiders

VSCode Version: 1.38.1, doesn't repro with 1.39.0-insiders
OS Version: Windows (others probably)

Steps to Reproduce:

Do something to cause a vscode.window.withProgress to appear with Cancellable enabled, such as using a Find All References command with the C/C++ extension on something that takes a long time like a std::vector.
Click the Clear Noticiation "X" button in the top right of the progress window.

Bug: vscode.CancellationToken.isCancellationRequested gets set to true with 1.38.1 (canceling the operation), but remains false with Vs Code Insiders (the operation keeps running, just the notification window disappears). We actually prefer the Insiders behavior, so it seems like this bug is fixed already, but I wasn't able to locate an issue or PR on this, so we wanted to double check that it is an intentional change. If the 1.38.1 behavior is desired, we'd prefer the API to add some vscode.ClearedToken so we can differentiate clear versus cancel.
UPDATE:
In our scenario, we ideally would want the X button to not cancel for users who just want to dismiss the progress indicator for a long-running operation (i.e. because it's blocking their UI). We add a task bar icon during the long-running operation that allows users to click it to re-show the progress indicator and press Cancel if they really wanted to Cancel.

Does this issue occur when all extensions are disabled?: Yes

Please bisect and let me know what caused this.

What do you mean by "bisect"? Did you want me to do that? I searched the issues and pull requests, but I couldn't find anything relevant.

@sean-mcmanus I added the "help wanted" label for someone to chime in to find the change that caused this. I was not necessarily asking you to do that. "git bisect" is a way to find a commit that caused a change (but requires to run VSCode out of sources). Helping me here increases the chance of resolving the issue.

Extensions code to reproduce:
vscode.commands.registerCommand('extension.helloWorld', async () => {
	vscode.window.withProgress({ location: vscode.ProgressLocation.Notification, cancellable: true }, (progress, token) => {
		setInterval(() => {
			console.log(token.isCancellationRequested);
		}, 1000);

		progress.report({ message: "Hello World" });
		return new Promise(resolve => {
			setTimeout(() => {
				resolve();
			}, 5000);
		});
	});
});

If I remember correctly, this was actually restoring the behavior from a couple releases ago. But I guess now you can't tell the difference between clicking cancel and the progress completing.

OP requests new API only if we were to revert the behavior. The new behavior seems correct to me. X is not a cancel, just a dismissal. With insiders behavior, you can differentiate between cancel and dismissal which is OP's request.

Yeah, current behavior seems good -- thanks for clarifying for us.


MB-15202: switch to playwright from cypress

Jira ticket for this change
Summary
Completely convert to using playwright. We can revert this PR if necessary.

Messages

:book:
:link: MB-15202

  Generated by :no_entry_sign: dangerJS against d70979179b2e10635fbac72df1405d8dc407c851


Unexpected error and game crash

Describe the Bug
If I install the block of create while the game is in progress, the game will be broken.
I solved it.
When I deleted the starlight mod, it worked fine.
Reproduction Steps

I placed a mixer in the world.
and crash
After that, i can't access the world.

Expected Result
Not to crash
Screenshots and Videos
No response
Crash Report or Log
https://pastebin.com/Pykwz61w
Operating System
windows 10
What is your GPU?
NVIDIA GeForce GTX 1060
Mod Version
0.6.0
Minecraft Version
1.18.1
Forge Version
39.0.76
Other Mods
many mods
Additional Context
No response

Update starlight


Bot Configuration Code update - C#

Executed Build Pipeline
https://github.com/OfficeDev/Microsoft-Teams-Samples/actions/runs/8565228133


404 not found blog posts (Vercel Deployment)

I cloned this template and used it for my blog. After I wrote a test article, I pushed it to vercel. However, seems like every time I click the blog post, it shows 404 page.
Currently, the blog post's URL is "https://xxxxxx-blog.vercel.app/2022/06/07/opening-message". Not sure which part I did wrong. Do I need to change the setting in _config.yml ?

Thanks for adding new info,
Unfortunately my experience with Vercel deployment is very poor, but I will investigate on this when I can.
In the meanwhile, if you discover something that fix this, update this Issue so everybody can benefit from this.


Adds missing parameter to datefmt_set_timezone

Source: https://github.com/cataphract/PECL-intl/blob/8869e840b06dfd8870129fb18bbe4cc6353379e2/php_intl.c#L342-L345

I have submitted the same change to the Php Docbook Online Editor.

My change that added the missing parameter to the PHP Manual was meanwhile approved: https://secure.php.net/manual/en/intldateformatter.settimezone.php


minor changes in paper

Codecov Report

Merging #9 (3463959) into joss-paper (75a01b6) will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           joss-paper       #9   +/-   ##
===========================================
  Coverage       60.15%   60.15%
===========================================
  Files              21       21
  Lines            1255     1255
===========================================
  Hits              755      755
  Misses            500      500

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


Ananthu545 patch 1

Hey Ananth
Nice work. Did you face difficulties anywhere?

Also, fill in your details here
https://docs.google.com/forms/d/e/1FAIpQLScVmctoC-LfU7qDop3diGj9FnzqTFGRYUAHA5JNl0fyUWQQaA/viewform#responses

I couldn't understand Eigen vector , eigen values and some other stuff in linalg

We'll hold a Lin Al basics sessions next sem. You should get them cleared then.


Minor typo fix

Fixes: #

[ ] Format
[ ] Lint
[ ] Test
[X] Docs
[ ] Add name to AUTHORS (first time contributors)
[ ] Update CHANGELOG
[ ] Version bump

Description
I'm assuming this is meant to say "globbing."

Yup, thanks!


Run dummy transactions through Ganache.

This will verify that the money is actually sent and accepted by a
testnet.
Of course this wouldn't replace real transactions on real network but it
verifies the behaviour in an environment that is close to the real
testnet/mainnet.
This is last change before focusing 100% on Guac as this tests automatically verifies transactions on Ganache testnet. This change works fine locally, but it wasn't that straightforward to put on travis because cross runs builds and tests in a container, and apparently you can't run and expose ganache-cli to cross containers.
TODO

[x] Change strategy from using test_c and conditionally ignoring, to ignoring by default, and adding a new build to the matrix which would run cargo instead of cross.
[x] Verify on travis and ganache.

this can probably copy the pattern from here https://github.com/althea-mesh/guac_rs/pull/15


Feature Request: RTSPS/RTSP over SSL

Just wondering if this was considered and possibly on the horizon.  Not sure of the diffuculty on implementing  but this would be awesome to have. ;)

Hello, it's not difficult to implement, but there are two questions:

there's a very limited number of clients that support RTSP over TLS (ffmpeg does, while vlc and gstreamer does not), so there isn't a great user base - a VPN is usually preferred
To ensure security, there must be a way to validate the certificate of the counterpart. With HTTPS, this is solved by using certificate authorities, but RTSP is mostly used in closed networks. The best way to achieve this could be adding a field to set the counterpart public key.

So i'd leave this feature out until more clients support it.

Is it possible to use nginx to proxy the RTSP stream, and leave the TLS/cetrificate to nginx?

Yes, it's possible, since nginx supports proxing bare TCP connections:
https://docs.nginx.com/nginx/admin-guide/security-controls/securing-tcp-traffic-upstream/
But you'd have to disable UDP.
The RTSP 2.0 specification shows how to implement secure connections with both UDP and TCP, but again, i don't know many clients that support it. When they'll do, i'll surely consider implementing it.
In the meanwhile, i suggest Wireguard.

when you're ready to look into implementing this, I would be interested in testing this out.
We're currently using ffmpeg to send and receive, and are exploring ways to secure this without a VPN necessary.
Until then Thanks for the pointer to nginx tcp proxy.

@grantthomas the problem with the so called "RTSPS" is that the UDP part is totally unencrypted - hence it's not secure (meaning signed AND encrypted).
RTSP 2.0 is secure (it uses TLS for TCP and DTLS for UDP), but there are no clients that support it.
Therefore, i don't know what to do.

Understood.
It sounds like a difficult position any way it's cut.
if I can make the nginx proxy idea work that will be a fine solution until something more direct is available.
I just found your project today and it's almost exactly what I went in search of. Keep up the good work

We simply put stunnel in front of rtsp-simple-proxy. The client (Amazon Alexa video devices) request rtsp/media interleaved on the signaling port and so this works fine.

I guess RTSPS has be added, even if it's insecure.

RTSPS is now supported in master and will be supported in next release.

@aler9 Great, thanks for the update. 👍

added to v0.13.0


Routes file - test_order migration?

Is this supposed to be in here?
https://github.com/the-control-group/voyager/blob/master/src/routes.php#L57-L61
	Route::get('test_order', function(){
		Schema::table('latestbbc', function($table){
			$table->string('slug')->after('id')->change();
		});
	});

I think not, since it's no longer there.


Display Timestamps in Localtime

Summary
As user
I want to see all times as localtime
So that I can relate to the timestamps better.
Context
The API returns times as UTC. The user is usually in a different timezone than UTC. The times need therefore be recalculated to localtime.
Perhaps a tooltip could be added to such a component that displays the original time in UTC.
Out of Scope

Let the user configure the timezone in which the time should be shown.

Further links
No response
Acceptance Criteria
No response
Implementation Ideas
No response

Let's do that when we first have to display a time and add to the acceptance criteria of the respective feature.


Different cobjects are created with the same key when using threads

I think that I found a bug while trying to put a bunch of cobjects into COS using threads (instead of a for loop). I understand that there is a situation here that we need to use some kind of "lock" when we generate the relevant key.
for example, the following code:
import pywren_ibm_cloud as pywren
from concurrent.futures import ThreadPoolExecutor

def my_func(args, storage):

    def put(args):
        return storage.put_cobject(b'data')

    with ThreadPoolExecutor() as pool:
        res = list(pool.map(put, range(3)))

    return res

pw = pywren.function_executor()
pw.map(my_func, range(1))
results = pw.get_result()[0]
print([c.key for c in results])

output:
['pywren.jobs/tmp/2f7e37/0/M000/00000/cloudobject_0', 'pywren.jobs/tmp/2f7e37/0/M000/00000/cloudobject_0', 'pywren.jobs/tmp/2f7e37/0/M000/00000/cloudobject_0']

all cobjects that were created in the process, mapped into the same key.

I will change the cloudobject name suffix to a random id

@JosepSampe Thanks, tested it and its ok


Add invert option to DataArray/Dataset.stack()

This brings in the option to stack all dimensions except for one or more dimensions listed. I find this very useful for quickly iterating over all the combinations of dimensions except for one (i.e. you have a number of input parameters that are parameterized and one time dimension, and you want to calculate some time response for all the combinations of these input parameters and store them in the time-row corresponding to the appropriate combination of inputs).
I played around with implementing to_stacked_array() for DataArray, but this made less sense in the end since that method was really designed for Datasets.

[x] Addresses #8278
[ ] Tests added (added one for DataArray, just now realizing I should have one for Dataset)
[ ] User visible changes (including notable bug fixes) are documented in whats-new.rst
[ ] New functions/methods are listed in api.rst

Yeah perhaps group_over is the way: https://github.com/pydata/xarray/issues/324

Yeah perhaps group_over is the way: #324

I added a note to my comment above caveating my .groupby suggestion. .groupby has different semantics from "excluding these dimensions" when the indexes aren't unique, and so is not so great a suggestion. .group_over could work, though would be a bigger effort.
Currently ranked vote:

Offer xr.ALL_DIMS.exclude("foo") — it wouldn't be too difficult, since the code could be added to the infix_dims func and it would work everywhere. I don't love it, but it doesn't intrude on existing APIs
Do nothing — a shame, but a list comp is indeed not too bad. Could wait for .group_over
exclude_dims arg to .stack
invert

Yeah perhaps group_over is the way: https://github.com/pydata/xarray/issues/324

This is a good reference. Thanks!

Sorry @carschandler if you feel that my https://github.com/pydata/xarray/pull/8332#discussion_r1366593050 was dismissive, it wasn't intended to be so. I definitely don't want to discourage anyone making suggestions / contributions to improve Xarray, and I don't think that any suggestion would obscure the project!
I just wanted to say that in this specific case the addition of an argument like invert or exclude_dims, while it would certainly make some cases a bit more convenient and succinct, is problematic in several ways. Not only regarding the order of the dimensions of a Dataset, but also on how to handle the case where multiple stacked dimensions are given as kwargs to stack. I'm sure we could come up with some basic rules to easily handle those cases (e.g., do not allow multiple stack dim kwargs) but is it worth the trouble? About the ugliness of all other ways of achieving it, I respectfully disagree. While a list comp is slightly more verbose, it is easy to understand. At a first glance the .group_over or xr.ALL_DIMS-based alternatives look also good IMHO.

@benbovy oh no not at all! Hope you didn't think I had taken offense after reading my response. I did genuinely appreciate your feedback and fully understand your sentiment. I understand your concerns about the invert and exclude_dims options, and your point about the list comprehension is valid as well. I agree that pursuing one of the other alternatives mentioned is probably better. At the end of the day, I just think it would be nice to be able to quickly iterate over rows across one (or more) dimension(s); whether it's in stack or some other method is less important.

Thanks @carschandler ! Very much appreciate your attitude and approach here!
What do folks think about `xr.ALL_DIMS(exclude=['foo', 'bar'])?
To do this, we would make xr.ALL_DIMS into a small class and store them. And then in infix_dims, we'd check for the class and materialize them based on the current dims.
I don't love it — it's not that much cleaner than [d for d in ds.dims if d not in ['foo', 'bar']]. But it's also not intrusive, doesn't require widespread changes or maintenance — I don't see much downside (maybe another item on the Dims type definition; though maybe not since it's Hashable...)

@max-sixty I agree with all your points. Not as concise as it could be in group_over, but I do think that the syntax is still marginally cleaner than the list comprehension, and I think its meaning is more quickly conveyed to the reader. It also provides a canonical way to get all dims except one, and I always appreciate when a project gives me a way to do something; gives me more confidence in my code.
If it is much work, then I would say it's not worth and that list comprehension (or even da.to_dataset().to_stacked_array()) would work for now until group_over is ready.

One other thought is that when doing chained operations, list comprehensions can become cumbersome if what you want to stack is actually some indexed version of an array. Of course you could assign to another array intermediately, but once again this is clunkier and may not always create a view depending on your indexing.


Order by missing when use  count_all_results() along with start_cache()

I found changes in DB_query_bulder, the lines below rise another problem if we use query caching.
if ( ! empty($this->qb_orderby)) {
    $orderby = $this->qb_orderby;
    $this->qb_orderby = NULL;
}

become
// ORDER BY usage is often problematic here (most notably
// on Microsoft SQL Server) and ultimately unnecessary
// for selecting COUNT(*) ...
$qb_orderby       = $this->qb_orderby;
$qb_cache_orderby = $this->qb_cache_orderby;
$this->qb_orderby = $this->qb_cache_orderby = NULL;

My sorting method is missing after count total record before filter for pagination
$this->db->start_cache();
$this->from(....)->join(...)->where(...)->order_by(id, desc);
$this->db->stop_cache();

$dataTotal = $overtimes->count_all_results();
$dataPerPage = $overtimes->limit($length, $start);
$data = $dataPerPage->get()->result_array();

How we force keep order_by after using count_all_result()?

Look 5 lines further down and you'll have your answer.


Disney+ Hotstar Indonesia?

Feature request
For Add-on ... Disney+ Hotstar
I'm submitting a proposal to ...

[x] new feature
[ ] change an existing feature

Additional context
The service is just launched in Indonesia. I'd love to have this add-on works in my region.
Thank you

Oh, now i can login using my credential through https://www.hotstar.com/id/activate
All Disney+ contents are accessible and playable but audio are only 2.0.

@farhanito currently it's made for India only. will bring support for multi region in near future. can't dig into your issue and also it doesn't make sense since you are using from Indonesia and it's not supported by add-on yet.

Surprises me as well, but it does work using Indonesian account.
Log: https://paste.kodi.tv/osarekojal
Of course no TV or Sports, as those contents aren't enabled here.
Thanks.
Looking forward for multi region version.

Surprises me as well, but it does work using Indonesian account.
Log: https://paste.kodi.tv/osarekojal
Of course no TV or Sports, as those contents aren't enabled here.
Thanks.
Looking forward for multi region version.

Sekarang masih bisa gan? Kalo bisa mau subsribe nih..

Surprises me as well, but it does work using Indonesian account.
Log: https://paste.kodi.tv/osarekojal
Of course no TV or Sports, as those contents aren't enabled here.
Thanks.
Looking forward for multi region version.

Sekarang masih bisa gan? Kalo bisa mau subsribe nih..

Yes, it's still working.

Sekarang masih bisa gan? Kalo bisa mau subsribe nih..

Yes, it's still working.
Sub/dub Indonesia-nya ada gan?

I'm not sure, sorry. Unfortunately I can't test it until this weekend.

Ok. I just tested Mulan and Endgame.
Indonesian dub is available and working.
Indonesia sub is also available in subtitle option, but it isn't showing. But all other languages (incl. English) aren't showing either. Not sure what wrong, but the option is there.

Ok. I just tested Mulan and Endgame.
Indonesian dub is available and working.
Indonesia sub is also available in subtitle option, but it isn't showing. But all other languages (incl. English) aren't showing either. Not sure what wrong, but the option is there.

having the same problem with subtitle, the options are available but it didn't show anything.


How to choose a error status when the cause relies on errno?

I was using absl::Status and absl::StatusOr to wrap some Linux system calls where many errors rely on errno, and I found it hard to choose a proper error code for each errno. From my eyes, the status codes provided in abseil are more like "external error code", while my use case needs a set of "internal error code".
Are there any tips/suggestions about the best practice on this issue?

Call absl::ErrnoToStatusCode():
https://github.com/abseil/abseil-cpp/blob/701185dbce17a2f49334027ca3cb5788a5d06c6d/absl/status/status.h#L741-L746

Thanks, I realized this was introduced in a commit in April while I had been using the 20211102 release.


[PLATFORM-734] Fix listing transforms on v1

Description of change
Fixes https://meroxa.atlassian.net/browse/PLATFORM-734
Type of change

[ ]  New feature
[x]  Bug fix
[ ]  Refactor
[ ]  Documentation

Demo
Before this pull-request
❯ meroxa list transforms
Command "transforms" is deprecated, use `transforms list` instead
... # list resources

After this pull-request
❯ .m list transforms
Command "transforms" is deprecated, use `transforms list` instead
       NAME           TYPE     REQUIRED                                                                         DESCRIPTION                                                                                PROPERTIES
=================== ========= ========== ========================================================================================================================================================== ===========================================
 InsertField         builtin   false      Add a field using either static data or record metadata                                                                                static.field,static.value,timestamp.field
 ReplaceField        builtin   false      Filter or rename fields                                                                                blacklist,whitelist,renames
 MaskField           builtin   false      Replace field with valid null value for the type (0, empty string, etc) or custom replacement (non-empty string or numeric value only)                     fields,replacement
 ValueToKey          builtin   false      Replace the record key with a new key formed from a subset of fields in the record value                                                                   fields
 HoistField          builtin   false      Wrap the entire event as a single field inside a Struct or a Map                                                                                field
 ExtractField        builtin   false      Extract a specific field from Struct and Map and include only this field in results                                                                        field
 SetSchemaMetadata   builtin   false      Modify the schema name or version                                                                                schema.name,schema.version
 Filter              builtin   false      This transformation is used to filter records based on a regular expression.                                                                               fields,pattern
 Flatten             builtin   false      Flatten a nested data structure, generating names for each field by concatenating the field names at each level with a configurable delimiter character.   delimiter
                                          Applies to a Struct when a schema is present, or a Map in the case of schemaless data.

@dianadoherty thank you!


When in specific Azure subscription, resource filter result list displays resources from other subscriptions too.

When in specific Azure subscription, resource filter result list displays resources from other subscriptions too. It will be helpful if it display resource specific to selected subscription.
In Azure Portal, when multiple subscriptions are present. You can reproduce this by selection of one subscription and filter for specific resource.
Expected behavior
It will be helpful if it display resource specific to selected subscription.
Environment summary
Azure Portal
Additional context
Though bread Crum displays one subscription, in result we can see list of all available subscriptions.

Since not Azure CLI issue.


GCDesc fixes

Fix base size in GCStaticEETypeNode GCDesc
Optimized GCDesc encoding for arrays of structs that are all GC pointers

@MichalStrehovsky PTLA

@dotnet-bot test this please

LGTM


Fix CD -> change env AZURE_LOCATION to LOCATION

Fixes the CD pipeline; vanilla bundle builder has env variable of LOCATION, and was expecting env variable of AZURE_LOCATION.

@deniscep looks like should fix it, have we got a test run - either by adding your branch to the workflow, or locally using act?

@marrobi locally with act looks fine


Find some principled way for split() to work.

x Is refactor
_ Is new feature
_ Concerns documentation

This was removed for this PR, but should be figured out later.
https://github.com/quantified-uncertainty/squiggle/pull/384/files

Fixed long time ago.


Make page context resilient to quick navigation changes

Fix stale page context information for buffered events, so page data is resilient to quick navigation changes.
What is this????
Previously, we only captured page information at event flush time, and it was possible for page information like URL / params to be wrong by the time analytics was fully loaded.  Now, we capture page information at function call time and store it in the arguments buffer, as if it was any other explicitly passed function argument like traits or properties.
Basically, every time there's a buffered method call (track, identify, etc), we gather the current page information like document.title, location.href, and use it to construct a BufferedPageContext object, that gets added as the last argument of the buffered argument list. Then, when we flush events, that last argument acts a kind of hidden parameter that we pop off the arguments list when the 'real' Analytics method is called -- and we use that stored page information to augment the event with the url, search params, title, etc.
Other Change list summary

Move page enrichment step to event factory, rename page enrichment plugin 'EnvironmentEnrichment'.
Parse UTM params into context.campaign if consumers override the default search params with an object.
No changes to auto-track, but fixed tests and refactored poorly configured, brittle tests with hidden dependencies
Fix warnings in UniversalStorage

In order for the snippets to get the same resilliency, they require this update
// using es5 to maximize bw compat
   !function () {
      // add this function - using single key names to save bytes
     function p() {
        var  c = document.querySelector("link[rel='canonical']");
        return {
           __t: 'bpc',  // discriminant key for extra uniqueness guarantee
          c: (c && c.getAttribute('href')) || undefined,
          p: location.pathname,
          u: location.href,
          s: location.search,
          t:  document.title,
          r:  document.referrer,
        }
      }

         // full snippet example in `index-buffered-page-ctx.html`
          analytics.factory = function (e) {
            return function () {
            ....
              var t = Array.prototype.slice.call(arguments);
             // add this statement
              if (['track', 'screen', 'alias', 'group', 'page', 'identify'].indexOf(e) > -1) t.push(p());

Manual Test

cd examples/standalone-playground && yarn dev
open index-buffered-page-ctx.html (and read the description)

Overall think this looks great! Are you going to make a similar update to the snippet repo once this is merged?

yep!


AWS outbound data usage is too high

Environment
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
URL
https://penguin-stats.io/
Steps to reproduce
N/A
What is expected?

Improve random image algorithm.
Lower the quality to 1/4.

What is actually happening?
Each background image has ~30hit per hour. For a 2K background image (webp), there will be ~360MB outbound every day.

Replaced with lower quality webp and png images on AWS S3 and has enabled access log. Will be monitoring the visitor behavior in the upcoming days.
Not closing this issue due to further investigation needed, but will downgrade priority and add corresponding label(s).

We still need to make change on the background random algorithm we discussed last weekend.


Usage of replication mode in the Python wrapper

Hi,
I wanted to use the Replication json that i use for sling run -r /path/to/replication.json in the python wrapper.
I seem to be getting errors when trying the below approach.
Using sling 1.1.5.post1 from Pypi
from sling import Replication, ReplicationStream

default_config = ReplicationStream(**defaults) #Defaults is dict of configs
streams_config = ReplicationStream(**streams) #streams is dict of stream configs
Replication(source='SLING_SOURCE_CONN', target='SLING_TARGET_CONN', defaults=default_config,streams=streams_config,debug=True).run()

AttributeError: 'Replication' object has no attribute 'replication' , AttributeError: 'str' object has no attribute 'conn'
Any advise on the correct usage for Replication streams?
Is there a way to just use the same JSON that we use for sling run -r /path/to/replication.json in the python wrapper?

Can you try again? Just released 1.1.5.post2.

For using an existing json file, I think you could just do

with open('/path/to/replication.json') as file:
  data = json.load(file)
r = Replication(**data)
r.run()

Thanks @flarco! It is working now!
Will test further and revert.

Thanks @flarco! It is working now!
Will test further and revert.


Add data validation support to styled properties

What does the pull request do?
Data validation was previously only implemented for direct properties. In order for #9944 to be implemented, styled properties will also need this feature.
Note that data validation with two-way bindings is still only really supported for LocalValue bindings due to #6684. That issue will need to be fixed separately.
I ran benchmarks on this PR, comparing to current master and it looks like the feature adds little to no overhead when not enabled.

You can test this PR using the following package version. 11.0.999-cibuild0030350-beta. (feed url: https://pkgs.dev.azure.com/AvaloniaUI/AvaloniaUI/_packaging/avalonia-all/nuget/v3/index.json) [PRBUILDID]


[BUG] - warning for .nii.gz removal - Erik Lee

Describe the bug
Warning about an already removed file.

Fixed in #449


xoroshiftall.py bug

I made an error when trying to search for next soln
Last line of xoroshiftall.py :

s.add( x0 != soln[x0], y0 != soln[y0] )

What I intended were to remove 1 (solved) seed from search space.
But above rule added simultaneous equations instead.
-> comma acted like a AND (not OR)
-> possibly remove more than 1 state: (x0, ?) and (?, y0)
To remove just 1 state, I should use z3.Or

s.add( z3.Or(x0 != soln[x0], y0 != soln[y0]) )

The bug is probably not serious enough to give the wrong answer.
But with bigger states, say 256 bits, z3.Or is REQUIRED
see my xoshiro256-seed solver: https://github.com/achan001/xoshiro256-seed

Great. Hopefully I fixed the issue.

As expected, the bug will not give the wrong answer
Prove:
Assume 2 valid xoroshiro128+ seed (x0, y0), (x0, y1), y0 != y1

(x0 + y0) mod 2^64 = output1
(x0 + y1) mod 2^64 = output1

Subtract the 2 equations, we get: (y0 - y1) mod 2^64 = 0
Since all variables are 64-bits integer, we have y0 = y1
--> remove seed (x0, y0) == remove seed (x0, ?)
--> remove seed (x0, y0) == remove seed (?, y0)
--> the bug luckily also remove (x0, ?) and (?, y0)
QED


Issue with Last Updated time

There's some issue with the last updated time.
Currently, it's showing: 12 undefined, 00:42 IST

Thanks for pointing out the bug.


Deck sharing: Add icon next to player name

Have e.g. an icon next to the player name in brackets which visualizes who submitted their deck already.
Similar to the uploaded card collection with different colours and tooltips.
Currently you have to click all player names and check the section below the bracket if their deck is available yet. That would help with organizing the pod.
(The same could apply for names in the user list/player seating)

Added an icon in draft log and bracket in d086fc421990479787f1f31eb5889ab3ff0e2cb7. I don't want to add another icon to the player seating, space is already pretty tight there.

I don't want to add another icon to the player seating, space is already pretty tight there.

Sure, that's understandable.
As always super quick... No chance to test this on the page yet.

Jep, that works.
Can clicking that icon in logs result in jumping to the Deck view right away instead the default Cards when clicking the name?

Jep, that works.
Can clicking that icon in logs result in jumping to the Deck view right away instead the default Cards when clicking the name?

Wep, good idea! 11206621c04b5dc11735f711842d075785d17ff7

It jumps right to the deck now, but also had some issues. Will try to check in some real games... leaving this open. Will take a while until I get to it probably.

I guess this one can be closed :)

I guess this one can be closed :)


Add pre-commit to do black and other magic

We also added unit-testing (Closes #3)  but I don't know if it would just work -- @feilong should fix that.

@yarikoptic The test failed. Apparently pre-commit wasn't installed properly.
Not sure if the problem originated from the "Cache pre-commit" step:

Cache not found for input keys: pre-commit-3|/opt/hostedtoolcache/Python/3.11.4/x64|b31884416520dae2a8ac590b473b0ad274d7da7cef1f8c468bb35fd0039f9916

Otherwise I suppose .[dev] should include pre-commit?

here we go -- pre-commit works now, testing doesn't . can fix?

here we go -- pre-commit works now, testing doesn't . can fix?

I guess so. Reminiscent of the joke that after fixing one fail, one gets another 16 fails...

Obviously pytest was not included as a dependency because I used to only test it locally.
@yarikoptic What's your recommended practice to add it?  Perhaps we can have a "dev" collection of dependencies that includes pytest and all the magics you showed me earlier today?  Currently the section is mostly empty.
[project.optional-dependencies]
full = [
    "datalad",
]

Finally the tests work for Windows as well.
They still fail with Python 3.12-dev, but the error was because 3.12 removed distutils, which caused setuptools to fail, so it's actually not our package's fault.
Perhaps we can remove support for 3.12 for now, and add it back when it's ready?


can we have artifact.dirname?

artifact.basename already exists. I'd like to get artifact.basename too. Here's how I'd use it: when building Elm apps, all commands have to kick off from a directory where elm.json is present. Just to make things easier, my rules accept an "elm_json": attrs.source() as an attr. It doesn't look like there's a nice way to get the dirname of that file right now so I can cd to it!
(Of course, I can just pass it into a bash script and call dirname there, but it feels hacky to me!)

Ah, relative_to… seems like that's what we have instead!
ctx.actions.write(
    "elm.sh",
    [
        "#!/usr/bin/env bash",
        "set -euo pipefail",
        cmd_args(
            elm_json,
            format = "cd $(dirname {})"
        ),
        cmd_args(
            toolchain.elm,
            format = "exec {} $@"
        ).relative_to(elm_json, parent = 1)
    ],
    is_executable = True,
    with_inputs = True,
)

Perhaps you want cmd_args.parent - https://buck2.build/docs/api/build/cmd_args/#cmd_argsparent. It's basically artifact.parent, but it returns a cmd_args, which means you get the string representing the directory (at least when spliced into a command line), but keep the dependency.

oh, yeah, I think that's probably exactly what I want. Thank you!

Great. I'll add it to the docs for artifact.

Documented in 50c2306a0987755116c7ed775afcd34bb96ad7af


⚠ BCR Bot has degraded performance

In 2c51a8d, BCR Bot (https://bcr.alternativasinteligentes.com/BCRApi/web/chatbot) experienced degraded performance:

HTTP code: 200
Response time: 1336 ms

Resolved: BCR Bot performance has improved in efc54c1.


feature: could we allow for rules yaml to be driven by dot file?

Currently users have to specify a sdk-rules.yaml file that contains the rules. To avoid users having to run manplan with a file argument everytime (and having to find a home for the file), we should probably provide the option to use a default dotfile.
This means that if a user simply runs manplan, then because there is no file argument provided, it will look for a default dotfile (.sdk-rules.yaml) in the users home.

Fix in https://github.com/krupa-dev/manplan/releases/tag/v0.1.4


Fixed ActiveRecord support and made flash messages work with sinatra-flash

Cleaned up a bunch of loose ends and got ActiveRecord support working fully.

Now works with sinatra-activerecord. All functionality works as expected. Tested all views.
Normalized ar files names.
Made sure rake db:create works by rescuing the setup if it fails (fails on non existent db).
Changed checks for session[:user] to use logged_in? instead.
Changed flash code to detect the flash object, enabling the use of sinatra-flash
Added simple user cache for current_user. That way multiple accesses don't hit the db.
Changed edit page to 'Edit Profile', and capitalized some links. Also added -'s between so they look a bit nicer.
Removed display of notifications in the default views. They are in most people's global layout, so they shouldn't be in the base.
Fixed ArApp to use public_dir instead of public.

Any status on this?


RawImgFrame: add tsDevice - direct device timestamp

This is useful to debug the host-device time sync mechanism, as sometimes jumps of few milliseconds were observed.

Since we are changing can we add the timestamp to NN messages too. It would help sync on the host side in ROS publishing

Since we are changing can we add the timestamp to NN messages too. It would help sync on the host side in ROS publishing

We'll probably implement that as part of moving the timestamps at a lower level than ImgFrame, so to be available for all messages (as discussed internally). That would also be required for the output sync node on device side that we'll need to implement.


fatal error: 'try!' expression unexpectedly raised an error: Error Domain=io.realm Code=9 "mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0" UserInfo={NSLocalizedDescription=mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0, Error Code=9}

I got this error for some user on the app store build. After that I have done the "compact on launch" and added all the realm operations running on DispatchQueue in autoreleasepool{...}. But how to handle the users who have already got this issue. I can not make them to reinstall the app
Realm framework version: 3.1.1
Realm Object Server version: ?
Xcode version: 9.2

Can anyone help me on this issue.

Unexplained large file size growth was a possible symptom of the bug which was fixed there, but the fix won't help open existing files which have run into trouble.

@tgoyne understood - thank you.
We have an issue where after trying to do a realm swap and adding data, it crashes and becomes irreparable for some users (from what we can tell, with low memory devices e.g. iPhone 5s)
Before before try Realm()) is even called in app (so nothing is pointing to it):

Download new seed seed.realm
Rename the default.realm to temporary.realm
Rename seed.realm to default.realm
Copy across user data only from temporary.realm to default.realm

We've tried multiple ways by using intermediate temporary realms but this is the most efficient.
When I profile step 4, we can see a significant memory increase but I was able to get this down to just 200mb memory for a few seconds in the worst case, which most users won't hit.
Yet, once the app gets to try Realm() it crashes for some users with:
Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=io.realm Code=2 "Unable to open a realm at path '/var/mobile/Containers/Data/Application/C54C7FEB-40B4-40AB-96DE-45BC130046F7/Documents/default.realm': Realm file has bad size." UserInfo={Error Code=2, NSFilePath=/var/mobile/Containers/Data/Application/C54C7FEB-40B4-40AB-96DE-45BC130046F7/Documents/default.realm, Underlying=Realm file has bad size, NSLocalizedDescription=Unable to open a realm at path '/var/mobile/Containers/Data/Application/C54C7FEB-40B4-40AB-96DE-45BC130046F7/Documents/default.realm': Realm file has bad size.}: file /BuildRoot/Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-902.0.48/src/swift/stdlib/public/core/ErrorType.swift, line 184
Our hunch is during the copy, mmap succeeds but it fails to execute correctly as memory ran out and you are left with a faulty realm file. It's quite hard to diagnose as it happens for some users. I thought it was a low RAM issue, but one user had 29% left on a iPhone 8 according to Crashlytics which is ~500MB of RAM.
Previously I wasn't calling invalidate on the old and new realms but everything was done in autoreleasepool.
I'm wondering if this fix may help this issue and perhaps the invalidate()
Do you have any pointers to code on what exactly bad file size might entail so I can investigate further? Any help is greatly appreciated.

"Realm file has bad size" is thrown is the file being opened is not large enough to contain the 24-byte file header (and note that an empty file is not treated like a nonexistent file) or the file size is not a multiple of 8.
One possible cause for this would be if the download failed in a way that created seed.realm and left it as a zero-byte file. Missing or incomplete error-handling for the download would also plausibly be something that would only cause problems for some users.
If you're sure that step 4 is succeeding and it's when you subsequently try to re-open the Realm later in the app that it's crashing then I'm not sure what could be causing it. Even a full disk shouldn't result in hitting that specific error.

@tgoyne I think you are on to something!
Thankfully we log the MD5 hash of these files generated from the client and I totally forgot to check this. After extensive spelunking into the logs and watching the upgrades happen, the user ids with crashes correspond to the logs where the MD5 hash is not the correct one.
Now I need to identify why it failed to download correctly.

''Unexplained large file size growth was a possible symptom of the bug which was fixed there, but the fix won't help open existing files which have run into trouble.''
@tgoyne What should we do for the existing files which ran into trouble. This is the error we are facing-
fatal error: 'try!' expression unexpectedly raised an error: Error Domain=io.realm Code=9 "mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0" UserInfo={NSLocalizedDescription=mmap() failed: Cannot allocate memory size:<PHONE_NUMBER> offset: 0, Error Code=9}

@tgoyne Please help us with it. We are facing the issue in production. Need to update it soon.

@tgoyne We searched a lot on what to do for the users who have already run into the trouble and we are helpless. There is no documentation anywhere stating this. Please, we really need some quick assistance on this.

We don't have a good solution for recovering files which have grown too large for a device to open. Uploading the Realm file to a server, compacting it there (via the JS SDK), and then sending it back to the device is pretty much the only thing you can do.

Thanks @tgoyne


Wiki overview of pages is loading slowly

Description
Yesterday I searched for a example _Sidebar.md for the wiki pages, especially how to link to other pages. While doing so I thought Gitea.com may has some wikis with a sidebar and I discovered the following repo: https://gitea.com/henri/wiki/wiki/?action=_pages , but this page is loading very slowly, page: ~11s, template: ~5ms.
Gitea Version
1.18.0+dev-14-g1e2c2edab
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots

Git Version
No response
Operating System
No response
How are you running Gitea?
I discovered the bug on https://gitea.com. I guess it's using MySQL as discussed on discord.
Database
MySQL

Obviously for every page in the list, it will invoke a git command below. There are over 100 pages in this list. That's why it's slow.
wiki-perf.wiki.git: /usr/local/bin/git -c protocol.version=2 -c uploadpack.allowfilter=true -c uploadpack.allowAnySHA1InWant=true -c credential.helper= -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= log -1 --pretty=format:%H -- Antisemitismus.md


How to retrieve camera depth?

I am a beginner at MINOS.
In sim_config.py, in following line
observations': {'color': True, 'forces': False, 'audio': False, 'objects': False, 'depth': True, 'map': False},
if i turn the depth True, why am i not getting the display of camera depth?
Moreover, in what file are all these variables information is getting stored?

Hi @kanwal41g ,
Thank you for trying out MINOS!
The gym demo code provides examples of how to retrieve depth data (as well as the other sensor types): https://github.com/minosworld/minos/blob/master/gym/demo.py
If you want to see an interactive visualization including the depth sensor, please check out the code on the dev branch, follow the build instructions and then try the command python3 -m minos.tools.pygame_client --depth -s normal -s objectId -s objectType -s map --navmap --width 128 --height 128

Can I ask some additional question? How i can add some depth noise, I found --depth_noise solution but I don't know which argument I can add


docs: translate hertz/reference/migration

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

看了一下没啥问题了，大家可以再 review 一下 cc @GuangmingLuo @rogerogers @welkeyever


S3 Lifecycle Rule (exclude Glacier)

User Story
As a... user of the modernisation platform and ami-builds repo
I want to… be able to exclude certain S3 buckets from moving to long-term storage (Glacier)
So that… my ami-builds process does not fail and get held up waiting for items to be restored.
Value / Purpose
once or twice a year the artefact bucket used in the ami-builds process requires retrieval from Glacier storage which is causing our users a delay in the ami-builds process and increasing intervention from the modernisation platform team via the ask-channel to retrieve the files and resolve the issue.
Useful Contacts
Ijaz Sultan and Dominic Robinson
Additional Information
S3 Bucket in question: mod-platform-image-artefact-bucket20230203091453221500000001
https://mojdt.slack.com/archives/C01A7QK5VM1/p1717671578917679
Proposal / Unknowns
I propose that we create a new Lifecycle rule which excludes the move to Glacier storage after 365 days step, which could then be applied to certain buckets if required.
Definition of Done

[ ] New S3 Bucket Lifecycle rule created and applied to S3 Bucket (see additional information)
[ ] README / User docs have been updated
[ ] Another team member has reviewed
[ ] Tests are green

Consider this PR https://github.com/ministryofjustice/modernisation-platform/pull/7191 to disable glacier

Just referencing this slack thread regarding the issue: https://mojdt.slack.com/archives/C01A7QK5VM1/p1718027647334379?thread_ts=1718011793.297219&cid=C01A7QK5VM1

Dominic's PR https://github.com/ministryofjustice/modernisation-platform/pull/7191 has now been merged which stops artefacts in the mod-platform-image-artefact-bucket20230203091453221500000001 bucket being transitioned to Glacier and enables additional tagging permission so aws s3 cp can be used in member accounts.

I've recovered some files for HMPPS out of Glacier storage and they are now unblocked. The new lifecycle policy will stop items moving in and make sure the AMI pipelines don't fail. See this thread for all the updates: https://mojdt.slack.com/archives/C01A7QK5VM1/p1717671578917679


feat(bullmq): add hooks for graceful shutdown

Information

Type
Breaking change

Feature
No

Add tsed lifecycle hooks for graceful shutdown of bullmq queues and workers.

Todos

[ ] Tests
[ ] Coverage
[ ] Example
[ ] Documentation

/rebase

@abenerd Thanks a lot for this PR ;)


docs/ci: Update docs artifact publishing in CI

Signed-off-by: Ryan Northey<EMAIL_ADDRESS>Commit Message: docs/ci: Update docs publishing
Additional Description:
This will:

~move post-submit docs publishing to after docker image publishing~
restore per-commit-sha publishing of docs in CI

Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue] Fix #13535
[Optional Deprecated:]

the update to the artifact publishing uses the first 7 chars of the PR's commit head
last build
https://storage.googleapis.com/envoy-pr/af233ef/docs/index.html

/retest

on balance, i think having both per-commit and PR number would be best
PR number is not very helpful while you are developing, you want to see exactly the changes you made and the caching makes that really annoying (if i was quicker at making screencasts i would show you why this is so frustrating for me)
once the PR is ready for final review, then  you kinda want to just see the "latest" (caching issues aside) so PR number is probably more helpful

on balance, i think having both per-commit-head and PR number would be best

This is what I was going to suggest. Let's just do both and call it good?
/wait

Yeah having both sounds good to me, or you can just have a redirect from envoy-pr/<PR_number>/docs/index.html to the per-sha URL.

ive added a redirect - so eg on this PR if you browse to:
https://storage.googleapis.com/envoy-pr/13826/docs/index.html
it redirects to the last commit rendering (currently):
https://storage.googleapis.com/envoy-pr/def78dd/docs/index.html

ive also removed the caching on the redirect (hopefully) this link should always show the latest render


source-division parallelism

@kpamnany -- This code implements the new method of parallelism, but wo the parallelism. It's all in the file "src/source_division_inference.jl", except for one boolean flag in api.jl. Lines where you'd insert calls to GlobalArrays.jl, or Dtree.jl, or Base.threads are marked with TODO.
This new type of parallelism isn't actually all that simple. Lmk if you want to chat about the code. I was able to avoid using any multi-dimensional array. I also avoided using arrays with variable-size entries, by recording offsets into array per field. But I had to introduce this data structure called tasks in addition to sources, because some sources are needed for rendering the background, but they shouldn't be optimized.
I suspect we're going to encounter unexpected problems while to get this new scheme working at scale, so please start attempting large runs early.


Anybody alive out there? SK6812W strips washed out

Hello, trying to see if this wrapper is still alive. I see it hasn't been updated in quite a while and it's pretty far behind https://github.com/kenssamson/rpi-ws281x-csharp, but I figured I'd ask here anyway since I can't seem to submit an issue on the other repo, despite it being the one available on nuget.
I'm trying to control a set of SK6812W strips, but when I send any colors through them, it seems as if the white component is just completely at 100% all of the time.
Is there anything I need to do that I'm not? I'm currently setting the strip type as SK6812W, and while the color hues are right, the white just never turns off unless I send full black...which obv. isn't ideal.
Any help would be much appreciated...

Okay, I'm starting to understand now.
The strips aren't washed out. Somebody thought it would be a good idea to control the value of the white LED using the alpha channel, and rgb using their respective values.
This makes sense from a pragmatic standpoint, but is also MIND-NUMBINGLY-FRUSTRATING to try and debug issues.
"Why am I having voltage drops with only 200 LED's?".
Well Tim, that's because the library or the wrapper isn't smart enough to know that it has RGB and W LEDs to work with, so it tries to use them all at the same time. And when you turn on the RGB and W components on a bunch of LEDs at the same time at full brightness, the chips just can't handle it and the voltage drops.
Apparently, the solution to this is to do two things:
One - you need to find the minimum integer value out of the R,G,B values, and use this for the alpha value so your white color is set appropriately.
Two - You need to check to see if R + G + B values are all equal, and if so, then use Color.FromArgb()  with the value that r/g/b is set to as the alpha value. So, if r/g/b are all 100, then you do Color.FromArgb(100, 0, 0, 0) to generate the proper white color. This will eliminate apparent voltage drops.
There's probably more that needs to be done to accurately represent shades of white that aren't perfectly equal, but for now, it's a lot better than when I started.
If anybody is maintaining this yet, please let me know, it would be nice to see this properly fixed in what I perceive to be the "official" wrapper library, even if it's not available on nuGet.


Tesla.Mock configuration

HI!
What is the proper way to configure Tesla.Mock in situation described below.
Imagine we have a module which creates client:
defmodule SimpleApi.Client do
  @spec get_client() :: Tesla.Client.t()
  def get_client do
    middleware = [
      {Tesla.Middleware.BaseUrl, get_url()},
      Tesla.Middleware.EncodeJson
    ]
    adapter = {Tesla.Adapter.Finch, [name: MyFinch, recv_timeout: 40_000]}
    Tesla.client(middleware, adapter)
  end
end

To use mock in test, there is a need to configure it in test.exs
config :tesla, <instance_name>, adapter: Tesla.Mock
What should be placed in <instance_name?
BR

The config only works when you use the use Tesla macro. In your case when creating a dynamic client you need to pass the adapter from your own configuration.
adapter = Application.get_env(:myapp, :some_key) || {Tesla.Adapter.Finch, …}

and then configure the mock adapter in config/test.exs
I usually put the default adapter in config/config.exs instead of directly in client module

Thank you @teamon.
Using my own configuration works as expected.
All the best ;)