sqlite: how to deal with (empty) strings in integer columns

I am migrating an electron project to tauri, using it's tauri-plugin-sql to query an sqlite database.
Being web dev I am a rust noob. So keep that in mind - I could be missing obvious things.
There is this table:
CREATE TABLE "geschaefte" (
  abteilung TEXT REFERENCES abteilung(abteilung) ON UPDATE CASCADE ON DELETE RESTRICT,
  aktennummer TEXT,
  aktenstandort TEXT REFERENCES aktenstandort(aktenstandort) ON UPDATE CASCADE ON DELETE RESTRICT,
  ausloeser TEXT,
  datumAusgangAwel TEXT,
  datumEingangAwel TEXT,
  details TEXT,
  entscheidAwel TEXT,
  entscheidBdv TEXT,
  entscheidBvv TEXT,
  entscheidKr TEXT,
  entscheidRrb TEXT,
  fristAbteilung TEXT,
  fristAmtschef TEXT,
  fristAwel TEXT,
  fristDirektion TEXT,
  fristMitarbeiter TEXT,
  gegenstand TEXT,
  geschaeftsart TEXT REFERENCES geschaeftsart(geschaeftsart) ON UPDATE CASCADE ON DELETE RESTRICT,
  idGeschaeft INTEGER PRIMARY KEY,
  idVorgeschaeft INTEGER,
  mutationsdatum TEXT,
  mutationsperson TEXT,
  naechsterSchritt TEXT,
  ort TEXT,
  parlVorstossStufe TEXT,
  parlVorstossTyp TEXT REFERENCES parlVorstossTyp(parlVorstossTyp) ON UPDATE CASCADE ON DELETE RESTRICT,
  parlVorstossZustaendigkeitAwel TEXT,
  rechtsmittelInstanz TEXT REFERENCES rechtsmittelInstanz(rechtsmittelInstanz) ON UPDATE CASCADE ON DELETE RESTRICT,
  rechtsmittelErledigung TEXT REFERENCES rechtsmittelErledigung(rechtsmittelErledigung) ON UPDATE CASCADE ON DELETE RESTRICT,
  rechtsmittelEntscheidNr TEXT,
  rechtsmittelEntscheidDatum TEXT,
  rechtsmittelTxt TEXT,
  status TEXT REFERENCES status(status) ON UPDATE CASCADE ON DELETE RESTRICT,
  verantwortlich TEXT REFERENCES interne(kurzzeichen) ON UPDATE CASCADE ON DELETE RESTRICT,
  vermerk TEXT,
  vermerkIntern TEXT,
  zustaendigeDirektion TEXT
)

And the following query:
geschaefte = yield db.select(
  `SELECT
    abteilung
    ,aktennummer
    ,aktenstandort
    ,ausloeser
    ,datumAusgangAwel
    ,datumEingangAwel
    ,details
    ,entscheidAwel
    ,entscheidBdv
    ,entscheidKr
    ,entscheidRrb
    ,fristAbteilung
    ,fristAmtschef
    ,fristAwel
    ,fristDirektion
    ,fristMitarbeiter
    ,gegenstand
    ,geschaeftsart
    ,idGeschaeft
    --,idVorgeschaeft   <-- causes error when included!
    ,mutationsdatum
    ,mutationsperson
    ,naechsterSchritt
    ,ort
    ,parlVorstossStufe
    ,parlVorstossZustaendigkeitAwel
    ,rechtsmittelInstanz
    ,rechtsmittelErledigung
    ,rechtsmittelEntscheidNr
    ,rechtsmittelEntscheidDatum
    ,rechtsmittelTxt
    ,status
    ,verantwortlich
    ,vermerk
    ,vermerkIntern
    ,zustaendigeDirektion
    FROM geschaefte ORDER BY idGeschaeft DESC`
)

The problem is: When the field idVorgeschaeft is included in the query, this error appears when the query is run:
thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: ColumnDecode { index: "19", source: "mismatched types; Rust type `i64` (as SQL type `INTEGER`) is not compatible with SQL type `TEXT`" }', C:\Users\alexa\.cargo\registry\src\github.com-1ecc6299db9ec823\sqlx-core-0.5.10\src\row.rs:73:37

I can provoke this error by uncommenting this line:
    ,idVorgeschaeft

...and prevent it from appearing by re-commenting it:
    --,idVorgeschaeft

I have no idea why this should happen. As seen above this field is defined as INTEGER so why would it be recognized as TEXT?
Is there a way I can enforce the type?
Additional info:
sqlx is integrated via tauri-plugin-sql like this:
Cargo.toml:
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = [ "derive" ] }
tauri = { version = "1.0.0-beta.8", features = ["api-all"] }
tauri-plugin-sql = { git = "https://github.com/tauri-apps/tauri-plugin-sql", features = [ "sqlite" ] }
whoami = "1.2.1"

src-tauri/src/main.rs:
#![cfg_attr(
  all(not(debug_assertions), target_os = "windows"),
  windows_subsystem = "windows"
)]

use tauri_plugin_sql::TauriSql;

#[tauri::command]
fn get_username() -> String {
    whoami::username()
}

fn main() {
  tauri::Builder::default()
  .invoke_handler(tauri::generate_handler![get_username])
  .plugin(TauriSql::default())
    .run(tauri::generate_context!())
     .expect("error while running tauri application");
}

The database is connected to like this: (simplified code)
import Database from 'tauri-plugin-sql-api'

const getDb = async () => {
  let db
  try {
    db = await Database.load(`sqlite:${config.dbPath}`)
  } catch (error) {
    console.log('error opening db:', error)
  }
  return db
}

export default getDb

Got it. The problem is that sqlite seems not to be typesafe. There were datasets containing empty Strings! After deleting them it works fine.
How can I prevent empty Strings from entering integer fields? Could happen in any integer field. And would make the app crash 😭. This is of course an sqlite issue. Will have to find out if there is a way to prevent that sqlite-side.
But the crashing occurs because sqlx/rust enforce type safety.
Would there be a way to force sqlx/rust to accept emty Strings while still keeping the sql working, as it worked in node? Like: overriding the type used by sqlx?
Not knowing how to prevent this error is a show stopper.
I guess I could filter only rows that do not contain Strings in integer fields in queries. But that might hurt users (disappearing datasets).

I created a trigger that helps mitigate the problem:
CREATE TRIGGER IF NOT EXISTS geschaefte_idVorgeschaeft_insert
  AFTER INSERT ON geschaefte
  WHEN new.idVorgeschaeft IS NOT NULL AND cast (cast(new.idVorgeschaeft AS integer
) AS text) != new.idVorgeschaeft
BEGIN
  UPDATE geschaefte SET idVorgeschaeft = NULL
WHERE
  idGeschaeft = new.idGeschaeft;

END;

There is the same trigger for on update.
But this is a pain as there are dozens of integer fields in the tables and two triggers are needed for every field. Also I am not sure if a query can run between the new row being saved and the after trigger having been executed. That would result in a crash again.
To be honest the best solution seems to be: Converting String values to null values when the data is queried.

I now have a view that might be the best solution:
-- this view ensures integer columns NEVER contain string values
-- instead they are replaced with null
-- reason: prevent rust/sqlx erroring on query
-- https://github.com/launchbadge/sqlx/issues/1629
CREATE VIEW v_geschaefte AS
SELECT
  abteilung,
  aktennummer,
  aktenstandort,
  ausloeser,
  datumAusgangAwel,
  datumEingangAwel,
  details,
  entscheidAwel,
  entscheidBdv,
  entscheidBvv,
  entscheidKr,
  entscheidRrb,
  fristAbteilung,
  fristAmtschef,
  fristAwel,
  fristDirektion,
  fristMitarbeiter,
  gegenstand,
  geschaeftsart,
  CASE WHEN cast(cast(idGeschaeft AS integer) AS text) != idGeschaeft THEN
    NULL
  ELSE
    idGeschaeft
  END AS idGeschaeft,
  CASE WHEN cast(cast(idVorgeschaeft AS integer) AS text) != idVorgeschaeft THEN
    NULL
  ELSE
    idVorgeschaeft
  END AS idVorgeschaeft,
  mutationsdatum,
  mutationsperson,
  naechsterSchritt,
  ort,
  parlVorstossStufe,
  parlVorstossTyp,
  parlVorstossZustaendigkeitAwel,
  rechtsmittelInstanz,
  rechtsmittelErledigung,
  rechtsmittelEntscheidNr,
  rechtsmittelEntscheidDatum,
  rechtsmittelTxt,
  status,
  verantwortlich,
  vermerk,
  vermerkIntern,
  zustaendigeDirektion
FROM
  geschaefte
ORDER BY
  idVorgeschaeft;

Somehow these two integer fields are presented correctly by the view. Also containing the data when queried inside DB Browser for SQLITE. But: arriving as null after passing through sqlx?
This is what I wanted to happen when they contained an empty string. But now it happens when I need the integer values.

I bit the bullet (being the execution of an extra query on startup) and added a query that removes Strings before the app queries the table:
UPDATE
  geschaefte
SET
  idVorgeschaeft = NULL
WHERE
  cast(cast(idVorgeschaeft AS integer) AS text) != idVorgeschaeft;

I would of course need to find out how strings made it into the field in the first place. That is homework to be done.
Still: As sqlite is not type safe a way to prevent sqlx from erroring when finding strings in integer fields would be great.


Some info on exceptions

I think the exception in the lego stuff was coming because discord couldn't find the embed? Not entirely sure though, we should see if it keeps happening after it only looks at the embed object if it exists.
I'm not entirely sure about the fuel exception, I think it's coming from the line response.json(), some people online had some trouble with that function and a few people use response.data(). I made a new exception type to tell us if that's where the problem is

VERY interesting pull request

yeah yeah now merge it


Crash while trying to get back a returning spinning blade from bagus mobs into inventory after use

latest.log
I used the item, upon return it crashed me out of game, now cant even login back to server without crashing, dont really know if its on neruina or bagus mobs, but both are involved in some way

An item from minecolonies is crashing in your inventory. Hotbar slot 9

latest.log
no its not :)

report to bagusmob


Unread message

How do I get unread messages in a room? Or the first not read .

Help. How do I know if a message has been read or not?


Refactor the code to create a language service module

We should create a new npm module which only includes the language services so that they can be reused in other places such as a standalone Monaco Editor. This will make it easier to embed this project in other places without having to start up a second process or necessarily support the entire language server protocol.
We created the dockerfile-utils project and moved the validator and formatter there when we implemented #79. However, I'm not sure it makes sense to move the other language services there as they're not exactly meant to be consumed by an end user on the CLI. Hence, I think a new npm module should be created instead to house the language services. We can then simply re-export the validator and formatter from dockerfile-utils there.

I've extracted the code out into the new rcjsuen/dockerfile-language-service repository. Still need to make the necessary modifications here though.


Add on-map text tags indicating which quests can be completed at a given point

This would help make it clearer which map markers correspond to which quests.

Decided against doing this for now.


fix fix auth case for move-memtable streamload test

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run p0

run buildall

run p0

run external

run buildall

run p0

run p0


Clean Up Some Code

Before a full-scale public release ( before like a real public beta when we start telling people about the website) we should really clean up some code.
 Also, we should choose on one form of how we are creating our iframes, instead of a million different ones. Code should be optimized and consistent

Doing this now, gonna get this all situated before it gets too big

Finished cleaning up all of the pages except the links page

doing this in cleanUp

this was closed in #34


json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 2 column 1 (char 2)

I'm  trying load the OpenSanctions JSON-model but I'm receiving this error json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 2 column 1 (char 2)
I'm using the command cat opensanctions.json | ftm store write -d opensanctions
Would you guys help me to understand what's going on?

Hmm, that sounds like some broken JSON. Can you tell me what opensanctions.json is and where you got it?

@pudo I got the opensanctions.json on opensanctions.org

Ah, I assume you downloaded the index file (https://data.opensanctions.org/datasets/latest/index.json). Try using one of the collections:

All data: https://data.opensanctions.org/datasets/latest/all/entities.ftm.json
All sanctions: https://data.opensanctions.org/datasets/latest/sanctions/entities.ftm.json

Can't wait till I have finished the home page :)

Wow! Thank you so much @pudo
I will try it


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_f6erts500b/clone/recipe/meta.yaml:14: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_f6erts500b/clone/recipe/meta.yaml:20: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_f6erts500b/clone/recipe/meta.yaml:41: missing_license_family: The recipe is missing the about/license_family key.
WARNING: /tmp/abs_f6erts500b/clone/recipe/meta.yaml:41: missing_description: The recipe is missing a description
Errors were found


How to use WaitFunc?

Is there any example to use WaitFunc?

We're working on v2, which will include better documentation and more examples. Since some of the API might change, it's best if we don't keep issues specific to the v1 api open. Thanks!


update tutorials readme

What type of PR is this?

Uncomment only one  /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:
/kind bug
/kind enhancement
/kind documentation

What does this PR do / why do we need it:
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewers:

/lgtm

LGTM

/lgtm

LGTM


Error: Attempt to list APBs in the broker returned status: 503

This form is for bug reports and feature requests. Major features will go through a spec process.
Feature: apb list
Bug: Error: Attempt to list APBs in the broker returned status: 503
What happened:
After the configuration of minishfit to anelabe addons for ansible-service-broker I can't run apb list
[fmontaldo@arofflab01 add-ons]$ apb list
Contacting the ansible-service-broker at: https://asb-1338-ansible-service-broker.<IP_ADDRESS>.nip.io/openshift-automation-service-broker/v2/catalog
Error: Attempt to list APBs in the broker returned status: 503
Unable to list APBs in Ansible Service Broker.
my config
export MINISHIFT_ENABLE_EXPERIMENTAL=y
minishift start --service-catalog --disk-sixe=300G --memory=12G
[fmontaldo@arofflab01 scripts]$ minishift start --service-catalog --disk-size=300G --memory=12G
-- Starting profile 'minishift'
-- Checking if requested OpenShift version 'v3.9.14' is valid ... OK
-- Checking if requested OpenShift version 'v3.9.14' is supported ... OK
-- Checking if requested hypervisor 'kvm' is supported on this platform ... OK
-- Checking if KVM driver is installed ...
Driver is available at /usr/local/bin/docker-machine-driver-kvm ...
Checking driver binary is executable ... OK
-- Checking if Libvirt is installed ... OK
-- Checking if Libvirt default network is present ... OK
-- Checking if Libvirt default network is active ... OK
-- Checking the ISO URL ... OK
-- Checking if provided oc flags are supported ... OK
-- Starting local OpenShift cluster using 'kvm' hypervisor ...
-- Minishift VM will be configured with ...
Memory:    12 GB
vCPUs :    2
Disk size: 300 GB
-- Starting Minishift VM .................. OK
-- Registering machine using subscription-manager
Red Hat Developers or Red Hat Subscription Management (RHSM) username<EMAIL_ADDRESS>Red Hat Developers or Red Hat Subscription Management (RHSM) password: [HIDDEN]
Registration in progress ........... OK [23s]
-- Checking for IP address ... OK
-- Checking for nameservers ... OK
-- Checking if external host is reachable from the Minishift VM ...
Pinging <IP_ADDRESS> ... OK
-- Checking HTTP connectivity from the VM ...
Retrieving http://minishift.io/index.html ... OK
-- Checking if persistent storage volume is mounted ... OK
-- Checking available disk space ... 1% used OK
Importing 'registry.access.redhat.com/openshift3/ose:v3.9.14' ................ OK
Importing 'registry.access.redhat.com/openshift3/ose-docker-registry:v3.9.14' ...... OK
Importing 'registry.access.redhat.com/openshift3/ose-haproxy-router:v3.9.14' ....... OK
-- OpenShift cluster will be configured with ...
Version: v3.9.14
Using nsenter mounter for OpenShift volumes
Using <IP_ADDRESS> as the server IP
Starting OpenShift using registry.access.redhat.com/openshift3/ose:v3.9.14 ...
OpenShift server started.
The server is accessible via web console at:
https://<IP_ADDRESS>:8443
You are logged in as:
User:     developer
Password:
To login as administrator:
oc login -u system:admin
-- Waiting for persistent volumes to be created ... OK
-- Applying addon 'admin-user':..
-- Applying addon 'anyuid':.
Add-on 'anyuid' changed the default security context constraints to allow pods to run as any user.
Per default OpenShift runs containers using an arbitrarily assigned user ID.
Refer to https://docs.openshift.org/latest/architecture/additional_concepts/authorization.html#security-context-constraints and
https://docs.openshift.org/latest/creating_images/guidelines.html#openshift-origin-specific-guidelines for more information.
-- Applying addon 'xpaas':....................................................................................................
XPaaS OpenShift imagestream and templates installed
See https://github.com/openshift/openshift-ansible/tree/master/roles/openshift_examples/files/examples/v3.7
eval $(minishift docker-env)
eval $(minishift oc-env)
cd /home/fmontaldo/Documents/minishift-addons/add-ons
minishift addons install ansible-service-broker
minishift addons apply ansible-service-broker
oc adm policy add-cluster-role-to-user cluster-admin developer
sudo yum -y remove apb
yum -y install apb
[fmontaldo@arofflab01 add-ons]$ docker images
REPOSITORY                                                          TAG                 IMAGE ID            CREATED             SIZE
quay.io/coreos/etcd                                                 latest              972b23538f16        3 hours ago         39.4 MB
docker.io/ansibleplaybookbundle/origin-ansible-service-broker       latest              07a2bfed6163        3 weeks ago         605 MB
registry.access.redhat.com/openshift3/ose-haproxy-router            v3.9.14             349d7ec4bd2f        2 months ago        1.28 GB
registry.access.redhat.com/openshift3/ose-deployer                  v3.9.14             ba9779c50c5b        2 months ago        1.26 GB
registry.access.redhat.com/openshift3/ose                           v3.9.14             7dfaa8d4ac4f        2 months ago        1.26 GB
registry.access.redhat.com/openshift3/ose-docker-registry           v3.9.14             924f6e950b50        2 months ago        459 MB
registry.access.redhat.com/openshift3/ose-web-console               v3.9.14             a0f5a2e23591        2 months ago        489 MB
registry.access.redhat.com/openshift3/ose-service-catalog           v3.9.14             6bed82cc1eca        2 months ago        283 MB
registry.access.redhat.com/openshift3/ose-template-service-broker   v3.9.14             21ff0aa9c113        2 months ago        294 MB
registry.access.redhat.com/openshift3/ose-pod                       v3.9.14             e598d93f5abe        2 months ago        209 MB
[fmontaldo@arofflab01 add-ons]$ oc login -u developer
Logged into "https://<IP_ADDRESS>:8443" as "developer" using existing credentials.
You have access to the following projects and can switch between them with 'oc project ':
ansible-service-broker

myproject
openshift

Using project "myproject".
[fmontaldo@arofflab01 add-ons]$ apb list
Contacting the ansible-service-broker at: https://asb-1338-ansible-service-broker.<IP_ADDRESS>.nip.io/openshift-automation-service-broker/v2/catalog
Error: Attempt to list APBs in the broker returned status: 403
Unable to list APBs in Ansible Service Broker.
[fmontaldo@arofflab01 add-ons]$
Please help me

minishift details
[fmontaldo@arofflab01 add-ons]$ minishift version
minishift v1.15.1+f19ac09
CDK v3.4.0-2
[fmontaldo@arofflab01 add-ons]$ docker version
Client:
Version:         1.13.1
API version:     1.26
Package version:
Go version:      go1.9.2
Git commit:      94f4240/1.13.1
Built:           Mon Apr 30 15:45:42 2018
OS/Arch:         linux/amd64
Server:
Version:         1.13.1
API version:     1.26 (minimum version 1.12)
Package version:
Go version:      go1.8.3
Git commit:      774336d/1.13.1
Built:           Tue Feb 20 13:46:34 2018
OS/Arch:         linux/amd64
Experimental:    false
[fmontaldo@arofflab01 add-ons]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.5 (Maipo)
[fmontaldo@arofflab01 add-ons]$

/close


On screen keyboard pops up abnormally on touch screen tablets

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
If you run the app on Windows tablet mode and tap on textInputField, when the focus is there, once the keyboard appears, it doesn't unfocus. I think the problem is unfocused doesn't work on Windows.
Also if you close by tapping on the cross and touch it somewhere else, it keeps coming no matter where you tap.
However, if there is a dropdown button and you tap on it, then only it gets unfocused.
Expected results
When tap on anywhere else it should be unfocused.
Actual results
Once the onscreen keyboard appears, it doesn't close. Also if you close by tapping on the cross and touch it somewhere else, it keeps coming no matter where you tap.
Code sample
Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[Paste your output here]

Hi @nishat-nasir
Could you share a recorded video to illustrate the issue? And please provide the output of flutter doctor -v as well. Thanks!


Implicitly initialize @onready variables

Fixes #52223
No idea what I am doing. I vaguely remember vnen mentioning this as potential fix, so I tried doing it and accidentally it works, so cool I guess?

Seems like you have notified someone accidentally.

The idea I had is a bit different. I think the @implicit_ready should always exist and always call the parent's @implicit_ready. Then the _ready function should call @implicit_ready before anything. The only issue here is to not add a _ready function when it's not needed since it will be called just to do nothing, so it needs a mechanism to detect that in the inheritance tree.
Another issue is that the implicit one will be shown in the methods list. It is a problem with @implicit_new too, but I want to fix it by not actually adding it to the list. I also don't think the name needs to be in CoreStringNames for instance.
Let me know if you want to tackle this yourself, I can give some more advice. Otherwise I'll probably get to this soon.

Another issue is that the implicit one will be shown in the methods list.

IMO the list should just filter out methods that start with @.
Not sure which list you mean though, I only know the problem exists in AnimationPlayer.

I also don't think the name needs to be in CoreStringNames for instance.

Probably. I used the name a few times in multiple files, so just made it a constant.

Let me know if you want to tackle this yourself, I can give some more advice. Otherwise I'll probably get to this soon.

This PR was some hard improvisation. I think it would be faster if you handled this, as you have better idea what to do and how.

Another thing worth to keep in mind is #33620. IMO _ready() and @onready shouldn't be tied. Any onready variable should be initialized before ready is called. This PR ensures that and it would be nice if the superseding one did this too.

Another thing worth to keep in mind is #33620. IMO _ready() and @onready shouldn't be tied. Any onready variable should be initialized before ready is called. This PR ensures that and it would be nice if the superseding one did this too.

@onready variables acts as if they are inserted in the beginning of the _ready() method (whether _ready() is defined or not). The only difference is that @onready should always be called across the inheritance tree, so they should be called even without an explicit super call.

So will your fix resolve #33620? Even if it would need explicit super() call?

It should, yes. The issue seems to be related to the order of multilevel calls, which we don't have anymore.


Fixes 4308: Add use latest to Templating

Summary

Add use latest to Template create/edit/table/details

Testing steps

https://issues.redhat.com/browse/HMS-4308

if i create a template with a snapshot date, then edit it to use latest, i get this error:
"error: code=400, title=Error binding parameters, detail=code=400, message=parsing time \"Invalid Date\" as \"2006-01-02T15:04:05Z07:00\": cannot parse \"Invalid Date\" as \"2006\", internal=parsing time \"Invalid Date\" as \"2006-01-02T15:04:05Z07:00\": cannot parse \"Invalid Date\" as \"2006\" \n"

i don't see where Invalid Date is getting set, not sure if it's coming from the UI or API 🤔

wording seems clear to me. @jlsherrill thoughts on copy here?

if i create a template with a snapshot date, then edit it to use latest, i get this error:
"error: code=400, title=Error binding parameters, detail=code=400, message=parsing time \"Invalid Date\" as \"2006-01-02T15:04:05Z07:00\": cannot parse \"Invalid Date\" as \"2006\", internal=parsing time \"Invalid Date\" as \"2006-01-02T15:04:05Z07:00\": cannot parse \"Invalid Date\" as \"2006\" \n"

i don't see where Invalid Date is getting set, not sure if it's coming from the UI or API 🤔

Thank you. Must not have tested the edit route from Date > useLatest.

/retest

/restest

/retest

/retest

/retest

/retest


For now, only allow a single publication

https://github.com/orgs/fairtracks/teams/fairtracks-developers/discussions/39

FIxed by d6b18257a0b8b137e44aec239cefbc3de8ecf40f


Update /ok-to-test command so it can only be triggered by approvers-radius

Today /ok-to-test can be run by the Radius-Eng team. We should switch this to approvers-radius instead. This is required as we move to open governance.
AB#10289

Thought this was done. needs to be done soon.

Was probing around this code and decided to update it while I was at it https://github.com/radius-project/radius/pull/6732


fix: Add a module-level flag for whether to show mesh after case-read

Also cleaning up some unused code

Should this be added as a launch_fluent argument as well?

maybe that's coming later?


Missing assignments from assembly in decompiled output 2!

When a parameter to an indirectly called function is a structure and has had its components assigned from elsewhere, those assignments don't appear in the decompilation.
I'm unsure if this is due to the fact that in the assembly the register used to temporarily hold the value being copied is an extended register EAX and my code is using the x86-16.?spec configuration files. If so, do I need to add these extended registers to any config files and how?
Here's an example:
dragon_Write_11e0_1a94.zip
Originally posted by @Wall-AF in https://github.com/NationalSecurityAgency/ghidra/issues/4529#issuecomment-1249221954

Don't know if this is related, but when decompiling indirect calls (using mnemonics CALL & CALLF) the stack depth has to be manually set!

Here's another example: dragon_readPicStates.zip
Please ask if you need anything more.

Here is a further example in which the assignment omission breaks the semantics of the function (see assembly at 1048:1093).

@ryanmkurtz would you help me to understand why/how this one-liner fixes this issue please.  I'm looking for a way to fix references from far pointers.

Unfortunately I have no clue.  @caheckman will have to explain it.

@caheckman @ryanmkurtz Please can this be re-opened as I've found yet another example with several missing assignments and computations that make the decompilation completely inaccurate in this example and shown highlighted below:

@Wall-AF, can you please open a new ticket for this problem?
In the future, if a problem is presented in a ticket and we close the ticket with a fix to that problem, we'd like new problems in new tickets, even if they are seemingly related.  A couple reasons for this are:

Sometimes the new problem is actually unrelated, which isn't clear until we triage it.
Sometimes we will have cut a release before we can get to the newly presented problem and then the ticket's milestone gets out of whack.

Thanks!


feat: PAT support -- private git support on http / https

Fixes #7990
This is the PR introducing PAT support auth.
Implementation
As requested on the issue by the community, we rely on the git credential to request for authentication:

this allows us to maintain the same auth experience as your local git CLI
When needed, the engine requests the host for the git-credential
Your local gitconfig sets up the git credential auth you want

This gives userland the power to configure auth however they want, with their preferred auth tool
How does this work
git introduces a standard: git credential which is queryable from the git CLI:
echo -e "protocol=https\nhost=github.com\npath=dagger/dagger\n" | git credential fill

The engine is directly querying this command on the user's host, via the CLI and parses the output of the command ; it then injects it back inside its session, safely, as a secret
How can you test
Please break this PR as you would, especially try to see if this maps your usual auth pattern (personal and enterprise environment):
$ cd ~/dagger
$ ./hack/dev # wait until it finishes
$ ./hack/with-dev bash # jump into the dev version shell
$ dagger version $ shall output dagger v0.13.7-...
$ dagger -m private-module functions

git credential managers
There are a lot of git credential managers out there, all mapping with the git credential standard. They can also be chained, and this will allow you to manage the caching side of those tokens client-side
TODO:

[ ] Finish unit and integration test
[ ] Some user testing to see any edge case I might have missed
[ ] Document the feature

cc @nipuna-perera @sheldonhull

There are other configs in .gitconfig too…. like http.postBuffer https.proxy etc… can these be included?

There are other configs in .gitconfig too…. like http.postBuffer https.proxy etc… can these be included?

I think this is more related to https://github.com/dagger/dagger/issues/7787 ? What you want is to propagate those .gitconfig inside the engine, from what I understand ? What use do you have of those options ?

hi @grouville , if i query:
dagger core git --url privgit.com -vvvvvv
✔ connect 0.4s
  ✔ starting engine 0.0s
  ✔ connecting to engine 0.1s
  ✔ starting session 0.1s
  ✔ subscribing to telemetry 0.1s
    ✔ consuming /v1/traces 0.1s
    ✔ consuming /v1/logs 0.0s
    ✔ consuming /v1/metrics 0.0s
✔ initialize 0.4s
  ✔ cache request: mkfile /schema.json 0.0s
  ✔ load cache: mkfile /schema.json 0.0s
  ✔ cache request: blob://sha256:fa3709c3d62221111c45ca4bbe0d3a942e18fae76e0bfd225694b40480d40d88 0.0s
  ✔ load cache: blob://sha256:fa3709c3d62221111c45ca4bbe0d3a942e18fae76e0bfd225694b40480d40d88 0.0s
  ✔ blob(digest: "sha256:fa3709c3d62221111c45ca4bbe0d3a942e18fae76e0bfd225694b40480d40d88", mediaType: "application/vnd.oci.image.layer.v1.tar", size: 167936, uncompressed: "sha256:fa3709c3d62221111c45ca4bbe0d3a942e18fae76e0bfd225694b40480d40d88"): Directory! = xxh3:71f907b752f0adac 0.0s
  ✔ Directory.file(path: "schema.json"): File! = xxh3:ffef5cf427d85037 0.0s
✔ prepare 0.0s
✔ git(url: "privgit.com"): GitRepository! = xxh3:0321a4028fb013f5 0.0s
  ✔ host: Host! = xxh3:ff73c85214b8f75c 0.0s
  ✔ Host.__internalSocket(accessor: "2f746d702f7373682d383254536f633846494149712f6167656e742e313537363539b613679a0814d9ec772f95d778c35fc5ff1697c493715653c6c712144292c5ad"): Socket! = xxh3:868707ad72e3f5af 0.0s
✘ GitRepository.tags: [String!]! = xxh3:a4bc5136ba5c3a61 10.0s
! git command failed: exit status 128

Error: response from query: input: git.tags resolve: git command failed: exit status 128
stdout:
stderr: fatal: unable to access 'https://privgit.com/': Could not resolve host: privgit.com

but, privgit.com is resolvable via HTTPS_PROXY env var - git cli, or https.proxy in .gitconfig .
PS: i have initiated the engine container with the proxy variable HTTPS_PROXY already:
podman exec -it dengine env | grep HTTPS_PROXY
HTTPS_PROXY=http://proxyserver.com:443

I normally install the binary via Aqua.
for testing this PR out directly do I run go install daggerrepo@branchname and or is there a doc with best approach?

I normally install the binary via Aqua. for testing this PR out directly do I run go install daggerrepo@branchname and or is there a doc with best approach?

Hi @sheldonhull,
No, you need to checkout this PR locally and build the dev version of the engine. I explained how to do it above, in the How can you test section. But, if you have any issue, I have published the engine to ghcr.io. Nipuna cannot build the dev version (https://discord.com/channels/707636530424053791/1300550470783205478/1300550473194930260), so I published it to get his feedback

realized

Doing it rn 🙏


ASP.Net API Versioning injection

When using ASP.Net Api Versioning and specifying a route parameter shown below, Swashbuckle generates the Swagger json requiring a version parameter to be specified. Is it possible for Swashbuckle to understand this and write the version into the URL?
Controller:
[ApiVersion("1")]
[Route("api/v{version:apiVersion}/[controller]")]
Outputted json:
"paths":{"/api/v{version}/ControllerName"

This is pretty much a dup of #244. Also check out the multiple versions example site - https://github.com/domaindrivendev/Swashbuckle.AspNetCore/blob/master/test/WebSites/MultipleVersions/Startup.cs which does exactly what you're looking for


Adjust Crowdin Schedules

Uploads: Everyday
Downloads: Twice a week
This should suffice our deployment targets which are usually Mondays Tuesdays? and Thursdays (optional) at around UTC+3
We can shake it up so that PRs can be merged on Mondays and Wednesdays?

So downloads should be triggered on Mondays and Wednesdays?

Yes, or a day before, for all we care. As long as they are:

Twice a week only
Merged on Mondays and Wednesdays for deployments on Tuesdays and Thursdays


changed highlight color and added a little padding

As discussed.

I kept the light gray color but removed the padding, as the reflow effects when you switch from one data series to another are quite distracting.


[🐞] qwik-prefetch-service-worker.js 404 in dev mode

Which component is affected?
Qwik Runtime
Describe the bug
When using the PrefetchServiceWorker component, a 404 is thrown when fetching qwik-prefetch-service-worker.js during dev mode.
To get dev mode working, you must first run pnpm build so that the dist folder exists with the file.
Reproduction
https://github.com/DustinJSilk/qwik-prefetch-dev-file
Steps to reproduce
$ pnpm i
$ pnpm start
See 404 error in the browser when fetching the prefetch service worker file.
System Info
System:
    OS: macOS 14.4.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 28.74 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node
    npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm
    pnpm: 9.0.5 - ~/Library/pnpm/pnpm
  Browsers:
    Chrome: 126.0.6478.116
    Safari: 17.4.1
  npmPackages:
    @builder.io/qwik: github:QwikDev/qwik-build#ad7cc99c09c59882b4569c8d7c1d02543a7051f0 => 1.5.7-dev20240622232135
    @builder.io/qwik-city: github:QwikDev/qwik-city-build#8effe19b19d9c5ff7580c8d2f27dd6b8fa5f903a => 1.5.7-dev20240622232712
    typescript: 5.4.5 => 5.4.5
    undici: * => 6.19.2
    vite: ^5.2.10 => 5.3.1

Additional Information
No response

This is also an issue with the preview command

This is also an issue with the preview command

In preview mode it's working fine to me.
I'll disable the fetch in dev mode


Adding Multiple Data Iterators as Input in R

Similar to a previously raised issue, I'm having some trouble understanding how I can create a single data iterator for multiple datasets, each with different dimensions. To illustrate, here is a sample situation:
# Load packages and data
require(mxnet)
trainDataIter1 <- mx.io.CSVIter(data.csv="trainData1.csv", data.shape = 3,
                                label.csv="trainLabel.csv", label.shape = 10,
                                batch.size=10)
trainDataIter2 <- mx.io.CSVIter(data.csv="trainData2.csv", data.shape = c(3,3),
                                label.csv="trainLabel.csv", label.shape = 10,
                                batch.size=10)

# Create the symbolic neural network
in1 <- mx.symbol.Variable('data')
fc1 <- mx.symbol.FullyConnected(data=in1, num.hidden=10, name='fc1')
in2 <- mx.symbol.Variable('data2')
fc2 <- mx.symbol.FullyConnected(data=in2, num.hidden=10, name='fc2')
compose.net <- mx.apply(fc1, data=fc2, name="compose")
out <- mx.symbol.LogisticRegressionOutput(data=compose.net, name='softmax')

In the code above, I have created two CSV data iterators which share a common labeling dataset but have different training data. In the symbolic network, let's say that the first iterator is used in fc1 and the second in fc2. I have also composed the two datasets before loading them into a softmax node.
Unfortunately, when I try to find a function which can accept multiple iterators in R, I am stuck. It seems that I must have an iterator which iterates over other iterators. I know in Python this is accomplished through the PrefetchingIter class and the function mx.io.PrefetchingIter function but no such function exists in R.
Is there a quick way in R to accomplish the same thing in Python?

Sorry for this, I should have time to add PrefetchingIter this weekend.
I have a deadline on Friday. So please be patient. I will really appreciate that.

Any updates on this feature request? Is there anything I can do to help?

I have a similar question for the case where I'm using MXDataIter objects. I want to load in two different iterators and then route them to different symbolic input nodes. It looks like the NDArrayIter can help here but requires the inputs to be NDArrays, and I don't see how to combine that with MXDataIter objects. Can the PrefetchingIter implementation help here, or maybe this requires writing a custom iterator?

Any follow-ups? Would love to see how to do multiple inputs.

I occur the same problem

Any updates on this? This feature would be really nice in R

I think this can be solved by #6673 , where you can define your own iterator and put into the training process.


Add timeout to health_check

The DefaultClient in net/http doesn't specify a timeout and is 0 by default. Which means if a server is causing a connection to hang the request will hang.
This is to add a way to specify a "timeout" on health_check, as well as set a sensible 60 second default.
Example:
localhost {
    proxy / localhost:8080 {
        health_check /health interval=10s timeout=15s
    }
}

Looking forward to everyones thoughts. 😄

Hey thanks for the PR!
I like the idea of being able to customize the health check timeout; however, using the key=value notation on a single line isn't the Caddy way; instead:
health_check_timeout 15s
health_check_interval 10s

will be more consistent with all other directives (even though health_check_* is kind of long).

As an FYI, I think that the context package will enable this to be handled in a different manner in the near future...

Thanks for the comments guys!
So I've updated the code now to reflect the suggestions from @mholt:

Client is now called once.
Updated from the key=value notation to doing it the caddy way using more consistent directives.

Example:
localhost {
    proxy / localhost:8080 {
        health_check /health
        health_check_interval 50s
        health_check_timeout 30s
    }
}

This is much better. Thanks @dulldave!
@weingart Isn't that only useful when initiating timeout between handlers? Here we're proxying a request upstream to a different process.

No, I think it will make sense even for proxying requests.  IE: the context will likely contain a timeout/deadline value, which can then be passed on and cancelled on during the backside request when it times out.

I need to start reading up on Context...


Develop a way to figure out the maximal list of projects that may be compatible with WASI

We are after a list of potential projects that could work with Python under WASI. There's essentially 6 layers to this, each one more specific than the previous, but all accurate for what they claim:

All projects on PyPI
Projects on PyPI that have a pure Python wheel
Projects who only have dependencies that are pure Python wheels
Importation of the top-level project succeeds
Test suite passes
Projects declare their support

We can calculate layers 1 and 2 easily thanks to https://github.com/sethmlarson/pypi-data (although with slightly outdated data). We can calculate layer 2 with sqlite3 pypi.db 'SELECT DISTINCT package_name FROM wheels WHERE python = "py3" OR python = "py2.py3" ORDER BY package_ name ASC' > project_with_pure_wheels.txt.
Layer 3 requires writing a resolver which can resolve for a specific environment and only for specific wheel tags (which helps out with lock files, but it's still work). Layer 4 probably can be automated with introspection inside wheel files and importing module(s) based on what's found in them (luckily WASI is sandboxed, so this should actually be a safe operation). Layer 5 will either have to be some crazy set of heuristics or we accept it as being a per-project thing (plus being able to actually run pytest under WASI). And for layer 6, I have opened https://discuss.python.org/t/do-we-want-classifiers-for-webassembly-on-pypi/22712 to discuss it with the community.

https://github.com/pypa/trove-classifiers/pull/129 adds Trove classifiers for declaring WebAssembly support on PyPI. They will eventually show up at https://pypi.org/classifiers/ .


I never changed my password and I never revokes my refresh tokens, but I using refreshToken to got token fail and error message AADSTS70000: The user could not be authenticated or user interaction is required. The user must sign in again and if needed grant the client application access to the requested scope.

I never changed my password and I never revokes my refresh tokens, but I using refreshToken to got token fail and error message AADSTS70000: The user could not be authenticated or user interaction is required. The user must sign in again and if needed grant the client application access to the requested scope

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

ID: 4b38c5bb-b6fd-ed73-e415-837a69a0a8e1
Version Independent ID: 30bf75b4-a333-2def-a672-b45c83f06348
Content: Microsoft identity platform refresh tokens - Microsoft Entra
Content Source: articles/active-directory/develop/refresh-tokens.md
Service: active-directory
Sub-service: develop
GitHub Login: @SHERMANOUKO
Microsoft Alias: shermanouko

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

@Lenny611
Error message AADSTS70000- usually occur due to following reasons:
1.Token binding header is empty
2.Token binding hash does not match
Could you please check if anyone of the above reason for the failed token message.

@Lenny611
We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.


not helping the np.sign/np.abs/np.power

from numba import njit
import numpy as np

def signedpower(x,a):

	'''
	x:the vector
	a: the power
	'''
	signedV = np.sign(x)	#signe vector: 1 -1 1 -1 ...
	absV = np.abs(x)
	powerV = np.power(absV,a)
	return signedV * powerV

signedpower_ = njit(signedpower)

v1 = np.arange(-500,500)

%timeit signedpower(v1,10)
8.53 µs ± 28.7 ns per loop
%timeit signedpower_(v1,10)
75.6 µs ± 1.14 µs per loop

njit actually slowing down the function

NOTE: edited code to include imports and updated markdown.

Thanks for the report, I can reproduce. I think that what is observed is due to a number of issues including:

There's not a huge amount of data or work in the function, so dispatch will have some cost.
Numba dosen't by default do multi-statement shortcut deforestation, so each of those ufunc calls is creating new memory. See https://github.com/numba/numba/issues/3980 for discussion.
Anaconda NumPy ufuncs are heavily optimised and backed by Intel MLK VML library, which is very  fast.

However, I'm going to mark this as a bug needing more investigation because even throwing all the optimisations at the function, including developer-only ones, NumPy is still winning by a suspicious amount:
from numba import njit
import numpy as np
from IPython import get_ipython
ipython = get_ipython()

from numba import parfor
parfor.sequential_parfor_lowering=True

@njit(error_model="numpy", parallel=True, fastmath=True)
def signedpower(x,a):

        '''
        x:the vector
        a: the power
        '''
        signedV = np.sign(x)    #signe vector: 1 -1 1 -1 ...
        absV = np.abs(x)
        powerV = np.power(absV, a)
        ret = signedV * powerV
        return ret

v1 = np.arange(-50000, 50000)
p = 10
signedpower(v1, p)

print("numpy : %s" % ipython.magic("timeit -o -q signedpower.py_func(v1, p)").best)
print("numba : %s" % ipython.magic("timeit -o -q signedpower(v1, p)").best)

signedpower.parallel_diagnostics(level=3)

gives:
numpy : 0.0029059834200052138
numba : 0.01115928922999955

If however, the dtype of v1 is changed to float64 Numba wins by a considerable amount:
numpy : 0.012640262770000845
numba : 0.009875944289997279

and that it is faster than the int64 variant suggests there is something perhaps unusual going on.


[Harvesting - GeoNode Client] Design client model, operations and configurable options

The client will support:

filtering of remote resources to be listed (title, time window, categories, keywords)
selection of remote resources to be harvested (list of names or filtering by title, time window, categories, keywords
configure the client instance either to retrieve only metadata or also data
check and retrieve updates for already for previously harvested resources (based on update date on remote resource metadata)
implement general helth check on remote service

I have already done part of the work described in this issue with the PR in geonode/geonode#7317.

[ ] Filtering of remote resources to be listed (title, time window, categories, keywords) - There is some support for this in the PR. This has been introduced at the level of each harvester type - the GeoNode harvester type is able to offer these filters. But the WMS harvester will likely not have them. I will need to fesh this out, but the base is there

[ ] Selection of remote resources to be harvested (list of names or filtering by title, time window, categories, keywords - The current PR does not provide the means to get a list of existing remote resources yet, but that is a small addition - I have the code that does that internally already, it is just not being exposed. I will need to add an additional model to the DB to track which resources are being managed by each harvester

[ ] Configure the client instance either to retrieve only metadata or also data - I have not started working on the actual data retrieval yet, but in terms of just the configuration this shall be a small addition to the work in the PR

[ ] Check and retrieve updates for already for previously harvested resources (based on update date on remote resource metadata) - I have also not started working on this yet.

[ ] implement general health check on remote service - I have implemented support for this in the PR


Message sending improvement

First point
Because of this
static int bufferFlushInterval = 0.5 # -> 0

and taking into account the documentation for scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:
seconds:
The number of seconds between firings of the timer.
If seconds is less than or equal to 0.0, this method chooses the nonnegative
value of 0.1 milliseconds instead.

flushing timer was called each 0.1 millisecond and CPU utilisation was 40-50% on MacBook Air (iPhone 6 simulator)
Second point
It would be better and more safe to send messages using a queue because adding/removing messages to/from buffer was not synchronised. So that might cause some problems.

This looks good. I'm sure its going to solve excessive wakeups . Thanks! :bowtie:


Content of popovers / dropdowns is not visible

Describe the bug
Content of popovers / dropdowns is not visible.
To Reproduce
Steps to reproduce the behavior:

Update @sanity/ui to 2.1.8
Click on any element that has a popover / dropdown menu
The content of the popover / dropdown does not appear
The console displays the following warning

The component Styled(Component) with the id of "sc-hMxHxi" has been created dynamically.
You may see this warning because you've called styled inside another component.
To resolve this only create new StyledComponents outside of any render method and function component.
    at li
    at AutocompleteOption (webpack-internal:///(app-pages-browser)/./node_modules/@sanity/ui/dist/index.mjs:4697:11)
...

Expected behavior
You should see the content of the popover / dropdown.
Screenshots
If applicable, add screenshots to help explain your problem.

Which versions of Sanity are you using?
@sanity/cli (global)        3.41.1 (latest: 3.42.1)
@sanity/icons               2.11.8 (up to date)
@sanity/image-url            1.0.2 (up to date)
@sanity/preview-url-secret  1.6.13 (up to date)
@sanity/react-loader        1.9.19 (up to date)
@sanity/ui                   2.1.8 (latest: 2.1.10)
@sanity/vision              3.42.1 (up to date)
sanity                      3.42.1 (up to date)
What operating system are you using?
macOS 14.4.1 (23E224)
Which versions of Node.js / npm are you running?
10.7.0
v20.11.0
Additional context
Add any other context about the problem here.

Does it happen in v2.1.11?


Fix ledger

This fixes 956 transactions out of the 1056 invalid transactions (91%).
We will probably have to fix manually the remaining.
>>> 96868 transactions processed
>>> 1056 invalid transactions (1.09%)
>>> Fixing 958 transactions (90.72%)
>>> 884 warnings (amount change > 10%)

Related to https://github.com/opencollective/opencollective/issues/1163

Coverage decreased (-0.01%) to 71.272% when pulling b9c90075a8ab877d8352a43c55bd7839335f4540 on fixLedger into 39f72e685b0dcc419d0e06627ddbabe0ac395527 on master.

Just deployed it to staging:
remote:        >>> 97092 transactions processed
remote:        >>> 1060 invalid transactions (1.09%)
remote:        >>> Updating 1060 transactions (100%)
remote:        >>> Fixing 964 transactions (90.94%)
remote:        >>> 884 warnings
remote:        talkwellington-host (id: 8658) has a wrong currency set (USD, should be NZD)
remote:        wpsyd-host (id: 8708) has a wrong currency set (USD, should be AUD)
remote:        finance6 (id: 8975) has a wrong currency set (USD, should be GBP)
remote:        null (id: null) doesn't have a currency set

Deployed to prod:
remote:        >>> 97092 transactions processed
remote:        >>> 1060 invalid transactions (1.09%)
remote:        >>> Updating 1060 transactions (100%)
remote:        >>> Fixing 964 transactions (90.94%)
remote:        >>> 884 warnings
remote:        talkwellington-host (id: 8658) has a wrong currency set (USD, should be NZD)
remote:        wpsyd-host (id: 8708) has a wrong currency set (USD, should be AUD)
remote:        finance6 (id: 8975) has a wrong currency set (USD, should be GBP)
remote:        null (id: null) doesn't have a currency set
remote:        >>> running 1060 queries
remote:        >>> 0 queries returned an error


feature: Update to PHPUnit 10

Description
Closes #11
Type of Change

[ ] Bug fix. Fixes #
[x] New feature but is fully backwards compatible
[x] Breaking change (fix or feature that will break existing functionalities)

Checklist

[x] All commits are GPG-signed
[x] Code adheres strictly to coding standards of the library
[x] Tests were added to fixes or new features

Eager for this!

Add Stowatch

Commit message typo BTW


interleaved reads

Can we have an option of inputting interleaved reads, like from khmer/seqtk? Not sure if SNAP/salmon can handle this..
transrate --assembly bwa.Trinity.fasta --interleaved Schizo.50M.interleaved.fq.gz --threads 16

Hi @macmanes,
It looks like SNAP has some code for this, but I'm not sure how well tested it is.  However, assuming that SNAP handles it and generates a valid BAM, Salmon is indifferent on how the raw reads were provided to the aligner.  That is, Transrate talks to Salmon only through BAM, so if SNAP handles it, it Salmon should be fine.

OK - cool!

Yeah SNAP can handle it, so we just need to add it to the Transrate interface. How about if left and right are the same file, assume interleaved? I'd prefer to avoid adding another argument.

might be asking for trouble with a non-standard CLI option.. I do get your point about not adding more options tho..

Interleaving is non-standard IMO (grumble grumble...). Are you thinking that the 'standard' would be to have a third argument, --interleaved or something similar?

yes, --interleaved is what I was thinking about.

+1
Interleaved supports streaming :>

(What the heck does "non-standard" mean in this field, anyway?)

Just that very few tools use it. khmer is the only thing I use frequently that does I think. But, users are in charge, so we'll add it :)


fixed the broken formatting

Summary
fixes issue #11168
@1ucian0
Details and comments

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
4 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.006%) to 86.882%

Files with Coverage Reduction
New Missed Lines
%

crates/qasm2/src/lex.rs
4
90.91%

Totals

Change from base Build<PHONE_NUMBER>:
0.006%

Covered Lines:
74025

Relevant Lines:
85202

💛  - Coveralls


Shallow Routing calls getInitialProps if not using named route + params

Heads up for people using shallow routing:
I notice that if I stick a console log in my getInitialProps, it gets hit if I use normal URL routing instead of route name + params.
Router.pushRoute('/a/:slug') - calls getInitialProps
Router.pushRoute('aName', { slug: 'aSlug' }) - does not call getInitialProps

Have you had success with shallow routing? I'm finding two issues:

If I navigate back out of a shallow route (e.g. back from /about#test to /about), getInitialProps is still called even though it's the same page component being viewed.
If I navigate back from a deep route into a shallow route (e.g. back from /blog to /about#test), I get an error and the back navigation does not occur.


fix: fall detection bugs

@bhavikapanara Please note that there are conflicts with the master branch. Its not ready for review until these are resolved. Please sync and resolve conflicts, so I can review the net delta.

@ivelin
In the master branch, there is an error in pose_engine.py at line number 128
thumbnail = TFImageDetection.thumbnail(image=img, desired_size=tensor_input_size)
Error:
File "/home/ambianic-edge/src/ambianic/pipeline/ai/pose_engine.py", line 128, in DetectPosesInImage
    thumbnail = TFImageDetection.thumbnail(image=img, desired_size=tensor_input_size)
TypeError: thumbnail() missing 1 required positional argument: 'self'


Add build specific project script  to build.ps1

Builds projects which match given pattern pattern.
Usage: .\build.cmd -s "core,common"
Builds Microsoft.TestPlatform.CoreUtilities and Microsoft.TestPlatform.Common
.\build.cmd -s "vstest.console"
Builds vstest.console

Hi @smadala, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Satya Madala). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;


Add Google analytic configuration changes to migration instructions

#382 needs to be complete first
Add the key example to https://github.com/psu-stewardship/scholarsphere/blob/develop/config/scholarsphere.yml
Also add the instructions for changing the server to the documentation created in #382


stat/distuv/Laplace Fit panics when weights is nil

What are you trying to do?
According to the documentation
// If weights is nil, then all the weights are 1.
func (l *Laplace) Fit(samples, weights []float64)

What did you do?
However the following code panics
package main

import (
		"gonum.org/v1/gonum/stat/distuv"

)

func main() {
	var d distuv.Laplace
	d.Fit([]float64{1}, nil)
}

What did you expect to happen?
Nothing
What actually happened?
panic: distuv: slice length mismatch
What version of Go and Gonum are you using?
go version go1.11.1 darwin/amd64
513db5a0a3aa4236f0ace2604a014c157876c32e
Does this issue reproduce with the current master?
Yes
What is the intended behavior nil should or should not be accepted. I can submit a patch if required.

Yes, that's definitely an omission. Please feel free to send a PR (stat/stat.go has a variety of approaches depending on what work needs to be done, so choose an appropriate approach or make one up). Please also add a test.


refactor: drop through2

This PR contains:

[ ] bugfix
[ ] feature
[x] refactor
[ ] tests
[ ] documentation
[ ] metadata

Breaking Changes?

[ ] yes
[x] no

If yes, please describe the breakage.
Please Describe Your Changes
Ref https://github.com/rvagg/through2#do-you-need-this
Closes https://github.com/mafintosh/csv-parser/pull/177
Builtin stream.Transform work well on node 8+.

@contra Will this work for you?

cc @mafintosh

@TrySound I think this is fine, however it is recommended to use readable-stream instead of the node core stream module to avoid all sorts of issues between node versions (see the readable-stream README for more explanation).

I don't think we need to use the userland streams package. Mostly because Node v8 is out of LTS and no longer supported. @TrySound I'd say this is good as-is if we raise the minimum Node version to an LTS version.

Done. Bumped node support.


return /air/mean as zarr, what's the best strategy to implement the routes?

I really like the approach you implemented with:
from fastapi import APIRouter, Depends, HTTPException
from xpublish.dependencies import get_dataset

myrouter = APIRouter()

@myrouter.get("/{var_name}/mean")
def get_mean(var_name: str, dataset: xr.Dataset = Depends(get_dataset)):
    if var_name not in dataset.variables:
        raise HTTPException(
            status_code=404, detail=f"Variable '{var_name}' not found in dataset"
        )

    return float(dataset[var_name].mean())

ds.rest(routers=[myrouter])

ds.rest.serve()

The example above returns a float. What I'd like to do is to implement API endpoints for a derived dataset (e.g. spatial subset) served as zarr, let's say:
/datasets/{dataset_id}/{variable}/processes/position:aggregate-time/.zmetadata
/datasets/{dataset_id}/{variable}/processes/position:aggregate-time/zgroups
/datasets/{dataset_id}/{variable}/processes/position:aggregate-time/zattrs
/datasets/{dataset_id}/{variable}/processes/position:aggregate-time/{var}/{chunk}
The client would then do something like
curl -X 'GET' \
  'http://<IP_ADDRESS>:9001/datasets/no2/tropospheric_no2_column_number_density/processes/position:aggregate-time/.zmetadata?location=2.12%2C48.75%2C2.52%2C48.99&function=mean&datetime=2018-05-01T00%3A00%3A00%2F2018-06-01T00%3A00%3A00' \
  -H 'accept: application/json'

or
fs = HTTPFileSystem()

http_map = fs.get_mapper('http://<IP_ADDRESS>:9001/datasets/no2/tropospheric_no2_column_number_density/processes/position:aggregate-time/.zmetadata?location=2.12%2C48.75%2C2.52%2C48.99&function=mean&datetime=2018-05-01T00%3A00%3A00%2F2018-06-01T00%3A00%3A00')

What would be the best approach to implement this with xpublish? Any suggestion would be appreciated

Do you need to expose any aggregation parameter as API endpoint parameter?
If you don't need to, the simplest way is to compute the aggregated datasets (maybe lazily) before serving them with xpublish.
Otherwise, I think you could do something like this, although this feels a bit hacky and it applies to all endpoints of the application (not just zarr endpoints):
import xarray as xr
import xpublish
from xpublish.dependencies import get_dataset

datasets_to_serve = {...}

rest = xpublish.Rest(datasets_to_serve)

get_actual_dataset = rest.app.dependency_overrides[get_dataset]

def get_aggregated_dataset(dataset_id: str, dim: str = 'time'):
    ds = get_actual_dataset(id)

    # call aggregate function using `dim`
    # (maybe use xpublish's cache to avoid computing the aggregated dataset each time)
    aggregated = ...

    return aggregated

rest.app.dependency_overrides[get_dataset] = get_aggregated_dataset

rest.serve()

@fabricebrito - wondering if you have an update here or if we should close this issue?


Router composition

This makes the library support composable routers and closes #86. The Router trait is changed to make it easier to have routers within routers, by taking part of the routing state as an argument to find. TreeRouter is changed to support inner routers and the method routing part is extracted into a MethodRuter. These being a couple is still favored by the TreeRouter::new() and  TreeRouter::from_iter(...) method, by creating a TreeRouter<MethodRouter<T>> instead of just a TreeRouter<T>.
This is a breaking change, since it changes the Router trait and the composition of TreeRouter. It will, however, not be noticeable by everyone, since the basic behavior is the same.

I'm still not done porting router merging, and there's still a bit more documenting left to do.

This took another decomposition turn, but I think this is all, now. I have some more abstraction plans, but those are for an other time.

@homu r+

:pushpin: Commit 2a25283 has been approved by Ogeon

:hourglass: Testing commit 2a25283 with merge 68ab597...

:sunny: Test successful - status


Error on Xeon Phi

I'm running clFFT on a Xeon Phi and I'm getting errors with certain problem sizes.  When I perform 1D complex-to-complex FFTs with 4, 8, 16, 32, 64, or 128 points I get the following error:
Stack dump:
0.	Running pass 'Intel OpenCL Vectorizer' on module 'Program'.

Running pass 'Intel OpenCL VectorizerCore' on function<EMAIL_ADDRESS>Running pass 'PacketizeFunction' on function<EMAIL_ADDRESS>
Running with 2, 256, 512, or 1024 points does not produce this error.  I get similar errors for 2D transforms, but I haven't tested the problem sizes as exhaustively.
The relevant output of lspci is
Intel Corporation Xeon Phi coprocessor 5100 series
Thank you kindly,
~Malcolm

I am closing this because it is known that OpenCL platform issues are the problem here.


API mutation to transform USD to SATS

Issue #821

[x] Create mutation to exchange from USD to SATS

Proof

@ovifer why using mutation instead of query?


decode error

Dear all,
I am trying to use a sym file to encode a CAN bus message and decode it. I load successfully the sym file and I encode also the message without problems. However, decoding fails. The following python lines are used to encode and decode the message by using the same database db:
            d_enc = db.encode_message(db.messages[dbcindex].frame_id, d)

            m_dec = db.decode_message(db.messages[dbcindex].frame_id, d_enc)

I get the following error:
m_dec=db.decode_message(db.messages[dbcindex].frame_id, d_enc)
File "/usr/local/lib/python3.4/dist-packages/cantools/database/can/database.py", line 381, in decode_message
return message.decode(data, decode_choices, scaling)
File "/usr/local/lib/python3.4/dist-packages/cantools/database/can/message.py", line 759, in decode
return self._decode(self._codecs, data, decode_choices, scaling)
File "/usr/local/lib/python3.4/dist-packages/cantools/database/can/message.py", line 722, in _decode
scaling)
File "/usr/local/lib/python3.4/dist-packages/cantools/database/utils.py", line 91, in decode_data
unpacked.update(formats.little_endian.unpack(data[::-1]))
File "/usr/local/lib/python3.4/dist-packages/bitstruct.py", line 449, in unpack
return self.unpack_from(data)
File "/usr/local/lib/python3.4/dist-packages/bitstruct.py", line 466, in unpack_from
return {info.name: v for info, v in self.unpack_from_any(data, offset)}
File "/usr/local/lib/python3.4/dist-packages/bitstruct.py", line 466, in
return {info.name: v for info, v in self.unpack_from_any(data, offset)}
File "/usr/local/lib/python3.4/dist-packages/bitstruct.py", line 332, in unpack_from_any
yield info, info.unpack(value_bits)
File "/usr/local/lib/python3.4/dist-packages/bitstruct.py", line 77, in unpack
return int(bits, 2)
ValueError: invalid literal for int() with base 2: ''
Any idea about this issue??
Thanks you in advance

Please provide a minimal example that reproduces the error.

FormatVersion=6.0
//Title="test"
{ENUMS}
Enum=DataTypeEnum(16="UCHAR4") // UCHAR4
Enum=E(0="OFF", 1="DIM", 2="on")
Enum=G(0="Active", 1="standby", 2="paussed",3="finished")
{SIGNALS}
Sig="A" unsigned 8 -h	// Node-ID
Sig="B" DataTypeEnum 8 -h
Sig="C" unsigned 8 -h
Sig=E E 6
Sig=H bit
Sig=I bit
Sig=G G 8
Sig=F unsigned 16 /u:mA
Sig="D" unsigned 8 /ln:"D"
{RECEIVE}
["Status"]
ID=7D1h
Len=8
Mux="" 0,0 0 -t
Sig="A" 0
Sig="B" 8
Sig="C" 16
Sig="D" 24
Sig=E 32
Sig=F 48
Sig=G 40
Sig=H 38
Sig=I 39

That is the sym file. In encode step I create the python dict "d" with the required A-I fields. Enconding is achieved successfully, but not decoding

How did you create the SYM-file? It cannot be loaded with PCAN Symbol Editor 6.
What does it mean to have a multiplexer of zero bits? Is that normal? That likely makes the decoding fail.

I implemented a length check in version 32.18.0. File loading will now fail is any signal has length zero.

Thanks, I was provided that file, so I can not generate another one. I understand it is not correct. I will try to generate another one in dbc format....

I have tried to delete the ""Mux="" 0,0 0 -t" line and I get the following error: error: Invalid syntax at line 26, column 1: ">>!<<Sig="A" 0"
It seems it is neccesary the Mux in order to avoid that fail. How can I manage it?

Download PCAN-Symbol Editor 6 here and input all information into a new database.
In short, I think you should replace "A" with A.

It is fine, I will try it. Another related question, I have problems with muxtiplexer...
I use the following dbc file:
VERSION "A"
NS_ :
NS_DESC_
CM_
BA_DEF_
BA_
VAL_
CAT_DEF_
CAT_
FILTER
BA_DEF_DEF_
EV_DATA_
ENVVAR_DATA_
SGTYPE_
SGTYPE_VAL_
BA_DEF_SGTYPE_
BA_SGTYPE_
SIG_TYPE_REF_
VAL_TABLE_
SIG_GROUP_
SIG_VALTYPE_
SIGTYPE_VALTYPE_
BO_TX_BU_
BA_DEF_REL_
BA_REL_
BA_DEF_DEF_REL_
BU_SG_REL_
BU_EV_REL_
BU_BO_REL_
SG_MUL_VAL_
BS_:
BU_:
BO_ 800 PM_1_Worklight_Status: 8 Vector__XXX
SG_ VID_0 M : 16|8@1+ (1,0) [0|0] "" Vector__XXX
SG_ ID V0 : 0|8@1+ (1,0) [0|0] "" Vector__XXX
SG_ DT V0 : 8|8@1+ (1,0) [0|0] "" Vector__XXX
SG_ SC V0 : 16|8@1+ (1,0) [0|0] "" Vector__XXX
SG_ MC V0 : 24|8@1+ (1,0) [0|0] "" Vector__XXX
SG_ CT V0 : 32|8@1+ (1,0) [0|0] "" Vector__XXX
//SG_ VID V0 : 16|8@1+ (1,0) [0|0] "" Vector__XXX
SG_ WLS V0 : 40|8@1+ (1,0) [0|0] "" Vector__XXX
SG_ ID V1 : 0|8@1+ (1,0) [0|0] "" Vector__XXX
SG_ DT V1 : 9|8@1+ (1,0) [0|0] "" Vector__XXX
SG_ SC V1 : 16|8@1+ (1,0) [0|0] "" Vector__XXX
SG_ MC V1 : 24|8@1+ (1,0) [0|0] "" Vector__XXX
SG_ CT V1 : 32|8@1+ (1,0) [0|0] "" Vector__XXX
//SG_ VID V1 : 16|8@1+ (1,0) [0|0] "" Vector__XXX
SG_ WLS V1 : 40|8@1+ (1,0) [0|0] "" Vector__XXX
SG_ ID V2 : 0|8@1+ (1,0) [0|0] "" Vector__XXX
SG_ DT V2 : 9|8@1+ (1,0) [0|0] "" Vector__XXX
SG_ SC V2 : 16|8@1+ (1,0) [0|0] "" Vector__XXX
SG_ MC V2 : 24|8@1+ (1,0) [0|0] "" Vector__XXX
SG_ CT V2 : 32|8@1+ (1,0) [0|0] "" Vector__XXX
//SG_ VID V2 : 16|8@1+ (1,0) [0|0] "" Vector__XXX
I get successfully encoding and decoding when I send the message: {'CT': 0, 'DT': 0, 'ID': 0, 'MC': 0, 'SC': 0, 'VID_0': 0, 'WLS': 0} . Note the value 0 for the muxtiplexer signal VID_0.
However, when I encode the following message: {'CT': 0, 'DT': 0, 'ID': 0, 'MC': 0, 'SC': 0, 'VID_0': 1, 'WLS': 0}, (with VID_0 multiplexer signal as 1) the decoding fails:
m_dec = db.decode_message(db.messages[dbcindex].frame_id, d_enc)

File "/usr/local/lib/python2.7/dist-packages/cantools/database/can/database.py", line 381, in decode_message
return message.decode(data, decode_choices, scaling)
File "/usr/local/lib/python2.7/dist-packages/cantools/database/can/message.py", line 759, in decode
return self._decode(self._codecs, data, decode_choices, scaling)
File "/usr/local/lib/python2.7/dist-packages/cantools/database/can/message.py", line 739, in _decode
scaling))
File "/usr/local/lib/python2.7/dist-packages/cantools/database/can/message.py", line 722, in _decode
scaling)
File "/usr/local/lib/python2.7/dist-packages/cantools/database/utils.py", line 88, in decode_data
unpacked.update(formats.little_endian.unpack(data[::-1]))
File "/usr/local/lib/python2.7/dist-packages/bitstruct.py", line 449, in unpack
return self.unpack_from(data)
File "/usr/local/lib/python2.7/dist-packages/bitstruct.py", line 466, in unpack_from
return {info.name: v for info, v in self.unpack_from_any(data, offset)}
File "/usr/local/lib/python2.7/dist-packages/bitstruct.py", line 466, in
return {info.name: v for info, v in self.unpack_from_any(data, offset)}
File "/usr/local/lib/python2.7/dist-packages/bitstruct.py", line 304, in unpack_from_any
len(bits)))
bitstruct.Error: unpack requires at least 65 bits to unpack (got 64)
Any idea why multiplexer gives me these problems??
Thanks very much. I am very gratefully

You are compiling with strict=False, right? That means many errors are simply ignored, and it fails later when the database is used.
If you replace SG_ VID_0 M : 16|8@1+ (1,0) [0|0] "" Vector__XXX with SG_ VID_0 M : 48|8@1+ (1,0) [0|0] "" Vector__XXX it is probably able to encode and decode the data.
Is this DBC-file actually used in an application? It would be very surprising since the multiplexer signal is overlapping with signals it multiplexes.

Finally, I have removed SC signals since they overlap the multiplexer one. And it works fine. A symbol file similar to this dbc is used in an application, with overlapping signals. I was translating the symbol to dbc because dbc is easier for me and I can detect errors like previous one.
Thanks very very much!! =)


