[C++] Filter kernel for MonthDayNanoInterval array returning garbage values

Example with latest pyarrow:
>>> import pyarrow as pa
>>> pa.__version__
Out[30]: '15.0.0.dev436+gac50918a6.d20240117'
>>> import pyarrow.compute as pc

>>> arr = pa.array([pa.MonthDayNano((1, 1, 1)), pa.MonthDayNano((2, 2, 2))])
>>> arr
<pyarrow.lib.MonthDayNanoIntervalArray object at 0x7f8e89147220>
[
  1M1d1ns,
  2M2d2ns
]
>>> pc.filter(arr, pa.array([True, False]))
Out[36]:
<pyarrow.lib.MonthDayNanoIntervalArray object at 0x7f8e89e24580>
[
  3M0d0ns    # <-- this value didn't even exist in the original array
]

>>> arr = pa.array([pa.MonthDayNano((1, 1, 1)), None])
>>> arr
<pyarrow.lib.MonthDayNanoIntervalArray object at 0x7f8e89e24820>
[
  1M1d1ns,
  null
]
>>> pc.filter(arr, pa.array([True, False]))
<pyarrow.lib.MonthDayNanoIntervalArray object at 0x7f8e88e4eda0>
[
  null   # <-- this should have selected the first element of the array, but returning null instead
]

