Add click.Path option that allows checking for executable flag

click.Path already allows checking whether a path points to a directory ( dir_okay) or a file ( file_okay) and whether it is readable and/or writeable. I would suggest to add an additional executable flag that would check if the executable bit is set for the file or directory the path points to.
This surely can be achieved via a custom type, but it seems to me that this would be a valuable extension of click.Path as it would lead to all three access modes being checkable via click.
I am happy to contribute to an implementation, if there is any interest in this.

Duplicate of #1961

Ah, I missed that one, sorry! 👍


$resource should support custom http headers

when creating a resource definition it should be possible to define what headers should be sent along with the request when the action is invoked

why I set like this '$httpProvider.defaults.headers.post = {}' here come to differents,
one like this:
return $resource
(server, {},
{
login:{
method: 'post'
}
}
);
this is success,
another one like this:
return $resource
(server, {},
{
deviceList:{
method:"post",
headers:{
'Authorization': 'JWT ' + access_token
}
}
}
);
this is fail and say 'Response for preflight is invalid (redirect)'


Added Vogella Git Tutorial to Resources.md

@Endless7188 I have a habit of not accepting PR's without a description. Edit and add one.

@ahmadawais Sorry about that. I have updated!

Thanks! Approved! 👍


Plurals not working with reference syntax

As you can see in the images provided below, the syntax specified in the examples @key:pl is not working correctly and gives a Label does not exists in the document error.

I am closing this, i made multiples attempts at reproducing the issue and i can't. If you can provide the information i mentioned previously, please do not hesitate to post it a reopen this issue


Setting Remotenick on a gateway basis

First of all: Sorry if its already asked but i couldn't find anything!
I would like to know if its possible to set RemoteNick or PrefixMessagesWithNick on a gateway basis for the same account.
We want to connect multiple Telegram Channels to our Mattermost but only 2 of them are supposed to have the Nick in the messages relayed from mattermost.
I tried to just configure 2 accounts for the same telegram bot but it didn't work right. It didn't relay messages correctly anymore.
I could solve this by using two different telegram bots but i would like to avoid that
As an example i would like to configure it something like this (It doesnt contain a telegram account but it shouldn't matter in this example):
[irc]
    [irc.freenode]
    Server="irc.freenode.net:6667"
    Nick="yourbotname"

[mattermost]
    [mattermost.work]
    Server="yourmattermostserver.tld"
    Team="yourteam"
    Login="yourlogin"
    Password="yourpass"

[[gateway]]
name="mygateway"
enable=true
    [[gateway.inout]]
    account="irc.freenode"
    channel="#testing"
    RemoteNickFormat="[{PROTOCOL}] <{NICK}> "

    [[gateway.inout]]
    account="mattermost.work"
    channel="off-topic"

[[gateway]]
name="mygateway2"
enable=true
    [[gateway.inout]]
    account="irc.freenode"
    channel="#testing2"
    RemoteNickFormat=""

    [[gateway.inout]]
    account="mattermost.work"
    channel="off-topic2"

You can probably get this behaviour by using tengo
You can find more tengo examples here:
https://github.com/42wim/matterbridge/issues?q=is%3Aissue+tengo+label%3Atengo+is%3Aclosed
here:
https://github.com/42wim/matterbridge/tree/master/internal/tengo
and here:
https://github.com/42wim/matterbridge/tree/master/contrib
The tengo documentation can be found here:
https://github.com/d5/tengo/tree/master/docs

I'll look at this on the weekend!
Thanks for the information.
I will report if it works :)

If you got it working,  please report or contribute a PR with your tengo script.
Thanks!


add containerfile for arm64

The difference with the existing Containerfile is the kubectl installation URL.

Some other options aside from having a second Containerfile could be:

Use a base image like registry.redhat.io/openshift4/ose-cli-rhel9 which includes kubectl
Use the output from something like uname -p to create the URL for downloading kubectl

What about Firefox ? does it also require change for ARM ?