In the Dataset editor, the buttons to add a new element are to small for my taste

Fair remark. Will try to tweak things :+1:


chore: automated PR to update VHDVersion for 202409.16.0 VHD

This is an automated PR to bump VHDVersion for the VHD release with image version 202409.16.0

Pull Request Test Coverage Report for Build<PHONE_NUMBER>3
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 71.271%

Totals

Change from base Build<PHONE_NUMBER>8:
0.0%

Covered Lines:
2590

Relevant Lines:
3634

💛  - Coveralls


add rclone move command after plot create

please add "rclone  source:/plot  dest:/"  move command after plot finish

please add "rclone  source:/plot  dest:/"  move command after plot finish

Why? The plotter already has built in file copy/move using multiple threads.

please add "rclone source:/plot dest:/" move command after plot finish

Just use rclone to mount the network drive to a local folder and then set that folder as your final directory

mount dir copy very slow/ rclone move x10 speed higer


Look into adding buzzin.live in an iframe

Look into having buzzin.live as an iframe that can be positioned to the left of the question. This would let readers in online tournaments see who buzzed in. An alternative would be to see if we could connect to a websocket or webhook, but I doubt they would support this.

When I looked at this it didn't appear trivial to do; we'd need to keep state around the room we joined, and we might not be able to navigate back to it easily if the page was refreshed.


