gtp4all and sql

can gpt4all connect to an sql database which is local or within a network ? if so how cause i have been trying almost 3 days i just cant figure it out.for example i am trying this [](https://python.langchain.com/en/latest/modules/models/llms/integrations/gpt4all.html) but with the sql function from here
using this script that i did with chatgpt `import sqlite3
from langchain.llms import GPT4All
Path to the GPT4All model
model_path = "C:/Users/AppData/Local/nomic.ai/GPT4All/ggml-gpt4all-l13b-snoozy.bin"
Path to the SQLite database
db_path = "C:/Users/gpt4allz/bin/db/Chinook.db"
Instantiate the model
model = GPT4All(model=model_path, n_ctx=512, n_threads=8)
Connect to the SQLite database
conn = sqlite3.connect(db_path)
Create a cursor
cur = conn.cursor()
Generate a SQL query using the model
query = model("What are the names of all the albums in the database?")
Execute the generated query
cur.execute(query)
Fetch all the rows
rows = cur.fetchall()
Print the rows
for row in rows:
print(row)
Close the connection
conn.close()
`and i just cant make it work.any ideas of making something like this? meaning get the local installation of gtp4all with a local sql to get it to answer back or make directly query to the db? anyone i need some help here !!!

the gpt4all-ui uses a local sqlite3 database that you can find in the folder databases.
The api has a database component integrated into it:
gpt4all_api/db.py
You can check that code to find out how I did it.
It is technically possible to connect to a remote database.

Technically, you can reimplement the db.py to connect to a remote database instead. Maybe if I have time I'll do it. My real problem is I have no time. And europ is not helping with their new Law that would literally oblige me to stop working on this tuff.
Fear and ignorance are the killers of the mind.

well i understand your point.me also are short on time and work in eu as well,not to worry but this is not the case i dont think you can do it so straight forward you need to tweak a lot of things to make it work,hope you get some time and look at it cause this is a must have for ai stuff.

If you want to connect GPT4All to a remote database, you will need to change the db_path variable to the path of the remote database. You will also need to change the query variable to a SQL query that can be executed against the remote database.
Once you have made these changes, you should be able to connect GPT4All to the remote database and execute SQL queries against it

If I want to analyze data  from CSV file or excel file then how can we do it using gpt4all please reply.

Suppose, let us assume, that there are 1 lakh rows and 5 columns. Then, select a representative sample from the whole dataset by reducing it to 1 thousand rows and 5 columns, and ask GPT to generate the piece of code to analyse the data.

If you want to connect GPT4All to a remote database, you will need to change the db_path variable to the path of the remote database. You will also need to change the query variable to a SQL query that can be executed against the remote database.
Once you have made these changes, you should be able to connect GPT4All to the remote database and execute SQL queries against it

can you please elaborate for a newbie

and i cant still do it......i needs a better mind that mine !

did you find a solution. if yes could you help me

Well no actually i did not do anything about it. but it sounds pretty
straight forward. try this
https://github.com/MG-Microsoft/ChatGPT-Tabular-Data
https://www.youtube.com/watch?v=1FeBkAccobY&t=481s
Στις Παρ 4 Αυγ 2023 στις 3:18 μ.μ., ο/η prateetimehtajain <
@.***> έγραψε:

and i cant still do it......i needs a better mind that mine !
did you find a solution. if yes could you help me
—
Reply to this email directly, view it on GitHub
https://github.com/ParisNeo/lollms-webui/issues/186#issuecomment-1665518208,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APZ62DUNUS2SAZBC3DFCZHTXTTR7TANCNFSM6AAAAAAYATPOLE
.
You are receiving this because you authored the thread.Message ID:
@.***>

--


编译错误

[07:25:44] [Firmware_Diy_Before] Done
[07:25:44] [Firmware_Diy_Main] Starting ...
[07:25:44] Entering directory: /home/runner/work/AutoBuild-Actions-BETA/AutoBuild-Actions-BETA/openwrt ...
[07:25:44] Checking out package [AutoBuild-Packages] to package/other ...
[07:25:45] Done
[07:25:45] [C] Copying /home/runner/work/AutoBuild-Actions-BETA/AutoBuild-Actions-BETA/CustomFiles/Depends/tools to /home/runner/work/AutoBuild-Actions-BETA/AutoBuild-Actions-BETA/openwrt/package/base-files/files/bin ...
[07:25:45] Done
[07:25:45] [C] Copying /home/runner/work/AutoBuild-Actions-BETA/AutoBuild-Actions-BETA/CustomFiles/Depends/profile to /home/runner/work/AutoBuild-Actions-BETA/AutoBuild-Actions-BETA/openwrt/package/base-files/files/etc ...
[07:25:45] Done
[07:25:45] [C] Copying /home/runner/work/AutoBuild-Actions-BETA/AutoBuild-Actions-BETA/CustomFiles/Depends/base-files-essential to /home/runner/work/AutoBuild-Actions-BETA/AutoBuild-Actions-BETA/openwrt/package/base-files/files/lib/upgrade/keep.d ...
[07:25:45] Done
[07:25:45] [C] Copying /home/runner/work/AutoBuild-Actions-BETA/AutoBuild-Actions-BETA/CustomFiles/Depends/banner to /home/runner/work/AutoBuild-Actions-BETA/AutoBuild-Actions-BETA/openwrt/package/base-files/files/etc ...
[07:25:45] Done
[07:25:45] [Firmware_Diy_Main] Done
[07:25:45] [Firmware_Diy_Other] Starting ...
[07:25:45] Entering directory: /home/runner/work/AutoBuild-Actions-BETA/AutoBuild-Actions-BETA/openwrt ...
[07:25:45] Found generic patch file: /home/runner/work/AutoBuild-Actions-BETA/AutoBuild-Actions-BETA/CustomFiles/Patches/01-improve_ssr-rule_log-generic.patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
|diff --git a/package/other/helloworld/luci-app-ssr-plus/root/usr/bin/ssr-rules b/luci-app-ssr-plus/root/usr/bin/ssr-rules
|index 4a85173..f1ead5e 100755
|--- a/package/other/helloworld/luci-app-ssr-plus/root/usr/bin/ssr-rules

+++ b/package/other/helloworld/luci-app-ssr-plus/root/usr/bin/ssr-rules

File to patch:

Skip this patch? [y]

Skipping patch.

2 out of 2 hunks ignored

Error: Process completed with exit code 1.

CustomFiles/Patches/01-improve_ssr-rule_log-generic.patch 这个文件删掉就好了


Label workflows with updator

Summary

I'd like to see an updator label we can see who updated a workflow.

Ref(creator): https://github.com/argoproj/argo-workflows/pull/3440

the label will be like this: workflow.WorkflowFullName + "/updator.resumed": "admin"

Use Cases

To audit who suspended/stopped/resumed/etc a workflow
Pseudo-approval process for Intermediate Parameter, with condition creator != updator.

Message from the maintainers:
Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.

@toyamagu-2021 is this done?

Not done. #11763 implements insert some information in Node, but not label.


Select statement aggregate validation is too strict

version: <IP_ADDRESS>
rpm: https://s3.amazonaws.com/influxdb/influxdb_<IP_ADDRESS>_amd64.deb
system: amazon linux 3.14.35-28.38.amzn1.x86_64
Running query:
select sum(value1), sum(value2)/10 from time_series group by time(10s), host

results in response:
ERR: error parsing query: mixing aggregate and non-aggregate queries is not supported

even though there are only aggregates in the query. To me it seems that counting of aggregates in influxql/ast.go validateAggregates function is too strict to expect that all aggregates are if type Call as they can also be of type Expr in some cases.
This can be easily reproduced by adding following query to cmd/influxd/run/server_test.go TestServer_Query_Tags function:
&Query{
	name:    "group by tag with aggregate function",
	command: `SELECT sum(value), sum(value)/10 FROM db0.rp0.cpu GROUP by host`,
	exp:     fmt.Sprintf(`{"results":[{"series":[{"name":"cpu","tags":{"host":"server01"},"columns":["time","value"],"values":[["%s",100]]},{"name":"cpu","tags":{"host":"server02"},"columns":["time","value"],"values":[["%s",50]]}]}]}`, now.Format(time.RFC3339Nano), now.Add(1).Format(time.RFC3339Nano)),
},

I also get the same issue when dividing two sums - e.g.
SELECT sum(thruput), sum(http400s), sum(totalms) / sum(thruput) FROM ...
The original term of my query was '0.001 * sum(totalms) / sum(thruput)'. This worked fine with the previous 0.9 version (built from source on 4th Aug 2015).

This seems to be fixed in the upcoming 0.11.
> create database  mydb
> use mydb
Using database mydb
> insert cpu value=2
> select sum(value)/10 from cpu
name: cpu
---------
time    sum
0       0.2

Please reopen if this is still an issue. Thanks.


Buffering after updating AdPlaybackState with ad data

Version
ExoPlayer 2.16.1
More version details
Our repo forked from the version above
Devices that reproduce the issue
Multiple devices
Emulator Medium Phone API 33
Read device Tablet Android 11
Many user devices
Devices that do not reproduce the issue
N/A
Reproducible in the demo app?
No
Reproduction steps
Summary
We are implementing AdsLoader that will provide our ad data to the player
Our ad data is not known from the beginning, so we initialize AdPlaybackState with empty ad groups.
During content playback we obtain the actual ad data and update the ad group with it before it is reached.
After we update the new AdPlaybackState with the actual ad data (time + media uri) we observe the player starts buffering. How can we avoid this buffering?
Details
As ad breaks are not know on initialization so we allocate empty ad groups like this:
val midrollPlaceholders = LongArray(adBreakCount) { Long.MAX_VALUE }
adPlaybackState = AdPlaybackState(adsId, *midrollPlaceholders)

Marking all uninitialized ad groups as skipped
adPlaybackState.withSkippedAdGroup(adGroupIndex)

If the uninitialized ad groups are not marked as skipped, the playback gets stuck.
Later we resolve the ad break data and update upcoming ad group in some time ahead (e.g. one minute):
adPlaybackState.withAdGroupTimeUs(adGroupIndex, adGroupStartTime)
adPlaybackState.withAdCount(adGroupIndex, adCount)
adPlaybackState.withAdUri(adGroupIndex, adIndexInAdGroup, uri)

And updating the adPlaybackState to player:
AdsLoader.EventListener.onAdPlaybackState(adPlaybackState)

After this, we are observing ~1 sec buffering in the player
Player.Listener fun onPlaybackStateChanged(playbackState: Int) // STATE_BUFFERING
when the buffering is done (STATE_READY), content playing continues and the ad group plays once reached
What can we do to avoid this buffering when updating the ad group?
It looks like the player is buffering the content rather than the new ad group,
but there is no change expected in the content playback data.
Expected result
There should be no additional buffering of the content when AdPlaybackState is updated
The updated ad group is few minutes ahead, so it should have no impact on current content playback.
Actual result
After this, we are observing ~1 sec buffering in the player
What can we do to avoid this buffering when updating the ad group?
It looks like the player is buffering the content rather than the new ad group,
but there is no change expected in the content playback data.
Media
The bug was reproducible with any media. E.g.
https://devstreaming-cdn.apple.com/videos/streaming/examples/img_bipbop_adv_example_ts/master.m3u8
Bug Report

[ ] You will email the zip file produced by adb bugreport to<EMAIL_ADDRESS>after filing this issue.

Thanks for your report.
Can you add EventLogger with player.addAnalyticsLogger(EventLogger()) then go through that scenario, make a bug report (or capture the logcat of EventLogger) and upload this here.
I think we should see in the logs what is going on. Without that it's just guessing from my side. I hope the logs will add some important information that helps us investigating.

Attached the logcat with EventLogger
Medium-Phone-API-33-Android-13_2024-11-15_144155-bug-1892.zip

Screenshot from Charles. Video segments are fetched again. Which is probably causing the buffering.

Hmmm, sorry. This file is a json file with each line in a json object. Do you have the simple text version of it somehow./ That would make it much easier.
{
3068       "header": {
3069         "logLevel": "DEBUG",
3070         "pid": 29630,
3071         "tid": 29630,
3072         "applicationId": "com.hotstar.playerdemo",
3073         "processName": "com.hotstar.playerdemo",
3074         "tag": "EventLogger",
3075         "timestamp": {
3076           "seconds":<PHONE_NUMBER>,
3077           "nanos": 286000000
3078         }
3079       },
3080       "message": "audioAttributes [eventTime\u003d0.04, mediaPos\u003d0.00, window\u003d0, 3,0,1,1]"
3081     },

New log in txt. The previous one is export from logcat. Should be possible to import in Android Studio
exoplayer-log-bug-1892.txt

Thanks!
It's not really clear what happens. I actually doesn't seem to work at all. The player never attempts to play an ad. It is always on the content period and never tries to enqueue an ad period.
From what you describe, the tricky bits are that you change the positions of the ads which can be tricky. I'm not sure how far you got that working and whether it worked in some ways.
Sorry if you already did what I'm going to suggest. Just checking:
I often mix up Ms and Us. So I'd double check this.
As a start I'd suggest to use the real positions from the very beginning. At least until this works. Like instead of setting the position to Integer.MAX_VALUE use the actual position of the add.
Then instead of setting them to SKIPPED I'd just leave then as is. Then they are in state AD_STATE_UNAVAILABLE and the player won't pick them for playback until you transition them to available. When you then use withAdUri(uri), you transition the ad to AD_STATE_AVAILABLE automatically.
I'm also a bit confused by your snippet:
adPlaybackState.withAdGroupTimeUs(adGroupIndex, adGroupStartTime)
adPlaybackState.withAdCount(adGroupIndex, adCount)
adPlaybackState.withAdUri(adGroupIndex, adIndexInAdGroup, uri)

You probably just use this for the post because it should be something like this:
adPlaybackState =
    adPlaybackState
        .withAdGroupTimeUs(adGroupIndex, adGroupStartTime)
        .withAdCount(adGroupIndex, adCount)
        .withAdUri(adGroupIndex, adIndexInAdGroup, uri);

Guess this is an artifact for this post though.
When it worked, then you see an event positionDiscontinuity that goes from the content period to the ad period. The logs show a skip. That's where something got inserted but something went wrong:
 positionDiscontinuity [eventTime=22.67, mediaPos=10.97, window=0, reason=SKIP, PositionInfo:old [mediaItem=0, period=0, pos=10968], PositionInfo:new [mediaItem=0, period=0, pos=0]]

if it works, the new is something like [..., period=-0, adGroupIndex=0, adIndexInAdGroup=0] which shows the player has transitioned to the ad period.

Hi,
thanks for your suggestions, here is an update on what I tried.
The logs I sent were only from the part when we observe the extra buffering - at the moment when we set ad data to and ad group that was marked as previously SKIPPED. Way before the ad group actually starts playing.
The ad playback works as expected for us. Just for clarity: we are checking the time units. Using adPlaybackState as builder pattern as it is immutable.
Few observations
This buffering we are observing happens when we set the ad data for the upcoming ad group and it was previously (or initially) SKIPPED
If there is some AVAILABLE ad group in between current position and the one being set, the buffering does not appear.
If we are updating already AVAILABLE ad group with some other data or change a time, we do not observe buffering. There is a limitation that ad count in a group may not decrease.
What I have tried
Setting ad groups positions at the beginning
Only this alone does not fix the issue. When ad group initially marked as SKIPPED is set with data buffering occurs.
Additionally if we are having ad groups times set initially, we sometimes need to mark them as SKIPPED.
If ad group has no ad data player becomes stuck on buffering when attempting to play. Also in some scenarios when user seeks we are skipping some ad breaks and later making them available again.
Is there maybe some API that can transfer SKIPPED ad group to initial state? That could help
I tried using AdPlaybackState.newAdGroup()`` but this adds extra ad group and ad group count may actually not change when updating AdPlaybackState`.
Not marking the ad groups as SKIPPED initially is helping.
Updating just initial ad groups with ad data -> no buffering.
There seems to be no difference what the original ad group time was.
So if I keep all ad groups after the content initially (e.g. MAX_LONG) everything seems to be working:
Setting ad group data + time has no buffering when it was not initially SKIPPED.
Only issue is that in the end content player tries to play the initial unused ad groups and gets stuck on buffering them.
When I detect this case I mark those SKIPPED and player can finish playback. This leaves some non elegant play finish handling + some buffering in the end.
Note: I detect this end of playback with onPositionDiscontinuity() callback. Maybe there is better option?


printAll()

Given:
printAll { for (i in 0..10) i^2 };

I get:
0Unhandled exception:
type 'dart$Default' is not a subtype of type 'String' in type cast.
#0      Object._as (dart:core-patch/object_patch.dart:70)
#1      $package$printAll.<anonymous closure> (package:ceylon/language/language.dart:9655:46)
#2      Iterable.$each (package:ceylon/language/language.dart:4652:22)
#3      functionIterable$$anonymous$0_.each (package:ceylon/language/language.dart:1142:44)
#4      $package$printAll (package:ceylon/language/language.dart:9651:12)
#5      printAll (package:ceylon/language/language.dart:9662:90)
#6      $package$run.<anonymous closure> (file:///var/folders/3l/_1gb8m1n51j9_tc07h0lflr40000gn/T/ceylon-run-dart5767981372227819311/hello/hello.dart:53:16)
#7      $package$run (file:///var/folders/3l/_1gb8m1n51j9_tc07h0lflr40000gn/T/ceylon-run-dart5767981372227819311/hello/hello.dart:54:7)
#8      run (file:///var/folders/3l/_1gb8m1n51j9_tc07h0lflr40000gn/T/ceylon-run-dart5767981372227819311/hello/hello.dart:57:15)
#9      main (file:///var/folders/3l/_1gb8m1n51j9_tc07h0lflr40000gn/T/ceylon-run-dart5767981372227819311/hello/hello.dart:61:5)
#10     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:261)
#11     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:150)

It works with plain print().

The workaround is to not use named-args:
printAll({for (i in 0..10) i^2});

Strange. An explicitly passed default value indicator in one module for some reason isn't identical to the default value indicator in the language module. In the compiled example:
return $ceylon$language.printAll(arg$0$0, $ceylon$language.dart$default);

and in printAll
    if ($dart$core.identical(separator, $package$dart$default)) {
        separator = ", ";
    }

Maybe a bug in my handwritten Dart code, if don't understand Dart's const keyword:
class dart$Default {
  const dart$Default();
}

const dart$default = const dart$Default();

const $package$dart$default = dart$Default;

Fixed, thanks!

Thanks!


Mysql integration in Canyon

Hi guys, I am opening this PR as I want to do mysql integration. I open the PR in draft mode to be able to consult details and to be able to make a periodical follow-up of my progress.
Greetings ZeroDayCode.

Hi guys, I am opening this PR as I want to do mysql integration. I open the PR in draft mode to be able to consult details and to be able to make a periodical follow-up of my progress.
Greetings ZeroDayCode.

I am happy to see you contributing for the very first time to the Canyon's codebase. I am looking forward to see how the implementation of MySql fits in our project :)

Good morning,
I am starting to create test runs of select and update macros, without starting in querybuilder.
I receive syntax errors on certain occasions, an example is in the names of the columns due to a quotation marks, in case of sql server does not affect, the upper or lower case, in case mysq_async does not allow me to keep them, and in case of postgresql if it can be the case and can be problematic, so I comment this problem to obtain a solution as effective as possible and not a horrible patch without having analyzed together.
In the last commit is changed the format of columns of the update, since I was testing. But it should not exist and I understand that it is not a solution to support postgresql.
Greetings.

I don't understand what's the problem with posgres. Can you post the errores, problems or related code?
By the way, I am probably not understanding correctly your problem, but you not be messing up with posgres code.
Whatever alternative you need in MySQL,  should be completly independent from postgresql code.
Are you maybe talking about the query macros? The approach is typically that postgre SQL is our base crate, so, whenever you need to do something with the queries, you must replace the problematic syntax in the executor, like we did in sqlserver.
This solution is far from perfect in terms of performance, but is the good one ATM  to keep the queries code completly decoupled from one driver vendor to another, si people can come and implement new drivers, like your case with MySQL.
By the way, we're open to upgrade our codebase, so we will appreciate any idea

Good morning,
I am starting to create test runs of select and update macros, without starting in querybuilder.
I receive syntax errors on certain occasions, an example is in the names of the columns due to a quotation marks, in case of sql server does not affect, the upper or lower case, in case mysq_async does not allow me to keep them, and in case of postgresql if it can be the case and can be problematic, so I comment this problem to obtain a solution as effective as possible and not a horrible patch without having analyzed together.
In the last commit is changed the format of columns of the update, since I was testing. But it should not exist and I understand that it is not a solution to support postgresql.
Greetings.

@gbm25 by the way, you looked the upper-lower case standarization within Canyon for the queries. Can you help @0nSystem with its problem?

@gbm25 by the way, you looked the upper-lower case standarization within Canyon for the queries. Can you help @0nSystem with its problem?

If I remember correctly, by default we used the lowercase name for both table and column names, unless specified otherwise by the user.
Of course, to support both cases, the queries have to be prepared to search for those names taking into account that the names can contain uppercase letters because the table was created that way.
As I don't know what is the concrete problem of @0nSystem I will expose a small summary of the things related to table and column names in the different databases.
Identifier Behavior in Different Databases
PostgreSQL:

Identifiers that are not double-quoted are folded to lowercase.
Identifiers that are double-quoted retain their case and can be either reserved keywords or contain characters not generally allowed by the syntax rules.
Examples:

Click to see examples
Table Creation:
CREATE TABLE "TEST" (
    "COLUMN1" VARCHAR(255),
    "COLUMN2" INT,
    "COLUMN3" DATE,
    "COLUMN4" BOOLEAN
);

Sample Query:
INSERT INTO "TEST" ("COLUMN1", "COLUMN2", "COLUMN3", "COLUMN4") VALUES ('Sample', 123, '2023-08-14', TRUE);
SELECT * FROM "TEST" WHERE "COLUMN1" = 'Sample';

Reference documentation

Microsoft SQL Server:

By default, SQL Server identifiers are case-insensitive.
The SET QUOTED_IDENTIFIER option allows SQL Server to follow ISO rules regarding quotation mark delimiting identifiers and literal strings.
When SET QUOTED_IDENTIFIER is ON, identifiers can be delimited by double quotation marks (" ") and can be either reserved keywords or contain characters not generally allowed by the syntax rules.
Examples:

Click to see examples
Table Creation:
CREATE TABLE `TEST` (
    `COLUMN1` VARCHAR(255),
    `COLUMN2` INT,
    `COLUMN3` DATE,
    `COLUMN4` BOOLEAN
);

Sample Query:
INSERT INTO `TEST` (`COLUMN1`, `COLUMN2`, `COLUMN3`, `COLUMN4`) VALUES ('Sample', 123, '2023-08-14', TRUE);
SELECT * FROM `TEST` WHERE `COLUMN1` = 'Sample';

Reference documentation

MySQL:

Table names and column names are case-insensitive on Windows and case-sensitive on Unix-based systems by default.
Backticks (``) are used to quote identifiers, allowing for reserved words or special characters in names.
Examples:

Click to see examples
Table Creation:
SET QUOTED_IDENTIFIER ON;
CREATE TABLE "TEST" (
    "COLUMN1" VARCHAR(255),
    "COLUMN2" INT,
    "COLUMN3" DATE,
    "COLUMN4" BIT
);

Sample Query:
INSERT INTO "TEST" ("COLUMN1", "COLUMN2", "COLUMN3", "COLUMN4") VALUES ('Sample', 123, '2023-08-14', 1);
SELECT * FROM "TEST" WHERE "COLUMN1" = 'Sample';

Reference documentation

Given the above, it is clear that we were able to use the same standard with PostgreSQL and Microsoft SQL Server, but it is not going to be possible for MySQL.
In the migrations this is not a problem because they are differentiated, in the rest of the code ... I'm not sure because I don't touch it so much.
It can also be that not all queries follow this format in Canyon-SQL, because when it was implemented in Microsoft SQL Server it gave a lot of problems and many times we did things a little bit blindly.
Anyway, if you have any doubt with the queries, let me know which one is failing or which part of the code is giving you problems and we will see it.

@gbm25 by the way, you looked the upper-lower case standarization within Canyon for the queries. Can you help @0nSystem with its problem?

If I remember correctly, by default we used the lowercase name for both table and column names, unless specified otherwise by the user.
Of course, to support both cases, the queries have to be prepared to search for those names taking into account that the names can contain uppercase letters because the table was created that way.
As I don't know what is the concrete problem of @0nSystem I will expose a small summary of the things related to table and column names in the different databases.
Identifier Behavior in Different Databases
PostgreSQL:
* Identifiers that are **not double-quoted** are folded to lowercase.

* Identifiers that **are double-quoted** retain their case and can be either reserved keywords or contain characters not generally allowed by the syntax rules.

* Examples:

Click to see examples
* [Reference documentation](https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS)

Microsoft SQL Server:
* By default, SQL Server identifiers are **case-insensitive**.

* The `SET QUOTED_IDENTIFIER` option allows SQL Server to follow ISO rules regarding quotation mark delimiting identifiers and literal strings.

* When `SET QUOTED_IDENTIFIER` is `ON`, identifiers can be delimited by **double quotation marks** (`" "`) and can be either reserved keywords or contain characters not generally allowed by the syntax rules.

* Examples:

Click to see examples
* [Reference documentation](https://docs.microsoft.com/en-us/sql/t-sql/statements/set-quoted-identifier-transact-sql?view=sql-server-ver15)

MySQL:
* Table names and column names are **case-insensitive on Windows** and **case-sensitive on Unix-based systems** by default.

* **Backticks** (`` `` ``) are used to quote identifiers, allowing for reserved words or special characters in names.

* Examples:

Click to see examples
* [Reference documentation](https://dev.mysql.com/doc/refman/8.0/en/identifiers.html)

Given the above, it is clear that we were able to use the same standard with PostgreSQL and Microsoft SQL Server, but it is not going to be possible for MySQL. In the migrations this is not a problem because they are differentiated, in the rest of the code ... I'm not sure because I don't touch it so much.
It can also be that not all queries follow this format in Canyon-SQL, because when it was implemented in Microsoft SQL Server it gave a lot of problems and many times we did things a little bit blindly.
Anyway, if you have any doubt with the queries, let me know which one is failing or which part of the code is giving you problems and we will see it.

Hello @gbm25  @Pyzyryab,
With this you solve my problem, since I was referring to the name of standardization of the table and columns of postgres interferes with the implementation of mysql, but it is not a problem. I can solve it as a patch but I think we should look for a better way, than manipulating the query at the end prior to execution.

@0nSystem is there any progress on this? I have a personal project in mind with some friends and we would like to do some testing with this innovative implementation. Great job!

@0nSystem is there any progress on this? I have a personal project in mind with some friends and we would like to do some testing with this innovative implementation. Great job!

Hello @damibazarra , Thanks
In principle everything is almost ready, currently the implementation is functional and you can start using it, I have to fix MysqlOperator and clippy errors.

The implementation is ready, if you see something that could be improved, do not hesitate to comment. @Pyzyryab @gbm25

The implementation is ready, if you see something that could be improved, do not hesitate to comment. @Pyzyryab @gbm25

Hey @0nSystem I reviewed briefly your changes, and except some minor things, everything looks fine. Even more, you cleaned some parts of the cfg macros that I liked.
Please, consider to carefully read the comments left as notes, and implement the changes whenever you feel ready. And by the way, you can change the PR mode to open, since we are already preparing for the next release, that will include the my_sql implementation.
Thanks for your job :)

Hey @Pyzyryab  later today, I'll check the comments, and let you know when I'm ready to merge.

Hey @Pyzyryab later today, I'll check the comments, and let you know when I'm ready to merge.


some User usage issues

hello, Sawhney17,
Thank u for this plugin which helps me public my logseq notes to hugo conveniently.
I encountered several software usage problems，about export of single note instead of batch notes——Single note export property value recognition is missing.
For example:
I make a note in logseq with all property and value
I make a note with property in logseq like this:

if I export of single note，something is wrong
1） I export of single note without information

2）the file form is incorrect and the file name is blank

3）the property value is missing

but export of batch notes，it will work well
1）right file form and name the file with note title

2）the property and the value are right and work well
the property “slug” instead of “fileName”， and make “lastMod” as the date when export the note

so whether I can set the export of single note as export of batch notes？
Thank u！

Cool. Prioritized this issue.


New meshes crash Maya when they're added to an empty scene

Describe the bug
Maya crashes when an object is added after removing an object from the scene (scene has to have 0 objects in it).
To Reproduce
Steps to reproduce the behavior:

Load the plug-in.
Add a cube.
Remove the cube.
Add a cube again.

Expected behavior
Maya should not crash. It should just display the newly created mesh without any issues.

This has been resolved in the latest version of Wisp.


Think about repo checker

https://adapter-check.iobroker.in/?q=https://github.com/mobilutz/iobroker.freeathome

Closing this, as there is another automated issue for this topic: #20


Allow users to specify the configuration file as a command line argument (Trac #162)

By default, the Microdrop configuration file location is fixed. By allowing it to be specified as a command line argument, it would be possible to install multiple versions of Microdrop on the same computer (each with it's own config file and plugin/device directory).
Migrated from http://microfluidics.utoronto.ca/microdrop/ticket/162
{
    "status": "closed",
    "changetime": "2015-01-13T08:45:21",
    "description": "By default, the Microdrop configuration file location is fixed. By allowing it to be specified as a command line argument, it would be possible to install multiple versions of Microdrop on the same computer (each with it's own config file and plugin/device directory).",
    "reporter": "ryan",
    "cc": "",
    "resolution": "fixed",
    "_ts": "1421138721587479",
    "component": "microdrop",
    "summary": "Allow users to specify the configuration file as a command line argument",
    "priority": "major",
    "keywords": "",
    "version": "",
    "time": "2014-11-06T17:38:10",
    "milestone": "Microdrop 1.0",
    "owner": "",
    "type": "enhancement"
}

Trac update at 20150105T18:20:35: cfobel changed milestone from "Microdrop 1.1" to "Microdrop 1.0"

Trac update at 20150106T18:35:03:

cfobel changed _comment0 from:

{{{
#!md
As of
, it is possible to specify configuration file when launching MicroDrop using the -c command-line flag.  Note that the data_dir, plugins.directory and microdrop.gui.dmf_device_controller.device_directory config settings can be set using relative paths.  By using relative paths, it is possible to make a relocatable MicroDrop configuration directory, that can be placed in whatever directory MicroDrop is launched from.  For example, consider launching MicroDrop where a data directory is copied to .microdrop:
python -m microdrop -c .microdrop/microdrop.ini

The following microdrop.ini would make things run from the local .microdrop data directory (e.g., in the root of a portable Python distribution where the microdrop package is installed).
# `.microdrop/microdrop.ini`
data_dir = .microdrop
...
[plugins]
...
directory = .microdrop/plugins
...
[microdrop.gui.dmf_device_controller]
...
device_directory = .microdrop/devices
...

}}}

to:

1420569487919421

cfobel commented:

As of commit 4517c39e90707dd25fc94a1b5b9cd27edb229239, it is possible to specify configuration file when launching !MicroDrop using the -c command-line flag.  Note that the data_dir, plugins.directory and microdrop.gui.dmf_device_controller.device_directory config settings can be set using relative paths.
#!md
  By using relative paths, it is possible to make a relocatable MicroDrop configuration directory, that can be placed in whatever directory MicroDrop is launched from.  For example, consider launching MicroDrop where a data directory is copied to `.microdrop`:

python -m microdrop -c .microdrop/microdrop.ini

The following `microdrop.ini` would make things run from the local `.microdrop` data directory *(e.g., in the root of a portable Python distribution where the `microdrop` package is installed)*.

.microdrop/microdrop.ini
data_dir = .microdrop
...
[plugins]
...
directory = .microdrop/plugins
...
[microdrop.gui.dmf_device_controller]
...
device_directory = .microdrop/devices
...

Trac update at 20150113T08:45:21:

ryan commented:

Fixed in commit  changeset f494a77.

ryan changed resolution from "" to "fixed"
ryan changed status from "new" to "closed"


hasOne relationship not producing the correct foreign key

I have a hasOne relationship from Org to Resource:
var Resource = bookshelf.model('Resource', bookshelf.model('BaseModel').extend({
    tableName: 'resources'
}));

var Org = bookshelf.model('Org', bookshelf.model('BaseModel').extend({
    tableName: 'orgs',
    resource: function() {
        return this.hasOne('Resource');
    }
}));

When I try to insert an Org record, the generated SQL is:
insert into "orgs" ("name", "resource", "uid") values (?, ?, ?) returning "id"

which is incorrect. Based on hasOne documentation, the middle column name should be resource_id, not resource. What am I doing wrong?

What values are you setting on the Org model instance before saving?

var resource = new Resource({
    uid: uid,
    type: 'org'
});

return resource.save()
    .then(function(resource) {
        var org = new Org({
            uid: uid,
            name: orgData.name,
            resource: resource
        });

        return org.save();
    });

Right, as I expected. Unfortunately Bookshelf currently doesn't support saving related data as easily as that. .save() will only try to save the model's own attributes so, you'll have to use something like this:
// ...
return resource.save().then(function(resource) {
  var org = new Org({
    uid: uid,
    name: orgData.name,
    resourceId: resource.id // or "resource_id:" if you're not converting to/from camel case
  });

  return org.save();
});

Thanks so much! That was definitely not obvious in the documentation.

I know. Sorry about that. @rhys-vdw FYI.

How about this:
var Resource = bookshelf.model('Resource', bookshelf.model('BaseModel').extend({
    tableName: 'resources'
    org: function () {
        return this.belongsTo('Org');
    }
}));

var Org = bookshelf.model('Org', bookshelf.model('BaseModel').extend({
    tableName: 'orgs',
    resource: function() {
        return this.hasOne('Resource');
    }
}));

var resource = new Resource({
    uid: uid,
    type: 'org'
});

return resource.save()
    .then(function(resource) {
        resource.related('org').set(
            uid: uid,
            name: orgData.name,
        }).save();
    });

I think that should work if you prefer. However I think the way you expected to do it is interesting. I think I'll open a feature request.

Ah, I see. But I cannot have any reference from Resource to Org. Resource is part of an independent reusable context and should not know anything about Orgs.

As far as I can tell you can't have both ways. You wish to "attach" an Org to a Resource, but you wish to not have the resource have any awareness of Org. They are related in your database, why not allow this to be  represented in your ORM layer?

Well, I would like different kinds of domain entities to refer to Resources, not Orgs only. So while Orgs can refer to Resources, Resources do not necessarily refer to Orgs. Think of it as a look up table - I can look up a Country table from many different domain tables.
Moreover the solution from @ricardograca is working perfectly fine for my use case. It keeps my Resource sub-system completely isolated and reusable.
Hope this clarifies. I don't think I am trying to do anything unreasonable.

Yep. Seems reasonable. If you're happy with that pattern then :+1:.


yeoman article with suggested updates

Hi @noelatfalafel, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;

This replaces (and is a copy of) PR #271, which @noelatfalafel was having trouble rebasing. It should be good to merge.


make

when I run a make after go get thanos,I got this in my Console：

[jerry@localhost thanos]$ make
fetching dep from 45be32ba4708aad5e2aa8c86f9432c4c4c1f8da2 revision
#cd /home/jerry/data/thanos/src/github.com/golang/dep; git pull --ff-only
From https://github.com/golang/dep
    Bc152799..ba8d7503 master -> origin/master
You are not currently on a branch.
Please specify which branch you want to merge.
See git-pull(1) for details.
Git pull
Package github.com/golang/dep/cmd/dep: exit status 1
Make: *** [Makefile:142:/home/jerry/data/thanos/bin/dep-45be32ba4708aad5e2a] Error 1

version:
**Thanos:0.1.0-rc.2
Prometheus：2.3.2
and Golang version：go1.10.1 linux/amd64
Uncomment and fill if you use not casual environment or if it might be relevant.
Environment:

OS (e.g. from /etc/os-release):

#cat /etc/os-release
NAME=Fedora
VERSION="28 (Workstation Edition)"
ID=fedora
VERSION_ID=28
PLATFORM_ID="platform:f28"
PRETTY_NAME="Fedora 28 (Workstation Edition)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:28"
HOME_URL="https://fedoraproject.org/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=28
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=28
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation

Kernel (e.g. uname -a):

#uname -a
Linux localhost.localdomain 4.17.3-200.fc28.x86_64 #1 SMP Tue Jun 26 14:17:07 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

How can I solve it?

 We should install proper dep version outside of user GOPATH.
Valid issue, but help would be nice (:

After I make again ,I got :

[jerry@localhost thanos]$ make
fetching dep from 45be32ba4708aad5e2aa8c86f9432c4c4c1f8da2 revision
dep ensure
The following issues were found in Gopkg.toml:
✗ unable to deduce repository and source type for "cloud.google.com/go": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://cloud.google.com/go?goget=1": Get http://cloud.google.com/go?go-get=1: dial tcp <IP_ADDRESS>:80: connect: connection refused
✗ unable to deduce repository and source type for "golang.org/x/net": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/net?go-get=1: Get http://golang.org/x/net?go-get=1: dial tcp <IP_ADDRESS>:80: connect: connection refused
✗ unable to deduce repository and source type for "golang.org/x/sync": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sync?go-get1": Get http://golang.org/x/sync?go-get=1: dial tcp <IP_ADDRESS>:80: connect: connection refused
✗ unable to deduce repository and source type for "google.golang.org/api": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://google.golang.org/api?go-get=1": Get http://google.golang.org/api?go-get=1: dial tcp <IP_ADDRESS>:80: connect: connection refused
✗ unable to deduce repository and source type for "google.golang.org/grpc": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://google.golang.org/gpc?go-get=1": Get http://google.golang.org/grpc?go-get=1: dial tcp <IP_ADDRESS>:80: connect: connection refused
ProjectRoot name validation failed
make: *** [Makefile:128：vendor] 错误 1

I run src/github.com/improbable-eng/thanos/cmd/thanosmain.go,then

jerry@localhost thanos]$ go build main.go
#command-line-arguments
./main.go:63:2: undefined: registerSidecar
./main.go:64:2: undefined: registerStore
./main.go:65:2: undefined: registerQuery
./main.go:66:2: undefined: registerRule
./main.go:67:2: undefined: registerCompact
./main.go:68:2: undefined: registerBucket
./main.go:69:2: undefined: registerDownsample

what is wrong？any suggestion?

Well,

make deps could not get all deps because of flaky network (connection refused)
you cannot build thanos with just main.go because it ignores rest files in the same dir. make build should help you

@jojohappy submitted fix to the make deps, which should fix this issue, let us know if it is not the case.
Cheers! (:

[jerry@localhost thanos]$ go build .
github.com/improbable-eng/thanos/pkg/objstore
../../pkg/objstore/objstore.go:235:32: cannot use b.opsDuration.WithLabelValues(op) (type prometheus.Observer) as type prometheus.Histogram in argument to newTimingReadCloser:
prometheus.Observer does not implement prometheus.Histogram (missing Collect method)
../../pkg/objstore/objstore.go:250:32: cannot use b.opsDuration.WithLabelValues(op) (type prometheus.Observer) as type prometheus.Histogram in argument to newTimingReadCloser:
prometheus.Observer does not implement prometheus.Histogram (missing Collect method)

@Jerryhax Could you provide the status of the project's dependencies  with dep status? In my env, I could not replicate that.

I found that Prometheus/client_golang has been removed function Set() at v0.9.0-pre1. #247 to see the detail. So you should make sure your Prometheus/client_golang version is 0.8.0.

@jojohappy

[jerry@localhost thanos]$ dep status
/home/jerry/data/thanos/src/github.com/improbable-eng/thanos is not within a known GOPATH/src

I am sure that the version of Prometheus/client_golang I am using is 0.8.0.

error:Cannot use 'b.opsDuration.WithLabelValues(op)' (type "github.com/prometheus/client_golang/prometheus".Observer) as type "github.com/prometheus/client_golang/prometheus".prometheus.Histogram

and error @src/thanos/cmd/thanos/query.go line181 :
Cannot use 'reg' (type "github.com/prometheus/client_golang/prometheus".*prometheus.Registry) as type "github.com/prometheus/prometheus/vendor/github.com/prometheus/client_golang/prometheus".prometheus.Registerer less... (Ctrl+F1)
Reports incompatible types.

@jojohappy

[jerry@localhost thanos]$ make build

dep ensure
make: execvp: /home/jerry/data/proth/bin/dep-45be32ba4708aad5e2a: Permission denied
make: *** [Makefile:133：vendor] 错误 127


Adding support for text/html MediaType

In order to be able to return full generated HTML pages, added support for MediaType text/html. Browsers are sending this type to client when user is typing the URL in the address bar. You can then return a dynamically generated HTML page.

I would vote against this pull request since it goes agains the "REST" way of doing things.
If you want to do dynamic pages then you can either write a custom IRouteHandler or write a virtual file system that can send back dynamic pages.
What's the reason why it should be added to the REST part of the server?

I understand your point with adding a new IRouteHandler. And that can be done. That said, it's just easy to reuse what does exist by adding the text/html support directly in the current REST part.

And I do understand that it's easy, but what are you planning on using this for? What's the expected use case of this feature?

Thanks for the addition, always nice to see people helping out.
I have to agree with Jark. I do believe there are valid use-cases for this kind of functionality, but not as part of the REST handler. I think it would be better to implement it as a custom RouteHandler, although I'm not quit sure if it's common enough to include this handler as part of the core.

I think an easier way of implementing it would be to implement IFileSystem with something that would return files from memory and passing that into the StaticFileHandler, similar to how the MockFileSystem/ MockFile are implemented to allow for unit testing.
Now that I look at it, I think the MockFileSystem does exactly what you want, return content based on a path. It might be worth making the MockFileSystem a bit nicer, renaming it and putting it into the main project.

With the last comment from Jark, I do believe we can close this PR. @Ellerbach reopen if you disagree.

I'll check all this as soon as I'll have the time to do it. If you think it will be better, I'm fine with that. Just need to go thru.


IO Drawer: Create SPCN Trace parser

Create a Python script to parse the "SPCN Trace" data produced by IO
drawers.  This data is collected using the BMC web interface.
Signed-off-by: Shawn McCarney<EMAIL_ADDRESS>

The new commit makes the following changes requested by Matt:

Renames "SPCN Trace" to "IO drawer dump" to better reflect the data type and to avoid confusion with trace buffers.
Moves the standalone script and the common code into an io_drawer module.
Moves one of the constants related to trace buffers into trace.py


⚠ Turnos 24x7 has degraded performance

In 40ead72, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 2648 ms

Resolved: Turnos 24x7 performance has improved in 7bd260f.


Switched from gopkg to go.mod

fixes #73
This PR enable Go Modules and it's backwards compatible with old go versions.

@filipecosta90 LGTM, we should check whats the proper version for redigo

@danni-m IMO we should keep the versions at the minimum compatible version as possible.


2 ILCompiler issues in latest VMR build

There are 2 ILCompiler issues in latest VMR build which contains the fix for nuget.client non-determinism (https://github.com/dotnet/installer/pull/19074).
Alpine319_Offline_PreviousSourceBuiltSdk_x64:
    /vmr/src/runtime/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj : error NU1101: Unable to find package runtime.linux-musl-x64.Microsoft.DotNet.ILCompiler. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built-command-line-api, source-built-emsdk, source-built-source-build-externals, source-built-transport-arcade, source-built-transport-cecil, source-built-transport-emsdk [/vmr/src/runtime/Build.proj]

CentOSStream8_Online_PreviousSourceBuiltSdk_x64:
      ILCompiler -> /vmr/src/runtime/artifacts/bin/coreclr/linux.x64.Release/ilc/ilc.dll
      Generating native code
      Unhandled exception. System.CommandLine.CommandLineException: Target OS 'centos' is not supported
         at System.CommandLine.Helpers.GetTargetOS(String) + 0x4da

CentOSStream8_Offline_PreviousSourceBuiltSdk_x64:
    /vmr/src/runtime/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj : error NU1101: Unable to find package runtime.linux-x64.Microsoft.DotNet.ILCompiler. No packages exist with this id in source(s): prebuilt, previously-source-built, reference-packages, source-built-command-line-api, source-built-emsdk, source-built-source-build-externals, source-built-transport-arcade, source-built-transport-cecil, source-built-transport-emsdk [/vmr/src/runtime/Build.proj]

@jkoritzinsky

Cc: @tmds I think these failures are related to the "non-portable ILCompiler" PR.
Cc: @jkotas, @agocke

Yes, that's https://github.com/dotnet/runtime/pull/99148.
The issues seem to be in the PreviousSourceBuiltSdk case, which I think I had verified as well ...
I'll take a look.

@NikolaMilosavljevic where can I find the logs that you copied the errors from?

I don't think I can access those. I've started a build locally.
I only verified the offline case, so I probably missed something for the online case.
For the offline case, I'm surprised to see the portable rid show up in these error messages. It should try to restore the non-portable rid from the "PreviousSourceBuiltSdk".

I don't think I can access those. I've started a build locally.
I only verified the offline case, so I probably missed something for the online case.
For the offline case, I'm surprised to see the portable rid show up in these error messages. It should try to restore the non-portable rid from the "PreviousSourceBuiltSdk".

Here are the runtime logs.
Alpine319_Offline_PreviousSourceBuiltSdk_x64.runtime.log
CentOSStream8_Offline_PreviousSourceBuiltSdk_x64.runtime.log
CentOSStream8_Online_PreviousSourceBuiltSdk_x64.runtime.log

Binlogs:
binlogs.zip

Thanks for sharing the logs! I should be able to find and fix the issue tomorrow.

My build didn't reproduce the issue.
I assume it may be because that when I do a build that uses a "PreviousSourceBuiltSdk", that SDK is a newly bootstrapped version that includes https://github.com/dotnet/runtime/pull/99148.
Do the PreviousSourceBuiltSdk jobs use an SDK that doesn't yet include https://github.com/dotnet/runtime/pull/99148?
The issue may be due to that SDK not yet understanding how to use the non-portable rid ILCompiler.
This is for the offline jobs. I'll do an --online build tomorrow.

The online build also completed successfully.
Based on my previous comment, the issue should be gone once the SDK used to build the VMR includes https://github.com/dotnet/runtime/pull/99148.
@NikolaMilosavljevic is this something that will happen automatically?
For distro-maintainers, it means they won't be able to use the previous source-built preview SDK to build the new one. I assume that, since we're in early previews, it's acceptable for them to have to re-bootstrap.

Do the PreviousSourceBuiltSdk jobs use an SDK that doesn't yet include https://github.com/dotnet/runtime/pull/99148?

Yes, the PreviousSourceBuiltSdk jobs are using the previously SDK from the previous preview release so they don't include your runtime change.  This change requires use to re-bootstrap but doing so is currently blocked on https://github.com/dotnet/source-build/issues/4206

This issue was fixed in Preview 3 branch with re-bootstrapping: https://github.com/dotnet/installer/pull/19085
Re-bootstrapping for main is in progress: https://github.com/dotnet/installer/pull/19145

Fixed with re-bootstrapping: https://github.com/dotnet/installer/pull/19145


Set javac version 1.8 on Ubuntu 16.04

Description
24 June 2020 we merged our pull request with migration from Java Zulu to AdopOpenJdk. We got an issue that on ubuntu16 java and javac versions are different. On all other images they have same java and javac versions. With this pull request we want to manually setup javac version for ubuntu 16.04.
Ubuntu 16.04:

java -version:

openjdk version "1.8.0_265"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_265-b01)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.265-b01, mixed mode)

javac -version:

javac 1.7.0_272

Java config for Ubuntu 16.04:
  Selection    Path                                                  Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/zulu-7-azure-amd64/bin/javac              1704006   auto mode
  1            /usr/lib/jvm/adoptopenjdk-11-hotspot-amd64/bin/javac   1111      manual mode
  2            /usr/lib/jvm/adoptopenjdk-12-hotspot-amd64/bin/javac   1121      manual mode
  3            /usr/lib/jvm/adoptopenjdk-8-hotspot-amd64/bin/javac    1081      manual mode
  4            /usr/lib/jvm/zulu-7-azure-amd64/bin/javac              1704006   manual mode

Java config for Ubuntu 18.04:
  Selection    Path                                                  Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/zulu-7-azure-amd64/bin/javac              1704006   auto mode
  1            /usr/lib/jvm/adoptopenjdk-11-hotspot-amd64/bin/javac   1111      manual mode
  2            /usr/lib/jvm/adoptopenjdk-12-hotspot-amd64/bin/javac   1121      manual mode
* 3            /usr/lib/jvm/adoptopenjdk-8-hotspot-amd64/bin/javac    1081      manual mode
  4            /usr/lib/jvm/zulu-7-azure-amd64/bin/javac              1704006   manual mode

The root cause of the issue is the bug of debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=825987. update-java-alternatives difference between ubuntu16 and ubuntu18.

Check list

[x] Related issue / work item is attached
[x] Tests are written (if applicable)
[x] Documentation is updated (if applicable)
[ ] Changes are tested and related VM images are successfully generated

/azp run ubuntu1604, ubuntu1804, ubuntu2004


39 Golf includes compiled csharp code

Cloning the repository takes a long time, because entry 39 Golf contains a "compiled" version of the game for Windows and Linux.  This adds something like 100mb to the repository.
Due to the way Git works I'm not sure it's possible to remove that without force push and mucking up people's forks, but it'd be nice if that could be taken out so git clone goes faster.  I leave it to you to sort that out :)

hmm. I've removed the compiled folder at least..


feat: rune swapping confirmed state

Description

Notice

[ ] Have you followed the guidelines in our Contributing guide?
[ ] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

closes #
Risk

Testing

Engineering

Operations

Screenshots (if applicable)

Current dependencies on/for this PR:

develop

PR #2877

PR #2872

PR #2842

PR #2885

PR #2887

PR #2893   👈

This comment was auto-generated by Graphite.


K3S server doesn't start on RHEL9

Environmental Info:
K3s Version:

k3s version v1.29.5+k3s1 (4e53a323)
go version go1.21.9
Node(s) CPU architecture, OS, and Version:

Linux myserver 5.14.0-427.18.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 13 10:47:09 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux
Cluster Configuration:

1 server
Describe the bug:

k3s service doesn't start
Steps To Reproduce:

Installed K3s: curl -sfL https://get.k3s.io | sh -

Expected behavior:

k3s service to start
Actual behavior:

Output from the end of the install:
[INFO]  systemd: Starting k3s
Job for k3s.service failed because the control process exited with error code.
See "systemctl status k3s.service" and "journalctl -xeu k3s.service" for details.
Journald:
time="2024-06-05T13:09:45+03:00" level=fatal msg="exec: "k3s-server": executable file not found in $PATH"
Same error when running from command line:
$ k3s server
FATA[0000] exec: "k3s-server": executable file not found in $PATH

The k3s binary is actually a self-extracting multicall binary, that unpacks the various bundled binaries out and then re-execs them. Something has prevented k3s from extracting its content to /var/lib/rancher/k3s/data. You can try deleting that folder and then restarting the service, but if this continues I would recommend  verifying that /var/lib/rancher/k3s is not on a read-only filesystem, and checking for any active security modules (ie selinux) that might be preventing content from being written to that path.

Check if you do not have the noexec attribute to the /var partition. Check the /etc/fstab file.


⚠ Bofrost.be has degraded performance

In 8f9585b, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1163 ms

Resolved: Bofrost.be performance has improved in 7e81ade after 305 days, 22 hours, 30 minutes.


Process explorer icons are not centered vertically

The icons seem a little higher than they should be.
Also they are not using the new icons when I have opted in, is that expected to work? @misolori

@roblourens those aren't updated yet but I can add them

Closing since we now use the tree widget, so this doesn't repro


Linux kernel 3.6

I noticed the documentation says Linux kernel 3.6.  What specifically about blend requires 3.6 and above?

guess Bluez has dependency on Kernel 3.4 or above.
Especially with BLE support, 3.5 is needed

With this release BlueZ only supports the new Bluetooth Management kernel interface that was introduced in Linux 3.4, so essentially this is the minimum kernel requirement for BlueZ 5. For Low Energy support at least kernel version 3.5 is needed.

http://www.bluez.org/release-of-bluez-5-0/

@gtalusan I think this was a requirement because older versions used L2CAP kernel sockets. Now HCI sockets are used, so this may no longer be a requirement.
I don't have a Linux kernel system with older than 3.6 to test, but it would be great if you could test it out and submit a PR to remove the requirement.


Replace custom job names with namespaces

First of all I'd like to say thank you for your project. It's amazing and the closest from all existing ones to what I need. I prepared a PR with changes, that I need to support exporting of metrics from services, that we want to monitor in our project.

Replaced custom service names to Cloudwatch namespace names which helped to have a single dictionary with all supported services instead on multiple
Added regular expressions to parse dimensions from resources
Removed a need to use static dimensions in dynamic jobs in cases, when they cannot be parsed from ARNs

Wow that looks incredible but it is so big. So could take some time to review. Appreciate your work!

Could you please rebase? :)
I read over the code and it looks good, I would like to check it out locally and test it first before merging.
Would like to merge and release it the following seven days.
Greetings, Thomas :)

@thomaspeitz
Thank you. Thomas:)
I've resolved conflicts

Awesome. Thanks a lot for your work! - Totally appreciate the effort.

So I made a quick review. I am unhappy about "AWS/ApplicationELB" settings. I would like to keep a custom naming.
I see that a naming e.g. AWS/ApplicationELB is the right one in terms of API but I do not like it terms of user experience.
For me it is more important the exporter has a nice usability than a nice developer feeling. So I would like to suggest that we keep a mapping between our names and AWS API names. I would like to have same "guessable" which is hard with aws naming schema - That would be a start to discuss the naming. I tried to keep them simple and without casing. So they are easier to guess:
elb-application - AWS/ApplicationELB - Application Load Balancer
apigateway - AWS/ApiGateway - Api Gateway
appsync - AWS/AppSync - AppSync
billing - AWS/Billing - Billing
cloudfront - AWS/CloudFront - Cloud Front
docdb - AWS/DocDB - DocumentDB (with MongoDB compatibility)
dynamodb - AWS/DynamoDB - NoSQL Online Datenbank Service
ebs - AWS/EBS - Elastic Block Storage
elasticache - AWS/Elasticache - ElastiCache
ec2 - AWS/EC2 - Elastic Compute Cloud
ec2-spot - AWS/EC2Spot - Elastic Compute Cloud for Spot Instances
ecs - AWS/ECS - Elastic Container Service (Service Metrics)
ecs-containerinsights -ECS/ContainerInsights - ECS/ContainerInsights (Fargate metrics)
efs- AWS/EFS - Elastic File System
elb - AWS/ELB - Elastic Load Balancer
elasticmapreduce - AWS/ElasticMapReduce - Elastic MapReduce
elasticsearch - AWS/ES - ElasticSearch
fsx - AWS/FSx - FSx File System
gamelift - AWS/GameLift - GameLift
glue - Glue - AWS Glue Jobs
kinesis -AWS/Kinesis - Kinesis Data Stream
natgateway -AWS/NATGateway - Nat Gateway
lambda - AWS/Lambda - Lambda Functions
elb-network -AWS/NetworkELB - Network Load Balancer
redshift - AWS/Redshift - Redshift Database
rds - AWS/RDS - Relational Database Service
route53-resolver - AWS/Route53Resolver - Route53 Resolver
s3 - AWS/S3 - Object Storage
sqs - AWS/SQS - Simple Queue Service
transitgateway - AWS/TransitGateway - Transit Gateway
vpn - AWS/VPN - VPN connection
autoscaling - AWS/AutoScaling - Auto Scaling Group
kafka - AWS/Kafka - Managed Apache Kafka
firehose - AWS/Firehose - Managed Streaming Service
sns - AWS/SNS - Simple Notification Service
stepfunctions - AWS/States - Step Functions
waf - AWS/WAFV2 - Web Application Firewall v2

How is your opinion about guessable service names?

@thomaspeitz
I've added support of both aliases, that you've listed in a comment above and namespaces

@AndrewChubatiuk - Lets please make the old ones (alias) the default ones. - Especially in docs / Readme.md. Thanks. Beside of that I would merge it and try it out.


Add lock to to prevent deadlock with docker when invoked multiple times.

Fixes #496.

This is still a draft since it doesn't handle SIGKILL at all, which would lead to indefinite blocking, with a file that isn't transparent at all. This likely needs to be improved or refactored dramatically to ensure it still works even after SIGKILL.

this adds a fair bit of dependencies, is there another (simpler) crate for this?

this adds a fair bit of dependencies, is there another (simpler) crate for this?

I'll see, we probably could use parking_lot directly. Or we could just document this relatively prominently. We could also just use this on Unix-only, where there's significantly less dependencies, since I believe due to how Windows works, this is unlikely to be an issue.
Or, we could probably just use libc directly and spin this out into a simple crate (since it has general purpose): using flock and CreateMutexW alone should be fairly doable, if we don't need to worry about any other dependencies.

I've changed it to use CreateMutexW and flock directly. However, it is worth looking over this code carefully (I'll be running a few Miri checks on it, and likely have a data directory with UTF-8 encoded data to test my conversion function) since it requires unsafe code due to using the Windows API. Specifically, this function is the dangerous one:
/// convert a string to an owned wide string
fn to_wide_string(s: &str) -> Result<Vec<WCHAR>> {
    // SAFETY: safe since we determine the length, then get the extracted string
    unsafe {
        // on Windows, you convert to a wide string from UTF-8 in 2 steps
        // first, you calculate the length using a 0-length size for the
        // out string. then, using the length, you create a buffer of sufficient
        // length and convert the string. the string must be nul-terminated.

        // we first need to get a null-terminated string, since our wstr must be.
        let mut bytes = s.as_bytes().to_vec();
        bytes.push(b'\0');
        let ptr = bytes.as_ptr() as *const i8;
        let len = match MultiByteToWideChar(CP_UTF8, 0, ptr, -1, ptr::null_mut(), 0) {
            i if i <= 0 => return Err(get_last_error()),
            i => i as usize,
        };
        let mut vec = vec![0; len];
        let converted = MultiByteToWideChar(CP_UTF8, 0, ptr, -1, vec.as_mut_ptr(), len as _);
        if converted != len as i32 {
            return Err(get_last_error());
        }
        Ok(vec)
    }
}


403错误

部署完成后报403，是不是因为部署这个代理服务的机器被墙了。大家有啥可以用的云机推荐么

seems now requests with puid cookies  needs cf_clearance cookie  too.  need some solutions to get/refresh cf_clearance.

It doesn't. You just need to ensure you put PUID and PUID is valid

Remember to update PUID every few days

so.. even when I have set the correct ACCESS_TOKEN, the puid still cannot update automatically?

Remember to update PUID every few days
I updated the PUID  fetched from browser, but  on my aws ECS instance in US I still got 403 with CF 1020 error.  I have tried to emulate a request with curl  including a valid cf_clearance cookie, that successed.

Assuming access token not set. If access token set, remember to refresh every 2 weeks

If you only put access token and not PUID, it will throw error if IP blocked


'template'=>'ng-template'

So I was getting this warning in my browser console:
The <template> element is deprecated. Use <ng-template> instead ("
[WARNING ->]<template [ngIf]="!isClosed">
  <div [class]="'alert alert-' + type" role="alert" [ngClas

So I wrote+ran this against your repository and have provided it in a PR:
find -type f -exec sed -i 's|<template|<ng-template|g; s|</template|</ng-template|g;' {} ';'

Thanks @SamuelMarks but this is already fixed since weeks in 2.0.0-rc.0 :)

I just pull version 1.6.1 and I'm getting the same warming.  Any suggestions without changing the code in my sandbox?

@kambbado You can just fork ng2-bootstrap and use my 1-liner script as a patch until 2.0.0 comes out. Or update your package.json to allow pre-releases.

v.1.6.6 still getting this warning. It's annoying.

For Angular 4 just use the @next version which fixes this warning. This cannot be fixed in 1.6.X because it would break Angular 2 support. You can use "ngx-bootstrap": "2.0.0-beta.2" or npm install ngx-bootstrap@next

Thank you!


type definitions for storybook-addon-jsx

Hey there,
I'm trying to implement addon-jsx into my story and I'm using typescript. Do you have that package with type definitions?

Yeah thanks for the information. That's a good hint otherwise I'll write some types by myself and add it to my project! 🖖


Update copy button shortcode

Summary
Brief explanation of the feature.
Basic example

https://henkverlinde.com/introduction-to-npm/
Motivation
Why are we doing this? What use cases does it support? What is the expected outcome?

d71ccaa66d7ffef6766c190939d59ce16c4a4319


Text inputs require TAB, SPACE, and other keys

Hi,
@alingham here - so I've already brought this one up... but finally got this way towards GitHub!
So what I'm thinking is, for my Contact form for example, when people use the Space Bar, the page flips onto the next page. If they use TAB to go to the next box, once again, it switches to the next slide.
I have disabled the use of Spacebar, but wasn't ideal.
What would be good would be to have it so when a Text area, or Text input is selected, and the cursor is flashing, then this overrides any keyboard navigation controlled by impress.js.

thanks alot for the quickly!
finally, the javascript doesn't work for me, but in the file impress.js I erased a couple lines and it worked perfectly.
        document.addEventListener("keydown", function ( event ) {
            if ( (event.keyCode >= 37 && event.keyCode <= 40) ) {
                event.preventDefault();
            }
        }, false);

        document.addEventListener("keyup", function ( event ) {
            if ( (event.keyCode >= 37 && event.keyCode <= 40) ) {
                switch( event.keyCode ) {
                    case 33: // pg up
                    case 37: // left
                    case 38: // up
                             api.prev();
                             break;
                    //case 9:  // tab
                    //case 32: // space
                    case 34: // pg down
                    case 39: // right
                    case 40: // down
                             api.next();
                             break;
                }

                event.preventDefault();
            }
        }, false);

thank u so much again!

FYI, I've now implemented a solution for this in my fork.
The solution is based on @bartaz comment above: key press will only cause navigation, if focus is on BODY or HTML element. The exception is the TAB key, which will always force prev() or next() to be called. A related commit was to add blur() to be called on each transition. This ensures that focus is not left on a form input field that is no longer on the active slide, so that user could type a lot of keys and cause garbage to be accidentally entered into the form field.
You can play with a demo here. (Press pause button on bottom right to disable autoplay.)


css modules are not currently supported

A bug is a crash or incorrect behavior. If you have a debugging or troubleshooting question, please open a discussion on Discussions Tab.
Ruby version: 3.1.2
Rails version: <IP_ADDRESS>
Webpacker version: 6.5.0
Expected behavior:
To support css modules out of the box
Actual behavior:
css modules are not supported. When attempting to import from
import styles from './styles.module.scss'
or
import * as styles from './styles.module.scss'
styles are either undefined or value under className is undefined.
Small, reproducible repo:

I was searched through all internet and was unable to find anything related. So let this issue serve also the purpose of info for those who face the same problem

To fix it we need to slightly change css-loader options and add modules to it:
options: {
  sourceMap: true,
  importLoaders: 2,
  modules: { auto: true }
}

or:
// Patch css-loader rule to support css-modules
const cssLoader = require.resolve('css-loader')
webpackConfig.module.rules.forEach(rule => {
  rule?.use?.forEach(loader => {
    if (loader?.loader === cssLoader) {
      loader.options.modules = {
        auto: true
      }
    }
  })
})

I will be happy to cook the PR, please confirm that it is within project scope.

@skyksandr According to CSS-Loader documentation modules: undefined (the default value, which we're currently using) & modules: {auto: true} result in the same behavior: enable CSS modules for all files matching /\.module\.\w+$/i.test(filename) and /\.icss\.\w+$/i.test(filename) regexp.
This makes me suspect your actual problem is elsewhere in your code-base.

@Judahmeek you're right. I don't know why it did not work without it before and why it work without it now.


Modifiers for unauthorized fields are shown

@ibuildthecloud  Are there any specific fields you could point out so that I could look into those specifically ?

Closed in favor of rancher/rancher#3844


reword readme to include list of core projects

Also improved the description of HoloViz and this repository

@droumis  Feel free to merge!


fixPrepatch is too aggressive about reseting component state

Version
v2.4.0
Reproduction link
https://github.com/Nandiin/nuxt-issue
Steps to reproduce

yarn dev
Navigate via tabs, and note that parent component state is not reset (_pathChanged = true, _queryChanged = false hence _dataRefresh = false)
At either tab, select one of the query ranges (7 days/1 month/all) and then navigate to another tab. Note that parent component state is reset.

What is expected ?
Parent component state should not be reset when navigating sub routes.
What is actually happening?
Parent component state is being reset.
Additional comments?
Related issue: https://github.com/nuxt/nuxt.js/issues/1408
I understand the necessity to have fixPrepatch called after each route navigation (via router.afterEach). But it's too aggressive now and causing some unexpected unconventional behaviors. And it's not clearly documented and needs a lot of human efforts to locate the problem.
Please add a some proper documentation and an option to disable it component-wisely.
My current workaround is to use Object.defineProperty to override _dataRefresh property on component constructors (overriding its setter function to noop), but it's somehow hacky and goes hackier when using class component syntax.

This bug report is available on Nuxt community (#c8560)

Please let me know if you guys need any additional information to proceed on this.

Hey guys, here's a little test I did about how data and asyncData was called while navigating whether path or query was changed.
All routing was done on client side by click <nuxt-link> or by router.push.
Every page component has following logging code:
export default {
    data() {
        console.log('<pagename> data')
        return {}
    },
    asyncData() {
        console.log('<pagename> asyncData')
    },
}

The page directory structure, with 2 static routes /page1 and /page2 and dynamic route _.vue:
+-- pages
    +-- index
    |   +-- _.vue
    |   +-- page1.vue
    |   +-- page2.vue
    +-- index.vue

<!-- index.vue -->
<template>
    <div>
        <nuxt-child />
    </div>
</template>

test project available at: https://codesandbox.io/s/qzllmxvk6
Tests Conditions
route path didn't change

from /page1 to /page1?query=blablabla
from /dynamic1 to /dynamic1?query=blablabla

nothing was called

route path change but w/o query change (query both same or empty)

from /page1 to /page2
from /page1?query=blablabla to /page2?query=blablabla
from /dynamic1 to /dynamic2
from /dynamic1?query=blablabla to /dynamic2?query=blablabla

<to-page> asyncData
<to-page> data

router path change and query change

from /page1 to /page2?query=blablabla
from /dynamic1 to /dynamic2?query=blablabla

index asyncData
<to-page> asyncData
index data
<to-page> data

from the test result above, if both route path and query changed while at one route navigation, the parent route data and asyncData will be called. Static routes and dynamic routes are acting the same.
However, what's interesting is if you try do something like
try navigating from /page1 to /page2?query=blablabla by:

navigate from /page1 to /page1?query=blablabla
navigate from /page1?query=blablabla to /page2?query=blablabla

from the test result above we can know that step 1 won't call any of those function, and step 2 was routing with only path change, so the results will be
page2 asyncData
page2 data

which is actually different from navigating from /page1 to /page2?query=blablabla directly.
If /page1 to /page1?query=blablabla doesn't trigger either of data or asyncData, then navigating
from /page1 to /page2?query=blablabla
should be exactly same as
from /page1?query=blablabla to /page2?query=blablabla
So what would be the expected behavior? Any thoughts about this?
From what I think is that navigating from /page1 to /page2?query=blablabla shouldn't trigger parent route's data and asyncData function.

My current workaround is to use Object.defineProperty to override _dataRefresh property on component constructors (overriding its setter function to noop), but it's somehow hacky and goes hackier when using class component syntax.

I would also like to disable nuxt running fixPrepatch at all as I am watching route params and managing the component's state myself. @pi0 is it planned to add an official way to do that? Maybe a component prop? I don't see any side effects of having an option to disable it at page component level. What do you think?

Gosh, it took me ages to locate this, and I still don’t know how to fix this. I don’t want my data reset when I “route” to the same component with the same key, how can I dsiable this?

Hello, is there any documentation on how this should work and how to disable this behavior?
I have just lost a day in figuring out this unexpected behavior.
Here is a simplified structure that I have:
+-- pages
|   +-- articles
|    |    _slug.vue
|    |     index.vue
I   articles.vue // specific article is rendered in NuxtChild
The issue I have is that when navigating
from /articles/article-1
to /articles/article-2
dynamic route reuses the _slug.vue component inside NuxtChild, the reused component computes values, mounts nested components, and lets me update values in data, but then wipes them with fresh data initialization due to fixPrepatch.
The desired behavior is that it should mimic the mounting of a new component. Specifically,  the data should be initialized before calculating computed properties and before the template calculates its if-else values and mounts nested components.

We are approaching the Nuxt 2 EOL date (June 30, 2024) - see this article for more information. This is advance warning that I'm going to close this issue then, as it's currently marked as a Nuxt 2 related bug.
If it's a critical or security issue, please do comment and let me know, in case it is possible to address it before the EOL date.
If it's a an issue you think is relevant for Nuxt 3, please feel free to open a fresh issue (or just comment here so I can update labels, etc.). 🙏
Thank you for your understanding and for your contribution to Nuxt. ❤

It's the day, at last. Nuxt 2 is now marked end-of-life.
My apologies we never got round to resolving this bug in the 2.x branch, but we do have to draw a line somewhere. Again, if you think this is still relevant for Nuxt going forward, please feel free to open a fresh issue (or just comment here so I can update labels, etc.). 🙏


[MM-33171] Admin guide link should be different for cloud or on-premise instances

Summary

Self-served and cloud licenses redirect to their proper administrator guide
Ticket Link

https://mattermost.atlassian.net/browse/MM-33171
Related Pull Requests

Has server changes (please link here)
Has redux changes (please link here)
Has mobile changes (please link here)

Screenshots

@stevemudie to test this change you need to check in a normal spinwick and a CWs spinwick to check for the different manual links


Watch's the different of ’cochleagram_extractor_wdl‘ and 'cochleagram_extractor' in feature_extractor.py

Watch's the different of ’cochleagram_extractor_wdl‘ and 'cochleagram_extractor' in feature_extractor.py.
I mean I know , one of them make a sum and another use mean. But why ,what's the different used in them?
Thank you

cochleagram_extractor_wdl is a special version of cochleagram_extractor, which is used for a paper posted by Prof. Deliang Wang. You just select one of them depending on the tasks on your hand.


How to use tfdf for regression?

I have tried to add Task=core.Task.REGRESSION argument to both the pd_dataframe_to_tf_dataset and model (all) but i get this error.

train_data = pd_dataframe_to_tf_dataset(car, label="price", task=core.Task.REGRESSION,)
model = tfdf.keras.RandomForestModel()
model.fit(train_data, task=core.Task.REGRESSION,)

ValueError: The model's taskattribute (CLASSIFICATION) does not match thetaskattribute passed topd_dataframe_to_tf_dataset(REGRESSION).
And ofcourse If i don't add core.Task.REGRESSION to pd_dataframe_to_tf_dataset i get the error
ValueError: The number of unique classes (189) exceeds max_num_classes (100). A high number of unique value / classes might indicate that the problem is a regression or a ranking instead of a classification. If this problem is effectively a classification problem, increase max_num_classes`.

Sorry my bad. This works.
_train_data = pd_dataframe_to_tf_dataset(car, label="price", task=core.Task.REGRESSION,)
model = tfdf.keras.RandomForestModel( task=core.Task.REGRESSION)
model.fit(train_data)
_


[Bug]: The License section in the Footer is not interactive

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
The "MIT License" and "Code of Conduct" Section does not redirect users to it's original documentation
Expected behavior
When clicked, the users should be redirected to a website highlighting the platform's license and code of conduct respectively
Add ScreenShots

What browsers are you seeing the problem on?
No response
Record

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

Is this issue open for only GSSOC'24 participants? Otherwise, can I get the links to the pages where users need to be redirected on clicking the "MIT License" and "Code of Conduct" sections respectively?

@ShravaniPathak go ahead

Can you provide the link for the MIT License?

I've also altered the code to be redirected to "https://github.com/HimanshuNarware/CareerZunction_Intern/blob/e360e9bb3bb7a0fdc384506d0657fcd6a0fe7c30/CODE_OF_CONDUCT.md" on clicking the "Code of Conduct" section. Will that be sufficient?


AutoPr-Kusto-liatbezalel-REST Spec PrNumber 5648

/azp run azure-sdk-for-net - mgmt

Jenkins is taking forever to update the status but build has passed


"Cannot read property 'name' of undefined" when logging in

- Do you want to request a feature or report a bug?
Bug
- What is the current behavior?
Every login displays the following warning popup: !
Cannot read property 'name' of undefined
- If the current behavior is a bug, please provide the steps to reproduce.

Log out
Log in

- What is the expected behavior?
Logins do not display any errors or warnings

- Please mention your CMS, node.js, and operating system version.
Running off of Netlify. CMS version ^1.0.0.

@PizzaFox Can you link your repo (and site if possible)?

Live website
Repository

Using localStorage.clear() in the web inspector panel resolved this issue.


chore: remove -fno-sanitize=vptr; add grpc++ to proto deps

This change is

Codecov Report

Merging #3311 into master will decrease coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master   #3311      +/-   ##
=========================================
- Coverage   90.14%   90.1%   -0.05%
=========================================
  Files         457     457
  Lines       41115   41100      -15
=========================================
- Hits        37063   37033      -30
- Misses       4052    4067      +15

Impacted Files
Coverage Δ

google/cloud/storage/well_known_parameters.h
72.52% <0%> (-10.99%)
:arrow_down:

google/cloud/bigtable/internal/common_client.h
89.47% <0%> (-10.53%)
:arrow_down:

google/cloud/storage/well_known_headers.h
70.37% <0%> (-7.41%)
:arrow_down:

...oogle/cloud/bigtable/benchmarks/embedded_server.cc
97.7% <0%> (-1.15%)
:arrow_down:

google/cloud/storage/internal/common_metadata.h
97.05% <0%> (-0.77%)
:arrow_down:

google/cloud/storage/internal/retry_client.cc
98.09% <0%> (-0.28%)
:arrow_down:

google/cloud/storage/object_metadata.h
100% <0%> (ø)
:arrow_up:

google/cloud/storage/internal/generic_request.h
92.3% <0%> (+5.12%)
:arrow_up:

google/cloud/storage/internal/hash_validator.h
80% <0%> (+10%)
:arrow_up:

Continue to review full report at Codecov.

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


Get the property name of the current node that is being evaluated

schema = {
   "type": "object",
   "properties":{
     "name": {
     "type": "string",
     "newKey: "value",
      }
    },
}

def function_1(validator, properties, instance, schema):
      pass

Draft4Validator.VALIDATORS["newKey"] = function_1
Draft4Validator(schema).validate({"name":"123"})

function_1 will be called for each occurrence of newKey is it possible to get the name of the current node that is being evaluated ie. is it possible to get the key name inside function_1.
When I checked was only able to get value of key name 123, value of newKey value and the schema.
I need the specific key that is being evaluated that is name in this case.

Hi -- you can do this by overriding the properties validator instead, which has view over the whole subobject.

Hi -- you can do this by overriding the properties validator instead, which has view over the whole subobject.


I want to add Java code to illustrate HashSet and HashMap.

Please include a small description or summary of the issue here.
The code to illustrate HashSet would give an efficient solution to the problem of counting distinct elements in an array.
The code to illustrate HashMap would give an efficient solution to the problem of counting frequencies of elements in an array.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Additional context
Add any other context or screenshots about the feature request here.
Languages

[ ] Python
[x] Java
[ ] C
[ ] C++

@varad64 We already have some code related to this

I'm sorry about this @kaustubhgupta I actually tried finding the code but couldn't which is why I went for a new issue


A11y_Azure Tools Storage Explorer_Add Account_Connect to Azure Storage_ScreenReader:Narrator is not announcing the texts present under each button in scan off mode.

GitHub Tags:
#A11yMAS; #A11yTCS; #Win11; #DesktopApp; #A11ySev2; #Azure Tools Storage Explorer; #MAS1.3.1; #ScreenReader; #Narrator; #FTP; #Benchmark; #Element:Button-Text;
Actual results:
Narrator is not announcing the text present under each buttons of "Connect to Azure Storage" window in scan off mode.
Expected results:
Narrator should announce the text present under each buttons of "Connect to Azure Storage" window since the text also getting tab focus when announcing the button.
Environmental Details:
Application: Microsoft Azure Storage Explore
version: 1.24.0
OS Details
Microsoft Windows 11 Enterprise
version 21H2 OS Build 22000.613
Repro Steps:

Launch Storage Explorer
Navigate to "Open Connect dialog" pane and Sign in to Azure.
"Connect to Azure Storage" popup opens.
Turn on the Narrator.
Verify that all the elements of "Connect to Azure Storage" screen are accessible and MAS Compliant.

User Impact:
Screen Reader users will be confused if text present inside the button is getting tab focus, but the screen reader is not reading it.
"Check out Accessibility Insights! - Identify accessibility bugs before check-in and make bug fixing faster and easier."
Attachments
https://user-images.githubusercontent.com/105198219/167858771-be093158-e2f8-4e75-bc6e-23a050cc28cc.mp4

This bug is not reproducing on using NVDA. Hence closing the bug.


Fix PP test failiures

Tests that need fixing:
expect mask array but get nans; get wrong bmdi

[x] FAIL: test_save_and_merge (iris.tests.test_cdm.TestMaskedData)

expect ints get floats

[x] FAIL: test_no_forecast_period (iris.tests.test_cube_to_pp.TestPPSave)
[x] FAIL: test_no_forecast_time (iris.tests.test_cube_to_pp.TestPPSave)
[x] FAIL: test_default_coord_system (iris.tests.test_cube_to_pp.TestPPSaveRules)

wrong bmdi

[x] FAIL: test_pp_append_singles (iris.tests.test_cube_to_pp.TestPPSave)
[x] FAIL: test_pp_save_rules (iris.tests.test_cube_to_pp.TestPPSave)
[x] FAIL: test_user_pp_save_rules (iris.tests.test_cube_to_pp.TestPPSave)

The "wrong bmdi" class of test failures was pretty interesting ...
It's not really the case that the bmdi is wrong, it's not simply that the bmdi from the PP Field cannot be preserved from load through to save when the PP Field data is not masked i.e. there is no where to record the PP Field bmdi as a fill-value. In the previous world (master v2 alpha) where fill-value was an attribute on the cube, then that was possible and independent of whether the data payload was masked or not. In v1.13.x an interim solution was put in place to persist the bmdi from PP Field load through to saving (regardless of whether the PP Field data was masked) but only if the cube data was not realised - hardly ideal.
So at the moment, we're stepping back to the behaviour in iris prior to #2452

Closed by #2728


First unstable version (1.0.0)

https://github.com/Ruben-Arushanyan/react-component-shell/releases/tag/v2.0.0


react/no-unknown-property stopped supporting 'download' on  tag

Unknown property 'download' found  react/no-unknown-property
This is perfectly valid attribute for a tag per MDN
It worked nicely before the 7.31.6 update

This has been fixed in #3394. I suppose it will come out with the next release.

Hi @alinsimoc 👋
Do you have a ETA on the next release?

I will release the next patch sometime today.


fix: ast parser error

the code in the editor is incomplete will cause the AST parser error.
When @babel/parser errorRecovery this option is set to true, it will store the parsing error and try to continue parsing the invalid input file.

Codecov Report

Merging #934 (1f36115) into release/1.4.0 (b561b06) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 1f36115 differs from pull request most recent head 6f4fc2a. Consider uploading reports for the commit 6f4fc2a to get more accurate results

@@              Coverage Diff               @@
##           release/1.4.0     #934   +/-   ##
==============================================
  Coverage          57.14%   57.14%
==============================================
  Files                  1        1
  Lines                 70       70
  Branches              18       18
==============================================
  Hits                  40       40
  Misses                30       30

Continue to review full report at Codecov.

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


[TW-138] provide peer data on all interactions

Previously, sending a single message would not show the peer data. Now it does, because a single message interaction is just a conversation where one of the send or receive types is Void. The conversation does not proceed until the peer data of the remote peer is available, as it always will be because they must ACK the request, and peer data is always available if there's at least one incoming connection. (There is a longstanding but rare bug caused by EventConnectionLost which I'll fix soon).
Also included: the set of listeners is computed from the peer data each time a conversation is begun. In a typical application where the peer data specifies version information, this could be very useful: the set of listeners can depend upon the version info, rather than having a fixed set of listeners, each of which depends upon the version info (some of them probably wouldn't make any sense for certain versions).
This change may (probably will) negatively affect performance. Previously, some interactions could go ahead without waiting for the peer data. Now, necessarily, they will all wait for it. There's no avoiding that, but ideally the peer data would remain in memory across multiple interactions with a given peer. A simple way to improve things is to have a keepalive connection which stays up for, say, 30 seconds after the last application connection goes down. We could do that, but I think it's the wrong way around...
After many days of considering other options, I went with this solution because we need something now, and everything else is too radical and would require too much time. But I want to talk about the right way around so that we may eventually come to an agreement and schedule the work to be done.
The motivation for some keepalive connection comes from how time-warp is used in cardano-sl: threads contact peers basically whenever and wherever, with the understanding that some magic in time-warp will make everything maximally efficient. Since there's no application-level structure to the interaction with a given peer, all time-warp can do is guess that you may contact a peer again some time soon, hence the keepalive. I believe explicit sessions as described in #24 are a better solution. No keepalive necessary: the application explicitly delimits an interaction with a peer, in which the peer data is available and during which there need not be any conversations taking place. Instead of contacting peers whenever and wherever, an application is encouraged to establish sessions with those peers with which it anticipates recurring interaction. Those interactions are localized to the thread which establishes the session, and the nature of the interactions itself can depend upon the peer data, which is held across multiple conversations rather than delivered anew for each one.
An example to make things a little more concrete: instead of periodically broadcasting a piece of data to all neighbours by starting a bunch of independent conversations (which may require exchanging peer data), have a long-running explicit session with each of these neighbours, a thread for each, and push the data to broadcast to these threads.
tl;dr time-warp should not attempt to compensate for deficiencies in the architecture of the application (cardano-sl)

TODO before merge: create issue to consider Alex's proposal on explicit sessions and keep-alive later

Am I correct that this PR completely removes one-message style exhanging? And all code in cardano-sl should be refactored in appropriate way (though this refactoring makes code simpler).
But can some optimizations be made? For example, we can introduce function like recvVoid which will send CONNECTION CLOSED after fully receiving and parsing data. So this function can be used instead of old one-message handlers.
Maybe sending CONNECTION CLOSED after receiving data is better for performance if old connections in this new scheme are not reused for single style messaging (or this should go to Application Level how we handle connection reusage?).


Device selection for Command Palette

I haven't been able to debug this command locally to test yet, but I think this is close to a working version. This is the project.json section that allows users to trigger a command manually.

@patridge thanks for this, I wasn't 100% sure where I needed to add that text, so this is great!!


Add check for directory matching a pattern

The DirectoryCheck class is able to check for a specific directory, contained in a package, and to verify that it contains certain files. In the case of dotnet standalone executables, the internal structure of the package is define by Microsoft and may change over time. While DirectoryCheck may be used in such a case, it may not be the most robust solution, since the package structure could change over time.
The console runner build.cake contains an ExtendedDirectoryCheck class, which locates a directory based on a pattern. This is likely to be more robust under future runtimes and ought to be incorporated into the recipe, either as a separate class or integrated into the DirectoryCheck class.

:tada: This issue has been resolved in version 1.3.0 :tada:
The release is available on:

GitHub Release
NuGet Package


Automated Package Upgrade

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket: