Added syntax hightlight for Java

In this pull request,

I have added -D_GNU_SOURCE in the Makefile
I have added syntax highlighting for  Java.

I am re-using syntax_highlight_c_comment and syntax_highlight_c_label  for comment highlighting and label highlighting.
I am re-using syntax_highlight_python_decorator to highlight annotations in Java.
The names of these functions are specific to a language. But, we can use those functions for Java syntax highlighting.
I have not refactored or renamed anything, as this is your project.

This is cool.
Just a few nitpicks, I would highlight the comments first, otherwise you'd get numerical values or strings highlighted inside of them and that's a bit odd.
There are a few NULL values missing at the end of the java_kw, java_types and java_special arrays.
Other than that there are 1 or 2 lines which are not properly indented (missing tabs or flowing over 80 columns).
If you could fix those small issues I will gladly merge this PR.

I have fixed the indentation issue. And, I have moved the comment highlight function before call to function to highlight numbers and string.

Perfect, merged.


Add cross-reference for app and TAN hotline operating hours

This PR adds a cross-reference from this hotline repository to the external website https://www.coronawarn.app/ regarding the operating hours of the hotlines. The following sentence is added to the README file:
"The operating hours of the app and TAN hotlines are listed in the Support section of the Corona-Warn-App website."
So that the operating hours do not have to be maintained in multiple places, the above does not list the hours literally, it only provides a cross-reference to https://www.coronawarn.app/en/faq/#support.
Current / planned changes to operating hours

The current operating hours of the App hotline are Monday to Saturday from 7 a.m. to 10 p.m.
According to issue https://github.com/corona-warn-app/cwa-website/issues/2294 the TAN hotline changed its operating hours on Jan 16, 2022 to Monday to Sunday from 7 a.m. to 8 p.m.

@dsarkar
Please consider this PR. It coincides with the change of operating hours for the TAN hotline.

@Ein-Tim @MikeMcC399 Thanks.


net: TestSendfile does not use sendfile on Windows

https://go.dev/cl/581778 extends the existing TestSendfile* tests in the net package to check to see if sendfile (or the platform equivalent) is actually used.
It appears that in the case of TestSendfile on Windows, we aren't using TransmitFile. Other tests, such as TestSendfileParts are using TransmitFile. I'm not sure what's going wrong. I'll make the test skip the check on Windows for now; filing a bug to keep track of the problem.

still cannot use sendfile() in a http handler:
file, _ := os.Open("file")
w.(io.ReaderFrom).ReadFrom(file)

OR
file, _ := os.Open("file")
file.WriteTo(w)

either way the sendfile / splice will not be called for the following:

caddyhttp.ResponseRecorder does not implement syscall.Conn (zero_copy_linux.go:126)
file *os.Filegot wrapped in os.fileWithoutWriteTo (file.go:269)
(*http.response) ReadFrom()/sendfile() try to use TCPConn.ReadFrom but src is not a *os.File (sendfile_linux_go:20)
fallback to genericReadFrom() (tcpsock_posix.go:54)
(go/1.22.5 )


Create is-array.js

Not sure if you'd appreciate this since it duplicates Array.isArray, but thought I'd put it out there. This one supports IE8 unlike the native one!

You're w/ your comment I have avoided this so far. I expect users that need this functionality to use a polyfill, with great browser tests.


Saving Company Name fails when creating new job

Pressing the "save" button gives the following error message "Value is required and can't be empty".
It does however work, when I press enter instead of the "save" button

Problem confirmed,
in the field "company" you can just enter companies that already exists,
these have to be created in another formular (very inconvenient, we know).
We are still figuring out how to improve the usability, but we have to ensure that a job has a company that is purposely created and maintained.

The problem seems different to me: I can change the company name to anything I like as long as I press the enter key. Likewise I can enter anything - including an existing company -, press the save button and get that error message "Value is required and can't be empty".
If only existing companies can be entered, I would suggest to (at least) auto-complete from the list of existing companies. Ideally there should also be a mechanism which proposes to create a company, should it not already exist in the database.

We've changed the input field type from typeahead to select2. The modification is visible in the demo.
This makes the selection of the hireing company fail safe.
The feature will be released in 0.19


Legacy nnls file cleanup

Based on today's discussion, this PR implements:

LegacyWeightSolver.solve() deletes the nn.orbmat.out file after a successful solve.
Add LegacyWeightSolver deprecation info to the log file and the changelog in the docs.

Idea for testing: run any set of models with weight solver type: "LegacyWeightSolver" and verify that the file nn.orbmat.out is not in the model directory.
Closes #377

Ran test_notebooks.sh and all passed successfully. Happy to merge.
Thanks Thomas! :)


Fix pom.xml files

Enable Spigot, Velocity, and Bungee modules
Add version variables for DepDownloader and ACF, with comments explaining that these must be manually compiled and installed in your local repository
Added version variables for Adventure-Bungeecord and MBassador
Update Kyori version variable
Fix Plan repositories and dependencies in Bungeecord, Spigot, and Velocity modules
Replaced ${adventure.version} with appropriate ${minimessage.version} for Minimessage dependency in Velocity and Bungeecord modules

Hope this PR helps a bit! Looking forward to a more perfect plugin!

Hey! Thanks for the PR - has any of the code in the newly-enabled modules been tested on your end? The reason they were disabled was because of potentially broken and incomplete code that wasn't caught in the rewrite.

Sorry, I should've mentioned this - the other modules have NOT been tested. I know for a fact that the Bungee and Velocity branches do have errors. I can make a commit to re-disable those modules - however, as long as you're compiling only the API, Common, or Paper modules, the other modules won't whine.

Probably best to re-commit and disable em for now, both for ease of compile and so that it's plainly obvious there's something to be done. 😄


Cape Verde Calendar

Calendar from Cape Verde
Change in the way that the list of countries is generated

Can you remove commented code from pull :) ?

Sure, I will also include the missing Portuguese speaking countries calendars in the next commit

I added the missing Portuguese language contries calendars, just a quick reminder, the Angola calendar is valid, like I sad on my other pull request.
I also added another nuget (nodatime) to simplify the calculation of some Islamic holiday that are holidays in some countries that are portuguese speaking but have a mix of Islamic and Catholic holidays.

We have agreed that we make individual pull requests per country.
Why you have implement the CorpusChristi method in the CatholicBaseProvider?
Is this implementation wrong? easter.AddDays(60)
https://github.com/tinohager/Nager.Date/search?utf8=✓&q=Corpus+Christi&type=

I think you must work with branches and pull from a branch to this repository. If you have all changes in one branch you can not split it.

I'm going to make a branch for each calendar


remove server_mode

remove server_mode rust code
remove build.rs
remove https://github.com/fluidex/plonkit/tree/master/proto
remove https://github.com/fluidex/plonkit/tree/master/contrib, except template.sol
clean up cargo.toml and cargo.lock
clean up github ci

closed by #109


Material Desing Version?

HI Team!!
Incredible project. I like a lot!!!
About css, where is it is based ?
https://design.google.com/?
https://getmdl.io/?
And I want to contribute to the project . What can I do?

Hi, Bernando
The project is based on http://materializecss.com/
Thanks for wanting to contribute.
Can you try to implement this easy picking issue?
https://github.com/viewflow/django-material/issues/122


Halfcheetah has negative state in z position

[x] I have marked all applicable categories:

[ ] exception-raising bug
[ ] RL algorithm bug
[ ] system worker bug
[x] system utils bug
[ ] code design/refactor
[ ] documentation request
[ ] new feature request

[x] I have visited the readme and doc
[x] I have searched through the issue tracker and pr tracker
[x] I have mentioned version numbers, operating system and environment, where applicable:import ding, torch, sys
print(ding.__version__, torch.__version__, sys.version, sys.platform)
v0.4.6 1.10.0 3.7.11 (default, Jul 27 2021, 14:32:16)
[GCC 7.5.0] linux

Hi,
I am running sac algorithm on the env halfcheetah-v3 following the default setting and using the standard pipeline serial_pipeline . The final return is 12000 so looks normal. But when I log the observation value to see the maximum and minimal value, I found that the min value of first state z-coordinate of the front tip is negative -0.59, which should always a positive value above the ground? Also, the maximum value of second state angle of the front tip is 10.05, which is also abnormal as it is larger than pi. I am curious if there is any preprocess to the variables? The min and max value for hopper and walker2d is normal actually, so I think by default there are no any preprocess.
Hope to get any hint from you about this. Thanks.

You can turn to this page https://github.com/openai/gym/issues/2932 for your information.
It seems that the so-called "the front tip" is "the head of the cheetah".
"rootz" in the document means "z translation". I think it could be a relative one. But I am not sure about the center of observation.
It may be the mass center. Although it does not matter too much.
The OpenAI team does not make the document clear enough.
You could raise issue in the github of openai/gym for any thing misleading.
The DI-engine will not preprocess observation unless an env wrapper that change the original observation is added.
For example, to transform an image of 0~255 uint8 into -1~1 float.
You could print the env and check if any special wrapper that changes the original observation are added in a debug mode.

You can turn to this page openai/gym#2932 for your information.
It seems that the so-called "the front tip" is "the head of the cheetah". "rootz" in the document means "z translation". I think it could be a relative one. But I am not sure about the center of observation. It may be the mass center. Although it does not matter too much. The OpenAI team does not make the document clear enough. You could raise issue in the github of openai/gym for any thing misleading.
The DI-engine will not preprocess observation unless an env wrapper that change the original observation is added. For example, to transform an image of 0~255 uint8 into -1~1 float. You could print the env and check if any special wrapper that changes the original observation are added in a debug mode.

Thanks for the kind reply. Then it would be a unclear description of the document from Gym, I just want to make sure DI-engine does not do anything about the observation.


conda install does not provide executable on command line

The documentation at pyviz.org states to use
panel --install-examples

to install examples, but no executable is found after install the pyviz channel panel package:
$ conda list panel                                                                                (py37)
# packages in environment at /Users/klay6683/miniconda3/envs/py37:
#
# Name                    Version                   Build  Channel
panel                     0.1.2                      py_0    pyviz
klay6683@MacL3883|~/D/src
$ panel --install-examples                                                                        (py37)
fish: Unknown command 'panel'

I restarted the shell, just in case, to no avail.
And it's not fish either, here's the output with zsh:
(py37) MacL3883% conda list panel
# packages in environment at /Users/klay6683/miniconda3/envs/py37:
#
# Name                    Version                   Build  Channel
panel                     0.1.2                      py_0    pyviz
(py37) MacL3883% which panel
panel not found

Unfortunately, the documentation at pyviz.panel.org refers to the development versions of panel, which do support that command, while the released version does not.  You should use conda install -c pyviz/label/dev.

conda install -c pyviz/label/dev panel ?

Yes.

Okay got that, but now #109 :/


I/O error in serv.log

I run a Gogs setup behind a firewall and I see messages like these;
dial tcp 167.x.y.z:443: i/o timeout

Where 167.x.y.z is the public IP of the HTTPD.
A side-effect of my firewall is that the VM cannot contact its own public IP.

Hi,
What is your version of Gogs?
If not the latest, please update and then give feedback again.