mac runner not able to parse workflow_url

workflow url is not working for some reason.
"Github Action <{workflow_url}|{workflow}> workflow has {status_message}"

this is the message i get from slack:
Github Action <|Smoke Test> workflow has passed

@renperez In the README, it is mentioned:

In order to use {workflow_url}, specify the token input as token: ${{ secrets.GITHUB_TOKEN }}.

So, make sure you have setup the action correctly. Let me know if this works for you.

@ravgeetdhillon thank you. yeah looks like the token i was using was the culprit. closing this :)


[ACR] The token returned by  az acr login --expose-token  is a refresh token instead of an access token

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az acr login
Errors:

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

az acr login -n {} --expose-token

Expected Behavior
The token returned by  az acr login --expose-token  is a refresh token instead of an access token. The name accessToken is misleading.
We should correct this, but there will be a breaking change.
See https://github.com/Azure/azure-cli/blob/dev/src/azure-cli/azure/cli/command_modules/acr/_docker_utils.py#L362-L369 and https://github.com/Azure/azure-cli/blob/dev/src/azure-cli/azure/cli/command_modules/acr/_docker_utils.py#L149-L151
Reference: https://github.com/Azure/acr/blob/main/docs/AAD-OAuth.md#calling-post-oauth2exchange-to-get-an-acr-refresh-token
Environment Summary
Windows-10-10.0.22000-SP0
Python 3.8.9
Installer: MSI

