no healthy upstream when trying to create a notebook with GPU

I'm getting "no healthy upstream" message when trying to connect to a new notebook server with GPU. It's via GCP.
More info:

I am able to create a non-GPU notebook and run it
When creating the GPU notebook server, I select "tensorflow-1.15.2-notebook-gpu:1.0.0" and then also add below in the drop-down "1" for GPU and NVIDIA (as I only have 1 GPU for my google project.) It has been assigned to the KF cluster, as seen here:

$ kubectl get nodes "-o=custom-columns=NAME:.metadata.name,GPU:.status.allocatable.nvidia\.com/gpu"
NAME                                     GPU
gke-***-***                             1
gke-***-default-pool-***        <none>
gke-***-default-pool-***        <none>

Following troubleshooting I get:
$ kubectl describe notebooks gpu2 -n default-profile

Annotations:  <none>
API Version:  kubeflow.org/v1
Kind:         Notebook
Metadata:
 Creation Timestamp:  2020-11-08T22:28:35Z
 Generation:          1
 Resource Version:    808048
 Self Link:           /apis/kubeflow.org/v1/namespaces/default-profile/notebooks/gpu2
 UID:                 56fa2488-9843-4f5f-86e5-e968863df1d5
Spec:
 Template:
   Spec:
     Containers:
       Env:
       Image:  gcr.io/kubeflow-images-public/tensorflow-1.15.2-notebook-gpu:1.0.0
       Name:   gpu2
       Resources:
         Limits:
           nvidia.com/gpu:  1
         Requests:
           Cpu:     0.5
           Memory:  1.0Gi
       Volume Mounts:
         Mount Path:              /home/jovyan
         Name:                    workspace-gpu2
         Mount Path:              /dev/shm
         Name:                    dshm
     Service Account Name:        default-editor
     Ttl Seconds After Finished:  300
     Volumes:
       Name:  workspace-gpu2
       Persistent Volume Claim:
         Claim Name:  workspace-gpu2
       Empty Dir:
         Medium:  Memory
       Name:      dshm
Status:
 Conditions:
   Last Probe Time:  2020-11-08T22:28:52Z
   Type:             Running
   Last Probe Time:  2020-11-08T22:28:40Z
   Reason:           PodInitializing
   Type:             Waiting
 Container State:
   Running:
     Started At:  2020-11-08T22:28:51Z
 Ready Replicas:  0
Events:
 Type     Reason                  Age   From                 Message
 ----     ------                  ----  ----                 -------
 Warning  FailedScheduling        20m   notebook-controller  Reissued from pod/gpu2-0: 0/3 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims, 2 Insufficient nvidia.com/gpu.
 Normal   SuccessfulCreate        20m   notebook-controller  Reissued from statefulset/gpu2: create Pod gpu2-0 in StatefulSet gpu2 successful
 Normal   Scheduled               20m   notebook-controller  Reissued from pod/gpu2-0: Successfully assigned default-profile/gpu2-0 to gke-cluster-1-cluster-2-gpus-9970a675-ptfp
 Normal   SuccessfulAttachVolume  20m   notebook-controller  Reissued from pod/gpu2-0: AttachVolume.Attach succeeded for volume "pvc-14e96e45-c2d6-48b5-bcb7-51cdac368819"
 Normal   Pulled                  20m   notebook-controller  Reissued from pod/gpu2-0: Container image "gcr.io/gke-release/asm/proxyv2:1.4.7-asm.0" already present on machine
 Normal   Created                 20m   notebook-controller  Reissued from pod/gpu2-0: Created container istio-init
 Normal   Started                 20m   notebook-controller  Reissued from pod/gpu2-0: Started container istio-init
 Normal   Pulled                  20m   notebook-controller  Reissued from pod/gpu2-0: Container image "gcr.io/kubeflow-images-public/tensorflow-1.15.2-notebook-gpu:1.0.0" already present on machine
 Normal   Created                 20m   notebook-controller  Reissued from pod/gpu2-0: Created container gpu2
 Normal   Started                 20m   notebook-controller  Reissued from pod/gpu2-0: Started container gpu2
 Normal   Created                 20m   notebook-controller  Reissued from pod/gpu2-0: Created container istio-proxy
 Normal   Started                 20m   notebook-controller  Reissued from pod/gpu2-0: Started container istio-proxy
 Warning  Unhealthy               20m   notebook-controller  Reissued from pod/gpu2-0: Readiness probe failed: Get http://<IP_ADDRESS>:15020/healthz/ready:
dial tcp <IP_ADDRESS>:15020: connect: connection refused

What is the best way to enable GPUs?
I have been following the instructions here , but this probably was the cause of the problem (obsolete documentation referencing kfctl and paths that are not created by the latest deployments).

I don't have access to NVIDIA Tesla K80, that is why I created T4s using this command here.
I then tried to disable node auto-provisioning by running:
gcloud container clusters update my-kf-cluster --no-enable-autoprovisioning --zone europe-west2-a
but this didn't fix the "no healthy upstream" issue, and made Notebook server creation extremely slow and laggy.

With this, I am planning to redeploy the KF, and would appreciate any guidance/pointers for enabling GPUs

** update **
I redeployed KF using a region that supports K80 GPUs.
I ran these commands:
gcloud container node-pools create ${GPU_POOL_NAME} \
--accelerator type=nvidia-tesla-k80,count=1 \
--zone us-central1-a --cluster ${KF_NAME} \
--num-nodes=1 --machine-type=n1-standard-4 --min-nodes=0 --max-nodes=5 --enable-autoscaling

kubectl apply -f https://raw.githubusercontent.com/GoogleCloudPlatform/container-engine-accelerators/master/nvidia-driver-installer/cos/daemonset-preloaded.yaml

When I tried creating a notebook, it got stuck here, after creating two pools named "nap-n1-standard-1-gpu1-***"
Events:
  Type     Reason             Age   From                 Message
  ----     ------             ----  ----                 -------
  Normal   SuccessfulCreate   12m   notebook-controller  Reissued from statefulset/gpu1: create Pod gpu1-0 in StatefulSet gpu1 successful
  Warning  FailedScheduling   12m   notebook-controller  Reissued from pod/gpu1-0: 0/2 nodes are available: 2 Insufficient nvidia.com/gpu.
  Normal   TriggeredScaleUp   11m   notebook-controller  Reissued from pod/gpu1-0: pod triggered scale-up: [{https://content.googleapis.com/compute/v1/projects/macro-entity-281
118/zones/europe-west1-b/instanceGroups/gke-cluster-kf-olga-nap-n1-standard-1-443efb3c-grp 0->1 (max: 1000)}]
  Warning  FailedScheduling   10m   notebook-controller  Reissued from pod/gpu1-0: 0/3 nodes are available: 3 Insufficient nvidia.com/gpu.
  Warning  FailedScheduling   10m   notebook-controller  Reissued from pod/gpu1-0: 0/3 nodes are available: 1 Insufficient cpu, 2 Insufficient nvidia.com/gpu.
  Normal   NotTriggerScaleUp  6m2s  notebook-controller  Reissued from pod/gpu1-0: pod didn't trigger scale-up (it wouldn't fit if a new node is added): 3 in backoff after fail
ed scale-up

I recreated a GPU cluster with 1 node only, and the error became
  Type     Reason                  Age   From                 Message
  ----     ------                  ----  ----                 -------
  Normal   SuccessfulCreate        12m   notebook-controller  Reissued from statefulset/gpu-notebook-3: create Pod gpu-notebook-3-0 in StatefulSet gpu-notebook-3 successful
  Normal   Scheduled               12m   notebook-controller  Reissued from pod/gpu-notebook-3-0: Successfully assigned default-profile/gpu-notebook-3-0 to gke-cluster-kf-olga-pool-olga-gpu-addca236-9znf
  Normal   SuccessfulAttachVolume  12m   notebook-controller  Reissued from pod/gpu-notebook-3-0: AttachVolume.Attach succeeded for volume "pvc-2f31c2ef-b2c3-4ca0-865c-fc96749b0228"
  Normal   Pulling                 12m   notebook-controller  Reissued from pod/gpu-notebook-3-0: Pulling image "gcr.io/gke-release/asm/proxyv2:1.4.7-asm.0"
  Normal   Pulled                  12m   notebook-controller  Reissued from pod/gpu-notebook-3-0: Successfully pulled image "gcr.io/gke-release/asm/proxyv2:1.4.7-asm.0"
  Normal   Created                 12m   notebook-controller  Reissued from pod/gpu-notebook-3-0: Created container istio-init
  Normal   Started                 12m   notebook-controller  Reissued from pod/gpu-notebook-3-0: Started container istio-init
  Normal   Pulling                 12m   notebook-controller  Reissued from pod/gpu-notebook-3-0: Pulling image "gcr.io/kubeflow-images-public/tensorflow-1.15.2-notebook-gpu:1.0.0"
  Normal   Pulled                  10m   notebook-controller  Reissued from pod/gpu-notebook-3-0: Successfully pulled image "gcr.io/kubeflow-images-public/tensorflow-1.15.2-notebook-gpu:1.0.0"
  Normal   Created                 10m   notebook-controller  Reissued from pod/gpu-notebook-3-0: Created container gpu-notebook-3
  Normal   Started                 10m   notebook-controller  Reissued from pod/gpu-notebook-3-0: Started container gpu-notebook-3
  Normal   Pulled                  10m   notebook-controller  Reissued from pod/gpu-notebook-3-0: Container image "gcr.io/gke-release/asm/proxyv2:1.4.7-asm.0" already present on machine
  Normal   Created                 10m   notebook-controller  Reissued from pod/gpu-notebook-3-0: Created container istio-proxy
  Normal   Started                 10m   notebook-controller  Reissued from pod/gpu-notebook-3-0: Started container istio-proxy
  Warning  Unhealthy               10m   notebook-controller  Reissued from pod/gpu-notebook-3-0: Readiness probe failed: Get http://<IP_ADDRESS>:15020/healthz/ready: dial tcp <IP_ADDRESS>:15020: connect: connection refused


Update setting-up-your-phone-system.md

Add links to Teams Phone advanced deployment guide available on Setup.Microsoft.Com and Admin Center

@CarolynRowe PR has been copyedited and is ready for final review, could you please check and merge? Thanks!

I need to review this content before adding a link to the top of the article, which will redirect people away from the roadmap.  Also, the link listed in lieu of having access to the admin center takes me to a generic 365 setup--instead of one specific to Phone System.  I am closing this PR until I can do further research.

It is probably most appropriate to include this link in the related information section.