Close due to lack of feedback.


Delta-rs writer hangs with to many file handles open (Azure)

Environment
Delta-rs version: 0.13.0
Binding: Python
Environment:

Cloud provider: azure
OS:
Other:

Bug
What happened:
When writing a delta table with approx 10m records but around 35 partitions it hangs randomly due to many file handlers open.
I was able to narrow it down to the file handles since I set the max_files_open to 2. And then I looped the writing by 25 times which all worked fine.
When i removed this parameter it would randomly fail to write.
Some additional weird behavior, I could see some empty partition folders being created and then it hangs and doesn't do anything for many hours until I manually killed the pipeline.
What you expected to happen:
Write also with many file handles open at same time.
How to reproduce it:
Difficult, but the integration test @roeap triggered todat, since it didn't run for a while, was showing the same behaviour: https://github.com/delta-io/delta-rs/actions/runs/6812593991/job/18525273592
More details:

Sounds like it’s the same issue reported by me #1770

@stefnba indeed seems to be the same issue! Sorry I missed that and also forget to respond there

Closing it in favor of discussion in #1770


Update for Arel 6

The latest Rails ships with Arel v6 - which has changed internals. Update wherex for them.

[ ] Change code to use new collector API
[ ] Replace alias_method_chain with Module#prepend

Actually, seems Arel 6 has regexp built in (for postgres), I'll create a patch for MySQL and retire my gem.


[BEAM-5730] Migrate ITs using DataflowRunner to use custom worker

Commit https://github.com/apache/beam/commit/e1b7a9be3a4a73460e1f4cdacf839638e2b2d889 migrated java dataflow runner ITs with legacy java worker to use custom worker jar. R: @herohde, @lukecwik
Commit https://github.com/apache/beam/commit/3eba07962939486b83fbec67352e5cfc15c0e5ee changed the way setting up experiments. We shouldn't use Immutable list to set. R: @pabloem

Run Java PostCommit

Run Java PreCommit

Run Java PostCommit

All tests passed. Please review this PR @lukecwik

This PR is ready to merge if there is no more concerns. @lukecwik

Run Java PostCommit

R: @lukecwik , latest commits address comments above.


sqlx::query!(..) inferring wrong Option NULLable-types

Environment:

PostgreSQL 14.1
sqlx = { version = "0.5", features = [ "runtime-async-std-native-tls", "postgres", "offline", "time" ] }

I don't think this issue is related to OS-specifics, so please let me know, if you need more information here.
Description
My DB schema:
CREATE TABLE department (
  id              SERIAL PRIMARY KEY,
  name            TEXT NOT NULL
);

CREATE TABLE person (
  id              SERIAL PRIMARY KEY,
  name            TEXT NOT NULL,
  department_id   INT references department(id) NOT NULL
);

CREATE TABLE training (
  id              SERIAL PRIMARY KEY,
  name            TEXT NOT NULL
);

CREATE TABLE person_training (
  trainee_person_id   INT references person(id) NOT NULL,
  training_id         INT references training(id) NOT NULL,
  PRIMARY KEY (trainee_person_id, training_id),

  advisor_person_id   INT references person(id) NULL,
  progress            REAL NOT NULL
);

CREATE TABLE person_training_log (
  id                  SERIAL PRIMARY KEY,
  trainee_person_id   INT references person(id) NOT NULL,
  training_id         INT references training(id) NOT NULL,
  author_person_id    INT references person(id) NOT NULL,
  comment             TEXT NOT NULL,
  created             TIMESTAMP NOT NULL,
  updated             TIMESTAMP NOT NULL
);