azure-cli 2.31.0

Additional Context

Routing to service team.


Improve sized flag logic

@argonaut22 added a field to the aircraft struct to indicate if a model is sized. Right now it's v naive (namely, reaching the end of wsize).
We should figure out how to do this more robustly (e.g., not setting ac.sized = True if wsize() doesn't converge or if a driving parameter is changed [this may depend on determining "design parameters"])

This is a very good idea, @argonaut22. In my code, I artificially set some fields to NaN if the sizing fails, but an approach such as this is much better.


TFLite CMake suggestion: option TFLITE_ENABLE_GLES3 and changes for OpenGL ES Delegate build

Hi, I'm maintaining vcpkg registry for TensorFlow Lite.
I was patching CMakeLists.txt files to support multiple platforms, but the difference is getting bigger since 2.11
Will be glad if I can submit those changes upstream.
Changes

Create CMake build option TFLITE_ENABLE_GLES3
Use find_package(OpenGL) to use OpenGL::GLES3 https://cmake.org/cmake/help/latest/module/FindOpenGL.html
Use TFLITE_TARGET_PRIVATE_DEFINITIONS for ease of macro search

Android(EGL, OpenGL)

Include related sources under "${TFLITE_SOURCE_DIR}/delegates/gpu/cl"

Flatbuffers

Run flatc on ${TFLITE_SOURCE_DIR}/delegates/gpu/gl/*.fbs

Example
The PR contains CMakePresets for Android.
After Git clone,
cmake --preset arm64-android -S tensorflow/lite -DFLATBUFFERS_FLATC_EXECUTABLE:FILEPATH="...\flatc.exe"

cmake --build cmake_build

References
May collide with the following PR

#61381

In-use patch files.

https://github.com/luncliff/vcpkg-registry/pull/131
https://github.com/luncliff/vcpkg-registry/pull/117

Can't believe the month has passed 😱 Will be glad if I can get an opinion.

Hi @zichuan-wei Can you please review this PR ? Thank you!

Hi @luncliff, thanks for your patch. I have tried your patch on Mac, with NDK 26. And I got the following error:
ld.lld: error: undefined symbol: tflite::gpu::gl::GetOpenGlErrors()
>>> referenced by async_buffers.cc
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/async_buffers.cc.o:(tflite::gpu::AsyncBuffer::MapAHardwareBufferToGlBuffer())
[ 55%] Building C object _deps/xnnpack-build/CMakeFiles/microkernels-all.dir/src/qs8-gemm/gen/qs8-gemm-4x16c4-minmax-rndnu-neon-mlal-ld1r.c.o

ld.lld: error: undefined symbol: eglGetProcAddress
>>> referenced by async_buffers.cc
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/async_buffers.cc.o:(tflite::gpu::AsyncBuffer::MapAHardwareBufferToGlBuffer())
>>> referenced by async_buffers.cc
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/async_buffers.cc.o:(tflite::gpu::AsyncBuffer::MapAHardwareBufferToGlBuffer())

ld.lld: error: undefined symbol: glGenBuffers
>>> referenced by async_buffers.cc
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/async_buffers.cc.o:(tflite::gpu::AsyncBuffer::AllocateOpenGlBuffer())

ld.lld: error: undefined symbol: glBindBuffer
>>> referenced by async_buffers.cc
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/async_buffers.cc.o:(tflite::gpu::AsyncBuffer::AllocateOpenGlBuffer())
>>> referenced by async_buffers.cc
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/async_buffers.cc.o:(tflite::gpu::AsyncBuffer::AllocateOpenGlBuffer())

ld.lld: error: undefined symbol: glBufferData
>>> referenced by async_buffers.cc
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/async_buffers.cc.o:(tflite::gpu::AsyncBuffer::AllocateOpenGlBuffer())

ld.lld: error: undefined symbol: tflite::gpu::gl::WaitFdGpu(int)
>>> referenced by delegate.cc
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::Eval(TfLiteOpaqueContext*, TfLiteOpaqueNode*, TfLiteExecutionTask*))

ld.lld: error: undefined symbol: tflite::gpu::gl::EglEnvironment::NewEglEnvironment(std::__ndk1::unique_ptr<tflite::gpu::gl::EglEnvironment, std::__ndk1::default_delete<tflite::gpu::gl::EglEnvironment>>*)
>>> referenced by delegate.cc
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::Eval(TfLiteOpaqueContext*, TfLiteOpaqueNode*, TfLiteExecutionTask*))

ld.lld: error: undefined symbol: tflite::gpu::gl::EglEnvironment::~EglEnvironment()
>>> referenced by delegate.cc
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::Eval(TfLiteOpaqueContext*, TfLiteOpaqueNode*, TfLiteExecutionTask*))
>>> referenced by delegate.cc
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::Eval(TfLiteOpaqueContext*, TfLiteOpaqueNode*, TfLiteExecutionTask*))

ld.lld: error: undefined symbol: tflite::gpu::gl::CreateFdGpu()
>>> referenced by delegate.cc
>>>               CMakeFiles/tensorflow-lite.dir/delegates/gpu/delegate.cc.o:(tflite::gpu::(anonymous namespace)::DelegateAsyncKernel::Eval(TfLiteOpaqueContext*, TfLiteOpaqueNode*, TfLiteExecutionTask*))

Looks like I can not get the gl .so file.

I think linkage with libGLES.so and compile macro has some error.
I will try with NDK 26 on my device within days.
Maybe additional commits will be appended

@luncliff Thanks for your reply. It's my mistake, the error happens when TFLITE_ENABLE_GLES3=OFF. And when I set TFLITE_ENABLE_GLES3=ON, everything is ok.

Hi @zichuan-wei Can you please review this PR ? Thank you!

If I have to rebase with the master, please let me know  @zichuan-wei

Hi @zichuan-wei Can you please review this PR ? Thank you!

Hi @zichuan-wei , Can you please review this PR ? Thank you!

Hi @zichuan-wei , Can you please review this PR ? Thank you!

Hi @zichuan-wei , Can you please review this PR ? Thank you!

Hi @zichuan-wei , Can you please review this PR ? Thank you!

Hi @zichuan-wei , Can you please review this PR ? Thank you!

Hi @zichuan-wei , Can you please review this PR ? Thank you!


Limit Hibernate latest dependency test to 5.x

latestDepTest started failing today due to 6.0.0.Alpha releases

This is what's causing #140 to fail.


Add prometheus metrics to the ndt8 handlers

This PR adds the following Prometheus metrics:

msak_ndt8_tests_total{direction}: number of tests that started, by direction (download/upload)
msak_ndt8_connection_errors_total{direction, error}: number of connections that failed before starting a test, by direction and error type
msak_ndt8_file_writes_total{direction, status}: number of files written to disk, by test direction and status (ok/error)

This change is

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

9 of 13 (69.23%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.3%) to 82.583%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

internal/handler/handler.go
9
13
69.23%

Totals

Change from base Build<PHONE_NUMBER>:
-0.3%

Covered Lines:
550

Relevant Lines:
666

💛  - Coveralls


Fix typo in generating-clients.md

Contributing to Twilio

All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.

[x] I acknowledge that all my contributions will be made under the project's license.

Codecov Report

Merging #648 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #648   +/-   ##
=======================================
  Coverage   81.13%   81.13%
=======================================
  Files          78       78
  Lines        5163     5163
  Branches      130      130
=======================================
  Hits         4189     4189
  Misses        974      974

Continue to review full report at Codecov.

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


Updated History Page to Correspond with BSX Server. By Default shows …

…the movement history for an item in the dropdown

Worked on History Page.


MJS issue

Every time I try to build project, it says library can't be found.  Here is the error I am getting.
Unable to resolve module yahoo-fantasy.mjs from index.js: yahoo-fantasy.mjs could not be found within the project.
If you are sure the module exists, try these steps:

Clear watchman watches: watchman watch-del-all
Delete node_modules: rm -rf node_modules and run yarn install
Reset Metro's cache: yarn start --reset-cache
Remove the cache: rm -rf /tmp/metro-*

RCTFatal
__28-[RCTCxxBridge handleError:]_block_invoke
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_callback_4CF
CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
-[UIApplication _run]
UIApplicationMain
main
start
0x0

I'm really sorry, I'm seeing all of these issues super late as I'm not getting emails from Github... Do you have any source code? I'd be happy to take a look. Admittedly I'm not familiar with "watchman"...

I'm really sorry, I'm seeing all of these issues super late as I'm not getting emails from Github... Do you have any source code? I'd be happy to take a look. Admittedly I'm not familiar with "watchman"...


fix: Does not delete runtime value during idepotent runs

Description:

Is this change user facing?
NO

References (if applicable):

Closes https://github.com/kurtosis-tech/kurtosis/issues/1225

@gbouv This is what I believe to be the fix. I imagine we delete the value and keep the same UUID in case a service restarts and we get new information about the service. That being said, in the case where nothing changes but a print of the same runtime value of the existing service, what is the expected behavior?


Ask for the "PrivacyInfo.xcprivacy" required by Apple for gRPC C#

Is your feature request related to a problem? Please describe.
Currently gRPC provided the privacy manifest file for objc implementation, please refer to https://github.com/grpc/grpc/blob/master/src/objective-c/PrivacyInfo.xcprivacy, but the gRPC for C# did not include such a file. We are using the gRPC for c# nuget package to develop macOS app, not sure if the privacy manifest for gRPC for objc can also apply for the gRPC for C#.
Describe the solution you'd like
A PrivacyInfo.xcprivacy for gRPC for C#
Describe alternatives you've considered
A declaration that PrivacyInfo.xcprivacy for gPRC objc is also suitable for gRPC C# if it is true.
Additional context
No

Which version of gRPC C# are you using:

the legacy version based on the c-core - NuGet Grpc.Core v2.46.x
the gRPC for .NET version (see https://github.com/grpc/grpc-dotnet) - NuGet Grpc.AspNetCore and Grpc.Net.Client etc?

Neither support iOS etc, and as far as I understand PrivacyInfo.xcprivacy is only required for iOS, iPadOS, tvOS, visionOS, and watchOS.
gRPC does not collect any information, so the PrivacyInfo.xcprivacy for objc would be sufficient, if you need it.

Which version of gRPC C# are you using:
* the legacy version based on the c-core - NuGet `Grpc.Core` v2.46.x

* the gRPC for .NET version (see https://github.com/grpc/grpc-dotnet) - NuGet `Grpc.AspNetCore` and `Grpc.Net.Client` etc?

Neither support iOS etc, and as far as I understand PrivacyInfo.xcprivacy is only required for iOS, iPadOS, tvOS, visionOS, and watchOS.
gRPC does not collect any information, so the PrivacyInfo.xcprivacy for objc would be sufficient, if you need it.

Hi @tonydnewell
Current we are using Grpc.Tools (2.59.0), could the PrivacyInfo.xcprivacy for objc is enough for this nuget package? Thank you.

@baihao  Grpc.Tools is common for the legacy gRPC C# nuget and the gRPC for .NET version and would not be the right place for providing PrivacyInfo.xcprivacy (it is just a build tool)
Again, which version of gRPC C# are you using:

the legacy version based on the c-core - NuGet Grpc.Core v2.46.x
the gRPC for .NET version (see https://github.com/grpc/grpc-dotnet) - NuGet Grpc.AspNetCore and Grpc.Net.Client etc?

Also I don't know why you need PrivacyInfo.xcprivacy for a macOS application - it is just of iOS etc.


ECS ParamReturnAndVarTagMalformsFixer and PHPStan annotations

Hi, I found one bug in ParamReturnAndVarTagMalformsFixer
symplify/easy-coding-standard
9.4.70
PHP 7.4.22
My code:
<?php

class Bla
{
    /**
     * @param array{
     *    firstName?: string,
     *    lastName?: string,
     *    address?: string,
     *    state?: string
     * } $fields
     */
    public function method(
        int $number,
        array $fields,
        string $someString
    ) {
        var_dump($number, $fields, $someString);
    }
}

