SQLite queries using json1 extension cause errors in Designer

Hello, I'm working with a SQLite data source and would like to use the json1 extension in my queries. I'm having trouble getting Designer to accept these queries. It gives this error:

It seems that it's just a matter of the designer not knowing about the extension.
The queries work in a sqlite browsing tool, and they also work in FastReport if I add this call to LoadExtension before rendering:
SQLiteDataConnection conn = new SQLiteDataConnection();
conn.ConnectionString = connectionString;
conn.GetConnection().LoadExtension("sqlite3_json_init"); // Added this line
report.Dictionary.Connections.Add(conn);
report.Prepare();

Is there a way to make sqlite extensions work in the designer? Maybe with a property on each data source to specify which extensions to load?

Edit: To be clear, my hope is to run json queries with a SQLite data source in the query builder of Designer.exe. A simple example of such a query would be:
select json_extract('{"a":1, "b": "test"}', '$.b')

with result
test

The connection within the .frx, in this context only a server to draw the report.
For it to be rendered from within the application, in this context pass only the string connection.
Eg:
var report = new Report();
report.Load("MyReportFile.frx"));
report.Dictionary.Connections[0].ConnectionString = "MyStringConnectionAccordingToMyRepository ";
report.Prepare();

@ProsserCJ Now I understand the problem... I thought it worked on the designer, but not on dotnet.
I've worked with querys using commands in PL / SQL and T-Sql, and they work normally, but I never worked with SQLite using fastreport.
I can't evaluate just looking at the query, but have you thought about putting the rule in the application. That is, map the objects within your DB column and deserialize, this can even allow you to use another method to render.

@jeftegoesdev it might be possible to put the rule in the application, though I like to query with SQL. We have a working report that uses a postgres backend, where we extract values from json with queries similar to the above. We're trying to switch to SQLite to make it easier to install.
It's difficult to design the report without being able to edit the queries or see a preview. I think a fix might involve a call to LoadExtension() when the connection is initialized in the designer, but I'm not sure.
Thank you for your help.

Hello!
I created a task for this problem
Best regards
Marat


MAPREDUCE-7282: remove v2 commit algorithm for correctness reasons.

All jobs requsting v2 algorithm are WARNED and then switched to v1.
the v2 codepaths in file output committer have been removed, even
though some of the method names "rename or merge" are unchanged.

This patch doesn't fix those tests which will fail; I have
those changed and will submit after a Yetus run, to show what breaks/
is fixed

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
2m  1s
Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s
No case conflicting files found.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s
The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
34m 27s
trunk passed

+1 :green_heart:
compile
0m 44s
trunk passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1

+1 :green_heart:
compile
0m 36s
trunk passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

+1 :green_heart:
checkstyle
0m 29s
trunk passed

+1 :green_heart:
mvnsite
0m 41s
trunk passed

+1 :green_heart:
shadedclient
18m 13s
branch has no errors when building and testing our client artifacts.

+1 :green_heart:
javadoc
0m 22s
trunk passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1

+1 :green_heart:
javadoc
0m 19s
trunk passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

+0 :ok:
spotbugs
1m 28s
Used deprecated FindBugs config; considering switching to SpotBugs.

+1 :green_heart:
findbugs
1m 24s
trunk passed

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 35s
the patch passed

+1 :green_heart:
compile
0m 38s
the patch passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1

-1 :x:
javac
0m 38s
hadoop-mapreduce-project_hadoop-mapreduce-client_hadoop-mapreduce-client-core-jdkUbuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1 with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1 generated 1 new + 150 unchanged - 0 fixed = 151 total (was 150)

+1 :green_heart:
compile
0m 33s
the patch passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

-1 :x:
javac
0m 33s
hadoop-mapreduce-project_hadoop-mapreduce-client_hadoop-mapreduce-client-core-jdkPrivateBuild-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01 with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01 generated 1 new + 147 unchanged - 0 fixed = 148 total (was 147)

-0 :warning:
checkstyle
0m 23s
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core: The patch generated 5 new + 19 unchanged - 5 fixed = 24 total (was 24)

+1 :green_heart:
mvnsite
0m 35s
the patch passed

+1 :green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

-1 :x:
xml
0m  2s
The patch has 1 ill-formed XML file(s).

-1 :x:
shadedclient
17m  5s
patch has errors when building and testing our client artifacts.

+1 :green_heart:
javadoc
0m 18s
the patch passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1

+1 :green_heart:
javadoc
0m 15s
the patch passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

+1 :green_heart:
findbugs
1m 34s
the patch passed

_ Other Tests _

-1 :x:
unit
2m 12s
hadoop-mapreduce-client-core in the patch passed.

+1 :green_heart:
asflicense
0m 31s
The patch does not generate ASF License warnings.

86m 12s

Reason
Tests

XML
Parsing Error(s):

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/resources/mapred-default.xml

Failed junit tests
hadoop.mapreduce.TestJobSubmissionFiles

hadoop.mapred.lib.TestCombineFileRecordReader

hadoop.mapreduce.lib.output.TestFileOutputFormat

hadoop.mapred.TestJobAclsManager

hadoop.mapreduce.lib.input.TestFileInputFormat

hadoop.mapreduce.TestJobResourceUploaderWithSharedCache

hadoop.mapred.TestCounters

hadoop.mapreduce.lib.input.TestCombineFileRecordReader

hadoop.mapreduce.lib.jobcontrol.TestJobControl

hadoop.mapred.lib.db.TestDBInputFormat

hadoop.mapreduce.TestShufflePlugin

hadoop.mapreduce.lib.input.TestLineRecordReader

hadoop.mapreduce.task.reduce.TestMergeManager

hadoop.mapred.TestTaskProgressReporter

hadoop.mapreduce.TestContextFactory

hadoop.mapreduce.lib.output.TestPathOutputCommitterFactory

hadoop.mapreduce.tools.TestCLI

hadoop.mapred.TestTaskLog

hadoop.mapreduce.lib.output.TestFileOutputCommitter

hadoop.mapreduce.task.reduce.TestFetcher

hadoop.mapreduce.task.reduce.TestMerger

hadoop.mapred.TestMapTask

hadoop.mapred.TestFileOutputCommitter

hadoop.mapreduce.security.TestTokenCache

hadoop.mapreduce.TestJobResourceUploader

hadoop.mapred.TestIndexCache

hadoop.mapreduce.split.TestJobSplitWriterWithEC

hadoop.mapreduce.split.TestJobSplitWriter

hadoop.mapred.TestLineRecordReader

hadoop.mapreduce.task.reduce.TestShuffleScheduler

hadoop.mapreduce.lib.db.TestDbClasses

hadoop.mapred.TestFileInputFormat

hadoop.mapred.TestJobEndNotifier

hadoop.mapreduce.filecache.TestClientDistributedCacheManager

hadoop.mapred.TestJobConf

hadoop.mapreduce.TestJobMonitorAndPrint

hadoop.mapred.TestTask

hadoop.mapred.TestJobInfo

hadoop.mapred.TestSkipBadRecords

hadoop.mapreduce.TestCluster

hadoop.mapreduce.filecache.TestDistributedCache

hadoop.mapreduce.TestJob

hadoop.mapred.TestQueue

hadoop.mapreduce.jobhistory.TestHistoryViewerPrinter

Subsystem
Report/Notes

Docker
ClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2320/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/2320

JIRA Issue
MAPREDUCE-7282

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle xml

uname
Linux e88d81d7096d 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 7a6265ac425

Default Java
Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

javac
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2320/1/artifact/out/diff-compile-javac-hadoop-mapreduce-project_hadoop-mapreduce-client_hadoop-mapreduce-client-core-jdkUbuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1.txt

javac
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2320/1/artifact/out/diff-compile-javac-hadoop-mapreduce-project_hadoop-mapreduce-client_hadoop-mapreduce-client-core-jdkPrivateBuild-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01.txt

checkstyle
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2320/1/artifact/out/diff-checkstyle-hadoop-mapreduce-project_hadoop-mapreduce-client_hadoop-mapreduce-client-core.txt

xml
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2320/1/artifact/out/xml.txt

unit
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2320/1/artifact/out/patch-unit-hadoop-mapreduce-project_hadoop-mapreduce-client_hadoop-mapreduce-client-core.txt

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2320/1/testReport/

Max. process+thread count
307 (vs. ulimit of 5500)

modules
C: hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core U: hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2320/1/console

versions
git=2.17.1 maven=3.6.0 findbugs=4.0.6

Powered by
Apache Yetus 0.13.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 32s
Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s
No case conflicting files found.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

+1 :green_heart:
test4tests
0m  0s
The patch appears to include 2 new or modified test files.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
31m 10s
trunk passed

+1 :green_heart:
compile
0m 39s
trunk passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1

+1 :green_heart:
compile
0m 32s
trunk passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

+1 :green_heart:
checkstyle
0m 27s
trunk passed

+1 :green_heart:
mvnsite
0m 37s
trunk passed

+1 :green_heart:
shadedclient
15m 23s
branch has no errors when building and testing our client artifacts.

+1 :green_heart:
javadoc
0m 23s
trunk passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1

+1 :green_heart:
javadoc
0m 20s
trunk passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

+0 :ok:
spotbugs
1m 21s
Used deprecated FindBugs config; considering switching to SpotBugs.

+1 :green_heart:
findbugs
1m 19s
trunk passed

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 33s
the patch passed

+1 :green_heart:
compile
0m 35s
the patch passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1

+1 :green_heart:
javac
0m 35s
the patch passed

+1 :green_heart:
compile
0m 29s
the patch passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

+1 :green_heart:
javac
0m 29s
the patch passed

-0 :warning:
checkstyle
0m 21s
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core: The patch generated 5 new + 46 unchanged - 5 fixed = 51 total (was 51)

+1 :green_heart:
mvnsite
0m 34s
the patch passed

+1 :green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