I need to make a query with a subselect and some joins, where (in my opinion) sqlx has a bug.
At first here is a query which is smaller, but part of the larger query, which doesn't work.
This smaller one here works and also has a left join and subselect. sqlx correctly understands, that both select fields may be NULL, so great.
        let trainings = query!(r#"
            SELECT
                ptl_last.created            AS last_log_created,
                ptl_last.comment            AS last_log_comment
            FROM
                person_training pt
            LEFT JOIN (
                SELECT
                    ptl.trainee_person_id,
                    ptl.training_id,
                    ptl.created,
                    ptl.comment,
                    ROW_NUMBER() OVER(
                        PARTITION BY
                            ptl.trainee_person_id, ptl.training_id
                        ORDER BY
                            ptl.created
                        DESC
                    ) as i
                FROM
                    person_training_log ptl
            ) ptl_last
            ON
                ptl_last.i = 1 AND
                ptl_last.training_id = pt.training_id AND
                ptl_last.trainee_person_id = pt.trainee_person_id
            WHERE
                pt.trainee_person_id = 9
        "#).fetch_all(&self.config.db_pool).await.unwrap();

        if let Some(created) = trainings[0].last_log_created {
            // ok compiles, it's an Option
        }

Now when I make the actual query it fails:
let trainings = query!(r#"
            SELECT
                t.id                        AS training_id,
                t.name                      AS training_name,
                pt.progress                 AS training_progress,
                p_a.name					AS advisor_name,
                ptl_last.created            AS last_log_created,
                ptl_last.comment            AS last_log_comment,
                p_ptl_last_a.name           AS last_log_author_name
            FROM
                person_training pt
            INNER JOIN
                training t
            ON
                pt.training_id = t.id
            LEFT JOIN
                person p_a
            ON
                p_a.id = pt.advisor_person_id
            LEFT JOIN (
                SELECT
                    ptl.trainee_person_id,
                    ptl.training_id,
                    ptl.created,
                    ptl.author_person_id,
                    ptl.comment,
                    ROW_NUMBER() OVER(
                        PARTITION BY
                            ptl.trainee_person_id, ptl.training_id
                        ORDER BY
                            ptl.created
                        DESC
                    ) as i
                FROM
                    person_training_log ptl
            ) ptl_last
            ON
                ptl_last.i = 1 AND
                ptl_last.training_id = pt.training_id AND
                ptl_last.trainee_person_id = pt.trainee_person_id
            LEFT JOIN
                person p_ptl_last_a
            ON
                p_ptl_last_a.id = ptl_last.author_person_id
            WHERE
                pt.trainee_person_id = $1
        "#, person_id)
            .fetch_all(&self.config.db_pool)
            .await
            .map_err(sqlx_error_into_status)?;

        if let Some(created) = trainings[0].last_log_created {
            // 312 |             if let Some(created) = trainings[0].last_log_created {
            //     |                    ^^^^^^^^^^^^^   ----------------------------- this expression has type `PrimitiveDateTime`
            //     |                    |
            //     |                    expected struct `PrimitiveDateTime`, found enum `Option`
            //     |
            //     = note: expected struct `PrimitiveDateTime`
            //                 found enum `Option<_>`
        }

It's almost the same context: field of a left-joined table (which should always be consider nullable I guess?). And indeed .await returns Err(..) with message "error occurred while decoding column 4: unexpected null; try decoding as an Option".
Checking generated meta data, sqlx doesn't get the nullable fields correctly.
sqlx-data.json:
{
  "a05641face9dea9a20ab8d564a723f893ffb3dc8b490cd00c0843694558caf39": {
    "describe": {
      "columns": [
        {
          "name": "last_log_created",
          "ordinal": 0,
          "type_info": "Timestamp"
        },
        {
          "name": "last_log_comment",
          "ordinal": 1,
          "type_info": "Text"
        }
      ],
      "nullable": [
        true,
        true
      ],
      "parameters": {
        "Left": []
      }
    },
    "query": "\n            SELECT\n                ptl_last.created            AS last_log_created,\n                ptl_last.comment            AS last_log_comment\n            FROM\n                person_training pt\n            LEFT JOIN (\n                SELECT\n                    ptl.trainee_person_id,\n                    ptl.training_id,\n                    ptl.created,\n                    ptl.comment,\n                    ROW_NUMBER() OVER(\n                        PARTITION BY\n                            ptl.trainee_person_id, ptl.training_id\n                        ORDER BY\n                            ptl.created\n                        DESC\n                    ) as i\n                FROM\n                    person_training_log ptl\n            ) ptl_last\n            ON\n                ptl_last.i = 1 AND\n                ptl_last.training_id = pt.training_id AND\n                ptl_last.trainee_person_id = pt.trainee_person_id\n            WHERE\n                pt.trainee_person_id = 9\n        "
  },
  "209ab5928f26319c8c7780d6ea469563086d7e09ba7d766e3441c2bbbff189ff": {
    "describe": {
      "columns": [
        {
          "name": "training_id",
          "ordinal": 0,
          "type_info": "Int4"
        },
        {
          "name": "training_name",
          "ordinal": 1,
          "type_info": "Text"
        },
        {
          "name": "training_progress",
          "ordinal": 2,
          "type_info": "Float4"
        },
        {
          "name": "advisor_name",
          "ordinal": 3,
          "type_info": "Text"
        },
        {
          "name": "last_log_created",
          "ordinal": 4,
          "type_info": "Timestamp"
        },
        {
          "name": "last_log_comment",
          "ordinal": 5,
          "type_info": "Text"
        },
        {
          "name": "last_log_author_name",
          "ordinal": 6,
          "type_info": "Text"
        }
      ],
      "nullable": [
        false,
        false,
        false,
        false,
        false,
        false,
        false
      ],
      "parameters": {
        "Left": [
          "Int4"
        ]
      }
    },
    "query": "\n            SELECT\n                t.id                        AS training_id,\n                t.name                      AS training_name,\n                pt.progress                 AS training_progress,\n                p_a.name\t\t\t\t\tAS advisor_name,\n                ptl_last.created            AS last_log_created,\n                ptl_last.comment            AS last_log_comment,\n                p_ptl_last_a.name           AS last_log_author_name\n            FROM\n                person_training pt\n            INNER JOIN\n                training t\n            ON\n                pt.training_id = t.id\n            LEFT JOIN\n                person p_a\n            ON\n                p_a.id = pt.advisor_person_id\n            LEFT JOIN (\n                SELECT\n                    ptl.trainee_person_id,\n                    ptl.training_id,\n                    ptl.created,\n                    ptl.author_person_id,\n                    ptl.comment,\n                    ROW_NUMBER() OVER(\n                        PARTITION BY\n                            ptl.trainee_person_id, ptl.training_id\n                        ORDER BY\n                            ptl.created\n                        DESC\n                    ) as i\n                FROM\n                    person_training_log ptl\n            ) ptl_last\n            ON\n                ptl_last.i = 1 AND\n                ptl_last.training_id = pt.training_id AND\n                ptl_last.trainee_person_id = pt.trainee_person_id\n            LEFT JOIN\n                person p_ptl_last_a\n            ON\n                p_ptl_last_a.id = ptl_last.author_person_id\n            WHERE\n                pt.trainee_person_id = $1\n        "
  }
}

Is it possible to have a workaround maybe without offline queries in this case, but still use the feature for the rest of the project?
Thank you
Philipp

I have a similar error with simpler setup. When using the macro (query_as!) the null-ability is not correct. When using the function (query_as) the null-ability is correct. The second one can be used as an workaround in my case.

sqlite3 (3.38.5 2022-05-06 15:25:27 78d9c993d404cdfaa7fdd2973fa1052e3da9f66215cff9c5540ebe55c407alt1)
sqlx = { version = "0.5", features = ["runtime-tokio-rustls", "postgres", "sqlite", "offline"]}

My database schema:
CREATE TABLE tblmedia(
  id INTEGER PRIMARY KEY NOT NULL,
  title VARCHAR NOT NULL,
  raiting INTEGER,
  file_name VARCHAR NOT NULL,
  media_type TEXT NOT NULL
);

CREATE TABLE tblbook(
  id INTEGER PRIMARY KEY NOT NULL,
  author VARCHAR,

  FOREIGN KEY (id) REFERENCES tblmedia(id) ON DELETE CASCADE
);

CREATE VIEW book AS
SELECT
  m.id as id,
  m.title as title,
  b.author as author,
  m.raiting as raiting,
  m.file_name as file_name
FROM tblbook b
LEFT JOIN tblmedia m ON m.id = b.id;

The struct:
#[derive(Debug, PartialEq, Eq, sqlx::FromRow)]
pub struct Book {
    pub id: i64,
    pub author: Option<String>,
    pub title: String,
    pub raiting: Option<i64>,
    pub file_name: String,
}

The SQL queries
// Does work
sqlx::query_as(r#"SELECT id, author, title, raiting, file_name FROM book;"#)
.fetch_all(connection)
.await;

// Does not work
sqlx::query_as!(
  Book,
  r#"SELECT id, author, title, raiting, file_name FROM book"#
)
.fetch_all(connection)
.await;

The error
error[E0308]: mismatched types
  --> src/database/book.rs:33:9
   |
33 | /         sqlx::query_as!(
34 | |             Book,
35 | |             r#"SELECT id, author, title, raiting, file_name FROM book"#
36 | |         )
   | |_________^ expected struct `String`, found enum `Option`
   |
   = note: expected struct `String`
                found enum `Option<String>`

I have the same question。

I have the same question:
code:
sqlx::query_as!(ReplyMsg,"select msg_id,mobile,content,ext,DATE_FORMAT(create_time,'%Y-%m-%d %H:%i-%s') as create_time,username from reply where mobile like ? and content like ? and create_time > ? limit 50",format!("%{}%",mobile),format!("%{}%",content),&now.format("%Y-%m-%d").to_string()).fetch_all(&pool).await;
table:
CREATE TABLE sms.report  (
num int UNSIGNED NOT NULL AUTO_INCREMENT,
msg_id varchar(50) NOT NULL DEFAULT '',
mobile varchar(20) NOT NULL DEFAULT '',
report_time datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP,
code varchar(10) NOT NULL DEFAULT '',
msg varchar(50) NOT NULL DEFAULT '',
extend varchar(255) NOT NULL DEFAULT '',
pk_total int(0) NOT NULL DEFAULT 1,
pk_number int(0) NOT NULL DEFAULT 1,
username varchar(10) NOT NULL DEFAULT '',
PRIMARY KEY (num)
);
struct:
#[derive(Serialize, Deserialize, Debug,sqlx::FromRow)]
pub struct ReportMsg {
#[serde(rename = "msgId")]
msg_id:String,
mobile:String,
#[serde(rename = "reportTime")]
report_time:Option,
code:String,
msg:String,
extend:Option,
#[serde(rename = "pkTotal")]
pk_total:i32,
#[serde(rename = "pkNumber")]
pk_number:i32,
username:String
}
I change the table make extend null,it works。originally I don't want to change it。

@DaAitch @liolin would both of you please provide the output of EXPLAIN (VERBOSE, FORMAT JSON) <query> as that is what the Postgres driver uses for nullability analysis.

@abonander , when I execute EXPLAIN (VERBOSE, FORMAT JSON) SELECT id, author, title, raiting, file_name FROM book; I get the following output:
[
  {
    "Plan": {
      "Node Type": "Hash Join",
      "Parallel Aware": false,
      "Async Capable": false,
      "Join Type": "Left",
      "Startup Cost": 23.73,
      "Total Cost": 49.77,
      "Plan Rows": 1270,
      "Plan Width": 104,
      "Output": ["m.id", "b.author", "m.title", "m.raiting", "m.file_name"],
      "Inner Unique": true,
      "Hash Cond": "(b.id = m.id)",
      "Plans": [
        {
          "Node Type": "Seq Scan",
          "Parent Relationship": "Outer",
          "Parallel Aware": false,
          "Async Capable": false,
          "Relation Name": "tblbook",
          "Schema": "public",
          "Alias": "b",
          "Startup Cost": 0.00,
          "Total Cost": 22.70,
          "Plan Rows": 1270,
          "Plan Width": 36,
          "Output": ["b.id", "b.author"]
        },
        {
          "Node Type": "Hash",
          "Parent Relationship": "Inner",
          "Parallel Aware": false,
          "Async Capable": false,
          "Startup Cost": 16.10,
          "Total Cost": 16.10,
          "Plan Rows": 610,
          "Plan Width": 72,
          "Output": ["m.id", "m.title", "m.raiting", "m.file_name"],
          "Plans": [
            {
              "Node Type": "Seq Scan",
              "Parent Relationship": "Outer",
              "Parallel Aware": false,
              "Async Capable": false,
              "Relation Name": "tblmedia",
              "Schema": "public",
              "Alias": "m",
              "Startup Cost": 0.00,
              "Total Cost": 16.10,
              "Plan Rows": 610,
              "Plan Width": 72,
              "Output": ["m.id", "m.title", "m.raiting", "m.file_name"]
            }
          ]
        }
      ]
    }
  }
]

That's actually not a false positive, look back at the view you created:
CREATE VIEW book AS
SELECT
  m.id as id,
  m.title as title,
  b.author as author,
  m.raiting as raiting,
  m.file_name as file_name
FROM tblbook b
LEFT JOIN tblmedia m ON m.id = b.id;

All those columns are coming from the m table brought in by a left join, which means they may not be present.
Since you're selecting from tblbook which is foreign-keyed to tblmedia, you would always expect there to be a corresponding tblmedia row if there is a tblbook row, which would be INNER JOIN, not LEFT JOIN.

Running into something similar:
CREATE TABLE Donations (
    id INTEGER PRIMARY KEY,
    user TEXT NOT NULL,
    amount REAL NOT NULL,
    message TEXT,
    timestamp REAL NOT NULL
);

For the query I have:
 sqlx::query_as!(DonationRow,"SELECT * FROM Donations ORDER BY timestamp DESC LIMIT ?", limit)

And the struct:
#[derive(Debug)]
#[allow(dead_code)]
struct DonationRow {
    id: i64,
    user: String,
    amount: f64,
    message: Option<String>,
    timestamp: f64,
}

And the error:
   Compiling mock_server v0.1.0 (/home/jeanluc/Code/self_funding/mock_server)
warning: unused import: `codegen::http::request`
 --> src/main.rs:6:13
  |
6 | use tonic::{codegen::http::request, transport::Server, Request, Response, Status};
  |             ^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

error[E0308]: mismatched types
  --> src/main.rs:50:55
   |
50 |               Some(proto::DonationsOrder::Timestamp) => sqlx::query_as!(
   |  _______________________________________________________^
51 | |                 DonationRow,
52 | |                 "SELECT * FROM Donations ORDER BY timestamp DESC LIMIT ? ",
53 | |                 limit
54 | |             ),
   | |_____________^ expected `i64`, found enum `Option`
   |
   = note: expected type `i64`
              found enum `Option<i64>`
   = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0308]: mismatched types
  --> src/main.rs:50:55
   |
50 |               Some(proto::DonationsOrder::Timestamp) => sqlx::query_as!(
   |  _______________________________________________________^
51 | |                 DonationRow,
52 | |                 "SELECT * FROM Donations ORDER BY timestamp DESC LIMIT ? ",
53 | |                 limit
54 | |             ),
   | |_____________^ expected struct `String`, found enum `Option`
   |
   = note: expected struct `String`
                found enum `Option<String>`
   = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0308]: mismatched types
  --> src/main.rs:50:55
   |
50 |               Some(proto::DonationsOrder::Timestamp) => sqlx::query_as!(
   |  _______________________________________________________^
51 | |                 DonationRow,
52 | |                 "SELECT * FROM Donations ORDER BY timestamp DESC LIMIT ? ",
53 | |                 limit
54 | |             ),
   | |_____________^ expected `f64`, found enum `Option`
   |
   = note: expected type `f64`
              found enum `Option<f64>`
   = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info)

I had this same problem. I ended up resolving it by explicitly marking the joined-in column as optional col as "col?".

I had this same problem. I ended up resolving it by explicitly marking the joined-in column as optional col as "col?".

@0rvar
This was very helpful and worked for me, thanks.  My question is, is this SQL, Postgres, or SQLX syntax?  Is this documented anywhere?
This is very useful but there's no way I would have ever figured that out if I hadn't seen your comment.

@Sharpiro I think you meant to @ someone else.
However, I believe this issue is resolved in sqlx 0.7. That has been my experience in any case. Try upgrading and see if that helps

@Sharpiro I think you meant to @ someone else.
However, I believe this issue is resolved in sqlx 0.7. That has been my experience in any case. Try upgrading and see if that helps

Ahh sorry I meant to tag @martijnarts
But I'm not really saying there is a problem, I'm just curious about the col as "col?" syntax

@Sharpiro this is SQLx behavior, and it's documented here.

@Sharpiro this is SQLx behavior, and it's documented here.

Great thanks

I feel sorry for opening an issue and then not actively participating for a long while.
For what I understood sqlx forwards SQL to the specific db server and get back the meta data for the query, which is a genius idea. If there are Option<..>-types where you don't expect them or the other way round, the DB seems to have taken into account more than you, or it can't understand some constraints in the SQL, so you need to put more information into the SQL, like mentioned in the comments before, so this is no issue anymore.
Thanks for clarifying.

How does it work with enums?
I have last_message.message_type AS "message_type?: MessageType"
but I get unexpected null; try decoding as an Option

https://github.com/launchbadge/sqlx/issues/3372#issuecomment-2247601681
Hi , look at my new example, i don't use any JOIN, but this problem is still
use Force Not-Null is risky cause that i don't konw whether this column is really NULLABLE when i change it


Keyboard configurator

🎉 Feature Request
Summary
I think about something like keyboard configurator with codegenerator of commands.
At the end of script execution user will receive zip-file with pre-generated commands.
That do you think, guys? How about do this tool together?

What kind of commands do you have in mind?
To make a more complex command, this generator would need to be pretty complex.
You're of course always welcome to start developing something. It could be an addon to the core project :+1:

I mean something like simple visual editor for commands.
For example user click "Add command" and write "/start".
Next he will be choise needed action (Call external script, send response, etc).
I will think about conception.

So the command itself still needs to be specifically written.
This could be an idea for a CLI application, to help generate commands from a template or something.

I will think about conception.

Ok! :+1:

Yes, i mean something like CLI with actions and algo for generate commands codebase.

Well you could 'easy' generate the code for the Keyboard array that the user can copy into his command
since there is a limited function that the keyboard can technically that should not be too complicated to code such a configurator
generate the whole command would be quite much but it should be enough to generate the array code for the keyboard layout