ECS transforming this to:
-     * @param array{
+     * @param array{ $number

In this case ECS should not changing anything :)

Resolved in https://github.com/symplify/symplify/pull/3731

When are you planning to release a new tag?

See https://github.com/symplify/symplify/issues/3765


panel says miner is stealthed but my checker says there is no miners

i ran a miner to test the panel, first the checker said i was mining, but my gpu was not being used
i looked at the panel and it said the miner is stopped.
i checked the checker again and the miner section is empty but the watchdog is running
checked the panel agian now it says its offline
now the checker says i have no miners, my gpu is not being used, nor any vram and the watchdog is running
basically i run the miner, checker says its all good, few min later the panel says the miners offline, and checker says i have no miner at all and my vram and gpu is not being used
miner download if needed  https://file.re/2022/01/14/new-folder/  pass is 123

Then that most likely means that your connection settings are wrong, so after trying to connect for a while it closes down since there's nothing to mine to.

i put

Then that most likely means that your connection settings are wrong, so after trying to connect for a while it closes down since there's nothing to mine to.

Then that most likely means that your connection settings are wrong, so after trying to connect for a while it closes down since there's nothing to mine to.

these are my connection settings https://anonfiles.com/P3D5m1B6xc/Screenshot_35_png

Then that most likely mean that your connection settings are wrong, so after trying to connect for a while it closes down since there's nothing to mine to.

Then that most likely means that your connection settings are wrong, so after trying to connect for a while it closes down since there's nothing to mine to.

weird because my connection settings are what they usually are https://anonfiles.com/P3D5m1B6xc/Screenshot_35_png

Does it work normally if you disable "API Endpoint URL" (the web panel)?

Does it work normally if you disable "API Endpoint URL" (the web panel)?

working so far

Yeah then it sounds like it can't connect to the pool (or there isn't enough VRAM), can you try running a normal miner with approximately the same settings to see what happens?