We have been working with Serdar to bring awareness and visibility to Advanced Deployment Guides for Teams all up in M365 Admin Center and our unauthenticated Setup.Microsoft.Com portal for all users to access and leverage for accelerated deployment.  Go link for M365 Setup Portal has been fixed and now goes to the Teams Phone Advanced Deployment Guide correctly.  Here is also an article that explains context and business value of these guides.  This article was selected for relevancy and high page views/visit traffic.
Here is a similar use of this content in Surface Hub
Thank you
@SerdarSoysal

Can you contact me directly please?  I'm responsible for the content/quality of the article, which was also signed off by PM.  I'm not opposed to linking to the content, but I do not want to link to a generic setup site at the top of the article.  We should discuss offline.  I also want to review the content to make sure it is consistent with the content in the article.


Create deno example

With the new deno implementation it would be nice to add a working example to the repository

Deno 2.0 is fully npm compatible these days, so there is no need for an example how to run jitar on deno 1.x


Tokens end up in corner given time

I've been testing this out, and don't know why or how you would fix it, but all patrolling tokens end up working their way to a corner if given enough time.  I've walked away from a scene for a break, etc. and every time I return, any patrolling tokens are bouncing around in a corner.
Maybe, once they hit a wall or patrol perimeter, they don't choose that direction again for 3 or 4 recalculations?  That would at least get the tokens heading away far enough to give them a chance find a different wall to bounce off.

Same for me. They end up in the bottom left corner, as if the random function was not as random as it should. I've tried many different area patterns thinking it could be the reason why but they always come back in that corner !

I think I've found what the issue is. The random function is calculated this ways :
Math.round(Math.random() * (validPositions.length - 1)).
Let's say there are 4 valid positions (top, left, bottom, right). The random function gives a number between 0 and 1 (1 being excluded). It means the  function will give a number between 0 and 3 (3 being excluded). Then if we round that result, we have either 0, 1 or 2 with equal chances. BUT NOT 3 ! Could somebody confirm I'm right there ?

yes you are correct, i'll floor it and update it, i'll close the issue, let me know if it persists even with this edit


PantherX cluster

Hotspot b58 Addresses
112C4DGTm3RMyQztmtcAyfHmJNboNKU3VhkaG6H354t3LAgBUhXT
112pHLZj1SCES2s4r9S7Y5KDhMnWvPNiqBsrBNCP8B9AMDq2nQnG
11jpwGxEVQ4vFhkUgRABx9gU4vDYcVeRCDjPyRX2FkFaCth1PZr
Discord Handle
No response
Reason(s)
These Hotspots are only witnessing their own brand, have very often a unlikely (perfect) placement, same assertion date-range and usually there are enough real hotspots arround but these do not get witnessed at all.
Below some proof of the cluster(s)

:

fake account


Docker QoL improvements

[x] Fix setup.sh mode bits
[x] Fix and improve shell prompt by using Starship
[x] Add support for UNS proxy
[x] Fail silently when auto-sourcing ROS2 setup scripts, print error if doing so manually
[x] Docker buildkit
[x] Swap bash with fish for interactive shell
[x] Git shortcuts
[x] Port mep3 shprtcuts to fish shell

molim te ubaci još ovu liniju i može merge
https://github.com/memristor/mep3/pull/234/files#diff-d6ee95760084dc3f837f37cdec229def85c5aea183c2b41a807bcce54346083aR10


ICP, rigid body tick box.

In the Meshing workspace, it is strange in the ICP to have a tick box for "rigid body", it should be a drop down menu to choose between rigid / similarity / affine, otherwise it is not clear what is done when rigid body is not checked.

@msermesant, @LoicCadour  told me you gave this feedback. Can we have details about that? I do not understand completely what you want.

The ICP can usually compute two types of transformation: "Rigid body" or "Affine"
So I would understand to have a choice between these two. But having only a check box on rigid body is not clear, because you don't know what happens if you don't tick it (some people did non-rigid registration algorithms with ICP, I personally know it cannot be that because it is using the VTK version, but it would be useful for people to know for sure what it is doing, and that they can do affine registration with it).

Ok, i'm going to see that \o


[mesheryctl] Build check failure: Golang Unit Test

See mesheryctl Command Tracker for current status of commands.
Current Behavior
The Golang unit tests are failing in this build check - https://github.com/meshery/meshery/runs/4674993078?check_suite_focus=true

Contributor Resources

mesheryctl Contributing Guide
Beginner's guide to contributing to Meshery and mesheryctl
mesheryctl Command Tracker
Meshery CLI Commands and Documentation
🙋🏾🙋🏼 Questions: Layer5 Discussion Forum and Layer5 Community Slack

I can take this up @leecalcote 💯

This would be excellent, @unnati914. Let's give you a beat to tie-off other assignments currently on your plate, and then, get this one assigned straight-away.

sure 🥇

Old issue, actions are passing now.


3d map showing scales issue

Context
I am using 3d map polygons for my project using your latest code on Android (Carto Mobile Sdk 4.2.0). And the map is showing a lot of scales (image attached). I am seeing these lines when I use tilting. When the camera is with a tilt of 90 degrees, the lines go away.
Steps to Reproduce

Load the map for Carto Mobile Sdk 4.2.0
Tilt the map for viewing it in 3d
Weird lines/scales show up

Current Result
The lines or the scales seem to be some polygons/polylines plotted on the map with some alpha
Expected result
3d map should be as clear as 2d map
SDK Version
I am using Carto Version 4.2.0

@CartoDB/rt-managers

Thank you for reporting this @lasyakoechlin . @gonzaloriestra Support will handle this outside of RT with the Mobile Team.

Logging internal ticket here.

Is there any update on this issue?

@lasyakoechlin we are still in the process of getting feedback about this from our Mobile Team.

@lasyakoechlin We need a sample app demonstrating the issue. It could be related to the specific indoor dataset, so without sample it is very difficult to track this. If you can share a sample, please post the sample to the Mobile SDK core repository: https://github.com/CartoDB/mobile-sdk. The mobile team can respond faster if posted there.

Closing the issue in this repo since it's unrelated.
@lasyakoechlin Please could you continue the conversation in https://github.com/CartoDB/mobile-sdk?
Thanks!


🐛 Bug Report: P-Limit Deadlock

📜 Description
When I've to fetch more than five secrets with nested data a deadlock occurs.
👍 Expected behavior
Resole all the promises without a nested blocking call.
👎 Actual Behavior with Screenshots
Try to use a vault path that contains more than five nested secrets, the call remains pending.
👟 Reproduction steps

Create 10 kv secrets on vault like:

secrets/foo/bar/s1
secrets/foo/bar/s2
secrets/foo/bar/s3
secrets/foo/bar/s4
secrets/foo/bar/s5
secrets/foo/bar/s6

Inside a configuration for a component add:
annotations:
vault.io/secrets-path: 'foo'
📃 Provide the context for the Bug.
No response
🖥 Your Environment
No response
👀 Have you spent some time to check if this bug has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
No, but I'm happy to collaborate on a PR with someone else

The error comes form this variable:
https://github.com/backstage/backstage/blob/69d32eb3477d9f19f2c39b435164f692dd71f3f0/plugins/vault-backend/src/service/vaultApi.ts#L90
export class VaultClient implements VaultApi {
  private vaultConfig: VaultConfig;
  private readonly limit = plimit(5); // <-- You've inserted a semaphore of 5 elements