+1 :green_heart:
xml
0m  1s
The patch has no ill-formed XML file.

+1 :green_heart:
shadedclient
14m 22s
patch has no errors when building and testing our client artifacts.

+1 :green_heart:
javadoc
0m 18s
the patch passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1

+1 :green_heart:
javadoc
0m 16s
the patch passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

+1 :green_heart:
findbugs
1m 21s
the patch passed

_ Other Tests _

-1 :x:
unit
6m 56s
hadoop-mapreduce-client-core in the patch passed.

+1 :green_heart:
asflicense
0m 35s
The patch does not generate ASF License warnings.

79m 47s

Reason
Tests

Failed junit tests
hadoop.mapreduce.lib.output.TestFileOutputCommitter

Subsystem
Report/Notes

Docker
ClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2320/2/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/2320

JIRA Issue
MAPREDUCE-7282

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle xml

uname
Linux c7c8c7422a2c 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 83c7c2b4c48

Default Java
Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

checkstyle
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2320/2/artifact/out/diff-checkstyle-hadoop-mapreduce-project_hadoop-mapreduce-client_hadoop-mapreduce-client-core.txt

unit
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2320/2/artifact/out/patch-unit-hadoop-mapreduce-project_hadoop-mapreduce-client_hadoop-mapreduce-client-core.txt

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2320/2/testReport/

Max. process+thread count
1572 (vs. ulimit of 5500)

modules
C: hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core U: hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2320/2/console

versions
git=2.17.1 maven=3.6.0 findbugs=4.0.6

Powered by
Apache Yetus 0.13.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.

