Multi-stage Dockerfile with Gradle cache + local dependency copies

We should implement a multi-stage Dockerfile that cache gradle dependencies and copies over the local dependencies for a Script - minimally that's just OSRSBot, but we can use DaxWalker as well
Here's an example that isn't quite right
# using multistage docker build
# ref: https://docs.docker.com/develop/develop-images/multistage-build/

# temp container to build using gradle
FROM gradle:7.4.2-jdk17-alpine AS TEMP_BUILD_IMAGE
ENV APP_HOME=/usr/app/
WORKDIR $APP_HOME
COPY build.gradle settings.gradle $APP_HOME

COPY gradle $APP_HOME/gradle
COPY --chown=gradle:gradle . /home/gradle/src
USER root
RUN chown -R gradle /home/gradle/src

RUN gradle build || return 0
COPY . .
RUN gradle clean build

# actual container

# Set base image from Docker image repo
# https://adoptium.net/temurin
FROM eclipse-temurin:17-jre-centos7

# Installs XDisplay packages so we can actually view the container (and run the bot)
RUN yum install libXext.x86_64 libXrender.x86_64 libXtst.x86_64 -y

ENV BOT_JAR_FILE=OSRSBot.jar
ENV APP_HOME=/usr/app/

# Adds the bot jar to the container
COPY --from=TEMP_BUILD_IMAGE $APP_HOME/$BOT_JAR_FILE .
# Adds the scripts to the container
COPY --from=TEMP_BUILD_IMAGE $APP_HOME/build/libs root/.config/OsrsBot/Scripts/Precompiled

# Exposes a port to connect via
EXPOSE 8080

# Runs the bot with the bot flag
ENTRYPOINT exec java -jar ${BOT_JAR_FILE} -bot-runelite -developer-mode

This should work using git clone of the OsrsBot repo - does not include DaxWalker, it needs to have settings.gradle updated for the correct file path
# using multistage docker build
# ref: https://docs.docker.com/develop/develop-images/multistage-build/

# temp container to cache gradle
FROM gradle:7.4.2-jdk17-alpine AS cache
# Environment vars
ENV APP_HOME /app
WORKDIR $APP_HOME
# Copy gradle settings and config to /app in the image
COPY build.gradle settings.gradle gradlew $APP_HOME
COPY gradle $APP_HOME/gradle
# Build gradle - caches dependencies
RUN ./gradlew --no-daemon build || return 0

# Clone the OsrsBot repo to build the jar
RUN git clone https://github.com/OSRSB/OsrsBot.git /OsrsBot/
# Gradle settings needs to be updated to be the same as OsrsBot
#RUN git clone https://github.com/OSRSB/DaxWalkerOSRSBot.git /DaxWalkerOSRSBot/

# Copy our scripts source and build the project
COPY src/ /src
RUN ./gradlew --no-daemon build

# actual container

# Set base image from Docker image repo
# https://adoptium.net/temurin
FROM eclipse-temurin:17-jre-centos7

ENV APP_HOME /app
# Name of the built OSRSBot jar file
ENV BOT_JAR_FILE OsrsBot.jar

# Installs XDisplay packages so we can actually view the container (and run the bot)
RUN yum install libXext.x86_64 libXrender.x86_64 libXtst.x86_64 -y

# Adds the bot jar to the container
COPY --from=cache $APP_HOME/$BOT_JAR_FILE $BOT_JAR_FILE
# Adds the scripts to the container
COPY --from=cache $APP_HOME/build/libs root/.config/OsrsBot/Scripts/Precompiled

# Exposes a port to connect via
EXPOSE 8080

# Runs the bot with the bot flag
ENTRYPOINT exec java -jar ${BOT_JAR_FILE} -bot-runelite -developer-mode

# Looped entry for debugging the image
#ENTRYPOINT ["tail", "-f", "/dev/null"]

Updated to use the same OS & chmod for gradle - should fix the permission error that one may get?
# using multistage docker build
# ref: https://docs.docker.com/develop/develop-images/multistage-build/

# temp container to cache gradle
FROM gradle:jdk17-jammy AS cache
# Environment vars
ENV APP_HOME /app
ENV GRADLE_USER_HOME /cache
WORKDIR $APP_HOME
# Copy gradle settings and config to /app in the image
COPY build.gradle settings.gradle gradlew $APP_HOME
COPY gradle $APP_HOME/gradle
RUN chmod +x gradlew
# Build gradle - caches dependencies
RUN ./gradlew --no-daemon build || return 0

# Clone the OsrsBot repo to build the jar
RUN git clone https://github.com/OSRSB/OsrsBot.git /OsrsBot/
#RUN git clone https://github.com/OSRSB/DaxWalkerOSRSBot.git /DaxWalkerOSRSBot/

# Copy our scripts source and build the project
COPY src/ /src
RUN ./gradlew --no-daemon build

# actual container

# Set base image from Docker image repo
# https://adoptium.net/temurin
FROM eclipse-temurin:17-jre-jammy

ENV APP_HOME /app
# Name of the built OSRSBot jar file
ENV BOT_JAR_FILE OsrsBot.jar

# Installs XDisplay packages so we can actually view the container (and run the bot)
RUN apt-get update && apt-get install libxext6 libxrender1 libxtst6 -y

# Adds the bot jar to the container
COPY --from=cache $APP_HOME/$BOT_JAR_FILE $BOT_JAR_FILE
# Adds the scripts to the container
COPY --from=cache $APP_HOME/build/libs root/.config/OsrsBot/Scripts/Precompiled

# Exposes a port to connect via
EXPOSE 8080

# Runs the bot with the bot flag
ENTRYPOINT exec java -jar ${BOT_JAR_FILE} -bot-runelite -developer-mode

Latest version that uses BuildKit - provides a better way to cache our instructions - you'll need to have BuildKit enabled, follow instructions here: https://docs.docker.com/develop/develop-images/build_enhancements/
# syntax = docker/dockerfile:1.2
# Enable BuildKit https://docs.docker.com/develop/develop-images/build_enhancements/
# Using multistage docker build
# ref: https://docs.docker.com/develop/develop-images/multistage-build/
# Variable to use across build stages
ARG BUILD_HOME=/app

# temp container to cache gradle
FROM gradle:7.4.2-jdk17-jammy AS cache
# Environment vars
ARG BUILD_HOME
ENV APP_HOME=$BUILD_HOME
WORKDIR $APP_HOME
# Copy gradle settings and config to /app in the image
COPY build.gradle settings.gradle $APP_HOME

# Build gradle - caches dependencies
RUN gradle --no-daemon build || return 0

# Build container
FROM gradle:7.4.2-jdk17-jammy AS builder
ARG BUILD_HOME
ENV APP_HOME=$BUILD_HOME
# Set where to pull OSRSBot from - default OSRSB
ENV REPO=OSRSB
# Set where git should store the OSRSBot project
ENV OSRS_REPO_DIR=/TestRSB/
# Set where git should store the DaxWalkerOSRSBot project
ENV WALKER_REPO_DIR=/DaxWalkerOSRSBot/
WORKDIR $APP_HOME

# We need to clone the project and cache the git pull - everytime there's something new pushed
# to master it will pull the latest changes
RUN --mount=type=cache,target=/tmp/git_cache/ \
    git clone https://github.com/$REPO/OsrsBot.git $OSRS_REPO_DIR; \
    cd $OSRS_REPO_DIR && git pull
RUN --mount=type=cache,target=/tmp/git_cache/ \
        git clone https://github.com/$REPO/DaxWalkerOSRSBot.git $WALKER_REPO_DIR; \
        cd $WALKER_REPO_DIR && git pull

# Copy over gradle from the cache and copy the src to build it
COPY --from=cache /root/.gradle /root/.gradle
COPY --from=cache $APP_HOME/build.gradle $APP_HOME/settings.gradle $APP_HOME
COPY src/ src/

RUN gradle --no-daemon clean build

# actual container
# Set base image from Docker image repo
# https://adoptium.net/temurin
FROM eclipse-temurin:17-jdk-jammy

ARG BUILD_HOME
ENV APP_HOME=$BUILD_HOME
# Name of the built OSRSBot jar file
ENV BOT_JAR_FILE OSRSBot.jar