  constructor(options: { config: Config }) {
    this.vaultConfig = getVaultConfig(options.config);
  }

Then in this line:
https://github.com/backstage/backstage/blob/69d32eb3477d9f19f2c39b435164f692dd71f3f0/plugins/vault-backend/src/service/vaultApi.ts#L140
you call the limit function decrement the semaphre, but this method calls himself at this line:
https://github.com/backstage/backstage/blob/69d32eb3477d9f19f2c39b435164f692dd71f3f0/plugins/vault-backend/src/service/vaultApi.ts#L151
an it is wrapped in the same limit function.
If the stack call is greater than 5 you reach a deadlock.
  async listSecrets(
    secretPath: string,
    options?: {
      secretEngine?: string;
    },
  ): Promise<VaultSecret[]> {
    const mount = options?.secretEngine || this.vaultConfig.secretEngine;

    const listUrl =
      this.vaultConfig.kvVersion === 2
        ? `v1/${encodeURIComponent(mount)}/metadata/${secretPath}`
        : `v1/${encodeURIComponent(mount)}/${secretPath}`;
    const result = await this.limit(() => // <-- LIMIT CALL
      this.callApi<VaultSecretList>(listUrl, { list: true }),
    );

    const secrets: VaultSecret[] = [];

    await Promise.all(
      result.data.keys.map(async secret => {
        if (secret.endsWith('/')) {
          secrets.push(
            ...(await this.limit(() =>
              this.listSecrets(`${secretPath}/${secret.slice(0, -1)}`, { //  <-- Recursive call inside an other limit
                secretEngine: mount,
              }),
            )),
          );
        }

Possible solution: Avoid the Semaphore and do all calls sequentially:
    async listSecrets(
        secretPath: string,
        options?: {
            secretEngine?: string;
        },
    ): Promise<VaultSecret[]> {
        const mount = options?.secretEngine || this.vaultConfig.secretEngine;

        const listUrl =
            this.vaultConfig.kvVersion === 2
                ? `v1/${encodeURIComponent(mount)}/metadata/${secretPath}`
                : `v1/${encodeURIComponent(mount)}/${secretPath}`;
        const result = await this.callApi<VaultSecretList>(listUrl, {list: true})

        const secrets: VaultSecret[] = [];

        for (const secret of result.data.keys) {
            if (secret.endsWith('/')) {
                secrets.push(
                    ...(await this.listSecrets(`${secretPath}/${secret.slice(0, -1)}`, {
                        secretEngine: mount,
                    }))
                );
            } else {
                const vaultUrl =
                    this.vaultConfig.publicUrl || this.vaultConfig.baseUrl;
                secrets.push({
                    name: secret,
                    path: secretPath,
                    editUrl: `${vaultUrl}/ui/vault/secrets/${encodeURIComponent(
                        mount,
                    )}/edit/${secretPath}/${secret}`,
                    showUrl: `${vaultUrl}/ui/vault/secrets/${encodeURIComponent(
                        mount,
                    )}/show/${secretPath}/${secret}`,
                });
            }
        }

      return secrets;
    }

I've adopted this solution cause fits my purpose, so let me know your generic way.

Hi! Would you like to contribute a fix for that?
Honestly I think we can just remove the limit inside the Promise.all. The point of the limit was to not have too many concurrent outbound API calls to Vault. And that's already achieved by the first occurrence of the limit

Yea, thath should be fine

Closing as fixed


No Re-IP Rules table generated after v12 upgrade

Bug description
No replication job Re-IP Rules table generated after v12 upgrade
Command-line input
New-AsBuiltReport -Report Veeam.VBR -Target veeam-vbr.pharmax.local -AsBuiltConfigFilePath C:\Users\jocolon\AsBuiltReport\AsBuiltReport.json -OutputFolderPath C:\Users\jocolon\AsBuiltReport\ -Credential $cred -Format HTML -ReportConfigFilePath C:\Users\jocolon\AsBuiltReport\AsBuiltReport.Veeam.VBR_all.json -EnableHealthCheck
Steps to reproduce

Run report against Veeam VBR v12

Expected behaviour
Information generated for the Re-IP replication jobs section
Screenshots

Operating System
Windows 10
PowerShell Version
PS C:\Users\jocolon> $PSVersionTable
Name                           Value

PSVersion                      5.1.19041.2364
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.2364
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
PS C:\Users\jocolon>
PowerShell Modules
PS C:\Users\jocolon> Get-Module -ListAvailable @("AsBuiltReport.Core";"AsBuiltReport.Veeam.VBR";"PScribo") | Select Name, Version
Name                    Version

AsBuiltReport.Veeam.VBR 0.7.1
AsBuiltReport.Core      1.3.0
PScribo                 0.10.0
PS C:\Users\jocolon>
Additional Context
No response
Before submitting

[X] I have read and followed the bug reporting guidelines.
[X] I have read the documentation, and referred to the known issues before submitting this bug report.
[X] I have checked for previously opened & closed issues before submitting this bug report.

Partial code:
foreach ($ReIpRule in $Bkjob.Options.ReIPRulesOptions.Rules) {
    try {
        Write-PscriboMessage "Discovered $($Bkjob.Name) re-ip rules $($ReIpRule.Source.IPAddress) information."
        $inObj = [ordered] @{
            'Source IP Address' = $ReIpRule.Source.IPAddress
            'Source Subnet Mask' = $ReIpRule.Source.SubnetMask
            'Target P Address' = $ReIpRule.Target.IPAddress
            'Target Subnet Mask' = $ReIpRule.Target.SubnetMask
            'Target Default Gateway' = $ReIpRule.Target.DefaultGateway
            'Target DNS Addresses' = $ReIpRule.Target.DNSAddresses
        }
        $OutObj += [pscustomobject]$inobj
    }
    catch {
        Write-PscriboMessage -IsWarning "VMware Replication Jobs $($Bkjob.Name) Re-IP Rules Table: $($_.Exception.Message)"
    }
}

Veeam developers added support for IPV6 in V12 so now the table is divided into IPv4 and IPv6.....
PS C:\Users\jocolon> $Bkjobs[0].Options.ReIPRulesOptions

AllRules                                   RulesIPv4                                  RulesIPv6
--------                                   ---------                                  ---------
{Veeam.Backup.Model.CDomReIPv4RuleOptions} {Veeam.Backup.Model.CDomReIPv4RuleOptions} {}

PS C:\Users\jocolon>


How do I silence naggy errors I don't care about?

Describe the problem
I get the following warning when starting my dev server: A11y: visible, non-interactive elements with an on:click event must be accompanied by an on:keydown, on:keyup, or on:keypress event. I don't care about this rule.
Describe the proposed solution
I would like to disable the above warning.
Alternatives considered
I found something similar in eslint, but the warning doesn't appear to be coming from there. I tried using onwarn, but I can't tell if it's supposed to go in vite.config.js or svelte.config.js. I tried both, neither worked.
Importance
would make my life easier

This should already be working. https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md#config-file onwarn goes in the top level of your svelte.config.js. If it's not working, please share a minimal reproduction.

please file a bug report providing all required information if this is not working as described in the docs mentioned.


DrawerNavigator: "undefined is not an object" when close it.

I've a DrawerNavigator as main navigator. It opens with the command: this.props.navigation.navigate('DrawerOpen');
But when it closes an error appear:

My navigator config:
export const AppNavigator = StackNavigator(
    {
        //a lot of screens
    },
    {
        headerMode: 'none',
        initialRouteName: 'Menu'
    }
);

export const RootNavigator = DrawerNavigator(
    {
        App: { screen: AppNavigator },
    },
    {
        initialRouteName: 'App',
        drawerPosition: 'right',
    }
);

class AppWithNavigationState extends React.Component {
    render() {
        return (
            <RootNavigator navigation={addNavigationHelpers({
                dispatch: this.props.dispatch,
                state: this.props.nav,
            })} />
        );
    }
}

const mapStateToProps = state => ({
    nav: state.nav,
});

export default connect(mapStateToProps)(AppWithNavigationState);

And my reducer (small for simplicity):
import { NavigationActions } from 'react-navigation';
import { RootNavigator } from '../navigators/config';

export default function nav(state, action) {
    let nextState;

    switch(action.type) {
        default:
            nextState = RootNavigator.router.getStateForAction(action, state);
            nextState = {...nextState, ...defaultState}
    }

    return nextState || state;
}

I don't have an "initial state" for the navigator. To be honest, I didn't understand why. But all works when my root navigator was an StackNavigator, but now I should implement it as a DrawerNavigator and this happens.
It's my first experience with react-native.
I appreciate any help.

software
version

react-navigation
^1.0.0-beta.9

react-native
^0.45.0

node
7.10.0

npm
5.0.3

UPDATE
I've updated the react-navigation version to 1.0.0-beta.11 and it stopped to crush when closes it. But show me the same error when I press some item on menu.
Still trying and investigating the problem.

Everything is working now, I misunderstood some concepts and re-coded all structure. Closing this issue.

Hello @vendramini,
I found the same problem, can you tell your solution?

@RobbyWH sorry the delay, dude.
I just re-coded all my structure on a better way. I really don't know what exactly I did =(
Did u updated your react-navigation? What version are you using? Could you show me your nav config?
As i said, I just did a great refactoring, using the right concepts like creating a StackNavigator for screens with childs, etc.


[SDPA-2857] Add interface to extend markup plugins.

JIRA issue: https://digital-engagement.atlassian.net/browse/SDPA-
Changed

Screenshots

No luck with the config loader idea, this should probably just be merged as is

No luck with the config loader idea, having the try catch is probably safe enough for now


Broken update 0.73.2

Jul 16 22:32:23 assistant hass[17772]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/__main__.py", line 352, in main
Jul 16 22:32:23 assistant hass[17772]:     args = get_arguments()
Jul 16 22:32:23 assistant hass[17772]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/__main__.py", line 85, in get_arguments
Jul 16 22:32:23 assistant hass[17772]:     import homeassistant.config as config_util
Jul 16 22:32:23 assistant hass[17772]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/config.py", line 162, in <module>
Jul 16 22:32:23 assistant hass[17772]:     vol.All(cv.ensure_list, [auth.AUTH_PROVIDER_SCHEMA])
Jul 16 22:32:23 assistant hass[17772]: AttributeError: module 'homeassistant.auth' has no attribute 'AUTH_PROVIDER_SCHEMA'
Jul 16 22:32:23 assistant systemd[1]<EMAIL_ADDRESS>Main process exited, code=exited, status=1/FAILURE
Jul 16 22:32:23 assistant systemd[1]<EMAIL_ADDRESS>Unit entered failed state.
Jul 16 22:32:23 assistant systemd[1]<EMAIL_ADDRESS>Failed with result 'exit-code'.

got this when i updated
and i have not defined the new auth in config
and if i enable the new one and try to get started
$ hass --script auth --config /home/homeassistant/.homeassistant/configuration.yaml
usage: hass [-h] [--script {auth}] [-c CONFIG]
            {list,add,validate,change_password} ...
hass: error: the following arguments are required: func
```

same here.
Update from 0.73.0 to 0.73.2.
Jul 16 22:54:39 metis systemd[1]: Started Home Assistant.
Jul 16 22:54:40 metis hass[28903]: Traceback (most recent call last):
Jul 16 22:54:40 metis hass[28903]:   File "/home/homeassistant/homeassistant/bin/hass", line 11, in <module>
Jul 16 22:54:40 metis hass[28903]:     sys.exit(main())
Jul 16 22:54:40 metis hass[28903]:   File "/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/__main__.py", line 352, in main
Jul 16 22:54:40 metis hass[28903]:     args = get_arguments()
Jul 16 22:54:40 metis hass[28903]:   File "/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/__main__.py", line 85, in get_arguments
Jul 16 22:54:40 metis hass[28903]:     import homeassistant.config as config_util
Jul 16 22:54:40 metis hass[28903]:   File "/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/config.py", line 162, in <module>
Jul 16 22:54:40 metis hass[28903]:     vol.All(cv.ensure_list, [auth.AUTH_PROVIDER_SCHEMA])
Jul 16 22:54:40 metis hass[28903]: AttributeError: module 'homeassistant.auth' has no attribute 'AUTH_PROVIDER_SCHEMA'
Jul 16 22:54:40 metis systemd[1]<EMAIL_ADDRESS>Main process exited, code=exited, status=1/FAILURE
Jul 16 22:54:40 metis systemd[1]<EMAIL_ADDRESS>Failed with result 'exit-code'
```.

Ugh, looks like the wheel of 0.73.2 accidentally included some files from the rc branch. I have deleted the wheel. Downgrade and upgrade again and it should install the tar.gz version which I have verified to be correct.

When upgrading, add --no-cache-dir to your pip command to make sure that you don't use the local cache with the bad wheel.

Jup, and we're back online :)
Thanks for the quick fix! 👍

Hello
After I upgraded my Raspberrypi 3B+ with Home Assistant (Hassbian) from 0.73.0 to version 0.73.2 I lost all my entities, automations and all my groups except the sun-icon on my frontend. I tried to upgrade to 0.74.0 bu no change. All the data is still in my configuration.yaml, automations.yaml, entity_registry.yaml, customize.yaml and groups.yaml. On my frontend it says:
Invalid config.
The following components and platforms could not be set up:

script
zha
group
automation
satel-integra
zwave
device-tracker
Please check your config

Any idea why this happened, and what I can do to get them back on my frontend.
For now nothing works.
Best regards from a rookie :-)


spec: document that type parameters are not permitted as constant declaration types

The compilation of the following program fails with error ./prog.go:4:10: invalid constant type P
package main

func f[P int]() {
	const y P = 5
}

func main() {}

but this behavior is not documented in the spec.
From the spec 5 is assignable to P because it is an untyped constant representable by a value of type P.

CC @griesemer
@gazerro Are you looking at https://tip.golang.org/ref/spec?

I believe this is not yet fully documented in the in-progress spec. But here it is: type parameters cannot be constant types. While 5 can be stored in a variable of type P, it cannot be the value of a constant of type P.  Specifically, and this is documented in the section on conversions, if a constant is converted to a type parameter, say P(5), the result is a non-constant value.
Leaving open until fully documented.

@gazerro Are you looking at https://tip.golang.org/ref/spec?

Yes.


Add support for current azure environments

Currently, the DNS validation for azure will produce errors when trying
to resolve cross-cloud requests. The AzureUSGoverenment specifically
forbids cross-cloud requests because it's a confidential environment.
This will add support for the four current public Azure environments:
AzureCloud, AzureChinaCloud, AzureUSGovernment, AzureGermanCloud.
Resolves: #1485

Sounds goods! I'll get on your suggestions right away!

Okay, I've reworked it a bit. Simplified the URL class as well as adding error handling if nothing in the options exist that specify what environment to run under.

Thanks, I'll take another look soon.

Is it fine for the plugin to have a menu asking about which environment you want with the default to AzureCloud? Like it does in its current form?

Is it fine for the plugin to have a menu asking about which environment you want with the default to AzureCloud? Like it does in its current form?

That is fine for interactive mode (the Aquire function) but in unattended mode (the Default function) we cannot ask for user input.
In that case I think I would probably leave the environment unspecified, so that it works with the default at runtime, not the default at creation time.

@WouterTinus wouldn't you want to use whatever it used during initial runtime rather than potentially change every renewal?

That's a tradeoff between being able to easily change a setting for existing renewals without having to re-create them, and keeping the renewal configuration a stable as possible.
In similar scenario's I've chosen the former route, e.g. if you change the default Central Certificate Store path, all renewals that refer to the "default" change with it, which makes it easy to move it to another location.
Maybe you are right that in this case the risk is greater because the likelihood of someone changing all of their DNS zones to another Azure cloud at once is pretty low.

I've merged this PR with the latest commits on 2.1.7 and addressed the BW compat issues.
Not able to test though: one of the changes in 2.1.7 is the addition of proxy support for Azure, which requires us to provide the DnsManagementClient with our own (proxied) HttpClient. AFIAKT there is no constructor that accepts both an HttpClient and an base uri. So I hope I solved this by specifying the BaseUri property instead, but I don't know how the HttpClient and BaseUri interact with eachother.
So, please test :)

👍
Thank you! I’ve been busy with work. I’ll will try to test it in our environment this week.
Sent from my iPhone

On Apr 19, 2020, at 2:43 PM, Wouter Tinus<EMAIL_ADDRESS>wrote:
I've merged this PR with the latest commits on 2.1.7 and addressed the BW compat issues.
Not able to test though: one of the changes in 2.1.7 is the addition of proxy support for Azure, which requires us to provide the DnsManagementClient with our own (proxied) HttpClient. AFIAKT there is no constructor that accepts both an HttpClient and an base uri. So I hope I solved this by specifying the BaseUri property instead, but I don't know how the HttpClient and BaseUri interact with eachother.
So, please test :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

If you can test it in the next couple of days we can still included it with the 2.1.7 release, otherwise I'll have to wait until 2.1.8.

Has anyone been able to test this? The 2.1.8 release window is closing soon :)

I finally tested the non-managed identity side. Seems you also need to provide specific environment settings for the ApplicationTokenProvider otherwise you get the CrossCloud errors that are usually seen. It was an easy fix. There was some discussion already on it here: https://github.com/Azure/azure-sdk-for-ruby/issues/850#issuecomment-319067598

The managed service identity does get the credentials from the environment specific URL but there must be some additional permission setup required for it. Not quite sure how MSI works. I have always used the service provider tokens.
Here's the stack trace regardless. It fails when trying to read the dns zones so I would assume as long as permissions are set up correctly it would work.
 [EROR] Error preparing for challenge answer
Microsoft.Rest.Azure.CloudException: The client '991c804e-....' with object id '991c804e-....' does not have authorization to perform action 'Microsoft.Network/dnsZones/read' over scope '/subscriptions/<subscription-id_redacted>/resourceGroups/<my-dns-zone-rg_redacted>/providers/Microsoft.Network' or the scope is invalid. If access was recently granted, please refresh your credentials.
   at Microsoft.Azure.Management.Dns.ZonesOperations.ListByResourceGroupWithHttpMessagesAsync(String resourceGroupName, Nullable`1 top, Dictionary`2 customHeaders, CancellationToken cancellationToken)
   at Microsoft.Azure.Management.Dns.ZonesOperationsExtensions.ListByResourceGroupAsync(IZonesOperations operations, String resourceGroupName, Nullable`1 top, CancellationToken cancellationToken)
   at PKISharp.WACS.Plugins.ValidationPlugins.Dns.Azure.GetHostedZone(String recordName) in C:\Git\win-acme\src\plugin.validation.dns.azure\Azure.cs:line 130
   at PKISharp.WACS.Plugins.ValidationPlugins.Dns.Azure.CreateRecord(String recordName, String token) in C:\Git\win-acme\src\plugin.validation.dns.azure\Azure.cs:line 56
   at PKISharp.WACS.Plugins.ValidationPlugins.DnsValidation`1.PrepareChallenge()
   at PKISharp.WACS.Plugins.ValidationPlugins.Validation`1.PrepareChallenge(IChallengeValidationDetails challenge)
   at PKISharp.WACS.RenewalExecutor.HandleChallenge(ExecutionContext context, TargetPart targetPart, Authorization authorization)

Hi InKahootz, thanks for the updated code. I'm just about to release 2.1.9 tomorrow or the day after, so I hope you don't mind this will be the first major feature landing in 2.1.10 😄

No worries! Glad to contribute to open source projects 😃
Sent from my iPhone

On Jul 6, 2020, at 3:42 PM, Wouter Tinus<EMAIL_ADDRESS>wrote:
Hi InKahootz, thanks for the updated code. I'm just about to release 2.1.9 tomorrow or the day after, so I hope you don't mind this will be the first major feature landing in 2.1.10 😄
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.


Correctly handle http2 upgrades when Http2FrameCodec is used together…

… with Http2MultiplexHandler
Motivation:
In the latest release we introduced Http2MultiplexHandler as a replacement of Http2MultiplexCodec. This did split the frame parsing from the multiplexing to allow a more flexible way to handle frames and to make the code cleaner. Unfortunally we did miss to special handle this in Http2ServerUpgradeCodec and so did not correctly add Http2MultiplexHandler to the pipeline before calling Http2FrameCodec.onHttpServerUpgrade(...). This did lead to the situation that we did not correctly receive the event on the Http2MultiplexHandler and so did not correctly created the Http2StreamChannel for the upgrade stream. Because of this we ended up with an NPE if a frame was dispatched to the upgrade stream later on.
Modifications:

Correctly add Http2MultiplexHandler to the pipeline before calling Http2FrameCodec.onHttpServerUpgrade(...)
Add unit test

Result:
Fixes https://github.com/netty/netty/issues/9314.

@netty-bot test this please


Card menu "cheat"

Description
When the player is in trouble, he can just open the cards menu and relax, think about what he should do for a while, i think this is not optimal  and we should have some sort of uptime for the cards menu.
Alternatives for pausing
What we should probably do for pausing is a simple menu to pause the game, but the menu will hide or blur the game.

This can be fixed by doing what other games do: slow down time while the player is hovering over the cards. I think that’s what we should do.

Sounds good to me. applies a very nice effect also!

Blur is not supported and would be hard to implement without hacks, so slowdown would be excellent effect.
Closing this in favor of #10


forms: added loading prop to action buttons

closes https://github.com/inveniosoftware/invenio-app-rdm/issues/1703

Uses semantic-ui-react button loading property.
Added a property isLoading that accepts a function to compute whether the button should be "Loading" or not.

Closing as this was already fixed by https://github.com/inveniosoftware/react-invenio-deposit/pull/523


[BUG] Short description of your problem

Hi MarioFares, thank you four your report!
It looks like the issue occured after starting up Yana. Did you use Yana before and sucessfully setup a Yana workspace, or was it after starting up Yana the first time? If you've already setup a workspace, could you kindly send me the contents of the workspace file, named notebook.json and located at the path you've set when creating the workspace (by default C:\Users\Mario\yana-workspace)? Thanks!

Yo Lukas how are you man. First of all, big fan. I love Yana and I hope to
switch from Evernote to Yana Permanently.
Now to Business:
-Set up Yana
-Opened it and created some notes
-Closed it and re-opened
-Did not load > I Launched Devtools
Please find notebook.json attached below.
Path: C:\Users\Mario\Desktop\workspace
One more thing, can you please provide me with your email address?
I checked out your website and Yana's features. Got to say I love it. I
myself am going to intern at a web development company and may be I can ask
a few questions now and then
about your learning process and what tech you use.
Thanks,
Mario
On Tue, Dec 8, 2020 at 1:40 AM Lukas Bach<EMAIL_ADDRESS>wrote:

Hi MarioFares, thank you four your report!
It looks like the issue occured after starting up Yana. Did you use Yana
before and sucessfully setup a Yana workspace, or was it after starting up
Yana the first time? If you've already setup a workspace, could you kindly
send me the contents of the workspace file, named notebook.json and
located at the path you've set when creating the workspace (by default
C:\Users\Mario\yana-workspace)? Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/lukasbach/yana/issues/10#issuecomment-740248585, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ALTPWQBC54WABVXPEZ5AALDSTVRW3ANCNFSM4UQZLMSQ
.

One more thing,
I uninstalled and re-installed on same laptop gave me same error.
I installed on other laptop it worked.
On Tue, Dec 8, 2020 at 8:09 AM mario fares<EMAIL_ADDRESS>wrote:

Yo Lukas how are you man. First of all, big fan. I love Yana and I hope to
switch from Evernote to Yana Permanently.
Now to Business:
-Set up Yana
-Opened it and created some notes
-Closed it and re-opened
-Did not load > I Launched Devtools
Please find notebook.json attached below.
Path: C:\Users\Mario\Desktop\workspace
One more thing, can you please provide me with your email address?
I checked out your website and Yana's features. Got to say I love it. I
myself am going to intern at a web development company and may be I can ask
a few questions now and then
about your learning process and what tech you use.
Thanks,
Mario
On Tue, Dec 8, 2020 at 1:40 AM Lukas Bach<EMAIL_ADDRESS>wrote:

Hi MarioFares, thank you four your report!
It looks like the issue occured after starting up Yana. Did you use Yana
before and sucessfully setup a Yana workspace, or was it after starting up
Yana the first time? If you've already setup a workspace, could you kindly
send me the contents of the workspace file, named notebook.json and
located at the path you've set when creating the workspace (by default
C:\Users\Mario\yana-workspace)? Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/lukasbach/yana/issues/10#issuecomment-740248585, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ALTPWQBC54WABVXPEZ5AALDSTVRW3ANCNFSM4UQZLMSQ
.

Hi,
great to hear that you like Yana! My mail-adress is<EMAIL_ADDRESS>Looks like you've sent the file via mail to Github and it did not get attached. But I assume that the file just got stored malformed, so it's not that urgent.
Re-installing Yana does not help because your workspaces do not get removed, and stay malformed after reinstallation. If you don't mind loosing changes you've done so far with Yana, you can do the following:

Remove your workspace (by default located at C:\Users\Mario\yana-workspace, unless you chose a different location)
Remove your workspaces.json file, located at C:\Users\Mario\AppData\Roaming\yana\workspaces.json

This will reset all application data, and when you then restart Yana, you will have a fresh restart.
My assumption to why that happened is that maybe Yana was writing the file while it was closed, but I'm not sure. I'll add logic to Yana to make that persisting process more resilient. Sorry for the issues.

{
"structures": {
"tags": {},
"sessionSidebar_a363322e-25c8-4a9d-b42b-acf03bc2d837": [
"1fc58041-78e6-4159-b7d0-91f23587038b",
"ba248a04-1dbd-45c5-b9fb-67bb33d5fcb6",
"ba248a04-1dbd-45c5-b9fb-67bb33d5fcb6",
"ba248a04-1dbd-45c5-b9fb-67bb33d5fcb6",
"ba248a04-1dbd-45c5-b9fb-67bb33d5fcb6",
"ba248a04-1dbd-45c5-b9fb-67bb33d5fcb6",
"fe9152c0-5859-42b8-8ef4-da6e03a38b70",
"1e0f0dbe-a169-4bf4-b712-0ac1c9304074"
],
"sessiontabs": {
"tabs": [
{
"page": "__settings"
}
],
"openTabId": 0
}
}
}    "openTabId": 0
}
}
}
===
Here you go buddy.
I will do what you told me and reply ASAP.
On Tue, Dec 8, 2020 at 11:54 AM Lukas Bach<EMAIL_ADDRESS>wrote:

Hi,
great to hear that you like Yana! My mail-adress is<EMAIL_ADDRESS>Looks like you've sent the file via mail to Github and it did not get
attached. But I assume that the file just got stored malformed, so it's not
that urgent.
Re-installing Yana does not help because your workspaces do not get
removed, and stay malformed after reinstallation. If you don't mind loosing
changes you've done so far with Yana, you can do the following:

Remove your workspace (by default located at
C:\Users\Mario\yana-workspace, unless you chose a different location)
Remove your workspaces.json file, located at
C:\Users\Mario\AppData\Roaming\yana\workspaces.json

This will reset all application data, and when you then restart Yana, you
will have a fresh restart.
My assumption to why that happened is that maybe Yana was writing the file
while it was closed, but I'm not sure. I'll add logic to Yana to make that
persisting process more resilient. Sorry for the issues.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/lukasbach/yana/issues/10#issuecomment-740514544, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ALTPWQGIXHVMHYN2BZZ7GRLSTXZW7ANCNFSM4UQZLMSQ
.

I did as you said and reinstalled.
Works good now thanks!
On Tue, Dec 8, 2020 at 12:23 PM mario fares<EMAIL_ADDRESS>wrote:

{
"structures": {
"tags": {},
"sessionSidebar_a363322e-25c8-4a9d-b42b-acf03bc2d837": [
"1fc58041-78e6-4159-b7d0-91f23587038b",
"ba248a04-1dbd-45c5-b9fb-67bb33d5fcb6",
"ba248a04-1dbd-45c5-b9fb-67bb33d5fcb6",
"ba248a04-1dbd-45c5-b9fb-67bb33d5fcb6",
"ba248a04-1dbd-45c5-b9fb-67bb33d5fcb6",
"ba248a04-1dbd-45c5-b9fb-67bb33d5fcb6",
"fe9152c0-5859-42b8-8ef4-da6e03a38b70",
"1e0f0dbe-a169-4bf4-b712-0ac1c9304074"
],
"sessiontabs": {
"tabs": [
{
"page": "__settings"
}
],
"openTabId": 0
}
}
}    "openTabId": 0
}
}
}
===
Here you go buddy.
I will do what you told me and reply ASAP.
On Tue, Dec 8, 2020 at 11:54 AM Lukas Bach<EMAIL_ADDRESS>wrote:

Hi,
great to hear that you like Yana! My mail-adress is<EMAIL_ADDRESS>Looks like you've sent the file via mail to Github and it did not get
attached. But I assume that the file just got stored malformed, so it's not
that urgent.
Re-installing Yana does not help because your workspaces do not get
removed, and stay malformed after reinstallation. If you don't mind loosing
changes you've done so far with Yana, you can do the following:

Remove your workspace (by default located at
C:\Users\Mario\yana-workspace, unless you chose a different location)
Remove your workspaces.json file, located at
C:\Users\Mario\AppData\Roaming\yana\workspaces.json

This will reset all application data, and when you then restart Yana, you
will have a fresh restart.
My assumption to why that happened is that maybe Yana was writing the
file while it was closed, but I'm not sure. I'll add logic to Yana to make
that persisting process more resilient. Sorry for the issues.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/lukasbach/yana/issues/10#issuecomment-740514544, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ALTPWQGIXHVMHYN2BZZ7GRLSTXZW7ANCNFSM4UQZLMSQ
.

Great to hear. v1.0.6 also makes persisting more resilient against such errors, hopefully this won't happen in the future. Thanks for your help!


Monthly view - issue when refreshing month on month scroll

Use case:
Monthly view calendar, when the user goes into the fragment they will get monthly data via API, store it locally and refresh the calendar monthly view. This logic will also happen when the user is in the fragment and swipes across to go into a new month.
Issue:
When swiped across the refresh doesn't display the data correctly (hiding all "dot views") and days for the month are "greyed out" even they aren't supposed to (See pictures).
Expected behavior:
Months display correct data and only days that don't belong to the owner month are "greyed out".
View when the user first goes into the fragment:

View when swiping across to the left:

In here the days 27 to 30 should not be "greyed out", when swiping into this month they flash on and off.
View when swiping back to current month:

View when swiping across to the right:

View when swiping across to the left to go to April:

View when swiping across to the left to go to March:

As you can see from the above there are dates that shouldn't be greyed out.
Here is my for the month scrolls listener:
        binding.calendarView.monthScrollListener = { month ->
            val title = "${monthTitleFormatter.format(month.yearMonth)} ${month.yearMonth.year}"
            binding.monthYearText.text = title
            binding.calendarView.notifyMonthChanged(month.yearMonth)
            Thread {
                user = userViewModel.getAllUsers()[0]
                setupRoster(month.yearMonth)
            }.start()

            selectedDate?.let {
                // Clear selection if we scroll to a new month.
                selectedDate = null
                binding.calendarView.notifyDateChanged(it)
            }
        }

Here is my DayViewContainer code:
        class DayViewContainer(view: View) : ViewContainer(view) {
            val bind = ItemCalendarDayBinding.bind(view)

            // Will be set when this container is bound
            private lateinit var day: CalendarDay

            init {
                view.setOnClickListener {
                    selectDate(day.date)
                    // Use the CalendarDay associated with this container.
                    binding.calendarView.notifyDateChanged(day.date)
                    //updateRecyclerView(day.date)
                }
            }

            private fun selectDate(date: LocalDate) {
                if (selectedDate != date) {
                    val oldDate = selectedDate
                    selectedDate = date
                    oldDate?.let { binding.calendarView.notifyDateChanged(it) }
                    binding.calendarView.notifyDateChanged(date)
                }
            }

            fun bind(day: CalendarDay) {
                this.day = day
                val dayView = bind.dayText
                val dotView = bind.dotView

                dayView.text = dayFormatter.format(day.date)

                when (day.date) {
                    LocalDate.now() -> {
                        dayView.setBackgroundResource(R.drawable.background_item_today)
                        calendarThread = Thread {
                            val rosterAvailable =
                                rostersViewModel.getRosterById(day.date.toString())
                            if (rosterAvailable == null) {
                                dotView.makeInVisible()
                            }
                        }
                        calendarThread.start()
                    }
                    selectedDate -> {
                        dayView.setBackgroundResource(R.drawable.background_item_selected)
                        calendarThread = Thread {
                            val rosterAvailable =
                                rostersViewModel.getRosterById(day.date.toString())
                            if (rosterAvailable == null) {
                                dotView.makeInVisible()
                            }
                        }
                        calendarThread.start()
                    }
                    else -> {
                        dayView.background = null
                        if (!rostersAvailable.isNullOrEmpty()) {
                            if (rostersAvailable.filter { it.id == day.date.toString() }
                                    .isEmpty()) {
                                dotView.makeInVisible()
                            }
                        }
                    }
                }

                // If the day is not from the current month change the displayed dates
                if (day.owner != DayOwner.THIS_MONTH) {
                    dayView.setTextColorRes(R.color.primaryDark)
                    dotView.background = null
                }
            }
        }

Here is the API code:
    private fun setupRoster(month: YearMonth?) {
        if (month != null) {
            val firstDay = month.atDay(1).toString()
            val lastDay = month.atEndOfMonth().toString()
            getRosterApi(firstDay, lastDay, month)
        }
    }

    private fun getRosterApi(firstDay: String, lastDay: String, month: YearMonth) {
        val queryParameters = QueryParameters.getRoster(user, firstDay, lastDay)
        println(queryParameters)
        // Check for an internet connection
        if (InternetCheck.isOnline()) {
            requireActivity().runOnUiThread {
                rostersViewModel.getRostersApi(
                    queryParameters,
                    requireContext(),
                    user.baseUrl
                )
                rostersViewModel.rostersRequestResponse.observeOnce(this, { response ->
                    if (response!!.isSuccessful) {
                        storeRosters(response.body(), month)
                    }
                })
            }
        }
    }

    private fun storeRosters(body: Rosters?, month: YearMonth) {
        if (body != null) {
            if (body.data != null) {
                rostersThread = Thread {
                    for (roster in body.data) {
                        if (roster[0].id != "0") {
                            val localRoster = LocalDataHandler.createRosterObject(roster[0])
                            rostersViewModel.storeRoster(localRoster)
                        }
                    }
                    rostersAvailable = rostersViewModel.getAllRosters()
                    requireActivity().runOnUiThread {
                        println("MONTH AND REFRESH: $month")
                        binding.calendarView.notifyMonthChanged(month)
                    }
                }
                rostersThread.start()
            }
        }
    }

turns out I just needed the following line:
dayView.setTextColorRes(R.color.white)
Just inside if (day.owner == DayOwner.THIS_MONTH)


Remove use transaction hook in TFE

Use one from react helpers, or move to rect helpers
Originally posted by @dexturr in https://github.com/vegaprotocol/frontend-monorepo/pull/229#discussion_r853865328

close as duplicate


Add new button to SandCastle that loads Hello World example

New Button added to the top toolbar. #1898

@emackey can you take a look at this.  It looks mostly correct to me but you're obviously more familiar with this code.

Hi guys, I'm sorry, but I don't think we should merge this until after #2178 is resolved.  Without #2178 this just adds another button to erase a work-in-progress.

@adi2412 can you merge master into your branch here?  The other issue was resolved, but now there are merge conflicts.  Thanks!

@emackey Done.

So the new button needs to warn the user before deleting their edits, which was the new feature added in #2563.
Also... @mramato and @pjcozzi ... I hesitate to ask after someone has gone to the trouble of implementing a feature, but do we really want this?  Are people confused how to reset Sandcastle to a new state after making some edits?  Just seems like more UI to learn to deal with, and the toolbar space is pretty tight even without this.  I'm barely lukewarm to the whole idea.

Yes, I think it is useful...just like File -> New.

@adi2412 take a look at 57fdec4bbcee, particularly the lower part where window.confirm is used, and maybe wrap the "New" functionality in a similar confirmation.

I've added the confirmation box to the New button.

@adi2412 sorry I overlooked this before, but your new button is missing a window.history.pushState call.  See Line 1058 for an example.

@emackey It's there on [https://github.com/adi2412/cesium/blob/5c934ae72ed182d6c3868a72dc987a18aab0de78/Apps/Sandcastle/CesiumSandcastle.js#L840](Line 840). I'm only pushing to the history if the user was previously on a different showcase.

Aha, it's there, but it's not getting called.  You have a bug (or a typo) on 837.

Sorry, my bad. Fixed that now and it works correctly.

Looks good @adi2412, thanks!


Consider using the language from C++20 "Ranges" to describe bigtable::RowReader.

We could describe bigtable::RowReader using the C++20 concepts for Ranges (e.g. std::ranges::View). These are unfamiliar today, but we can at least link to existing documentation (in cppreference.com for example), and will become more familiar over time.

We considered this and decided not to do it.


handle android deeplinks to app details

https://zapstore.dev/#app=com.getalby.mobile would open in that app detail screen if zapstore is installed, or show the website for downloading otherwise.

https://dev.to/rmmgc/how-to-setup-deep-links-for-android-applications-509e

For this to work a file with some sha256 certs must be placed in the server.
Blocks https://github.com/getAlby/hub/pull/916


The parameter sample_shape does not work when fine-tune the generative model using 256x256 pixel samples

Hi, I was running train_genforecast.py to fine-tune the model using 256x256 pixel samples. The model was initialized with the weights obtained the pre-training with 128x128 pixel samples.
I found that the parameter sample_shape of the train function in train_genforecast.py was not used when fine-tuning the model.
That is, the sample_shape is still (4, 4) when building datamodule for fine-tuning the model.
https://github.com/MeteoSwiss/ldcast/blob/1345cb2a3c4d4b41bbd42be7aa0db63e70bd2dec/scripts/train_genforecast.py#L94-L97
Would you mind checking this for me?

Thanks for the report again! This is fixed in the above commit.
I also double checked that this was not affecting the training runs for the paper (for instance, the increase in time per training sample for the fine-tuning phase is consistent with the increase in sample size). Rather this parameter was omitted when building the scripts for the code release.


is the project still maintained?

found there is no update in recent years.  the documents like installation or usage are not clear. so is this project still maintained?

@yukinying

This project is being archived.


Translate into Korean: 2-3

#42
What does this PR do?
Translated the 3.mdx file of chapter 2 for the course to Korean.
Some questions:
Package names and their everyday term counterpart is quite confusing to differentiate. Is there a way to tell easily? (🤗 transformers and just the model, 🤗 tokenizers and just regular tokenizers etc.)
I also got to know a fellowship for huggingface. How do I apply? Do I need a nomination from a prior fellow?
I checked the previous assignee's repo before this PR. What is the point of no return? 3 months since the last commit? When can another person takeover? (still very new to opensource, sorry for the novice question)
Thank you in advance for your review.
Part of https://github.com/huggingface/course/issues/42
Before submitting
This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
Did you read the contributor guideline,
Pull Request section?
Was this discussed/approved via a Github issue or the forum? Please add a link
to it if that's the case.
Did you make sure to update the documentation with your changes? Here are the
documentation guidelines, and
here are tips on formatting docstrings.
Did you write any new necessary tests?
Who can review?
@sgugger, @lewtun, @ArthurZucker, @eunseojo may you please review this PR?

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Repository missing when using SSL

Hi All,
I have started docker registry v2 and docker registry UI
when using without SSL .crt/.key I can see the list of repositories
but when using self signed .crt/.key files - I cannot see the repositories :(
Here is how I started both docker registry and docker registry UI
thanks
Chanan
#!/bin/sh -x
. /home/core/trust_authority/bin/env.sh
. /home/core/trust_authority/bin/utils.sh
docker stop $(docker ps -q)
docker rm $(docker ps -q -a)
#_sleep 5
#sudo rm -rf ${TA_DATA_PATH}/registry1
echo "starting secure-registry"
_sleep 5
docker run
-d
-p 5000:5000
-v $TA_CONTAINER_PATH/secure-registry/certs.d/secure-registry:/certs:ro
-v $TA_CONTAINER_PATH/secure-registry/config.yml:/etc/docker/registry/config.yml:ro
-v $TA_DATA_PATH/registry1:/var/lib/registry
-e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/server.crt
-e REGISTRY_HTTP_TLS_KEY=/certs/server.key
-e SQLALCHEMY_INDEX_DATABASE=sqlite:////tmp/docker-registry.db
-e SEARCH_BACKEND=sqlalchemy
-h registry11.saas.lab
--name registry1
registry:2.1.1
echo "starting UI"
_sleep 5
IP=$(docker inspect registry1 | jq '.[0].NetworkSettings.IPAddress'|sed -e 's/"//g')
docker run
-d
-e ENV_DOCKER_REGISTRY_HOST=$IP
-e ENV_DOCKER_REGISTRY_PORT=5000
-e ENV_USE_SSL=yes
-v $TA_CONTAINER_PATH/secure-registry/certs.d/secure-registry/server.crt:/etc/apache2/server.crt:ro
-v $TA_CONTAINER_PATH/secure-registry/certs.d/secure-registry/server.key:/etc/apache2/server.key:ro
-p 8080:80
konradkleine/docker-registry-frontend:v2

@bchanan03 Please run the frontend without the -d option and look at the logs inside the container to figure out what's going on.

Same problem here.  If I run the registry with SSL disabled, it works.  With SSL enabled, it is not found.  This is using a Quovadis certificate, with the intermediate certs included with the registry cert.  My guess is that the Quovadis root is not in your CA and the connection fails?

I have tried setting up a java keystore with the Quovadis root CA in it, then linking it in with
-v $DIR/truststore:/truststore
-e 'JAVA_OPTS=-Djavax.net.ssl.trustStore=/truststore -Djavax.net.ssl.trustStorePassword=pass'
However this does not seem to work as expected (I'm not a Java expert anyway so may well be doing this wrong)

Here's the log.  This is starting the container, and (from the web interface) trying to view the registry.  There seems to be no useful error messages.
rancher repository # export RPORT=5000
rancher repository # export DOMAIN=rancher.container.auckland.ac.nz
rancher repository # export WPORT=8443
rancher repository # sudo docker run -e ENV_DOCKER_REGISTRY_HOST=$DOMAIN    -e ENV_DOCKER_REGISTRY_PORT=$RPORT    -v $DIR/truststore:/tmp/truststore -e 'JAVA_OPTS=-Djavax.net.ssl.trustStore=/tmp/truststore -Djavax.net.ssl.trustStorePassword=password'   -e ENV_USE_SSL=yes    -v $DIR/certs/$DOMAIN.crt:/etc/apache2/server.crt:ro    -v $DIR/certs/$DOMAIN.key:/etc/apache2/server.key:ro    -p $WPORT:443   konradkleine/docker-registry-frontend:v2
Module auth_kerb disabled.
To activate the new configuration, you need to run:
service apache2 restart
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Enabling module socache_shmcb.
Enabling module ssl.
See /usr/share/doc/apache2/README.Debian.gz on how to configure SSL and create self-signed certificates.
To activate the new configuration, you need to run:
service apache2 restart
Enabling module rewrite.
To activate the new configuration, you need to run:
service apache2 restart
Stopping web server: apache2.
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using <IP_ADDRESS>. Set the 'ServerName' directive globally to suppress this message

@sshipway What does your browser's console log say?

I am also getting exactly same error as @sshipway, only the difference is  i am using self signed cert.

@kwk - when I look at the container log, I just get the lines in my previous post, nothing helpful.
From what @unknownbike says, I strongly suspect this problem is down to registry server certificate validation problems - if the frontend is validating the cert, then self-signed certs will not validate.  We've had a number of issues in the past with our Quovadis certs as well since their root CA is not in all of the supplied default CA stores.

@sshipway unless you post your browsers console log when making a request I cannot help you.

As I mentioned a couple of weeks ago, the logs say:
Module auth_kerb disabled.
To activate the new configuration, you need to run:
service apache2 restart
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Enabling module socache_shmcb.
Enabling module ssl.
See /usr/share/doc/apache2/README.Debian.gz on how to configure SSL and create self-signed certificates.
To activate the new configuration, you need to run:
service apache2 restart
Enabling module rewrite.
To activate the new configuration, you need to run:
service apache2 restart
[ ok ] Stopping web server: apache2.
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using <IP_ADDRESS>. Set the 'ServerName' directive globally to suppress this message
This is passing the crt and key using
sudo docker run -e ENV_DOCKER_REGISTRY_HOST=$DOMAIN -e ENV_DOCKER_REGISTRY_PORT=$RPORT -v $DIR/truststore:/tmp/truststore -e 'JAVA_OPTS=-Djavax.net.ssl.trustStore=/tmp/truststore -Djavax.net.ssl.trustStorePassword=password' -e ENV_USE_SSL=yes -v $DIR/certs/$DOMAIN.crt:/etc/apache2/server.crt:ro -v $DIR/certs/$DOMAIN.key:/etc/apache2/server.key:ro -p $WPORT:443 konradkleine/docker-registry-frontend:v2

@sshipway that is not the browser but the server's log

Ah - you meant the web browser's javascript console log.  Sorry for the misunderstanding.  Found it, and it looks helpful:
"Error: JSON.parse: unexpected character at line 1 column 1 of the JSON data
S@https://rancher.container.auckland.ac.nz:8443/scripts/vendor.9d7c0c79.js:3:24902
.query.transformResponse@https://rancher.container.auckland.ac.nz:8443/scripts/scripts.e2fe09fb.js:1:10921
ib@https://rancher.container.auckland.ac.nz:8443/scripts/vendor.9d7c0c79.js:4:27864
e@https://rancher.container.auckland.ac.nz:8443/scripts/vendor.9d7c0c79.js:4:28482
i@https://rancher.container.auckland.ac.nz:8443/scripts/vendor.9d7c0c79.js:5:14638
j/<@https://rancher.container.auckland.ac.nz:8443/scripts/vendor.9d7c0c79.js:5:14810
Wb/this.$get</n.prototype.$eval@https://rancher.container.auckland.ac.nz:8443/scripts/vendor.9d7c0c79.js:5:22198
Wb/this.$get</n.prototype.$digest@https://rancher.container.auckland.ac.nz:8443/scripts/vendor.9d7c0c79.js:5:20703
Wb/this.$get</n.prototype.$apply@https://rancher.container.auckland.ac.nz:8443/scripts/vendor.9d7c0c79.js:5:22467
f@https://rancher.container.auckland.ac.nz:8443/scripts/vendor.9d7c0c79.js:4:30093
r@https://rancher.container.auckland.ac.nz:8443/scripts/vendor.9d7c0c79.js:4:31954
nb/</v.onload@https://rancher.container.auckland.ac.nz:8443/scripts/vendor.9d7c0c79.js:5:460
" vendor.9d7c0c79.js:5:9130
"Error: a.config is undefined
b</<.responseError@https://rancher.container.auckland.ac.nz:8443/scripts/vendor.9d7c0c79.js:12:27033
i@https://rancher.container.auckland.ac.nz:8443/scripts/vendor.9d7c0c79.js:5:14638
j/<@https://rancher.container.auckland.ac.nz:8443/scripts/vendor.9d7c0c79.js:5:14810
Wb/this.$get</n.prototype.$eval@https://rancher.container.auckland.ac.nz:8443/scripts/vendor.9d7c0c79.js:5:22198
Wb/this.$get</n.prototype.$digest@https://rancher.container.auckland.ac.nz:8443/scripts/vendor.9d7c0c79.js:5:20703
Wb/this.$get</n.prototype.$apply@https://rancher.container.auckland.ac.nz:8443/scripts/vendor.9d7c0c79.js:5:22467
f@https://rancher.container.auckland.ac.nz:8443/scripts/vendor.9d7c0c79.js:4:30093
r@https://rancher.container.auckland.ac.nz:8443/scripts/vendor.9d7c0c79.js:4:31954
nb/</v.onload@https://rancher.container.auckland.ac.nz:8443/scripts/vendor.9d7c0c79.js:5:460
"

For clarity in the above:  I am running your UI on rancher.container.auckland.ac.nz:8443 (with HTTPS and a valid certificate) and the test repository is on rancher.container.auckland.ac.nz:5000 (also using SSL)

@sshipway Sorry but I cannot support such a scenario because I cannot reproduce it. Please confirm that you can run the registry and the frontend on your localhost first before moving on to external service providers. This should greatly minimize the possible causes for errors.

It runs if I disable the certificates and SSL.  I cannot run it on localhost as Im using a windows workstation with no docker, and have docker in a VM.  The registry works in isolation without issue.

Please consult https://github.com/kwk/docker-registry-frontend/tree/v2/example-setup to get help on how to setup a registry v2 with the frontend.

It is now working -- the problem was that I needed to have ENV_DOCKER_REGISTRY_USE_SSL=1 specified; I only had ENV_USE_SSL=yes and had confused the meaning of the two.  This of course explains why everything broke the moment I switched on SSL for the registry...
Now I just need to get the registry authentication working.  However that's another story...

@sshipway Currently I have the same problem. I am using the registry with a self-signed certificate and I want the registry-frontend to connect to it.
I already set the ENV_DOCKER_REGISTRY_USE_SSL=1 but still the frontend can not connect the registry. I am getting this 404 within the frontend logs:
"GET /v2/_catalog?n=20&last= HTTP/1.1" 404 418 "http://myHostName:8080/repositories/20" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0"
The browser tells me the same.
As this is a self-signed certificate I understand that the frontend must know the CA-certificate. But how can I tell the frontend which CA-cert to use?

@sshipway Please consult the example setup as a basis for your own setup and modify it as needed. But start from there to keep it simple.
Regarding your question: The frontend currently doesn't check the registry's certificate. See https://github.com/kwk/docker-registry-frontend/blob/v2/apache-site.conf#L43

Ok thanks for your reply. Good to know that the certificate is not checked at all.
My problem was that the frontend container didn't know the target registry's hostname at all. Adding an extra_hosts entry did solve my problem.

@broegner ah, I see. So it was a general DNS issue with docker. Thank you for sharing your workaround.


Update workflow readability and data storage paths

Update directory structure of search output products
Improve readability and use more "best practice" approach for Nextflow scripts
Some updates to documentation reflecting the above points

We need at least one "Approved" review, and it doesn't make sense for it to be me :sweat_smile:

For reference, I'm waiting on merging this until we also make the required changes in vcstools (which I think are mostly done).

Now that vcstools changes are passing and approved, we can merge this and deploy.


Profile matching no longer using full path but filename only

My image files are nested under specific sub folders (ex. frontGate/2021-04-06/17-17-31.jpg) but only have the time in the name (ex. 17-17-31.jpg).
I can see the full path in the log of the file watcher but on the interface I only get the file name. This makes it impossible to match a camera specific profile. In an older folder the full path was used so I'm not sure if this is no an option or this behavior changed? Or maybe I'm just doing something wrong ;)

This PR for the folder watches #https://github.com/akmolina28/webhook-folder-watcher/pull/3 gives the feature you want.


Update view-markdown-source selector again

Continue of https://github.com/sindresorhus/refined-github/pull/3282#issuecomment-652526963
I forgot that Element.querySelector uses depth-first pre-order traversal, so it will match the old selector sometiems.
Test: https://github.com/kidonng/cherry/blob/master/Bookmarklets.md

The nth-of-type is not stable as well because there may be other boxes:


Polaris support latest powershell version, like powershell 7.1

Hi,
May I ask whether Polaris support the latest powershell version 7.1?
Thanks
Eric Xin

Can i ask why you are asking for that? I use Polaris in Powershell Core 7.1 in a Linux Docker Container without any issues. Can you describe what for issue you had?


[Cloud] AWS Shire  - Define main components

Deployment type:

Pre-Built AMI's
Terraform
AWS

This will allow end users to utilize least amount of resources.
Deliverable:

Documentation of each component and why they were selected
Design

HELK Pre-Built AMI is configured and in testing states of Terraform

HELK tested and completed. Documentation on HELK AMI is done.

Project is up and working. Validated Terraform build script. Project can be found here: https://github.com/jsecurity101/mordor
Updated scripts and Terraform script.
Script will load 7 pre-built ami's. Login can be done on Apache Guacamole from the "Empire" box.

Everything is ready for review: https://github.com/Cyb3rWard0g/mordor/tree/mordor_aws/environment/shire/aws/terraform

let me know if this can be closed or not. thank you @jsecurity101


Update sljit_emit_enter float register count passing

In sljit the float register count passing has reworked, so I've updated it in Walrus.

This is done in #274


device flow codes

These codes add the device flow defined in https://tools.ietf.org/html/draft-ietf-oauth-device-flow-06. Added /oauth/device_authorize for device raising grant request, /oauth/user_verify for user grant privilege with user_code, and a device authorization granter to grant access token. Add also necessary modification to add these endpoints to the project.

@bwangfdu Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@bwangfdu Thank you for signing the Contributor License Agreement!


Non-existent release note is shown in PR description

Link to release note/change log was introduced in PR #907.
It needs some refinment since the below false-positive links are shown.
This one returns 404 so easy to address.
https://scalaz.github.io/CHANGELOG.md in https://github.com/balhoff/arachne/pull/19

This one returns 200, so a bit trickier 😦

http://groovy-lang.org/CHANGELOG.md in https://github.com/balhoff/arachne/pull/17

LOL at 404 pages that return 200. :-)

The initial URL redirects to the 404 page:
curl -i  http://groovy-lang.org/CHANGELOG.md
HTTP/1.1 302 Found
Date: Mon, 09 Sep 2019 21:09:39 GMT
Server: Apache/2.4.29 (Ubuntu)
Location: http://groovy-lang.org/404.html

OK, so should ignore redirection (3xx).

It is weird that
$> curl -i https://scalaz.github.io/CHANGELOG.md                                                                                release-note-detection ✱ ◼
HTTP/2 404
content-type: text/html; charset=utf-8
server: GitHub.com
etag: "5c1d106f-247b"
access-control-allow-origin: *
content-security-policy: default-src 'none'; style-src 'unsafe-inline'; img-src data:; connect-src 'self'
x-proxy-cache: MISS
x-github-request-id: 3A02:767C:40EF:5085:5D76C1C5
accept-ranges: bytes
date: Mon, 09 Sep 2019 21:19:03 GMT


Numeric properties removed from crate on load

In version 0.78.4, it appears that crate properties with numeric values are removed upon loading.
The problematic line seems to be this:
https://github.com/describo/crate-builder-component/blob/3f35803c7135fb405cbb4320c4ebed2388626d52/src/crate-builder/CrateManager/lib.ts#L107
Here, !isEmpty(entry) is always false if the entry is a numeric value.
Here's a small test in the Lodash playground:
https://playcode.io/1984273

Can you please put in small sample crate that I can write into the tests.

Sure:
{
    "@context": [
        "https://w3id.org/ro/crate/1.1/context",
        { "@vocab": "http://schema.org/" },
        { "txc": { "@id": "http://purl.archive.org/textcommons/terms#" } },
        { "@base": null },
        {
            "textualValue": "https://some.org/schema/text",
            "numericValue": "https://some.org/schema/number"
        }
    ],
    "@graph": [
        {
            "@id": "ro-crate-metadata.json",
            "@type": "CreativeWork",
            "conformsTo": { "@id": "https://w3id.org/ro/crate/1.1" },
            "about": { "@id": "./" }
        },
        {
            "@id": "./",
            "@type": ["Dataset"],
            "textualValue": "Some text",
            "numericValue": 123
        }
    ]
}


Can I install boxicon in dektop for photoshop?

download the svg and just import them in the photoshop, do you mean as shapes?


The most performance grid is mine

https://github.com/AlexeyBoiko/tbl-js
Joke.
Thank you for the example. I create another super performance data grid based on your ideas.

very cool! try adding more text into the grid - that is what is actually slow. chrome font rendering is like 90% of all the cpu work that chrome does on fast grid


Exception when converting int64 column to categorical then outputting to parquet

Reproduction code
import dask.dataframe as ddf
import pandas as pd
import fastparquet
pdf = pd.DataFrame({'A':[1,1,12,3,4]})
df = ddf.from_pandas(pdf,npartitions=1)
df.A = df.A.astype('category')
out = df.compute()
fastparquet.write('test.parq', out)
df.to_parquet('test')

Exception
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-12-2ecc8ae72890> in <module>()
----> 1 df.to_parquet('test')

~/miniconda3/lib/python3.6/site-packages/dask/dataframe/core.py in to_parquet(self, path, *args, **kwargs)
   1008         """ See dd.to_parquet docstring for more information """
   1009         from .io import to_parquet
-> 1010         return to_parquet(self, path, *args, **kwargs)
   1011
   1012     def to_csv(self, filename, **kwargs):

~/miniconda3/lib/python3.6/site-packages/dask/dataframe/io/parquet.py in to_parquet(df, path, engine, compression, write_index, append, ignore_divisions, partition_on, storage_options, compute, **kwargs)
    634
    635     if compute:
--> 636         out.compute()
    637         return None
    638     return out

~/miniconda3/lib/python3.6/site-packages/dask/base.py in compute(self, **kwargs)
    133         dask.base.compute
    134         """
--> 135         (result,) = compute(self, traverse=False, **kwargs)
    136         return result
    137

~/miniconda3/lib/python3.6/site-packages/dask/base.py in compute(*args, **kwargs)
    331     postcomputes = [a.__dask_postcompute__() if is_dask_collection(a)
    332                     else (None, a) for a in args]
--> 333     results = get(dsk, keys, **kwargs)
    334     results_iter = iter(results)
    335     return tuple(a if f is None else f(next(results_iter), *a)

~/miniconda3/lib/python3.6/site-packages/dask/threaded.py in get(dsk, result, cache, num_workers, **kwargs)
     73     results = get_async(pool.apply_async, len(pool._pool), dsk, result,
     74                         cache=cache, get_id=_thread_get_id,
---> 75                         pack_exception=pack_exception, **kwargs)
     76
     77     # Cleanup pools associated to dead threads

~/miniconda3/lib/python3.6/site-packages/dask/local.py in get_async(apply_async, num_workers, dsk, result, cache, get_id, rerun_exceptions_locally, pack_exception, raise_exception, callbacks, dumps, loads, **kwargs)
    519                         _execute_task(task, data)  # Re-execute locally
    520                     else:
--> 521                         raise_exception(exc, tb)
    522                 res, worker_id = loads(res_info)
    523                 state['cache'][key] = res

~/miniconda3/lib/python3.6/site-packages/dask/compatibility.py in reraise(exc, tb)
     58         if exc.__traceback__ is not tb:
     59             raise exc.with_traceback(tb)
---> 60         raise exc
     61
     62 else:

~/miniconda3/lib/python3.6/site-packages/dask/local.py in execute_task(key, task_info, dumps, loads, get_id, pack_exception)
    288     try:
    289         task, data = loads(task_info)
--> 290         result = _execute_task(task, data)
    291         id = get_id()
    292         result = dumps((result, id))

~/miniconda3/lib/python3.6/site-packages/dask/local.py in _execute_task(arg, cache, dsk)
    269         func, args = arg[0], arg[1:]
    270         args2 = [_execute_task(a, cache) for a in args]
--> 271         return func(*args2)
    272     elif not ishashable(arg):
    273         return arg

~/miniconda3/lib/python3.6/site-packages/dask/dataframe/io/parquet.py in _write_partition_fastparquet(df, fs, path, filename, fmd, compression, partition_on)
    170         with fs.open(fs.sep.join([path, filename]), 'wb') as fil:
    171             rgs = make_part_file(fil, df, fmd.schema, compression=compression,
--> 172                                  fmd=fmd)
    173     return rgs
    174

~/miniconda3/lib/python3.6/site-packages/fastparquet/writer.py in make_part_file(f, data, schema, compression, fmd)
    604     with f as f:
    605         f.write(MARKER)
--> 606         rg = make_row_group(f, data, schema, compression=compression)
    607         if fmd is None:
    608             fmd = parquet_thrift.FileMetaData(num_rows=len(data),

~/miniconda3/lib/python3.6/site-packages/fastparquet/writer.py in make_row_group(f, data, schema, compression)
    592                 comp = compression
    593             chunk = write_column(f, data[column.name], column,
--> 594                                  compression=comp)
    595             rg.columns.append(chunk)
    596     rg.total_byte_size = sum([c.meta_data.total_uncompressed_size for c in

~/miniconda3/lib/python3.6/site-packages/fastparquet/writer.py in write_column(f, data, selement, compression)
    460                 num_values=len(data.cat.categories),
    461                 encoding=parquet_thrift.Encoding.PLAIN)
--> 462         bdata = encode['PLAIN'](pd.Series(data.cat.categories), selement)
    463         bdata += 8 * b'\x00'
    464         l0 = len(bdata)

~/miniconda3/lib/python3.6/site-packages/fastparquet/writer.py in encode_plain(data, se)
    245     out = convert(data, se)
    246     if se.type == parquet_thrift.Type.BYTE_ARRAY:
--> 247         return pack_byte_array(list(out))
    248     else:
    249         return out.tobytes()

~/miniconda3/lib/python3.6/site-packages/fastparquet/speedups.pyx in fastparquet.speedups.pack_byte_array (fastparquet/speedups.c:2810)()

TypeError: expected list of bytes

This exception comes from fastparquet but does not seem to be a fastparquet error as when you convert to pandas first and output to parquet without using dask it works fine.

This is because we encode unknown categoricals using a string flag, which means that unknown categoricals of non-string dtypes will appear to be object dtype categoricals until they're made known (using e.g. df.A.cat.as_known()). This representation made sense because:

Categoricals are almost always used for string dtypes
Older versions of pandas had no other easy way to include the missing/non-missing metadata on the categorical series dtype.
Known/unknown status propogates nicely.

With the new CategoricalDtype implementation in pandas, there might be a better known/unknown representation now. cc @TomAugspurger for thoughts.
For now, if you makes sure all categoricals are known, then everything works fine.
In [1]: df.A = df.A.cat.as_known()

In [2]: df.to_parquet('test2.parq')

With the new CategoricalDtype implementation in pandas, there might be a better known/unknown representation now.

Since afaict no pandas object can have dtype pd.api.types.CategoricalDtype() (with categories == None), that might make a good representation. However, the type doesn't seem to expose a way to designate the underlying dtype for the categorical:
In [47]: s = pd.Series([1, 3, 5]).astype('category')

In [48]: s.dtype
Out[48]: CategoricalDtype(categories=[1, 3, 5], ordered=False)

In [49]: s.dtype.base  # what is base?
Out[49]: dtype('O')

In [50]: print(s.dtype.subdtype)  # what is subdtype??
None

Both of these attributes are class attributes (that are never changed) that we could set on an instance to make note, but I'm not sure what they mean, and they might not propagate through computations the same as our current flag.

Since afaict no pandas object can have dtype pd.api.types.CategoricalDtype()

This is correct. Users can create instances of CategoricalDtype with categories=None, but as any object with a CategoricalDtype .dtype will cause the actual categories in .dtype to be inferred from the values in the object.

However, the type doesn't seem to expose a way to designate the underlying dtype for the categorical

Yes, that seems correct (and unfortunate). The typical way is to use .categories.dtype, but that isn't an option here.


Cast AI setup failing

HI Team,
We are seeing failure while setting up castai-agent as :

k logs -n castai-agent castai-agent-bc568646c-dpngq
time="2023-02-08T13:39:13Z" level=info msg="running agent version: GitCommit=\"0ebd8d1fa65524cebda49b791a4e9e4a1fceb0b2\" GitRef=\"refs/tags/v0.42.1\" Version=\"v0.42.1\"" version=v0.42.1
time="2023-02-08T13:39:13Z" level=info msg="platform URL: https://api.cast.ai" version=v0.42.1
time="2023-02-08T13:39:13Z" level=info msg="starting healthz on port: 9876" version=v0.42.1
time="2023-02-08T13:39:13Z" level=error msg="agent stopped with an error: healthz server: http: Server closed" version=v0.42.1
time="2023-02-08T13:39:13Z" level=fatal msg="agent failed: getting provider: configuring aws client: getting instance region: EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: EC2MetadataError: failed to make EC2Metadata request\nrequest blocked by allow-route-regexp \"^$\": /latest/dynamic/instance-identity/document\n\n\tstatus code: 404, request id: " version=v0.42.1

Best Regards
Ganesh Kumar

Hi @ganesh-kumarmt, sorry for late reply. The metadata endpoint access is optional. You can override all the properties that we discover through the metadata by setting the appropriate environment variables. We have a short doc describing your situation here: https://docs.cast.ai/docs/troubleshooting#your-cluster-does-not-appear-in-the-connect-cluster-screen
In short, add these environment variables to the castai-agent deployment:
- name: EKS_ACCOUNT_ID
  value: "000000000000"    # your aws account id
- name: EKS_REGION
  value: "eu-central-1"    # your eks cluster region
- name: EKS_CLUSTER_NAME
  value: "staging-example" # your eks cluster name

Also, the agent needs access to the AWS EC2 API which it uses to correctly identify node life cycle (spot or on-demand). If you have disabled EC2 auth by default for pods, then you will need to provide the agent with a way to authenticate to the AWS EC2 service. It uses the official AWS SDK so any of the AWS supported auth mechanisms should work: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html
FYI: AWS EC2 API access is optional but if you do not provide it, then we have no surefire way to determine the life cycle of the node and if you're using spots, then we will treat them as on-demand.

Thanks @saumas
we are good with Setup Now


no REI compat for fabric

when i use the latest version with rei and mythic metals, no recipes appear in rei for the metals.

There is a lot of missing information here.

Are you using a modpack? If yes, which one?
Are you sure you have installed REI and JEI?
Are there any errors in your log?

In general, please send us your latest.log so we can have a stab at finding the problem
Cheers

Considering REI works fine in our testing, and the lack of a response, I see no reason to keep this issue open.
If you are still experiencing issues with REI, please provide more information as described above.


Allow combining Get-Random -Count with (implied) -Minimum / -Maximum to create multiple random values

Summary of the new feature/enhancement
Currently, you can only obtain multiple values with -Count if you supply an input collection to select from.
However, sometimes you want to generate multiple random values from a given range, such as "generate 3 random values in the range 0 to 1":
# WISHFUL THINKING - currently, you have to call Get-Random in a *loop*.
PS> Get-Random -Maximum 1.0 -Count 3
0.00964209344687038
0.399765062797705
0.589964029188251

Proposed technical implementation details
Allow combining parameter -Count with (implied) -Minimum and /or -Maximum as well, in which case -Count simply specifies how many values in the range to generate.

What output type is expected? Int? Double?

Whatever the input type for mininum/maximum is, is it not? I believe Get-Random dynamically determines that based upon input.