I was looking after my comment, and actually it doesn't look straight forward:
IIUC, Firefox doesn't release firefox releases for Linux ARM64 (e.g.: https://download-installer.cdn.mozilla.net/pub/firefox/releases/129.0.2/  => only Win ARM64 is present). However, the nightly builds seems to have ARM64 Linux builds : https://download-installer.cdn.mozilla.net/pub/firefox/nightly/2024/08/2024-08-20-21-40-25-mozilla-central/
So I am not sure how to do, but it might be that ARM64 binaries of official releases will come soon.
ZAP is using a Debian base and install Firefox directly using APT. However, this is not possible for us currently (the RHEL UBI doesn't have firefox RPM available, this is why we need to download it manually).
Maybe the short term would be to simply not install Firefox for the ARM image, and find a better solution later ?

hold until firefox arm64 for linux is available to download.


column matching is case-sensitive

Just found a problem with the column matching in that this project does a case sensitive match on mysql column names.
Column names in mysql are case insensitive (where as table names are 'normally' case sensitive - depends on platform and settings).
This just caused our project to break as we changed the third party tool that generates our mysql database.
The result is that calls to methods such as ResultSetRow.colByName is now failing.
Can I suggest that we push the column defs to lower case and then any column name argument is also pushed to lowercase before we do the match.

Yes, this is a bug. I will fix it

Thanks.
On Thu, 26 May 2022, 5:07 pm zim32, @.***> wrote:

Yes, this is a bug. I will fix it
—
Reply to this email directly, view it on GitHub
https://github.com/zim32/mysql.dart/issues/22#issuecomment-1138232973,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAG32OFH4AMV7S34KID6FUTVL4PKXANCNFSM5W7ZTPCQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

Fixed in 0.0.24


possible fix: use cassandra's cqlsh

What changed?

Why?

How did you test it?

Potential risks

Release notes

Documentation Changes

Closing as part of old PR cleanup effort.


Disable static configurations in registry.xml

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


Use own service in Resource

Hello!
I've got a question.
How can i use my own injactable services in Resource?
This statement breaks extension extension of Resource:
export class UnitRes extends Resource {
    constructor(
            http: Http,
            private _myService: MyService
        ) {
            super(http);
        }
 }

So is there the right way?

Hello.
Yes... There is a problem with using services in resources.
I would propose to use it that way
export class MyService {
  static instance: MyService;
  constructor() {
    MyService.instance = this;
  }

  doMagic() {
    console.log('Booom!');
  }
}

Thank in your resource
export class UnitRes extends Resource {
  myMethod() {
    MyService.instance.doMagic()
  }
 }

@anfluff try 1.4.0 Injection works now

Thank's to @magnitronus.
Closing the issue.


[Bug]: Many documentation articles not describing current UI/UX

Description
This issue aims to list all documentation articles that need to be reviewed after the recent updates in the web app have changed the user flows considerably
Task List

[ ] #859
[ ] #860
[ ] #861
[ ] #862
[ ] #863
[ ] #864
[ ] #865
[x] #858
[ ] #866
[ ] #867
[ ] #868
[ ] #869
[ ] #870
[ ] #871
[ ] #872
[ ] #873
[ ] #874
[ ] #875
[ ] #876
[ ] #877
[ ] #878
[ ] #879
[ ] #880
[ ] #856
[ ] #881
[ ] #882

Details Button replaced with Details link
Pages that listed resources (e.g: Applications) had a button on labeled DETAILS to access a resource details page (e.g: Application Details), as mentioned in the article quoted below from the documentation available @ Add a File

In the list of applications find the application where you want to add a configuration file and click DETAILS

The DETAILS button was replaced by a link in the resource name column
Articles that need to be updated
All articles that guide the users to search for DETAILS button on the UI
Linked Resources replaced with Tabs
A link between resources like Applications and Servers was managed using the Linked Resources page, this was replaced by adding tabs to the Application Details page; this way eliminating the concept of Linked Resources from the app
Articles that need to be updated
All articles related to Linked Resources, Configuration Files and Variables need to be updated
Update Table
This table tracks all documentation articles and lists if the article is updated according to each category below:

Details: Does this article guide users to the DETAILS link instead of the DETAILS button?
Tabs: Does this article guide users to use the tabs instead of the linked resource, pipelines, variables, configuration files pages ?

And the column data can be one of the possibilities below:

An empty means the article is not affected by that change
An ❌ emoji means the article has an issue related to that change
An ✅ emoji means the article does not have an issue related to that change

Article Name
Details
Tabs

Deploy Application using an Incoming Hook
❌

Edit an Application
❌

Add a File
❌
❌

Edit a File
❌
❌

Remove a File
❌
❌

Add a Linked Resource
❌
❌

Remove a Network
❌

Add a Pipeline
✅
✅

Edit a Pipeline
❌
❌

Remove a Pipeline
❌
❌

Run a Pipeline
❌
❌

Add Step to Pipeline
❌
❌

Remove Step from Pipeline
❌
❌

Check a Role's Permissions
❌

Delete a Server provisioned by Devopness
❌

Get a Server’s Status
❌

Remove a Self Hosted Server
❌

Restart a Server
❌

Start a Server
❌

Stop a Server
❌

Deploy SSH Key
❌

Link an SSH Key to a Server
❌
❌

Remove an SSH Key
❌

Add an SSL Certificate
❌

Add a Subnet
❌

Remove a Subnet
❌

assign to me

Hello @anurag-compile, thanks for the interest in this issue.
I've assigned this issue to you, as requested; please note that this issue is composed of many tasks.
Feel free to tag me if this issue gets overwhelming, personally I'd recommend opening separated PRs for every task or resource type (Pipelines, Servers, ...)


Assertion failed (item already registered: variable:variable:variable:scope:1:Local:1000:response:users:[0])

Issue Id: 2ad1c8f9-f86a-7e63-b860-a35889cfee27Versions - 1.5.0-insider (9/1/2016 6:06:23 AM)Stack Error: Assertion failed (item already registered: variable:variable:variable:scope:1:Local:1000:response:users:[0])    at Object.n [as ok] (    at t.register (    at new t (    at     at Object.g [as _notify] (    at Object.W.enter (    at n.Class.define._run (    at n.Class.define._completed (    at     at t.e.dispatch (

The same insider build generated a considerable number of these exceptions.
@bpasero pointed out that this could either be that the same object is being used multiple times in a tree in a debug view or that the function that generates the IDs is not sufficiently discriminating.
Let's start with debugging.

Here is another stack track that might give a hint:
Error: Assertion failed (item already registered: variable:variable:scope:1:Fermeture:1002:slaveClientsList:length)
at Object.n [as ok] (out/vs/workbench/workbench.main.js:5:8389)
at t.register (out/vs/workbench/workbench.main.js:36:28030)
at new t (out/vs/workbench/workbench.main.js:36:28784)
at out/vs/workbench/workbench.main.js:36:31919
at Object.g [as _notify] (out/vs/workbench/workbench.main.js:30:12868)
at Object.W.enter (out/vs/workbench/workbench.main.js:30:16446)
at n.Class.define._run (out/vs/workbench/workbench.main.js:30:18274)
at n.Class.define._completed (out/vs/workbench/workbench.main.js:30:17715)
at out/vs/workbench/workbench.main.js:83:16911
at t.e.dispatch (out/vs/workbench/workbench.main.js:83:18578)

Currently the id of a variable is determined based on it's parent's id and the name of the variable. And this should be unique. However a debug adapter can always return two variables with the same name in a given scope - this should be invalid in all languages but still the adapter could return such a falsy result. We are guarding against that here
Not sure how this exact situation was caused but I have made our variable id more restricite (taking refernece into account)


[fix] (compaction) fix time series compaction policy

Proposed changes

Time series policy does not rely on permits
add fail log for cloud compaction
fix compaction in cloud mode
fix compaction level
Issue Number: close #xxx

run buildall

run buildall

run buildall

run buildall

run buildall

run buildall

run buildall


Support Mesos Framework Authentication

See the Mesos protobuf for Credential
Also see Marathon's issue/implementation: https://github.com/mesosphere/marathon/issues/638

https://github.com/mesos/myriad/pull/51


Request for guidance on generating fastfold training cache files

Hi ;
I am in the process of setting up FastFold for training and encountered a requirement for 2specific cache files: mmcif_cache.json and chain_data_cache.json. These files appear to be essential for filtering templates by release dates and managing chain-level data during the training process. Could anyone provide guidance or scripts on how to generate these cache files?

if anyone has the same question here is the solution: https://github.com/aqlaboratory/openfold/tree/main/scripts
use openfold scripts to generate the cache files.


How does replication and portable authorizations work?

If I have a document on an encrypted data vault A, https://example.com/edvs/z4sRgBJJLnYy/documents/zMbxmSDn2Xzz, and and I have an authorization/capability for that document, how does the EDV spec ensure that when the document is replicated to another vault B, that my authorization works for that replica also?
(See also the discussion over at https://github.com/decentralized-identity/edv-spec/issues/52 )

Discussed on Sep 30, 2021 call.
Q: Do we consider replication to cross trust boundaries?

Who controls (the key to) the vaults?
Who is hosting them (who owns/controls the machines it's hosted on)
Are the vaults on different domains?
There's a difference between a multi-tenant hosting service EDV, and a single-tenant EDV.

It's important to understand the various use cases. (see Replication use cases doc.)

Dave Longley: If the replication crosses trust boundaries, then you're going to need a different authorization (capability/token)
Dave Longley: If it's WITHIN the same trust boundary, you'd want to make the authorization the same (no need to complicate the interface).
Adrian: How do resources controlled by multiple entities play into this?
Dave Longley: in terms of the authorization data model, if you're crossing web domains/origins, you're crossing trust boundaries (it does not matter that both domains are controlled by the same entity). This is how the general browser security model works, too.

Proposal: in the spec, when we're talking about replication and authorization, we should add a section (and give examples) of this, that when you're hosting on different domains, you're crossing trust boundaries (and its effect on the authz data model).


Missing Conan package

It'd be convenient if ion-c were in Conan's default package repository. What do you think?

Sounds like a good idea to me.


React-based ESLint rules, enforce hook deps

We were missing eslint packages here for react-based stuff incl hooks - added those in here and updated all functionality that was missing deps to have those included for hooks like usememo/usecallback
Tested by publishing an alpha version and linking in the react-sdk-demo repo, checking that existing functionality (incl onramp) works as expected (prior to this the onramp window wasn't correctly being opened when the user changed during the session.

Current dependencies on/for this PR:

latest

PR #128   👈

This comment was auto-generated by Graphite.

Oh but the shared eslint config is private (https://www.npmjs.com/package/@fractalwagmi/eslint-config-next)
So nevermind - we probably don't want to bring it in here.

yeah IIRC we talked about doing this but the eslint package is nextjs specific as well as private


Getting this error when logging to neo db from improhound

Have you added the APOC plugin to Neo4j? Check out 2. Install APOC Neo4j plugin  under Install.

The thing is I saw that immediately but was hoping of some other error (i.e. on your side), not having to install the plugin. :-)
Thanks for response and developer's time. I currently work in two relatively large tiering model implementations and would like to see if Improhound finds any anomalies there.


CTHUB ITVR - Add ITVR Dashboard into Collection Menu Sidebar

Describe the task
Add ITVR Dashboard into the collection menu situated on the sidebar of the application interface (CTHUB/Metabase). This addition will facilitate quicker access and navigation to the ITVR Dashboard for users.
Purpose
The purpose of this task is to enhance user experience and efficiency by providing direct access to the ITVR Dashboard from the collection menu. By integrating the dashboard into the sidebar, users can navigate to it without the need for additional clicks or steps.
Acceptance Criteria

[ ] Add ITVR Dashboard link to the collection menu on the sidebar.

Additional context

Hey team! Please add your planning poker estimate with Zenhub @emi-hi @tim738745


Don't print the full env var name in error message.

This avoids a possible credential leak, in case the user accidentally passes the env variable instead of its name. This is particularly likely because until very recently, that's exactly what we told users to do. So there is a real risk of leaks for early adopters, which this change mitigates.

Just pushed a fix for the tests: we have tests that check this exact behavior, so we needed to update those as well.


Need help to generate a UMD module

Hello,
I'm quite lost on how to generate a UMD module to use in a browser. I have an error while using browserify, which seems to be linked to babelify, which I need to use first apparently. There's no clear explanation on how to do that. Can you provide a guide on how to do so ?

git clone https://github.com/Kagami/avif.js
npm i
git apply parcel.patch
npm start

In the dist dir it will contain the demo.js, avif-sw.js, dav1d.wasm (the AV1 polyfill) and their source map files.
An example of using api exposed from avif.js can be seen here: https://github.com/Kagami/avif.js/blob/69b52903c1f0d713e9a5082daac162b377b6ad83/demo/index.js#L4

Detailed example:

Create file /index.js (filename is not important) with the following content:

import avif from './avif.js';
avif.register(navigator.serviceWorker.register('avif-sw.js'), {
    wasmURL: require('dav1d.js/dav1d.wasm')
});

Then run ./node_modules/.bin/parcel build index.js
The /dist/index.js will be your UMD build, you can use it by a static import like <script src="url/to/dist/index.js"> or dynamically load it via $.getScript() when you detected the user's browser does not support decoding avif natively.
3.1. How to detect avif supporting: https://github.com/Modernizr/Modernizr/blob/6d56d814b9682843313b16060adb25a58d83a317/feature-detects/img/avif.js
3.2. and av1 codec: https://github.com/Modernizr/Modernizr/blob/86ebb0447a8f698b22320b2bb560968050d47cf7/feature-detects/video/video.js#L60 or use a simply one-linear document.createElement('video').canPlayType('video/mp4; codecs="av01"') === ''
3.2.1 If the user's browser (for example within the range chrome 57~70) doesn't have av1 codec then the wasm-based dav1d.js AV1 polyfill will be served from /dav1d.wasm.
/dist/index.js will contain only the bundled content of avif.js and index.js, so you will still have to put the /dist/avif-sw.js and /dist/dav1d.wasm under your domain root url or the /dist/index.js will be unable to register the service worker from 404.
If you wanna stop using the avif.js for your site, you can't just delete the /dist/index.js and remove its references, but also have to unregister the avif-sw.js worker to prevent all future web requests with url ends with .avif being staled by this service worker that caused by following execution flow:
https://github.com/Kagami/avif.js/blob/69b52903c1f0d713e9a5082daac162b377b6ad83/avif-sw.js#L124
https://github.com/Kagami/avif.js/blob/69b52903c1f0d713e9a5082daac162b377b6ad83/avif-sw.js#L80
https://github.com/Kagami/avif.js/blob/69b52903c1f0d713e9a5082daac162b377b6ad83/avif.js#L126
https://github.com/Kagami/avif.js/blob/69b52903c1f0d713e9a5082daac162b377b6ad83/avif-sw.js#L104
https://github.com/Kagami/avif.js/blob/69b52903c1f0d713e9a5082daac162b377b6ad83/avif-sw.js#L24


Add ES2023 keyword literal tokenization

Todo list:

[ ] NullLiteral
[ ] BooleanLiteral

This issue is a part of:

gh-9

null, true, and false are already covered by ReservedWord.


8557 check valid taxonomy

#8557
Added id checks on every function executing queries on taxonomy or term id to avoid executing the query when the parameter is not valid (id <= 0) and avoid some queries when they would clearly return a empty result.
This mostly is a sanity check but, in some scenario, id = 0 is passed as a parameter and a query on the database is executed, giving no results.

Did you find out how these ids are < 0 ?

Did you find out how these ids are < 0 ?

It is, in theory, possible to call those functions passing a negative int as a parameter, even if it should never happen and I have never actually seen it.
A zero value is passed, for instance, when building taxonomy related menus.

Looks good


How install the bundle

Could you please to write a instruction "How add this bundle in symfony project

Any info ?


Action Find Event (Shift+Alt+E) lookup only business, integration events defined in the source code

1. Describe the bug
If I call "Find Event"action and searching for a trigger events ( system events that are automatically declared and published in a table and page object) the dropdown menu not showing these events subscribers.
2. To Reproduce
From an AL project in codeunit object open the event list by using the Shift + ALT + E shortcut.
Start typing e.g. 'OnBeforeModifyEvent'.  Selecting an event from the list is not possible.

3. Expected behavior
The list should include all the events as is stated in documentation for EventSubscriber Attribute https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/attributes/devenv-eventsubscriber-attribute

4. Actual behavior
When calling "Find Event" action, only business and integration events are listed in dropdown menu
5. Versions:

AL Language: 11.5.834620
Visual Studio Code: 1.80.1

We discussed this internally and we will update the documentation to reflect the current behavior because the list of events would be too big and most likely unusable.

Dear @qutreson
Okay.
I don't know how this works internally, but:

the number of events could be limited on initial load. Then would be dynamically loaded only the new ones when you scroll/move up/down the list or when you narrow down the search,
if all events need to be loaded at once, then I also aggre that action will most likely be useless due to higher loading time after initiating the command


fix(#387): add the option to provide custom fetch

Fixes #387

I think passing in custom options should be done in a constructor rather than for each call:
Something like:
import { UTApi } from "uploadthing/server";

const utapi = new UTApi({
  fetch: myFetch,
});

utapi.deleteFiles(...)

What'ya think?

Superseded by #388


Split Coupler and ClimaAtmos ArgParse

It's not sustainable to maintain a superset of the argparse table between the coupler and ClimaAtmos. We should somehow have separate settings / tables. This will make maintenance much easier.

Firs step to make this cleaner: ClimaAtmos.jl PR https://github.com/CliMA/ClimaAtmos.jl/pull/1895

This is superseded by #388 .
There is no need to maintain the Atmos argparse table. It's just one entry now (--config_file).


Instance network metrics calculation with API

ISSUE TYPE

Other

COMPONENT NAME

CLOUDSTACK VERSION 4.17.2

CONFIGURATION

OS / ENVIRONMENT

SUMMARY
I need to calculate the amount of downloaded and uploaded traffic on each instance for accounting purpose
For example if Download value for an instance reach 20 GB in a week (Download a 1GB file for 20 times)
STEPS TO REPRODUCE

EXPECTED RESULTS
I have downloaded this file with "wget" which it is approximately 2 GB with an instance and I except that the API show me a same value but was not same acctually. here is the like for download file
https://github.com/szalony9szymek/large/releases/download/free/large
this is returned values form api :
"networkread": "41.20 MiB",
"networkwrite": "0.91 MiB",

ACTUAL RESULTS

@meisammaleki can you try your scenario with a newer version?

The only way for check newer version is to use ACS simulator which I'm not sure about its functionality, also I cannot upgrade the current environment to newer one

no @meisammaleki , in a simulator this functionality can not be verified.

The only way for check newer version is to use ACS simulator which I'm not sure about its functionality, also I cannot upgrade the current environment to newer one

I'll try and find the time to verify it in a newer version.


[CLI] Can't save model, h5py returned error:

Description
W&B shows this warning when a Keras model uses a layer that's not part of Keras sequential or Functional APIs.
My model definition is:
def CommonLitModel():
    # Input layers
    input_ids = Input(shape=(CONFIG['max_token_length'],), dtype=tf.int32, name="input_ids")
    attention_mask = Input(shape=(CONFIG['max_token_length'],), dtype=tf.int32, name="attention_mask")

    # Transformer backbone to extract features [CAUSE OF ERROR]
    sequence_output = transformer_model(input_ids=input_ids, attention_mask=attention_mask)[0]
    clf_output = sequence_output[:, 0, :]

    # Dropout to regularize
    clf_output = Dropout(0.1)(clf_output)

    # Output layer with linear activation as we are doing regression.
    out = Dense(1, activation='linear')(clf_output)

    # Build model
    model = Model(inputs=[input_ids, attention_mask], outputs=out)

    return model

Since I have used a transformer model which is not part of sequential or functional API, serializing the model using the h5 format is potentially throwing this warning.
Wandb features
I am using Keras WandbCallback().
How to reproduce
Kaggle kernel to reproduce.
Environment
Kaggle environment.
Potential Fix
Upon investigating the client/wandb/integration/keras/keras.py file there's a line:
self.filepath = os.path.join(wandb.run.dir, "model-best.h5")
Since custom layers can't be serialized using h5 format if the line is modified such that,
self.filepath = os.path.join(wandb.run.dir, "model-best")
Keras will save the model in the default SavedModel format. However, it will create a directory with the name model-best with multiple files within.

Hey @ayulockin
Thanks for the clean code and the issue. We will try to track it internally.


add items to CHEBI:75244 - aklaviketone

Please add PMID: 3165374, PubChem CID: 443827, and the species Streptomyces galilaeus.

The species, taxonomy ID  and associated PMID have now been added to the Species Information section. The PubChem CIDs for all of the compounds in ChEBI are now generated automatically based on structure and name matching, so in the public website appear under the Automatic XRefs tab.
Kind regards,
Gareth


Enhance performance on iOS stasts resolution

iOS service performance can be enhanced by:

Parallel execution of requests for period queries
Store locally in tmp folder stats files so don't have to query again when invoked to resolve another app stats

Just store of tmp files has been implemented. Parallel execution of task is pending


Issue compiling on xcode 12.4

I seems that the ZLImage editor lib causes a swift compile error here:
https://github.com/baronha/react-native-photo-editor/blob/master/ios/ZLImageEditor/Sources/General/ZLEditImageViewController.swift#L289
I am seeing the error "Type of expression is ambiguous without more context"

What swift version are you using? Make sure it's swift 5.0+

Ya, I should be on swift 5+ because of other libraries that need that.
I ended up needing to update our app to xcode 13 and the issue went away. No other config changes done. I'll close this unless someone else sees it.


Upgrade from chart 0.2.7 to 0.2.8 / 0.2.9 not working

When I try to upgrade the chart from 0.2.7 to 0.2.8 or 0.2.9 I get the following error while confluence starts up:
Error: Could not find or load main class map[enabled:false]
And the booting process stops there. Do you have any idea, what's wrong there?
And on 0.2.5 I get this error since I restarted the server:
2020-07-17T18:54:16.567929087Z WARNING: An illegal reflective access operation has occurred
2020-07-17T18:54:16.568009721Z WARNING: Illegal reflective access by com.atlassian.hibernate.adapter.proxy.BytecodeProviderImpl_ImplementV2Proxy (file:/opt/atlassian/confluence/confluence/WEB-INF/lib/hibernate.adapter-1.0.3.jar) to field java.lang.reflect.Field.modifiers
2020-07-17T18:54:16.568040828Z WARNING: Please consider reporting this to the maintainers of com.atlassian.hibernate.adapter.proxy.BytecodeProviderImpl_ImplementV2Proxy
2020-07-17T18:54:16.568064459Z WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
2020-07-17T18:54:16.56808574Z WARNING: All illegal access operations will be denied in a future release

This was the reason I wanted to upgrade in the first place.

Hi, thanks for reaching out.
I couldn't reproduce the issue yet. Did you set any env var under envVars in values?

About the warnings, I can confirm I get them too. It looks like something changed in the docker image. I think Atlassian could give more information about those warnings:
2020-07-20 07:31:49,438 INFO [Catalina-utility-1] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 7.6.1 [build 8501 based on commit hash 8467d75e6ec25a8d10de99d6fdc0db245ae130a6] - synchrony version 3.1.0-master-022ca438
2020-07-20 07:31:51,652 WARN [Catalina-utility-1] [com.atlassian.config.ApplicationConfig] setApplicationHome Application home does not exist. Creating directory: /var/atlassian/application-data/confluence/shared-home
2020-07-20 07:31:51,656 INFO [Catalina-utility-1] [atlassian.confluence.cluster.DefaultClusterConfigurationHelper] lambda$saveSetupConfigIntoSharedHome$9 Writing setup configuration into shared home...
2020-07-20 07:31:51,660 INFO [Catalina-utility-1] [atlassian.confluence.cluster.DefaultClusterConfigurationHelper] lambda$saveSetupConfigIntoSharedHome$9 Finished writing setup configuration into shared home
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender (file:/opt/atlassian/confluence/confluence/WEB-INF/lib/org.apache.felix.framework-5.6.12.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

Sorry, I totally forgot about that issue. It is not solved yet. I tried to upgrade to version 2.0.1, but there were other issues. It said:
coalesce.go:160: warning: skipped value for extraEnv: Not a table.
Error: UPGRADE FAILED: cannot patch "jira-software-db" with kind StatefulSet: StatefulSet.apps "jira-software-db" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden
Now I also couldn't go back to 0.2.6. The postgres init container is not working, it says, the connection is refused, but the postgres container is started correctly and is reacheable.
Yes, I had envVars:
envVars:
ATL_PROXY_NAME: my.domain.tld # Not the real domain of course
ATL_PROXY_PORT: 443
ATL_TOMCAT_SCHEME: https

Hi, thanks for providing more info.
Could you also put here the command you used to install the chart and the command you used to upgrade it?

Hey, unfortunately not. I already made a Backup and made a fresh
Installation of the latest Version. I think the Problem was, that you
switched the postgres chart between those versions to bitnami.
That switch crashed something in the postgres part and the database was not
available or the password was incorrect or something.
The newest Version works like a charm, thanks :)
jmox<EMAIL_ADDRESS>schrieb am Mi., 11. Nov. 2020, 20:32:

Hi, thanks for providing more info.
Could you also put here the command you used to install the chart and the
command you used to upgrade it?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/javimox/helm-charts/issues/12#issuecomment-725617940,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACAADHW7GJO7V3YKKABB2MTSPLREZANCNFSM4O6W7MZQ
.


Fix code scanning alert - pypa-setuptools: Regular Expression Denial of Service (ReDoS) in package_index.py

Tracking issue for:

[x] https://github.com/obervinov/pyinstabot-downloader/security/code-scanning/18

has been fixed in v2.1.0


Update ci.yaml

Update to latest from the "upstream" rules-template.
This adds the missing test execution of the e2e/ folders.
Expecting it to be red to start with, as we have a rules_rust dangling load.

Type of change

Chore (any other change that doesn't affect source or test files, such as configuration)

Merged as part of #265


Add FhirDateValue component to render date primitive data type

FHIR Spec: https://hl7.org/fhir/datatypes.html#date
Example usage:
<FhirDateValue value="1971-02-04" />

Component should use the formatter provided by the UIComponentsProvider Context.

I will close this one as it's since been addressed differently by #81 - a common <FhirValue /> component that can leverage the adapters.

I will close this one as it's since been addressed differently by https://github.com/bonfhir/bonfhir/pull/81 - a common  component that can leverage the adapters.


Snippet don't save ${}

VSCode Version: 1.47.3
OS Version: Windows 10

Steps to Reproduce:

Does this issue occur when all extensions are disabled?: Yes
When I use snippet it's don't saving the ${} variables,
pls check it.
(sry for my english)
Amit

/needsMoreInfo
Please update this issue after reading https://github.com/Microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions#writing-good-bug-reports-and-feature-requests. Thanks.


Ontology validator using describedBy and $ref URIs

The ontology validator is now able to read URIs out of metadata docs and schemas from schema.humancellatlas.org..
These changes do NOT include migration to using the HCA OLS instance (http://ontology.dev.data.humancellatlas.org)!

Codecov Report

Merging #9 into stable/5 will increase coverage by 0.84%.
The diff coverage is 95.55%.

@@             Coverage Diff              @@
##           stable/5       #9      +/-   ##
============================================
+ Coverage     76.48%   77.33%   +0.84%
============================================
  Files            15       15
  Lines           689      728      +39
============================================
+ Hits            527      563      +36
- Misses          162      165       +3

Impacted Files
Coverage Δ

config.py
100% <100%> (ø)
:arrow_up:

ontologyvalidator/ontologyvalidateutil.py
87.5% <100%> (+1.78%)
:arrow_up:

ontologyvalidator/ontologyvalidator.py
62.96% <100%> (+2.17%)
:arrow_up:

tests/test_ontology_validation.py
96.25% <90.9%> (-2.06%)
:arrow_down:

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 55ef9f8...845a2e3. Read the comment docs.


KCI-tests: Remove TestKCI and add assertions to TestCIT_KCI

Updates:

Fix a bug in KCI.py, so the python version can return almost the identical results to the Matlab version. Here 'almost' means the difference in p-value between the two is smaller than 0.003 due to some randomness.

Delete TestKCI class, since TestKCI and TestCIT_KCI are duplicated.

Add test cases where the datasets are generated by nonGaussian distributions, e.g., exponential distribution, uniform distribution and the mixture of these distributions.

Remove print commands and add assertions on the exact p-value. The ground truth p-value is computed from the current version 27a8e7a.

Test plan:
python -m unittest TestCIT_KCI    # should pass

TODO:

Fix the problem that the Matlab version can still result in weird p-values in a few cases.

Design more comprehensive test cases, including designing dataset of corner cases (e.g., data generated by more complicated distribution, discrete data type, larger sample size).

Thanks for the great work!! :)
Some general comments that needs to be fixed:

Could you update your test plan? The current test plan is not really a test plan --- it's more like a future work (actually very good todos). You can check previous PR to see what is good test plan, e.g. https://github.com/cmu-phil/causal-learn/pull/46

For this PR, your test plan should be: the test you run and the test results (your tests should all pass). A test pass screenshot would be great here.

For all the todos, please add @todo(aoqiz) in the code as a comment. In this way, we can make sure the todos are assigned to the owners, and will be addressed later eventually. I am pretty sure todos without tracking will not be done almost for sure, haha. It's very easy to lose tracks to all the todos. But I agree in the first PR, we don't need to finish all the complex test.

Thanks @aoqiz for your great work! Some of my comments:

As is mentioned by @tofuwen "Why we need two classes, i.e. CIT_KCI and KCI? This looks duplicated", we could actually delete TestKCI.py. And all our tests of other CITests can be named this way, e.g., TestCIT_fisherz.py.
Currently TestCIT_KCI is doing exactly the same thing asTestKCI in our old codebase, with some rewriting for the new CIT class. This is good, but could we add something more? See below:

The current test only aims to show the "correctness" of KCI, by e.g., pvalue>0.01. But this may be misleading - the result pvalue may just happen to be correct while the code logic itself is incorrect. To avoid this, we'll need to ensure that the code logic is unchanged after every updates. We could refer to the test plan of this: for every possible parameters combination of KCI, the returned pvalue is unchanged. E.g., we could load data_linear_10.txt (example), assert KCI's pvalue and severity of 0;1, 0;1|2, ..., always equal to your saved values by the current runs - just put them in your code is okay.
Adding nonGaussian distribution is necessary for KCI. E.g., np.random.uniform, np.random.exponential.
Currently the multi-dimensional Y and Z are somewhat weird. Why do we need to concat X twice here, but in CItests, we only test one dimensional of Y and Z? Yes we could keep this later to test KCI for multi-dimensional unconditional variables, but for the standard tests, we may just use the univariate variables, e.g., Y=X+EY, Z=Y+EY, ...

Thanks @MarkDana @tofuwen for the very helpful and constructive suggestions! I'll keep on improving these tests.

Thanks @MarkDana for your comments.
Regarding "making sure the code logic is unchanged after every updates", I am a little worried about the current code correctness. This only makes sense if we can ensure the current version will gives correct output and no randomness.
I am thinking another way to make sure the test is doing as expected from stat point of view: under the null, p-value should follow uniform distribution. We can run the current KCI code for multiple times when null is true to see whether the p-value follows uniform distribution?

Hi @aoqiz,
Could you address @MarkDana's previous comments and push the PR to be accepted?
Currently there are still some issues in this PR. Some important ones:

tests/TestKCI.py seems duplicate. We can delete it.
For now, we can do the easy thing to make sure the test is reasonable: you can just follow @MarkDana's suggestion to ensure the code logic is unchanged for now.
adds some non-gaussian distribution to KCI
address the concat(X, X) issue --- currently I  do not fully understand all the logic here, I will spend more time on it.

Let me know if you have more questions --- we can meet to discuss! :) I know usually it's very hard to get to know how to write tests and design tests in the beginning (and write industry level code). :)

@aoqiz Do you mind sharing some updates here?
What's the current status regarding comparing matlab version and python version? Maybe the first step would be make sure the python version can return the identical results with matlab version

Hi, @tofuwen @MarkDana, here is a summary of the comparison of the current Python version and the Matlab version on KCI test.
Since the Matlab version cannot support too flexible arguments, we only test the basic setting: applying Gaussian kernel to all variables X, Y and Z and setting the kernel width using empirical rules. The results for Python are as follows:
import numpy as np
import causallearn.utils.cit as cit

# np.random.seed(50)
# X = np.random.randn(30, 1)
# X_prime = np.random.randn(30, 1)
# Y = X + 0.5 * np.random.randn(30, 1)
# Z = Y + 0.5 * np.random.randn(30, 1)
# data = np.hstack((X, X_prime, Y, Z))
# np.savetxt("GaussianData.csv", data, delimiter=",")
data = np.loadtxt("GaussianData.csv", delimiter=",")

If we use gamma approximation (approx=True), the resulting p-value is deterministic.

approx = True
for use_gp in [True, False]:
    # The argument 'use_gp' only relates the conditional KCI, so only 'pXZY' will be affected.
    cit_CIT = cit.CIT(data, 'kci', kernelX='Gaussian', kernelY='Gaussian', kernelZ='Gaussian',
                      est_width='empirical', approx=approx, use_gp=use_gp)
    pXX = cit_CIT(0, 1)
    pXZ = cit_CIT(0, 3)
    pXZY = cit_CIT(0, 3, {2})
    print('\napprox =', approx, ', use_gp =', use_gp, ':')
    print('pXX:', round(pXX, 4))
    print('pXZ:', format(pXZ, '.4e'))
    print('pXZY', round(pXZY, 4))

Output:
approx = True , use_gp = True :
pXX: 0.2662
pXZ: 5.0105e-06
pXZY 0.3585

approx = True , use_gp = False :
pXX: 0.2662
pXZ: 5.0105e-06
pXZY 0.3977

Otherwise (approx=False), the resulting p-value is not deterministic due to the simulation of null distribution in the function null_sample_spectral(xxx) in the class KCI_UInd and KCI_CInd. (I've checked that other deterministic parts can have the same output with the Matlab version on the same input.) Therefore, we run the program 500 times and calculate the mean of p-values.

approx = False
for use_gp in [True, False]:
    np.random.seed(50)
    pXX = []
    pXZ = []
    pXZY = []
    for i in range(500):
        cit_CIT = cit.CIT(data, 'kci', kernelX='Gaussian', kernelY='Gaussian', kernelZ='Gaussian',
                  est_width='empirical', approx=approx, use_gp=use_gp)
        p01 = cit_CIT(0, 1)
        pXX.append(p01)
        p03 = cit_CIT(0, 3)
        pXZ.append(p03)
        p032 = cit_CIT(0, 3, {2})
        pXZY.append(p032)
    print('\napprox =', approx, ', use_gp =', use_gp, ':')
    print('pXX: mean = {}, var = {}'.format(round(np.mean(pXX), 4), format(np.var(pXX), '.4e')))
    print('pXZ: mean = {}, var = {}'.format(round(np.mean(pXZ), 4), format(np.var(pXZ), '.4e')))
    print('pXZY: mean = {}, var = {}'.format(round(np.mean(pXZY), 4), format(np.var(pXZY), '.4e')))

Output:
approx = False , use_gp = True :
pXX: mean = 0.246, var = 1.8853e-04
pXZ: mean = 0.0001, var = 6.6156e-08
pXZY: mean = 0.3371, var = 4.9257e-05

approx = False , use_gp = False :
pXX: mean = 0.2468, var = 1.8931e-04
pXZ: mean = 0.0001, var = 7.1376e-08
pXZY: mean = 0.3736, var = 4.5726e-05

Using the same dataset GaussianData.csv generated by Python, the Matlab version results are provided in Matlab_results.pdf.
We can see that they give the same p-value in deterministic cases and almost the same p-value in non-deterministic cases. This conclusion also applies to other datasets I tried on.

Thanks, this is awesome @aoqiz!
I think the only thing left is we need to debug the matlab KCI version when it outputs weird values right? What's the progress there?
But I think matlab KCI issue is not very relevant to our code here though. I think we can merge this code first. Do you mind adding a todo in your code to remind us debug matlab KCI version, and update the "issue tracking doc" accordingly? :)
Thanks so much for spending a lot of time to debug this very tricky bug!! :)

Oh, btw, after your fix, how about the KCI issue we mentioned previously?

Thank you, @tofuwen. I haven't submitted the current test file yet in case of new changes.  But I'll do this now. Once finished, I'll remind you. Thanks!

adding a todo in your code to remind us debug matlab KCI version, and update the "issue tracking doc" accordingly?
Sure, I'll do this later.

Oh, btw, after your fix, how about the KCI issue we mentioned previously?
We do not have those issues after fixing the bug on kernelX.set_width_empirical_kci(data_z) last time.

What we left now is

to debug the Matlab KCI version when it outputs weird values.
ask Mingming these expert questions.

Hey @aoqiz,
Just to be clear.
https://github.com/cmu-phil/causal-learn/issues/56 this issue is solved after your fix, right? :)

Great, thanks for the great work, @aoqiz !!
I think this PR is ready to be pushed. cc @kunwuz
After we got response from Mingming and Kun, we can open another PR to fix. This PR is already great!

BTW, please first rebase the merge this PR --- otherwise I am afraid bad conflict will happen (cc @MarkDana @kunwuz @aoqiz )

@tofuwen After checking with the expert, the weird results in the Matlab version are expected. More care should be taken as to what kernel width is set manually. So there's no more issue remaining in this PR, I think. It's ready to be merged.
@MarkDana I'm not familiar with resolving conflicts and rebasing the code, so could you please help me with this? Many Thanks!
I will look into the issue #56 after #62 is merged, which is ready to merge, right? since I need the code for multi-dimensional variables in PR #62.

@aoqiz great to know! Then in the test in your code, could you also set kernel width correctly so that we don't have weird p-value results in your test?
Also, how should we set KCI width? Is there any instructions? I guess the users may not be able to set Kernel width correctly as well.

@tofuwen The weird p-value only happens when users set kernel width manually in two cases listed in Weird_test_cases.pdf. But, usually, they may set the parameter est_width=empirical instead of est_width=manual, except that they have special requirements.
I don' think we need to set kernel width 'correctly' when we're testing setting kernel width manually since it's just an exhaustive test on any possible argument values we could have. The weird p-values are expected in these two cases, while in other cases, these manually setting kernel width works quite well.

@aoqiz I see. I still prefer to set a reasonable kernel_width and we shouldn't allow weird p-values exist in our test. If users check our code and saw these extremely weird p-value, they will lose trust.
And the test should cover real use case --- if our test return super weird p-value, this means it should never be the real use case.

@tofuwen Ok, let me think about it.

@tofuwen Fixed. Please have a double check, thanks!

@tofuwen Fixed. Please have a double check, thanks!

Thanks, looks super nice now. :) We can merge it after resolving conflicts.

@MarkDana could you help @aoqiz to merge this PR?

@tofuwen Oh yes. I already put it here. https://github.com/aoqiz/causal-learn/pull/2
Aoqi will merge that when she's available. And then this pr should be able to merge :)

@kunwuz finally, this is ready to go!!
Thanks so much @aoqiz for your terrific work. Must be a lot of time. And thanks @tofuwen @kunwuz for making all this happen :))

Big thanks to @MarkDana @tofuwen @kunwuz  for your help with this PR!! thank you very much!


Implement language grammars

A solid set of some of the most popular ones:

[x] Python
[x] TypeScript
[x] Go
[x] Rust
[x] C#

And then, for each or at least most, implement all, or most of (if relevant for the language):

[x] comments
[ ] "documentation strings"
[ ] function names (at definition site)
[ ] function calls
[ ] class/struct/enum names (at definition site)
[x] strings
[ ] variable names
[ ] type annotations

For all languages, comments and strings are implemented, as of f8910c8c71f7aa8a5178154bf6f11d96f1eddc5d, as a "least common denominator":

all languages have those
they're likely the most interesting in the context of srgn

Others, like "function calls in Rust", can be implemented once demand is there.


Can't modify C++ string type variable in local window

VSCode Version: <IP_ADDRESS>
OS Version: Ubuntu Server 18.04 LTS
Cpptools: v0.28.3

Steps to Reproduce:
1.Open tests folder in attachments directly.
a.zip
2.Set a breakpoint on line 20 in a.cpp file.
3.Press F5 to start debugging.
4.When hitting the breakpoint, modify the value of the String type variable in the Local window and press Enter.
Excepted:
It can modify normally.
Actual:
It pop up a error message:

Investigation:
You can successfully modify int type variables in the local window.

Does this issue occur when all extensions are disabled?: Yes/No

Please file against C++ extension.

Link this issue to another:https://github.com/microsoft/vscode-cpptools/issues/5662


Local storage details doesn't seem to get cleared

Describe the bug
Tus client seems to be writing some information to browser storage. However they keep collecting and not getting cleared even if files are uploaded successfully.
To Reproduce
Steps to reproduce the behavior:

Just upload a file, make sure it's successful
See local storage tab in dev tools
you can see stale entries, even those that happened. see below
4

Expected behavior
Once the file is successful updated these data should be cleared
Setup details
Please provide following details, if applicable to your situation:

Runtime environment: [e.g. Browser, Node.js, React Native]
Used tus-js-client version: [can be obtained by running npm ls] - latest
Used tus server software: [e.g. tusd, tus-node-server etc] tus-dot-net

This is not a bug, but the indended behavior. If you want to clear entries from localStorage upon completion, use the removeFingerprintOnSuccess option: https://github.com/tus/tus-js-client/blob/master/docs/api.md#removefingerprintonsuccess


feat: support additional resources across tenant namespaces

This attempts to address  #525 which is related to #416.
problem this commit is trying to solve
Alice would like to create several resources on each of their Namespaces.
Upon the creation of each Namespace, they have to create the desired resources on each Namespace

On the above linked tickets there are two proposed approaches
approach 01
Create a new resource TenantResource  something like this
apiVersion: capsule.clastix.io/v1beta2
kind: TenantResource
metadata:
  name: database
  namespace: solar-management
spec:
  resyncPeriod: 60s
  additionalResources:
    namespaceSelector:
      matchLabels:
        tier: one
    items:
    - apiVersion: presslabs.io/v1beta1
      kind: MySQL
      spec:
        foo: bar
  clusterRoles:
    namespaceSelector:
      matchLabels:
        tier: one
    items:
      - name: database-admin
        subjects:
        - kind: Group
          name: developers

approach 02
Extend Tenant to  support addtional resources
apiVersion: capsule.clastix.io/v1beta1
kind: Tenant
metadata:
  name: gas
spec:
  additionalResources:
    -  apiVersion: "cilium.io/v2"
       kind: CiliumNetworkPolicy
       metadata:
         name: "l3-rule"
      spec:
        endpointSelector:
          matchLabels:
             role: backend
       ingress:
       - fromEndpoints:
         - matchLabels:
             role: frontend

This commit implements approach 02 due to the following reasons

The namespaces belong to the tenant already, extra TenantResource seems redundant given that the lifecycle of the additional resources are tied to the Tenant.

How does the crd look like now ?
apiVersion: capsule.clastix.io/v1beta1
kind: Tenant
metadata:
  name: oil
spec:
  resyncPeriod: 60s
  additionalResources:
    namespaceSelector:
      matchLabels:
        tier: one
    items:
      - |
        apiVersion: v1
        kind: Pod
        metadata:
          name: nginx
          labels:
            app.kubernetes.io/name: proxy
        spec:
          containers:
            - name: nginx
              image: nginx:11.14.2
              ports:
                - containerPort: 80
                  name: http-web-svc
      - |
        apiVersion: v1
        kind: Service
        metadata:
          name: nginx-service
          labels:
            app.kubernetes.io/name: proxy
        spec:
          selector:
            app.kubernetes.io/name: proxy
          ports:
            - name: name-of-service-port
              protocol: TCP
              port: 80
              targetPort: http-web-svc
  owners:
    - name: alice
      kind: User

The difference with the proposed crd is, items are strings of k8s objects in yaml
format. I ran through decoding issues when I tried to use Unstructured  so I
decided to settle on strings instead.
How it works ?
We search for namespaces  specified by namespaceSelector that are owned by the
tenant. For each matched namespace, apply all resources specified in additionalResources.items
on any error, reschedule next reconciliation by resyncPeriod.
What is missing ?

[ ] Tests
[ ] What happens when a tenant is deleted ?
[ ] Does additionalRoleBindings cover for  clusterRoles defined in approach 01?

I will wait for feedback/discussion on how to proceed from here.

@gernest @prometherion I'm proposing to close this since no progresses.

@bsctl @gernest this feature is very useful. Why no progresses？

My bad for not providing useful insights on this feature which is highly requested, and I'll try to elaborate properly.
Any new change in the API definition of a CRD, in our case the Tenant one, must follow a specific path for many reasons, although all it could be summed up by the fact that our preferred way to manage the lifecycle of Capsule is using Helm.
A new specification field in the Tenant definition would require a change in the charts/capsule/crds folder which is containing the Custom Resource manifests, and due to the opinionated way Helm is managing CRDs, these manifests are just installed when the release is missing in the cluster, requiring the Cluster Administrator to patch the CustomResourceDefinitions manually. No objection at all to this workflow, it's well known, and it has been deliberately put in place for many reasons I cannot share here since it would be off-topic.
Said so, we tend to implement features using the annotations of the custom resource, and it's really annoying due to the lack of type validation, issues with the max length of the key (RFC DNS-1123), and many other problems.
As maintainers, our idea is to propose this new feature for the upcoming milestone and we're still arguing on how to implement it properly, by asking for feedback from the community, and talking directly with the adopters, and as here on GitHub, as you could have seen.
I absolutely value the @gernest proactivity in trying to address this feature on his own, just a bit awkward fact that most of the hard work must be revisited, and since this is going to be a heavy feature, it should be managed by the maintainers itself to ensure a reliable implementation, and avoid eventually SPOF with the adopters that are contributing during their free time.
The main issue here has been my inactivity in pointing out all of these critic points before getting this PR opened, and a bit awkward that all the effort showed in this contribution will be lost, although we, as a community, are always welcoming contributions, and we're actively looking forward to it: syncing people, in a distributed and asynchronous world, is really challenging, I'll try to take note and behave more wisely in the future.


Add ...The most important feature of pomodoro custom rest timer!

Hi!
Your application is almost perfect BUT how did you decide not to add the rest timer for the pomodoro section and just live it to the user to go rest and come back and every damn time he should either remember to set an alarm or a ticking timer or just come back at proper time,
this need is so obvious that I  wanted to Alert you by issuing a bug.
can't believe that a good product like yours just ignored this simple but one of the most features that every small pomodoro extension in firefox or chrome has it and you just crippled yours by not just adding it, Well thats a shame!
Good luck,

this issue is a duplicate of this one

Thanks for the suggestion! We do have plans to add this as part of #1569 so I'm closing this as a duplicate; if you have any further suggestions on the break timer please add it to either #1569 or #597 :)


Babel's JSX

The link in the README for "Babel's JSX" is that the React Preset?

yes. I should update the docs


Comments: tech/proposal-for-new-internet-protocol-ip64

This is the issue-thread for the IP64 article so people can comment.

Comments for this article are now open!


Module not found when importing Data.Morpheus

After creating a new project using the scotty-hello-world template, I added the morpheus-graphql package, yet when I import Data.Morpheus it complains it can’t find the module.
import Data.Morpheus
-- Could not find module ‘Data.Morpheus’
-- It is not a module in the current program, or in any known package.

I've added the package in both the *.cabal and stack.yaml files. I've built the program using stack build and restarted VSCode.
The same day, I started another project with the same template but using the graphql-api package. I'm in the middle of exploring both packages. I got no problems there.

What happens if you run ghcide from the command line in the relevant directory? What does it say?

It shows other errors that I have lower in the file. The important thing is that it doesn't show the error I posted in the original post.

Do you have a hie.yaml file? If not, I would suggest to add one and specify the stack cradle.

That was it. 🙌Thank you very much.


fix: show calendar in active window

Previously, we tried to have one global calendar page. One problem with that is that the tab could exist but might be in a window that can't be focused. When that happens, a user has no visual explanation of why the calendar refuses to open.
This PR makes the calendar page only show once per window, instead of once per browser.

This change is

i think there is a bug here, the extension popup window isn't closing when going to calendar except the first time, at least in Arc, don't have the bandwidth to test in Chrome right now


User table does not exists...

Not sure what i am doing wrong here. I am getting when trying to login with a user or create one.
Does not look like the DB is created...
postgres_1  | 2020-10-28 13:24:12.381 UTC [32] ERROR:  relation "user" does not exist at character 263
postgres_1  | 2020-10-28 13:24:12.381 UTC [32] STATEMENT:  SELECT "user".id AS user_id, "user".email AS user_email, "user".first_name AS user_first_name, "user".last_name AS user_last_name, "user".hashed_password AS user_hashed_password, "user".is_active AS user_is_active, "user".is_superuser AS user_is_superuser
postgres_1  |   FROM "user"
postgres_1  |   WHERE "user".email =<EMAIL_ADDRESS>postgres_1  |    LIMIT 1
......
backend_1   | sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation "user" does not exist
backend_1   | LINE 2: FROM "user"

Never mind. runing build.sh did the trick...


Force linebreaks after grid tier names in v4 grid docs?

Right now the linebreaking is inconsistent and looks kinda weird:
http://v4-alpha.getbootstrap.com/layout/grid/#grid-options

Closed by #17207.


Remove partner from extensibiity-overview.md

Squared Up has asked us to pull their WAC extension and remove them from our documentation samples. There will be an accompanying request to remove the Squared Up page from the Case study section of the WAC documentation as well.
#sign-off

@jasongerend  Can you review this change?
@davannaw-msft  As a Microsoft employee, you should be working in the private repo, windowsserverdocs-pr. Since this is already complete, I can go ahead and merge after Jason does a quick review, but please open any new PRs in the private repo. Thanks!!!


Added: _WD_ExecuteCdpCommand

Hi, I have added a new _WD_ExecuteCdpCommand function in wd_helper.au3, it should be useful for those who are looking to use the advanced capabilities of the Chrome DevTools Protocol via ChromeDriver :smile:

@Danp2 Sorry about that, I didn't pay attention to the call to __WD_Error, I have updated my code to call it :slightly_smiling_face:


Possible update to how youtube handles thumbnails changing interactions with WebNowPlaying

I don't know much about this stuff so please bear with me.
I noticed that the dynamic color feature on the monstercat rainmeter skin wasn't working correctly, but only on certain youtube thumbnails.
Normally when monstercat grabs cover art it can grab color data and adjust it's color to match the cover art. Monstercat is seemingly still grabbing the cover art/thumbnail with no issues, but the problem is the color data it's trying to pull from certain youtube thumbnails is not working as intended.
I was thinking it was an issue with monstercat itself but after doing some digging I'm starting to think there was a change to how youtube handles it's thumbnails and it's creating a new weird interaction with WebNowPlaying.
I don't know when this issue started exactly. I only noticed it yesterday, but I could've sworn everything was working as intended before this.
Here's some examples of what exactly I'm talking about, including the cover art files monstercat is grabbing.

Example A: song info was grabbed from youtube. The color grabbed is incorrect (reading as white for some reason)

Example B: song info was grabbed from youtube music. Same song url from example A but inputted into youtube music instead. The color grabbed is correct.

Example C: I took the same thumbnail monstercat grabbed in Example A and re-exported it in adobe illustrator then replaced the original file with it. The color grabbed is correct?(grabbing dark red from edges instead or red from actual cover art. I'm assuming it's a monstercat thing and not WebNowPlaying).
One thing that might be of note is that the cover art grabbed from youtube in example A is unable to be opened in photoshop because it gives the error, "Not a PNG file"???

The file that comes out is actually a jpeg file. I was just about to write an issue about this. But it has .png as its extension. I don't know why. Used https://hexed.it to look at the binary data.

I don't plan to fix this, if rewritten using keifufu/WebNowPlaying-Library then this issue would be resolved as cover images are always properly converted to pngs there.
Feel free to create a PR if you can fix this issue, sorry.

wip

Fixed in v3, for which there is a prerelease on github now.
Closing this as it is fixed, even though the pre-release is not yet stable and I do not recommend using it.


abstract Tuple deserialization

Current coverage is 100.00%

Merging #28 into master will not affect coverage as of 0acc646

@@            master     #28   diff @@
======================================
  Files           14      14
  Stmts          214     214
  Branches        50      50
  Methods          0       0
======================================
  Hit            214     214
  Partial          0       0
  Missed           0       0

Review entire Coverage Diff as of 0acc646

Powered by Codecov. Updated on successful CI builds.


Amortized Bayesian parameter estimation example for the leaky competing accumulator

Hello,
Thank you for putting together this package and the accompanying documentation. This package looks very nice!
I am moving a discussion with Dmitry and Abert from the Turing Slack  channel to here upon their request. As some brief background, I am interested in performing amortized Bayesian parameter estimation similar to the Python package BayesFlow. Performing Bayesian parameter estimation with many of the models I work with is challenging because they do not have a closed-form likelihood function. Having capabilities similar to BayesFlow would be very useful.  I suspect the broader Julia community would find it useful as well.
My ultimate goal is to perform amortized Bayesian parameter estimation on models with the following characteristics:

simulation-based models without a tractable likelihood function
prior distribution over multiple parameters (potentially with a hierarchical structure)
multivariate data with mixed discrete and continuous dimensions

In addition, it would be great to have the ability to save and reload a trained neural network, and to obtain full posterior distributions given a dataset with any number of observations
This example from BayesFlow is a good starting point which captures these criteria quite well. The example uses the leaky competing accumulator (LCA), a multi-alternative decision making model based on a stochastic differential equation. The basic idea is that evidence for different options (items from a restaurant menu) acculates towards a threshold.  The winner of this race determines the decision and the response time, leading to a bivariate distribution with one discrete variable and one continuous variable.
Dmitry and Abert indicated that RxInfer has the capabilities listed above and were nice enough to offer help putting together an LCA example similar to the one from BayesFlow. If this is something that you find useful, I would be willing to open a PR to add to your list of examples. I started by studying the invertible neural network example. Machine learning is not my area of expertise. So some details are a little unclear to me. In this repo, I adapted the function generate_data to the LCA and the code runs. However, I think the neural network architecture needs to be modified. Currently, the training data are generated from  a fixed set of parameters rather than samples from prior distributions. So I am guessing it cannot produce posterior distributions over parameters in its current form. I'm not sure where to start. Any help you would be willing to provide would be helpful.

Hi @itsdfish! I will have another look this week; as for now, I must say that your problem involves several issues we are currently dealing with. We plan to add hierarchical prior for the neural networks, such as flows, etc.
The out-of-the-box solution doesn't provide this functionality yet.
If you propose a model and you run into issues, we will gladly help. We don't have many resources to work closer on this one for now.
I will keep an issue so someone can pick it up if time permits.

Hi @itsdfish! The thing is that from the RxInfer.jl perspective adding hierarchical priors is easy once the node, such as an invertible network, accepts parameters as distributions. Unfortunately, it's not the case for now. In about one-two week, I plan to make a PR that will allow us to parameterize the invertible networks. It might still not be what you are looking for, but the idea is smth like this:
x ~ MvNormal(priors)
A ~ MatrixNormal(M, U, V)
y = A*x
z = Flow(y)

In this sketch, you can think of A as the parameters of an invertible neural network.

Hey @itsdfish ! Just a quick update.
Some developments on ReactiveMP.jl  branch called transfominator might be helpful for you. It adds a ContiniousTransition node with a couple of aliases, CTransition and Transfominator. The node allows performing inference for linear transformations of a multivariate Gaussian y=Hx with unknown matrix H.
You can then combine it with Flow and other linearities through Delta factors.
    xₜ₋₁ ~ MvNormalMeanCovariance(μxₜ₋₁, Σxₜ₋₁)

    Λ ~ Wishart(nΛ, ΣΛ)

    h ~ MvNormalMeanCovariance(μh, Σh)

    xₜ ~ ContinuousTransition(xₜ₋₁, h, Λ) where {meta = CTMeta(in_dim, out_dim)}

    yₜ ~ MvNormalMeanCovariance(B*xₜ, Q)

Note that we pass h as a vectorized form of a matrix normal distribution to ContinuousTransition. So the dimensionality of h is in_dim*out_dim where in_dim and out_dim - are the dimensionality of xₜ₋₁ and xₜ respectively.
As was said previously, you can use this node with Flow or DeltaNode. You can stack them together one by one. Additionally, you can put a prior on the parameters of h as well, for example, InverseWishart for the covariance and random walk or autoregressive prior for h.
The main issue now is computational (if your problem works with 10-dimensional vectors then the covariance for h becomes 100x100 which won't be fast), that's why merging this functionality to the master branch will take a while.

@albertpod, thank you for the update! This looks really interesting.  I upgraded my working example to the transfominator branch and started to update the function invertible_neural_network based on your description above. It became clear that there are some gaps in my understanding of the new workflow.
For example, I'm not quite sure how to generate the training data in generate_data for priors over two parameter alpha and tau. Should I add an outer loop that samples from the priors of alpha and tau like so? https://github.com/itsdfish/RxInferSandbox.jl/blob/16738534c2177891fde2bcc6bd4e19bf3e20eafd/examples/lca_example.jl#L33
In the function invertible_neural_network, I am not sure how to define μh and Σh  in     h ~ MvNormalMeanCovariance(μh, Σh). I think there are other factors that will depend on the form of the training data. I was wondering whether you might be able to provide some guidance or add a PR to the repo above so that we have a working example (which could of course be added to your documentation)?

@itsdfish, so according to your generative model, you construct a latent space that consists of choice and rt, then you pass it through a likelihood ReactiveMP.forward() function, which will constitute your observations. Is that what you really want? Aren't your observations actually the output of your lca function?
Let's start simple (flow aside). Let's discuss the generative model (generate data function). What are your observations? Then we will construct a probabilistic model.

Thanks for your help with this. I agree that starting with the generative model is a good strategy.  To make things simple, I propose setting a prior on two of the parameters: alpha, which is the decision threshold, and tau, which is an additive constant for visual encoding and motor execution time.
using Distributions
using SequentialSamplingModels

# prior sample for decision boundary
α = rand(Uniform(0, 3))
# prior sample for encoding/motor response time
τ = rand(Uniform(0, 0.50))

I'll assume the other parameters are deterministic. This leaves us with the following distribution object for the LCA:
# LCA model object with β, λ, ν, Δt and σ fixed, and α, and τ sampled from a prior distribution
dist = LCA(; α, β=0.20, λ=0.10, ν=[2.5,2.0], Δt=.001, τ, σ=1.0)

The function rand will sample a choice (indexed as 1 or 2) and a reaction time. I'm not sure how many samples we should use for each parameter set. So I will just assume 1 sample for now:
# a single sample from the model: choice, rt
choice, rt = rand(dist)

In summary, the model has two parameters and outputs a choice and a reaction time.

Thanks @itsdfish! I have a better feeling about what you are trying to achieve. So as far as I understand, you want to approximate the likelihood induced by LCA. I am no specialist on intractable likelihoods and their approximations, so my proposed solution might be different from what you need. First of all, I would say that you need to take out Reactive. forward(...) from your data generation function.
It appears that the inference problem here is $$p(α, τ| y_{1:N})$$ where yᵢ is an i-th pair [choice, rt], the problem here ofc is your intractable likelihood. I would proceed with the simple model like this at first:

ατconcat(α, τ) = vcat(α, τ) # we need this function to combine α and τ parameters and push it through the Flow

@model function invertible_neural_network(nr_samples::Int64, model)

    # initialize variables
    x     = randomvar(nr_samples)
    y_lat = randomvar(nr_samples)
    y     = datavar(Vector{Float64}, nr_samples)

    # specify prior
    α   ~ Normal(μ=3, σ²=10.0)
    τ   ~ Normal(μ=10, σ²=10.0)

    z_μ ~ ατconcat(α, τ) where {meta=Linearization()}
    z_Λ ~ Wishart(1e2, 1e4*diageye(2))

    # specify observations
    for i in 1:nr_samples

        # specify latent state
        x[i] ~ MvNormal(μ=z_μ, Λ=z_Λ)

        # specify transformed latent value
        y_lat[i] ~ Flow(x[i]) where {meta=FlowMeta(model)}

        # specify observations
        y[i] ~ MvNormal(μ=y_lat[i], Σ=tiny*diageye(2))

    end

end;

y = [[choice[i], rt[i]] for i in 1:length(choice)]

data = (y = y, )

constraints = @constraints begin
    q(z_μ, x, z_Λ) = q(z_μ)q(z_Λ)q(x)
end

fmodel         = invertible_neural_network(length(y), compiled_model)
initmarginals = (z_μ = MvNormalMeanCovariance(zeros(2), huge*diageye(2)), z_Λ = Wishart(2.0, diageye(2)))

# Inference routine

This is something to start with, and we can build up on top of it. Remember to experiment with the flow model itself.
As the next step, you can try to change the prior for α, τ. For example, you may want to have a Beta prior for α? In this case, you'd need to use CVI instead of Linearization method I used for ατconcat.
BTW I don't think you need CTransition node here; I might mislead you; sorry for this.

You are correct. The inference problem is p(α,τ | y_1:N), where N might be of any size.  A good resource for performing this type of inference is BayesFlow: Learning Complex Stochastic Models With Invertible Neural Networks, where they describe a method for using invertible networks with a summary network.
Thanks the guidance with invertible_neural_network, and no worries about CTransition. I updated my code accordingly.  My basic understanding is that this network will allow us to learn the density of the posterior distribution of alpha and tau by starting with a base density (multivariate normal in this case) and performing a series of transformations. Assuming my understanding is correct, I am not sure why I would select a Normal or a Beta in  invertible_neural_network. The most important constraint for the LCA is that alpha and tau are positive, but I am not sure how that relates to the prior in invertible_neural_network.
I was hoping to ask a few follow up questions too. First, I was wondering what  the training data should be. Currently, generate_data  has a "prior" loop where a the prior is sampled, and a "data" loop where samples are drawn from the model given the parameters sampled from the data. The output is an array in which the first row corresponds to choices and the second row corresponds to reaction times. I was wondering whether the neural network also needs the samples for alpha and tau?
Also, I was wondering whether you can recommend a resource for these types of models aimed at non-experts. I have been reading various sources, but it can be challenging to get a good understanding from the journal articles because they typically assume the reader is already an expert.

Hi @itsdfish! I'm sorry for not getting back to you sooner.

I am not sure why I would select a Normal or a Beta in invertible_neural_network. The most important constraint for the LCA is that alpha and tau are positive, but I am not sure how that relates to the prior in invertible_neural_network.

Neither Normal nor Beta are good choices in this case. You'd better use Uniform prior or Gamma prior. Working with Gamma priors is easier in RxInfer atm.
Here's an example.
@model function invertible_neural_network(nr_samples::Int64, model)

    # initialize variables
    x     = randomvar(nr_samples)
    y_lat = randomvar(nr_samples)
    y     = datavar(Vector{Float64}, nr_samples)

    # specify prior

    α   ~ GammaShapeScale(100.0, 0.01)
    τ   ~ GammaShapeScale(100.0, 0.01)

    z_μ ~ ατconcat(α, τ) where {meta=CVI(StableRNG(42), 100, 200, Optimisers.Descent(0.1), RxInfer.ForwardDiffGrad(), 100, Val(true), true)}
    z_Λ ~ Wishart(3, diageye(2))

    # specify observations
    for i in 1:nr_samples

        # specify latent state
        x[i] ~ MvNormal(μ=z_μ, Λ=z_Λ)

        # specify transformed latent value
        y_lat[i] ~ Flow(x[i]) where {meta=FlowMeta(model)}

        # specify observations
        y[i] ~ MvNormal(μ=y_lat[i], Σ=tiny*diageye(2))

    end

    # return variables
    return z_μ, z_Λ, x, y_lat, y

end;

I know CVI meta looks horrifying, see this example  to understand more.
Again, your RxInfer model should represent your belief of the data generation process. If alpha and tau are positive, then we can put a Gamma prior on top of it.

The output is an array in which the first row corresponds to choices and the second row corresponds to reaction times. I was wondering whether the neural network also needs the samples for alpha and tau?

I am not sure I understand the question here. Didn't you say we must infer the posterior over alpha and tau?

Also, I was wondering whether you can recommend a resource for these types of models aimed at non-experts.

Do you mean invertible nets? The way they work in factor graphs (engine behind RxInfer) can be found here:
https://biaslab.github.io/publication/hybrid-inference-inn/
I will try to allocate some time to read that paper of BayesFlow, seems interesting. There are people in the lab who are working INNs but they are on holidays. Perhaps they will be more helpful than I am ;)


Fix CTORS/DTORS

The local_init and local_fini functions were being executed out of
the info struct which (besides from being an ugly approach) was
causing issues with no-execute stacks. There was also a bug where
destructors were not being executed which was also fixed.
Signed-off-by: Rian Quinn<EMAIL_ADDRESS>

LGTM


fix: delete TempDir when Session goes out of scope

This solves the problem where the temporary directory used for storing segments are not deleted after proving. One solution is to represent the directory as Rc<TempDir> instead of a PathBuf and have Session or SegmentRef hold a reference to the TempDir. Once the session goes out of scope, the TempDir gets deleted. I've discovered that adding TempDir as a field of Session doesn't work because TempDir does not implement Serialize or Deserialize while Session and SegmentRef implement these traits.
This solution adds the PathBuf of the TempDir to Session and implements a Drop trait that removes this directory when Session goes out of scope. I've also noticed that in the case where the user defines the segment path, we're using that path to store the segments. This changes this execution path by creating a TempDir inside the user- defined directory so that it does not accidentally delete the user's directory upon termination.
fixes: #1223

I think what we wanted to do is use an Rc<TempDir> that would be on each FileSegmentRef. That way when all the refs get dropped the temp dir automatically gets removed.

Superseded by https://github.com/risc0/risc0/pull/1421


"no matching manifest" on cross v0.2.5

Checklist

[X] I've looked through the issues and pull requests for similar reports

Describe your issue
I've been cross-compiling https://github.com/automerge/automerge-go for a while. Today I upgraded cross, and it broke cross-compilation:
$ cargo init --bin hello
$ cd hello
$ cross run --target aarch64-unknown-linux-gnu
Unable to find image 'ghcr.io/cross-rs/aarch64-unknown-linux-gnu:0.2.5' locally
0.2.5: Pulling from cross-rs/aarch64-unknown-linux-gnu
docker: no matching manifest for linux/arm64/v8 in the manifest list entries.
See 'docker run --help'.

The error message is the same as the one I get when I run docker with no --platform argument, when I do not have the image cached locally (once the image has run once, I no longer need to pass --platform to docker to make it work).
In case it helps tracking this down, I'm using Docker version 20.10.23, build 7155243 (as provided by Docker Desktop 4.17.0 (99724).
$ docker run -it  ghcr.io/cross-rs/x86_64-unknown-linux-gnu:0.2.5 /bin/bash
Unable to find image 'ghcr.io/cross-rs/x86_64-unknown-linux-gnu:0.2.5' locally
0.2.5: Pulling from cross-rs/x86_64-unknown-linux-gnu
docker: no matching manifest for linux/arm64/v8 in the manifest list entries.

[X] macOS
[ ] Windows
[ ] Linux / BSD
[ ] other OS (specify in description)

What architecture is the host?

[ ] x86_64 / AMD64
[ ] arm32
[X] arm64 (including Mac M1)

What container engine is cross using?

[X] docker
[ ] podman
[ ] other container engine (specify in description)

cross version
0.2.5
Example
$ cargo init --bin hello
$ cd hello
$ cross run --target aarch64-unknown-linux-gnu
Unable to find image 'ghcr.io/cross-rs/aarch64-unknown-linux-gnu:0.2.5' locally
0.2.5: Pulling from cross-rs/aarch64-unknown-linux-gnu
docker: no matching manifest for linux/arm64/v8 in the manifest list entries.
See 'docker run --help'.

Additional information / notes
This is not a problem on the previous version with cargo install<EMAIL_ADDRESS>Everything works fine!

I think this is a regression in docker, pretty sure it used to work
$ cross build --target x86_64-unknown-linux-gnu -v
+ cargo metadata --format-version 1 --filter-platform x86_64-unknown-linux-gnu
+ rustc --print sysroot
+ rustup toolchain list
+ rustup target list --toolchain stable-x86_64-unknown-linux-gnu
+ rustup component list --toolchain stable-x86_64-unknown-linux-gnu
+ /usr/local/bin/docker
+ /usr/local/bin/docker run --userns host -e 'PKG_CONFIG_ALLOW_CROSS=1' -e 'XARGO_HOME=/xargo' -e 'CARGO_HOME=/cargo' -e 'CARGO_TARGET_DIR=/target' -e 'CROSS_RUNNER=' -e TERM -e 'USER=emil' --rm --user 501:20 -v /Users/emil/.xargo:/xargo:z -v /Users/emil/.cargo:/cargo:z -v /cargo/bin -v /Users/emil/workspace/cross:/project:z -v /Users/emil/.rustup/toolchains/stable-x86_64-unknown-linux-gnu:/rust:z,ro -v /Users/emil/workspace/cross/target:/target:z -w /project -i -t ghcr.io/cross-rs/x86_64-unknown-linux-gnu:0.2.5 sh -c 'PATH=$PATH:/rust/bin cargo build --target x86_64-unknown-linux-gnu -v'
Unable to find image 'ghcr.io/cross-rs/x86_64-unknown-linux-gnu:0.2.5' locally
0.2.5: Pulling from cross-rs/x86_64-unknown-linux-gnu
docker: no matching manifest for linux/arm64/v8 in the manifest list entries.
See 'docker run --help'.
+ rustup component list --toolchain stable-x86_64-unknown-linux-gnu

the fix is as mentioned adding --platform, which was added in https://github.com/cross-rs/cross/pull/817
for now, if you must use 0.2.5, use CROSS_CONTAINER_OPTS="--platform linux/amd64"
$ CROSS_CONTAINER_OPTS="--platform linux/amd64" cross build --target x86_64-unknown-linux-gnu -v
+ rustup toolchain list
+ rustup target list --toolchain stable-x86_64-unknown-linux-gnu
+ rustup component list --toolchain stable-x86_64-unknown-linux-gnu
+ /usr/local/bin/docker
+ /usr/local/bin/docker run --userns host -e 'PKG_CONFIG_ALLOW_CROSS=1' -e 'XARGO_HOME=/xargo' -e 'CARGO_HOME=/cargo' -e 'CARGO_TARGET_DIR=/target' -e 'CROSS_RUNNER=' -e TERM -e 'USER=emil' --platform linux/amd64 --rm --user 501:20 -v /Users/emil/.xargo:/xargo:z -v /Users/emil/.cargo:/cargo:z -v /cargo/bin -v /Users/emil/workspace/cross:/project:z -v /Users/emil/.rustup/toolchains/stable-x86_64-unknown-linux-gnu:/rust:z,ro -v /Users/emil/workspace/cross/target:/target:z -w /project -i -t ghcr.io/cross-rs/x86_64-unknown-linux-gnu:0.2.5 sh -c 'PATH=$PATH:/rust/bin cargo build --target x86_64-unknown-linux-gnu -v'
Unable to find image 'ghcr.io/cross-rs/x86_64-unknown-linux-gnu:0.2.5' locally
0.2.5: Pulling from cross-rs/x86_64-unknown-linux-gnu
58690f9b18fc: Pulling fs layer
b51569e7c507: Pulling fs layer
da8ef40b9eca: Pulling fs layer
fb15d46c38dc: Waiting
7cd0932c59ac: Waiting
b8099f45b9a5: Waiting
640227c3e7fb: Waiting
...

Hmm, actually, is it a change in the oci images?
$ cross-v0.2.5 metadata --target x86_64-unknown-linux-gnu -v
+ cargo metadata --format-version 1 --filter-platform x86_64-unknown-linux-gnu
+ rustc --print sysroot
+ rustup toolchain list
+ rustup target list --toolchain stable-x86_64-unknown-linux-gnu
+ rustup component list --toolchain stable-x86_64-unknown-linux-gnu
+ /usr/local/bin/docker
+ /usr/local/bin/docker run --userns host -e 'PKG_CONFIG_ALLOW_CROSS=1' -e 'XARGO_HOME=/xargo' -e 'CARGO_HOME=/cargo' -e 'CARGO_TARGET_DIR=/target' -e 'CROSS_RUNNER=' -e TERM -e 'USER=emil' --rm --user 501:20 -v /Users/emil/.xargo:/xargo:z -v /Users/emil/.cargo:/cargo:z -v /cargo/bin -v /Users/emil/workspace/cross:/project:z -v /Users/emil/.rustup/toolchains/stable-x86_64-unknown-linux-gnu:/rust:z,ro -v /Users/emil/workspace/cross/target:/target:z -w /project -i -t ghcr.io/cross-rs/x86_64-unknown-linux-gnu:0.2.5 sh -c 'PATH=$PATH:/rust/bin cargo metadata -v'
Unable to find image 'ghcr.io/cross-rs/x86_64-unknown-linux-gnu:0.2.5' locally
0.2.5: Pulling from cross-rs/x86_64-unknown-linux-gnu
docker: no matching manifest for linux/arm64/v8 in the manifest list entries.
See 'docker run --help'.
+ rustup component list --toolchain stable-x86_64-unknown-linux-gnu

$ cross-v0.2.4 metadata --target x86_64-unknown-linux-gnu -v
+ rustc --print sysroot
+ rustup toolchain list
+ rustup target list --toolchain stable-x86_64-unknown-linux-gnu
+ rustup component list --toolchain stable-x86_64-unknown-linux-gnu
+ /usr/local/bin/docker
+ /usr/local/bin/docker run --userns host -e 'PKG_CONFIG_ALLOW_CROSS=1' -e 'XARGO_HOME=/xargo' -e 'CARGO_HOME=/cargo' -e 'CARGO_TARGET_DIR=/target' -e 'CROSS_RUNNER=' -e TERM -e 'USER=emil' --rm --user 501:20 -v /Users/emil/.xargo:/xargo:Z -v /Users/emil/.cargo:/cargo:Z -v /cargo/bin -v /Users/emil/workspace/cross:/project:Z -v /Users/emil/.rustup/toolchains/stable-x86_64-unknown-linux-gnu:/rust:Z,ro -v /Users/emil/workspace/cross/target:/target:Z -w /project -i -t ghcr.io/cross-rs/x86_64-unknown-linux-gnu:0.2.4 sh -c 'PATH=$PATH:/rust/bin cargo metadata -v'
Unable to find image 'ghcr.io/cross-rs/x86_64-unknown-linux-gnu:0.2.4' locally
0.2.4: Pulling from cross-rs/x86_64-unknown-linux-gnu
58690f9b18fc: Pulling fs layer
b51569e7c507: Pulling fs layer
da8ef40b9eca: Pulling fs layer
fb15d46c38dc: Waiting
ba4cfa0d02e9: Waiting
9b3d6abb553f: Waiting
7e4f4e01d8cc: Waiting
7457ea83291e: Waiting
385151f4cf4a: Waiting
dd3a4857dad0: Waiting
f4c64b50a179: Waiting
634c7871468d: Waiting
94489cc40d0c: Waiting
f47e7b8372aa: Waiting
70626baa3f44: Waiting
8c9e9eeed2e0: Waiting
de83618d0833: Waiting
^C

there's no changes in the invocation between 0.2.4 and 0.2.5 except we're using the tag 0.2.5 and using :z on mounts
very strange

ehm, what's this?

unknown/unknown

So to summarize, the problem is

cross <0.3.0 calls docker run --rm -t ghcr.io/cross-rs/x86_64-unknown-linux-gnu:$version, no --platform specified
the image for :0.2.5 was built with docker buildx build, on a linux/amd64 system where provenence/attestation is supported by buildx/buildkit (moby/buildkit:buildx-stable-1 => buildkitd github.com/moby/buildkit v0.11.2 944939944ca4cc58a11ace4af714083cfcd9a3c7). No --platform specified
if provenence is used the manifest becomes multi-arch, always including unknown/unknown for the build attestations and then other platforms that was included in the build. 0.2.5 manifest is

$ docker buildx imagetools inspect ghcr.io/cross-rs/x86_64-unknown-linux-gnu:0.2.5
Name:      ghcr.io/cross-rs/x86_64-unknown-linux-gnu:0.2.5
MediaType: application/vnd.oci.image.index.v1+json
Digest:    sha256:9e5b39c09874bc1816c675ed11afca2c2ed6cee0c4ed2b3c1d5763c346c9ae3f

Manifests:
  Name:        ghcr.io/cross-rs/x86_64-unknown-linux-gnu:0.2.5@sha256:a2d924b0399f17432c3c8d6af2136903c5105bf71c726044a988427f849a8509
  MediaType:   application/vnd.oci.image.manifest.v1+json
  Platform:    linux/amd64

  Name:        ghcr.io/cross-rs/x86_64-unknown-linux-gnu:0.2.5@sha256:a62738a88fd7403bf1fd5beb14d391013206ec8e7d3a4ba6522cf61a411b20a0
  MediaType:   application/vnd.oci.image.manifest.v1+json
  Platform:    unknown/unknown
  Annotations:
    vnd.docker.reference.type:   attestation-manifest
    vnd.docker.reference.digest: sha256:a2d924b0399f17432c3c8d6af2136903c5105bf71c726044a988427f849a8509

docker run and docker pull, when a manifest is a single platform, will try to use that platform, if it's multi-arch, it'll use the same platform as the default, and if it doesn't exist panic.

now, there's one issue, we never enabled provenence. https://github.com/docker/build-push-action/issues/771 suggests that setting --provence=false would fix this, but the docs for buildx 0.11 suggest that that is the default. I'm very confused...

so there's three ways to solve this

specify --provenence=false, rebuild the images and publish
specify buildkit version = 0.10, rebuild images and publish
publish cross 0.2.6 with a fix including --platform=linux/amd64, this should probably also include https://github.com/cross-rs/cross/pull/1142

Thanks for figuring this out! There's no rush on a fix from my point of view (I can use 0.2.4 successfully).

If you missed it, you can also use CROSS_CONTAINER_OPTS="--platform linux/amd64" to tell docker that you actually want to use the amd64 image.

For anybody else, to save you spending days looking for a solution here is how I solved it:
cargo install cross --git https://github.com/cross-rs/cross
Yep, update and it worked fine for me.

Hey, sorry for my lack of knowledge, but what's exactly the thing that blocks cross of having arm native docker images?

Hey, sorry for my lack of knowledge, but what's exactly the problem that blocks cross of having arm native docker images?

The blocker is implementation in https://github.com/cross-rs/cross/issues/975 and particularly access to GHA runners on aarch64 architecture to not have to emulate the containers in CI


Unable to compile diesel-cli v1.3.0

Setup
In a terminal, run
cargo install diesel_cli

Versions

Rust:
1.28.0-nightly (71e87be38 2018-05-22)
Diesel:
N/A
Database:
Postgres
Operating System
MacOS 10.13.4

Problem Description
I am unable to install diesel-cli via a terminal (bash).
What is the actual output?
error[E0277]: the trait bound `<expression::count::CountStar as expression::Expression>::SqlType: sql_types::ops::Add` is not satisfied
  --> /Users/<redacted>/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-1.3.0/src/expression/count.rs:58:39
   |
58 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps)]
   |                                       ^^^^^^^^^^^^^^^^ the trait `sql_types::ops::Add` is not implemented for `<expression::count::CountStar as expression::Expression>::SqlType`
   |
   = help: consider adding a `where <expression::count::CountStar as expression::Expression>::SqlType: sql_types::ops::Add` bound
   = help: see issue #48214
   = help: add #![feature(trivial_bounds)] to the crate attributes to enable

error[E0277]: the trait bound `<expression::count::CountStar as expression::Expression>::SqlType: sql_types::ops::Sub` is not satisfied
  --> /Users/<redacted>/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-1.3.0/src/expression/count.rs:58:39
   |
58 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps)]
   |                                       ^^^^^^^^^^^^^^^^ the trait `sql_types::ops::Sub` is not implemented for `<expression::count::CountStar as expression::Expression>::SqlType`
   |
   = help: consider adding a `where <expression::count::CountStar as expression::Expression>::SqlType: sql_types::ops::Sub` bound
   = help: see issue #48214
   = help: add #![feature(trivial_bounds)] to the crate attributes to enable

error[E0277]: the trait bound `<expression::count::CountStar as expression::Expression>::SqlType: sql_types::ops::Mul` is not satisfied
  --> /Users/<redacted>/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-1.3.0/src/expression/count.rs:58:39
   |
58 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps)]
   |                                       ^^^^^^^^^^^^^^^^ the trait `sql_types::ops::Mul` is not implemented for `<expression::count::CountStar as expression::Expression>::SqlType`
   |
   = help: consider adding a `where <expression::count::CountStar as expression::Expression>::SqlType: sql_types::ops::Mul` bound
   = help: see issue #48214
   = help: add #![feature(trivial_bounds)] to the crate attributes to enable

error[E0277]: the trait bound `<expression::count::CountStar as expression::Expression>::SqlType: sql_types::ops::Div` is not satisfied
  --> /Users/<redacted>/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-1.3.0/src/expression/count.rs:58:39
   |
58 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps)]
   |                                       ^^^^^^^^^^^^^^^^ the trait `sql_types::ops::Div` is not implemented for `<expression::count::CountStar as expression::Expression>::SqlType`
   |
   = help: consider adding a `where <expression::count::CountStar as expression::Expression>::SqlType: sql_types::ops::Div` bound
   = help: see issue #48214
   = help: add #![feature(trivial_bounds)] to the crate attributes to enable

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0277`.
error: Could not compile `diesel`.

Checklist

[x] I have already looked over the issue tracker for similar issues.
[ ] This issue can be reproduced on Rust's stable channel.

diesel is broken on nightlies 05-14->(likely) 05-23 due to a regression in rustc. rustup run nightly-2018-05-14 cargo install diesel_cli


Error in code snippets in docs

e.g. on https://pyranges.readthedocs.io/ranges_intro.html
/home/docs/checkouts/readthedocs.org/user_builds/pyranges/conda/latest/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  return f(*args, **kwds)

This is something which updates slowly after I make changes for some reason. But thanks for notifying me :)

Sure.


How do I use this library?

I tried to use this library and immediately hit a problem.
require 'active_model' # 4.2.0
require 'active_model/errors_details' # 1.1.0
# .../lib/active_model/errors_details.rb:62:in `<top (required)>': private method `include' called for ActiveModel::Errors:Class (NoMethodError)

Did I do something wrong?

If you are trying to use this gem with ruby 2.0.0, it will not work properly. I was getting this error on heroku with ruby 2.0.0, when I specified on my gemfile a late version it worked fine. Try it, and let me know anything.

That's probably it. I'm trying to use this with Ruby 2.0.0p481. Why doesn't this work with Ruby 2.0?

I have no idea, just another user only, but I think they should be using some relative or require method specific to versions of ruby > 2.0.0.

I don't think requiring more recent Rubies is appropriate since Rails 4.2 supports Ruby 1.9.3.

@tfausak I just pushed a fix. Please try it and let me know if this fixes your issue.

I'm sorry it took so long for me to get back to you. Your patch (aadc8997b698cdb7d970213008e07063583f6363) fixed my issue.
require 'active_model' # 4.2.1
# => true
require 'active_model/errors_details' # aadc899
# => true

class Person
  include ActiveModel::Validations

  attr_accessor :name

  validates :name,
    presence: true
end

person = Person.new
person.valid?
# => false
person.errors.details[:name]
# => [{:error=>:blank}]

Thank you!

Can you release the fix as a new version?

@tfausak It was released just after the fix and is present in version 1.1.1

:+1: thank you!


Change date format

How can I change the date format librephotos uses?
When I set the website's profile language to English I get dates formatted like MMMM DD YYYY, DDDD which is pretty acceptable as far as I know.
When I set the language to Dutch however that same format is used (with day and month names in Dutch). In Dutch this looks completely ridiculous. No one uses that format in Dutch. We would use DDDD DD MMM YYYY.
I haven't found a way to change the date format however, but that doesn't mean there isn't one... I hope...
If this can't be changed yet, please consider this a feature request. Personally, I'd prefer to set the date format right next to the language dropdown in the profile settings.
Thanks!

Can we close this issue?

Yeah, I think we can do that :)