checkstyle: indentation
./hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/output/FileOutputCommitter.java:593:           if (!fs.delete(committedTaskPath, true)) {: 'if' has incorrect indentation level 11, expected level should be 10. [Indentation]
./hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/output/FileOutputCommitter.java:594:             throw new IOException("Could not delete " + committedTaskPath);: 'if' child has incorrect indentation level 13, expected level should be 12. [Indentation]
./hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/output/FileOutputCommitter.java:595:           }: 'if rcurly' has incorrect indentation level 11, expected level should be 10. [Indentation]
./hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/output/FileOutputCommitter.java:697:          throw new IOException("Could not rename " + previousCommittedTaskPath +: Line is longer than 80 characters (found 81). [LineLength]
./hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/output/FileOutputCommitter.java:701:          LOG.warn(attemptId+" had no output to recover.");: 'else' child has incorrect indentation level 10, expected level should be 8. [Indentation]

v2 MUST be retained, just need to

remove as default
log @ WARN in job setup,  using a special log so it can be turned off


Mercenaries should have a way to heal over time

Unlike tames which can be fed to heal them, I could not find a way to heal (fairly expensive level 4) mercenaries who took a lot of damage.   It would be nice if there were a way to give them healing potions, have them heal while under the umbrella of a ward or simply slowly heal over the course of time.

In Cheb's Necromancy, I recently implemented a Skeleton Priest that is able to heal nearby undead minions. We could do a similar approach here, but I prefer some of your ideas like the ward or slow regeneration over time.


How to train the model

hi, README Note said that you can use your own dataset to further train the model and achieve better results.
But this repo does not show how to train. Are there any update plans for this part?

Currently, we do not have plan to release the training code

Ok, this is a great model, looking forward to the training code release plan soon


Collisions: Pooling module may be ineffective

The paper is really interesting, good job! I tried using the social gan model and found that the predictions it produces often contain collisions (pedestrians collide). Experiments show that the models without the pooling module tend to have just as much or less collisions than the models with the pooling module. This contradicts the rationale behind the pooling module which is supposed to avoid collisions.
The experiment:
Each situation consists of a sequence of frames, for each frame I compute the euclidian distance between all pedestrians, if any of these distances is below a threshold then I classify the situation that this frame belongs to as containing a collision. Each of the following four charts describes five of the in total twenty models that you provided via the download script:

Interestingly, the pooling module doesn't seem to reduce the number of collisions (compare left two and right charts).
See a bit more details about the experiments here.

This is also related to the findings in #44

Hi,
This repo might be useful to compare different interaction modules proposed in literature based on collision metrics!


Add config files for mainnet

Change summary:

Add config files for mainnet
Update deploy scripts for mainnet
Fix some bugs in deploy scripts and genesis block generation config

All comments addressed, ptal~ @liayoo


Create final synthesis rule for OTEL-monitored hosts

Is your feature request related to a problem? Please describe.
Currently, OTEL-monitored hosts need a specific attribute (nr.entity_type) in order to generate entities. This was added while we were testing this feature. Now that entity synthesis supports multiple conditions, we can remove this condition and add these conditions:

For metrics, the metric name starts with system., the newrelic.source is our otlp API
For logs, the source is our otlp API

This branch should have the necessary changes.
Before merging this, make sure:

the metrics OTLP pipeline supports these conditions
test it in staging. The desired behaviour is to create entities from metrics and logs.

this has been merged and validated in prod


Region choice issue while running the command "amplify api add-graphql-datasource"

** Which Category is your question related to? **
Configuration for a new project.
** What AWS Services are you utilizing? **
Cognito, RDS, etc
** Provide additional details e.g. code snippets **
The new project will run on us-west-3 region.
I already created my serverless aurora in us-west-2, but there is no way to other region other than us-east-1.
Did I do something wrong or is there any reasons?

There are some updates or method to bypass this problem ? I'm confronted to this since the other regions were announced.

Same issue here, data API should be available in the following regions:
US East (N. Virginia) | rds-data.us-east-1.amazonaws.com
US East (Ohio) | rds-data.us-east-2.amazonaws.com
US West (Oregon) | rds-data.us-west-2.amazonaws.com
EU (Ireland) | rds-data.eu-west-1.amazonaws.com
Asia Pacific (Tokyo) | rds-data.ap-northeast-1.amazonaws.com

Any news on this?

Any new here?

I need London!

Could really do with this in London too.


扩展

您好，如何将TVConv加到自己的baseline 中呀

Hi, please refer to the critical class TVConv in the file. To adapt to various input sizes, you can change the value of h and w when initializing a TVConv instance.


Prometheus usage instructions

How can go-metrics be used with Prometheus? The farthest I came is:
package main

import (
    "net/http"
    "time"

    "github.com/armon/go-metrics"
    "github.com/armon/go-metrics/prometheus"
)

func main() {
    sink, _ := prometheus.NewPrometheusSink()
    m, err := metrics.NewGlobal(metrics.DefaultConfig("goTest"), sink)
    if err != nil {
        panic(err)
    }

    go func() {
        for {
            m.IncrCounter([]string{"requestCounter"}, 1)
            time.Sleep(time.Second)
        }
    }()

    select {}
}

Some parts are missing like setting up an HTTP handler, HTTP server, etc ... And I don't know how to enable Prometheus server to scrape this. I've looked at the source code and I have a feeling that something is missing.

Did you ever figure this out?

@brianhama Yes, I think go-metrics uses DefaultServeMux by default, while I was using github.com/julienschmidt/httprouter.


None Available

After I creating every items it show None available and not allowing for booking, see the attached screetshot.

shows the following error:
Confirm Reservation
Please be aware of the following errors:
No testing-equps are available for the given time range.
Equipment Reserved for andy from April 22, 2016 to April 23, 2016:
The following equipment cannot be reserved because of admin restrictions; however, you may file a request for this reservation. Please fill out the form below and an admin will be able to approve or deny your request. You will be notified by email when your request has been reviewed.

Did you create any items for the model? The equipment system works like this, using cameras as an example: the category would be Camera, an equipment model in that category could be Nikon D3200, and then there would be an item under that model for every physical Nikon D3200 you had available for checkout.
Hope that helps!

Also, you can review our documentation for a complete overview of how to use Reservations. While it's a bit out-of-date, it should give you a good idea of the overall structure of the app. Let us know if this resolves your issue, thanks!


Ensure numpy>=1.22.2 and drop Python 3.7

When updating interpolation.py, I received a notification about a vulnerability in numpy (https://security.snyk.io/package/pip/numpy).
To remove it one has to enforce numpy>=1.22.2. Since that version has dropped python<=3.7, I would recommend to enforce python >=3.8

This has been resolved.


Repo sync for protected CLA branch

The pull request is created from master637738941693270272 to master to fix git push error for protected CLA branch

@opbld17 : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Target session %s is connected but doesn't anymore subscribed to %s

What kind of scene will produce such a exception？

It happens if during the publish processing, the client unsubscribe from
the subscription (or closes with clean=true)
Andrea
On Mon, Feb 5, 2018 at 8:09 AM, mao2080<EMAIL_ADDRESS>wrote:

What kind of scene will produce such a exception？
[image: image]
https://user-images.githubusercontent.com/26266425/35792135-8b88e536-0a86-11e8-8406-66ec6762deec.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/andsel/moquette/issues/387, or mute the thread
https://github.com/notifications/unsubscribe-auth/AA_Y0ZCoy_m2IbBQJbxbC9LqfeFtUGJoks5tRqksgaJpZM4R5ANa
.

closed as question


[RFC] Consider upgrading the rust toolchain

This RFC proposes the consideration of upgrading the Rust toolchain to a more recent version.

+1

we have to follow swc's toolchain config

@stormslowly It seems that SWC updated rust toolchain to nightly-2024-07-21 last month.


InvocationCount doesn't work with running tests in parallel

TestNG Version 6.14.3
For some reason, I need to execute my tests parallel on IE11 and Chrome (parallel="tests"), each browser on separated Node machine, and the @Test annotation should be run for multiple number of times (invocationCount=2).
This is my testng.xml:
    <suite name="Parallel" parallel="tests" thread-count="2">
        <test name="Performance Test Chrome">
            <parameter name="browser" value="Chrome"/>
            <parameter name="remoteURL" value="http://myIP1:5555/wd/hub"/>
            <parameter name="user" value="user1"/>
            <classes>
                <class name="com.TestClass"/>
            </classes>
        </test>
        <test name="Performance Test IE11">
            <parameter name="browser" value="IE" />
            <parameter name="remoteURL" value="http://myIP2:5555/wd/hub"/>
            <parameter name="user" value="user2"/>
            <classes>
                <class name="com.TestClass" />
            </classes>
        </test>
    </suite>

This is snippet of my TestClass:
    public class TestClass {
        public WebDriver webDriver;

        @Parameters({"browser", "remoteURL"})
        @BeforeTest
        public void setUp(String browser, String remoteURL) throws Exception {
            if (browser.equalsIgnoreCase("chrome")) {
                ChromeOptions optionsChrome = new ChromeOptions();
                webDriver = new RemoteWebDriver(new URL(remoteURL), optionsChrome);
            } else if (browser.equalsIgnoreCase("ie")) {
                InternetExplorerOptions optionsIE = new InternetExplorerOptions();
                webDriver = new RemoteWebDriver(new URL(remoteURL), optionsIE);
            } else
                throw new Exception("Browser is not supported");
        }

        @Parameters({"user"})
        @Test(invocationCount = 2, threadPoolSize = 2)
        public void parallelTest(String user) {
            login(user);
        }

        @AfterTest
        public void tearDown() {
            webDriver.quit();
        }
    }

Expect: The test should be run on each browser on respectively Node machines and performed @Test annotation 2 times, in parallel. I have 2 different users to avoid sessions
Actual: Browsers are actually opened at the same time on 2 nodes, but the test steps don't run through, they get stuck with NoSuchElementException, at the login page
Note that if I run @test annotation only with parallel="tests" OR invocationCount=2 alone, then the test is executed successfully as expected respectively. When I combine parallel AND invocationCount then i get this issue. I execute test within IntelliJ, by right click on testng.xml and run.
Is the combination between parallel="tests" and invocationCount=2 possible? Is it related to TestNG or IntelliJ? Any help much appreciated. Thanks

I dont think there's any problem with TestNG per se. TestNG does spin off the @Test methods in parallel when you have a combo of both parallel=tests and invocationCount.
Here's a full fledged TestNG only sample
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;

public class SampleTest {
    @Parameters({"age"})
    @Test(invocationCount = 2, threadPoolSize = 2)
    public void testMethod(int age) {
        System.err.println("Age is [" + age + "] on thread [" + Thread.currentThread().getId() + "]");
    }
}

import org.testng.TestNG;
import org.testng.annotations.Test;
import org.testng.xml.XmlClass;
import org.testng.xml.XmlSuite;
import org.testng.xml.XmlTest;

import java.util.Arrays;

public class IssueTest {
    @Test
    public void testMethod() {
        XmlSuite xmlsuite = createXmlSuite("my_suite");
        XmlTest xmltest1 = createXmlTest(xmlsuite, "my_test1", SampleTest.class);
        xmltest1.addParameter("age", "10");
        XmlTest xmltest2 = createXmlTest(xmlsuite, "my_test2", SampleTest.class);
        xmltest2.addParameter("age", "20");
        System.err.println(xmlsuite.toXml());
        TestNG testng = create(xmlsuite);
        xmlsuite.setParallel(XmlSuite.ParallelMode.TESTS);
        testng.setVerbose(2);
        testng.run();
    }

    private static XmlSuite createXmlSuite(String name) {
        XmlSuite result = new XmlSuite();
        result.setName(name);
        return result;
    }

    private static XmlTest createXmlTest(XmlSuite suite, String name, Class<?>... classes) {
        XmlTest result = new XmlTest(suite);
        result.setName(name);
        int index = 0;
        for (Class<?> c : classes) {
            XmlClass xc = new XmlClass(c.getName(), index++, true /* load classes */);
            result.getXmlClasses().add(xc);
        }
        return result;
    }
    private static TestNG create(XmlSuite... suites) {
        TestNG result = create();
        result.setXmlSuites(Arrays.asList(suites));
        return result;
    }

    private static TestNG create() {
        TestNG result = new TestNG();
        result.setUseDefaultListeners(false);
        result.setVerbose(0);
        return result;
    }
}

The output is as below
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="my_suite">
  <test thread-count="5" name="my_test1">
    <parameter name="age" value="10"/>
    <classes>
      <class name="com.rationaleemotions.github.issue1758.SampleTest"/>
    </classes>
  </test> <!-- my_test1 -->
  <test thread-count="5" name="my_test2">
    <parameter name="age" value="20"/>
    <classes>
      <class name="com.rationaleemotions.github.issue1758.SampleTest"/>
    </classes>
  </test> <!-- my_test2 -->
</suite> <!-- my_suite -->

Age is [20] on thread [16]
Age is [20] on thread [13]
Age is [10] on thread [14]
Age is [10] on thread [15]

===============================================
my_suite
Total tests run: 4, Failures: 0, Skips: 0
===============================================

===============================================
Default Suite
Total tests run: 1, Failures: 0, Skips: 0
===============================================

Process finished with exit code 0

The problem I see in your code is that you are creating a web driver object in a @BeforeTest method (which gets executed once per <test> tag) and then trying to have your methods share the object. So multiple invocations of @Test method are going to be running on the same browser instance, which is incorrect.
Closing this issue as Not a bug
Please feel free to provide a pure TestNG sample (similar to the one that I shared), if you are still seeing this as a problem.


Updating issues

Description

When I want to update prezto, I am presented with conflicts. I know this is because I made all the changes in $ZPREZTODIR itself.
How can I fix this, so that I can keep my own config alongside an updated prezto?
Expected behavior

Actual behavior

Steps to Reproduce

[First Step]
[Second Step]
[and so on...]

Versions

Prezto commit: 282b478
ZSH version: 5.5.1
OS information: Fedora 28

Possible duplicate of #1535

Not sure if this is possible since you are applying changes to the framework itself (thats how version control works, no? I mean you are mainting more or less your own fork).
However, If you are just modyfing configuration files e.g. .zshrc you can create a copy of the original one instead of symlinking it and afterwards you can make as many changes as you want without facing any conflicts. You might need to be careful in case the any of the runcom files changed, which actually is not happening that often (I think)
If anyone has better ideas, please let me know (;


rust_analyzer panicks with "Bad range"

Description
Seems like extending a source file beyond its original length causes rust_analyzer to panic when trying to get completion
Neovim version
NVIM v0.6.0-dev+557-g5ce35abae
Build type: RelWithDebInfo
LuaJIT 2.0.5
Compilation: /usr/bin/cc -U_FORTIFY_SOURCE -march=native -mtune=native -O2 -pipe -fcommon -U_FORTIFY_SOURCE -fno-semantic-interposition -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/build/neovim-git/src/build/config -I/build/neovim-git/src/neovim-git/src -I/usr/include -I/build/neovim-git/src/build/src/nvim/auto -I/build/neovim-git/src/build/include
Compiled by builduser

Features: +acl +iconv +tui
See ":help feature-compile"

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

Run :checkhealth for more info

Nvim-lspconfig version
6224c54a9945a52bf43a8bc1a42a112084590c0b
Affected language servers
rust_analyzer
Steps to reproduce

Create a rust file
Add content to it
Attempt completion at a position beyond its original length

Actual behavior
rust_analyzer panics.
Comparing the behavior a minimal config had and my config had, for some reason when using my config, no didChange notification is sent to the server.
Expected behavior
No response
Minimal config
I was unable to reproduce this on a minimal config.
Health check
lspconfig: require("lspconfig.health").check()

INFO: ccls: configuration checked.
INFO: rust_analyzer: configuration checked.

LSP log
https://gist.github.com/yshui/02b430e836889182d01529e3c9ea1b83

Is this actually a bug in vim.lsp?

Apparently syntax enable is the culprit, even though it appears to be doing nothing nowadays.

Definitely not a bug in lspconfig, transferring.


Crypto changes

Changed the UUID generation to use the Node native crypto module. This is in response to Alex Allain's concern that the uuid module is not cryptographically strong.

I have also made this change in cares-reporter but not pushed it to GitHub.


Fix example links on front page

Describe the bug
Some of the example links on the front page don't work.
To Reproduce
Steps to reproduce the behavior:

Go to front page
Click on one of the following links

NM_001267039.1(LARP7)>c.855dup
arr[GRCh37] 7q11(72,650,120_74,154,209)x1 resolves as DUP

See that they don't properly resolve

Expected behavior
The variants should be projected properly.
Screenshots
N/A
Additional context

Also check all variants from the tutorial

NM_001267039.1(LARP7)>c.855dup should actually be NM_001267039.1(LARP7):c.855dup

The bug with handling ISCN is done in #351


Add GitHub Workflow for multi-arch container image build

Migrate from Drone server to GitHub Actions Workflows for container image builds
Use self-hosted internal GitHub runners for ARM64, which is neccessary for speed but means we can't run untrusted code. For security, only trigger workflows on push events so that only those with write have permission to run code on the internal runners (PRs will not run builds)
Shift from internal Drone to public visible GitHub Actions which means logs will be visible and we need to be careful not to leak tokens

Followup to #163, the default self-hosted runner group can be configured to permit public repos. Importantly, all outside contributor changes require approval to run.


More errors

Describe your problem here.
See

Are you modding a build from source or with Lua?
Source
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No.

okay

You gonna have to close this issue if yo thing is fixed


feat(app): use fingerprintjs open-source

:tada: This PR is included in version 2.86.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Inject values on registration

hello i am just starting trying to implement pow and its slick, but i am unable to express in my elixir knowledge how to correctly use the before_process to inject a value into the conn and have it saved to the db, i get the conn updated to show the user object i desire but my injected values never save to the db.
the fields both work to save values if i input them in the form... just i have something i want to do autmoated wise reeal quick before i insert the record and i thought overwitint the conn is the way to do it, i tried a few ways to do this, is it possible or is there a more Elixir expressive way to update the record before inserting it?
This is my unsuccessful attempt, below:
 def before_process(Pow.Phoenix.RegistrationController, :create, conn, config) do
   IO.puts "beforeprocess"
   IO.inspect conn
   # ^ this conn here shows original form values
   %{params: %{"user" => user}} = conn
   with %{foo: foo, bar: bar} <- MyAppAssigner.find_user_unique(user) do
     conn = %{conn | body_params: %{conn.body_params | "user" => foo}}
     conn = %{conn | params: %{conn.params | "user" => foo}}
     IO.puts "i have modified conn"
     IO.inspect conn
     # ^ this conn shows desired user object in both params fields modified above, and then i return it?
     conn
   else
     e ->
       IO.inspect e
       conn
   end
 end

The controller callbacks (which uses before_process) are used in extensions, so you'll need to set this up as an extension.
There's a simpler approach could be to just use a plug:
defmodule MyAppWeb.Pow.InjectRegistrationPlug do
  @moduledoc """
  This plug injects attributes during user registration.

  ## Example

      plug MyAppWeb.InjectRegistrationPlug
  """

  def init(opts), do: opts

  def call(%{private: %{phoenix_controller: Pow.Phoenix.RegistrationController, phoenix_action: :new}} = conn, _opts) do
    case MyAppAssigner.find_user_unique(conn.params["user"]) do
      %{foo: foo, bar: bar} -> %{conn | params: %{conn.params | "user" => foo}}
      _else -> conn
    end
  end
end

Alternatively you could handle this in the context module:
defmodule MyApp.Users do
  use Pow.Ecto.Context,
    repo: MyApp.Repo,
    user: MyApp.Users.User

  def create(params) do
    params
    |> unique_user_params()
    |> pow_create(params)
  end

  defp unique_user_params(params) do
    case MyAppAssigner.find_user_unique(params) do
      %{foo: foo, bar: bar} -> foo
      nil -> params
    end
  end
end

In this case you need to update the config with users_context: MyApp.Users for it to pick up the custom context.

Thanks so very much for the elegant Elixir here on this issue, and most especially in this module!


feat: add global phpmyadmin install command, fixes #6342

The Issue

#6342

Adds a global phpmyadmin command that asks the user if they want to install the phpmyadmin addon.
How This PR Solves The Issue
If the user answers yes then the ddev get ddev/ddev-phpmyadmin command is run.
Since this is global once the addon is installed it will override the phpmyadmin command.
Manual Testing Instructions
Configure a new directory for ddev ddev config
Run ddev phpmyadmin
You should be asked if you want to install the addon
If you answer no running ddev phpmyadmin will ask if you want to install again
If you answer yes you should receive a success message and a subsequent ddev phpmyadmin will launch phpmyadmin
Automated Testing Overview
No tests added
Release/Deployment Notes
Adds global phpmyadmin command.

Sorry, we're probably going to close it in favor of #6353.
But it's really impressive PR that got us to explore this area.
@nlighteneddesign, I'll give you commit credit in #6353 because I used your idea there.

Commit credit is given in c6581b0 (#6353)
Closing this PR.

This is a good thing to go in:

https://github.com/ddev/ddev/pull/6353#issuecomment-2210811014

Even if we decide not to add the same script for other add-ons in the future, this is the most popular add-on and deserves to be automatically installed.

I agree, this solves a classic problem that any number of people have asked about since PhpMyAdmin was removed from core DDEV.

The one "interesting" bit of behavior here is that the global phpmyadmin command gets overridden by the project phpmyadmin command that gets installed by the add-on. It should work fine.

Thanks so much @nlighteneddesign ! Great idea, great implementation.


Edit docs for fig extension and typo

Indeed LaTeX does not need the extension if using the graphics package (https://docs.aspose.com/tex/net/latex-graphics/), but since showyourwork does, I think it is worth mentioning in the documentation.

Thanks!


SEO improvements

Correction of image and link titles
Correction of titles (only one H1 tag per page)

Is it necessary to include a 'title' attribute in all elements, Can you provide any documentation regarding the importance of using the 'title' attribute?

I found a reference to the title attribute in this blog post from Google Developers, where they mention that the title attribute provides additional information about the element it's configured in. Similarly, on websites of SEO professionals or marketing agencies, they indicate that title attributes within elements aid accessibility. This is because screen readers that some users utilize rely on these attributes to provide a better user experience.
Although the title attribute doesn't directly impact SEO, I believe that the same importance should also be given to accessibility.


Noexcept sepcifiacation on unary operators in ArrayOps

Going to make noexcept more precise on the free functions while I'm at it.

done in #10


Audio not working on KASUMI Acer Chromebook 311 (C721)

Describe the bug
I am currently running the newest version of Linux Mint Debian Edition (LMDE) and I have tried using every kernel I can get my hands on and I have also tried almost every distro of Linux and yet I still can't get audio working. if its not a bug and I'm just doing something wrong it would be greatly appreciated if you could help me out. Thank you in advance.
Device Name
Acer Chromebook 311 (C721)
Boardname
KASUMI
Logs
debug-logs-Kasumi-2024-09-06_19h41m.tar.gz

KASUMI is a StoneyRidge device, which we no longer bother to support really. It's a cursed platform with zero performance, which requires kernel build in specific way to get it working, and upstream introduced regressions to Designware's I2S while adding patches for RISC-V in kernel 6.8.
HDMI will work as it's HDA, but getting internal audio to work on Stoney is more trouble than it worth, and it will break sooner or later.


Completion proposal - move selection while scrolling with "page down"

I know that this part is up for refactoring, but i just wanted to suggest a small enhancement.
When scrolling with "page down" through the list, the selection should be "moved" forward aswell. This would fix the issue that after scrolling, the focus stayed at the top and you cannot use the "down arrow" key for navigation after the "page down" scrolling.

Fixed.


Crash with "Enable All log categories per instance"

When I run a co-simulation with Matlab-based source-code FMUs, the COE Server crashes (see attached logs).
Log&json Files.zip
Nachtrag: Sorry, einen wichtigen Hinweis habe ich vergessen. Das Problem tritt auf sobald die Option "Enable All log categories per instance" aktiviert wird.

Just to be certain, can you confirm that this exact same configuration runs with reduced logging?

Hi Luis,
yes I can switch between working/error by changing this one tick.
Best regards
Gerd
Von:    Luis Diogo Couto<EMAIL_ADDRESS>An:     into-cps/intocps-ui<EMAIL_ADDRESS>Kopie:  gmeisl-twt<EMAIL_ADDRESS>Author
<EMAIL_ADDRESS>Datum:  30.01.2017 10:58
Betreff:        Re: [into-cps/intocps-ui] Crash with "Enable All log
categories per instance" (#202)
Just to be certain, can you confirm that this exact same configuration
runs with reduced logging?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Thanks. Can you share these FMUs within INTO-CPS?

Unfortunately the FMUs contain the source code which I am not allowed to
share.
There may be ways to circumvent this problem but only with some effort. Do
you think the available error messages may be sufficient to solve the
problem? I can also offer you to do further tests or a screen-sharing
session, it this would help.
If you really need the FMUs I have to talk to my boss and discuss whether
we can make this possible.
Cheers
Gerd
Von:    Luis Diogo Couto<EMAIL_ADDRESS>An:     into-cps/intocps-ui<EMAIL_ADDRESS>Kopie:  gmeisl-twt<EMAIL_ADDRESS>Author
<EMAIL_ADDRESS>Datum:  30.01.2017 17:00
Betreff:        Re: [into-cps/intocps-ui] Crash with "Enable All log
categories per instance" (#202)
Thanks. Can you share these FMUs within INTO-CPS?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Yeah I'm familiar with those difficulties, from our own FMUs.
@lausdahl , can you take a look at these logs and see if they are enough for you to debug it?

Hi please check the implementation of the FMU. The crash is happening inside the FMU so the COE is most likely unable to do anything about this:
Stack: [0x000000001ee70000,0x000000001ef70000],  sp=0x000000001ef6e2b8,  free space=1016k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [msvcrt.dll+0x15888]
C  [OLEAUT32.dll+0x7f88]
C  [OLEAUT32.dll+0x8dba]
C  [OLEAUT32.dll+0x8d7d]
C  [ArtSimFMU.dll+0x213c2]
C  [ArtSimFMU.dll+0x20885]
C  [ArtSimFMU.dll+0x23380]
C  [ArtSimFMU.dll+0x36cbb]   <--- this must be fmi2SetDebugLogging(...)
C  [fmuapi.dll+0x15ef]
C  0x0000000002a37f74

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.intocps.fmi.jnifmuapi.NativeFmuComponent.nSetDebugLogging(JJZ[Ljava/lang/String;)B+0
j  org.intocps.fmi.jnifmuapi.FmuComponent.setDebugLogging(Z[Ljava/lang/String;)Lorg/intocps/fmi/Fmi2Status;+15

I would suggest to re-compile the FMU with debugging symbols and log what is send received in:
 fmi2Status fmi2SetDebugLogging(fmi2Component c, fmi2Boolean loggingOn, size_t nCategories,
		const fmi2String categories[])

After a hint by Kenneth we found an error in our FMU.
So there only remains the question whether the error message can be adapted, so that it becomes apparent when a COE-crash is caused by an erroneous FMU?
Thanks
Gerd

Not sure. @lausdahl , is this feasible?

We cannot do much since it crashes in C destroying the complete program so we have no way to report anything.

Alright, thanks. Closing this.
Still a good limitation of FMI to have captured.


C# Implementation of Add Method In External Editor for VS.

After reviewing the source code for a while, I couldn't figure out the appropriate place to put the method. Therefore, I ended up creating a new class to store it.

Should this changes fix #41283 issue? At least for VS?

The solutions I have tried are as follows:
In the GodotSharpEditor.cs file, I cannot access the EditorNode (EditorNode::get_singleton() in C++), so I cannot connect to the script_add_function_request signal. Unless the EditorNode is exposed for C# usage, it is not possible to write the method in the GodotSharpEditor.cs file.
In the csharp_script, adding the new method only works when placed in the CSharpLanguage class. It is not suitable for the CSharpScript and other classes. I added _bind_methods to the CSharpLanguage class and bound the script_add_function_request signal in the _editor_init_callback. Although it compiles successfully, it crashes upon execution (it is speculated that CSharpLanguage does not execute _bind_methods).
In the end, I had to create a new class to implement it. Initially, I tried adding add_editor_plugin at the end of the _editor_init_callback in the CSharpLanguage class, but it resulted in an error during the usage of the new method (I don't remember the specific error, but it was related to parent-child relationships). Therefore, I moved it to "register_types.cpp".


Domain activation is Failed - [BRIEF DESCRIPTION]

App Id: d209ya47bk8zsw
Region: us-east-2
Step: Domain activation
Status: Failed
Issue/question
On Amplify it writes - Error message: One or more of the CNAMEs you provided are already associated with a different resource.
Error message
Error message: One or more of the CNAMEs you provided are already associated with a different resource.

thanks @nimacks  it's fixed.


[Secure Channel] Implement Client Counter Validation for the Check-In Protocol

Description
Implement the counter validation function from the Check-In Protocol specification
Section <IP_ADDRESS> Client Counter Validation

dup with https://github.com/project-chip/connectedhomeip/issues/28232


[SPARK-18417][YARN] Define 'spark.yarn.am.port' in yarn config object

What changes were proposed in this pull request?
This PR is to define 'spark.yarn.am.port' in yarn config.scala just like other Yarn configurations. That makes code easier to maintain.
How was this patch tested?
Build passed & tested some Yarn unit tests.

Can one of the admins verify this patch?

Jenkins test this please

Test build #68560 has started for PR 15858 at commit df33e14.

Test build #68560 has finished for PR 15858 at commit df33e14.

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

Merged build finished. Test PASSed.

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

@srowen Thanks for the review.

Merging to master. But in general, please try to avoid small changes like this that don't really change any behavior.


Kubeflow on GCP - 1.3 release tracker

Created release project in https://github.com/kubeflow/gcp-blueprints/projects/2.
Use this as a root tracker for logs and discussions.
Reference:

KFP in KF 1.3 release project https://github.com/kubeflow/pipelines/projects/12

I think a major question to discuss: do we support in-place upgrade for this release?
A few changes I think we must do are really hard to support in-place upgrade:

https://github.com/kubeflow/gcp-blueprints/issues/144 ASM (managed Istio) upgrade only support in-place upgrade per minor version, but this time, we will go from 1.4 to 1.8.
https://github.com/kubeflow/pipelines/issues/4356 means we need to switch default option for underlying storage. There's DB migration needed.

TODOs:

[ ] Upgrade Config Connector in https://github.com/kubeflow/gcp-blueprints/tree/master/packages/management


Index -1 out of bounds for length 95

Describe the bug
Attempting to open a drcov log fails with the following exception. The "Select a Coverage Module" dialog box does not appear.
Index -1 out of bounds for length 95
java.lang.AssertionError: Index -1 out of bounds for length 95
	at cartographer.CoverageFile.<init>(CoverageFile.java:137)
	at cartographer.CartographerPlugin$2.lambda$actionPerformed$0(CartographerPlugin.java:296)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at cartographer.CartographerPlugin$2.actionPerformed(CartographerPlugin.java:291)
	at docking.DockingActionProxy.actionPerformed(DockingActionProxy.java:47)
	at docking.MenuBarMenuHandler.lambda$processMenuAction$0(MenuBarMenuHandler.java:64)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

---------------------------------------------------
Build Date: 2023-Jul-11 1640 EDT
Ghidra Version: 10.3.2
Java Home: E:\jdk-19
JVM Version: Oracle Corporation 19.0.1
OS: Windows 10 10.0 amd64
Workstation:

To Reproduce
I'll be using Minetest as an example here because it's the first FOSS program I found which can produce this exception.

Run drcov on minetest.exe. Whether you launch it through drcov or attach it to a running process doesn't make a difference.
Attempt to load the coverage log at Tools > Code Coverage > Load Code Coverage File(s).
The error message seen above appears.

Expected behavior
The plugin loads the coverage log.

@sk-zk try to dump_binary instead of dump_text with drrun -t drcov and tell me if it works for you now ? :)

dump_binary is the default so it was already enabled.


feat: Show size increase info in export dialog

Fixes #2236

@lipis maybe I've fixed that.

@lipis maybe I've fixed that.

@Kartik1397  Can you update the snapshots? npm run test:update

@Kartik1397  Can you update the snapshots? npm run test:update


Support generic WAL messages

I added support for this to jsoncdc, however, that logical decoding plugin isn't seeing active development and wasn't available on any of the hosted/managed options. I'll likely be able to implement this with pg_output and pgwire.


Could not find usages even if there is

I use this to refactor my python but

I have usages (as you can see). Any help?

Same here.


No default value for property setters in YAIL

When we generate YAIL for property setter blocks (including generics), we do not provide default values. This results in an error about incorrect number of arguments to set-and-coerce-property!. We should adjust the generator to provide a reasonable default to prevent this error from occurring.
See also #887, which this error triggered.

See issues #394 and #395.


fix(i18n): fix that unable to delete page with SINGLE_FILE i18n structure

fixes that getFilePaths returns same path twice when i18n structure is SINGLE_FILE
Checklist

[x] I have read the contribution guidelines.
[ ] Code is formatted via running yarn format.
[ ] Tests are passing via running yarn test.
[ ] The status checks are successful (continuous integration). Those can be seen below.

A picture of a cute animal (not mandatory but encouraged)

Request Payload:

Response:

Error is because of delete action on same file is added twice.
I checked, passing just one action works fine.


Issue 1118

This fixes issue 1118

I don't know what happened but more changes are here than just the one.  Closing the pull request and will resubmit.


Disable the browser-tests in Google Chrome on the bots

Given that browsertest repeatedly timeout in Google Chrome, and considering that Firefox is the primary development target, we stop running them on the bots to avoid having to repeatedly deal with this.
Note that we already disabled these tests on Windows almost three years ago, because of stability issues; see PR #14392.

Given that browsertest repeatedly timeout in Google Chrome, and considering that Firefox is the primary development target,

While Firefox is the primary development target, PDF.js is a cross-browser library so it would be nice to have broader test coverage.

we stop running them on the bots to avoid having to repeatedly deal with this.

I'd like to understand why the tests time out and see if we/I can fix that instead of disabling test coverage altogether. Do you have a list of recent failures that I can investigate? Is there a way to reproduce the issue locally?

Is the Puppeteer PR at https://github.com/mozilla/pdf.js/pull/19115 the primary motivation for this change, or are there more instances?
The failures in the Puppeteer PR look like reftest failures, not very surprising when browser versions are bumped. I don't see test timeouts in the reftests.
I see a timeout in an integration test in Chrome.  I haven't looked at the test itself, but wonder whether this is an issue with the test case, the test driver, or the browser.
If it is just that single test failing in a specific browser with no time to investigate/fix, then I'd prefer skipping that single test instead of disabling everything altogether.
I don't spend as much time on PDF.js development as you all, so I won't push back too hard if the tests are more harmful than helpful for your experience. However I do want to make sure that this is indeed a fundamental issue that needs addressing, instead of an incidental case.
In the event that you want to disable it, I'd like to not disable the ability to run browser tests altogether, but to disable it by default with a way to opt in. So that "botio test" defaults to what you'd like and that "botio-chrome" or something can be used to debug the issue, with the goal of getting the tests back to a reliable state.
Diversity in test environments slows down development when there are inexplicable intermittent test failures, but can also be valuable in serving as an independent verification that the logic is as desired. Disabling all tests in Chrome increases the risk of ending up with a library that is unreliable in all but one browser.

Is the Puppeteer PR at #19115 the primary motivation for this change, or are there more instances?

browsertest has been failing intermittently in Chrome for a while now, and it's really quite annoying.

The failures in the Puppeteer PR look like reftest failures, not very surprising when browser versions are bumped. I don't see test timeouts in the reftests.

The browsertest-portion of the logs contain the following line, which show that Chrome does timeout:
TEST-UNEXPECTED-FAIL | test failed chrome has not responded in 120s

Also, the errors: 111 line in https://github.com/mozilla/pdf.js/pull/19115#issuecomment-2504200163 indicates the number of tests that failed to run in that case.

If it is just that single test failing in a specific browser with no time to investigate/fix, then I'd prefer skipping that single test instead of disabling everything altogether.

We've already tried doing that once, and having to keep disabling tests "randomly" in Chrome really isn't a feasible solution.

In the event that you want to disable it, I'd like to not disable the ability to run browser tests altogether, but to disable it by default with a way to opt in. So that "botio test" defaults to what you'd like and that "botio-chrome" or something can be used to debug the issue, with the goal of getting the tests back to a reliable state.

They can still be run just fine locally, since these changes only affect the bots.
Besides, it's trivial to comment out the forceNoChrome = true; lines in a future PR that tries to debug/fix the tests in Chrome; hence I don't see the point in adding a new test command that (most likely) won't even be used.

Is the Puppeteer PR at #19115 the primary motivation for this change, or are there more instances?

browsertest has been failing intermittently in Chrome for a while now, and it's really quite annoying.

Can you describe in more detail the kind of failures? Reftests, integration tests, or both? I'd like to investigate and improve the situation, but haven't followed the bot tests test closely to tell what common pain points are.

The failures in the Puppeteer PR look like reftest failures, not very surprising when browser versions are bumped. I don't see test timeouts in the reftests.

The browsertest-portion of the logs contain the following line, which show that Chrome does timeout:
TEST-UNEXPECTED-FAIL | test failed chrome has not responded in 120s

@calixteman ran the tests again and the test times out again. Looks pretty consistent. Was this 100% failure rate (n=2) already that consistent before?
The failures being consistent would make it easier to debug & fix.

In the event that you want to disable it, I'd like to not disable the ability to run browser tests altogether, but to disable it by default with a way to opt in. So that "botio test" defaults to what you'd like and that "botio-chrome" or something can be used to debug the issue, with the goal of getting the tests back to a reliable state.

They can still be run just fine locally, since these changes only affect the bots.
Besides, it's trivial to comment out the forceNoChrome = true; lines in a future PR that tries to debug/fix the tests in Chrome; hence I don't see the point in adding a new test command that (most likely) won't even be used.

My local machine differs from the bot environment. Tests passing on my local machine doesn't mean as much as tests passing on the bots. With my intent to improve the reliability of tests on the bots, I need a way to run tests on exactly the same environment.

Can you describe in more detail the kind of failures? Reftests, integration tests, or both?

gulp browsertest === reftests, which as already mentioned has been having timeout issues on the Linux bot for awhile.
We recently had to disable one test in PR #19024, however having to do that repeatably is an untenable situation that waste both human and machine time.

The last ran test with Chrome is multiline_compress which means that issue16300 is the one which timed out.
I really don't think that the issue is directly related to this specific test (i.e. issue16300), so likely Chrome (or the OS) is in a bad state.
I really see some value to have the integration tests with Firefox and Chrome: sometimes we've some Chrome specific bugs because the scheduling is slightly different.
But for reference tests, it's different. Usually when a patch induces a drawing regression, we see a test regression with both Chrome and Firefox. As far as I can tell, I never saw a reftest regression in Chrome but not in Firefox.

I think I agree with Calixte here. It would certainly be better to keep running Chrome too, but on the other hand the number of issues did increase lately (another example is #19032) and I also don't really recall having seen reference test failures in Chrome that weren't also visible in Firefox, so in that sense I doubt we'll lose much if any test coverage if we disable Chrome for the reference tests only. I do indeed think that we should keep running Chrome for the integration tests because that has already been of value multiple times.
How about we do the following?

Merge this patch first to stabilize the bots (this could help avoid missing actual issues because we have seen before that if there is a lot of noise in the test results that it's easy to miss new failures).
Create an issue tracking re-enabling Chrome, and do that in a separate scope. What we can then do is for example create a separate PR that enables Chrome and run it a couple of times to get a better feeling for what fails, and perhaps that can give clues as to what's going on.

The advantage of this approach is that we can both investigate the situation with Chrome while in the meantime making sure that the failures are not in the way for new PRs. Would that be feasible?


Index out of range in updateAssetTelemetry in the ADTClient

https://github.com/digitaltwinconsortium/UA-CloudTwin/blob/420384cddc93a8c9e09c93015126bc431198ba31/Applications/ADTClient.cs#L264
When running locally the ADTClient gets an index out of range error on line 264. After inspecting the array, it seems that you have written the code for 1-based indexed arrays.
Are my assumption correct ? And if so, is there a particular reason for this ?
If not, is there anything wrong with the telemetryName that is passed into the function:
"opc.tcp://<IP_ADDRESS>:1111_11111111_somename;sensor-name;i=11111"

Thanks for reporting, that was a plain "off by 1" bug. I've just checked in a fix. :-)

Thanks for the quick reply. I see that you have changed the condition check, but I belive you need to change the indexing of the parts-array instead. At least in our case the first element is endpointUrl, second is DisplayName and the third element is the node id. For example: ["opc.tcp://<IP_ADDRESS>:1111_11111111_somename", "sensor-name", "i=11111"]. Thus to get the correct properties in the digital twin we needed to rewrite the code as following:
 if (parts.Length > 1)
  {
      updateTwinData.AppendReplace("/OPCUADisplayName", parts[1]);
  }

  if (parts.Length > 2)
  {
      updateTwinData.AppendReplace("/OPCUANodeId", parts[0] + parts[2]);
  }

OK, I see what the problem is. You are setting the name property in the metadata message to the EndpointUrl of your OPC UA server, while UA Cloud Twin expects OPCUAApplicationURI;OPCUANamespaceURI. The EndpointURL of an OPC UA server is not globally unique while the combination of OPCUAApplicationURI;OPCUANamespaceURI is. Please modify our OPC UA Publisher accordingly.
I've added a section in the readme explaining all this stuff. :-)

okay, then it makes sense. Thanks for clarifying this!

Closing as the issue was resolved.


Chore: Update Text in 'Open Source Programs' Page

Category

[ ] Documentation
[ ] Resource Addition
[x] Codebase
[ ] User Interface
[ ] Feature Request

Description

We need to change 'MLG Fellowships' to 'MLH Fellowship' in 'Open Source Programs' page.
For Assignee:

Ensure that you submit a PR for this issue within 1 day. Otherwise, you will be unassigned from this issue and it will be passed on to the next contributor who asked to be assigned to it.

Note: This issue is for JWoC 2024 participants. If you are not participating in this event, please refrain from asking to get assigned to this issue.

assign me under JWoC

I would love to work on this issue under JWOC'24. Please assign this issue to me

@Sriparno08 please assign this issue to me under JWOC'24


I built a WePay Gateway but no test yet

Hi, i built a WePay gateway and its working.
https://github.com/Collizo4sky/omnipay-wepay
But no unit test and CI set up just yet.
Am still new to unit testing, Ci and all that jazz. Any help will come in handy though am working hard to get this done.
cc @kayladnls

If you still need help, please send me an email with your skype contact so we can chat.

Sure @dercoder done.

I am online now @Collizo4sky

Joining you asap.                                                                                From: Alexander FedraSent: Monday, 28 September 2015 12:26 PMTo: thephpleague/omnipayReply To: thephpleague/omnipayCc: Agbonghama CollinsSubject: Re: [omnipay] I built a WePay Gateway but no test yet (#303)I am online now @Collizo4sky
—Reply to this email directly or view it on GitHub.

 If either of you need anything from me, don't hesitate to ping. You can reach me on twitter at @kayladnls

I have only one question. If the payment provider need some personal informations like first name, last name and email address. Should we use getCard()->getEmail() or should we create our own setters and getters for the purchase request?

@dercoder let me do the tagging of @kayladnls for you.
Very much interested in this 'cos that's the approach i took in my wepay gateway.
Once again, tihanks for your help via skype :+1:

I think we can close this Issue

Thanks @dercoder for your help.. closing this right away..


Clean up naming of Prisma Engine "Version" in code

Right now we refer to the "commit hash" thing we use to identify the Engines as "Prisma Engines Version" in our code. We should find a better name for that and clean that up everywhere, as this leaks into debug logging etc (besides being present in package.json) and is generally confusing.

:shrug:


When shutting down, get "Error when pushing block"

I think we need to wait for the p2p code to die before attempting to close() the database.  Otherwise stuff like this:
19405ms asio       main.cpp:163                  operator()           ] Caught ^C attempting to exit cleanly
419405ms th_a       main.cpp:171                  main                 ] Exiting from signal 2
419405ms th_a       thread.cpp:115                ~thread              ] calling quit() on ntp
419406ms th_a       thread.cpp:160                quit                 ] destroying boost thread<PHONE_NUMBER>76192
419406ms ntp        thread.cpp:246                exec                 ] thread canceled: 9 canceled_exception: Canceled
cancellation reason: [none given]
    {"reason":"[none given]"}
    ntp  thread_d.hpp:463 start_next_fiber
421110ms th_a       thread.cpp:95                 thread               ] name:ntp tid:139981059176192
421110ms th_a       application.cpp:388           handle_block         ] Got block #273571 with time 2015-09-28T18:07:00 from network with latency of 1110 ms from delegate-dev1.btsnow
421110ms th_a       db_block.cpp:134              _push_block          ] Switching to fork: 00042ca3dced4cf3b9115764e1d1d22fc3ee29f2
421111ms th_a       application.cpp:419           handle_block         ] Error when pushing block:
10 assert_exception: Assert Exception
second_branch_itr != _index.get<block_id>().end():
    {}
    th_a  fork_database.cpp:198 fetch_branch_from

    {"first":"00042ca3dced4cf3b9115764e1d1d22fc3ee29f2","second":"00042c986138fafe7aeeaaf0422feb5627915d51"}
    th_a  fork_database.cpp:229 fetch_branch_from

    {"new_block":{"previous":"00042ca209fc0b9622db900212d3dc3b96fba8e9","timestamp":"2015-09-28T18:07:00","witness":"1.6.1541","transaction_merkle_root":"0000000000000000000000000000000000000000","extensions":[],"witness_signature":"2064dd994d5c0f8f0f68250ec1eeccf170b5f1ddc482fa3afd2be48202c76b5a545ebfd4afb2b8ceeb7d80c237345eedd70030daa8f2ab6eb24c46c6e5864e5746","transactions":[]}}
    th_a  db_block.cpp:195 _push_block
421111ms th_a       application.cpp:388           handle_block         ] Got block #273571 with time 2015-09-28T18:07:00 from network with latency of 1111 ms from delegate-dev1.btsnow
421111ms th_a       fork_database.cpp:57          push_block           ] Pushing block to fork database that failed to link: 00042ca3dced4cf3b9115764e1d1d22fc3ee29f2, 273571
421111ms th_a       fork_database.cpp:58          push_block           ] Head: 273571, 00042ca3dced4cf3b9115764e1d1d22fc3ee29f2
421111ms th_a       application.cpp:416           handle_block         ] Error when pushing block:
3080000 unlinkable_block_exception: unlinkable block
block does not link to known chain
    {}
    th_a  fork_database.cpp:79 _push_block

    {"new_block":{"previous":"00042ca209fc0b9622db900212d3dc3b96fba8e9","timestamp":"2015-09-28T18:07:00","witness":"1.6.1541","transaction_merkle_root":"0000000000000000000000000000000000000000","extensions":[],"witness_signature":"2064dd994d5c0f8f0f68250ec1eeccf170b5f1ddc482fa3afd2be48202c76b5a545ebfd4afb2b8ceeb7d80c237345eedd70030daa8f2ab6eb24c46c6e5864e5746","transactions":[]}}
    th_a  db_block.cpp:195 _push_block