i changed a few settings such as the process injection, install directory and the pools port and changed it to Ssl insted of stratum
it uses the gpu for about a min, then stops, checker says its working and its using vram but still not using any gpu

And you're checking GPU usage with something like MSI Afterburner?

And you're checking GPU usage with something like MSI Afterburner?

im using task manager and process hacker

Task Manager and Process Hacker can't really show the GPU usage only the VRAM usage, use something like MSI Afterburner to check the GPU usage.

miner is not using any memory i can see in task manager
msi says gpu is stuck at 300 mhz

The the graphs inside MSI Afterburner.

Check the graphs inside MSI Afterburner.

https://anonfiles.com/VeZ8m9Bbx6/Screenshot_37_png
idk anything about msi

i have a 1660 ti max q design
https://anonfiles.com/Fdc9n3B6x3/Screenshot_41_png
process is now using my memory but no gpu

Here: Test5.zip try running a normal miner like I said above.

Here: Test5.zip try running a normal miner like I said above.

what do you call a "normal miner"?

A miner that isn't hidden, so that it shows in a console what's happening.

like nanominer?

You can test it what yes.

You can test it with that yes.

when i used nanominer in the past it worked good, but it for some reason caused bsods if left on for a long time, but here is screenshot
https://anonfiles.com/x9k1n4B9xd/Screenshot_41_png