Vectorize CharacterMap.IndexOfOpeningCharacter

A 1-2.5% improvement for parsing (on x86 LE hardware only for now)
For long runs without an opening character, the vectorized loop is ~8x faster.

Method
AdvancedPipeline
Mean
Error
StdDev
Median

Parse
False
262.6 us
0.73 us
3.64 us
263.5 us

Parse
True
366.9 us
0.43 us
2.16 us
367.2 us

Method
AdvancedPipeline
Mean
Error
StdDev

Parse
False
259.5 us
0.18 us
0.91 us

Parse
True
357.9 us
0.41 us
2.06 us

Nice!

Some good news, this now turned into a discussion about where we can improve the existing helper methods in .NET: https://github.com/dotnet/runtime/issues/68328


README: Update info links

CyanogenMod Building Basics served from archive.org as a temporary workaround
Learning to Build removed as it is only a section within the Building Basics
Build info for hammerhead changed to LineageOS wiki

Relevant to issue stucki/docker-lineageos#23

Thanks for your contribution!


Implement Enumerable#any?; Add refute method for specs; Fix Enumerabl…

See Issue #57

LGTM! Thanks :)


Refactored u16 to use the BlockExt trait

Checklist

[ ] Linked to Github Issue
[ ] Unit tests added
[ ] Integration tests added.
[ ] This change requires new documentation.

[ ] Documentation has been added/updated.

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

Project coverage is 91.61%. Comparing base (b2f1568) to head (afebc44).
Report is 11 commits behind head on main.

:exclamation: Current head afebc44 differs from pull request most recent head 66e8d4a
Please upload reports for the commit 66e8d4a to get more accurate results.

Files
Patch %
Lines

src/libfuncs/uint16.rs
92.72%
12 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #668      +/-   ##
==========================================
- Coverage   91.95%   91.61%   -0.35%
==========================================
  Files         112      115       +3
  Lines       34265    34554     +289
==========================================
+ Hits        31509    31656     +147
- Misses       2756     2898     +142

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


Term request

Hi,

The inclusion of the term "fibroblast of reticular layer of dermis" as subtype
of CL:0002551 "fibroblast of dermis" would be very much appreciated.

Regards,

Bernard

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 1 Mar 2013 at 10:47

add with TG

This term was submitted via term genie but I don't see the new term in the CL
[Term]
id: CL:2000096
name: reticular layer of dermis fibroblast
namespace: cell
def: "Any fibroblast that is part of a reticular layer of dermis." [GOC:TermGenie]
synonym: "fibroblast of reticular layer of dermis" EXACT []
intersection_of: CL:0000057 ! fibroblast
intersection_of: part_of UBERON:0001993 ! reticular layer of dermis
created_by: vasilevs
creation_date: 2015-08-11T16:28:16Z