Poetry breaks when a package that has jsonschema as dependency is removed

OS version and name: macOS 10.14.1
Poetry version: 0.12.17

Issue
poetry add moto -D
poetry show
poetry remove moto -D
poetry show
This error is received:
[ModuleNotFoundError]
No module named 'jsonschema'
show [--no-dev] [-t|--tree] [-l|--latest] [-o|--outdated] [-a|--all] [--] []

As far as I know this can only happen if you install Poetry in the same virtualenv as the project your are managing with it, which is not supported.


Support for additional standard resources?

Detailed Description

Hi folks 👋 I know the k8sobject and k8sobjects resources work for just about everything, but I was curious if there were plans to support other standard resources.
For example some that I can think of that might be useful:

k8s_secret
k8s_statefulset
k8s_service
k8s_ingress
k8s_ingressclass
k8s_persistentvolumeclaim
k8s_storageclass
k8s_serviceaccount
k8s_rbac_role
k8s_rbac_rolebinding
k8s_rbac_cluster_rolebinding
...

Context

It would make profiles cleaner and more readable with more straightforward resources.
For example:
describe k8sobject(api: 'networking.k8s.io/v1', type: 'ingresses', namespace: 'haproxy', name: 'haproxy') do
  it { should exist }
end

# Compared to

describe k8s_ingress(namespace: 'haproxy', name: 'haproxy') do
  it { should exist }
end

Possible Implementation

I'd imagine it's a matter of copy/paste from something like https://github.com/inspec/inspec-k8s/blob/main/libraries/k8s_deployment.rb / https://github.com/inspec/inspec-k8s/blob/main/libraries/k8s_deployments.rb - tedious for sure but maybe worth while?
Thanks in advance 🙌

This has been brought up to Progress Chef Product - thanks!