So try mining with nanopool in the miner (silent miner) to see if it's the pool that's causing it (since now you know that nanopool works).

So try mining with nanopool in the miner (silent miner) to see if it's the pool that's causing it (since now you know that nanopool works).

changed the  pool to nanopool stratum and put myaddress.{COMPUTERNAME}/mypass  in the address bar with the computername empty    still not using any gpu

You'll have to save your settings and post them here (press "Save" on the "Main" tab, then zip and post it here).

You'll have to save your settings and post them here (press "Save" on the "Main" tab, then zip and post it here).

cant post it on github..

Hmm yeah that works fine, can you screenshot the "GPU usage" graph while the miner is running?

Hmm yeah that works fine, can you screenshot the "GPU usage" graph while the miner is running?

https://anonfiles.com/d2p7n1B6x5/Screenshot_43_png
it says the miner ur running is active in the panel.
but for me the miner runs for about a min, then stops for like 10, then jumps to 100 gpu again for like another min and repeats

Can you scroll further up for the GPU usage?

Can you scroll further up for the GPU usage?

https://anonfiles.com/N7q5n8B3x5/Screenshot_45_png

Ah yeah it's working just fine then.

Ah yeah it's working just fine then.

so it must have been the pool? because in the panel, it said it was stopped, then it just went offline

Yes most likely, it says "Stopped" if it can't connect and then it exists after about a minute and after that it will say "Offline".

aways says offline

It says "Offline" when the "Last Connection" was more than 5 minutes ago. Means that the miner isn't running, usually due to the computer being turned off.


[folding] navigate to previous/next line on same folding level

I'd like to propose providing a way for quick navigation of code:
Possible keybinding: Ctrl + ArrowUp / Ctrl + ArrowDown
Long stretches of code can quickly be jumped over, with the use of this navigation shortcut,
that takes you to the next or previous line on the same indentation level
as the line where the cursor is positioned currently.

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

I assumed you meant folding level. Or did you mean 'indent level`?

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

Folding level should be fine, too. Thank you!

@aeschli
I just saw, there's already 21,633 votes on the extension of basically the same functionality.
VisualStudio Marketplace - Indentation Level Movement

:slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


fix(perf): Only load processes if there is a locked baseline

Description
When processing only unlocked baselines, there is no chance that a process is anomalous so avoid fetching from the DB
Checklist

[ ] Investigated and inspected CI test results
[ ] Unit test and regression tests added
[ ] Evaluated and added CHANGELOG entry if required
[ ] Determined and documented upgrade steps
[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.
Testing Performed
Here I tell how I validated my change
e2e tests should check that risk still performs properly, but scale testing will tell us the most
Reminder for reviewers
In addition to reviewing code here, reviewers must also review testing and request further testing in case the
performed one does not seem sufficient. As a reviewer, you must not approve the change until you understand the
performed testing and you are satisfied with it.

/test gke-scale-tests

/test gke-scale-tests


3.2 prelease to Nuget?

Is it possible to get a prerelease version pushed to NuGet? I'm considering adopting LiteDB but would like to test out the InsertBulk feature that was added back in March.

Hi @FolkCoder, next weekend I will review some code and fix some issues to release new version.

Thank you, I appreciate it!

Hi! With the objective of organizing our issues, we are closing old unsolved issues. Please check the latest version of LiteDB and open a new issue if your problem/question/suggestion still applies. Thanks!


pgdc only extracts a single band metadata

also to check if it is possible to extract the unit
https://github.com/pvgenuchten/pyGeoDataCrawler/blob/c0e005868fc227962029141c16c197d2c5124258/geodatacrawler/utils.py#L84-L91

fixed


test failing with rspec 3.8.x

Hi
Jenkins reports a test failure with rspec 3.8:
This is reported in Debian as http://bugs.debian.org/908258
Failures:

  1) Integration tests hitting quota limit shouldn't swallow exception
     Failure/Error: expect(@logger).not_to receive(:error).twice

     RuntimeError:
       `count` is not supported with negative message expectations
     # ./spec/raven/integration_spec.rb:38:in `block (2 levels) in <top (required)>'

[...]
Failed examples:

rspec ./spec/raven/integration_spec.rb:34 # Integration tests hitting quota limit shouldn't swallow exception

I add that this test was passing fine with rspec 3.7

Release coming soon with this fix.


[ImageCards] Updates to condensed grid per PR feedback

@mkothur naw, @annawen1's right. We need the spacing inbetween. That comes from the Condensed Grid. We don't have to build that into each component, we just have to use what's already there. If Carbon decides one day they want to change the condensed grid to 3px, then we have to go to a bunch of components and patterns to make sure we updated.
Here are a couple resources...
https://github.com/carbon-design-system/carbon/blob/master/packages/grid/scss/_mixins.scss#L19-L44
https://carbon-elements.netlify.com/grid/examples/preview/#condensed-grid
https://www.carbondesignsystem.com/guidelines/2x-grid/implementation/#the-condensed-grid
Reach out if you have any questions or concerns.
Originally posted by @photodow in https://github.com/carbon-design-system/ibm-dotcom-library/pull/803

Here's a reduced case using codesandbox to show how to use the condensed grid. It's already in the CSS, so you just have to use the proper class name bx--grid--condensed at a parent level...
https://codesandbox.io/s/pedantic-galileo-o7ei3


How can I construct a Datastream from separate files?

The scenario is that, the train set is composed of duplicated training samples corresponding to different targets.  And the training samples are very large. I want to load the indices in memory and save only one copy of samples in the disk.
The question is how to construct a data stream from sample indices and load the sample on run?

It's probably not very speed efficient, but here's something that comes to my mind: you could construct a dataset composed of indices and targets, and implement a custom Transformer object which reads the indices in a batch and replaces them by the actual training samples which are stored elsewhere.
To get you started on how to implement a new transformer, have a look at the Fuel tutorial.

@vdumoulin HI, thanks for your reply. I did as what you said. It works.