# Installs XDisplay packages so we can actually view the container (and run the bot)
# Caches our apt-get(s) with BuildKit
# Remove the apt list to save space
RUN --mount=type=cache,target=/var/cache/apt apt-get update \
    && apt-get upgrade -y \
    && apt-get install -yqq --no-install-recommends libxext6 libxrender1 libxtst6 libxi6 \
    && rm -rf /var/lib/apt/lists/*

# Adds the bot jar to the container
COPY --from=builder $APP_HOME/$BOT_JAR_FILE $APP_HOME/$BOT_JAR_FILE
# Adds the scripts to the container (copies source files, if you want the built jar comment this out and uncomment the line below)
#COPY --from=builder $APP_HOME/build/scripts root/.config/OsrsBot/Scripts/Sources
COPY --from=builder $APP_HOME/build/libs /root/.config/OsrsBot/Scripts/Precompiled
# Adds runelite config settings to the container
COPY /config/.runelite/settings.properties /root/.runelite/settings.properties
# Adds osrsbot account config to the container
COPY /config/.config/osrsbot_acct.ini /root/.config/osrsbot_acct.ini

EXPOSE 8080

# Launch in RuneLite mode
#ENTRYPOINT java -debug -ea -jar $APP_HOME/${BOT_JAR_FILE} --runelite --developer-mode
ENTRYPOINT java -debug -jar $APP_HOME/${BOT_JAR_FILE} --bot-runelite --developer-mode

https://github.com/OSRSB/script-template/pull/25 Should address this


[Question] How can I pass variables to the Azure Devops Pipeline

Hi,
I'm using this action and I'm able to trigger the DevOps pipeline, but I can't seem to get the variables working.
Using it like so:
runs-on: ubuntu-20.04
steps:

name: DevOps release trigger
if: github.event_name == 'push'
uses: Azure/pipelines@v1
with:
azure-devops-project-url: 'https://dev.azure.com/orgnization/project'
azure-pipeline-name: 'Pipeline' # name of the Azure pipeline to be triggered
azure-devops-token: '${{ secrets.AZURE_DEVOPS_TOKEN }}'
azure-pipeline-variables: '{"Branch": "testbranch", "App.Name": "apptest"}' # optional stringified json

I was expecting to pass the variables to the Azure DevOps pipeline, but nothing happens. The variable exists on the DevOps pipeline but isn't updated when the release happens.

It looks like v1.2 has added support for the variables and the v1 tag is not pointed to latest. The docs currently are a bit misleading.
When running on v1 a warning is thrown for the unexpected input:
Unexpected input(s) 'azure-pipeline-variables', valid inputs are ['azure-devops-project-url', 'azure-pipeline-name', 'azure-devops-token']

It looks like v1.2 has added support for the variables and the v1 tag is not pointed to latest. The docs currently are a bit misleading. When running on v1 a warning is thrown for the unexpected input: Unexpected input(s) 'azure-pipeline-variables', valid inputs are ['azure-devops-project-url', 'azure-pipeline-name', 'azure-devops-token']

That solved it for me. Thanks for the help.

I am having trouble in passing variables from workflow to azure pipeline.
not getting values names.
Need Help on this


Feature: Close column when selecting a file

What feature or improvement do you think would benefit Files?
When I'm browsing through folders and then select a file that isn't a folder, the right hand column should empty, it's very confusing

Requirements
-select folder
-select file

last column must be empty

Files Version
Versione <IP_ADDRESS>
Windows Version
Windows 11 Pro Versione 22H2
Comments
No response

Great feedback, we should definitely make this change.

@redhotideas this improvement will be available in the next update.

I am very happy that this feature will be implemented. I use Files daily as my main explorer. There are many other aspects of pure user experience and workflow that I had noticed and would be proud to contribute again. Unfortunately I'm using an outdated version and therefore I won't be able to enjoy this aspect, I hope in future versions the Acrylic theme will be implemented again which was one of the aspects that made me fall in love with files (together with column navigation).
Hopeful waiting.


[SPARK-5722][SQL] fix for infer long type in python similar to Java long (master branch)

Corresponding fix for SPARK-5722 for the master (1.3) branch.  See Pull #4521 for 1.2 version.

Can one of the admins verify this patch?

ok to test

Test build #27649 has started for   PR 4641 at commit 9aa0737.

This patch merges cleanly.

Test build #27649 has finished for   PR 4641 at commit 9aa0737.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27649/
Test FAILed.

test this please

Test build #27658 has started for   PR 4641 at commit 9aa0737.

This patch merges cleanly.

Test build #27658 has finished for   PR 4641 at commit 9aa0737.

This patch fails PySpark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27658/
Test FAILed.

@dondrake Would you mind to close this one?

Closed as #4666 resolved this.


Runtime error on Java(TM) SE Embedded Runtime Environment

Hi,
I wrote a simple test applicaiton with your jsondb. The application was running fine on windows/ubuntu and raspberry pi. But when i tried running it on a different embedded system (Arnv5tejl) I got an  java.lang.NoClassDefFoundError: java/beans/PropertyDescriptor exception.
Before the exception I got a warning: "Unable to load JDK7 types (annotations, java.nio.file.Path): no Java7 support added". Any idea of what is going on here ?
java -version:
Java(TM) SE Embedded Runtime Environment (build 1.8.0_65-b17, profile compact2, headless)
Java HotSpot(TM) Embedded Minimal VM (build 25.65-b01, mixed mode)
uname -a:
Linux gw-446D 4.4.24 #1 Thu Jan 26 09:10:47 CET 2017 armv5tejl GNU/Linux
Output:
# java -jar simplejsondb.jar
Hello World!
[main] INFO io.jsondb.JsonDBConfig - Encryption is not enabled for JSON DB
Jan 30, 2017 6:00:17 AM com.fasterxml.jackson.databind.ext.Java7Support
WARNING: Unable to load JDK7 types (annotations, java.nio.file.Path): no Java7 s                                                   upport added
[main] INFO org.reflections.Reflections - Reflections took 6262 ms to scan 1 url                                                   s, producing 1 keys and 2 values
Added a new jsonDBTemplate
Exception in thread "main" java.lang.NoClassDefFoundError: java/beans/PropertyDe                                                   scriptor
at org.apache.commons.jxpath.ri.model.beans.CollectionPointerFactory.cre                                                   ateNodePointer(CollectionPointerFactory.java:42)
at org.apache.commons.jxpath.ri.model.NodePointer.newNodePointer(NodePoi                                                   nter.java:81)
at org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.(JXPath                                                   ContextReferenceImpl.java:193)
at org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.(JXPath                                                   ContextReferenceImpl.java:167)
at org.apache.commons.jxpath.ri.JXPathContextFactoryReferenceImpl.newCon                                                   text(JXPathContextFactoryReferenceImpl.java:39)
at org.apache.commons.jxpath.JXPathContext.newContext(JXPathContext.java                                                   :416)
at io.jsondb.JsonDBTemplate.createCollection(JsonDBTemplate.java:309)
at io.jsondb.JsonDBTemplate.createCollection(JsonDBTemplate.java:270)
at martinharbo.kyrkjeveien.App.main(App.java:33)
Caused by: java.lang.ClassNotFoundException: java.beans.PropertyDescriptor
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 9 more

Just by looking at your Exception Stacktrace i think Java(TM) SE Embedded Runtime Environment does not have the "java.nio.file." package. I can fix this and create a version of JsonDB that does not uses classes from this package "java.nio.file." at all.
The other issue of "annotations" support not present in the Java(TM) SE Embedded Runtime Environment " is a bit of trouble, I will study this in a day or 2 when i get some time and try to see if i can find a decent workaround.

Thank you for you fast reply @FarooqKhan.
It would be really nice if we could make use of your package. It`s more straightforward and "cleaner" than the old "mapdb" option.

Hi PanzerHabba,
The initial warnings you see about "annotations, java.nio.file.Path" are a issue but it will not be a problem unless you try to Add a EventListener to the watch for direct changes to the db files using other filesystem utilities. This is a usecase that very few people would want to use.
However the issue of the class "ClassNotFoundException: java.beans.PropertyDescriptor" is a more troubles some. JsonDB uses Apache JxPath library very heavily for all the XPATH support. This JxPath library depends on the "java.beans" package. This is a problem that Android users face often becuase Dalvik does not have the "java.beans" package
I am surprised that Java SE Embedded does not have this package. If it is indeed true that Java SE Embedded does not have this package then you can try a workaround to your problem you will need to obtain the JxPath source code replace all usage of java.beans.* with "com.googlecode.openbeans" recompile and use this custom JxPath library
This is certainly a lot of work you probably wont want to do this.
I will keep looking for ways to solve this, and keep this open.
For now unfortunately i dont have a better solution.
Thanks
Farooq

Hi FarooqKhan,
I didn't have any problem running a JsonDB simple code on this environment:

Java(TM) SE Embedded Runtime Environment (build 1.8.0_131-b11, headless)
Linux 4.9.39-2-ARCH #1 SMP Wed Jul 26 01:23:45 UTC 2017 armv7l GNU/Linux

I did a simple project saving data to a POJO and making an XPath query.

Thanks @ivanmarban  this will help others who might be also trying on embedded platform


What's the difference between props and attributes?

Is it dom concept I'm not aware of?

Attribute is something you can see in html, like href in . Property is something you can access only via DOM API, like
const a = document.querySelector(a);
const property = a.href; // full url of your site

Some properties are linked to corresponding attributes. For example, if you do a.href = '/', it will change the link's href property. Or if you do input.checked = false on an input of type "check", it will uncheck it and remove the 'checked' attribute. Note that if you set 'checked' attribute to false instead (input.setAttribute('checked', false)), it will not do any unchecking, input will just have 'checked="false"' attribute. Generally, props have more predictable behaviour, so I prefer using them.

Thanks!


Refresh NuGet get started articles for VS 2022 #3

Refresh Install and manage packages in Visual Studio using the NuGet Package Manager article.
This work is in accordance with User Story 1973817.

Docs Build status updates of commit 63d2808:
:warning: Validation status: warnings

File
Status
Preview URL
Details

docs/consume-packages/install-use-packages-visual-studio.md
:warning:Warning
View
Details

docs/consume-packages/media/consolidate-tab.png
:white_check_mark:Succeeded
View

docs/consume-packages/media/manage-packages-for-solution.png
:white_check_mark:Succeeded
View

docs/consume-packages/media/package-manager-install-tab.png
:white_check_mark:Succeeded
View

docs/consume-packages/media/package-manager-options.png
:white_check_mark:Succeeded
View

docs/consume-packages/media/package-sources.png
:white_check_mark:Succeeded
View

docs/consume-packages/media/package-source-selector.png
:white_check_mark:Succeeded
View

docs/consume-packages/media/package-source-settings.png
:white_check_mark:Succeeded
View

docs/consume-packages/media/package-update-disabled.png
:white_check_mark:Succeeded
View

docs/consume-packages/media/uninstall-package.png
:white_check_mark:Succeeded
View

docs/consume-packages/media/update-package.png
:white_check_mark:Succeeded
View

docs/consume-packages/install-use-packages-visual-studio.md

Line 196, Column 3: [Warning: file-not-found - See documentation] Invalid file link: 'install-and-use-a-package-using-the-dotnet-cli.md'.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
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.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Hello @Mikejo5000 @nkolev92, @donnie-msft @JonDouglas @zivkan, this articles is ready for review.

@Mikejo5000 @nkolev92, @donnie-msft @JonDouglas @zivkan: One thing I've noticed is that the Options control in the VS NuGet Package Manager doesn't reveal any other options except Show preview window. I tried all the other packages and none of them displayed any of the additional options mentioned in the article.

@Mikejo5000 @nkolev92, @donnie-msft @JonDouglas @zivkan: One thing I've noticed is that the Options control in the VS NuGet Package Manager doesn't reveal any other options except Show preview window. I tried all the other packages and none of them displayed any of the additional options mentioned in the article.

Just noticed this question. The Options control isn't generally what's being referred to by VS Options; rather, the Tools -> Options dialog, then finding the "NuGet Package Manager" page there (or, a shortcut is Tools -> NuGet Package Manager -> Package Manager Settings) is our VS Options page.

@Mikejo5000 @nkolev92, @donnie-msft @JonDouglas @zivkan: One thing I've noticed is that the Options control in the VS NuGet Package Manager doesn't reveal any other options except Show preview window. I tried all the other packages and none of them displayed any of the additional options mentioned in the article.

Just noticed this question. The Options control isn't generally what's being referred to by VS Options; rather, the Tools -> Options dialog, then finding the "NuGet Package Manager" page there (or, a shortcut is Tools -> NuGet Package Manager -> Package Manager Settings) is our VS Options page.

@donnie-msft  This still doesn't match what I've documented, though - NuGet Package Manager -> Package Manager Settings describe different options.


Remove the default of collections to autodiscovery

See #328

cc @hobarrera @geier @lfam

The question really is: what is most people's use case. I believe this is ['from a', 'from b']. But I do agree with you, that changing to a completely different default is better done after the next release.

Yes, I'd make ["from a", "from b"] the default for 1.0 (or later).


Best place for SVG FFI

I have implemented an clientToSvgCoordinates FFI function to convert from screen coordinates to SVG coordinates using the getScreenCTM Javascript function (see http://svgdiscovery.com/E/Ed.htm and https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement#Methods).
I think it would be nice to have this function available in purescript-halogen-svg itself - where do you think is the best place to add it (and related FFI functions)?
Here's the Javascript code:
"use strict";

exports.clientToSvgCoordinates = function (window) {
  return function (svgElementName) {
    return function (clientX) {
      return function (clientY) {
        var svgElement = window.document.getElementById(svgElementName);
        var position = svgElement.createSVGPoint();
        position.x = clientX;
        position.y = clientY;
        var matrix = svgElement.getScreenCTM();
        var svgCoordinates = position.matrixTransform(matrix.inverse());

        return { x: svgCoordinates.x, y: svgCoordinates.y };
      }
    }
  }
};

It is being used very simplistically in my code currently:
foreign import clientToSvgCoordinates :: forall e. Web.HTML.Window.Window -> String -> Number -> Number -> Position
and then in eval:
eval (NodeMouseDown mouseEvent nodeId next) = do
      state <- H.get
      case button mouseEvent of
        0 -> do
               window <- H.liftEffect $ DH.window
               let x = toNumber $ clientX mouseEvent
               let y = toNumber $ clientY mouseEvent
               let drawingCoordinates = clientToSvgCoordinates window state.svgElement.name x y
...

So I was thinking about just adding the foreign import to a module, like Svg.Effects as you suggested.  It could probably be streamlined some more - but I'll leave those architectural decisions to you!
Looking at that name now, it would probably be more descriptive if it's screenToSvgCoordinates instead.

@costructuralist At Statebox, we have some similar code, as well as FFI functions to start SVG animations and such things: https://github.com/epost/purescript-halogen-svg/commit/fa7a0c155ea875f712e8735febcac40abcc6ec02#diff-0b00078fa9da87176b5c60d0360a4591R3, so perhaps they should be considered here as well.


tests/cp ~ disable intermittent failures on MacOS (includes FixME comments)

track repair progress at uutils/coreutils#1590

I'll rebase this PR off of #1607 when that is merged.


Let you know when the session isn't saved (exactly as it appears)

You can create a session and then duplicate the tab, and unknowingly reuse the same session save slot (session ID), and do work in one and destroy it from the other (destroy what's saved in the session that is, not the image that's loaded, but it's easy to unload by accident or otherwise; One Is None, as they say)
Additionally, if the session code is buggy or you enter an invalid session ID or there's otherwise for any reason no active session, you should know! See https://github.com/1j01/jspaint/issues/92
I should add code to show a warning message, that works generally, ideally in app.js rather than sessions.js in case sessions.js doesn't load, and appears any time there's no session, or the session isn't saved.
some notes:

could have a method like is_saved on the Session objects, or a global export from sessions.js like is_auto_saved

should check that the image is actually saved as it appears, and in the future other session data

should use requestAnimationFrame in combination with setTimeout so it doesn't trigger when the document isn't visible; or alternatively check document.visible if that's supported nowadays

Might also want to let you know right away when you open a second window with the same session.
(Could store a timestamp along with the session so another tab could tell if it's been updated within some time frame (like the interval that it checks in times two))


feat(V2 Clients): Client refactor

Second step of the client refactor after #1464
Changes:

vulnerability client interface as described in the design doc
"Matchers" as implementations to the vulnerability interface

osvmatcher: Matcher that takes in a osv.dev client and gets/hydrates the vulns.
localmatcher: Replacement/migrated version of the local package.

Commented out Local client in resolve package to be completed in the followup.
Followup: Decide and implement the VulnClients in resolution.

Codecov Report
Attention: Patch coverage is 55.52561% with 165 lines in your changes missing coverage. Please review.

Project coverage is 67.01%. Comparing base (bd2b403) to head (f8c3fd0).
Report is 2 commits behind head on main.

Files with missing lines
Patch %
Lines

internal/osvdev/osvdev.go
21.33%
56 Missing and 3 partials :warning:

internal/resolution/client/osv_offline_client.go
0.00%
34 Missing :warning:

...al/clients/clientimpl/localmatcher/localmatcher.go
67.02%
25 Missing and 6 partials :warning:

...ternal/clients/clientimpl/osvmatcher/osvmatcher.go
75.25%
18 Missing and 6 partials :warning:

pkg/osvscanner/osvscanner.go
68.57%
8 Missing and 3 partials :warning:

internal/osvdev/errors.go
0.00%
4 Missing :warning:

internal/clients/clientimpl/localmatcher/zip.go
92.00%
2 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1470      +/-   ##
==========================================
- Coverage   67.33%   67.01%   -0.33%
==========================================
  Files         194      196       +2
  Lines       18354    18486     +132
==========================================
+ Hits        12359    12388      +29
- Misses       5325     5420      +95
- Partials      670      678       +8

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Change language delimiter for anchor tags

Updating to delimit on underscore. This will assume the last occurrence of the split to be the language choice.

Looks like Pulumify failed to post a message to GitHub, possibly related to the "degraded service" status for GitHub Actions right now. Interesting that Pulumify didn't fail its workflow execution, though.


Hanze wants to show EN and NL metadata

blocker

De pakken we op nadat de Hanze live is

Removed blocked label, because that story will soon be done.


Bump to Submariner 0.15

This requires a number of updates in cloud-prepare-based code, and a bump to Ginkgo v2.
Depends on https://github.com/openshift/release/pull/36750
Depends on https://github.com/openshift/release/pull/36803

This requires Go 1.19 builders.

/cc @sridhargaddam @tpantelis
This is blocked by Sonar’s coverage requirements. I tried adding some (useless) tests, and the coverage percentage went down! In any case this is all cloud-provider-specific code, and UTs don’t seem particularly useful there. If you’re OK with this, I’ll force-merge after the PR is approved.


issue #39,Store incoming messages in a list instead of an array.

##Summary of the changes
issue #39,
Change to convert the input into a JsonNode instead of directly converting it into a String array in process(). Then, I added each element to a List.
##Why are we making this change
Storing incoming messages directly in a String array leads to exceptions being thrown.
##changes
The received messages are first converted to JsonNode and then each element of that JsonNode is stored as a String in a list.
##what is deemed necessary
*Removal of unnecessary import statements
*Appropriate logging output
*Format validation of received messages

Test  code (jackson2.14.2)

Result

I have written the program with minimal code modifications to keep it concise. If larger modifications are permissible, I believe it can be written in a more elegant and concise manner.

I made a mistake while translating.
I have written the program with minimal code modifications to keep it concise. However, if larger modifications are allowed, I believe it can be written in a more efficient manner.

Oh man, you are totally right about it. So, what do you think to do something like that?
var listObj = objectMapper.readValue(message, new TypeReference<List<Object>>() {});
items = listObj.stream().map(Object::toString).collect(Collectors.toList());

A little less lines, for the same result.

Thank you for your response.
The code you provided looks more efficient.

Could you change the code, test and then update the PR?
I will review and approve.

After pushing, I realized that there was an error in the code I provided initially, and I also noticed issues with the code that uses TypeReference!
Testcode JsonParseTest.java
package io.github.memory_of_snow.main;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import java.util.*;
import java.util.stream.Collectors;

public class JsonParseTest {

    private static final String parseTarget =
            "[\"EVENT\"," +
                    "\"npub17x6pn22ukq3n5yw5x9prksdyyu6ww9jle2ckpqwdprh3ey8qhe6stnpujh\"," +
                    "{" +
                    "\"content\":\"直んないわ。まあええか\"," +
                    "\"created_at\":1686199583," +
                    "\"id\":\"fc7f200c5bed175702bd06c7ca5dba90d3497e827350b42fc99c3a4fa276a712\"," +
                    "\"kind\":1," +
                    "\"pubkey\":\"8c59239319637f97e007dad0d681e65ce35b1ace333b629e2d33f9465c132608\"," +
                    "\"sig\":\"9584afd231c52fcbcec6ce668a2cc4b6dc9b4d9da20510dcb9005c6844679b4844edb7a2e1e0591958b0295241567c774dbf7d39a73932877542de1a5f963f4b\"," +
                    "\"tags\":[]" +
                    "}]";

    public static void main(String[] args){
        ObjectMapper objectMapper = new ObjectMapper();
        List<String> result =null;
        List<String> resultByTypeReference =null;

        try{
            JsonNode jsonBody = objectMapper.readTree(parseTarget);
            result = new ArrayList<>();
            for (JsonNode item :jsonBody) {
                if(item.isTextual()){
                    result.add(item.asText());
                }else{
                    result.add(item.toString());
                }
            }
        }catch (JsonProcessingException e){
            System.err.println("fail to parse.");
            e.printStackTrace();
            System.exit(-1000);
        }

        System.out.println("items size : "+ result.size());

        for (String str : result) {
            System.out.println("item = " + str);
        }

        System.out.println("----------------------------------------------------------------------------------------");

        try {
            var listObj = objectMapper.readValue(parseTarget, new TypeReference<List<Object>>() {});
            resultByTypeReference = listObj.stream().map(Object::toString).collect(Collectors.toList());
        } catch (JsonProcessingException e) {
            System.err.println("fail to parse.");
            e.printStackTrace();
            System.exit(-1000);
        }

        System.out.println("items size : " + resultByTypeReference.size());

        for (String str : resultByTypeReference) {
            System.out.println("item = " + str);
        }
    }

}

result
items size : 3
item = EVENT
item = npub17x6pn22ukq3n5yw5x9prksdyyu6ww9jle2ckpqwdprh3ey8qhe6stnpujh
item = {"content":"直んないわ。まあええか","created_at":1686199583,"id":"fc7f200c5bed175702bd06c7ca5dba90d3497e827350b42fc99c3a4fa276a712","kind":1,"pubkey":"8c59239319637f97e007dad0d681e65ce35b1ace333b629e2d33f9465c132608","sig":"9584afd231c52fcbcec6ce668a2cc4b6dc9b4d9da20510dcb9005c6844679b4844edb7a2e1e0591958b0295241567c774dbf7d39a73932877542de1a5f963f4b","tags":[]}
----------------------------------------------------------------------------------------
items size : 3
item = EVENT
item = npub17x6pn22ukq3n5yw5x9prksdyyu6ww9jle2ckpqwdprh3ey8qhe6stnpujh
item = {content=直んないわ。まあええか, created_at=1686199583, id=fc7f200c5bed175702bd06c7ca5dba90d3497e827350b42fc99c3a4fa276a712, kind=1, pubkey=8c59239319637f97e007dad0d681e65ce35b1ace333b629e2d33f9465c132608, sig=9584afd231c52fcbcec6ce668a2cc4b6dc9b4d9da20510dcb9005c6844679b4844edb7a2e1e0591958b0295241567c774dbf7d39a73932877542de1a5f963f4b, tags=[]}

"It appears to be the same, but the double quotation marks within the enclosed JSON portion are missing."

Well, it makes sense, so let's try it
JsonNode jsonBody = objectMapper.readTree(event);
items = StreamSupport.stream(jsonBody.spliterator(), false)
   .map(item -> (item.isTextual()) ? item.asText() : item.toString())
   .collect(Collectors.toList());

Can you check it and PR? Please

I made some changes in the class, and it works, but I think I like this code better, as it seems to be more concise.
I will update accordingly.

I don't think this is a valid EVENT message, though. As per nip-01, the message only accepts one single argument, the event to be published.
Correct syntax should be: ["EVENT", <json event>]

Is there any mistake in this event of the following format?
["EVENT", <subscription_id>, ]
First type of
https://github.com/nostr-protocol/nips/blob/master/01.md#from-relay-to-client-sending-events-and-notices

Ok, noted. I will make the necessary changes.


Web application performance enhancement.

When the web application is run on the system, there's some lag sometime possibly due to 3D content and the GLSL shaders involved. We are looking to optimize this load time and increase overall web application performance.

@ParamThakkar123 Can I try to optimise this ? please assign it to me, I'll inform you if I'm not able to do it after sometime.

Yeah sure. Thanks for your interest in our project. You can go ahead with your optimizations. assigning this to you

@nikkuv, also it would be really great and motivating for our team if you could star this repo so that this project reaches more people. Thanks again for your interest. I am assigning this to you

@nikkuv, any updates?

@nikkuv if any more information is needed, we can help you with that. You can use lighthouse to check the site performance.

@AryanNanda17 @ParamThakkar123 Was trying things to improve performance, it increased just a bit though from 55 to 64 for desktop, But I'm not able to push to branch.

@AryanNanda17 @ParamThakkar123 Was trying things to improve performance, it increased just a bit though from 55 to 64 for desktop, But I'm not able to push to the repo. It is saying please ensure if you have the write access to the repo.

Did you fork this repo and made changes on the forked repo ? Because this happens when you didn't fork the repo and cloned the upstream and made the changes.

@nikkuv, any updates?

@nikkuv has made some optimizations, but we still need further performance improvements.


VoltDB test container

Codecov Report

Merging #44 into develop will increase coverage by 0.34%.
The diff coverage is 90.9%.

@@              Coverage Diff              @@
##             develop      #44      +/-   ##
=============================================
+ Coverage      81.87%   82.21%   +0.34%
- Complexity       252      261       +9
=============================================
  Files             66       70       +4
  Lines            844      877      +33
  Branches          13       13
=============================================
+ Hits             691      721      +30
- Misses           145      148       +3
  Partials           8        8

Impacted Files
Coverage Δ
Complexity Δ

...t/voltdb/EmbeddedVoltDBBootstrapConfiguration.java
100% <100%> (ø)
5 <5> (?)

...b/EmbeddedVoltDBDependenciesAutoConfiguration.java
100% <100%> (ø)
1 <1> (?)

...va/com/playtika/test/voltdb/VoltDBStatusCheck.java
100% <100%> (ø)
3 <3> (?)

...ava/com/playtika/test/voltdb/VoltDBProperties.java
25% <25%> (ø)
0 <0> (?)

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 eb5e31b...deaf926. Read the comment docs.


Add X-NuGet-Warning header to response when pushing SemVer2 package

Related to https://github.com/nuget/nugetgallery/issues/4215

@joelverhagen added


[Question] How to correctly use ILR with balance tree basis?

There are two details that confuse me regarding using ilr and a custom basis argument.
I understand that gneiss is used for the balance_basis and that m-1 attributes/coumns are returned by ilr which are supposed to represent the balances of the nodes in the tree.
**My first question, how can I know which column goes to which node in my dendrogram?
My second question, how does the ilr function know the labels/order of the nodes in the tree that was provided and does my order for the mat input matter at all?**
Lastly, (bonus) is the implementation below equivalent to PhILR?
My df_otus is a pd.DataFrame that I filtered.  The newick tree was created by clustalo when I did a multiple sequence alignment of the Otu centroid sequences from uparse.
import ete3, skbio
from gneiss.balances import balance_basis
import pandas as pd
from io import StringIO

# Otu table
df_otus = df_counts_f1.copy() # filter Otu counts where n=64 samples, m=883 otus
# Path to the newick file generated from 16S sequences in clustalo
path_to_newick_from_clustalo = "./Data/otu_clustering/clustalo_output/otus.qfilter.EE0.15.guidetree"
# Convert ete3 tree
t = ete3.Tree(newick=path_to_newick_from_clustalo)
# Prune tree
t.prune(df_otus.columns)
# Get newick string for pruned tree
newick = t.write(outfile=None)
# Convert to skbio Tree object
t_skbio = skbio.TreeNode.read(StringIO(newick))
# Gneiss
basis, nodes = balance_basis(t_skbio)
# ILR
df_ilr = pd.DataFrame(ilr(df_otus+1, basis=basis), index=df_otus.index)

@jolespin reopen if this hasn't been addressed


InternalError: Missing 0-th output from node model/layer_1/Conv2D_eightbit_requantize (defined at :2)

Case 1
Framework: Tensorflow 2.5.0, Intel-Tensorflow 2.5.0
Environment: Google Colab
I have a successfully quantized model that is to be run for inference without using LPOT API, so I wrote the following inference code:
with tf.compat.v1.Session() as sess:
    tf.compat.v1.saved_model.loader.load(sess, ['serve'], model)
    output = sess.graph.get_tensor_by_name(output_tensor_name)
    predictions = sess.run(output, {input_tensor_name: x})
    mse = tf.reduce_mean(tf.keras.losses.mean_squared_error(y, predictions))
    print(mse.eval())

When running the line predictions = sess.run(output, {input_tensor_name: x}):
---------------------------------------------------------------------------
InternalError                             Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/tensorflow/python/client/session.py in _do_call(self, fn, *args)
   1374     try:
-> 1375       return fn(*args)
   1376     except errors.OpError as e:

7 frames
/usr/local/lib/python3.7/dist-packages/tensorflow/python/client/session.py in _run_fn(feed_dict, fetch_list, target_list, options, run_metadata)
   1359       return self._call_tf_sessionrun(options, feed_dict, fetch_list,
-> 1360                                       target_list, run_metadata)
   1361

/usr/local/lib/python3.7/dist-packages/tensorflow/python/client/session.py in _call_tf_sessionrun(self, options, feed_dict, fetch_list, target_list, run_metadata)
   1452                                             fetch_list, target_list,
-> 1453                                             run_metadata)
   1454

InternalError: Missing 0-th output from {{node model/layer_1/Conv2D_eightbit_requantize}}

During handling of the above exception, another exception occurred:

InternalError                             Traceback (most recent call last)
<ipython-input-6-2bddd853d111> in <module>()
      2     tf.compat.v1.saved_model.loader.load(sess, ['serve'], model)
      3     output = sess.graph.get_tensor_by_name(output_tensor_name)
----> 4     predictions = sess.run(output, {input_tensor_name: x[:64]}) # 64, 257, 60, 1
      5     mse = tf.reduce_mean(tf.keras.losses.mean_squared_error(y[:64], predictions))
      6     print(mse.eval())

/usr/local/lib/python3.7/dist-packages/tensorflow/python/client/session.py in run(self, fetches, feed_dict, options, run_metadata)
    966     try:
    967       result = self._run(None, fetches, feed_dict, options_ptr,
--> 968                          run_metadata_ptr)
    969       if run_metadata:
    970         proto_data = tf_session.TF_GetBuffer(run_metadata_ptr)

/usr/local/lib/python3.7/dist-packages/tensorflow/python/client/session.py in _run(self, handle, fetches, feed_dict, options, run_metadata)
   1189     if final_fetches or final_targets or (handle and feed_dict_tensor):
   1190       results = self._do_run(handle, final_targets, final_fetches,
-> 1191                              feed_dict_tensor, options, run_metadata)
   1192     else:
   1193       results = []

/usr/local/lib/python3.7/dist-packages/tensorflow/python/client/session.py in _do_run(self, handle, target_list, fetch_list, feed_dict, options, run_metadata)
   1367     if handle is None:
   1368       return self._do_call(_run_fn, feeds, fetches, targets, options,
-> 1369                            run_metadata)
   1370     else:
   1371       return self._do_call(_prun_fn, handle, feeds, fetches)

/usr/local/lib/python3.7/dist-packages/tensorflow/python/client/session.py in _do_call(self, fn, *args)
   1392                     '\nsession_config.graph_options.rewrite_options.'
   1393                     'disable_meta_optimizer = True')
-> 1394       raise type(e)(node_def, op, message)
   1395
   1396   def _extend_graph(self):

InternalError: Missing 0-th output from node model/layer_1/Conv2D_eightbit_requantize (defined at <ipython-input-6-2bddd853d111>:2)

This error happens with or without Intel-Tensorflow==2.5.0 installed, nor is it resolved when os.environ['TF_ENABLE_ONEDNN_OPTS'] = '1' is set explicitly.
On the other hand, when I run the same code in VS Code with Python 3.6.8 64-bit base: Conda, it returns the same error message as in Case 2.
Case 2
Framework: Tensorflow 2.4.0, Intel-Tensorflow 2.4.0
Environment: Google Colab
This case works well and prints out the MSE loss of the predictions, but when I uninstall Intel-Tensorflow 2.4.0 and run it with official Tensorflow, while running the same line in Case 1 (predictions = sess.run(output, {input_tensor_name: x})):
---------------------------------------------------------------------------
InvalidArgumentError                      Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/tensorflow/python/client/session.py in _do_call(self, fn, *args)
   1374     try:
-> 1375       return fn(*args)
   1376     except errors.OpError as e:

7 frames
/usr/local/lib/python3.7/dist-packages/tensorflow/python/client/session.py in _run_fn(feed_dict, fetch_list, target_list, options, run_metadata)
   1357       # Ensure any changes to the graph are reflected in the runtime.
-> 1358       self._extend_graph()
   1359       return self._call_tf_sessionrun(options, feed_dict, fetch_list,

/usr/local/lib/python3.7/dist-packages/tensorflow/python/client/session.py in _extend_graph(self)
   1397     with self._graph._session_run_lock():  # pylint: disable=protected-access
-> 1398       tf_session.ExtendSession(self._session)
   1399

InvalidArgumentError: No OpKernel was registered to support Op 'QuantizedMatMulWithBiasAndDequantize' used by {{node model/dense/Tensordot/MatMul_eightbit_requantize}} with these attrs: [input_quant_mode="MIN_FIRST", T1=DT_QUINT8, Toutput=DT_FLOAT, T2=DT_QINT8, Tbias=DT_QINT32, transpose_a=false, transpose_b=false]
Registered devices: [CPU]
Registered kernels:
  <no registered kernels>

	 [[model/dense/Tensordot/MatMul_eightbit_requantize]]

During handling of the above exception, another exception occurred:

InvalidArgumentError                      Traceback (most recent call last)
<ipython-input-6-2bddd853d111> in <module>()
      2     tf.compat.v1.saved_model.loader.load(sess, ['serve'], model)
      3     output = sess.graph.get_tensor_by_name(output_tensor_name)
----> 4     predictions = sess.run(output, {input_tensor_name: x[:64]}) # 64, 257, 60, 1
      5     mse = tf.reduce_mean(tf.keras.losses.mean_squared_error(y[:64], predictions))
      6     print(mse.eval())

/usr/local/lib/python3.7/dist-packages/tensorflow/python/client/session.py in run(self, fetches, feed_dict, options, run_metadata)
    966     try:
    967       result = self._run(None, fetches, feed_dict, options_ptr,
--> 968                          run_metadata_ptr)
    969       if run_metadata:
    970         proto_data = tf_session.TF_GetBuffer(run_metadata_ptr)

/usr/local/lib/python3.7/dist-packages/tensorflow/python/client/session.py in _run(self, handle, fetches, feed_dict, options, run_metadata)
   1189     if final_fetches or final_targets or (handle and feed_dict_tensor):
   1190       results = self._do_run(handle, final_targets, final_fetches,
-> 1191                              feed_dict_tensor, options, run_metadata)
   1192     else:
   1193       results = []

/usr/local/lib/python3.7/dist-packages/tensorflow/python/client/session.py in _do_run(self, handle, target_list, fetch_list, feed_dict, options, run_metadata)
   1367     if handle is None:
   1368       return self._do_call(_run_fn, feeds, fetches, targets, options,
-> 1369                            run_metadata)
   1370     else:
   1371       return self._do_call(_prun_fn, handle, feeds, fetches)

/usr/local/lib/python3.7/dist-packages/tensorflow/python/client/session.py in _do_call(self, fn, *args)
   1392                     '\nsession_config.graph_options.rewrite_options.'
   1393                     'disable_meta_optimizer = True')
-> 1394       raise type(e)(node_def, op, message)
   1395
   1396   def _extend_graph(self):

InvalidArgumentError: No OpKernel was registered to support Op 'QuantizedMatMulWithBiasAndDequantize' used by node model/dense/Tensordot/MatMul_eightbit_requantize (defined at <ipython-input-6-2bddd853d111>:2)  with these attrs: [input_quant_mode="MIN_FIRST", T1=DT_QUINT8, Toutput=DT_FLOAT, T2=DT_QINT8, Tbias=DT_QINT32, transpose_a=false, transpose_b=false]
Registered devices: [CPU]
Registered kernels:
  <no registered kernels>

	 [[model/dense/Tensordot/MatMul_eightbit_requantize]]

The error persists even with os.environ['TF_ENABLE_ONEDNN_OPTS'] = '1' set explicitly.
I believe both cases are caused by the same type of error, i.e. No OpKernel was registered to support Op ...
I was given to understand that with official Tensorflow v2.5 installed and the environment variable TF_ENABLE_ONEDNN_OPTS=1 set (reference), the quantized model is supposed to run with oneDNN supported. But it doesn't seem to be the case in neither v2.4 nor v2.5.
Not sure if this is the right place to post this issue, but I have nowhere else to report the problem as Intel-Tensorflow doesn't allow issue reporting and Tensorflow developers usually ignore issues dependent on other packages. Any hint is greatly appreciated, thank you.

@peiwenhuang27 any issues with "InternalError: Missing 0-th output from node model/layer_1/Conv2D_eightbit_requantize " message are because core/common_runtime/mkl_layout_pass.cc doesn't rewrite graph correctly.
TF_ENABLE_MKL_NATIVE_FORMAT must be set always.
The most likely case in your side should be those variables don't take effect in c++ code.

Since I'm not sure if the issue is because of Colab, I tried running it in my local machine.
I set the variables using
import os
os['TF_ENABLE_ONEDNN_OPTS'] = '1'
os['TF_ENABLE_MKL_NATIVE_FORMAT'] = '1' # also tried '0', not sure what its value should be

But the following error still occurs:

2021-07-19 18:36:45.607306: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
WARNING:tensorflow:From main.py:24: load (from tensorflow.python.saved_model.loader_impl) is deprecated and will be removed in a future version.
Instructions for updating:
This function will only be available through the v1 compatibility library as tf.compat.v1.saved_model.loader.load or tf.compat.v1.saved_model.load. There will be a new function for importing SavedModels in Tensorflow 2.0.
Traceback (most recent call last):
  File "/Users/joannehuang/Documents/Work/quantization/TF2_inference/Intel-Tensorflow-Env/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1375, in _do_call
    return fn(*args)
  File "/Users/joannehuang/Documents/Work/quantization/TF2_inference/Intel-Tensorflow-Env/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1358, in _run_fn
    self._extend_graph()
  File "/Users/joannehuang/Documents/Work/quantization/TF2_inference/Intel-Tensorflow-Env/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1398, in _extend_graph
    tf_session.ExtendSession(self._session)
tensorflow.python.framework.errors_impl.InvalidArgumentError: No OpKernel was registered to support Op 'QuantizedMatMulWithBiasAndDequantize' used by {{node model/dense/Tensordot/MatMul_eightbit_requantize}} with these attrs: [input_quant_mode="MIN_FIRST", Toutput=DT_FLOAT, T1=DT_QUINT8, T2=DT_QINT8, Tbias=DT_QINT32, transpose_a=false, transpose_b=false]
Registered devices: [CPU]
Registered kernels:
  <no registered kernels>

	 [[model/dense/Tensordot/MatMul_eightbit_requantize]]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 26, in <module>
    predictions = sess.run(output, {input_tensor_name: x[:64]}) # 64, 257, 60, 1
  File "/Users/joannehuang/Documents/Work/quantization/TF2_inference/Intel-Tensorflow-Env/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 968, in run
    run_metadata_ptr)
  File "/Users/joannehuang/Documents/Work/quantization/TF2_inference/Intel-Tensorflow-Env/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1191, in _run
    feed_dict_tensor, options, run_metadata)
  File "/Users/joannehuang/Documents/Work/quantization/TF2_inference/Intel-Tensorflow-Env/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1369, in _do_run
    run_metadata)
  File "/Users/joannehuang/Documents/Work/quantization/TF2_inference/Intel-Tensorflow-Env/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1394, in _do_call
    raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: No OpKernel was registered to support Op 'QuantizedMatMulWithBiasAndDequantize' used by node model/dense/Tensordot/MatMul_eightbit_requantize (defined at main.py:24)  with these attrs: [input_quant_mode="MIN_FIRST", Toutput=DT_FLOAT, T1=DT_QUINT8, T2=DT_QINT8, Tbias=DT_QINT32, transpose_a=false, transpose_b=false]
Registered devices: [CPU]
Registered kernels:
  <no registered kernels>

	 [[model/dense/Tensordot/MatMul_eightbit_requantize]]

From the command line log (This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 FMA), looks like the environment variables have been set successfully.

if possible, could you pls share us your pb file and evaluation script?

Due to some reasons, I cannot directly upload my files here. I have emailed the files to you, please check your inbox for them. Thank you so much, I truly appreciate it!

By the way, I found the following in the release notes for Intel-Tensorflow 2.5:

Only native layout format is supported (The environment variable TF_ENABLE_MKL_NATIVE_FORMAT will not have any effect)
The oneDNN optimizations in official TensorFlow will not include int8 quantization (it will still be available in Intel Optimized TensorFlow). It will be available in later versions of official TensorFlow.

It looks like TF_ENABLE_MKL_NATIVE_FORMAT does not affect the environment, and that all the int8 quantized operations are not supported yet in official Tensorflow. Could it be the reason for the error?

By the way, I found the following in the release notes for Intel-Tensorflow 2.5:

Only native layout format is supported (The environment variable TF_ENABLE_MKL_NATIVE_FORMAT will not have any effect)
The oneDNN optimizations in official TensorFlow will not include int8 quantization (it will still be available in Intel Optimized TensorFlow). It will be available in later versions of official TensorFlow.

It looks like TF_ENABLE_MKL_NATIVE_FORMAT does not affect the environment, and that all the int8 quantized operations are not supported yet in official Tensorflow. Could it be the reason for the error?

Need to set the TF_ENABLE_MKL_NATIVE_FORMAT=0 for int8 model execution with intel-tensorflow 2.5.0

I see! Thanks, it works now with Intel-Tensorflow, I encountered the problem mainly because I wanted the model to be able to run in official Tensorflow without Intel-Tensorflow (for simplicity in further inference session that will be run in ML.Net)

I have the same error with tensorflow2.7, tfserving2.7.0-gpu
 Missing 0-th output from {{node model/din_attention_layer/StatefulPartitionedCall_1/StatefulPartitionedCall/dense/Tensordot/MatMul_eightbit_requantize

I have Fix it

I have Fix it
How did you solve it? I met the same problem
请问你是如何解决的呢，我遇到了相同的问题。

I have Fix it

Code is :
https://github.com/wenxcsstore/tvm.dx/blob/bcbf4f9b1ddc4326364a3aa2fc82aaf4df8d53e8/tests/python/frontend/tensorflow/test_forward.py#L5217-L5223
log is :
tensorflow.python.framework.errors_impl.InternalError: 2 root error(s) found.
(0) Internal:   Missing 0-th output from {{node x}}
[[SpopFnInvocation]]
(1) Internal:   Missing 0-th output from {{node x}}
[[SpopFnInvocation]]
[[SpopFnInvocation/_1]]
0 successful operations.
0 derived errors ignored.

import os
os.environ['TF_ENABLE_ONEDNN_OPTS'] = '1'
os.environ['TF_ENABLE_MKL_NATIVE_FORMAT'] = '1'

This fix my issue.
Thanks


Getting error "You are not authorized to perform this operation" when CodeBuild runs 'npx cdk synth'

The issue goes away when I manually add the permission “ec2:DescribeAvailabilityZones” to the ” IAM role that starts with ‘GreengrassDeviceImageBuil-PipelineBuildSynthCdk’
There is some information about similar behaviour here:

https://github.com/aws/aws-cdk/issues/2643
https://stackoverflow.com/questions/56483906/codebuild-failing-to-run-cdk-synth

@franccan can you give me a code permalink for this issue in our code or can you do a pull request if this is working?

CDK project has been deprecated


Fix/pair ids

Proposed changes
Fix APY pair_ids
Fixes
n/a
Types of changes
What types of changes does your code introduce? (A breaking change is a fix or feature that would cause existing functionality and APIs to not work as expected.)
Put an x in the box that applies

[x] Non-breaking fix (non-breaking change which fixes an issue)
[ ] Breaking fix (breaking change which fixes an issue)
[ ] Non-breaking feature (non-breaking change which adds functionality)
[ ] Breaking feature (breaking change which adds functionality)
[ ] Refactor (non-breaking change which changes implementation)
[ ] Messy (mixture of the above - requires explanation!)

Checklist
Put an x in the boxes that apply.

[x] I have read the CONTRIBUTING doc
[ ] I am making a pull request against the main branch (left side). Also you should start your branch off our main.
[ ] Lint and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have locally run services that could be impacted and they do not present failures derived from my changes

The double nested proposed solution isnt interpreted as a dict, but as a list, so the unit tests break when trying to access the key.
AttributeError: 'list' object has no attribute 'keys'


Update document

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Merged, thank you!


Debuggee process needs to be stopped twice unexpectedly

Hey guys, we have an issue https://github.com/Microsoft/vscode-react-native/issues/784 in React Native Tools extension related with new stop debug behavior and we need a help from you regarding this because we couldn't find detailed documentation about how to deal with this new behavior.
According to these notes, If the debuggee has no SIGINT handler, the debuggee will terminate and end the debug session. In our case, this is not happening and to stop debugging we need to click on a stop button twice.
I am not sure, but seems to be that these new changes in debugging in 1.26 breaks us in the sense that for those debuggers which hasn't support for this should not be affected, but our debugger is affected, unexpectedly. I tested it on Ubuntu and Mac with the same results.
Steps to Reproduce:

Open VS Code and install latest version of React Native Tools extension
Clone this demo project, open it with VS Code.
Start simulator of Android or iOS device/connect real device.
Start debugging by choosing "Debug Android" or "Debug iOS".
Wait for app launch and debugging panel appearing, then click "Stop" on it.

After debugger process initialized:

After first time clicking on "Stop" - debuggee isn't stopped, error in debug console appeared:

After second time clicking on "Stop" - debuggee finally terminated

Please, let me know if you need any help/information from my side.

VS Code version: Code 1.26.1 (493869ee8e8a846b0855873886fc79d480d342de, 2018-08-16T18:34:20.517Z)
OS version: Linux x64 4.15.0-33-generic

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz (4 x 2856)

GPU Status
2d_canvas: unavailable_softwarechecker_imaging: disabled_offflash_3d: unavailable_softwareflash_stage3d: unavailable_softwareflash_stage3d_baseline: unavailable_softwaregpu_compositing: unavailable_softwaremultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: unavailable_softwarevideo_decode: unavailable_softwarevideo_encode: unavailable_softwarewebgl: enabled_readbackwebgl2: unavailable_off

Load (avg)
1, 1, 1

Memory (System)
15.62GB (4.65GB free)

Process Argv
/usr/share/code/code --unity-launch

Screen Reader
no

VM
0%

Extensions (3)

Extension
Author (truncated)
Version

tslint
eg2
1.0.38

cordova-tools
vsm
1.4.0

vscode-react-native
vsm
0.6.16

Hi @weinand, after further investigation we figured out that actually, we clone NodeDebugAdapter instance from built-in node-debug2 extension and modify it for our needs so in fact we inherit new behavior as well. So, we made this workaround for now https://github.com/Microsoft/vscode-react-native/pull/789 to get back previous behavior. Seems to be that our issue has resolved since that.

@ruslan-bikkinin I'm glad that you were able to resolve this. Thanks.

@weinand anyway, I believe it would be better if docs for extension authors were updated with more detailed information about this new behavior.


Not an issue - a Thank you!

I've integrated your wonderful git-graph renderer into Neogit - https://github.com/NeogitOrg/neogit/pull/1522
Just wanted to share that, and say thanks :)
Best,
Cameron

This warms my heart 😊
I am considering a performant port of this to rust at some point. 🤞


where is the output?

hi
Wonderful work.  Thank you.
I installed and ran the example command but don't see any output.  Please help.

Hi,
The output files are typically downloaded in the working dir.
Thanks

so I am able to see the visualizations if I use the gui and run runApp() and choose the exampledata manually.
however when I try to use the command line to output the data nothing is produced.
sbsuser@biolin-02:~/tools/iSeqQC$ Rscript --vanilla iSeqQC_cli/iSeqQC.R exampleData/samplemanifestfile.txt {sample_phenotype_file} exampleData/genesymbol_rawcounts.txt {count_matrix} R {type_of_reads} SYMBOL {type_of_gene_identifier} H {Organism}
Loading required package: ggplot2
Welcome! Want to learn more? See two factoextra-related books at https://goo.gl/ve3WBa

Attaching package: ‘psych’

The following objects are masked from ‘package:ggplot2’:

    %+%, alpha

corrplot 0.84 loaded
Loading required package: Biobase
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package: ‘BiocGenerics’

The following objects are masked from ‘package:parallel’:

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following object is masked from ‘package:limma’:

    plotMA

The following object is masked from ‘package:som’:

    normalize

The following objects are masked from ‘package:stats’:

    IQR, mad, sd, var, xtabs

The following objects are masked from ‘package:base’:

    anyDuplicated, append, as.data.frame, basename, cbind, colnames,
    dirname, do.call, duplicated, eval, evalq, Filter, Find, get, grep,
    grepl, intersect, is.unsorted, lapply, Map, mapply, match, mget,
    order, paste, pmax, pmax.int, pmin, pmin.int, Position, rank,
    rbind, Reduce, rownames, sapply, setdiff, sort, table, tapply,
    union, unique, unsplit, which, which.max, which.min

Welcome to Bioconductor

    Vignettes contain introductory material; view with
    'browseVignettes()'. To cite Bioconductor, see
    'citation("Biobase")', and for packages 'citation("pkgname")'.

Loading required package: ShortRead
Loading required package: BiocParallel
Loading required package: Biostrings
Loading required package: S4Vectors
Loading required package: stats4

Attaching package: ‘S4Vectors’

The following objects are masked from ‘package:data.table’:

    first, second

The following object is masked from ‘package:base’:

    expand.grid

Loading required package: IRanges

Attaching package: ‘IRanges’

The following object is masked from ‘package:data.table’:

    shift

The following object is masked from ‘package:psych’:

    reflect

Loading required package: XVector

Attaching package: ‘Biostrings’

The following object is masked from ‘package:ape’:

    complement

The following object is masked from ‘package:base’:

    strsplit

Loading required package: Rsamtools
Loading required package: GenomeInfoDb
Loading required package: GenomicRanges
Loading required package: GenomicAlignments
Loading required package: SummarizedExperiment
Loading required package: DelayedArray
Loading required package: matrixStats

Attaching package: ‘matrixStats’

The following objects are masked from ‘package:Biobase’:

    anyMissing, rowMedians

Attaching package: ‘DelayedArray’

The following objects are masked from ‘package:matrixStats’:

    colMaxs, colMins, colRanges, rowMaxs, rowMins, rowRanges

The following objects are masked from ‘package:base’:

    aperm, apply, rowsum

Attaching package: ‘GenomicAlignments’

The following object is masked from ‘package:data.table’:

    last

Attaching package: ‘ShortRead’

The following object is masked from ‘package:ape’:

    zoom

The following object is masked from ‘package:data.table’:

    tables

The following object is masked from ‘package:psych’:

    fac

sbsuser@biolin-02:~/tools/iSeqQC$

Hi,
Please use the following:
Rscript --vanilla iSeqQC_cli/iSeqQC.R exampleData/samplemanifestfile.txt  exampleData/genesymbol_rawcounts.txt R SYMBOL  H
The '{xxxx}' are just to make user aware of the parameter.


[backport] Implement return_indices option to F.max_pooling_2d

Backport of #4890

Jenkins CI test (for commit 2a69b0801499a6679f0e8b4a64fe0b678bceddd8) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)

Test failures are not related to this PR.

LGTM!

Jenkins CI test (for commit 2a69b0801499a6679f0e8b4a64fe0b678bceddd8) succeeded without errors!


docs(@angular/cli): Update xi18n outfile argument string

I noticed when working with the cli that the command to generate the output file is different than what is listed in the wiki. It should be  --out-file which is what the cli shows when you use ng xi18n --help to list the commands.
If I try to do --outfile I get a message that says The option '--outfile' is not registered with the xi18n command. Run ng xi18n --help for a list of supported options..

@filipesilva This was my first time having to rebase a commit like this, but I think I have it sorted out.

@LukePettway it looks good now, I'll merge 👍


Reformat maze_search

[X] Reformat maze_search

[X] Fixes #472

Reformated the code to be better readable.
Corrected time and space complexity.
Replaced list with collections.deque for faster pops and appends.

thanks! its a lot easier to understand no :)


mr mohammed shahidul islam

all the best wishes to all the almighty allah

2012-05-08-digicert-security-case-study.pdf


Puppet errors on nodes with SELinux disabled

After switching to this module in our puppet environment I noticed that catalog compilation will produce errors on nodes which have SELinux disabled.  For example, the following errors are shown on one of our nodes.
Error: /Stage[main]/Apache/Selinux::Boolean[httpd_anon_write]/Selboolean[httpd_anon_write]: Could not evaluate: Execution of '/usr/sbin/getsebool httpd_anon_write' returned 1: /usr/sbin/getsebool:  SELinux is disabled
Error: /Stage[main]/Apache/Selinux::Boolean[httpd_can_network_connect]/Selboolean[httpd_can_network_connect]: Could not evaluate: Execution of '/usr/sbin/getsebool httpd_can_network_connect' returned 1: /usr/sbin/getsebool:  SELinux is disabled
Error: /Stage[main]/Apache/Selinux::Boolean[httpd_can_network_connect_db]/Selboolean[httpd_can_network_connect_db]: Could not evaluate: Execution of '/usr/sbin/getsebool httpd_can_network_connect_db' returned 1: /usr/sbin/getsebool:  SELinux is disabled
Error: /Stage[main]/Apache/Selinux::Boolean[httpd_can_network_relay]/Selboolean[httpd_can_network_relay]: Could not evaluate: Execution of '/usr/sbin/getsebool httpd_can_network_relay' returned 1: /usr/sbin/getsebool:  SELinux is disabled
Error: /Stage[main]/Apache/Selinux::Boolean[httpd_can_sendmail]/Selboolean[httpd_can_sendmail]: Could not evaluate: Execution of '/usr/sbin/getsebool httpd_can_sendmail' returned 1: /usr/sbin/getsebool:  SELinux is disabled
Error: /Stage[main]/Apache/Selinux::Boolean[httpd_execmem]/Selboolean[httpd_execmem]: Could not evaluate: Execution of '/usr/sbin/getsebool httpd_execmem' returned 1: /usr/sbin/getsebool:  SELinux is disabled
Error: /Stage[main]/Apache/Selinux::Boolean[httpd_use_nfs]/Selboolean[httpd_use_nfs]: Could not evaluate: Execution of '/usr/sbin/getsebool httpd_use_nfs' returned 1: /usr/sbin/getsebool:  SELinux is disabled

I've fixed this in our apache module with a simple if $facts['selinux'] check but it would be nice if that was not necessary.

I don't think simply looking at $facts['selinux'] is sufficient. If selinux was enabled during the run, the fact will still be false. On the other hand, I don't know if you might actually need a reboot before you can use selboolean.

@ekohl You would need a reboot if SELInux was changed from disabled to enforcing or permissive mode.  The node would also require a file system relabel which would be done at boot time.  The selboolean command will also fail if SELinux is disabled.  For example:
[root@server1 ~]# setsebool httpd_anon_write 1
setsebool:  SELinux is disabled.
[root@server1 ~]# echo $?
1

$facts['selinux'] returns false when SELinux is disabled.  The boolean provider should use this data to avoid running commands that will not work in the first place.  Whether SELinux should be enabled is another matter and should be handled by the main selinux class.  I've done this in our own custom SELinux module and it works pretty well.

Looking at config.pp it appears you're correct. Could you come up with a PR?

@ekohl I can but it shouldn't require much more than wrapping the selboolean resource in an if statement.  We did this in our own custom module using a custom fact as follows.
define selinux::boolean ($value, $persistent=false) {
    if $facts['selinux_simple'] == true {
        $bool_value = $value ? {
            [true, 1] => 'on',
            [false, 0] => 'off',
            'on' => 'on',
            'off' => 'off',
            default => 'on',
        }

        selboolean { $name:
            persistent => $persistent,
            value      => $bool_value,
        }
    }
}

$selinux_simple is a custom fact which pretty much works the same as $selinux.

My question right now is should the module display a notification when SELinux is disabled or simply skip the resource and do nothing?  I'd like to avoid excessive noise in our puppet reports and a notification message would cause tagmail to send out an email every time the agent runs.

I think skipping is ok. In case you're going from disabled to permissive then it'll be applied in the next run. The module allows setting the mode so the admin has sufficient to enforce the correct state.
It does look like this was moved to the os hash in facter 3. Maybe we should be using os.selinux.enabled and we can rely on that being a proper boolean type.

One issue with that is I still have Fedora 20 nodes in production which don't have an os.selinux fact defined.  OTHO $facts['selinux'] works everywhere.
Yes, I know F20 is old...

Personally I'm fine with using the legacy facts, especially when the new facts don't really provide additional value. Can you verify it's a proper boolean (facter --json selinux)?

@ekohl
Yes, the fact returns as a boolean.
[root@server1 ~]# facter --json selinux
{
  "selinux": false
}

I'll submit a PR to address this issue soon.

I also just noticed a similar issue with the selinux::fcontext type.
Jul 17 14:51:11 host.example.com puppet-agent[5589]: (/Stage[main]/Selinux/Anchor[selinux::end]) Dependency Selinux_fcontext[/srv/git(/.*)?_a] has failures: true
Jul 17 14:51:11 host.example.com puppet-agent[5589]: (/Stage[main]/Selinux/Anchor[selinux::end]) Skipping because of failed dependencies
Jul 17 14:51:11 host.example.com puppet-agent[5589]: Could not find a suitable provider for selinux_fcontext

I've tested these changes on my dev node, errors are no longer shown when puppet runs.


Sensor with unknown state since 1.7.1

Everything is working correctly.
See this error in my logs a lot since the update to 1.7.1
[2/13/2021, 13:02:32] [Frontpoint] Warning: Sensor with unknown state 0
Let me know if I can provide additional debug info. Nothing seems to be broken, just getting the error.

Same error here. No changes to hardware or homebridge. I downgraded to 1.7.0 then 1.6.5 and removed cached accessories and the error persists

Could you provide a list of your sensors? I believe this can be retrieved by bumping up your logging level and looking for the file cached-accessories.json (it will tell you it’s saving in the log)
Chase Lau
Please excuse any grammatical errors as this was sent from my iPhone.

On Feb 13, 2021, at 5:18 PM, macjbraun<EMAIL_ADDRESS>wrote:

Same error here. No changes to hardware or homebridge. I downgraded to 1.7.0 then 1.6.5 and removed cached accessories and the error persists
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

I have the same problem. I ignored all sensors and still get the problem. I downgraded to 1.7.0 and those errors go away but Arm-Stay issue shows up.

I stopped the service and ran homebridge -D via ssh and cannot find cached-accessories.json I do have cachedAccessories (no extension) in ~/.homebridge/accessories Is that what you are looking for? I did not see another way of running in debug mode and I did not see any notification that it was saving in the log to cached-accessories.json. Pls advise if there's a different way of getting you this data. Thanks

cachedAccessories.txt

cachedAccessories.txt

I actually had a similar issue and submitted a pull request #68 to add additional detail to the logging, to help users identify which device is having the issue. For me it's the glassbreak sensors that are returning a state of 0, which get mapped to Unknown type.

I have some glassbreak sensors, so that makes sense. FWIW @chase9 has commented there’s something coming in v1.8.0 that should address this.

Looking at this now it appears to be a symptom of alarm.com not following a spec I can make sense of (which, I suppose, is why they don't have a public API :P )
So far I've noticed that Glassbreak, (some) Keyfobs, and (some) glassbreaks report their status as 0 when they're fine. Could you check in the alarm.com portal > sensors to make sure these statuses are "OK" without any other complaints about the system needing a reset?

Seeing this too, - diagnostics were fine and motion detector is working, - my warning: "Sensor Motion Detector has unknown state"

Hello, doing some housekeeping here. Is anyone still having this issue?


Add Page in RC-3 Core always creates folder number with prefix 1001

Today I did a fresh install using composer and then updated core only from Admin.
Then when I create (Add) a page from Admin:

with v1.1.17 and Admin v1.2.14 -> OK; folder prefix increments as normal
using v1.2.0-rc.3 with Admin v1.2.14 -> not OK; every new page gets a prefix of 1001. There is no incrementing, so 1002 does not get created.

Both MacOS and Debian server show same behaviour. Everything works fine. Pages get served, can be edited, etc.

Ya I can see this also. My testing involved reordering which fixes it. No reodering at all leaves this behavior.

Should be sorted now. Please confirm with commit in admin plugin.

Just downloaded Admin Plugin rc-4 from develop and can confirm the fix.


increase the possible mqtt connection from 9 to 16 not possible

the default configuration fo the example is 9 possilbe connections this works great. if i decrease to 4 connections the broker allows max of 4. however if i increase to 16 i still can connect 9 mqtt clients.

Hi!, your right, I tested the project again and the limit is 10 now, probably when I wrote this project some years ago, arduino core for esp32 did let us to open 16 TCP sockets, but with the recent  releases the limit is 10 sockets, in your case, 1 TCP socket for listen and 9 for clients. If you use broker and http server at the same time you are using 1 TCP socket to listen on the broker and other to listen on the web server, letting you 8 sockets for clients.
I was looking for similars isues in espressif github page and I found this: https://github.com/espressif/esp-idf/issues/4900, this isue is from 2020, and it talk about 16 TCP connections, probably some release of that year includes a version of lwIp library, which accepts 16 TCP sockets.


I'm trying to add a checkbox input to a cell

const data = [{
    name: 'Tanner Linsley',
    age: 26,
    friend: {
        name: 'Jason Maurer',
        age: 23
    }
},{
    name: 'Banner Dansley',
    age: 19,
    friend: {
        name: 'Jason Mraz',
        age: 30
    }
}]

const columns = [{
  header: 'Name',
  accessor: 'name' // String-based value accessors !
}, {
  header: 'Age',
  accessor: 'age',
  render: <input type="checkbox" checked="checked"/> // Custom cell components!
}, {
  header: 'Friend Name',
  accessor: 'friend.name' // Custom value accessors!
}, {
  header: 'Friend Age',
  //header: props => Friend Age, // Custom header components!
  accessor: 'friend.age'
}]

<ReactTable
     data={data}
     columns={columns}
     minRows={0}
/>

Result:

    <input type="checkbox" value="on">   <----- should be rendered as <input type="checkbox" checked="checked"/>

Try checked={true}
On Fri, Nov 4, 2016 at 10:47 AM Nikolai Hegelstad<EMAIL_ADDRESS>wrote:

const data = [{
name: 'Tanner Linsley',
age: 26,
friend: {
name: 'Jason Maurer',
age: 23
}
},{
name: 'Banner Dansley',
age: 19,
friend: {
name: 'Jason Mraz',
age: 30
}
}]
const columns = [{
header: 'Name',
accessor: 'name' // String-based value accessors !
}, {
header: 'Age',
accessor: 'age',
render:  // Custom cell components!
}, {
header: 'Friend Name',
accessor: 'friend.name' // Custom value accessors!
}, {
header: 'Friend Age',
//header: props => Friend Age, // Custom header components!
accessor: 'friend.age'
}]

Result:

   <----- should be rendered as

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tannerlinsley/react-table/issues/13, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AFUmCf0hqgamysGyzumf3dyNQQgob8-Wks5q62GzgaJpZM4KpwTg
.

Then to respond to changes, use onChange={() => {doSomething()}}
On Fri, Nov 4, 2016 at 11:23 AM Tanner Linsley<EMAIL_ADDRESS>wrote:

Try checked={true}
On Fri, Nov 4, 2016 at 10:47 AM Nikolai Hegelstad <
<EMAIL_ADDRESS>wrote:
const data = [{
name: 'Tanner Linsley',
age: 26,
friend: {
name: 'Jason Maurer',
age: 23
}
},{
name: 'Banner Dansley',
age: 19,
friend: {
name: 'Jason Mraz',
age: 30
}
}]
const columns = [{
header: 'Name',
accessor: 'name' // String-based value accessors !
}, {
header: 'Age',
accessor: 'age',
render:  // Custom cell components!
}, {
header: 'Friend Name',
accessor: 'friend.name' // Custom value accessors!
}, {
header: 'Friend Age',
//header: props => Friend Age, // Custom header components!
accessor: 'friend.age'
}]

Result:

   <----- should be rendered as

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tannerlinsley/react-table/issues/13, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AFUmCf0hqgamysGyzumf3dyNQQgob8-Wks5q62GzgaJpZM4KpwTg
.

checked={true} doesn't change anything.
What am I supposed to put within:
onChange={(state, instance) => {

                }}

That is the callback for when the page and sorting changes. It is an
opportunity for you to fetch server side data. Use it with the 'manual'
prop.
On Sun, Nov 6, 2016 at 9:29 AM Nikolai Hegelstad<EMAIL_ADDRESS>wrote:

checked={true} doesn't change anything.
What am I supposed to put within:
onChange={(state, instance) => {
            }}

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tannerlinsley/react-table/issues/13#issuecomment-258692158,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFUmCYH8m2RaI3RdhiLhYnm4W4sWvzfJks5q7gCHgaJpZM4KpwTg
.

Aha, I don't think i need to fetch server side data. I just want to be able to check checkboxes within the custom cell component, the checking doesn't have to be persisted across page reloads or component lifecycles, but i would like to be able to access them from the application across paging.
Maybe it is wise to save the state of the checkbox within the data object? Do i change the state with onChange? And would you send me in the right direction to extract custom cell value changes?

Yes. In each row of the data, keep a property to track the check box state.
To track changes to the check box, just use an on change on the check box
and update that row.
React Table doesn't track state for anything except paging and sorting. The
rest is up to you. You can use your own components in the header and render
column properties, so you have full control.
On Sun, Nov 6, 2016 at 9:37 AM Nikolai Hegelstad<EMAIL_ADDRESS>wrote:

Aha, I don't think i need to fetch server side data. I just want to be
able to check checkboxes within the custom cell component, the checking
doesn't have to be persisted across page reloads or component lifecycles,
but i would like to be able to access them from the application across
paging.
Maybe it is wise to save the state of the checkbox within the data object?
Do i change the state with onChange? And would you send me in the right
direction to extract custom cell value changes?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tannerlinsley/react-table/issues/13#issuecomment-258692595,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFUmCVGtif42aThEYxq-QcCztRQsU_1tks5q7gI4gaJpZM4KpwTg
.

Thanks for taking your time!

You bet!
On Sun, Nov 6, 2016 at 9:54 AM Nikolai Hegelstad<EMAIL_ADDRESS>wrote:

Thanks for taking your time!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tannerlinsley/react-table/issues/13#issuecomment-258693700,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFUmCUTPsCS_6RWD-e8sAYGEOcxWZt9Jks5q7gYtgaJpZM4KpwTg
.


Mongo query error

After reinstall node_modules i am facing this error with our plugin. MongoError: Can't canonicalize query: BadValue bad skip value in query. Mongoose version is 4.4.14, node version is 5.11.0, mongoose-paginate version is latest on npm. I am just using empty object for query, and page and limit for options. {},{page: 0, limit:3}

page starts from 1. Maybe this is the reason

Thank you, this is solved, issue was that i am using Collections from different databases.


Add [abc] style wildcard to pack name convention

The [abc] style wildcard is already supported as it is a common implementation.
Updating the documentation to be consistent with https://open-cmsis-pack.github.io/Open-CMSIS-Pack-Spec/main/html/pdsc_conditions_pg.html#element_conditions

@madchutney Thanks for this contribution!


Upload latest commits to pypi

Hi,
Not exactly an issue, but is there any chance you could release the latest RTMLib commits on Pypi? This would allow me to release my package as well, with yours as a dependency.

Hi @davidpagnon , I just uploaded latest version to Pypi. Enjoy~

Awesome!
I've got to thank you again for this library, it's going to make everything much easier and more straightforward for Pose2Sim users :)


Commit message structure

Consider using a commit message structure like: https://www.conventionalcommits.org/en/v1.0.0/

I think this is a good idea. 👍  But it requires some documentation to ensure we use it consistently. If you take of the documentation, I am more than happy of start using it. 😉
In order to make it easier for people to contribute, we can also use squash and merge and do this ourselves. My experience is that this can be some overhead for some contributors and we want to make contributing as fun and easy as possible (creating the packages is already complicated enough). 😄

Closing this issue due to inactivity (it does look like it is a priority :wink:)


feat: add icon components

This pull request introduces a set of icon components to our application's UI library.
Each icon component has been integrated into Storybook, allowing for easy visualization and testing. This ensures that the icons can be reviewed in isolation and in different scenarios, confirming their design and functionality.
For consistency and ease of use, default properties such as size, color, and, where applicable, filled, have been set for each icon. These defaults ensure a consistent look and feel across our application while allowing flexibility for specific use cases.

Also one thing that I have noticed, the PR is not up to date with the main. Please also merge the main branch into your current branch so it is updated. Thank's. 😁

:tada: This PR is included in version 1.5.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


use event.parent span if present

Events can have an explicit parent, which was ignored. Use this span instead of getting it from the context if present.

Looks good to me. Thanks.

Released tracing-loki 0.2.4 with this fix.

Great, thanks for the quick review and release. :+1:


Fixing post-preview organism

Post preview headline is now a link to the post
Adds .external_link_text and .external_link_url for the ability to add an additional link to post preview
Fixes a few spacing issues with post-preview organism.
Resolves issue #1434

Testing

Create a browse filterable page and publish it locally with the "Amicus Brief" filter
Create lots of document-detail pages under the browse-filterable page with "amicus brief" page types.
Test~

Review

@kave
@jimmynotjim
@sebworks
@anselmbradford

Works great locally, just a couple of questions.

Fixed. I just noticed that in order to fix the issue with the links, the BEWDs will have to add a field here for the preview link url.

Hey @schaferjh!
After a little bit of chatting with the other FEWDs, we need some clarification on the hyperlink in the post-preview.

Originally we had the hyperlink link to the post, but I heard in a team working session that we wanted that to be an additional link for a certain use case and have the title hyperlinked to the post. Can you share the use case and clarify the spec for the hyperlink?

Jess responded with https://github.com/cfpb/cfgov-refresh/issues/1434#issuecomment-182555450 and the following

right, that thing being called "preview_link" needs to be able to be a different url than the title
"preview_link" is probably a bad name -- "additional_link" would be better etc
and the vast majority of Post previews will not use the additional link -- the title will be the main link, as you see on the blog on beta today

:+1:

LGTM

Fixed. I just noticed that in order to fix the issue with the links, the BEWDs will have to add a field here for the preview link url.

What's the issue with links?

I'll update the Post Preview organism to add a hyperlink.

https://github.com/cfpb/cfgov-refresh/pull/1481


svn importing hangs at 99.99%

There are three queued tasks, but it seems no daemon is working on any of them. All queued tasks have PhabricatorRepositorySvnCommitChangeParserWorker as the task class.
The output of '$ ./bin/repository importing J' is
rJ28601 Change, Owners, Herald
rJ48280 Change, Owners, Herald
rJ48281 Change, Owners, Herald
I tried running
$ ./scripts/repository/reparse.php --message --change --owners --herald --force rJ28601 --trace
but it hangs after executing 27 commands. output see
https://secure.phabricator.com/file/data/jrslofb6v4pb5gwotwck/PHID-FILE-mmb7glkb6x43kpgpvzhx/output
(repo address has been mocked)
I found that the 27th execution is like running forever.  The size of the file it downloads (/tmp/exum2erivf4888kw/12087-CTaAKn in this case) has been already more than 3 GB. I'm not sure if it's due to a bug or the commit information is really that much.
Does anyone know how to fix this? Thanks.

Closing, assume resolved. Open ticket on https://secure.phabricator.com if assistance is still needed.


[PHPStanRules] Workaround parseFileToNodes() not work in php 7.4 on  Magento 2 DataObject class

workaround fixes #2875

@oneserv-heuser please verify if this patch work for you

@oneserv-heuser please verify if this patch work for you

With this workaround patch, the phpstan running correctly:

With this workaround patch, the phpstan running correctly:

All checks have passed 🎉 @TomasVotruba it is ready for review.

All checks have passed 🎉 @TomasVotruba it is ready for review.

Thanks :+1:

Thanks :+1:


nixos/tests/sunshine: fix test

change text in wait_for_console_text to prevent sending curl with pairing response before moonlight can accept it
remove "close moonlight" step as next window stays on top in fullscreen, previous window with pairing result does not interfere with test. Otherwise it needs OCR or some other way to only do send_key("kp_enter") after "Pairing complete" window is visible.
add different ways to increase chances of successfull OCR: hide icewm panel, gxmessage window takes full screen without titlebar or buttons, black background, white foreground, consolas font,"ABC" text

Description of changes
Fixes nixosTests.sunshine timing out after 1 hour:
https://hydra.nixos.org/job/nixos/trunk-combined/nixos.tests.sunshine.x86_64-linux
https://hydra.nixos.org/build/272715035
Error log:
(finished: must succeed: curl --insecure -u sunshine:sunshine -d '{"pin": "1234"}' https://localhost:47990/api/pin, in 0.08 seconds)
moonlight: sending key 'kp_enter'
(finished: sending key 'kp_enter', in 0.01 seconds)
moonlight: waiting for hello world to appear on screen
...
moonlight # [ 2497.757190] hrtimer: interrupt took 6012496 ns
timeout reached; test terminating...

curl with pin may execute before moonlight starts accepting it, so there is never a successful pairing.
Changed wait_for_console_text so that does not happen, there is another Executing message that is shown before pairing begins, but it does not have pair word in it:
moonlight # 00:00:05 - Qt Info: Executing request: "http://sunshine:47989/serverinfo?uniqueid=0123456789ABCDEF&uuid=6604d450bc5a442c8d6a2c863d94487e"

As there is a decent control over what is shown to be recognized with OCR added things to make it less flaky (removed other text on screen, changed colors, font and text).
Listed test maintainer:
@devusb
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@ofborg test sunshine

Something is still wrong with pairing even after this change:
https://logs.ofborg.org/?attempt_id=c883962c-ad3b-4107-9919-089a2d72670a&key=nixos%2Fnixpkgs.342813
(finished: must succeed: curl --fail --insecure -u sunshine:sunshine -d '{"pin": "1234"}' https://localhost:47990/api/pin, in 0.16 seconds)
moonlight: waiting for Executing request.*phrase=pairchallenge to appear on console
moonlight # 00:00:04 - Qt Critical: Incorrect PIN

@ghpzin does this work for you locally as-is? for me to get this to complete, I had to add one additional check to try to ensure that the screen sharing session had begun before looking for ABC -- I did the below but it's probably not the only choice.
@@ -68,6 +68,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {

     # connect to sunshine from moonlight and look for the words
     moonlight.execute("moonlight --video-decoder software stream sunshine 'Desktop' >&2 & disown")
+    moonlight.wait_for_console_text("Dropping window event during flush")
     moonlight.wait_for_text("ABC")
   '';
 })

If I add this the test completes for me in ~25 seconds -- if not, it generally still completes, but takes 5 minutes.
Even with this change I've still gotten Incorrect PIN at least once though, but it's not consistent -- I can run it 10 times and have no failures. Wonder if it's a timing issue -- maybe adding a sleep in between moonlight.wait_for_console_text("Executing request.*pair") and sunshine.succeed("curl --fail --insecure -u sunshine:sunshine -d '{\"pin\": \"1234\"}' https://localhost:47990/api/pin") would help? Wish the failure was reproducible though.

It does complete, but slowly for me too.
Adding wait_for_console_text to only start doing OCR after window is visible might be a good idea. Will add it in a bit, thank you.
I assume without it just 1 iteration of tesseract with no window visible might block for minutes (my laptop is not that beefy, so I do not have a point to compare how slow/fast it is).

Still can't track down why Incorrect PIN happens either.
Iirc already tried with sunshine.sleep(10) between commands and got that error once.
Will try adding even more time, sleep for both machines or in different places.
I have run test locally with some modification (to fail early) in a loop 132 times and 9 of them had this error, did not manage to find anything in logs indicating why it happens so far.
Just that it seems to come from moonlight-qt here:
https://github.com/moonlight-stream/moonlight-qt/blob/17a25484805ef927ad7c1b2906f885ee26eda928/app/backend/nvpairingmanager.cpp#L319
Might patch it to add some debug prints if nothing else helps.
Thought maybe curl somehow returns something in response with error, but still responds with non-error status-code and current test does not show what it responds with.
But curl response looks the same in both cases - {"status":"true"}.
Error:
(finished: waiting for Executing request.*pair to appear on console, in 15.96 seconds)
sunshine #   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
sunshine #                                  Dload  Upload   Total   Spent    Left  Speed
moonlight # 00:00:14 - Qt Info: Executing request: "http://sunshine:47989/pair?uniqueid=0123456789ABCDEF&u
uid=bdcc558d4d0549769b9c5216460dc66b&devicename=roth&updateState=1&clientchallenge=a04b1311112d3e09dbe603d
6a33b8f65"
sunshine #   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0100    40  100
 25  100    15    357    214 --:--:-- --:--:-- --:--:--   597
sunshine: (0, '{\n    "status": "true"\n}\n')
moonlight # 00:00:14 - Qt Info: Executing request: "http://sunshine:47989/pair?uniqueid=0123456789ABCDEF&u
uid=a3e6fba885cf4a5eb967d34abe53df2f&devicename=roth&updateState=1&serverchallengeresp=eb6ae13ba0a6240f839
3b1083aa35bb0d71ef9cda764e6eb752e863e5698d40d"
moonlight # 00:00:14 - Qt Critical: Incorrect PIN
moonlight # 00:00:14 - Qt Info: Executing request: "http://sunshine:47989/unpair?uniqueid=0123456789ABCDEF&uuid=90b2b839342140a2b13974cfe2d54752"

No error:
(finished: waiting for Executing request.*pair to appear on console, in 22.86 seconds)
sunshine #   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
sunshine #                                  Dload  Upload   Total   Spent    Left  Speed
moonlight # 00:00:20 - Qt Info: Executing request: "http://sunshine:47989/pair?uniqueid=0123456789ABCDEF&u
uid=936d787ec7f343babc111c98f1858099&devicename=roth&updateState=1&clientchallenge=e95483702fe65e2d9c396f2
5af921874"
sunshine #   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0100    40  100
 25  100    15    329    197 --:--:-- --:--:-- --:--:--   547
sunshine: (0, '{\n    "status": "true"\n}\n')
moonlight # 00:00:20 - Qt Info: Executing request: "http://sunshine:47989/pair?uniqueid=0123456789ABCDEF&u
uid=6d6306b9c6af412193dc50a6f320d264&devicename=roth&updateState=1&serverchallengeresp=b88e4fdde15bf3c6f3e
f7795f25e71be5f64e793313f21d32a8332eb57d0b649"
moonlight # 00:00:20 - Qt Info: Executing request: "http://sunshine:47989/pair?uniqueid=0123456789ABCDEF&u
uid=6a986f25918c4d869186e3c912982290&devicename=roth&updateState=1&clientpairingsecret=4cad44d6acf1c7006ce
950b28e52312916ed3737f1c8411b6eabde9bb7fdf4c513245a773fcf746dc82701acb0ae706871e752fef4db9c7d08635bb5f930d
5c531e6f19b9228d729ed6008722e1c22b78ccdefe7cb7be66a398b39c601877cc6a5c2c78b9b84603680de9b091f1dc7fc3de960b
fc7549fa38487a753fd9b839dc7516b07c84100d3e4bd31afa01c48d72bff08db9266cc800fc02507c275774e1c5e607fed0615d71
e2b567ca31525f83056734df611d6cdb00207e414f68ba27af533bddbfc41bd19a23c09b11ebcfaffab11d034bf5fc23cf9e198e88
4ae31715848ff38f8e0d982dee20e73486a49c079bba3219a9bb6fd8008441daf0f2b840b1de7ee7f163d2420b68d84d07ea9"
moonlight # 00:00:20 - Qt Info: Executing request: "https://sunshine:47984/pair?uniqueid=0123456789ABCDEF&uuid=1aae875fd9284534b9a9d252c2d7dbb7&devicename=roth&updateState=1&phrase=pairchallenge"

There might be something in full curl -v output too, I might try before patching moonlight-qt

@ghpzin I cherry-picked and rebased this commit into #364438 as it at least makes the tests mostly work -- still haven't been able to resolve the occasionally stuck problem, but figure that's better than nothing. let me know if you have any issues or anything you'd rather me do differently here.

Thank you, if it reduces flakiness it is all good.
Regarding pin issue I wanted to return to trying to diagnose it, but forgot about it half-way without any more clues as to the reason or reliable reproducer (still fails around 1/10 runs with that error).