The interval types are considered as a primitive type, so that's the reason this kernel is not raising a not-implemented error (while there is no explicit support for intervals).
However, it seems this PrimitiveTakeExec isn't set up to handle the larger bit width of internvals (128 for MonthDayNano):
https://github.com/apache/arrow/blob/3b73f438bf0a1abc76009f017c1df9c244854aca/cpp/src/arrow/compute/kernels/vector_selection_take_internal.cc#L575-L595
So we are just allocating some values for the output, but then not setting anything (and also not raising an error for this, because it's only a debug check ..)

We should maybe also consider to stop treating MonthDayNano interval automatically as primitive type (is_primitive in type_traits.h returns True for all interval types)

At least, the DCHECK should be turned into an actual error return.

We should maybe also consider to stop treating MonthDayNano interval automatically as primitive type

Well, it is a primitive type. This is just a bug in the take and filter code that it doesn't properly handle more primitive type widths.

Out of curiosity how does Arrow define "primitive"?

Unfortunately there's no rigorous conceptual definition, it's more of an adhoc category. Roughly, everything that's a number, a boolean or a temporal is considered primitive, except decimals for some reason.


Change mock v2 registry to better handle scope and service

Looking to unblock some Kurma unit tests. Query parameters are not required to be supplied in a specific order.
@tcahill @wallyqs @krobertson

Checking the PM's Docker unit tests too.

LGTM

LGTM


controllers: return when syncsetinstance controller cannot build restconfig

I've changed this to now go to master.
/lgtm


Partial update to java 21

Description
Update to Java LTS 21, further pushing out our EOL.
For Java 17 Oracle EOL is Sept 2024, Eclipse Temurin has Oct 2027
For Java 21 Oracle EOL is Sept 2026, Eclipse Temurin has Sept 2029
Nonetheless, Java 21 is the next LTS version and should be better supported going forward.
We are also hoping for performance improvements https://minborgsjavapot.blogspot.com/2023/01/java-21-performance-improvements.html
Note: we have to add in a check for bitbucket testing (not prod code), looks like gson has some slightly different behaviour in Java 21
On close, will create an issue to switch the bytecode compilation to Java 21 and the CircleCI image as well.
Without the new issue, most tests on CircleCI run on Java 21, but the regression, language parsing, and localstack tests run in Java 17. The Docker image should use Java 21 and the github actions tests should use 21
Review Instructions
Builds should continue to function, qa should work after nightly deploy
Issue
https://ucsc-cgl.atlassian.net/browse/SEAB-6176
Security and Privacy
Should be an improvement
Please make sure that you've checked the following before submitting your pull request. Thanks!

[x] Check that you pass the basic style checks and unit tests by running mvn clean install
[x] Ensure that the PR targets the correct branch. Check the milestone or fix version of the ticket.
[x] Follow the existing JPA patterns for queries, using named parameters, to avoid SQL injection
[x] If you are changing dependencies, check the Snyk status check or the dashboard to ensure you are not introducing new high/critical vulnerabilities
[x] Assume that inputs to the API can be malicious, and sanitize and/or check for Denial of Service type values, e.g., massive sizes
[x] Do not serve user-uploaded binary images through the Dockstore API
[x] Ensure that endpoints that only allow privileged access enforce that with the @RolesAllowed annotation
[x] Do not create cookies, although this may change in the future
[x] If this PR is for a user-facing feature, create and link a documentation ticket for this feature (usually in the same milestone as the linked issue). Style points if you create a documentation PR directly and link that instead.

Mystery for tommorow, why on Earth do the BitBucket tests work locally but not on Circle?
Maybe the image?

Well, the number of cache misses recorded in the circle ci job artifacts remains the same, so I guess we're good to go on that front

Will keep bytecode target as Java 17 for now, looks like CircleCI image hasn't been updated on schedule yet https://discuss.circleci.com/t/linux-machine-executor-2024-q1-update/50198/2

If you're on Linux, recommend something like the following to switch between Java 17 and 21
$ cat ~/bin/switch_java_17.sh
#!/usr/bin/env bash
# Bash3 Boilerplate. Copyright (c) 2014, kvz.io

set -o errexit
set -o pipefail
set -o nounset
# set -o xtrace

sudo update-alternatives --set mvn /opt/apache-maven-3.9.2/bin/mvn
sudo update-alternatives --set java /usr/lib/jvm/java-17-openjdk-amd64/bin/java
sudo update-alternatives --set javac /usr/lib/jvm/java-17-openjdk-amd64/bin/javac

$ cat ~/bin/switch_java_21.sh
#!/usr/bin/env bash
# Bash3 Boilerplate. Copyright (c) 2014, kvz.io

set -o errexit
set -o pipefail
set -o nounset
# set -o xtrace

# sudo update-alternatives --set mvn /opt/apache-maven-3.9.2/bin/mvn
sudo update-alternatives --set java /usr/lib/jvm/java-21-openjdk-amd64/bin/java
sudo update-alternatives --set javac /usr/lib/jvm/java-21-openjdk-amd64/bin/javac


Suggestion to add support for URL-based requirement specifiers

Example:
pip @ https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4bbb3c72346a6de940a148ea686

I believe this already works:
❯ uv pip install "pip @ https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4bbb3c72346a6de940a148ea686"
Resolved 1 package in 2.48s
   Built pip @ https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4bbb3c72346a6de940a148ea686
Prepared 1 package in 372ms
Installed 1 package in 2ms
 + pip==1.3.1 (from https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4bbb3c72346a6de940a148ea686)

Sorry, I didn't clarify. It doesn't work if the package version is specified:
uv pip install "pip==1.3.1 @ https://github.com/pypa/pip/archive/1.3.1.zip"
error: Failed to parse: `pip==1.3.1 @ https://github.com/pypa/pip/archive/1.3.1.zip`
  Caused by: Trailing `@ https://github.com/pypa/pip/archive/1.3.1.zip` is not allowed
pip==1.3.1 @ https://github.com/pypa/pip/archive/1.3.1.zip
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This syntax isn't specific to uv. It's part of a Python standard: https://peps.python.org/pep-0508/. And the standard doesn't allow specifiers in that position.


Changed game text colors to green

Description:
Description of changes made and why.

Description:

Updated game text color to green


fluent-bit -> Fluent Bit

Fluent-bit should be in the written form Fluent Bit.

Codecov Report

Merging #55 (ad6f2ea) into main (b66da0a) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #55   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            5         5
  Lines           81        81
  Branches         8         8
=========================================
  Hits            81        81

Flag
Coverage Δ

unittests
100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

src/index.ts
100.00% <100.00%> (ø)

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 b66da0a...ad6f2ea. Read the comment docs.


Add primary terminal hook

Add a hook for fetching the projects primary ETH payment terminal.

Closes https://github.com/jbx-protocol/juice-interface/issues/1382

@wraeth-eth wdyt my fine ser?


MdButton onclick GUI goes wrong, its border become distorted bigger on each click

Bug:
MdButton onclick GUI goes wrong, its border become distorted bigger on each click
What is the expected behavior?
It should not distorted on click event
What is the current behavior?
It border in spreads towards bottom side.
Which versions of Angular, Material, OS, browsers are affected?
Angular version 2.0.0-rc.5
Material version 2.0.0-alpha.7-3
OS Windows
Google chrome

This error was not present in alpha 6. I first noticed it when I upgraded from 6 to alpha 7-2 and it also affects 7-2
I think the problem may have to do with button ripple animation taking ever more space with each click. After a few clicks, the scroll bars appear even though no content is visible.
To reproduce:

Open this plunker
In the HomeComponent, click the button ng-Material button 5 or 6 times. You'll see the scroll bars appear.
In the LazyLoadedComponent, click the button Regular button. No scroll bar appears even though the templates for the two components are the same.

In HomeComponent, changing: <button md-raised-button ....> to a simple <button...> will make the issue go away.

It looks like <div class="md-ripple-background">'s are created every time the button is clicked and get bigger but they don't go away.
Screenshot taken from @RoxKilly 's plunkr:

Can confirm this happens on all my forms. I was thinking it was an issue with my own custom styling though couldn't find the problem.

Same issue here

A temporary hack-around is to add the CSS styling:
.md-ripple-foreground {display:none}

I haven't looked into the side-effects of this hack

See #972. Just simply load the core.css file from @angular2-material/core/style/core.css. Should be mentioned in the docs.

@ivoviz  Thanks for linking that other discussion. That's helpful.

Closing this into #1139


Test(unit and integration) the project

[x] build the basic unit test
[x] test with tox local

Done


docx.opc.exceptions.PackageNotFoundError

I am trying to read a header from a word document using python-docx and watchdog. What I am doing is, whenever a new file is created or modified the script reads the file and get the contents in the header, but I am getting an
docx.opc.exceptions.PackageNotFoundError: Package not found at 'Test6.docx'
error and I tried everything including opening it as a stream but nothing has worked, and yes the document is populated. For reference, this is my code.
main.py
import time
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
import os
from docx import Document

class Watcher:

    def __init__(self):
        self.observer = Observer()

    def run(self):
        event_handler = Handler()
        self.observer.schedule(event_handler,path= r'../../../', recursive=True)
        self.observer.start()
        try:
            while True:
                time.sleep(5)
        except:
            self.observer.stop()
            print ("Error")

        self.observer.join()

    class Handler(FileSystemEventHandler):

    @staticmethod
    def on_any_event(event):
        if event.is_directory:
            return None

        elif event.event_type == 'created':
            # Take any action here when a file is first created.
            path = event.src_path
            extenstion = '.docx'
            base = os.path.basename(path)

            if extenstion in path:
                print ("Received created event - %s." % event.src_path)
                print(base)
                doc = Document(base)
                print(doc)

                doc = Document(base)
                section = doc.sections[0]
                header = section.header
                print(header.paragraphs[0].text)

        elif event.event_type == 'modified':
            # Taken any action here when a file is modified.
            path = event.src_path
            extenstion = '.doc'
            base = os.path.basename(path)
            if extenstion in base:
                print ("Received modified event - %s." % event.src_path)
                print(base)

                doc = Document(base)
                section = doc.sections[0]
                header = section.header
                print(header.paragraphs[0].text)

if __name__ == '__main__':
    w = Watcher()
    w.run()

Tried to change the extension from doc to docx and that worked but is there anyway to open docx because thats what i am finding.
another thing. When opening the ".doc" file and trying to read the header all i am getting is
<docx.document.Document object at 0x03195488> <docx.section._Header object at 0x0319C088>
and what i am trying to do is to extract the text from the header
Full error list:
Exception in thread Thread-1:
Traceback (most recent call last):
  File "C:\Program Files (x86)\Python38-32\lib\threading.py", line 932, in _bootstrap_inner
    self.run()
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\watchdog\observers\api.py", line 199, in run
    self.dispatch_events(self.event_queue, self.timeout)
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\watchdog\observers\api.py", line 368, in dispatch_events
    handler.dispatch(event)
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\watchdog\events.py", line 322, in dispatch
    self.on_any_event(event)
  File "c:/Users/abdsak11/OneDrive - Lärande/Dokument/GitHub/word-automation/main.py", line 65, in on_any_event
    doc = Document(base)
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\docx\api.py", line 25, in Document
    document_part = Package.open(docx).main_document_part
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\docx\opc\package.py", line 128, in open
    pkg_reader = PackageReader.from_file(pkg_file)
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\docx\opc\pkgreader.py", line 32, in from_file
    phys_reader = PhysPkgReader(pkg_file)
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\docx\opc\phys_pkg.py", line 32, in __new__
    raise PackageNotFoundError(
docx.opc.exceptions.PackageNotFoundError: Package not found at 'test 1.doc'

Please ask support questions on StackOverflow using the "python-docx" tag. This issues
list is for suspected bugs and new feature requests.
Could be the document is in the pre-Word 2007 binary format; .doc (as opposed to .docx) files typically are.

I think this module has a bug in Ubuntu 20.04 TLS;
File "/home/alla/.local/lib/python3.8/site-packages/docx/opc/phys_pkg.py", line 30, in new
raise PackageNotFoundError(
docx.opc.exceptions.PackageNotFoundError: Package not found at 'teste.docx'

Ya I encountered the same issue.

has it been solved? just encountered the same issue

@scanny I guess some of these cases could be just a wrong error message.
When the document (.docx file) does not exist, the error reported when trying to open it is "Package not found"
Shouldn't it be better to say "File not found"?
I thought I was having an error on importing the package.
But in my case it was just an error in the .docx file name.

@abubelinha Well, "wrong" is a pretty strong word. "Potentially confusing" I'll grant you though. In the Open Packaging Convention (OPC), a .docx file is known as a "package". The fact that an actual .docx file is a zip file is incidental. Packages don't have to be zip archives. They can be a directory tree structure or even something served over a network, piece-by-piece (part-by-part). The part of the code that raises this error doesn't know and shouldn't need to know what form the package is in this case.
All that said, it could say OPC Package not found at ... which might partially avoid confusing an OPC package with a Python package.
As far as distinguishing between "file not found" and other possible problems, have a look at the code this exception comes from: https://github.com/python-openxml/python-docx/blob/master/docx/opc/phys_pkg.py#L22-L36
There are four situations implemented so far; the docx parameter to Document(docx) is:

absent (default "empty" package is loaded)
is a str path to a directory ("expanded" (unzipped) .docx is loaded from that directory)
is a str path to a .docx file (Zip archive containing the OPC package)
is a file-like object (e.g. BytesIO) containing a Zip archive which is an OPC package)

The ambiguity arises when it is a string. This error arises when that "path" is not a directory and is not a zipfile. If it is neither of those, which did the user mean? Is it they misspelled the directory they wanted or there is neither a file nor a directory at that path or there is a file but it isn't a zip file or is otherwise not a loadable OPC package?
On thinking about this long enough to write this, it does occur to me we could trap the case where there is nothing at that path, like neither a directory nor a file, and maybe raise "No file or directory at {path}". And I suppose we could go one further when there is a file there but it is not a zipfile and say something like "File at {path} is not a valid .docx file. Note that .doc (pre-Word 2007) files are not supported". I suppose we'd also need a case for "is zipfle but does not contain a valid OPC package".
Anyway, if you want you can add a separate issue for this entitled "Improve PackageNotFoundError messages" and we may look to improve that next time we're in there.

Thanks for the detailed explanation, and sorry about having  the wrong word.
I didn’t intend it to sound strong, just to bring attention to a possible source of confussion.
Now that you are aware f it, I don’t think this deserves a new
Thanks a lot again

Be careful of the file path! Make sure that it is correct. I solved the same problem by correcting the path.

Be careful of the file path! Make sure that it is correct. I solved the same problem by correcting the path.

yep    mine is the wrong path


[SDL2] overwriting of window borders in some conditions on amigaos4

As we discuss on amigans there is the same kind of issue as we had with shaderjoy when resizing a window from bigger to smaller size. Quote from Capehill:
Reproducible with some examples: testoverlay2, teststreaming. Not producible with testdrawchessboard.
Originally issue was found with some sdl2 port, which initialization code looks like this:
window_ = SDL_CreateWindow(WINDOW_TITLE,
                           SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
                           pop_window_width, pop_window_height, flags);
// Make absolutely sure that VSync will be off, to prevent timer issues.
SDL_SetHint(SDL_HINT_RENDER_VSYNC, "0");
renderer_ = SDL_CreateRenderer(window_, -1 , SDL_RENDERER_ACCELERATED | SDL_RENDERER_TARGETTEXTURE);
SDL_RendererInfo renderer_info;
if (SDL_GetRendererInfo(renderer_, &renderer_info) == 0) {
    if (renderer_info.flags & SDL_RENDERER_TARGETTEXTURE) {
        is_renderer_targettexture_supported = true;
    }
}

Which means issues probably happens in compositing renderer path.

testdrawchessboard uses SW rendering, so blitting happens via SDL_os4framebuffer.c and there are  differences when compared to blitting in SDL_render_compositing.c.

SDL_Window vs. Window width & height. Maybe there are not in sync
Framebuffer code uses min() to limit blitting area

Should be also tested with MiniGL renderer. Ogles2 is not affected because ogles2 handles the blitting internally.

Should be fixed but if not, please re-open.


Update build-microsoft-365-solutions.md

Fixed typos

Docs Build status updates of commit dc00d42:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/build-microsoft-365-solutions.md
:bulb:Suggestion
View
Details

docs/build-microsoft-365-solutions.md

Line 75, Column 156: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/connectors/connector-reference/connector-reference-standard-connectors' will be broken in isolated environments. Replace with a relative link.
Line 75, Column 285: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/connectors/connector-reference/connector-reference-premium-connectors' will be broken in isolated environments. Replace with a relative link.

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Create 2520-count-the-digits-that-divide-a-number.js

File(s) Modified:  2520-count-the-digits-that-divide-a-number.js
Language(s) Used:  javascript
Submission URL: https://leetcode.com/problems/count-the-digits-that-divide-a-number/submissions/1006700949/

Important
Please make sure the file name is lowercase and a duplicate file does not already exist before merging.

hey @chetannada, Problem 2520 is not mentioned in the Readme file. hence we are unable to merge it; nevertheless, you may help with the other problems on the list.
For more details Read CONTRIBUTING.md

For your information PR 2810,  PR 2710 and many more PR was merged which does not mentioned in the Readme file.
So Please use Strict rule on the from the first PR so i will not add more PR like that.

hey @chetannada, Problem 2520 is not mentioned in the Readme file. hence we are unable to merge it; nevertheless, you may help with the other problems on the list.
For more details Read CONTRIBUTING.md

For your information PR 2810, PR 2710 and many more PR was merged which does not mentioned in the Readme file. So Please use Strict rule on the from the first PR so i will not add more PR like that.

hhf

We were instructed to follow what is expressly stated in the Readme document.

We were instructed to follow what is expressly stated in the Readme document.

Q: What if the problem I want to add isn't in the Neetcode 150 list or Missing Solutions table?

A: Questions outside of the Neetcode 150 list can be added but please prioritise adding the listed solutions first.`

In Answer: It already written the it can be added not written like that can not be added or Your PR will not merge if you post the different solution here, I think you need to Update CONTRIBUTING.md for this.
Hi, @felivalencia3 Can you throw some light on this? Thanks.


🐛 BUG: Interrupted wrangler pages publish resets wrangler auth state and project selection

What version of Wrangler are you using?
2.0.29
What operating system are you using?
Linux
Describe the Bug
I ran this command and pressed CTRL+C while it was getting cache (because I had forgotten to build, so I thought to stop it):
$ wrangler pages publish .build
Retrieving cached values for account_id and project_name from node_modules/.cache/wrangler
^C%

After I built the project with npm I executed the same command again but Wrangler now asked me to login and then to select a project.
$ wrangler pages publish .build
Retrieving cached values for account_id and project_name from node_modules/.cache/wrangler
Attempting to login via OAuth...

Expected behavior for me would be that stopped cache retrieval wouldn't require OAuth and project selection.

Hi @scaleoutsean , thanks for filing this issue. I am unfortunately unable to reproduce this. Are you able to consistency cause this logout behavior?

Hey,
This does not seem to be a real problem since the repro is hard and it just requires a re-auth.


Camera is more zoomed than basic iOS camera

Both the front camera and the back camera seem to be more zoomed in than the standard camera, how do I fully zoom out?

I just tested this with both FastttCamera demo apps on an iPhone 5S running iOS9, and the zoom is exactly the same for the front and back camera as the built-in Camera app.


Failed to import and run

I get this:
Conflict with dependency 'com.squareup.okio:okio' in project ':mobile'. Resolved versions for runtime classpath (1.14.0) and compile classpath (1.13.0) differ. This can lead to runtime crashes. To resolve this issue follow advice at https://developer.android.com/studio/build/gradle-tips#configure-project-wide-properties. Alternatively, you can try to fix the problem by adding this snippet to C:\Users\user\Desktop\iosched\mobile\build.gradle:
dependencies {
implementation("com.squareup.okio:okio:1.14.0")
}

Please use AS 3.2

Why close the issue without letting me tell you if it works there or not?
The issue was reported when I've used Android Studio 3.3 Canary 6 .
I've now tested on Android Studio 3.2 Beta 5, and it worked fine, but still showed some errors:

Please fix the issues, and make it work for newer versions of the IDE.

Because it's a dup of #275 and others.
This project requires 3.2.

Can you switch to text mode? Not sure what those errors are. I don't think animal.sniffer is part of iosched

On the next build, it is shown as such:

and the build log is:
build log.txt

Yep that's all fine then.

ok can you please explain though why it won't work on new IDE version?
I can see that even the link you've provided is closed.

Because 3.3 is canary, lightly tested. You're not supposed to use it for production. We were targeting 3.1 which is stable but we had to use 3.2 (beta) because of androidx.

Why publish a version of the IDE that can't even build Google's own projects, especially the one that is supposed to be on the peak of Google's own libraries, which were presented on the event itself...
:(

Because it's a canary.

But I love canary.
And usually it doesn't have such serious issues...

can't run the build
Android resource linking failed
Output:  /Users/rninja4/Desktop/Ap/iosched/mobile/build/intermediates/incremental/mergeDebugResources/stripped.dir/layout/fragment_onboarding.xml:62: error: attribute ipi_currentPageIndicatorColor (aka com.google.samples.apps.iosched:ipi_currentPageIndicatorColor) not found.
/Users/rninja4/Desktop/Ap/iosched/mobile/build/intermediates/incremental/mergeDebugResources/stripped.dir/layout/fragment_onboarding.xml:62: error: attribute ipi_pageIndicatorColor (aka com.google.samples.apps.iosched:ipi_pageIndicatorColor) not found.
/Users/rninja4/Desktop/Ap/iosched/mobile/build/intermediates/incremental/mergeDebugResources/stripped.dir/layout/item_session_info.xml:238: error: attribute flexDirection (aka com.google.samples.apps.iosched:flexDirection) not found.
/Users/rninja4/Desktop/Ap/iosched/mobile/build/intermediates/incremental/mergeDebugResources/stripped.dir/layout/item_session_info.xml:238: error: attribute flexWrap (aka com.google.samples.apps.iosched:flexWrap) not found.
error: failed linking file resources.
Command: /Users/rninja4/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.0-beta04-4818971-osx.jar/1aa33c3aea8e90bb7295ae32d8d13b67/aapt2-3.2.0-beta04-4818971-osx/aapt2 link -I
/Users/rninja4/Library/Android/sdk/platforms/android-28/android.jar
--manifest
/Users/rninja4/Desktop/Ap/iosched/mobile/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml
-o
/Users/rninja4/Desktop/Ap/iosched/mobile/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_
-R
@/Users/rninja4/Desktop/Ap/iosched/mobile/build/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
/Users/rninja4/Desktop/Ap/iosched/mobile/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r
--custom-package
com.google.samples.apps.iosched
-0
apk
--output-text-symbols
/Users/rninja4/Desktop/Ap/iosched/mobile/build/intermediates/symbols/debug/R.txt
--no-version-vectors
Daemon:  AAPT2 aapt2-3.2.0-beta04-4818971-osx Daemon #0

Same error.

WARNING: Conflict with dependency 'com.squareup.okio:okio' in project ':mobile'. Resolved versions for runtime classpath (1.14.0) and compile classpath (1.13.0) differ. This can lead to runtime crashes. To resolve this issue follow advice at https://developer.android.com/studio/build/gradle-tips#configure-project-wide-properties. Alternatively, you can try to fix the problem by adding this snippet to /Users/jagu/Projects/Android/iosched/mobile/build.gradle:

Info:
Android Studio 3.2 RC 2
Build #AI-181.55<IP_ADDRESS>74118, built on August 23, 2018
JRE: 1.8.0_152-release-1136-b06 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.4

Jesus Christ,:(

Some error: WARNING: Conflict with dependency 'com.squareup.okio:okio' in project ':mobile'. Resolved versions for runtime classpath (1.14.0) and compile classpath (1.13.0) differ. This can lead to runtime crashes. To resolve this issue follow advice at https://developer.android.com/studio/build/gradle-tips#configure-project-wide-properties. Alternatively, you can try to fix the problem by adding this snippet to /Users/nikitagusarov/Documents/Projects/my/iosched/mobile/build.gradle:
Android Studio 3.2
Build #AI-181.55<IP_ADDRESS>14246, built on September 17, 2018
JRE: 1.8.0_152-release-1136-b06 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.6
thx google


Input Format for DRMM

Hi, can anybody help me on the input format of DRMM? Based on the given tutorial, the cross entropy loss function needs sample negative instances. What if the input data already includes the negative samples (i.e. labeled as 0, positive one labeled as 1)? The negative sampling method will do negative sampling for every instance in the training data (including the negative one labeled as 0)?

if i get your question right:

the negative sampling can only happen if the negative samples are included in the input otherwise there is nowhere to sample from (see here)
yes, it would do negative sampling for each positive data for num_dup times (see here)

@Crysitna  Thank you so much for your clarification. It really helps me a lot. -:)

One more question. I note that the default batch_size for DRMM is somehow small (suggested as 20). Will a relative larger batch size (e.g. 128, 256) have negative influence on the model performance?

I hope things are working well for you now. I’ll go ahead and close this issue, but I’m happy to continue further discussion whenever needed.


Home Automation

DS_Homeassistant.docx
Dear all
I went through all the steps decribed in this page
https://github.com/Mat931/digitalstrom-homeassistant/blob/main/README_de.md?fbclid=IwAR2jpgkmphbz3Jtj06mWhVyrF_SkYBHuwKZ7seNcKZvqmkxAal4hhH0CqJM
I am got ask do you want to configute digitalstrom. But unable to do so. Got the message config flow could not be loaded. Invalid handler specified.
Any ideas what I am mising?
The Installation is unable to find my DSS20 as well.
Thanks for your support
r Adrian
<EMAIL_ADDRESS>

HACS Installation was succes. Congratulations, you're all set!

There might be a problem with your installation. Please check for a solution here: https://community.home-assistant.io/t/hacs-installing-problem-via-integration-error-config-flow-could-not-be-loaded/314501


Features added

Reference Issues/PRs

#11
What does this implement/fix? Explain your changes.
Following features are added:

Threshold can now be set by the user.
Pascal VOC saving format.
Add all classes at once without selecting each manually.
Option to choose between tensorflow and keras models.
Display accuracy and model name.

Any other comments?

Hi @QuickLearner171998! Thank you for lending a hand in implementing these features. I haven't set-up CI yet so I will have to manually test it. Once done, I will be able to merge the changes.
Thank you!

These are some great changes! Thank you for contributing to the project!
Once the changes have been made, I will go ahead and merge.
Later, I am planning to refactor the whole project as it is abominable. I don't know what I was thinking when I wrote it 2 years back.
If interested, we can make a Slack group for developers and chat over it so that anyone else can also join.

Yes, that would be great!!

Looks good enough. I will merge. Good job!


Light control permission check fails for HueLight type when using custom user group permission policy due to type error.

Home Assistant release with the issue:

At least v0.103.0 through v0.103.3
Last working Home Assistant release (if known):
N/A
Operating environment (Hass.io/Docker/Windows/etc.):

Runtime: Python3.8 virtualenv
Hardware: RPi3-B
OS: Arch Linux ARM
Integration:
One or more of

Hue lights
Core lights
User Group Permissions for entities

Description of problem:
When

employing a custom user group policy to limit user control to only some lights (or even explicitly allowing light domain control through a policy (see auth group policy kids in configuration section below)
and attempting to control a light which is a Hue light group
by a user who is a member of the custom group

an entity_id is not passed correctly to entity_perms when checking permissions.
Normal lights work fine, only HueLight groups seem to be affected. The error only occurs when users in the custom user group attempt to log in to the UI (which is not successful; the UI will never load). It does not affect members of only the system-users group. Users who are members of both the custom group and the system-users group will trigger the error. The actual error is that the HueLight object in target_lights is, in itself, not a hashable type:
2019-12-14 14:21:39 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.1456913136] unhashable type: 'HueLight'
Traceback (most recent call last):
  File "/srv/hass/lib/python3.8/site-packages/homeassistant/components/websocket_api/commands.py", line 128, in handle_call_service
    await hass.services.async_call(
  File "/srv/hass/lib/python3.8/site-packages/homeassistant/core.py", line 1235, in async_call
    await asyncio.shield(self._execute_service(handler, service_call))
  File "/srv/hass/lib/python3.8/site-packages/homeassistant/core.py", line 1260, in _execute_service
    await handler.func(service_call)
  File "/srv/hass/lib/python3.8/site-packages/homeassistant/components/light/__init__.py", line 213, in async_handle_light_on_service
    if not entity_perms(light, POLICY_CONTROL):
  File "/srv/hass/lib/python3.8/site-packages/homeassistant/auth/permissions/__init__.py", line 40, in check_entity
    return entity_func(entity_id, key)
  File "/srv/hass/lib/python3.8/site-packages/homeassistant/auth/permissions/util.py", line 74, in apply_policy_funcs
    result = func(object_id, key)
  File "/srv/hass/lib/python3.8/site-packages/homeassistant/auth/permissions/util.py", line 89, in test_value
    schema: ValueType = lookup_func(perm_lookup, lookup_dict, object_id)
  File "/srv/hass/lib/python3.8/site-packages/homeassistant/auth/permissions/entities.py", line 85, in _lookup_entity_id
    return entities_dict.get(entity_id)
TypeError: unhashable type: 'HueLight'

As I understand it, the entity_perms function expects an entity ID. Even when the entire light domain is given controllable permissions to the user group, the error still occurs. The patch I've applied to allow this to work is the following, but I doubt it's the best way to fix the problem:
diff --git a/homeassistant/components/light/__init__.py b/homeassistant/components/light/__init__.py
index 8a2a61d04..5b5acd988 100644
--- a/homeassistant/components/light/__init__.py
+++ b/homeassistant/components/light/__init__.py
@@ -209,7 +209,7 @@ async def async_setup(hass, config):
             entity_perms = user.permissions.check_entity

             for light in target_lights:
-                if not entity_perms(light, POLICY_CONTROL):
+                if not entity_perms(light.entity_id, POLICY_CONTROL):
                     raise Unauthorized(
                         context=service.context,
                         entity_id=light,

I suspect either

the conversion from entity_ids to true light_ids is inappropriate for use with the permissions check or does not work correctly for HueLight objects
or the HueLight type should be hashable.

I don't know why the error doesn't occur when using only the normal user group policies, but suspect the permission check gets short-circuited for the default user policy.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
hue:
  bridges:
    - host: !secret hue_ip
      allow_unreachable: true
      allow_hue_groups: true

`
and the custom user group policies under which the error occurs:
$CONFIG_DIR/.storage/auth:
{
       ...
        "groups": [
            {
                "id": "system-admin",
                "name": "Administrators"
            },
            {
                "id": "system-read-only",
                "name": "Read Only"
            },
            {
                "id": "system-users",
                "name": "Users"
            },
            {
                "id": "kids",
                "name": "Kids",
                "policy": {
                    "entities": {
                        "all": {
                            "read": true
                        },
                        "domains": {
                            "automation": true,
                            "media_player": true,
                            "script": true,
                            "switch": true
                        },
                        "entity_ids": {
                            "light.lounge_lamp": {
                                "control": true,
                                "read": true
                            },
                            "light.lounge_overhead": {
                                "control": true,
                                "read": true
                            }
                        }
                    }
                }
            }
        ],
       ...
       "users": [
            {
                "group_ids": [
                    "system-admin"
                ],
                "id": "REDACTED",
                "is_active": true,
                "is_owner": true,
                "name": "REDACTED_OWNER",
                "system_generated": false
            },
            {
                "group_ids": [
                    "system-users"
                ],
                "id": "REDACTED",
                "is_active": true,
                "is_owner": false,
                "name": "REDACTED_NORMAL_USER",
                "system_generated": false
            },
           {
                "group_ids": [
                    "kids"
                ],
                "id": "REDACTED",
                "is_active": true,
                "is_owner": false,
                "name": "REDACTED_AFFECTED",
                "system_generated": false
            }
     ]
     ...
}

and
{
       ...
        "groups": [
            {
                "id": "system-admin",
                "name": "Administrators"
            },
            {
                "id": "system-read-only",
                "name": "Read Only"
            },
            {
                "id": "system-users",
                "name": "Users"
            },
            {
                "id": "kids",
                "name": "Kids",
                "policy": {
                    "entities": {
                        "all": {
                            "read": true
                        },
                        "domains": {
                            "automation": true,
                            "light": true,
                            "media_player": true,
                            "script": true,
                            "switch": true
                        }
                    }
                }
            }
        ],
       ...
       "users": [
            {
                "group_ids": [
                    "system-admin"
                ],
                "id": "REDACTED",
                "is_active": true,
                "is_owner": true,
                "name": "REDACTED_OWNER",
                "system_generated": false
            },
            {
                "group_ids": [
                    "system-users"
                ],
                "id": "REDACTED",
                "is_active": true,
                "is_owner": false,
                "name": "REDACTED_NORMAL_USER",
                "system_generated": false
            },
           {
                "group_ids": [
                    "kids"
                ],
                "id": "REDACTED",
                "is_active": true,
                "is_owner": false,
                "name": "REDACTED_AFFECTED",
                "system_generated": false
            }
     ]
     ...
}

Traceback (if applicable):
2019-12-14 14:21:39 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.1456913136] unhashable type: 'HueLight'
Traceback (most recent call last):
  File "/srv/hass/lib/python3.8/site-packages/homeassistant/components/websocket_api/commands.py", line 128, in handle_call_service
    await hass.services.async_call(
  File "/srv/hass/lib/python3.8/site-packages/homeassistant/core.py", line 1235, in async_call
    await asyncio.shield(self._execute_service(handler, service_call))
  File "/srv/hass/lib/python3.8/site-packages/homeassistant/core.py", line 1260, in _execute_service
    await handler.func(service_call)
  File "/srv/hass/lib/python3.8/site-packages/homeassistant/components/light/__init__.py", line 213, in async_handle_light_on_service
    if not entity_perms(light, POLICY_CONTROL):
  File "/srv/hass/lib/python3.8/site-packages/homeassistant/auth/permissions/__init__.py", line 40, in check_entity
    return entity_func(entity_id, key)
  File "/srv/hass/lib/python3.8/site-packages/homeassistant/auth/permissions/util.py", line 74, in apply_policy_funcs
    result = func(object_id, key)
  File "/srv/hass/lib/python3.8/site-packages/homeassistant/auth/permissions/util.py", line 89, in test_value
    schema: ValueType = lookup_func(perm_lookup, lookup_dict, object_id)
  File "/srv/hass/lib/python3.8/site-packages/homeassistant/auth/permissions/entities.py", line 85, in _lookup_entity_id
    return entities_dict.get(entity_id)
TypeError: unhashable type: 'HueLight'

Additional information:
REDACTED_OWNER and REDACTED_NORMAL_USER users are unaffected. Only the REDACTED_AFFECTED user is affected.

I am having the same issue when trying to implement a custom group for a single hue light.

arch
x86_64

dev
false

docker
true

hassio
true

os_name
Linux

python_version
3.7.5

timezone
America/Regina

version
0.103.5

virtualenv
false

Wed Jan 08 2020 17:00:33 GMT-0600 (Central Standard Time)
unhashable type: 'Light'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 133, in handle_call_service
connection.context(msg),
File "/usr/src/homeassistant/homeassistant/core.py", line 1235, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 213, in async_handle_light_on_service
if not entity_perms(light, POLICY_CONTROL):
File "/usr/src/homeassistant/homeassistant/auth/permissions/init.py", line 40, in check_entity
return entity_func(entity_id, key)
File "/usr/src/homeassistant/homeassistant/auth/permissions/util.py", line 67, in apply_policy_func
return func(object_id, key) is True
File "/usr/src/homeassistant/homeassistant/auth/permissions/util.py", line 89, in test_value
schema: ValueType = lookup_func(perm_lookup, lookup_dict, object_id)
File "/usr/src/homeassistant/homeassistant/auth/permissions/entities.py", line 85, in _lookup_entity_id
return entities_dict.get(entity_id)
TypeError: unhashable type: 'Light'


Add context to prepareRoutes for servant-auth

Implement prepareRoutesWithContext to align with servant's serveWithContext. Required for servant-auth.

These changes look sensible. I think this is good to go @istathar!


An error occured while starting the kernel

Issue Report Checklist

[x] Searched the issues page for similar reports
[x] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
[ ] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
[ ] Could not reproduce inside jupyter qtconsole (if console-related)
[ ] Tried basic troubleshooting (if a bug/error)

[x] Restarted Spyder
[ ] Reset preferences with spyder --reset
[ ] Reinstalled the latest version of Anaconda
[ ] Tried the other applicable steps from the Troubleshooting Guide

[ ] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description
Unable to use Spyder, getting the following error on IPython Console "An error occured while starting the kernel"
What steps reproduce the problem?
I was trying to understand the significance of init.py file in the context of packages.

create a folder by name datetime
Inside the datetime folder create a file named datetime.py
create another file say test.py at the same level as that of datetime folder. Inside test.py write import datetime.datetime
datetime.now()
Also, in between I  changed sys.path variable to include the path to the folder datetime

it was workig fine by throwing the error no module found which was expected.
I think the moment I created init.py file inside the datetime directory and run the test.py again, i got the kernel error
What is the expected output? What do you see instead?
Paste Traceback/Error Below (if applicable)

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site‑packages/spyder_kernels/console/__main__.py", line 11, in
start.main()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site‑packages/spyder_kernels/console/start.py", line 289, in main
import_spydercustomize()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site‑packages/spyder_kernels/console/start.py", line 39, in import_spydercustomize
import spydercustomize
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site‑packages/spyder_kernels/customize/spydercustomize.py", line 24, in
from IPython.core.getipython import get_ipython
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site‑packages/IPython/__init__.py", line 56, in
from .terminal.embed import embed
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site‑packages/IPython/terminal/embed.py", line 14, in
from IPython.core.magic import Magics, magics_class, line_magic
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site‑packages/IPython/core/magic.py", line 20, in
from . import oinspect
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site‑packages/IPython/core/oinspect.py", line 30, in
from IPython.lib.pretty import pretty
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site‑packages/IPython/lib/pretty.py", line 761, in
datetime.datetime: _repr_pprint,
AttributeError: module 'datetime' has no attribute 'datetime'

Versions

Spyder version: 4.1.3
Python version: 3.7.6 (But I have set the interpreter to Python 3.8.3 )
Qt version: 5.9.6
PyQt version: 5.9.2
Operating System name/version: macOS High Sierra Version 10.13.6 / Darwin 17.7.0

Dependencies

# Mandatory:
applaunchservices >=0.1.7      :  0.2.1 (OK)
atomicwrites >=1.2.0           :  1.4.0 (OK)
chardet >=2.0.0                :  3.0.4 (OK)
cloudpickle >=0.5.0            :  1.4.1 (OK)
diff_match_patch >=20181111    :  20181111 (OK)
intervaltree                   :  None (OK)
IPython >=4.0                  :  7.15.0 (OK)
jedi =0.15.2                   :  0.15.2 (OK)
nbconvert >=4.0                :  5.6.1 (OK)
numpydoc >=0.6.0               :  1.0.0 (OK)
parso =0.5.2                   :  0.5.2 (OK)
pexpect >=4.4.0                :  4.8.0 (OK)
pickleshare >=0.4              :  0.7.5 (OK)
psutil >=5.3                   :  5.7.0 (OK)
pygments >=2.0                 :  2.6.1 (OK)
pylint >=0.25                  :  2.4.4 (OK)
pyls >=0.31.9;<0.32.0          :  0.31.10 (OK)
qdarkstyle >=2.8               :  2.8.1 (OK)
qtawesome >=0.5.7              :  0.7.2 (OK)
qtconsole >=4.6.0              :  4.7.5 (OK)
qtpy >=1.5.0                   :  1.9.0 (OK)
rtree >=0.8.3                  :  0.9.4 (OK)
sphinx >=0.6.6                 :  3.1.1 (OK)
spyder_kernels >=1.9.1;<1.10.0 :  1.9.1 (OK)
watchdog                       :  None (OK)
zmq >=17                       :  19.0.1 (OK)

# Optional:
cython >=0.21                  :  None (OK)
matplotlib >=2.0.0             :  None (OK)
numpy >=1.7                    :  None (OK)
pandas >=0.13.1                :  None (OK)
scipy >=0.17.0                 :  None (OK)
sympy >=0.7.3                  :  None (OK)

Restarting Spyder with defaults solved the issue


OpenPype process and headless mode version not found error

Problem
If version is specified and headless mode is enabled, OpenPype will just silently crash. Without headless mode window will popup saying that requested version was not found. This is confusing when trying to debug what's happening for example on Deadline.
[cuID:2zcab6e]

now it crashes with traceback, so it can be cought:
Traceback (most recent call last):
  File "C:\Users\annat\Documents\Projects\OpenPype\sources\op-py39\start.py", line 1191, in <module>
    boot()
  File "C:\Users\annat\Documents\Projects\OpenPype\sources\op-py39\start.py", line 1066, in boot
    version_path = _bootstrap_from_code(use_version)
  File "C:\Users\annat\Documents\Projects\OpenPype\sources\op-py39\start.py", line 835, in _bootstrap_from_code
    raise OpenPypeVersionIncompatible(
igniter.tools.OpenPypeVersionIncompatible: Requested version "3.14.15-nightly.2" was not found.


[ENG-549]Remove broken header element in navigation bar

Purpose
Remove the header element in navigation bar (appears in mobile view) since it is broken and always says "Overview".

Summary of Changes
Removed the element from the template.

Side Effects

Feature Flags

QA Notes
Should be fairly benign change.
Before:

After:

Ticket

https://openscience.atlassian.net/browse/ENG-549
Reviewer Checklist

[ ] meets requirements
[ ] easy to understand
[ ] DRY
[ ] testable and includes test(s)
[ ] changes described in CHANGELOG.md

@futa-ikeda mind resolving conflicts?


hrkfdn.ncspot version 1.0.0

[ ] Have you signed the Contributor License Agreement?
[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] This PR only modifies one (1) manifest
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.6 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Hi @nett00n,
The package didn't pass a Defender or similar security scan. This might be a false positive and we can rescan tomorrow.
(Automated response - build 796.)

Automatic Validation ended with:

Installation failed with exit code -1978335187 2024-02-18 02:20:33.786 [FAIL] Installer failed security check. Url: https://github.com/hrkfdn/ncspot/releases/download/v1.0.0/ncspot-v1.0.0-windows-x86_64.zip Result: 0x80004005 2024-02-18 02:20:33.786 [CLI ] Terminating context: 0x8a15002d at D:\a_work\1\s\external\pkg\src\AppInstallerCLICore\Workflows\DownloadFlow.cpp:1e6 MSI (s) (90:C0) [02:20:20:519]: Windows Installer installed the product. Product Name: Microsoft Visual C++ 2022 X64 Minimum Runtime - 14.38.33135. Product Version: 14.38.33135. Product Language: 1033. Manufacturer: Microsoft Corporation. Installation success or error status: 0. MSI (s) (90:5C) [02:20:21:566]: Windows Installer installed the product. Product Name: Microsoft Visual C++ 2022 X64 Additional Runtime - 14.38.33135. Product Version: 14.38.33135. Product Language: 1033. Manufacturer: Microsoft Corporation. Installation success or error status: 0. [0A30:17C8][2024-02-18T02:20:18]w363: Could not create system restore point, error: 0x80070422. Continuing...

(Automated response - build 796.)

@wingetbot run

Automatic Validation ended with:

No errors to post.

(Automated response - build 797.)

@wingetbot waivers Add Validation-Executable-Error


JSON Processing

Hi Adam,
Thanks for great presentation at Devoxx 2024.
Looking forward for simple JSON processing example.
Kindly regards,
Marcin

Thanks for attending my session! JSON was not a part of the presentation, but checkout this: https://youtube.com/shorts/-JttZAf_fIU

Looks great 👍Thanks. Looking forward to meet you personally!


Add release note.

Changes proposed in this pull request:

Add release note.

Codecov Report

:exclamation: No coverage uploaded for pull request base (dev@bb3ca5e). Click here to learn what that means.
The diff coverage is n/a.

@@          Coverage Diff           @@
##             dev     #999   +/-   ##
======================================
  Coverage       ?   54.86%
======================================
  Files          ?      622
  Lines          ?    12288
  Branches       ?     1951
======================================
  Hits           ?     6742
  Misses         ?     5135
  Partials       ?      411

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 bb3ca5e...dc14459. Read the comment docs.


Extension Pop Up Styling

Once the backend response is changed, we would have to change the extension so it renders the response received from the server.

Should be in https://github.com/sakshaat/noclick-extension since I split the two, not here. Closing.


DS: Outline feature in jupyter notebook mode

Feature: Notebook Editor, Interactive Window, Python Editor cells

Description
Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer
Please support outline feature in jupyter notebook mode.
Just like Table of Contents extension in Jupyter Notebook. Table of Contents extension webpage

Closing in favor of #1348

Closing in favor of #1348


Use clang-format

Hi,
Just one quick question, not sure if I am doing clang-format correctly.
So in the root dir:
mkdir build && cd build
cmake ../
cmake --build . --target ../.clang-format

After that, no error message pops up,
(base) cFX504GD:~/Projects/mine/libE57Format/build$ cmake --build . --target ../.clang-format
(base) cFX504GD:~/Projects/mine/libE57Format/build$

Could you let me know if it is the proper way please?

I don't know why cmake isn't giving you an error since ../.clang-format isn't a target.
I get this error (cmake version 3.19.1):
noir$ cd /Users/maloney/dev/build-libE57Format-clang_64bit-Debug
noir$ cmake --build . --target ../.clang-format
make: *** No rule to make target `../.clang-format'.  Stop.

The proper command is what's in the README:
cmake --build . --target format

If you don't have clang-format installed, you should get a cmake error:
make: *** No rule to make target `format'.  Stop.

Otherwise, you should see this:
noir$ cmake --build . --target format
Scanning dependencies of target format
[100%] Running clang-format...
[100%] Built target format

@asmaloney :+1:
Thanks for the reply, I think my problem solved.


Annotations documentation out of date

It appears @Monitor annotations have not supported the tags field since 0.4.35. I've updated the documentation to reflect this change, however I don't see how to create a pull request against the wiki through GitHub. Here's a link to the patch for the documentation:
https://gist.github.com/dogonthehorizon/88d9a0c14f8f680afe55ebecd764daea
Let me know if I can provide any further information!

Thanks for the diff. I applied the change:
https://github.com/Netflix/servo/wiki/Annotations/_compare/847888fa03d98eccf40f1aa321651d7fcab601a3...4214abcad98a2ca022e84a1f3b7f690f91975445
As far as I know there isn't a way to support PRs for github wikis and we had to disable public write access due to spam.


Build error when configuring with HPX_HAVE_ALGORITHM_INPUT_ITERATOR_SUPPORT=ON

Note to developers
Before I get started, I just want to say that you provide an impressive build system.
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=path ..
make install -j4

and in my build system find_package(HPX) just worked out of the box!
Expected Behavior
A successful build
Actual Behavior
/hpx/hpx/parallel/algorithms/merge.hpp fails to build, but I haven't gotten past resolving the errors in this file so there could be more. The first error I saw was an extra trailing || on line 850 of the aforementioned merge.hpp
Steps to Reproduce the Problem
1 .
cmake -D CMAKE_BUILD_TYPE=Release \
            -D CMAKE_INSTALL_PREFIX=path \
            -D HPX_HAVE_ALGORITHM_INPUT_ITERATOR_SUPPORT=ON ..

make -j

Specifications

HPX Version: 1.3.0 (cloned it last week)
mac osx 10.12.6 with brew installation of llvm/6.0.1 and cmake/3.11.1

FWIW, the problem is here: https://github.com/STEllAR-GROUP/hpx/blob/master/hpx/parallel/algorithms/merge.hpp#L850
@david8dixon thanks for reporting. We'll fix this asap.

@david8dixon I just want to point out that while we will fix the error you might not want to rely on HPX_HAVE_ALGORITHM_INPUT_ITERATOR_SUPPORT because we've deprecated it will remove it 6-12 months.


Feature/gradle build

Liferay boilerplate can be build by one gradle command.

Thanks a lot!! 🙂

@raptor22fa thank you very much for amazing work!


Bitstamp missing pairs

Hi, when loading products for bitstamp exchange I only get 6 out of 9 available pairs. The following are missing: "ltc/usd", "ltc/eur" and "ltc/btc".

Hi! Thank you for reporting this! Unfortunately, the bitstamp does not have a public API for product pairs, that's why the set of pairs is hardcoded for this exchange. We will now add the Litecoin pairs (may take something from minutes to a couple of hours for testing). Thanks again! Will update you on this very soon.

The LTC pairs will be available withing bitstamp in the upcoming new version release (1.1.70)

The LTC is available now in version 1.1.70. Thank you!


Fix the scaling of the lensing potential.

Unit of potential are arcsec^2. Taking the gradient relative to the potential gives back to the correct deflection field. We need to make sure we use the correct coordinate system (7.68 arcsec field of view) when using SIREN.


Fix clipboard on Wayland

arboard advertises that it works with Wayland, but in reality it only works with Wayland terminal applications. To make the clipboard work with applications that draw Wayland surfaces, arboard isn't going to work.
Copypasta does support Wayland's graphical clipboard, but the usage isn't documented. However, for the reasons mentioned in #1474 the move from Copypasta to arboard makes sense.
To resolve the issue, this commit brings in an optional dependency smithay-clipboard, that is a crate that correctly handles the Wayland clipboard in graphical applications. It is used by default if a Wayland window handle is found. If for some reason the handle to the Wayland window handle cannot be fetched, arboard is used as a backup.
It feels a bit wrong adding the wayland_display argument to from_pixels_per_point, but I couldn't figure out any better alternatives. Maybe pass the whole window to it?
Fixes https://github.com/emilk/egui/issues/1612

wouldn't it make more sense to make this PR to arboard?

Maybe. I'll try preparing and submitting a PR to them. Anyway, egui needs a modification to pass the wayland display handle to the clipboard crate, whatever it might be, so I'd leave this open for now.

Maybe. I'll try preparing and submitting a PR to them. Anyway, egui needs a modification to pass the wayland display handle to the clipboard crate, whatever it might be, so I'd leave this open for now.

Let's merge this fix into egui-winit now and then, later, we can hopefully remove it when this gets upstreamed to arboard.

So it seems the new CI checks works! The problem with #[cfg(not(unix))] is that it includes macos!

cargo check --target wasm32-unknown-unknown
emits
69 |         Ok(Clipboard { platform: PlatformClipboard::new()? })
   |                                  ^^^^^^^^^^^^^^^^^ use of undeclared type `PlatformClipboard`

I see now why #[cfg(unix)] is problematic. Let's use the same OS listing as winit does for the conditional compilation, that should work I guess.

cargo check --target wasm32-unknown-unknown
emits
69 |         Ok(Clipboard { platform: PlatformClipboard::new()? })
   |                                  ^^^^^^^^^^^^^^^^^ use of undeclared type `PlatformClipboard`

I think this issue is unrelated to this PR. The same happens with the master branch too.

I would prefer if you made new commits instead of squashing. New commits means I can see the changes since the previous one! I always squash on merge anyway, so don't worry about making a pretty history.

You can use the Compare button to see changes. But if you're squashing them on merge anyway, I'll do separate commits in the future :)

You can use the Compare button to see changes

Today I learned! thanks :)


Copy git config to VM

The commit for this PR was with a new dev box

I have made some changes since this was submitted:

This now uses what is apparently a more standard convention for getting the home directory.
There is no change if ~/.gitconfig is not available (nothing is copied, no error occurs)
That this is copied is documented in the release process

Hopefully that addresses the concerns.

Thanks, merge when green.


Windows surface pro 4 error

Uncaught TypeError: Cannot read property 'x' of undefined at getDistance - handle-event.js:73

Thank you for letting me know about this error. What browser did you use?

chrome and react js


Fix link to FontAwesome website

With the release of new versions of FontAwesome (5, 6..) the structure of the site was reorganized.

Waiting approvers...

Do I need to do anything to get it approved?


I Have MacOS big sur 11.7.10 and in the app i want install xcode 13.1 and no

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Version

OS: 11.7.10
Xcodes:13.1

Closing - in the future - please give more information so more people can help you


Using unescaped '#' characters in a data URI body is deprecated

Summary
As far as I can tell using the Stripe provider inserts 3 iframes into the DOM for a React app. Calling the following paths (full path excluded for berevity):

js.stripe.com/v3/controller-...
js.stripe.com/v2/m/outer.html...
m.stripe.network/inner.html...

These paths are currently triggering the following warning in Chrome:
[Deprecation] Using unescaped '#' characters in a data URI body is deprecated and will be removed in M68, around July 2018. Please use '%23' instead. See https://www.chromestatus.com/features/5656049583390720 for more details.
Other information
This seems to be a Chrome specific issue. Exact platform: chrome 67.0.3396 Windows 10

Thanks for the issue, @0xd5! I'll take a look today.

Looks like a simple fix, but I'm not familiar with the project. Happy to contribute with some guidance.

This is unfortunately not a simple fix; the issue originates deep within Stripe.js, which is the closed-source library wrapped by react-stripe-elements.
Thanks for the enthusiasm, though! We love to see people eager to make react-stripe-elements better.

Quick update: this change was pushed back to Chrome M71, in December. But we should still fix asap, looking now.

Hey @0xd5, are you still seeing this? I went through several demos and live integrations and was unable to find any cases where we used a data URI with a literal # in it. If you have a way to reproduce, would love to take a look.

Hi Adam,
Will check this out tomorrow and report back to you either way
On Mon, 10 Sep 2018, 18:46 Adam Solove<EMAIL_ADDRESS>wrote:

Hey @0xd5 https://github.com/0xd5, are you still seeing this? I went
through several demos and live integrations and was unable to find any
cases where we used a data URI with a literal # in it. If you have a way
to reproduce, would love to take a look.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/stripe/react-stripe-elements/issues/229#issuecomment-420000257,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Af9kSC54tNb7K34hMZ_qNVQ360YA-BYRks5uZqWDgaJpZM4VxvsT
.

I can confirm I no longer see this issue. These are the two instances of the iframe I could find rendered in my latest build.
<iframe frameborder="0" allowtransparency="true" scrolling="no" name="__privateStripeController0" allowpaymentrequest="true" src="https://js.stripe.com/v3/controller-1dfabed22ec73a1dc5d8834f381d776e.html#apiKey=xxxxxxxxxx&stripeJsId=ecc8362e-0503-4a3a-84d7-b69e7c5226b4&origin=xxxxxxxxxx&referrer=xxxxxxxxxx&controllerId=__privateStripeController0" aria-hidden="true" tabindex="-1" style="border: none !important; margin: 0px !important; padding: 0px !important; width: 1px !important; min-width: 100% !important; overflow: hidden !important; display: block !important; visibility: hidden !important; position: fixed !important; height: 1px !important; pointer-events: none !important;">

<iframe frameborder="0" allowtransparency="true" scrolling="no" name="__privateStripeMetricsController1" allowpaymentrequest="true" src="https://js.stripe.com/v2/m/outer.html#url=xxxxxxxxxx&title=upUgo%20SEO&referrer=&muid=31c5f7a7-9518-40b5-acd3-815bdb2a7c77&sid=708969d3-8d16-49c5-ac06-7804a16ce193&preview=false" aria-hidden="true" tabindex="-1" style="border: none !important; margin: 0px !important; padding: 0px !important; width: 1px !important; min-width: 100% !important; overflow: hidden !important; display: block !important; visibility: hidden !important; position: fixed !important; height: 1px !important; pointer-events: none !important;">

Thanks for looking into this, not sure what happened to fix it. I'll re-open if it appears.


Peckshield & Certora Audit

Addressed in this PR:

Current implementation onBridge.sol allows the consuming of the bridge rewards messages from l2 before checking if there are enough rewards on the bridge, to avoid a revert on _transferRewards  when not enough rewards are found. To fix that, a getAvailableRewards function was suggested to check for the total amount of rewards available on the bridge (both claimed and pending ) before consuming of the l2 message and transfer of tokens logic.
Added L1->L2 message cancellation on Bridge.sol for aTokens deposit on L2
Used onlyValidL2Address modifier on initialize to check if l2Bridge is a valid Cairo address instead of the require function.

migrated to #106


[Feature] Support deloy higress console

Background
So far, we only support automatic deployment of higress-controller and higress-gateway, and we expect to be able to automatically deploy higress-console as well

@Cloud-Yao thanks for your attention.

I'll add the quickstart for deploying an operator as soon as possible
the ‘console’ part is not currently developed


[RFC] Create archival_storage_service.md

What is this PR trying to achieve?
An RFC for the proposed archival storage service handling large archival filesets.
Who is this change for?
Archivists.

It's likely that this solution will also need a UI to display failed accessions, probably fed from DLQs between services - possibly even a mechanism of retrying or extracting failed content.

In addition we'll need to consider integrations with other services such as:

archivematica
goobi

Likely there will be a requirements for these services to provide accessions in the BagIt bag format, gzipped and uploaded to an S3 location.

Resolves: https://github.com/wellcometrust/platform/issues/1818


Run benchmarks in parallel

These take forever to run sequentially, and since we have temperature set to a non-zero value we should run each benchmark several times and average the pass/fail totals.

There's a script tests/record_benchmark.py that runs them multiple times gives stats on the totals.
The only thing to watch out for would be hitting OpenAI API rate limits!

I looked for solutions and I think this plugin for pytest should fit the bill?


Feature Request - Add disk to model

It would be very useful to be able to add additional disks to a model rather than having to do it individually at the machine level with aq add_disk

You can do this in the pan template for the model.

Our experience is that defining defaults at the model level is painful because a "model" is not consistent. e.g. vendors can tweak the CPU supplied, or the hardware team can choose to buy different SKUs within a single model.
Our approach has been to remove all defaults from models and script the addition of machines based on a "recipe" which can be customised by what is bought "this month".
@jrha is happy with workaround of defining these in PAN templates instead so closing this as won't fix as while we're not opposed to fixing it, realistically it will not happen.


Overriding fields with computedFields

Just a bit of a sanity check, but would it be safe to do something like
const Article = defineDocumentType(() => ({
  name: `Article`,
  contentType: `mdx`,
  filePathPattern: `articles/**/*.md`,
  fields: {
    title: {
      type: `string`,
      description: `The title of the article`,
      required: true,
    },
    subtitle: {
      type: `string`,
      description: `The text shown just below the title or the featured image`,
    },
  },
  computedFields: {
    subtitle: {
      type: `string`,
      resolve: (article) => article.subtitle ?? `My default subtitle`,
    },
  },
}));

to ensure there's always a subtitle even though it's optional for the markdown files' frontmatter? It seems to work, but I thought it would be good to double check as this isn't documented.

Playing around a little bit, it seems the type from fields persists even though the value from computedFields is used.

Since the types are iffy, I've decided to just rename the default fields, eg givenSlug and then in computedFields I either use the givenSlug if provided or calculate the slug based off the flattenedPath.


fix the issue of sprayproxy-deprovision

The PR https://github.com/konflux-ci/konflux-qe-definitions/pull/62 fixed issue of unregister pac server from Sprayprox. It shouldn't delete all of pac servers. This pr is to adapt that PR by passing  ocp-login-command as task parameter

/ok-to-test

/retest

I saw that we are failing with
[User error] Validation failed for pipelinerun rhtap-cli-e2e-hhq4m with error invalid input params for task sprayproxy-unregister-server: missing values for these params which have no default values: [ocp-login-command]

and this PR fixes that. Force merging.


When libraryTarget is set to module, the externals configuration appends hardcoded arrow functions that cannot be transformed

webpack version :5.89.0
libraryTarget: module
fileName: bundle.js
externals: react, react-dom
babel settings:@babel/preset-env @babel/preset-react
bundle.js file still includes arrow function like
external_react_dom_x = y => { var x = {}; __webpack_require__.d(x, y); return x; } var external_react_dom_y = x => () => x // from getSourceForModuleExternal or generateModuleRemapping

I need to provide a component to another project, but that project uses tools like 'es-check' which do not allow arrow functions.
Is there any method that could help me transform these hardcoded arrow functions into normal functions?

We can fix it, but if your browser supports modules, it means you have support arrow functions

We can fix it, but if your browser supports modules, it means you have support of arrow functions

How are you going to fix it？If the issue is converting arrow functions to regular functions, I’m willing to create a PR to resolve it.

@versole We have https://github.com/webpack/webpack/blob/main/lib/RuntimeTemplate.js#L139 and should use there to generate code, so if you will set output.environment.arrowFunction to false and we will generate a regular function, so the fix is easy, you can send a PR

Has anyone still followed up on this issue?


"Undo close" tab frequently opens not the most recently closed tab

Sometimes File > Undo close doesn't work correctly and reopens tabs NOT in the reverse order of their closing.
E.g. I close tabs A, B, C. If I press Ctrl+Shift+T 3 times, I expect tabs reopen in order C, B, A.
Sometimes it works like this, but many times some other tab reopens, maybe even another one that I closed before A, B, C.

This is still reproducible at times


Connect ElephantSQL Database to Python App within IBMCloud

As a Developer
I need the SQL Database to be available within IBM cloud
So that the Python app is able to store data
Assumptions:

Elephant SQL database is set up

Acceptance Criteria:
Given ... a team member opens ibm cloud
When ... the dashboard is opened
Then ... we can see the Python app and elephantSQL connection in the dashboard

Moving this to done as the ElephantSQL database was already connected to the Promotions App via the manifest.yml file.
@savannahmccoy also made a few updates to the models and test file to make sure the database was working properly.


more easy to look in discord channel with debug

like the primary channel for players, which has all the event
and for the secondary channel for admins all the event and debug too

When you say "debug" what kind of stuff were you wanting?

like someone get kicked out, server on/off, someone run a commands

As it is right now, you can definitely have two webhooks set up, and one can be just player join/leave/ping/death or whatever you want, the other can be server start/stop/save.
What I don't tap into and I'm not sure I can, is someone running commands or being kicked/banned.


[RW Separation] Updates to restore from snapshot with added search replicas

With https://github.com/opensearch-project/OpenSearch/issues/15368 we add the ability to create and update an index to have search replicas.  We need to also support this configuration on restore.  With this issue we should accomplish this while honoring the same validations for search replicas:

Search replicas allowed with Segrep only
Auto expand replica count not allowed
Feature flag enforced

Hi @mch2
I would like to pickup this issue

Reproduced this issue and found that:

Search replicas not getting restored from the snapshot
We need to add validations while restoring the snapshot with replication type SEGMENT, so that search replicas do not get created when replication type is DOCUMENT.

Extending above mentioned validation adding a detailed validations bellow and marking which needs to be allowed and and which needs to be blocked.
Scenario 1:
Snapshot created with index.replication.type: DOCUMENT with no search replica (note: Search replicas are allowed only in SEGMENT replication type), can be restored with bellow settings:
Case 1.  No explicit index.replication.type and index.number_of_search_only_replicas in the settings: Allow
Case 2.  No explicit index.replication.type and index.number_of_search_only_replicas = 0: Allow
Case 3. index.replication.type: DOCUMENT and no explicit index.number_of_search_only_replicas : Allow
Case 4. index.replication.type: DOCUMENT and index.number_of_search_only_replicas = 0 : Allow
Case 5. index.replication.type: DOCUMENT and index.number_of_search_only_replicas > 0 : Block
Case 6. index.replication.type: SEGMENT  and no explicit index.number_of_search_only_replicas : Allow
Case 7. index.replication.type: SEGMENT and index.number_of_search_only_replicas = 0 : Allow
Case 8. index.replication.type: SEGMENT and index.number_of_search_only_replicas > 0 : Allow
Scenario 2:
Snapshot created with index.replication.type: SEGMENT with no search replica.
Case 1.  No explicit index.replication.type and index.number_of_search_only_replicas in the settings: Allow
Case 2.  No explicit index.replication.type and index.number_of_search_only_replicas = 0: Allow
Case 3. index.replication.type: DOCUMENT  and no explicit index.number_of_search_only_replicas : Allow
Case 4. index.replication.type: DOCUMENT and index.number_of_search_only_replicas = 0 : Allow
Case 5. index.replication.type: DOCUMENT and index.number_of_search_only_replicas > 0 : Block
Case 6. index.replication.type: SEGMENT  and no explicit index.number_of_search_only_replicas : Allow
Case 7. index.replication.type: SEGMENT and index.number_of_search_only_replicas = 0 : Allow
Case 8. index.replication.type: SEGMENT and index.number_of_search_only_replicas > 0 : Allow
Scenario 3:
Snapshot created with index.replication.type: SEGMENT with index.number_of_search_only_replicas > 0
Case 1.  No explicit index.replication.type and index.number_of_search_only_replicas in the settings: Allow
Case 2.  No explicit index.replication.type and index.number_of_search_only_replicas = 0: Allow
Case 3. index.replication.type: DOCUMENT  and no explicit index.number_of_search_only_replicas : Block
Case 4. index.replication.type: DOCUMENT and index.number_of_search_only_replicas = 0 : Allow
Case 5. index.replication.type: DOCUMENT and index.number_of_search_only_replicas > 0 : Block
Case 6. index.replication.type: SEGMENT  and no explicit index.number_of_search_only_replicas : Allow
Case 7. index.replication.type: SEGMENT and index.number_of_search_only_replicas = 0 : Allow
Case 8. index.replication.type: SEGMENT and index.number_of_search_only_replicas > 0 : Allow


[FEATURE] label should be able to indicate when it is truncated

Description of the requested feature
Truncated labels (using :limit-width) are currently cut. I want to be able to see when the label has been truncated.
Proposed configuration syntax
Add a :limited-indicator (or similar) attribute, which allows the user to pass a custom string which gets appended if the string was limited.
If this makes sense then I can look into implementing this.
Cheers!

limit-width: int maximum count of characters to display
I guess its the "length" of character to be max and not the width in px. So you should already know if len(text) > limit-width you are on right track. Maybe use Eww-expressions to evaluate what you trying to do...

Seems a pretty niche usecase :/
depending on where you get the value from - you could simple script it from there

Again you can pass this through a shell script 😶
Eww is anyway a declarative language and not imperative, where you be doing if/else or truncation?

The only use case where it would make sense to have truncation inside eww would be if the the text would be able to crawl to show the full text.

I think this is pretty valid and not a niche use case. If there's a wrap despite it being scriptable than making it explicit that the text is overflowing would be a nice default behavior. Internally it's much easier to just check the length than calling a shell script each time the string changes.

For wrapping then ye, its eww's problem - just truncating text eh

For wrapping then ye, its eww's problem - just truncating text eh

So introduce a :wrap Bool then?  Also use :limit-length instead of :limit-width as there is also a .width <px,%> to avoid confusion.

The change in eww is so minimal compared to the latency introduced by running a shell script on each change. I assume that's the main reason why eww expressions exist in the first place.

@snakedye Not exactly, I'm expecting the text comes from a shell script or shell-invokable binary, if it is, its so simple to check and perform actions over it with pipes, not just truncation and size determination but also some specific search for what to truncate and what to choose as title with, for example awk. I don't think it makes huge latency since it already comes from shell command and standard streams.

Also,
Unix Philosophy suggests:

Small is beautiful.
Make each program do one thing well.
Choose portability over efficiency.
Use shell scripts to increase leverage and portability.
Avoid captive user interfaces.
Make every program a filter (a filter is a program that gets most of its data from its standard input and writes its main results to its standard output).

Also "Worse is better" as long as you are not simplifying by adding more complexity.

Assuming the var is formatted directly like the string you want yes but if it's JSON which is to be expected, it's more complicated, you'll have to write a script and use multiple binaries and probably run multiple times the same binary/scripts because you need the other fields in that json.

But like how does this help in parsing json 🤔🤔 (just curious 👀)

You can just use eww's json interpreter which doesn't alter your variable.


the section on linking an existing API needs an update

This section https://learn.microsoft.com/en-us/azure/static-web-apps/functions-bring-your-own#link-the-azure-functions-app-to-the-static-web-apps-resource:
There are 4 options in the portal, not 3 as documented, and there is a spelling mistake, it is not backed but backend

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

ID: 2af70bd0-a356-b007-1087-7f6fc0ebf844
Version Independent ID: 13153062-fc32-4907-2d5d-a37ed5ada5cf
Content: Bring your own functions to Azure Static Web Apps
Content Source: articles/static-web-apps/functions-bring-your-own.md
Service: static-web-apps
GitHub Login: @craigshoemaker
Microsoft Alias: cshoe

@ciufudean
Thanks for your feedback! We will investigate and update as appropriate.


WIP: create snowpack configuration programmatically

In this PR a createConfiguration function is exposed. It can be used to create configuration that can be then passed to install function.
The logic is essentially the same as existing loadAndValidateConfig function, only without loading.
Related to #312

LGTM!


Modification for #791

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Changes for #791
Type of change
What is it?

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Documentation update
[ ] Tests update
[ ] Refactor

Checklist:

[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] I run go fmt ./... to check that my code is properly formatted
[ ] I run go vet ./... to check that my code is free of common Go style mistakes

Codecov Report

Merging #843 (b4b7331) into main (8662238) will increase coverage by 0.12%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #843      +/-   ##
==========================================
+ Coverage   31.06%   31.18%   +0.12%
==========================================
  Files          44       44
  Lines        4890     4871      -19
==========================================
  Hits         1519     1519
+ Misses       3168     3149      -19
  Partials      203      203

Impacted Files
Coverage Δ

pkg/models/images.go
96.07% <100.00%> (ø)

pkg/services/images.go
16.60% <0.00%> (+0.40%)
:arrow_up:

Continue to review full report at Codecov.

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


New package: EastMoney.EastMoney version 11.4.1

Checklist for Pull Requests

[x] Have you signed the Contributor License Agreement?
[ ] Is there a linked Issue?

Manifests

[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[x] Does your manifest conform to the 1.6 schema?

Note: <path> is the directory's name containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Policy 2.9 is unexpected here. I would have expected Policy 1.8 But I don't see a cause for either label.

Verify:


Lua 5.3 compatibility

To compile lgi for Lua 5.3 there are some instances of luaL_checkint that need to be changed to (int)luaL_checkinteger in buffer.c. After changing those, lgi is able to compile and work under Lua 5.3, however the test/test.lua script throws errors and hangs.

Are there any plans for a version for Lua 5.3?

Are there any plan for a Lua 5.3 version?

Yes, I finally got to testing Lua 5.3. Pushed luaL_checkint fix, disabled test which seemd to hang with 5.3 and there is still issue with GTK code causing 'C stack overflow' error in testsuite and many samples. I'm still investigating what's wring here.  Wild guess is that I'm bitten somewhere by the change that Lua 5.3 uses metatable methods when calling 'table' functions, and somewhere some metatable is called where it wasn't in previous versions.

Problem with GTK override was fixed, I think that lgi is now fully Lua 5.3 compatible.

Should we update the readme to say that lgi is compatible with 5.3? Right now it says

LGI is tested and compatible with standard Lua 5.1, Lua 5.2 and LuaJIT2. Compatibility with other Lua implementations is not tested yet.

@hugomg #133 remains for 5.3.

I think this can be closed (perhaps after mentioning 5.3 in the readme?)

#152


Inconsistent aggregate data on Domains Report (Yearly view mode)

https://github.com/chaineco/bisonexplorer/commit/e08b956f53f2aa927b0c3b13c727f704bf343c24


Saving as .ome.tiff

Very quick and easy question here: how can I save my post-registration images specifically to .ome.tiffs? The registration keeps converting to PNG and not preserving my z-stack which is making my data hard to analyze.
Thanks!

Hi @snackthingy,
The only PNGs should be the thumbnails of the registration results, which would be located in the subfolders inside of "results_dst_dir/sample_name". The ome.tiffs should be getting saved in "registered_slide_dst_dir/". All of that is assuming your code is something like this:
from valis import registration
from valis.slide_io import BioFormatsSlideReader
slide_src_dir = "/Users/User1/Desktop/Bop/Test Unreg"
results_dst_dir = "/Users/User1/Desktop/Bop/Test Results"
registered_slide_dst_dir = "/Users/User1/Desktop/Bop/Test Registered"

# Perform registration
registrar = registration.Valis(slide_src_dir, results_dst_dir)
rigid_registrar, non_rigid_registrar, error_df = registrar.register(reader_cls=BioFormatsSlideReader)

# Save registered slides if the alignments look good
registrar.warp_and_save_slides(dst_dir=registered_slide_dst_dir, compression="deflate", Q=100)

# Kill JVM if all done
registration.kill_jvm()

But for clarification, are you finding that valis is saving PNGs in "registered_slide_dst_dir/", instead of ome.tiffs?
Best,
-Chandler

Basically, the images I am inputting are .ome.tiffs with multiple slides (z-stacked) but the images I am getting out (which appear in the "registered_slide_dst_dir" are either PNGs or are TIFFs with no slides, just one image (usually just whatever the first slide in the z-stack was) but missing all the rest. No idea why it's happening but....

Hi @snackthingy,
Sorry for the delayed response, but this may have have to do with the way the original images are stored in the ome.tiff. I think what may be happening is that valis is just pulling out the 1st image to do the alignments, which is why you are only finding a single layer image in the output directory. However, I believe there is a way to get valis to align the full v-stack. Would you be able to share a pair of your images so that I can try to put something together to get this working? If so, please send a link to the folders containing the images to my e-mail, Chandler[dot]Gatenbee[@]moffitt[dot]org .
Best,
-Chandler

I would also be interested in registering multichannel images that are .ome.tiffs

Hi @cdgatenbee  I will send you some images. Also one of the folders to register and merge there is an issue when I run
registrar = registration.Valis(str(d), dst_dir, feature_detector_cls=OrbVggFD_low_fd, imgs_ordered=True, crop= "overlap")
rigid_registrar, non_rigid_registrar, error_df = registrar.register()

the error I get is raise LinAlgError("SVD did not converge") numpy.linalg.LinAlgError: SVD did not converge
Will send you images tomorrow.

Hi @andreevg04,
I think the issue with numpy is probably because you didn't delete the files that were generated on a previous attempt of running the code? I ran into this problem too and when I deleted the files that got generated and ran the code again, it worked. Maybe this will help?
Regards,
Snack

@cdgatenbee I sent you a google drive link to the images.
@snackthingy thank you for the suggestion, it worked like you said.

@cdgatenbee @snackthingy
Is there any progress regarding the images I sent you Chandler?


Change response field names

Problem
I'm trying to rename some fields when using select.
Suggested solution
This is my current query:
const data = await prisma.data_riskscores.findMany({
  select: {
    id: true,
    sections: true,
    configuration_country: {
      select: {
        id: true,
        name: true
      }
    }
  }
})

Now I'd like to rename sections and configuration_country, because the data should not necessarily reflect the naming scheme of the database (IMO these are very different usecases):
const data = await prisma.data_riskscores.findMany({
  select: {
    id: true,
    results: sections,
    configuration_country: {
      as: country,
      select: {
        id: true,
        name: true
      }
    }
  }
})

Alternatives
Using @map resp. rename the relation field. It's a reasonable alternative, but I think the schema is not the right place to make this change. IMO, the schema should (more or less) reflect the database. Whereas the select statement should allow to change the response data (because that might differ depending on the context of my request). For now, I'd probably go with a raw query instead.

Another alternative inspired from JS destructuring renaming
const data = await prisma.profile.findMany({
  select: {
    id: true,
    name: true,
    configuration_country: 'country' // work like as
 }
})

But it won't resolve the typed approach of Prisma

Hi, is there any update on this?
I am looking for a way to rename the output of an aggregation's field name, e.g _sum to something like total_X.
Is there an optimal interim solution to this?

totally agreed,
Too bad to have to map:
    const invoices = await this.prisma.invoice.findMany({
      where: { AND: where },
      include: { client: true, _count: { select: { notes: true } } },
      orderBy,
    });
    return invoices.map(({ _count, ...invoice }) => ({
      ...invoice,
      count: _count,
    }));

Instead of simply have:
    return this.prisma.invoice.findMany({
      where: { AND: where },
      include: { client: true, _count: { select: { notes: true }, as: 'count' } },
      orderBy,
    });

@jbdemonte that's exactly my usecase and my solution! I'm also using _count and would love to have a native way of renaming it as count, but meanwhile .map-ing it with JS. Would love to see support for this kind of field, I'd also suggest as as the keyname here.

    const categories = await this.prisma.category.findMany({
      take: limit,
      skip: offset,
      where: {
        is_deleted: false,
      },
      select: {
        id: true,
        type: true,
        name: true,
      },
    });
    return categories.map(({ id: _id, ...cat }) => ({ _id, ...cat }));

In my case, our frontend expected id to be _id, the field name in the underlying database is already _id, is there any way that I can do to make it happen instead of do the map for every requests ? The map definitely defeated the elegance that prisma provided above.

@Foxhound401 if you want to change them everywhere you can do that with @map:
https://www.prisma.io/docs/concepts/components/prisma-client/working-with-prismaclient/use-custom-model-and-field-names
Here we are discussing on a per-query change, not a global alias like you seem to want.

+1

+1

+1

+1

I couldn't use
const data = await prisma.profile.findMany({
  select: {
    id: true,
    name: true,
    configuration_country: 'country' // work like an 'as'
 }
})

with include though :cry:

@notAunty that's not a "solution", it's a proposal for new syntax that is very neat!

+1 for renaming with 'as'

+1, would be a great addition

+1

+1

+1

1

1

👍

I'd also like to voice my support, and have done so with the 👍 reaction, however seeing as we have not seen any updates in this thread I thought it more fitting to post a comment instead.

+1039 please

+1 for this alias feature

This is an indispensable feature.

My solution currently:
export const setCountKey = <T extends Record<string, any>, K extends string>(obj: T, key: K) => {
    obj[`${key}Count`] = obj['_count'][key]
    delete obj._count
    return obj as Omit<T, '_count'> & { [p in `${K}Count`]: number }
}

const [totalCount, list] = await this.db.$transaction([
    this.db.room.count({ where: { organizationId } }),
    this.db.room.findMany({
        where: { organizationId },
        skip: offset,
        take: limit,
        select: {
            _count: {
                select: {
                    tenants: true
                }
            },
            id: true
        }
    })
])
const roomIdList = list.map((n) => setCountKey(n, 'tenants'))
// roomIdList[0].tenantsCount => number

Any better idea?

@yeongjet that's neat, thank you!
If someone wants to use it as a higher order function here's what I did:
  return <T extends Record<string, any>>(obj: T) => {
    obj[`${key}Count`] = obj['_count'][key]
    delete obj._count
    return obj as Omit<T, '_count'> & { [P in `${K}Count`]: number }
  }
}

I need this feature too so I can do multiple aggregation relation-filtered queries on a given model.
For example:
prisma.training_sitemaps.findMany({
	where: {
		agent_id
	},
	select: {
		id: true,
		hostname: true,
		href: true,
		_count: {
			select: {
				links: { where: { training: 'pending' } }
			}
		}
	}
})

This only allows me to do one filtered count for the links relationship array.
If I want to do 4 of them (i.e. where training is pending, a separate one when training is complete, a separate one when training is failed, another when training is queued, etc.) I can't because links has to be unique. Any clues for a workaround here?

+1

So, currently, when fetching related data (e.g., card with box details), the data is nested, requiring additional mapping to flatten the structure:
async getCardsWithBoxIndexAndTitle(userId: User['id']) {
  const cards = await this.prisma.card.findMany({
    where: { userId },
    include: {
      box: {
        select: {
          index: true,
          title: true,
        }
      }
    }
  })

  // Further mapping to flatten the structure
  const cardsWithBoxIndexAndId = cards.map((card) => ({
    ...card,
    boxIndex: card.box.index,
    boxTitle: card.box.title,
  }))

  return cardsWithBoxIndexAndId;
}

Suggested Feature:

Mapping (map option): This would allow direct renaming and restructuring of fields from related entities in the query itself. For instance, map: { index: 'boxIndex', title: 'boxTitle' } would map box's index and title directly to boxIndex and boxTitle in the card entity.

Node Collapsing (removeNode option): This feature would enable the removal of the intermediate node (like box) and integrate its fields directly into the parent entity. This way, we could access card.boxIndex directly instead of card.box.boxIndex.

async getCardsWithBoxIndexAndId(userId: User['id']) {
  const cardsWithBoxIndexAndId = await this.prisma.card.findMany({
    where: { userId },
    include: {
      box: {
        select: {
          index: true,
          title: true,
        },
        map: {
          index: boxIndex,
          title: boxTitle,
        },
        removeNode: true // or collapseNode something like that
      }
    },
  });

  return cardsWithBoxIndexAndId;
}

These features would allow for more streamlined and efficient data handling, especially in cases where a flattened data structure is preferable.
(I'll leave this message in another thread)
Prisma ❤

+1

+1

Wanted to voice my support for this as well. I have quite a few queries in my backend where I'm manually renaming fields to meet frontend requirements.


docs(select): placeholder default is undefined

placeholder should default to undefined. Like input docs.
whould be confusing for other languages.

There is a problem with this PR.

Maybe we should link the default to i18n. So we don't specify the default as kinda hard coded.

added i18n in 09be4975920945817842ecebc13104cbfdf5956f