421131ms th_a       thread.cpp:115                ~thread              ] calling quit() on p2p
421131ms th_a       thread.cpp:160                quit                 ] destroying boost thread<PHONE_NUMBER>18560
421132ms p2p        thread.cpp:246                exec                 ] thread canceled: 9 canceled_exception: Canceled
cancellation reason: [none given]
    {"reason":"[none given]"}
    p2p  thread_d.hpp:463 start_next_fiber
421175ms ntp        ntp.cpp:177                   read_loop            ] ntp_delta_time updated to -1926 us

I think what's demonstrated in this trace is the network code alerted to a new block and tried to push it, after the block / fork database had already been rolled back in database::close().

Duplicate.


Onlyoffice fails to start on Nextcloud 13 Beta 1

Hey,
it looks like the Onlyoffice app is not yet supported by Nextcloud Beta 13.

I'm not sure what is causing the error but maybe it is easy to fix?
Best regards,
Jonas

In the generated source code of the page, the function OCA.Onlyoffice.OpenEditor doesn't seem to be available:
   <script nonce="bkRCUXZ5dGxUOXY2dWdMTDBhN0lCN0U2NkkvTWNYZzFFRDRRaHhveFNkaz06K2tSai9HVTBKYWpLNjBDUHFKMnNicHBJc0w3akNBbFpaUTlKeGtCZkFwZz0=" type="text/javascript">
        OCA.Onlyoffice.OpenEditor ({
            error: "Format do not supported",

            callbackUrl: "",
            key: "",
            title: "",
            url: "",
            userId: "",
            userName: "",
            documentType: "",
        });
    </script>