it's there:
$ grep 2000096 cl-edit.owl
Declaration(Class(<http://purl.obolibrary.org/obo/CL_2000096>))
AnnotationAssertion(rdfs:label
<http://purl.obolibrary.org/obo/CL_2000096> "reticular layer of dermis
fibroblast"^^xsd:string)
AnnotationAssertion(Annotation(<http://www.geneontology.org/formats/oboInOwl#hasDbXref>
"GOC:TermGenie"^^xsd:string)
<http://purl.obolibrary.org/obo/IAO_0000115>
<http://purl.obolibrary.org/obo/CL_2000096> "Any fibroblast that is part
of a reticular layer of dermis."^^xsd:string)
AnnotationAssertion(<http://www.geneontology.org/formats/oboInOwl#creation_date>
<http://purl.obolibrary.org/obo/CL_2000096>
"2015-08-11T16:28:16Z"^^xsd:string)
AnnotationAssertion(<http://www.geneontology.org/formats/oboInOwl#created_by>
<http://purl.obolibrary.org/obo/CL_2000096> "TermGenie"^^xsd:string)
AnnotationAssertion(<http://www.geneontology.org/formats/oboInOwl#hasOBONamespace>
<http://purl.obolibrary.org/obo/CL_2000096> "cell"^^xsd:string)
AnnotationAssertion(<http://www.geneontology.org/formats/oboInOwl#id>
<http://purl.obolibrary.org/obo/CL_2000096> "CL:2000096"^^xsd:string)
EquivalentClasses(<http://purl.obolibrary.org/obo/CL_2000096>
ObjectIntersectionOf(ObjectSomeValuesFrom(<http://purl.obolibrary.org/obo/BFO_0000050>
<http://purl.obolibrary.org/obo/UBERON_0001993>)
<http://purl.obolibrary.org/obo/CL_0000057>))

On 11 Aug 2015, at 16:36, nicolevasilevsky wrote:

This term was submitted via term genie but I don't see the new term in
the CL
[Term]
id: CL:2000096
name: reticular layer of dermis fibroblast
namespace: cell
def: "Any fibroblast that is part of a reticular layer of dermis."
[GOC:TermGenie]
synonym: "fibroblast of reticular layer of dermis" EXACT []
intersection_of: CL:0000057 ! fibroblast
intersection_of: part_of UBERON:0001993 ! reticular layer of dermis
created_by: vasilevs
creation_date: 2015-08-11T16:28:16Z

Reply to this email directly or view it on GitHub:
https://github.com/obophenotype/cell-ontology/issues/25#issuecomment-130111921

I see it now, thanks!


da-DK: fix translation typo (burger!)

This PR fixes a typo in the Danish translation file - where the User was with a typo called a Burger.

You got it Burger!


Feature/track cache hits

Closes #27

Test:

Test

This is no longer possible now that the API is running on an OCI instance as we don't have access to Vercel's caching.


DataService->Query() has unused params

here's the docblock and function signature for the Query method
    /**
     * Retrieves specified entities based passed page number and page size and query
     *
     * @param string $query Query to issue
     * @param int $pageNumber Starting page number
     * @param int $pageSize Page size
     * @return array Returns an array of entities fulfilling the query.
     */
    public function Query($query, $pageNumber = 0, $pageSize = 500)

$pageNumber and $pageSize are UNUSED... passing values does absolutely nothing
(there's no func_get_args() type call to grab these param values either)
if someone wants to specify page & pagesize, they need to specify it in the query
ie: STARTPOSITION 11 MAXRESULTS 10
unrelated:  only being able to pass 30 entities in a batch request seems pretty weak.

@bkdotcom
Brad, I will assign it to me now, but it will be fixed at a later release, as I have something on a higher priority right now. This is a known issue and I probably will fix it along with the GraphQL support

@bkdotcom
The query method is outdated. It should be
public function Query($query, $pageNumber = 0, $pageSize = 500)
However, for version compatibility, I cannot remove the two parameters. I will include this in the readme file for how to use pagination.
Thanks for pointing it out.
Best,
Hao


ReferenceError: sails is not defined

When following the steps in the README, I am having difficulty setting up local.js. I am getting errors related to sails not being defined:
Details:ReferenceError: sails is not defined

and...
sails.config.permissions.adminUsername = 'admin',
     ^
SyntaxError: Unexpected token .

Where should I put the initial admin configuration object, inside of module.exports?

Getting the same error

What version of sails?


Submit and maintain conda recipes on conda-forge

conda-forge is a community-driven effort to supply well-maintained conda recipes for packages in the (mostly scientific) python ecosystem. It also provides automated building upon release on multiple platforms (Linux, OSX, Windows), testing, and submission to the Anaconda cloud.
I suggest we follow the instructions for adding our datreant conda recipes to conda-forge. This could save us the hassle of building these ourselves on every release, and is the first step toward testing on more platforms.
I've already done the first step, which is to clone the staged-recipes repo, but I've gone no further so far.

@kain88-de do you have interest in this? You're the most well-versed in conda, and this might help to ease your burden here.

sure I can have a look into it. It will take some time though.

conda forge looks nice and I think I understand how they build all the different os versions now.
@dotsdl do you know if there is some mailing list for conda-forge I can't find anything on the website

I'll try adding the missing dependencies first and then we see to add all datreant packages one after the other.

See https://github.com/conda-forge/staged-recipes/pull/1123

@kain88-de I can't find a mailing list, and I think that's because they do all their communication through the github org, in particular the website issue tracker. Phillip Elson gave a good talk at SciPy highlighting the motivations and the machinery behind how conda-forge works; this might be of use.

@kain88-de thanks for doing this! It looks fuzzywuzzy, python-Levenshtein, six, and pathlib2 are already there, so we only need asciitree and scandir for making datreant.core work.

asciitree is in. Now on to scandir

Awesome. Hope it wasn't much of a hassle, and that this makes the conda end of things easier to maintain. Thanks @kain88-de!

nope not really. I'll add the @datreant/coredevs as maintainers for the datreant packages when I submit them

@kain88-de now that conda-forge/staged-recipes#1144 has been merged, is this issue closed?

Data is missing.

https://github.com/conda-forge/datreant.data-feedstock
We are there now. Everything except mdsynthesis is in.

Awesome, thanks @kain88-de for making this happen despite the lengthy process. Hopefully this makes maintaining conda builds that much easier for the foreseeable future.


Which is the simple way to use intel-tensorflow instead of tensorflow

Hi, i've got several intel system and i would like to use ImageAI on them.
Tensorflow python package doesn't use the embedded GPU so i would like to try ImageAI with intel-tensorflow python package.
Does anyone has some tips in order to achieve the result?
Thanks

mmm probably is just necessary to install intel-tensorflow instead of tensorflow

I didn't know of its existence. Can you share your results on this?

i will do, but i missunderstood the meaning of the intel-tensorflow package: it isn't for intel-egpu but only for activating a particular feature for intel's cpu.

ImageAI automatically uses your GPU as far as you have the GPU version of Tensorflow installed on your machine.


Modified styles to affect only parts of the extension #5 & Added text editor #4

This pull request reopens #11
Need to set text to the ace editor instead of the default textarea`.

The highlighted part in the "ëxtensionController.js" is where I have written the code to set the latest query to the textbox

Removed text editor changes. Won't be implementing it in first release.


redundant image pull shall be avoided (rootless & root)

kind feature
Description
Currently if an image is pulled as root and again same image is pulled in rootless mode (vise-versa too), the whole image is downloaded again. Since, the image is locally available, this shall be avoided.
rootless & root mode should be enforced towards container execution & can be avoided at image management
few of reasons:

Image pull in one of most time consuming process in whole container management.
CI/CD systems, where same tests expected to be tested for an application in case of both root & rootless mode, redundant image download increase time to test.

Steps to reproduce the issue:

pull image in root mode.

sudo podman pull docker.io/library/busybox
$ sudo podman pull busybox
Trying to pull docker://busybox...Getting image source signatures
Copying blob 697743189b6d [======================================] 738.2KiB / 738.2KiB
Copying config d8233ab899 [======================================] 1.5KiB / 1.5KiB
Writing manifest to image destination
Storing signatures
d8233ab899d419c58cf3634c0df54ff5d8acc28f8173f09c21df4a07229e1205

pull image in rootless mode.

$ podman pull busybox
Trying to pull docker://busybox...Getting image source signatures
Copying blob 697743189b6d [======================================] 738.2KiB / 738.2KiB
Copying config d8233ab899 [======================================] 1.5KiB / 1.5KiB
Writing manifest to image destination
Storing signatures
d8233ab899d419c58cf3634c0df54ff5d8acc28f8173f09c21df4a07229e1205

Describe the results you received:
Each time, image is downloaded from remote registry
Describe the results you expected:
Once downloaded, it should not be downloaded next time from remote registry
Additional information you deem important (e.g. issue happens only occasionally):
Output of podman version:
$ podman version
Version:            1.2.0-dev
RemoteAPI Version:  1
Go Version:         go1.11.1
Git Commit:         68e3df37248da85f58662c00e0934d1359f0fdc0-dirty
Built:              Fri Mar 22 14:43:55 2019
OS/Arch:            linux/amd64

Output of podman info --debug:
(paste your output here)

Additional environment details (AWS, VirtualBox, physical, etc.):

Hi @kunalkushwaha, thanks a lot for opening the issue!
Good news, this issue is already being tracked and worked on. If you're interested, you can follow https://github.com/containers/skopeo/pull/619. We have to iron out some rough edges regarding the lock management, but you can expect it to be merged into Podman soon.
I am closing this issue as there is already https://github.com/containers/libpod/issues/1911.

Thanks for update. I will followup  #1911 & containers/skopeo#619

@vrothberg It looks like, the download for parallel process (but in same mode) is only handled with containers/skopeo#619.
Will this fix issue of root and rootless mode too? As I see the image store is different for both root & rootless mode.
rootless
store:
  ConfigFile: /home/kunal/.config/containers/storage.conf
  ContainerStore:
    number: 8
  GraphDriverName: vfs
  GraphOptions: null
  GraphRoot: /home/kunal/.local/share/containers/storage
  GraphStatus: {}
  ImageStore:
    number: 12
  RunRoot: /run/user/1000/run
  VolumePath: /home/kunal/.local/share/containers/storage/volumes

root
store:
  ConfigFile: /etc/containers/storage.conf
  ContainerStore:
    number: 12
  GraphDriverName: overlay
  GraphOptions: null
  GraphRoot: /var/lib/containers/storage
  GraphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
    Using metacopy: "false"
  ImageStore:
    number: 121
  RunRoot: /var/run/containers/storage
  VolumePath: /var/lib/containers/storage/volumes

@kunalkushwaha, yes this will work transparently for both, root and rootless. Skopeo doesn't yet support rootless storage, but we will add support for that soon (Cc @rhatdan @giuseppe).

I actually meant with this issue is.

Shared image store for root & rootless mode. (at least an option to allow sharing)
Though simply using same  image store, may not be good idea, but somehow if its configurable to use the other image-store as cache, so before downloading from remote registry, it can look if its already available in cache store.

e.g  In containerd project, there is concept of namespace similar to k8s namespace, if an image is already downloaded in one namespace, it will be just copied to other new namespace on image pull.
Though this is  simple there to do as, image store is common and requests are filtered by namespace.

Currently, we don't support that.  Having shared storage across users implies leaking data and can be used for abuse which I find concerning. But I understand the use-case for such a feature and if made optional, I would support the idea.
I guess that containerd can do that as it's running as root.
But @rhatdan and @giuseppe are the experts in this domain. What's your take on that?

There has been some talk about this, but only in one direction (allowing
rootless to copy local images from root - you run into problems the other
way because you can't trust that the images). We can make the image store
directories world readable, but I believe we found some files that could
not be accessed even with appropriate permissions due to extra file
attributes.
On Fri, Mar 22, 2019, 04:51 Valentin Rothberg<EMAIL_ADDRESS>wrote:

Currently, we don't support that. Having shared storage across users
implies leaking data and can be used for abuse which I find concerning. But
I understand the use-case for such a feature and if made optional, I would
support the idea.
I guess that containerd can do that as it's running as root.
But @rhatdan https://github.com/rhatdan and @giuseppe
https://github.com/giuseppe are the experts in this domain. What's your
take on that?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/containers/libpod/issues/2741#issuecomment-475539396,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHYHCAZmBQCkIM-Hv3uW7-yxO18Ppqp1ks5vZJlzgaJpZM4cDAKq
.


BUG:  config.enable_standard_devise_support = true returns wrong current_user

devise_token_auth [0.1.42]
Ruby [2.4.2]
Rails [5.1.4]
relevant Gemfile.lock

    devise (4.3.0)
      bcrypt (~> 3.0)
      orm_adapter (~> 0.1)
      railties (>= 4.1.0, < 5.2)
      responders
      warden (~> 1.2.3)
    devise-i18n (1.5.0)
      devise (>= 3.4)
    devise_token_auth (0.1.42)
      devise (> 3.5.2, <= 4.3)
      rails (< 6)

Request and response headers:
Described below.

Rails Stacktrace: this can be found in the log/development.log of your API.

Environmental Info:  My app uses both devise and devise_token_auth, which I achieve by subclassing ApplicationController into ApiController and ApplicationController.  One inheriting from ApplicationController::Base the other ApplicationController::API

Routes:  I'm using both devise and devise_token_auth

  namespace :api do |api|
    mount_devise_token_auth_for 'User', at: 'auth'
  end

  as :user do
    # post 'users/password/change', to: 'users/passwords#change', as: 'change_user_password'
    patch 'users/password/change', to: 'users/passwords#change', as: 'change_user_password'
    get 'users/password/check-email', to: 'users/passwords#check_email', as: 'check_email_user_password'
    get 'users/password/reset-success', to: 'users/passwords#reset_success', as: 'reset_success_user_password'
  end

  devise_for :users, skip: :registrations, controllers: {
    confirmations:      'users/confirmations',
    passwords:          'users/passwords',
    # omniauth_callbacks: 'web/users/omniauth_callbacks',
    # registrations:      'users/registrations',
    sessions:           'users/sessions',
  }

Gems:  Using devise web.  Also using paperTrail gem, which writes a copy of the Users table over to UserVersion.

Custom Overrides:  I'm (trying) to namespace both devise and devise_token_auth into separate controllers.  But I have run into problems completely doing this (explained below).

Custom Frontend:  iPhone & Android native clients,  Postman for testing

Bug setup
In my app, my API consumers can switch between child and parent users, with the Bearer token uid / client / access-token being the mechanism for how my API consumers can switch between users.
However they were complaining about getting back incorrect data, with data from the wrong user getting sent back to them.  After investigating I found their concerns to be true, with devise_token_auth returning back incorrect users based on the headers it is sent.
To replicate.  I created two users with the same password:
user 1<EMAIL_ADDRESS>user 2<EMAIL_ADDRESS>First, log in with user 1:
GET api/auth/sign_in
{
	"email"<EMAIL_ADDRESS>"password": "That1234"
}

receiving correctly back headers corresponding to uid =<EMAIL_ADDRESS>/ user 1:
access-token →z9fS0CuMUZk9_F1FpRY5Tw
cache-control →max-age=0, private, must-revalidate
client →AfYoRq09GaCmATnzAqjAgQ
content-type →application/json; charset=utf-8
etag →W/"1edac4bb16fda94888d87a447cbc0834"
expiry →1516659606
token-type →Bearer
transfer-encoding →chunked
uid<EMAIL_ADDRESS>x-content-type-options →nosniff
x-frame-options →SAMEORIGIN
x-request-id →3b1f7b69-03aa-4d54-9911-0aca229d195a
x-runtime →0.217444
x-xss-protection →1; mode=block

Next, log in with user 2:
GET api/auth/sign_in
{
	"email"<EMAIL_ADDRESS>"password": "That1234"
}

receiving correctly back headers corresponding to uid =<EMAIL_ADDRESS>/ user 2:
access-token →4jktXiC-jDG-yMRUboUL2A
cache-control →max-age=0, private, must-revalidate
client →GV1hagOF6CRWIZkvzBHtrA
content-type →application/json; charset=utf-8
etag →W/"aae490494e2e72440f4f0c8273f3dfaf"
expiry →1516660022
token-type →Bearer
transfer-encoding →chunked
uid<EMAIL_ADDRESS>x-content-type-options →nosniff
x-frame-options →SAMEORIGIN
x-request-id →ee93f722-3a71-4f9b-bfdf-2408e1d9cec1
x-runtime →0.223127
x-xss-protection →1; mode=block

Bug
Now here's where the bug happens.  When I copy the headers for these two separate users into two separate requests and hit an app endpoint requiring authentication.  When config.enable_standard_devise_support is true the api returns back the incorrect current_user (confirmed with byebug), always defaulting to the first user that hit the endpoint (user 1), instead of user 2.
As proof, attached is a screenshot where you can see<EMAIL_ADDRESS>(user 2) sending a token request and getting a response back with authentication headers meant for<EMAIL_ADDRESS>(user 1):

Restarting the server had no effect on the Postman requests.
Fix for now
When I changed config.enable_standard_devise_support = false the problem went away.  Consequently I strongly suspect there is an issue with DeviseTokenAuth.enable_standard_devise_support, such as in the way it gets invoked within set_user_by_token:

  def set_user_by_token(mapping=nil)
    # determine target authentication class
    rc = resource_class(mapping)

    # no default user defined
    return unless rc

    # gets the headers names, which was set in the initialize file
    uid_name = DeviseTokenAuth.headers_names[:'uid']
    access_token_name = DeviseTokenAuth.headers_names[:'access-token']
    client_name = DeviseTokenAuth.headers_names[:'client']

    # parse header for values necessary for authentication
    uid        = request.headers[uid_name] || params[uid_name]
    @token     ||= request.headers[access_token_name] || params[access_token_name]
    @client_id ||= request.headers[client_name] || params[client_name]

    # client_id isn't required, set to 'default' if absent
    @client_id ||= 'default'

    # check for an existing user, authenticated via warden/devise, if enabled
    if DeviseTokenAuth.enable_standard_devise_support
      devise_warden_user = warden.user(rc.to_s.underscore.to_sym)
      if devise_warden_user &&<EMAIL_ADDRESS>        @used_auth_by_token = false
        @resource = devise_warden_user
        @resource.create_new_auth_token
      end
    end

...

@KelseyDH You may want to check out this issue (see my comment at the bottom), its related issues, and also this one.
We had the same symptoms that you are describing, and turning off config.enable_standard_devise_support also "fixed" it for us, but it wasn't the root cause.

I recently started setting up devise_token_auth for an existing application which has devise. I can confirm what @KelseyDH has mentioned in above comment still exists. I am not using any other devise_token_auth UI libraries.

Consequently I strongly suspect there is an issue with DeviseTokenAuth.enable_standard_devise_support, such as in the way it gets invoked within set_user_by_token

In addition to wrong current_user thingy, When I try to create/destroy sessions via web (which should go through devise), I see following error (whenever a user tries to sign-in or sign-out):
ArgumentError in Devise::SessionsController#destroy

devise (4.3.0) app/controllers/devise_controller.rb:47:in `resource_class'
devise_token_auth (0.2.0) app/controllers/devise_token_auth/concerns/set_user_by_token.rb:41:in `set_user_by_token'

The line 41 in set_user_by_token, corresponds to the invocation of resource_class by providing the mapping argument.
https://github.com/plataformatec/devise/blob/715192a7709a4c02127afb067e66230061b82cf2/app/controllers/devise_controller.rb#L49
which actually doesn't take any argument.

Side note: Thank you for developing this gem.

I recently started setting up devise_token_auth for an existing application which has devise. I can confirm what @KelseyDH has mentioned in above comment still exists. I am not using any other devise_token_auth UI libraries.

Consequently I strongly suspect there is an issue with DeviseTokenAuth.enable_standard_devise_support, such as in the way it gets invoked within set_user_by_token

In addition to wrong current_user thingy, When I try to create/destroy sessions via web (which should go through devise), I see following error (whenever a user tries to sign-in or sign-out):
ArgumentError in Devise::SessionsController#destroy

devise (4.3.0) app/controllers/devise_controller.rb:47:in `resource_class'
devise_token_auth (0.2.0) app/controllers/devise_token_auth/concerns/set_user_by_token.rb:41:in `set_user_by_token'

The line 41 in set_user_by_token, corresponds to the invocation of resource_class by providing the mapping argument.
https://github.com/plataformatec/devise/blob/715192a7709a4c02127afb067e66230061b82cf2/app/controllers/devise_controller.rb#L49
which actually doesn't take any argument.

Side note: Thank you for developing this gem.


[Feature-Request] {Add min/max option for depth data}

Start with the why:
Limiting the data within min. and max. range values decreases the depth data quantity and crops out noisy far-distant points.
Move to the what:
I would love to set the min/max values through parameters in camera.yaml config file.
Move to the how:

Hi, for that you can use i_threshold_filter_min_range and i_threshold_filter_max_range values

@Serafadam I`ve noticed that min/max range affects depth output, but have no impact on the point cloud or RGB-D output. Is it intended behaviour?


Set up caching of wwinference.Rmd vignette in R-cmd-check

Goal
Set up caching of vignette build. Right now, this takes a long time because it has to run the full example model.
Requirements

[ ] if nothing that impacts the vignette gets updated, we want to cache the vignette build

OK, this might be a bit of a lift so other options are to set up some set cadence of updating like is done in epinowcast:
https://github.com/epinowcast/epinowcast/pull/494
https://github.com/epinowcast/epinowcast/pull/497

Going to close this as resolved by #78 and open a new issue to discuss whether the website build needs speedup or is fine as is.


Remove benchmarks folder from k-NN repo

Description
Remove benchmarks folder from k-NN repo. The removal is needed because of below reasons:

The workloads have been moved to https://github.com/opensearch-project/opensearch-benchmark-workloads/tree/main/vectorsearch and no updates will be added on these tools.
The python dependencies in code creates CVEs and needs to be regularly updated. Since we no longer use these tools its better to remove the tools.

Related Issues
https://github.com/opensearch-project/k-NN/issues/1954, https://github.com/opensearch-project/k-NN/issues/1831, https://github.com/opensearch-project/k-NN/issues/1830, https://github.com/opensearch-project/k-NN/issues/1786, https://github.com/opensearch-project/k-NN/issues/1698, https://github.com/opensearch-project/k-NN/issues/1687
Check List

[X] Commits are signed per the DCO using --signoff.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

As a backup, last month I created this branch out of main branch
https://github.com/opensearch-project/k-NN/tree/knn-benchmarks

As a backup, last month I created this branch out of main branch for the benchmarks https://github.com/opensearch-project/k-NN/tree/knn-benchmarks

Just saw that Navneet created another branch old-benchmarks for backup. I will delete the knn-benchmarks branch


CircleCI Integragration

This sets up CircleCI which currently just checks for missing locale.
We can potentially iterate over this and let locales to be autodeployed to the site on merge to master.
What do you think?
@fetlife/product

I would like deployment on merge to master as a next step.


bug fixes

vtctld: minor workflow bug fix
While investigating #2534, I found this missing return. The bug itself looks obsolete. I'll mark it as such.
log.Fatal->log.Exit
Issue #3330, #3391
For invalid inputs, log.Exit is a more graceful way of reporting errors. Otherwise, people think the binary crashed.

LGTM great fixes!


[UWP] Use selectAction's title as the accessible name for a link

Related Issue
Fixes #3950
Description
When a TextRun has a selectAction with a valid title, use that title as the accessible name for the link (see #3950 for sample card text).
How Verified

Manual inspection in debugger
AccessibilityInsights

Microsoft Reviewers: Open in CodeFlow

@nimercer - FYI :)

/azp run

/azp run


TTOOLS-601 - Added QueryResultsTable component and stories

PR Storybook available here

I like the idea of the GenericTable component, so I'll work on that.
The useMemo() is new to me (as most of this) and I'll adapt :)

The replacement QueryResultsTable.tsx didn't work out of the box. The 'rowKey' value isn't being set in the getTableColumns() useMemo() resulting in Table.Body warnings
I initialized it with an EMPTY state, and when I threw actual data at it, it failed with: "Warning: The final argument passed to useMemo changed size between renders. The order and size of this array must remain constant."   Note that the QueryResultsTable component is expected to be refreshed for multiple queries against a table that can contain different #'s of columns and rows.  So not sure how to tweak your new memoized logic?

Thx

FYI.. after staring at it a little more, I see the rowKey value being set.

Interesting, I don't see any warning using the stories that you added (I didn't touch them, just the implementation).

The stories involve 3 separate static components with EMPTY query results and 2 sets of example data.  There is no re-setting of queryResults from the stories.

Wait, why is this closed? I'm so sorry, I must have clicked on the wrong button!

Working on a rewrite and additional components. Closing and will resubmit


crossOrigin parameter for Video

BaseTexture.fromImage allows supplying a crossOrigin setting or defaulting to anonymous via determineCrossOrigin.
VideoBaseTexture (or Texture.fromVideo, etc.) needs a similar mechanism. Otherwise Safari (and possibly others) will block loading the video texture from a remote source.
This is not necessarily a showstopper for current production code, considering that a Video Element can be created first with the proper crossOrigin policy and then supplied, like so:
var videoElement = document.createElement('video') as HTMLVideoElement;
videoElement.crossOrigin = "anonymous";
videoElement.autoplay = true;
videoElement.src = "http://cdn.example.com/video.mp4";

var texture: PIXI.Texture = PIXI.Texture.fromVideo(videoElement);
var videoSprite = new PIXI.Sprite(texture);
SomeContainer.addChild(videoSprite);

@dakom Could you give https://pixijs.download/video-base-texture-cross-origin/pixi.js a go please and let me know if it works without your workaround. I've just done a straight port of the BaseTexture.fromImage crossorigin stuff to VideoBaseTexture.fromUrl and have done zero testing on it... so would appreciate your checking before I submit a PR! Cheers

it works! @dakom thanks

@themoonrat whoa, sorry I totally missed this notification... do you still need this to be tested?

The PR is out of date; I'll update it to match the most recent cross origin code for Images and then give you a buzz if that's ok?

Cool - my test project for that is long gone but if you need help I'm happy to lend a hand if I can, somehow... problem is I'm not entirely sure how I hit that failure case to begin with, might get false positives now :\


Question: what does the web_socket_connections do

Just a quick question, what is there for? I looked at the AWS DynamoDB table and it was completely empty. In the template, it's not related to anything else. I'm a bit new to web development so I apologize if this is a simple question. Thanks

The web_socket_connections table keeps track of the open connections. If you look at the onConnect and onDisconnect lambda functions you will see that they add and remove the web sockets from the table as the call is accepted and terminated, respectively. So the table should be empty if you are looking at it while there is no call in progress.

Ok thanks!


Only lint call expressions and external module references in no-require-imports rule

Fixes #816.

looks like this will not build until #834 goes in.

rebased & squashed.


Remove wrong length check from GetItem.check_type_forward

Because of boolean masks and ellipsis, it's not so easy to check if the index tuple of slices is valid.

It costs to tell whether an index (of the indices) is a mask.  While cupy.ndarray.__getitem__ does not (yet?) support a list index, the following code is valid in cpu mode.
>>> x = chainer.Variable(np.arange(24).reshape(4, 3, 2).astype('f'))
>>> x[([True, False, True, False],)]
variable([[[ 0.,  1.],
           [ 2.,  3.],
           [ 4.,  5.]],

          [[12., 13.],
           [14., 15.],
           [16., 17.]]])

OK.
LGTM!

Jenkins CI test (for commit d0a6858967a51e9f6812ff274dc9847f35044d74) succeeded without errors!


[Feature]: Use named imports in transformed code

Self-service

[ ] I'd be willing to implement this feature

Problem
If the input code contains only client initialization, the codemod uses named imports as follows:
Example input:
import AWS from "aws-sdk";
const client = new AWS.DynamoDB({ region: "us-west-2" });

Example output:
import { DynamoDB } from "@aws-sdk/client-dynamodb";
const client = new DynamoDB({ region: "us-west-2" });

However, if the input contains types, the codemod uses global import as follows:
Example input:
import AWS from "aws-sdk";
const input: AWS.DynamoDB.ListTablesInput = { Limit: 10 };

Example output:
import * as AWS_DynamoDB from "@aws-sdk/client-dynamodb";
const input: AWS_DynamoDB.ListTablesCommandInput = { Limit: 10 };

This has been done to avoid additional imports in the past, but the solution is not clean.
The users who ran codemod had requested cleaner solution in the past, like https://github.com/awslabs/aws-sdk-js-codemod/issues/593
Solution
Use named imports for types as follows:
Example input:
import AWS from "aws-sdk";
const input: AWS.DynamoDB.ListTablesInput = { Limit: 10 };

Example output:
import { ListTablesCommandInput } from "@aws-sdk/client-dynamodb";
const input: ListTablesCommandInput = { Limit: 10 };

Alternatives
Pass an option to the codemod to enable named import, similar to https://github.com/awslabs/aws-sdk-js-codemod/issues/589
This will not be straightforward to implement, and users might not discover it.
Additional context
No response

The global import was introduced in the past to have as less changes in the code as possible. But as users have used the codemod, they prefer named imports.
Since import equals does not support named imports, that would be an exception to the standard.


A universe issue for typo refinement

Development Task
Fix all typos

It could be great if it can be done by rust lint


All 48 Possible Fullscreen NDS Screen Layouts for PC and Android

Swap, Rotate (90°, 180°, 270°), Hide, Big/Small

Implemented in https://github.com/skylersaleh/SkyEmu/pull/363


I create 2 account with Different emails

Hey i Create 2 account with different Email adress , 1 of the accounts not in Storage in firebase

In the Storage  Folder the folder users  automatic remove


Due to changing the file storage directory, after overwriting and installing the "app"

Following on from this question, follow-up questions
Due to changing the file storage directory, after overwriting and installing the "app", when the node is started to unlock the wallet, it cannot be logged in normally

soloved by here


More accurate loot tracker

Is your feature request related to a problem? Please describe.
The current loot tracker lists the items that an npc/player dropped on death, however players don't always pick up every drop, Also, it does not count the gp lost from supplies like food, runes etc.
Describe the solution you'd like
It would be nice if there is a configuration option, or maybe even an alternate tab like "Item Tracker", that records every time the player actually picks up an item, and also records every time the player eats a food, drinks a potion, or even drops an item, anything that effects the gp value the player is holding. Then it should display an overall gp loss/gain number.

The loot tracker is only intended to track dropped loots, not picked-up loots and supply usage. That bit of this request is a duplicate of #6700.


Can't insert new key,value pair in embedded map using pure SQL

OrientDB Version: 3.1
Java Version: None
OS: Linux
Expected behavior
Embedded map field with new key,value pair inserted
Actual behavior
com.orientechnologies.orient.core.exception.OCommandExecutionException: Cannot execute with UPDATE PUT/ADD/INCREMENT new executor: PUT Equivalencias = 'KEY', 1, Error

Steps to reproduce
update Concepto PUT Equivalencias = 'KEY', 1 where Nombre = 'TESTTRES'

Hi @mcasatti
Does the map exist already?
In this case, you can try the following:
update Concepto SET Equivalencias.KEY = 1 where Nombre = 'TESTTRES'

update Concepto SET Equivalencias['KEY'] = 1 where Nombre = 'TESTTRES'
```
Thanks

Luigi

It works! Thanks @luigidellaquila

seems solved, closing


Confusing error with wrong number of arguments and double splat

This isn't a bug, but more of an error message I think could be touched up
def headers(**values)
end

headers("Content-Type", "application/json")

This code throws the compile error:
Showing last frame. Use --error-trace for full trace.

error in line 4
Error: wrong number of arguments for 'headers' (given 2, expected 0)

Overloads are:
 - headers(**values)

Where is says (given 2, expected 0) sort of leads to some confusion here since it's more like "expected 0 or 1".
This code can be fixed by replacing the ,  with a : ...
def headers(**values)
end

headers("Content-Type": "application/json")

❯ crystal -v
Crystal 1.8.1 [a59a3dbd7] (2023-04-20)
LLVM: 15.0.7
Default target: x86_64-unknown-linux-gnu

Yeah, this message isn't ideal.
Why "expected 0 or 1" though? The method does not accept any positional arguments, only named ones. But of those you can have as many as you like.
Maybe the error message could say "wrong number of positional arguments" for more clarity?

Good point. I guess I was just seeing it as a single argument, but now that I think about it, even though it's a NamedTuple, you can't pass in with the curly braces. I think "wrong number of positional arguments" makes it a bit more clear :+1:


Fix std calculation using unbiased estimation in sharing stat mode.

Anyone check it?

Hi @cxxgtxy,
Thanks for your PR!
The bias correction looks correct but there is an issue with the types.
Seems like self._count should be first casted into float
After correcting this, the change looks ok.

HI @itaicaspi-intel.
In fact, I have a question about the cast, since self_count is float64
self._count = tf.get_variable(
dtype=tf.float64,
shape=(),
initializer=tf.constant_initializer(epsilon),
name="count", trainable=False)

Good job.

I have changed it as your suggestion.

Great! thanks for your help!


Fix for https://github.com/botallen/repository.botallen/issues/143

Attempt to fix the '<' not supported between instances of 'NoneType' and 'NoneType' issue mentioned in https://github.com/botallen/repository.botallen/issues/143

Not sure whether these changes affect any premium content or not. Currently don't have vip or premium account to check.

@iMro0t tagging you to review the changes.

Thanks, @nikhilk0 for your contribution


Testing when an angular request is done..

Seems there is still some problem where the QE are having problems determining whether an angular request has ended or not...
The way we have discussed, which should currently work in most (but not yet all) angular components is...
The current controller's scope is available via ManageIQ.angular.scope. A controller sets scope.afterGet = false; in the beginning, and updates it to true once all the data has been retrieved.
Therefore, ManageIQ.angular.scope.afterGet should be true only if the controller has retrieved all the data. (Except for a few controllers which aren't using this functionality and it has yet to be added..)
Is there anything more needed?
@martinpovolny I don't know whom to mention here..

I'm assuming this is solved now, there are still some issues, but none angular-related it would seem.


Tidying up multi-organism processes: Children of GO:0098630 aggregation of unicellular organisms

Move under 'intraspecies interaction between organisms':

GO:0000752 agglutination involved in conjugation with cellular fusion
GO:0000758 agglutination involved in conjugation with mutual genetic exchange
GO:0031152 aggregation involved in sorocarp development
GO:0000128 flocculation

Move under 'interspecies interaction between organisms':

GO:0036281 coflocculation

Merge

GO:0052000 type IV pili-dependent aggregation 0 annotations
-> merge into GO:0044010 single-species biofilm formation (see PMID:25852657)

Note that  'agglutination' is a child of 'cell-cell adhesion'
[Inferred is_a relation] GO:0098609 cell-cell adhesion
[is_a relation] GO:0098610 adhesion between unicellular organisms
[Current term] GO:0000771 agglutination involved in conjugation
[is_a relation] GO:0000752 agglutination involved in conjugation with cellular fusion
[is_a relation] GO:0000758 agglutination involved in conjugation with mutual genetic exchange

Should 'cell aggregation': The clustering together and adhesion of initially separate cells to form an aggregate.  Examples include the clustering of unicellular organisms or blood cells in suspension and the condensation of mesenchymal cells during cartilage formation.
be a child of 'GO:0098609 cell-cell adhesion'? The attachment of one cell to another cell via adhesion molecules.
Thanks, Pascale

What is the difference between
GO:0000128 flocculation: "The reversible, non-sexual aggregation of single-celled organisms in suspension to form aggregates of many cells known as flocs."
and  GO:0043689 cell-cell adhesion involved in flocculation "The attachment of one single cell organism to another via adhesion molecules, occurring as a part of flocculation."?
Looks like the most specific term was only used by pombase @ValWood
If there are no objections I will merge.

Merge
GO:0098741 adhesion between unicellular organisms via cell-wall interaction  -> 0 annotations
into parent: GO:0098610 adhesion between unicellular organisms
since whether or not there is a cell wall is a property of the organism; there are no two types of cell adhesion in organisms with cell walls.

Eewww That was me...No objections...

'cell aggregation': vs
cell-cell adhesion'?
I think cell aggregation is a term @RLovering  uses in the ALS context. They sound the same to me but maybe there is a subtle difference?

[ ] Merge: flocculation via extracellular polymer
into flocculation

[ ] Merge: 'cell-cell adhesion involved in galactose-specific flocculation'
into 'galactose-specific flocculation'

[ ] Merge: 'cell-cell adhesion involved in mannose-specific flocculation'
into  'mannose-specific flocculation'
(although those are probably MFs)

[x]  pollen tube adhesion: remove multi organism process parent (the same organism can fertilize itself in plants)

[ ] Merge  GO:0043706 heterophilic cell adhesion involved in cytoadherence to microvasculature, mediated by parasite protein
into GO:0020035 cytoadherence to microvasculature, mediated by symbiont protein

pollen tube adhesion: remove multi organism process parent (the same organism can fertilize itself in plants)

This is dredged up from way back in my memory, so check with a plant person, e.g. @tberardini, rather than relying on me, but:
This might have the multi-organism process parent because the pollen is considered an organism itself, separate from the plant the pollen tube adheres to (whether that is or isn't the same plant that produced the pollen). The Plant Ontology has pollen is_a microgametophyte is_a whole plant ...

This might have the multi-organism process parent because the pollen is considered an organism itself.

Yup.  So the multi-organism interaction in pollen tube adhesion is between (1) organism A: the pollen from which the pollen tube grows and (2) organism B: the plant with the stigma on which the pollen has landed and where the pollen tube is doing its thing.  The pollen in (1) may have originated from the same plant as (2) but is still an entirely separate organism.
Weird and wonderful plants and their alternation of generations.

Few more fixes to this branch:

[x]  pollen tube adhesion -> add parent 'intraspecies interaction between organisms' (to replace 'GO:0098740 multi organism cell adhesion')
[ ] I think I can also merge
GO:0000501 flocculation via cell wall protein-carbohydrate interaction
into : GO:0000128 flocculation
-> all flocculation takes place via cell wall protein-carbohydrate interactions; doesn't it ? @ValWood

Thanks, Pascale

I think that's OK.  It's a bit weird to say "protein-carbohydrate interactions"
AFIAK it's the sugar moiety of a glycoprotein interacting with the sugar moiety of a glycoprotein

That makes me remove the taxon constraint
'GO:0000501 flocculation via cell wall protein-carbohydrate interaction	NCBITaxon:4751	ONLY IN Fungi'
Maybe I could replace it by having NEVER IN METAZOA for the parent
'adhesion between unicellular organisms'
Which includes children:  'agglutination involved in conjugation' and flocculation
Does that work ?
Thanks, Pascale

Yep, plus never in plant.

I think I can also merge
GO:0000501 flocculation via cell wall protein-carbohydrate interaction
into : GO:0000128 flocculation
-> all flocculation takes place via cell wall protein-carbohydrate interactions; doesn't it ?

Well, there's the other subclass of GO:0000128, flocculation via extracellular polymer ! GO:0032128. It has been a very long time since I looked into it, but I don't recall it being clear whether the GO:0032128 flavor of flocculation does or doesn't work via the same kinds of interaction described for GO:0000501.
I have found a more recent paper, and reaffirmed that it's hard to find info on truly biological instances of bacterial flocculation because search results throw up a ton of stuff about wastewater treatment ...

Thanks Midori. So, I will leave this until get get more information. This is what we now have:

'adhesion between unicellular organisms'
'agglutination involved in conjugation'
'agglutination involved in conjugation with cellular fusion'
'agglutination involved in conjugation with mutual genetic exchange'
'conjugant formation'
flocculation
'galactose-specific flocculation'
'mannose-specific flocculation'

with the parent class, 'adhesion between unicellular organisms', having a 'never in Metazoa/never in Viriplantae' taxon restriction.
Does that seem right ?
Thanks, Pascale

I guess so ... at least, I'm not aware of anything that makes any of that look wrong.

That works for me !! Thanks for checking.


Iframe not loading

Iframes for Dartpad aren't loading and am unable to type code in the boxes.

Can you try again and paste the output from the javascript console? It's working for me on https://flutter.dev/docs/codelabs/layout-basics and https://dart.dev/codelabs/dart-cheatsheet

Definitely!
Here is the console for flutter.dev:

Here is the console for dart.dev:

Seems like I'm getting a syntax error that's failing to load it.

Are you running any extensions that might block the loading of iframes, such as an ad blocker? The ERR_BLOCKED_BY_CLIENT messages look similar to what one would expect in that case.

I'm going to go ahead and close this for now.

Apologies I missed this. Yes, you're correct. My extensions were blocking the loading of iframes and works when I disable them. Thank you!

No problem. Glad you were able to get it sorted out!


Scale factor min bug - unable to set zoom value to specified minimum value

Hi, thanks for all the work you did in the library, it works really nice.
I found a little bug I think, please consider this example:
https://jsfiddle.net/546yqbzk/
You have two function, zoomIn() - zooms the viewer by the scale of 1.25 and zoomOut() that scales the viewer by the factor of 1 / 1.25 (0.8).
So from my understanding, if I set a scaleFactorMin to 1, it would let the value of zoom to equal one. So if I click on the zoom in button once and then zoom out once I would expect the viewer to come back to the same position since 1.25 * 0.8 = 1. Unfortunetely it doesnt work as expected. It does not come back to zoom value of 1.
I think the problem lies in the https://github.com/chrvadala/react-svg-pan-zoom/blob/b92c6cee0d7945073e6bc4f9255af85b4b2fa656/src/features/zoom.js#L10
function lessThanScaleFactorMin actually checks if the calculated value is LESS OR EQUAL, hence it stops from setting the value equal to scaleFactorMin.

I did few tests and I agree with you, both lessThanScaleFactorMin and moreThanScaleFactorMax codes have to be replaced with a STRICT COMPARE operator. I'll release a fix in a couple day, in the meantime a rapid workaround is to sum (or substract) an EPSILON
 scaleFactorMin={1 - Number.EPSILON}

Fixed with 3.6

Perfect, thanks!


Can you add the option to only have certain languages show up not just priority and a simplify title option.

that's all

https://github.com/TheBeastLT/torrentio-scraper/issues/271#issuecomment-2311738198


Review *-bg-level and *-border-level variables

It seems there are some inconsistencies in the color levels of the tables/list-group-items/alerts (https://github.com/twbs/bootstrap/pull/30009#issue-362140343). We better equalize these variables and check their color contrast.

Indeed — I'm not familiar yet with color-level() but some issues I raised in #30468 are related to these (.alert-light and .table-dark for example).

Did we normalize anything here with the move to %s for our shade/tint functions @MartijnCuppens?

Yes we did 🙌

Ow, but the color contrasts are still an issue, I remembered 😥

Believe this was closed by #32085.


Document ProductAvailability objects

Add docstrings
Describe when this object is used

Accessing pricing data will be documented as part of the GraphQL API docs.


Fix pod metric filtering for containerd

What does this PR do?
Seems that container_name is empty for pod metrics with containerd runtime causing them to be filtered out.
Motivation
Have pod metrics (like network) correctly submitted for containerd
Review checklist

[x] PR has a meaningful title or PR has the no-changelog label attached
[x] Feature or bugfix has tests
[x] Git history is clean
[ ] If PR impacts documentation, docs team has been notified or an issue has been opened on the documentation repo

Additional Notes
See https://github.com/containerd/cri/issues/922

Codecov Report

Merging #2283 into master will increase coverage by 1.31%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2283      +/-   ##
==========================================
+ Coverage   85.62%   86.93%   +1.31%
==========================================
  Files         192        8     -184
  Lines       13430      842   -12588
  Branches     1482      131    -1351
==========================================
- Hits        11499      732   -10767
+ Misses       1507       78    -1429
+ Partials      424       32     -392


[Package Issue]: Microsoft.PowerBI 2.114.864.0 hash mismatch

Please confirm these before moving forward

[X] I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
[X] I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue
Installer hash mismatch.
Brief description of your issue
Microsoft.PowerBI 2.114.864.0 installer hash does not match.
The InstallerSha256 value found in the package manifest file (link) is "CD5EEC6A41E25002D4BDB137996EC35C0267F1D7B633BEFC8E63A6829FF841CE".
Calculating the SHA256 hash of the PowerBI 2.114.864.0 installer locally on my machine I see that it is instead "ca19538b072c4f8b4de7a7e58b6314eb0676da99edb6548ae0321708e3a33724".
Steps to reproduce
winget install Microsoft.PowerBI
Actual behavior
PS C:\Users\butwhoscounting> winget install Microsoft.PowerBI
Found Microsoft PowerBI Desktop [Microsoft.PowerBI] Version 2.114.864.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://download.microsoft.com/download/8/8/0/880BCA75-79DD-466A-927D-1ABF1F5454B0/PBIDesktopSetup_x64.exe
  ██████████████████████████████   657 MB /  657 MB
Installer hash does not match.

Expected behavior
The application installation should complete without any hash mismatch related errors.
Environment
Windows Package Manager v1.4.10173
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.1413
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.10173.0

Screenshots and Logs
No response

The issue is continuing on another link. If you saw wingetbot. Most of the times, look at the https://github.com/microsoft/winget-pkgs/pulls?q=wingetbot This bot is automatic updates on it. I think it is the winget-bot


Issue with a model that returns the gradient of a sequence

Hi Fabio,
I am observing an issue with the LM optimizer.
The test case described in the attachment is about a model that returns the gradient of a sequence.
The model is described as following:
class NeuralNet(tf.keras.Model):
    def __init__(self, dim):
        super().__init__()
        self.lay1 = Dense(dim[1], activation='softplus')
        self.lay2 = Dense(dim[2], activation='softplus')
        self.lay3 = Dense(dim[3])

    def model_charge(self, x_input, training=False):
        """ model of gate charge
        """
        x = self.lay1(x_input, training=training)
        x = self.lay2(x, training=training)
        x = self.lay3(x, training=training)
        return x

    def call(self, x_input, training=False):
        """ calc gradient from model_charge > dQ/dV = C
        """
        with tf.GradientTape(persistent=True) as tape:
            x_input = tf.convert_to_tensor(x_input)
            tape.watch(x_input)
            x = self.model_charge(x_input, training)
            o_x = tape.gradient(x, x_input)
        return o_x

This model is used to fit a capacitance curve (curve fitting) with a charge model (C = dQ/dV). It is required to minimize the gradient. Later, the weight/bias (and derivation of the layers into equations) can be included into a more bigger model (current + charge) such written in a veriloga Spice model file (which requires a charge model as input). The test case works with NADAM but not with LM. This is why I suspect a bug with LM. I admit that GradientTape is tricky and not a usual case.
Python terminates with a ValueError without starting the optimization:
    File "...bug/levenberg_marquardt.py", line 400, in _compute_jacobian  *
        jacobians = [tf.reshape(j, (num_residuals, -1)) for j in jacobians]

    ValueError: Tried to convert 'tensor' to a tensor and failed. Error: None values not supported.

I would like to use LM because it shows much better optimum than NADAM in consideration of a curve fitting job. In general, I can see at least 2 decades better in RMS.
I have no clue how to solve this issue. Is it possible that you get a look?
Thank you very much for your support !
Raphael.
The test case is described in this file fit.py.txt.

Maybe I just answer to myself. Need to double check that my addition is okay.
In levenberg_marquardt.py
def _compute_jacobian(self, inputs, targets):
...
        jacobians = tape.jacobian(
            residuals,
            self.model.trainable_variables,
            experimental_use_pfor=self.experimental_use_pfor, unconnected_gradients=tf.UnconnectedGradients.ZERO)
...
    jacobians = [tf.reshape(j, (num_residuals, -1)) for j in jacobians if j is not None]

src: https://stackoverflow.com/questions/57144586/tensorflow-gradienttape-gradients-does-not-exist-for-variables-intermittently

Hi Raphael,
I executed the code you provided, it seems that adding unconnected_gradients=tf.UnconnectedGradients.ZERO does solves the error.
Does it also work as expected?

Hi Fabio,
yes, it is working perfectly for my case.
Thanks a lot !
Raphael.


#314: fix scheduler-scanner-cornjob sample JSON in documentations

Here's just a fix to the sample JSON of the scheduled scanner job documents. which is actually just wrapping the fields in the "scannerCronJobRequest" field which is expected by the scanner cron job code: https://github.com/microsoft/presidio/blob/master/presidio-api/cmd/presidio-api/api/scanner-cron-job/scanner-cron-job.go
Pertinent ticket: https://github.com/microsoft/presidio/issues/314

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

/azp run

/azp run

/azp run


Manage src/main/docker/sonar.yml with dependabot

Manage versions in src/main/docker/sonar.yml with dependenbot

It is supposed to be done but not updating our sonar version...

@pascalgrimaud Isn't sonar dependency now managed with renovate? I guess this issue can be closed then.
Last PR for sonar:- https://github.com/jhipster/jhipster-lite/pull/9068

@swarajsaaj Good catch! This is indeed resolved 🙂


mdns issue

I'm running hassio core: core-2021.3.4
installed by installation instructions.
Can you help me find what is going wrong here?
'''
[Errno 2] No such file or directory: '/config/hass-emulated-hue/emulated_hue.json'
2021-03-31 23:56:17,915 INFO  emulated_hue.config -- Auto detected listen IP address is <IP_ADDRESS>
2021-03-31 23:56:17,922 DEBUG getmac -- Raw MAC found: None
2021-03-31 23:56:17,923 DEBUG getmac -- Raw MAC found: ca:a5:8a:c3:3d:a0
2021-03-31 23:56:17,923 DEBUG aiorun -- Entering run()
2021-03-31 23:56:17,925 DEBUG aiorun -- Creating default executor
2021-03-31 23:56:17,931 INFO  hass_client -- Connected to Home Assistant ws (version 2021.3.4)
2021-03-31 23:56:17,962 INFO  emulated_hue.api -- Started HTTP webserver on port 80
2021-03-31 23:56:17,976 INFO  emulated_hue.api -- Started HTTPS webserver on port 443
2021-03-31 23:56:17,977 DEBUG emulated_hue.discovery -- Starting mDNS/uPNP discovery broadcast...
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/app/emulated_hue/discovery.py", line 126, in run
ssdp_socket.bind(("", 1900))
OSError: [Errno 98] Address already in use
'''

This isn't a bug. Start a discussion. You have something else running on the part as described in the logs.


Attributes: No links in National Code descriptions

Have spoken with ontoserver folks - there is no clean fhir way of including hyperlinks in code descriptions (wouold be fine with bespoke handling in mauro - but not good for other user of the code sets via term server.
Options given are:
I guess it comes down to what you’re trying to achieve with them.  Are the links pointers to some rich definition text?  If so, then you might use a property, or a designation with a custom use code (possibly from SKOS or one of the Linked Data schemas).
1:17
The other option is CodeSystem.concept.definition, which is string valued, but I believe it would be perfectly acceptable to assert that the contents is treated as markdown.
The best way I can think of for doing this formally would be to define a DD profile to document it.

Definitely needs a discussion as we create NHS Business Definitions to help users understand the National Codes.
If they are not linked there will be a lot of NHS Business Definitions that are not used anywhere.

Workshop note - add full description to a new property

Enhancement to FHIR generation app to meet need identified in ticket 27 on github.docx

Spec for change attached

Note that this will need to rely on the updated html de-refencing app in order to capture the correct hyperlinks to contain in the web presentation property

HI,
As mentioned in the comment above. the web description property has been added

@arkie-boy and @jamesrwelch  This fix will be coming through for you today - Steve may need to do some html tinkering to the added property html

National Code descriptions now have links, issue closed.


Turn "args" into a full-fledged pub package

"args" is an SDK pub package, but it doesn't fully follow the package conventions and isn't hosted yet. We should:

Move the example under example/
Move the code under lib/
Upload it to pub.dartlang.org

This issue has been moved to dart-lang/pub#97.