Since I didn't find any errors in php logging, I decided to do a git bisect and my finding looks quite interesting. Since this commit (https://github.com/nextcloud/server/commit/fb9f13d4c13d2ea3ba70095f36e73c8915fce47f) with the title Make page loading faster by deferred script loading, Onlyoffice app fails to load. I guess this should be a good hint :)

@onny
Thanks a lot, we will perform additional testing with NC, including beta 13

@ibnpetr Any ETA when this will be fixed?

I just ran into this problem. Here is how I fixed it:
cd into /nextcloud/apps/onlyoffice/templates mv editor.php editor.bak wget https://raw.githubusercontent.com/onny/onlyoffice-owncloud/e6286cb95a36909515b5d4ce4d6f24bc5c0bb320/templates/editor.php chown http:http editor.php #might differ for some!, see this commit here: https://github.com/ONLYOFFICE/onlyoffice-owncloud/pull/129/commits/e6286cb95a36909515b5d4ce4d6f24bc5c0bb320)
done!
Reload Nextcloud Beta 13 and enjoy
Oh, if you need to activate the OnlyOffice App in Nextcloud just
`cd nextcloud/apps/onlyoffice/appinfo
nano info.xml
change line13 to
`

Initialization moved


Streaming processing

I'm not an expert in image processing. However, I still wonder why doesn't lwip implement streaming processing paradigm since it will dramatically reduce the memory usage. Or is there any technical issue with this approach?

I totally agree with that. The possibility to work with streams would be a tremendous upgrade! Please think about that.

@tresdin
it will dramatically reduce the memory usage

Why?

@EyalAr Basically, instead of buffering the whole source into memory, data will be sliced into chunks of few KBs for being proccessed. This approach is widely used for uploading/downloading large files.

It may be true for sending files over the network, but in order to process an image you need the whole of it in memory.

If you just want it as a convenience API to pipe to/from stream consumers/producers, you can use the image buffer as a basis for a stream.
Something like this: http://stackoverflow.com/questions/16038705/how-to-wrap-a-buffer-as-a-stream2-readable-stream

@EyalAr After googling for stream image processing, I found that this idea is possible but it seems to be harder to implement than the traditional approach. Although it's a huge pain to redesign lwip processing paradigm, I still think this idea is worth to be considered.
Refferences
http://www.ece.neu.edu/groups/nucar/publications/SAMOS07.pdf
https://www.fer.unizg.hr/_download/repository/JosipKnezovic-Kvalifikacijski.pdf

I want to process an image uploaded with PUT, so I have the image as a req stream. I understand that streamed processing is not possible without a lot of work, I just want to know how I can convert the stream to a buffer to pass it to lwip. Maybe we could add an example to readme or make open also accept a stream for convenience?


Issue with SQLplus and Mac

dyld: Library not loaded: /ade/b/2649109290/oracle/sqlplus/lib/libsqlplus.dylib
  Referenced from: /oracle/instantclient_11_2/sqlplus
  Reason: image not found
sed: 1: "/Users/giffy/.atom/pack ...": extra characters at the end of g command
Script took longer than expected

This may be the solution: https://blog.caseylucas.com/2013/03/03/oracle-sqlplus-and-instant-client-on-mac-osx-without-dyld_library_path/

I was testing this on OS X 10.8. I installed Oracle by downloading

instant client basic
sqlplus
sdk

Unzipped all and placed them at /bin/oracle/instantclient_11_2
I put the following in ~/.bash_profile:
todo

..
And, didn't experience the library not loaded error.
The sed error is probably related to #20

Looks like DYLD_LIBRARY_PATH isn't making it into Atom. I saw this related issue on another project: https://github.com/JunoLab/atom-julia-client/issues/67 , specific to El Capitan.
There is another technique to update the linked library paths, but it requires a command called otool, which is only available if you have Xcode installed for usage. See: https://blog.caseylucas.com/2013/03/03/oracle-sqlplus-and-instant-client-on-mac-osx-without-dyld_library_path/

Reading this document: https://blogs.oracle.com/taylor22/entry/sqlplus_and_dyld_library_path, there is the suggestion of an alias. This works well in the terminal, but in Atom, it falls back to the raw command thus bringing back the error.
If you look at this document: http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html, part of the instructions are to create a lib folder in your home directory which a bunch of symlinks. That also seems to resolve the issue.
sudo ln -s /opt/Oracle/instantclient_11_2/libclntsh.dylib.11.1 /usr/lib/libclntsh.dylib.11.1
sudo ln -s /opt/Oracle/instantclient_11_2/libnnz11.dylib /usr/lib/libnnz11.dylib
sudo ln -s /opt/Oracle/instantclient_11_2/libociei.dylib ~/lib/libociei.dylib
#And, again for some SQL*Plus libs.
sudo ln -s /opt/Oracle/instantclient_11_2/libsqlplus.dylib ~/lib/libsqlplus.dylib
sudo ln -s /opt/Oracle/instantclient_11_2/libsqlplusic.dylib ~/lib/libsqlplusic.dylib

Note, I tried pointing to /usr/lib/* but seemed to get an operation not permitted message, even as sudo.

Another approach I could take is to add a setting for DYLD_LIBRARY_PATH, only visible on OS X, that would allow the user to set in directly in the configuration, and then add it to the environment.. process.env.DYLD_LIBRARY_OPATH=getSetting().


sampling_tdr.rst failing in CircleCI smoke-tutorials job

Failure from this log:
doc/source/tutorial/stats/sampling_srou.rst x                            [ 96%]
doc/source/tutorial/stats/sampling_tdr.rst F                             [100%]

=================================== FAILURES ===================================
__________________________ [doctest] sampling_tdr.rst __________________________
154     527
155     >>> dist2 = StandardNormal()
156     >>> # use the same stream of uniform random numbers
157     >>> rng2 = TransformedDensityRejection(dist2, max_squeeze_hat_ratio=0.999,
158     ...                                    random_state=urng2)
159     >>> dist2.callbacks  # evaluations during setup
160     467
161     >>> dist2.callbacks = 0  # don't consider evaluations during setup
162     >>> rvs = rng2.rvs(100000)
163     >>> dist2.callbacks  # evaluations during sampling
Expected:
    84
Got:
    57

/home/circleci/repo/doc/source/tutorial/stats/sampling_tdr.rst:163: DocTestFailure
=========================== short test summary info ============================
FAILED doc/source/tutorial/stats/sampling_tdr.rst::sampling_tdr.rst
=================== 1 failed, 25 passed, 6 xfailed in 28.12s ===================

This tutorial was the first one to be converted to MyST-md (although it is 7 weeks ago, in gh-20303), so perhaps the seeding for the test machinery doesn't work anymore? @melissawm you may be able to say more here?

at least recently, this failure was hidden by some smoke-docs failures (gh-21238), so it may have been failing silently for a little while

currently keeps failing in the main, e.g.,
https://app.circleci.com/pipelines/github/scipy/scipy/29000/workflows/00568108-1ab8-4942-88f2-c562e26c640e/jobs/97812

I had to double check, but indeed we did not touch this tutorial (yet?): https://github.com/scipy/scipy/commits/main/doc/source/tutorial/stats/sampling_tdr.rst
This is still an rst file. Perhaps this has been silently failing for a while, and the failure is not being flagged by a new config in smoke-tests?

These sampling_*.rst tutorials are problematic in more than one way, can just add the failing one to the xfail list at
https://github.com/scipy/scipy/blob/main/scipy/conftest.py#L413
unless someone is up to fixing the actual problems, that is :-).


Fix issue #19

Issue https://github.com/ShipEngine/shipengine-java/issues/19
Your response return Map<String, String+ArrayList>:

In src/main/java/com/shipengine/InternalClient.java
func checkResponseForErrors( )
you initiate a Map<String, ArrayList> to get that response:

then this ClassCastException's thrown (should be ShipengineException)
class java.lang.String cannot be cast to class java.util.ArrayList (java.lang.String and java.util.ArrayList are in module java.base of loader 'bootstrap')
I suggest using Object instead of ArrayList.
Work just fine for me.

Fixed in #24


I had to remove all the F() macros to get it to work.

Build tool used:

[x ] Arudino
[ ] Platformio (Visual Studio Code plugin)
[ ] Platformio CLI
[ ] Other

Board used (ESP32/ESP8266/Arudino):

[x ] ESP8266-based
[ ] ESP32-based

Other Libraries That are used:

In "Send_Text.ino" example I had to remove all the F() macros to get it to work.  Once I did that is sent the email just fine.
Those are the only changes I made to the example code other network and email requirements.
I am not sure it is a bug because I could have something in the IDE set wrong but for not it works.
Description of problem:
Share code snippet to reproduce the issue:
PASTE .cpp / .ino code here

//  session.time.ntp_server = F("pool.ntp.org,time.nist.gov");
  session.time.ntp_server = "pool.ntp.org,time.nist.gov";

Additional information and things you've tried:

I also had to do the same thing in Send_Attachment_File example.

This is the esp8266 core issue about flash string pointer which you may need to update the SDK too.
I will fix this on library side too.

Thanks for the response.  I think the F() macro works with the String class because I have used that in other programs.For now I have something that works.
Thanks for the library.
On Tuesday, January 25, 2022, 10:02:47 PM EST, Suwatchai K. @.***> wrote:
This is the esp8266 core issue about flash string pointer which you may need to update the SDK too.
I will fix this on library side too.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: @.***>


UI tests failing after adding react-markdown

Tests failing with below error
    Details:

    /home/runner/work/gitnoter/gitnoter/frontend/node_modules/react-markdown/index.js:6
    export {uriTransformer} from './lib/uri-transformer.js'
    ^^^^^^

    SyntaxError: Unexpected token 'export'

This is happening because react-markdown is using ESM which is not supported by jest.
https://github.com/remarkjs/react-markdown/issues/635
The easy solution would be to create the mocks for react markdown

Renamed setupTests.ts to setupTests.tsx
Updated tsconfig.json with path to setupTests.tsx

  "setupFilesAfterEnv": [
    "<rootDir>/src/setupTests.tsx"
  ]

Updated setupTests.tsx with mocks as bleow

import '@testing-library/jest-dom/extend-expect';
import React from "react";

jest.mock("react-markdown", () => (props: { children: React.ReactNode }) =>
  jest.fn(() => <>{props.children}</>),
);

jest.mock("remark-gfm", () =>
  jest.fn(() => {/* */ }),
);


Improve render performance

I'm running pixlet on a Raspberry Pi Zero as a makeshift self-hosted server for private apps. Execution of pixlet render currently takes ages on this admittedly slow hardware, so I started to investigate a bit. As part of this investigation, I discovered 2 possible improvements for render performance.
Improvement 1 (speedup for applets using the Image widget)
I started my investigations on the reddit_r_place community app. As-is, pixlet on the Raspberry Pi Zero takes about 37 seconds to render the applet:
$ time ./pixlet render ../community/apps/redditrplace/reddit_r_place.star
real	0m37.799s
user	0m34.017s
sys	0m2.081s

I used runtime/pprof for obtaining detailed runtime statistics. Immediately, it was apparent that something was strange with all these image.(*NRGBA).Opaque calls. In total, the CPU spent 20 seconds running that function!

Following the pixlet source code, I could see that the relevant portion in pixlet was in transformation.go, where the image specified by the starlark applet's Image element is passed to the gg library's DrawImage function.
https://github.com/tidbyt/pixlet/blob/ecae45a3e2a4e2c84ec3aeefa3cefa7b9623f8f2/render/animation/transformation.go#L238
This function in turn calls DrawImageAnchored, which uses golang.org/x/image/draw for the actual drawing:

Note that draw.Over is passed as the Op, which pixlet doesn't even need here. draw.Src would suffice, since we are drawing into an empty image anyway. This now gets interesting when we have a look at the implementation of the called function inside golang.org/x/image/draw:

We've found the source of these expensive image.(*NRGBA).Opaque calls, and they are not even needed by pixlet. If we had a way to specify the Op, we would actually prefer draw.Src here. For testing purposes, I changed go's local copy of github.com/fogleman/gg to always use draw.Src, and ran the initial test again:
time ./pixlet render ../community/apps/redditrplace/reddit_r_place.star

real	0m12.525s
user	0m10.279s
sys	0m1.676s

Quite some improvement, I would say! Now, the problem is: I don't know how this performance issue could sensibly be fixed. The cleanest way would probably be having the github.com/fogleman/gg library export a function that allows specifying the Op parameter, but it seems like that library has been abandoned (no new commits for a year).
Improvement 2 (speedup for deeply nested applet UIs)
Currently, the  Paint method of every widget creates a new image, which it returns to the caller, who will then just render that image into another image, ... until the root draws it into an image that has a background. I haven't thought that through (or implemented it), but shouldn't it be possible to pass the render context to every Paint method and have all draw operations on the same context? Given the bad performance of the gg.context.DrawImage function, IMHO it should be called as rarely as possible.
With improvement 1 from above implemented (the ugly way described above), the two gg.context.DrawImage calls per frame are clearly visible (1.3 seconds), and this is for an applet that is not nested at all.

I don't know whether performance is something you are concerned about for this implementation, but I still wanted to leave my notes here for others to find as well.
Other than that: I have to say the applet development experience for the Tidbyt platform is great (even if deployment of private applets is a pain ATM)!

Wow, thanks so much for the perf analysis @FD- ! We run the same Pixlet runtime in our backend to render all apps for Tidbyt, so we certainly care about performance 😅. To date, we've thrown CPU at the problem but we're quickly running up against the limits of that approach. For number one, let me fork the repo to the Tidbyt organization and we can make the changes there. For number two I'd need to spend a bit more time poking around but it certainly sounds logical.

I forked the repo here: https://github.com/tidbyt/gg. More then happy to review a PR or pitch in with your suggested changes.

Wow, I had no idea you were running this code on your backend! IMHO, your current implementation could be optimised a lot (easily 2-3x performance across applets).
I might have a look at implementing improvement 1. I also thought a little more about improvement 2, and here are a few points:

The widget interface needs these changes:

// PaintBounds Returns the bounds of the area that will actually be drawn to when Paint() is called
PaintBounds(bounds image.Rectangle, frameIdx int) image.Rectangle
Paint(dc *gg.Context, bounds image.Rectangle, frameIdx int)

PaintBounds is needed so we can calculate the dimensions of a widget before drawing it. In fact, the current implementation does a full render just to estimate sizes, which is very inefficient AFAICT.

We can push() the context before calling a child's Paint() function and pop() afterwards.

Every Paint() implementation should be responsible for centering its drawing area within the bounds passed as argument. Currently, this is done by the respective parent.

Is clipping really needed when painting children? Surely adds some cost as well.

It's worth noting that improvement 2 will render improvement 1 ineffective (because we're no longer drawing the starlark image into an empty context). Still, improvement 2 should offer a speedup for all applets, while improvement 1 only helps for applets that draw large images.

Alright, I implemented improvement 1 in https://github.com/tidbyt/gg/pull/1.

Looking at profiles from production, I know for a fact that improvement #2 would be pretty huge.

I have an implementation for improvement 2. Huge speedup indeed. Will iron out the last bugs and open a PR later today or tomorrow.

Alright, improvement 2 done and tested. See PR #355. I’m seeing 2-3x speedup on average.
Maybe send me a thank you Tidbyt when your server savings exceed the unit’s price :D


Restore Pre-1.8 Server Spawn Protection Behavior

As some may know, in 1.8 the server disables spawn point protection if the server has no known OPs. In my opinion, this is an incredibly stupid design decision and, as evidenced by looking at various forum posts, many server admins were under a false impression that spawn protection broke.
Put simply, you shouldn't HAVE to have an OP specified for spawn protection work. Its an easy change to DedicatedServer to remove the if check.
@SpongePowered/developers thoughts?

Seems very logical to me, from a safety standpoint you don't want the spawn protection to break if the ops.json file has any issues.

I agree with @Deamon5550 on this. It does seem like a silly change that sadly shouldn't have been made in the first place.

Perhaps add this as an optional module (or to an existing one), similar to the other ones we have already? That way Sponge can be as vanilla as possible, or add in these "logical" changes if wanted.

Config option and yes this should be added.

Agree with this, I don't know what they were thinking.. :+1:

Resolved by zml


fix: [UIE-8181] - DBaaS enable restricted beta users

Description 📝
Allow restricted DBaaS users to access beta
Changes  🔄
List any change relevant to the reviewer.

Allow a restricted user without access to /account but has access to DBaaS to access DBaaS
Call /types instead of /engines call in order to pass relative filter to check for V1 vs V2 access
Rename useIsDatabasesEnabled properties for consistency and understandability

Target release date 🗓
10/28/24
Preview 📷

Before
After

How to test 🧪
Prerequisites

Restricted user without /account access but has DBaaS access

Reproduction steps

Go to create page

Verification steps

Verify user has access to beta (2 node option)

As an Author I have considered 🤔
Check all that apply

[x] 👀 Doing a self review
[x] ❔ Our contribution guidelines
[x] 🤏 Splitting feature into small PRs
[x] ➕ Adding a changeset
[x] 🧪 Providing/Improving test coverage
[x] 🔐 Removing all sensitive information from the code and PR description
[x] 🚩 Using a feature flag to protect the release
[x] 👣 Providing comprehensive reproduction steps
[ ] 📑 Providing or updating our documentation
[ ] 🕛 Scheduling a pair reviewing session
[ ] 📱 Providing mobile support
[ ] ♿  Providing accessibility support

Merging, failed tests are not relevant to this PR.


The database of some product cannot be connected

ON the main product listing page, if you have more than 60 products, when you reload the page some of them randomly fails to connect.
Error message in the webui.
"Failed to connect to the database"

@dkrupp I think increasing the max_connections parameter will solve your problem in case of PSQL.