window 10 cmd run docker -v error

panic: Invalid standard handle identifier:<PHONE_NUMBER>
goroutine 1 [running]:
github.com/docker/cli/vendor/github.com/Azure/go-ansiterm/winterm.GetStdFile(0xfffffff6, 0xc0001e4588, 0x154)
/go/src/github.com/docker/cli/vendor/github.com/Azure/go-ansiterm/winterm/ansi.go:173 +0x1f3
github.com/docker/cli/vendor/github.com/moby/term/windows.NewAnsiReader(0xfffffff6, 0xc00000000f, 0x20d46c0)
/go/src/github.com/docker/cli/vendor/github.com/moby/term/windows/ansi_reader.go:34 +0x36
github.com/docker/cli/vendor/github.com/moby/term.StdStreams(0xc000096340, 0xc0004abeb8, 0x1, 0x1, 0x0, 0x0)
/go/src/github.com/docker/cli/vendor/github.com/moby/term/term_windows.go:75 +0x1eb
github.com/docker/cli/cli/command.NewDockerCli(0x0, 0x0, 0x0, 0x19b926c, 0x1b4f0a0, 0xc000113e60)
/go/src/github.com/docker/cli/cli/command/cli.go:473 +0x1a7
main.main()
/go/src/github.com/docker/cli/cmd/docker/docker.go:291 +0x4b

Hello!
Docker has been working quite okay on my Windows 10 until now. I have been receiving the above output each time I run a "docker run -d -p 80:80 docker/getting-started" command on CMD. I uninstalled, downloaded and installed the latest version but still having same issue. I have reached out to several communities for solution, but didn't find anything helpful.
Any help to resolve this issue will be much appreciated.

I encountered the same problems on CMD. However, I have tried running the command in other terminals such as Git Bash and Cygwin64 Terminal, it works.

Looks like this is an issue with the docker cli; this issue tracker is for the docker documentation only.
Let me transfer this ticket to the https://github.com/docker/cli repository

Looks like this is an issue with the docker cli; this issue tracker is for the docker documentation only.
Let me transfer this ticket to the https://github.com/docker/cli repository


Allow to control desired hp/mp column

Reopening this PR since I'm not sure if #42 is going to be merged or not. (I couldn't reopen the existing PR since I force pushed due to rebase)
The changes in this PR are pretty small and are useful to my runs. (Never getting only hp-pots or only mana-pots)

Hi, I like the change. It's helpful and simple! Yet, I would probably choose to bring forward the full blown belt manager. Hope you understand.


error in calculating the TI error?

Hi,
For TI only simulation, the calculation exits with "WARNING: Found all 0 in input data", and in the alchemical_analysis.py there is one line checking of all zeros. So I wonder if this line below:
all_zeros = not numpy.any(dhdlt) and not numpy.any(u_klt)
should be changed to:
all_zeros = not numpy.any(dhdlt) or not numpy.any(u_klt)
so when only dhdlt exists, the code still calculate the variance of TI, make plots etc?

That sounds right. Do a PR? Thanks for pointing this out.

Great, yes, I can make a pull request about this. Could you give me the permission to commit? Thx!

Done.

Hi David, thanks for the permission, I made a pull request for this issue and tested on my dataset. I realized that there is a typo in the first comments in this string.
To be clear, the original code is all_zeros = not numpy.any(dhdlt) or not numpy.any(u_klt) and the update changes this line to all_zeros = not numpy.any(dhdlt) and not numpy.any(u_klt).
The logic in the previous comments stays. For the TI only dataset, in the updated code numpy.any(dhdlt) = True, and numpy.any(u_klt) = False, and so all_zeros = not numpy.any(dhdlt) and not numpy.any(u_klt) will be False which is what we want -- we need the all_zeros to be False to avoid the exits. Sorry for the confusing in the previous comments...

Resolved by #103


Score not appearing correctly

This also happens for example where it should appear the RPM under a spinner

what skin is being used for interface?

Varvalian 2019-06-25

please try again, this should be fixed!


Add support for super-family checks!

Update vertical metrics check to consider values across sibling families
Add a simple & merely informative check that lists detected sibling family directories

Description
This pull request addresses the problems described at issue #1487

@felipe: This scares me! It feels like the kind of thing that makes automation with the dashboard really really hard: which set of sibling-family files are to include (upstream, master, production) for Font Bakery? The dispatcher creates a PR for a family at a time. Please lets discuss this. I'm just posting here as a reminder.

Sure! I am fully aware that we have dashboard concerns to address. I've read once more your comments from a couple years ago here on the issue tracker. I just think that we were suffering from "paralysis by analysis" here. So I moved on and implemented the basic, most simple implementation possible.
Here are the good aspects of this initial implementation:

It is simple
It includes one font file lookup method but can be easily extended to add other strategies to find font files
If needed we can safely add command-line options (or config files) for providing explicit directories where fontbakery should look for sibling families
The dashboard will have to solve the problem of collecting all files of sibling families in a single container regardless of what we do at the fontbakery-cli level
The current implementation probably works nicely with @m4rc1e's TravisCI script for google/fonts (I have not tested that yet, but it is designed with that use case in mind)
The behaviour of these super-family conditions is absolutely equivalent to family-wide conditions when only a single-family is being checked, so we're also safe here.
This implementation follows your suggestion (from a couple years ago here: https://github.com/googlefonts/fontbakery/issues/1609#issuecomment-335616088) not to mess with the check runner internals and only use the conditions system to deal with the super-family semantics, keeping the check-runner agnostic.

Some quick responses.

It is simple

It's simplistic

It includes one font file lookup method but can be easily extended to add other strategies to find font files

That's working, but it leads to many idiosyncratic, different lookup method implementations. If only one method is needed, that's not so bad. How do you extend it? How do you know which strategy to use? Can it be extended externally or does it have to take place in the font bakery code directly?

I needed we can safely add command-line options ...

Options and configuration is probably all right, a default place can only be in a vendor profile, not in a general implementation.

The dashboard will have to solve the problem of collecting all files of sibling families in a single container regardless of what we do at the fontbakery-cli level

That's the part that troubles me, it's not a "good" point, it's a PITA.

How do you extend it?

Send a PR.

Can it be extended externally or does it have to take place in the font bakery code directly?

Send a PR to feed it with directories provided on the command line or config files or any other external sources of info, etc.

a default place can only be in a vendor profile, not in a general implementation.

This implementation is indeed in a vendor profile, the googlefonts one. And the single font file lookup strategy currently implemented is exactly what the google/fonts repo needs.

That's the part that troubles me, it's not a "good" point, it's a PITA.

It is a necessary pain. We did nothing about checking super-families in the past couple years. The issue needs to be addressed and this was my first step. I don't want to wait a couple more years.


Map does not load

https://github.com/Esri/arcgis-runtime-samples-ios/blob/master/arcgis-ios-sdk-samples/Edit data/Edit and sync features/EditAndSyncFeaturesViewController.swift
EditAndSyncFeaturesViewController does not load the map and if I try to make the selection the app gets crashed.

Hi, could you provide more information? Thanks.
Platform Information

Version of SDK:
Version of iOS:
Is it from the AppStore version or your own build:
Device:

Steps to Reproduce

Version of SDK: 100.9
Version of iOS: 14.2
Is it from the AppStore version or your own build; which branch you are using: I am using this sample only.
Device: iPhone XS, iPhone X, Simulator.
This is my layer url: https://services.arcgis.com/455ANVnHBozNhUJX/arcgis/rest/services/FACILITIES/FeatureServer/0

Thanks for the details. I tried with the feature service URL you provided above, and it seems not to support geodatabase sync operation. See the Supported Operations section in the bottom of the page. Could you verify that?
In terms of the map's crashing issue: this sample loads the basemap from a local tile package SanFrancisco.tpk here. Are you including this tile package in your project?
You could also create and load your own tile package as the basemap, or use one of the Esri basemaps for testing purposes. (e.g. let map = AGSMap(basemap: .streets())).
Let me know if this is your case, and if not we can try to figure out other problems. 🙂

Close due to inactivity.


Use JSON serializer (instead of thrift) over http.

It now uses JSON over HTTP to send traces to the collector.
Solves #42

coool


Verk manager

This is a prerequisite to finish the work started on #127
The PR adds Verk.Manager to control the state of queues. When a queue is added or removed, Verk.Manager will be the single place of control.
When we finally implement pause/resume, Verk.Manager will provide the state (running or paused). So if any queue supervisor restarts, the Manager will provide the initial state.

Coverage increased (+1.6%) to 88.529% when pulling aa9c3edeccf662f05ac1b87b87697b556cf092b5 on verk-manager into 1145e2a444e7305a8f8714a8d2c4993c4afe261c on master.

Coverage increased (+1.6%) to 88.529% when pulling aa9c3edeccf662f05ac1b87b87697b556cf092b5 on verk-manager into 1145e2a444e7305a8f8714a8d2c4993c4afe261c on master.


[Question] [ github related ]

Please explain to me the concept of merging pull requests and merging them with the cheat.
I have tried to git clone pull requests into my desktop but I don't understand how to merge them

I searched it up but I can't figure it out

as an example im trying to merge


Linting Node_Modules Folder

Love using VSCode, however, in a recent Laravel project I installed a few dev tools with npm and once I have the project open in vscode my errors and warning panel shows 99+ for both and shortly after spins up the fan. The computer is a spec'ed out mbp 2015 model from 2016, so I am doubting the issue is hardware related. Curious if there is a way to ignore the node_modules folder in the linter as I do not plan on using any of the tools i installed in the local version for the remote version.

VSCode Version:1.14.2
OS Version: OSX 10.12.6

Which linting extension are you using?

I have js standard lint, python linter, jshint, and eslint. Other than that
for php I have the crane extension. My vscode setup is geared towards
angular, vue and laravel. Ony saw it start to lint node_modules in laravel
though.
I also had styelint installed at some point.
On Aug 1, 2017 21:55, "Matt Bierner"<EMAIL_ADDRESS>wrote:

Which linting extension are you using?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/vscode/issues/31881#issuecomment-319545967,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AXJrhAIE5fKm3oubzsGqIpth5ZgsgYg5ks5sT9cRgaJpZM4Oqd9E
.

Please try filing this issue against whatever linter is going into the node_modules folder. The files.exclude setting should prevent node_modules from being picked up, but the individual linters may require different configurations to exclude a folder


Use Expiration value from MFA credentials file

We currently check the modification time of the MFA credentials file to determine if the session has expired. This generally works well, but assumes a 12 hour expiration (the CLI's default).
The MFA credentials file contains the actual Expiration value. We could start using that instead. This would accommodate future changes to aws-mfa that would allow custom expiration settings. AWS supports anything from 15 minutes to 36 hours.

It would be nice to have an option to not store the credentials into a file at all, and to keep them only in the shell environment. For that use-cases it would be good to store the expiry in an additional environment variable.

I've implemented this in my fork: https://github.com/ksperling/aws-mfa/commit/ed0a5dcb126020ada9eb33d047867a663152be17
I haven't created a PR at this time as it's on top of some other changes that have unmerged PRs


TS 4.7.1-rc cannot resolve default CJS or ESM exports with module nodenext.

Bug Report
In React development the NPM packages classnames and clsx, are extremely popular, but TS 4.7.1-rc cannot resolve their default export:
import clsx from "clsx";
import classNames from "classnames";

console.log(clsx("a", "b", "c"));
console.log(classNames("a", "b", "c"));

Results in the error(s):
This expression is not callable.
  Type 'typeof import("...")' has no call signatures.ts(2349)

Looking at the package.json files for both the clsx and classnames packages, they each specify the types property.
clsx/package.json
  "module": "dist/clsx.m.js",
  "main": "dist/clsx.js",
  "types": "clsx.d.ts",

clsx/clsx.d.ts
...
declare const clsx: (...classes: ClassValue[]) => string;
export default clsx;

classnames/package.json
  "main": "index.js",
  "types": "./index.d.ts",

classnames/index.d.ts
export default function classNames(...args: Argument[]): string;

🔎 Search Terms
nodenext, node16, default export, expression is not callable
🕗 Version & Regression Information
Exists in TS 4.7.0-beta, 4.7.1-rc and 4.8.0-dev.20220520.

I was unable to test this on prior versions because nodenext is a new feature.

⏯ Playground Link
Playground link - N/A requires external dependencies.
Sample repo - https://github.com/scott-lc/tsc-issue-220520
💻 Code
import clsx from "clsx";
import classNames from "classnames";

console.log(clsx("a", "b", "c"));
console.log(classNames("a", "b", "c"));

tsconfig.json
{
  "compilerOptions": {
    "esModuleInterop": true,
    "alwaysStrict": true,
    "module": "NodeNext",
    // "moduleResolution": "NodeNext",   # works with `node` but not `nodenext`
    "target": "ESNext"
  },
  "include": ["./index.ts"]
}

Also see this repo.
🙁 Actual behavior
Code fails to compile with module: nodenext.  Works fine pre 4.7 with module: esnext.
🙂 Expected behavior
nodenext module resolution to not require changes to popular third-party NPM code.

Possibly related to #48845

Thanks @andrewbranch.  Similar to what you mentioned here, I think the community will need to open PRs with these individual libraries to update their types.

To those that run into this issue, I'd like to give a shoutout to In the interim @JacobLey who published  default-import as an interim workaround as described here.

On my side, I hacked my way by redefining the import explicitly:
import _useSWR, {  SWRHook } from 'swr';

const useSWR = _useSWR as unknown as  SWRHook

This issue can still be reproduced with TypeScript 5.1.3.


internal/restic: Handle EINVAL for xattr on Solaris

What does this PR change? What problem does it solve?
On Solaris, pkg/xattr operations can return EINVAL instead of the ENOATTR and ENOTSUP that we already suppress.
I also make the errors a bit less verbose by not prepending the operation, since pkg/xattr already does that. Old errors looked like
Listxattr: xattr.list /myfiles/.zfs/snapshot: invalid argument

Was the change previously discussed in an issue or on the forum?
Fixes #3839, I hope. @creaky, would you please test this?
Checklist

[x] I have read the contribution guidelines.
[x] I have enabled maintainer edits.
[ ] I have added tests for all code changes.
[ ] I have added documentation for relevant changes (in the manual).
[ ] There's a new file in changelog/unreleased/ that describes the changes for our users (see template).
[x] I have run gofmt on the code in all commits.
[x] All commit messages are formatted in the same style as the other commits in the repo.
[x] I'm done! This pull request is ready for review.

Tested and it resolved the issue. A successful backup and restoration was achieved.


feat: add storage

[x] define the bill struct
[x] add storage module
[x] generate root hash for bill and mutation
[x] support bill for mutation
[ ] refactor kvstore app

This PR exceeds the recommended size of 1200 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

This PR exceeds the recommended size of 1200 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

This PR exceeds the recommended size of 1200 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

This PR exceeds the recommended size of 1200 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.


v0.6.0 has hardcoded default seed of<PHONE_NUMBER>

I have noticed that my responses are not random anymore with latest package version.
The behavior has been changed, instead of int -1 which previously meant random, now it is uint with hard-coded<PHONE_NUMBER> as can be seen at https://github.com/SciSharp/LLamaSharp/blob/b72b2535495ae7fd7b8e64aea1cb572df77750e2/LLama/Common/ModelParams.cs#L31

Thank you for reporting us it. Maybe it's from a previous PR because of debugging in local environment. @martindevans Could you please take a look of this? Maybe we should add a patch version to fix it.

I'll open up a PR to fix that right away!


config not working for Influxdb file system path

Environment
OS: windows 10
influxdb: 2.7.5 oss
Problem
I have create a config.json in same folder with influxd.exe, and specific the path of bolt, engine and sqlite, it still ignore the config file and create new  file system under %USERPROFILE%  in windows.

I use the config.json download from http://localhost:8086/api/v2/config, and it's structure is not correct.


Spark does not remove all resource during remove-application

Spark charm does not remove all resources and this blocks it from being installed again.
To reproduce:
juju deploy spark-k8s spark
juju remove-application spark-k8s
juju deploy spark-k8s spark

Juju status:
ubuntu@ip-172-31-31-10:~$ juju status
Model     Controller  Cloud/Region        Version  SLA          Timestamp
kubeflow  micro       microk8s/localhost  2.9.31   unsupported  12:57:58Z

App    Version  Status   Scale  Charm      Channel  Rev  Address  Exposed  Message
spark           waiting    0/1  spark-k8s  stable     1           no       installing agent

Unit     Workload  Agent       Address  Ports  Message
spark/1  waiting   allocating                  installing agent

Just to note it seems to do some weird stuff with a webhook, so that when you remove the spark-k8s application it then prevents anything from deploying in the namespace.

What happens is that the spark workload creates a MutatingWebhook (spark-config) that points back to the spark workload's deployment as the backend for the webhook.  When we juju remove-application spark, the workload's deployment (eg: webhook's backend) is removed, but the webhook itself is not (see this bug about juju not cleaning up resources).
Once in this state, trying to create any pod in the model's namespace (ex: kubectl run netshoot --rm -i --tty --image nicolaka/netshoot -- /bin/bash) will get the error: Error from server (InternalError): Internal error occurred: failed calling webhook "webhook.sparkoperator.k8s.io": Post "https://spark.fix-spark.svc:443/webhook?timeout=30s": service "spark" not found because the webhook has no backend..  This also blocks new juju deploy ...` calls in the model, leaving any new application stuck "installing agent".

I tried adding a remove hook in the current podspec charm to remove the offending webhook, but even after deploying with --trust we do not get permission to do this.  I received the following exception:
application-spark-k8s: 14:06:24 INFO unit.spark-k8s/4.juju-log mutatingwebhookconfigurations.admissionregistration.k8s.io "broken-webhook" is forbidden: User "system:serviceaccount:kubeflow:spark-k8s-operator" cannot delete resource "mutatingwebhookconfigurations" in API group "admissionregistration.k8s.io" at the cluster scope

I'm not sure if this is because podspec charms should not be able to use trust and cannot ever have this permission, or if there's just a bug in trusting podspec charms.

--trust is supposed to work for podspec, so this is a bug in Juju that likely will not be addressed as they're focusing efforts on other tasks.  Easiest way for us to resolve this is to rewrite the charm using pebble/sidecar.


chore(main): release 1.1.1

:robot: I have created a release beep boop
1.1.1 (2023-08-18)
Bug Fixes

修改 auto merge action name (e33c264)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/lwsgh/release-please-example/releases/tag/v1.1.1 :sunflower:


docker: Error response from daemon: No command specified.

Environment: macbook-pro

Jib version: 2.6.0
Build tool: gradle-5.6.4-all.zip
OS: macOS Catalina 10.15.7

Description of the issue:
after gradle jib success and docker pull success and docker images can find success,
run the docker image error
docker run -d --publish 5388:5388 --detach --name spingcloud-discovery-eureka-server krmao/spingcloud-discovery-eureka-server
docker: Error response from daemon: No command specified.
See 'docker run --help'.

Expected behavior:
run success and I can visit localhost:5388
Steps to reproduce:

remote image is already exists
git clone https://github.com/krmao/template/tree/master/service/springcloud/components/springcloud-discovery/eureka-server
./gradlew :eureka-server:jib
docker pull krmao/spingcloud-discovery-eureka-server
or just execute command './gradlew :eureka-server:jibDockerBuild' without step 3 and 4
docker run -d --publish 5388:5388 --detach --name spingcloud-discovery-eureka-server krmao/spingcloud-discovery-eureka-server

jib-gradle-plugin Configuration:
buildscript {
    repositories {
        maven { url "https://plugins.gradle.org/m2/" }
    }
    dependencies {
        classpath "gradle.plugin.com.google.cloud.tools:jib-gradle-plugin:2.6.0"
    }
}

def finalName= 'spingcloud-discovery-eureka-server'
def finalPort = "5388"
def finalMainClass = 'com.smart.springcloud.discovery.eurekaserver.EurekaServerApplication'

// 参考文档 https://www.cnblogs.com/edisonchou/p/springboot_on_docker_foundation.html
// 参考文档 https://spring.io/guides/gs/spring-boot-docker/
// 错误参考 https://www.jianshu.com/p/b34dbb643a70
// 下载镜像 docker pull krmao/spingcloud-discovery-eureka-server
// 运行容器 docker run -d --publish 5388:5388 --detach --name spingcloud-discovery-eureka-server krmao/spingcloud-discovery-eureka-server
// -d, --detach=false            Run container in background and print container ID(后台运行)
// docker exec -it mysqltest /bin/bash
apply plugin: "com.google.cloud.tools.jib"
jib {
    from {
        image = 'java:8'                        // 标签为8的java镜像版本 docker images java
    }
    to {
        image = "docker.io/krmao/${finalName}"  // 上传后在 https://hub.docker.com/repositories 中查看
        tags = ['0.0.1', 'latest']
        auth {
            username = 'krmao'
            password = 'D'
        }
    }
    container {
        creationTime = 'USE_CURRENT_TIMESTAMP'
        jvmFlags = ['-Xms512m', '-Xdebug', '-Dfile.encoding=utf-8', '-Duser.timezone=Asia/Shanghai']
        mainClass = finalMainClass
        args = []
        ports = [finalPort]
    }
    dockerClient {
        executable = "/usr/local/bin/docker"
    }
}

war {
    archiveName "${finalName}.war"
}

dependencies {
    implementation("org.springframework.cloud:spring-cloud-starter-netflix-eureka-server")
}

Log output
docker run -d --publish 5388:5388 --detach --name spingcloud-discovery-eureka-server krmao/spingcloud-discovery-eureka-server
docker: Error response from daemon: No command specified.
See 'docker run --help'.

Additional Information

gradle bootRun is everything ok and can visit localhost:5388 on chrome
local docker damon envirenment ok

Hi @krmao,
The fundamental issue is that the image doesn't specify a command (container entrypoint, which is a command to launch some process) to run.
$ docker inspect krmao/spingcloud-discovery-eureka-server | grep Entrypoint
            "Entrypoint": null,
            "Entrypoint": null,

Note that the base image on Docker Hub (java:8) doesn't specify it either.
$ docker inspect java:8 | grep Entrypoint
            "Entrypoint": null,
            "Entrypoint": null,

In your case, Jib is simply inheriting the entrypoint of java:8, because your eureka-server project is configured as a WAR project. A WAR is to be deployed to an application server or a Servlet engine (such as Tomcat and Jetty). Obviously, java:8 is just a JDK image and doesn't have such an engine.
You could use a Jetty or Tomcat base image and configure Jib properly according to their server requirements, but since this is a Spring Boot app, I highly recommend moving away from WAR. Spring Boot apps already embed a Servlet engine. I was able to make this work with the following changes by not applying the WAR plugin. (Note this is part of the whole changes, and you'll need to apply the WAR Plugin in other sub-projects to build them successfully. However, I highly recommend migrating from WAR for those projects as well.)
diff --git a/service/springcloud/build.gradle b/service/springcloud/build.gradle
index 74d9a6c2..6288a32b 100644
--- a/service/springcloud/build.gradle
+++ b/service/springcloud/build.gradle
@@ -52,7 +52,6 @@ subprojects {
     apply plugin: 'kotlin-spring'
     apply plugin: 'java'
     apply plugin: 'eclipse'
-    apply plugin: 'war'
     apply plugin: 'org.springframework.boot'
     apply plugin: 'io.spring.dependency-management'
     sourceCompatibility = JavaVersion.VERSION_1_8
diff --git a/service/springcloud/components/springcloud-discovery/eureka-server/build.gradle b/service/springcloud/components/springcloud-discovery/eureka-server/build.gradle
index c008e08e..79fee6fd 100644
--- a/service/springcloud/components/springcloud-discovery/eureka-server/build.gradle
+++ b/service/springcloud/components/springcloud-discovery/eureka-server/build.gradle
@@ -1,6 +1,6 @@
 def finalName= 'spingcloud-discovery-eureka-server'
 def finalPort = "5388"
-def finalMainClass = 'com.smart.springcloud.discovery.eurekaserver.EurekaServerApplication'
+//def finalMainClass = 'com.smart.springcloud.discovery.eurekaserver.EurekaServerApplicationKt'

 // 参考文档 https://www.cnblogs.com/edisonchou/p/springboot_on_docker_foundation.html
 // 参考文档 https://spring.io/guides/gs/spring-boot-docker/
@@ -25,8 +25,6 @@ jib {
     container {
         creationTime = 'USE_CURRENT_TIMESTAMP'
         jvmFlags = ['-Xms512m', '-Xdebug', '-Dfile.encoding=utf-8', '-Duser.timezone=Asia/Shanghai']
-        mainClass = finalMainClass
-        args = []
         ports = [finalPort]
     }
     dockerClient {
@@ -34,10 +32,6 @@ jib {
     }
 }

-war {
-    archiveName "${finalName}.war"
-}
-
 dependencies {
     implementation("org.springframework.cloud:spring-cloud-starter-netflix-eureka-server")
 }

See the output:
$ ./gradlew eureka-server:clean
...
BUILD SUCCESSFUL in 478ms
1 actionable task: 1 executed
$ ./gradlew -Djib.to.image=foo -Djib.dockerClient.executable=$(which docker) eureka-server:jibDockerBuild
...
> Task :eureka-server:jibDockerBuild
...
Container entrypoint set to [java, -Xms512m, -Xdebug, -Dfile.encoding=utf-8, -Duser.timezone=Asia/Shanghai, -cp, /app/resources:/app/classes:/app/libs/*, com.smart.springcloud.discovery.eurekaserver.EurekaServerApplicationKt]

Built image to Docker daemon as foo, foo:0.0.1, foo
...
BUILD SUCCESSFUL in 6s
3 actionable tasks: 3 executed
$ docker run --rm -p5388:5388 foo
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.3.3.RELEASE)

Nov 12, 2020 6:54:11 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Tomcat]
Nov 12, 2020 6:54:11 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet engine: [Apache Tomcat/9.0.37]
Nov 12, 2020 6:54:11 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring embedded WebApplicationContext
Nov 12, 2020 6:54:12 AM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.19.1 03/11/2016 02:08 PM'

Then from another terminal,
$ curl localhost:5388
<!doctype html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
  <head>
    <base href="/">

Some minor notes:

You don't need to set jib.container.mainClass, since Jib can infer the only main class. However, if you do want to set it, it should be ....EurekaServerApplicationKt and not ....EurekaServerApplication. (This is the actual Java class for the corresponding Kotlin code.)
No need to repeat latest in jib.to.tags. jib.to.tags actually mean additional tags. docker.io/krmao/... in jib.to.image already implies docker.io/krmao/...:latest.         image = "docker.io/krmao/${finalName}"  // 上传后在 https://hub.docker.com/repositories 中查看
-        tags = ['0.0.1', 'latest']
+        tags = ['0.0.1']
         auth {

Thank you for your response@chanseokoh,
The change code works like a charm , Very great !


Dropout for LSTM

Hi Yajie,
I've seen that you implemented dropout for LSTM. According your code dropout is applied not only on train stage but also on crossvalidation and test stages. Is it right?
Thanks

Yes, that's correct. However, applying dropout also to validation/testing is not the correct way. I am exploring the best configuration to do that.


Fix compatibility with PulseAudio 12.x+

Looks good. Thanks.
I've changed version to 11.99, though. There was a version 11.99.1 in Debian experimental, and it already had that type changed.

I've changed version to 11.99, though. There was a version 11.99.1 in Debian experimental, and it already had that type changed.

Heh, and I did the opposite before committing. After all, Debian experimental will lose 11.99.1 soon anyway.


Use annotation for generated code instead of comment

It would be useful to have a javax.annotation.Generated annotation for each generated class instead of the current code comment header. This would prevent generated code from multiple scanning jobs out of the box (like spotbugs and jacoco) instead of additional tool configurations to prevent this.
Filling the date() of the annotation should be configurable (options.suppress-generator-timestamp: true) so generated classes would not differ without API changes.

I can add something like this but I would like to understand where the benefit is. :-)
I looked at it in the past and decided against it because I didn't really see the benefit in it (I probably didn't investigate very much) and because it is an annotation processing specific annotation. It doesn't seem to be a general annotation for generated code.
With a quick search I found the following issues and it looks like spotbugs/jacoco do/can not use that information:
https://github.com/spotbugs/spotbugs/issues/464
https://github.com/jacoco/jacoco/issues/831
Looking at this
https://stackoverflow.com/questions/47824761/how-would-i-add-an-annotation-to-exclude-a-method-from-a-jacoco-code-coverage-re
jacoco ignores code annotated with any Generated annotation that has runtime retention.
To support this we would need a configurable annotation. That should be easy. Configuring parameters for it would be more interesting... ;-)

You are right, Lombok has its own annotation with runtime retention. So openapi-processor could follow this approach and offer its own annotation to make such tool integration easier (I don't think it should allow any external annotation to be used). By doing so, replacing the comment is less useful and could be skipped.
(Btw, I had the wrong annotation package in the original comment, sorry)

yes, guess we need our own @Generated annotation with retention runtime (class may work too).
should it generate {package-name}.Generated or a use a common package name io.openapiprocessor.annotation.Generated.
I think I prefer the first variation.
Parameters would be similar to javax @Generated: value (generator) and date and a fixed comment.  This could replace the header comment (ah, that would require an update all the integration tests... ;-).

released with 2022.5


Remove WindowsProfile parameters

Windows node pools will be disabled from Rancher, so we should not
expose the settings to configure them.
https://github.com/rancher/rancher/issues/32586

Removed the windows example CR too


Add the eval-time GC roots to release.nix so they're cached.

Otherwise they'll get GCd very quickly, which means people will need to
build a lot to even open the shell.
(Thanks to @michaelpj for pointing the solution).

bors r+

bors r+


Fix cookiecutter build by adding slugify dependency

Motivation for this change
cookiecutter currently (cfa5a0c0e09) does not build, complaining that it can not find python-slugify dependency. This PR adds the dependency to fix the build.
It was working at least until last week, but I do not know what broke it. Probably a transitive dependency used to depend on python-slugify.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[x] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Thanks @jonringer , I updated the commit message, and will make sure that my future PR's follows CONTRIBUTING.md.

@kragniz This also works for MacOS.

Result of nixpkgs-review pr 89340 1

6 packages built:
- aws-sam-cli
- cookiecutter (python37Packages.cookiecutter)
- python27Packages.cookiecutter
- python37Packages.mesa
- python38Packages.cookiecutter
- python38Packages.mesa


[#555] Update JS libraries

Fixes # 555
Description
This PR updates the versions of the cross-fetch, follow-redirects, and node-fetch packages in the yarn.lock to recommended versions.
Detailed Changes

Updated follow-redirects from version 1.14.5 to recommend 1.14.7.
Updated node-fetch from version 2.6.6 to recommend 1.6.7.
Updated cross-fetch from version 3.1.4 to 3.1.5 to be able to use the recommended version of node-fetch.

Testing
This image shows the bots working locally with the updated dependencies.

Promoted to MS in PR# 558


Argo CD: Apps (and aoas) stuck in "Progressing"

Despite being healthy, some resources are marked as "Progressing". These include:

Ingress: networking.k8s.io/v1beta1

Resource Health
Will need to implement a custom health check that does not check status.loadBalancer.ingress, or wait for haproxy ingress to implement it (if ever).

Fixed by #10


feat: add lycheeverse/lychee

lycheeverse/lychee: Fast, async, stream-based link checker written in Rust. Finds broken URLs and mail addresses inside Markdown, HTML, reStructuredText, websites and more
$ aqua g -i lycheeverse/lychee

Reviewers aren't necessarily familiar with this package, so please describe how to confirm if this package works well. Please confirm if this package works well yourself as much as possible.
Command and output
$ echo 'https://aquaproj.github.io' | lychee -
🔍 1 Total ✅ 1 OK 🚫 0 Errors
$ echo 'https://aquaproj.github.io/unknown' | lychee -
Issues found in 1 input. Find details below.

[stdin]:
✗ [404] https://aquaproj.github.io/unknown | Failed: Network error: Not Found

🔍 1 Total ✅ 0 OK 🚫 1 Error (HTTP:1)

If files such as configuration file are needed, please share them.
None
Reference

https://lychee.cli.rs
https://github.com/lycheeverse/lychee/releases/tag/v0.10.3

Released. https://github.com/aquaproj/aqua-registry/releases/tag/v3.118.0


Implementing problems in Rotated YOLOX

I am implementing Rotated YOLOX for MMRotate in https://github.com/open-mmlab/mmrotate/pull/409, SimOTA Assigner has CUDA Error while training.
Compared with mmdet, only get_in_gt_and_in_center_info and bbox_overlaps is different to support rotated detection. After set CUDA_LAUNCH_BLOCKING=1, the error log shows that error may cause by binary_cross_entropy. It's werid because there is no error when training with fp16. Is there any suggestion to debug that?
Error info:
./aten/src/ATen/native/cuda/Loss.cu:115: operator(): block: [58,0,0], thread: [63,0,0] Assertion `input_val >= zero && input_val <= one` failed.
Traceback (most recent call last):
  File "/miniconda3/lib/python3.9/site-packages/mmdet/core/bbox/assigners/sim_ota_assigner.py", line 67, in assign
    assign_result = self._assign(pred_scores, priors, decoded_bboxes,
  File "/workspace/mmrotate/mmrotate/core/bbox/assigners/r_sim_ota_assinger.py", line 85, in _assign
    F.binary_cross_entropy(
  File "/miniconda3/lib/python3.9/site-packages/torch/nn/functional.py", line 3065, in binary_cross_entropy
    return torch._C._nn.binary_cross_entropy(input, target, weight, reduction_enum)
RuntimeError: CUDA error: device-side assert triggered

I found the output of network become nan, so bce loss in simota got nan input and trigger the error. Maybe lower lr or gradclip will fix that, i'll do some expriment to figure out.

我正在open-mmlab/mmrotate#409 中为 MMRotate 实现旋转 YOLOX，SimOTA 分配器在训练时有 CUDA 错误。
与 mmdet 相比，只有不同之处在于支持旋转检测。设置后，错误日志显示错误可能由binary_cross_entropy导致。这很奇怪，因为使用 fp16 训练时没有错误。有什么建议可以调试吗？get_in_gt_and_in_center_info``bbox_overlaps``CUDA_LAUNCH_BLOCKING=1
错误信息：
./aten/src/ATen/native/cuda/Loss.cu:115: operator(): block: [58,0,0], thread: [63,0,0] Assertion `input_val >= zero && input_val <= one` failed.
Traceback (most recent call last):
  File "/miniconda3/lib/python3.9/site-packages/mmdet/core/bbox/assigners/sim_ota_assigner.py", line 67, in assign
    assign_result = self._assign(pred_scores, priors, decoded_bboxes,
  File "/workspace/mmrotate/mmrotate/core/bbox/assigners/r_sim_ota_assinger.py", line 85, in _assign
    F.binary_cross_entropy(
  File "/miniconda3/lib/python3.9/site-packages/torch/nn/functional.py", line 3065, in binary_cross_entropy
    return torch._C._nn.binary_cross_entropy(input, target, weight, reduction_enum)
RuntimeError: CUDA error: device-side assert triggered

The following error occurred when I used your yoloX. I only changed img_ Scale and num_ classes:
Traceback (most recent call last):
File "E:\lrk\trail\code\mmrotate-ryolox\tools\train.py", line 196, in
main()
File "E:\lrk\trail\code\mmrotate-ryolox\tools\train.py", line 185, in main
train_detector(
File "E:\lrk\trail\code\mmrotate-ryolox\mmrotate\apis\train.py", line 141, in train_detector
runner.run(data_loaders, cfg.workflow)
File "D:\lrk\local\anaconda3\anaconda\envs\mmrotate\lib\site-packages\mmcv\runner\epoch_based_runner.py", line 136, in run
epoch_runner(data_loaders[i], **kwargs)
File "D:\lrk\local\anaconda3\anaconda\envs\mmrotate\lib\site-packages\mmcv\runner\epoch_based_runner.py", line 49, in train
for i, data_batch in enumerate(self.data_loader):
File "D:\lrk\local\anaconda3\anaconda\envs\mmrotate\lib\site-packages\torch\utils\data\dataloader.py", line 517, in next
data = self._next_data()
File "D:\lrk\local\anaconda3\anaconda\envs\mmrotate\lib\site-packages\torch\utils\data\dataloader.py", line 1179, in _next_data
return self._process_data(data)
File "D:\lrk\local\anaconda3\anaconda\envs\mmrotate\lib\site-packages\torch\utils\data\dataloader.py", line 1225, in _process_data
data.reraise()
File "D:\lrk\local\anaconda3\anaconda\envs\mmrotate\lib\site-packages\torch_utils.py", line 429, in reraise
raise self.exc_type(msg)
RuntimeError: Caught RuntimeError in DataLoader worker process 5.
Original Traceback (most recent call last):
File "D:\lrk\local\anaconda3\anaconda\envs\mmrotate\lib\site-packages\torch\utils\data_utils\worker.py", line 202, in _worker_loop
data = fetcher.fetch(index)
File "D:\lrk\local\anaconda3\anaconda\envs\mmrotate\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "D:\lrk\local\anaconda3\anaconda\envs\mmrotate\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "D:\lrk\local\anaconda3\anaconda\envs\mmrotate\lib\site-packages\mmdet\datasets\dataset_wrappers.py", line 431, in getitem
updated_results = transform(copy.deepcopy(results))
File "D:\lrk\local\anaconda3\anaconda\envs\mmrotate\lib\site-packages\mmdet\datasets\pipelines\transforms.py", line 2326, in call
results = self._mixup_transform(results)
File "E:\lrk\trail\code\mmrotate-ryolox\mmrotate\datasets\pipelines\transforms.py", line 921, in _mixup_transform
mixup_gt_bboxes = poly2obb(
File "E:\lrk\trail\code\mmrotate-ryolox\mmrotate\core\bbox\transforms.py", line 110, in poly2obb
results = poly2obb_le90(polys)
File "E:\lrk\trail\code\mmrotate-ryolox\mmrotate\core\bbox\transforms.py", line 329, in poly2obb_le90
width, _ = torch.max(edges, 1)
RuntimeError: cannot perform reduction function max on tensor with no elements because the operation does not have an identity
Process finished with exit code 1


[Duty & Honor] Fix couple of attribute not saving stats, code cleanup

Changes / Comments

there was a good +100 appributes taht din't save anything, as they where missing "attr_" from their name
figure @MattBx8 the author want a chance to look at it before approval, I'll leave it as a draft a couple of weeks before turning it in if you haven't checked this out.

Roll20 Requests
Comments are very helpful for reviewing the code changes. Please answer the relevant questions below in your comment.

[x] Does the pull request title have the sheet name(s)? Include each sheet name.
[x] Is this a bug fix?
[ ] Does this add functional enhancements (new features or extending existing features) ?
[ ] Does this add or change functional aesthetics (such as layout or color scheme) ?
[ ] If changing or removing attributes, what steps have you taken, if any, to preserve player data ?
[ ] If this is a new sheet, did you follow Building Character Sheets standards ?

If you do not know English. Please leave a comment in your native language.

Thanks! My HTML coding skills are still in their infancy, I fear, and any assistance is appreciated. I will check out the changes and learn from them. Thanks again!

@Anduh Are you ready for this to be merged?

No, Matt haven't given an approval yet. @MattBx8 can you give this a quick check if this PR have any problems? I did check it, but don't use the sheet so it's possible I missed something.

@MattBx8 have you had time to check this out?

I will check it out tonight.

Looks like it works.
Thanks!


How do you count based on user profile which is stored in a different collection?

Hi,
I have a collection which has a user profile field, i grab the user profile using autovalue on collection2.
How do I count the published document of a user based on his profile?
users profile has
company and branch

Expected result is different per user.
Appreciate any help.

I believe this is answered here.  Let me know if it doesn't.

Thanks for the response @boxofrox !
it didn't work :(
I have an idea on how to solve this problem, which I filed an issue here on autoform and on Meteor forums here.
Basically, I will add hooks after doc insert then insert an autoincrement count field on users profile. This way, i can use your countFromField method.

The OP is a bit vague on details, so I may not understand what you're trying to achieve.
Based on your forum question, I don't think it's necessary to add a count field to your documents.
Provide an example of your Meteor.publish routine used to grab the user profile and publish the count, then I can give specific corrections.

Thanks @boxofrox for looking into my problem.
What I am trying to achieve is to counts the document of a user inserted into the collection.
But the problem is, I have 3 different roles, admin, HQ and Branch.
Admin i can easily count the all the documents which is the expected behaviour mycollection.find().count().
HQ (Company Headquarters) - count only the documents inserted by HQ and it's branches.
Branch (Company branch) - count only the documents inserted by branch.
I already grab the users profile (company and branch) like this:
company: {
      type: String,
      optional: true,
      autoform: {
        class: 'hidden'
      },
      autoValue: function() {
      if (this.isInsert) {
        var user = Meteor.users.findOne({ "_id": this.userId }, { fields: { "profile": 1 } });
        if (user) {
          return user && user.profile.company;
        }
      } else {
        this.unset();  // Prevent user from supplying their own value
      }
    }
    },
    branch: {
      type: String,
      optional: true,
      autoform: {
        class: 'hidden'
      },
      autoValue: function() {
      if (this.isInsert) {
        var user = Meteor.users.findOne({ "_id": this.userId }, { fields: { "profile": 1 } });
        if (user) {
          return user && user.profile.branch;
        }
      } else {
        this.unset();  // Prevent user from supplying their own value
      }
    }
    },

Here's publish function (for HQ):
Meteor.publish("enrollmentsByCompany", function(company, limit) {
	Counts.publish(this, 'companyCount-' + company, Enrollments.find({company: company}), {noReady: true});
	if (limit) {
		return Enrollments.find({company: company});
	} else {
		return Enrollments.find({company: company}, {limit: limit}) ;
	}
});

My subscription:
Tracker.autorun(function() {
   Meteor.subscribe("enrollmentsByCompany");
});

Helpers
"enrollmentsCompanyCount": function(){
     return Counts.get(companyCount);

Here's the user profile looks like:
"profile": {
  "name" : "User Name",
  "company" : "KRkwBeicgL5ayedGa",
  "branch" : "66DP8rYtrSGWtDFMK",
 "picture" : {
   "fileId" : "rQQHP4YEuM2KQvTDd",
   "url" : "http://localhost:3000/gridfs/data/id/8252332c839100f950b97794"
  }
}

Thanks for the details.  Looks like you have few collections (Meteor.users, Roles, and Enrollments).
If you require normalized data among your collection and rely on a join between Roles and Enrollments, then I'm not sure I have an answer.  @tmeasday mentioned in another issue that coding server-side joins is best to avoid.  If your joins and subsequent counts are client-side, then publish-counts isn't of much use.
If you have no normalization policy--and it's my understanding that with MongoDB you should not--then we might consider including company and branches in the Enrollments collection.
So your Enrollments document would look like:
{
  "company": "KRkwBeicgL5ayedGa",
  "branch": "66DP8rYtrSGWtDFMK",
  ... other Enrollment fields
}

Then your publish function might be:
Meteor.publish("enrollmentsByAdmin", function (limit) {
    Counts.publish(this, 'enrollments', Enrollments.find({}), {noReady: true});
    if (limit) {
        return Enrollments.find({});
    } else {
        return Enrollments.find({}, {limit: limit}) ;
    }
});

Meteor.publish("enrollmentsByCompany", function(company, limit) {
    Counts.publish(this, 'enrollments', Enrollments.find({company: company}), {noReady: true});
    if (limit) {
        return Enrollments.find({company: company});
    } else {
        return Enrollments.find({company: company}, {limit: limit}) ;
    }
});

Meteor.publish("enrollmentsByBranch", function(branch, limit) {
    Counts.publish(this, 'enrollment', Enrollments.find({branch: branch}), {noReady: true});
    if (limit) {
        return Enrollments.find({branch: branch});
    } else {
        return Enrollments.find({branch: branch}, {limit: limit}) ;
    }
});

And your subscription logic will be:
var user = Meteor.users.findOne({"_id": this.userId},{fields:{profile: 1}});

if (Roles.userHasRole(this.userId, "Admin"))
    Meteor.subscribe("enrollmentsByAdmin", 5);
else if (Roles.userHasRole(this.userId, "HQ"))
    Meteor.subscribe("enrollmentsByCompany", user.profile.company, 5);
else if (Roles.userHasRole(this.userId, "Branch"))
    Meteor.subscribe("enrollmentsByBranch", user.profile.branch, 5);

console.log("enrollment count: ", Counts.get("enrollments"));

Do note that this code does not react to changes in a user's role.  If a user is assigned Branch and later HQ, their counts will continue to use Branch until the user reloads the page.
Sorry the response took so long.  I had to rewrite this post a few times as I grokked your code examples.

Wow! Thanks @boxofrox for this!
I don't have any normalization policy as i don't know how to normalized a collection.
Yeah, on Enrollments i have this:
{
  "company": "KRkwBeicgL5ayedGa",
  "branch": "66DP8rYtrSGWtDFMK",
  ... other Enrollment fields
}

BTW, I am using orionjs as my admin.
I will try this later at home as this is not my main job.
I will let you know and hopefully close this issue :+1:

The console log output is all 0 even on admin, so I've modified the admin publish to:
Meteor.publish("enrollments", function(){
	Counts.publish(this, 'enrollmentsCount', Enrollments.find({}), {noReady: true});
	return Enrollments.find();
});

I've post an issue on nicolas lopez roles repo, he is the author of the package as well as orionjs here.
I will wait for his comment if has something to do with his package.
Thanks a lot again @boxofrox for helping me!

FYI.  You can move most of the processing to the server.
Update your server-side publish routine to:
function getEnrollmentQuery (user) {
    if (Roles.userHasRole(user._id, "Admin"))
        return {};
    else if (Roles.userHasRole(user._id, "HQ"))
        return {company: user.profile.company};
    else if (Roles.userHasRole(user._id, "Branch"))
        return {branch: user.profile.branch};
    else
        throw new Error('getEnrollmentQuery:  unknown role for user (' + user._id + ')');
}

Meteor.publish("enrollments", function (limit) {
    var user  = Meteor.users.findOne({"_id": this.userId}, {fields:{profile: 1}});
    var query = getEnrollmentQuery(user);

    Counts.publish(this, 'enrollmentsCount', Enrollments.find(query), {noReady: true});
    if (limit) {
        return Enrollments.find(query);
    } else {
        return Enrollments.find(query, {limit: limit}) ;
    }
});

And your subscription routine becomes:
Meteor.subscribe("enrollments", 5);
console.log("enrollment count: ", Counts.get("enrollments"));

This version is more secure since your users can't manually invoke the Meteor.subscribe("enrollmentsByAdmin"); via the browser console.

Hi @boxofrox ,
It worked!   :)
However, it seems that it didn't count during first load, i have to reload the page to see the actual count.
BTW, I put the subscription on the router.
what is the significance of 5 inside subscription? ("enrollments", 5)
Thanks!

...it didn't count during first load, i have to reload the page to see the actual count.

I don't know what you mean by first load.  It sounds like there is some task performed by the browser/server before the user can visit the page in question.  Once there a reload fixes the count.
If you can reproduce that behavior, what happens when you visit the page (first load), open the dev-tools console, and run Counts.get("enrollmentsCount");?  Do you get the wrong number, or the correct number?
If the latter, then your template may not be reactively updating when the initial count is generated after the page loads.

what is the significance of 5 inside subscription?

5 is an arbitrary number I used for the limit argument of publish function:
Meteor.publish('enrollments', function (limit) {});

You're welcome to leave it out.

I mean by first load is after logging in the application, after the user logged in, console log 0 count, then reload/refresh browser, it will display the actual document count.
The subscription is in the router, It didn't work, then I moved it in the main template logic (dashboard.js) and wrapped in Tracker.autorun function, still, same effect, I have to reload the page to see the actual document count.
What is the effect if I change the limit 5 to other number or remove it? Sorry for the newbie question. I'm trying to understand the concept.
Thanks @boxofrox.

I mean by first load is after logging in the application

Ah, that makes sense.  I've not done user logins or used routes, so I'm not sure where the problem would be.
I think we've sorted out the problem for this issue and found a new issue with setting up subscriptions with the router.  If you're working with your meteor-insurance repository, push the changes you have so far and I can try reproducing the issue on my end.  If you'd rather keep your commits private, that's fine, too.

What is the effect if I change the limit 5 to other number or remove it?

limit is fed into the Collection.find, so in my example I limited my application to returning 5 documents from the Enrollments collection.  If you bump it to 10, then you'll get 10 documents on the client once the subscription is ready.  It's a way to avoid dumping your entire collection on every client.  (see Collection.find)
Typically our datasets are unbounded, and we don't want every client downloading 100,000+ documents, so we limit them to a smaller subset.  If you wanted to add pagination so the user could view 25 records or so per page, you could add a skip (see Collection.find) parameter to specify which subset of your 100,000+ records to show.  This does get a bit complicated because you'll likely want to stop the subscription for the previous page when you subscribe to view the next page, so you'll need to store subscription handles somewhere.
If you never use the limit parameter, then you don't need publish-counts.  You can always use Enrollments.find({}).count() on the client (whose record set was limited by the query in publish according to their role).  The purpose of publish-counts is to count records on the server that won't be sent to the client, then send only the count to the client.

Sorry for the newbie question. I'm trying to understand the concept.

No worries

Hi @boxofrox ,
Here's the repo for repro here.
Btw, i have other collection that require a document count also but you can ignore that, as soon we solve the issue the first issue, I will try to work that.
I can now understand the limit.
Thanks Again!

Let's move this conversation into gitter for a bit.  i think you'll have to set up the room, first.

Hi @boxofrox ,
I've managed to achieve what I want. I've put my subs on my router and it worked.
However, i have this one last requirement which I will file later.
Thanks for your help!

My pleasure.  Cheers.


Cannot run un-elevated in <IP_ADDRESS>

Ever since I this morning updated to v. <IP_ADDRESS>, then Create-NewContainer keeps failing on these lines, when running VsCode un-elevated:
$dockerOS = docker version -f "{{.Server.Os}}"
if ($dockerOS -ne "Windows") {
throw "Docker is running $dockerOS containers, you need to switch to Windows containers."
Giving this error:
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.39/version: open //./pipe/docker_engine: Access is denied. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
Docker is running  containers, you need to switch to Windows containers.
Running Check-NavContainerHelperPermissions -Fix also worked fine before Days of Knowledge, now it fails on the last check:
xx NOT have permissions to run docker commands.

Did you also update your Windows or Docker Version?
Check-NavContainerHelperPermissions -fix should fix this by giving you permissions (probably will ask you for elevated access to do so).
But that doesn't happen?

No, have not updated Docker EE, since last Monday.
I run Check-NavContainerHelperPermissions -Fix
_Running as DOMAIN\username
Checking permissions to C:\ProgramData\NavContainerHelper
DOMAIN\username has the right permissions to C:\ProgramData\NavContainerHelper
Checking permissions to C:\WINDOWS\System32\drivers\etc\hosts
DOMAIN\username has the right permissions to C:\WINDOWS\System32\drivers\etc\hosts
Checking permissions to docker commands
docker : error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.39/containers/json: open //./pipe/docker_engine: Access is
denied. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that
the docker daemon is not running.
At C:\Program Files\WindowsPowerShell\Modules\navcontainerhelper\<IP_ADDRESS>\Check-NavContainerHelperPermissions.ps1:134 char:19

        $ps = docker ps 2> $tempFile

              ~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (error during co...is not running.:String) [], RemoteException
FullyQualifiedErrorId : NativeCommandError

DOMAIN\username does NOT have permissions to run docker commands
Unable to determine docker deamon socket. Are you sure Docker is running and reachable?_

And docker is running?
If you run a cmd prompt with elevate permissions you can do docker ps ?

Everything works fine, if I run it with elevated permissions.
I just tried to run it at my computer at home. Same Windows 10 and Docker. Here initially I got the same error, something changed in the permissions. But here running Check-NavContainerHelperPermissions -Fix fixes it, after giving the Administrator warning and approval. Maybe the reason is that at work I have a normal account AND a personal admin account, to be used whenever I need elevated permissions (which makes elevated permissions even more annoying as it then saves the icon's on a different desktop).

Ok, yes that might be.
Now, I think when you get back tomorrow - you should probably have the right permissions.

Morning Freddy,
I started by trying again via VSCode, and it failed again.
But then I tried via Powershell ISE instead. Here the Fix worked and prompted me for my admin login and were able to assign the correct permissions.
Problem solved. Thank you.


POST api/request returns an invalid (or undocumented) status

After creating a new request, endpoint returns request status "new" even if only "pending|ongoing|completed" are documented.
POST /api/request HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmaXJzdE5hbWUiOiJBbmRyZSIsImxhc3ROYW1lIjoiUG9zdG1hbiIsImVtYWlsIjoicG9zdG1hbkBhbmRyZS5kZSIsInN0cmVldCI6bnVsbCwibnVtYmVyIjpudWxsLCJ6aXBDb2RlIjpudWxsLCJjaXR5IjpudWxsLCJ0ZWxlcGhvbmUiOm51bGwsImlkIjo2LCJyb2xlIjoibm9uZSIsImlhdCI6MTU4NDkyNjk4NCwiZXhwIjoxNTg0OTMwNTg0fQ.h4GytYoAGZ64rKCUuorB7tofwY-pqYwr05gJby7zf0g
User-Agent: PostmanRuntime/7.23.0
Accept: */*
Cache-Control: no-cache
Postman-Token: 2ceb8cc4-c084-4679-a434-6ec2aa852d38
Host: nexd-api-alb-1107636132.eu-central-1.elb.amazonaws.com
Accept-Encoding: gzip, deflate, br
Content-Length: 791
Connection: keep-alive
{
    "additionalRequest": "",
    "articles": [
        {
            "articleCount": 0,
            "articleId": 1
        },
        {
            "articleCount": 0,
            "articleId": 2
        },
        {
            "articleCount": 1,
            "articleId": 3
        },
        {
            "articleCount": 1,
            "articleId": 4
        },
        {
            "articleCount": 0,
            "articleId": 5
        },
        {
            "articleCount": 1,
            "articleId": 6
        },
        {
            "articleCount": 0,
            "articleId": 7
        },
        {
            "articleCount": 1,
            "articleId": 8
        },
        {
            "articleCount": 0,
            "articleId": 9
        }
    ],
    "status": "pending"
}
HTTP/1.1 201 Created
Date: Mon, 23 Mar 2020 01:54:54 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 1032
Connection: keep-alive
X-DNS-Prefetch-Control: off
X-Frame-Options: SAMEORIGIN
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Download-Options: noopen
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Access-Control-Allow-Origin: *
ETag: W/"408-bM8nmfheSXRV8FqntIdeXmiYoPE"
{"articles":[{"articleId":1,"articleCount":0,"articleDone":false,"id":50},{"articleId":2,"articleCount":0,"articleDone":false,"id":51},{"articleId":3,"articleCount":1,"articleDone":false,"id":52},{"articleId":4,"articleCount":1,"articleDone":false,"id":53},{"articleId":5,"articleCount":0,"articleDone":false,"id":54},{"articleId":6,"articleCount":1,"articleDone":false,"id":55},{"articleId":7,"articleCount":0,"articleDone":false,"id":56},{"articleId":8,"articleCount":1,"articleDone":false,"id":57},{"articleId":9,"articleCount":0,"articleDone":false,"id":58}],"additionalRequest":"","phoneNumber":null,"deliveryComment":null,"city":null,"street":null,"number":null,"zipCode":null,"requesterId":6,"id":10,"created_at":"2020-03-23T01:54:54.200Z","priority":"low","status":"new","requester":{"street":null,"number":null,"zipCode":null,"city":null,"id":6,"firstName":"Andre","lastName":"Postman","email":"postman@andre.de","role":"none","telephone":null,"password":"e56a207acd1e6714735487c199c6f095844b7cc8e5971d86c003a7b6f36ef51e"}}

yep, problem with outdated data.
Will be solved with a new database deployment or PR #46

Done with the new deployment


Google Functions support

New in Camel 3.9 https://camel.apache.org/components/latest/google-functions-component.html

A JVM only extension is underway https://github.com/apache/camel-quarkus/pull/2643


omnisharp-roslyn: 1.35.0 -> 1.35.1

Semi-automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/OmniSharp/omnisharp-roslyn/releases.
meta.description for omnisharp-roslyn is: "OmniSharp based on roslyn workspaces"
meta.homepage for omnisharp-roslyn is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 1.35.1 with grep in /nix/store/hl897zmcr3ykkq5ghp1wggnira3k7vi7-omnisharp-roslyn-1.35.1

directory tree listing: https://gist.github.com/68abbfb7ffd0bb2c29b7423a703a7274

du listing: https://gist.github.com/c61ec9a3c3ba35270044927fa258fb3d

Rebuild report (if merged into master) (click to expand)

3 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
omnisharp-roslyn

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/hl897zmcr3ykkq5ghp1wggnira3k7vi7-omnisharp-roslyn-1.35.1 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A omnisharp-roslyn https://github.com/r-ryantm/nixpkgs/archive/69756add0d1c881f1b55377bbbf8d651616908b5.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/hl897zmcr3ykkq5ghp1wggnira3k7vi7-omnisharp-roslyn-1.35.1
ls -la /nix/store/hl897zmcr3ykkq5ghp1wggnira3k7vi7-omnisharp-roslyn-1.35.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review 1

1 package built:
- omnisharp-roslyn

Maintainer pings
cc @tesq0 for testing.

Have been running this since yesterday. Works as expected.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review-may-2019/3032/163

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-already-reviewed/2617/159

@FelschR it lacks meta.homepage attribute. After this, I can merge :)

@AndersonTorres only members can add commits to PRs that are not their own.

OK, then I will fix it later.

No worries, I already fixed it. Just made the comment because it seems that very often there seem to be misunderstandings on who is supposed to fix things on an auto update PR. As far as I can tell @FelschR could not have done it here due to lack of permissions.

@AndersonTorres Do you mean like maybe it would post there after a few days of someone having approved it?


grpc stress issues

Everything works fine except returning the json output issue reported to the grpc devs here

Fixed the JSON thing with Location; but there seems to be an issue with the Docker containers communicating with each other.

Misconfigured docker-compose yml which popped up this issue. Fixed here: https://github.com/Ch3ck/go-serve/commit/d43327f3d8e893aa46cf027df75a8a2f24e8f29c


Assembly name changed in version 2.0.0

I don't know if it's intended but in our case we have issues with that with a custom NuGet resolver / pugin system.
Anyway I feel like it would be more "normal" to keep the previous name which has the good taste to be the name of the NuGet package.

@thoemmi Can you publish as 2.0.1? I checked Vestris.resourcelib.2.1.0-beta0005.nupkg and the content was ok.

It's now published as 2.1.

(Actually, it should be 3.0, because it's a breaking change. But I guess we can agree on 2.1)


get_mysonos - command in Universal Node?

If you want to be sure: Add the TuneIn Station to My Sonos and use in get_mysonos in node "Manage Radio". The output will show the exact link and the item includes also the Radio ID.
As advised by you I used the Manage Radio node to get an AlbumURL link and the current RadioID... as Manage Radio is deprecated I do miss that feature in Universal-Node
Pls advise

"My Sonos", get.items
There is payload.albumArt and the Radio ID is in payload.uri
x-sonosapi-stream:s24903?sid=254&flags=8224&sn=0
Does that help?

Yes, thats exactly what I was looking for .. thx a lot

3.1.4 is published - now get.items shows the radioId if available.

Just tested and it works great!
thanks for implementing


Will not build on osx 10.10

I followed all instructions. Macports and Homebrew are both installed. Macbook pro, 13 inch late 2010. Core 2 duo.
Output of ./configure
./configure \

--with-libpcap=/usr/local/opt/libpcap
--with-openssl=/usr/local/opt/openssl
--with-libnet=/usr/local/opt/libnet
--with-libnids=/usr/local/opt/libnids
--without-x
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for X... disabled
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/queue.h usability... yes
checking sys/queue.h presence... yes
checking for sys/queue.h... yes
checking for unistd.h... (cached) yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking net/if_tun.h usability... no
checking net/if_tun.h presence... no
checking for net/if_tun.h... no
checking for MIN and MAX in sys/param.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for u_int32_t... yes
checking for u_int64_t... yes
checking for in_addr_t... yes
checking whether gcc needs -traditional... no
checking for working memcmp... yes
checking return type of signal handlers... void
checking for strftime... yes
checking for gethostname... yes
checking for socket... yes
checking for strdup... yes
checking for strstr... yes
checking for ether_ntoa... yes
checking for xdr_fhstatus in -lrpcsvc... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking for dn_expand in -lresolv... yes
checking for __dn_expand in -lresolv... no
checking for dirname... yes
checking for strlcpy... yes
checking for strlcat... yes
checking for strsep... yes
checking for MD5Update... no
checking for warnx... yes
checking for ether_ntoa... (cached) yes
checking for Berkeley DB with 1.85 compatibility... yes
checking for libpcap... /usr/local/opt/libpcap
./configure: line 410: test: pcap-bpf.h: integer expression expected
configure: error: pcap.h
./configure: line 299: return: pcap-bpf.h: numeric argument required
./configure: line 309: exit: pcap-bpf.h: numeric argument required

when make is executed....
make: *** No targets specified and no makefile found.  Stop.

This is odd. I'm also using 10.10 (but without macports) and dsniff builds fine for me. Maybe you have an old version of libpcap? Have you run brew update and brew upgrade recently?

Yep, tried again today, brew update and brew upgrade also, with same results. I ended up just downloading a precompiled version.

I'm curious: Did the other mac have homebrew + macports installed or just homebrew?

For now I guess I'll chalk this up to cosmic rays or angry computer spirits. I'm still a little suspicious of macports.

Came across this issue just now, removing the ''--with-libpcap=/usr/local/opt/libpcap" flag fixed the issue, said folder is actually empty which is probably what causes the issue.
$ brew install libpcap
Error: No available formula for libpcap
Apple distributes libpcap with OS X, you can find it in /usr/lib.
Probably related to that, fairly new to OSx, but seems like a potential case of 'we used to have a libpcap brew, but now we don't need it', and potential remnants exist of that folder on your machine or something?


Fix warnings reported by ShellCheck

This should lead to a more robust script using modern practices. See the ShellCheck homepage for more information :slightly_smiling_face:

@benweissmann Can you take a look at this, please? :slightly_smiling_face:

I need to test this across all the OSes we support, will try to get to that this weekend.


cannot bind to other platforms

like this

Same here.

I know.
Just turn off your firewall

Closing as unrelated to this project. See https://github.com/gogcom/galaxy-integrations-python-api/issues/new/choose to find proper place to report Galaxy or plugin issues


Development Channel

I think it would be nice to open a little development channel specific to github.com/AndrewBelt/hack.chat related things (ie, issues and PR's) on http://hack.chat, perhaps https://hack.chat/?development.

https://hack.chat/?meta
It's about hack.chat-related things and is already popular.


[BUG] nothing happens when i press start

When i press start with the version 5.0.2 and 5.03, nothing happens, is also tried reverting to old 4.0 and 3.0 version but these dont work anymore either (doesn't grab AUTH anymore) my browser is brave if it means anything. all other options seems to work (clear log, grab info / set date and message filters, but none of this means anything if nothing happens when pressing start.

It works good mate, stop winge'n

It works good mate, stop winge'n

Nobody asked you whether it worked SPECIFICALLY for you or not.

When i press start with the version 5.0.2 and 5.03, nothing happens, is also tried reverting to old 4.0 and 3.0 version but these dont work anymore either (doesn't grab AUTH anymore) my browser is brave if it means anything. all other options seems to work (clear log, grab info / set date and message filters, but none of this means anything if nothing happens when pressing start.

Don't worry I had the same issue but it's working now.

what was the fix?

what was the fix?

It's not working for me again I just went to try now :(

I'm getting the same error

[if the script doesn't run, try]

disable EFF HTTPS Everywhere extension;
open developer tools first [ctrl+shift+i or f12];
change browser;

_o/


Error adding facebook activity to manifest

i get this error when editing my path_to_flutter_app/android/app/src/main/AndroidManifext.xml
What could be the cause of the errror
``

here is my flutter doctor -v

here is the data appended to my manifest file

Whats causing the error.

I get the same error too, even if I remove all the facebook config 🤔
I am using the flutter 1.0.0


Rewrite RAND_egd

Use stdio and its buffering.
Limit to 255 bytes (could remove that if neceessary).

additional commit pushed

commit 8e58093 on master; thanks!

There were several of them and, oops, I only fixed many.  I suppose I should do a new PR.

What, à whole new PR just for fixing that detail?

Yes, whenever I get around to it.  There’s no other way.


feat: api 22 support

Want to use this amazing lib in a patch project that I'm build to help my grandma who have a very old device. :)
I ll be very thankfull, if you accept this pr.

Hey @leonardorpaixao, first, thank you for the contribution 😄
We've talked about changing the minSdk to 21 in this discussion.
Please feel free to change for minSdk 21 if you want in this PR, however, I won't launch a new release for now because I want to enforce that everything is ok with these news SDKs.
For now, if you want to use the library with sdk 22 I'd recommend to override the sdk in your android manifest.
<uses-sdk tools:overrideLibrary="com.ujizin.camposer"/>


Skip testing of fragment components

Hey, thanks for writing this library. In using it, I found I had to add this check for components that have a tagName of ''; as in, they are missing a wrapper element. I’m having a hard time finding documentation on this, but components configured this way don’t have a this.$ because there’s no element for that to point to.
It galls me to submit this PR without a test, but I couldn’t figure out how to add one! I tried adding a {{fragment-component}} in tests/dummy/app/templates/application.hbs, but it had no effect. Adding an invalid component had no effect there either, leading me to believe that template isn’t being exercised by the tests. But maybe I’m missing something. I’d gladly add a test for this with some guidance!

@backspace Can you reopen this PR against ember-a11y-testing? We migrated this addon into that repository, after normal updates it should still work.

Looks like @noopkat already included this in the linked pull request, as the initialiser has the conditional. Thanks for keeping this work going, @nathanhammond!

@backspace thanks for the fix, hope you didn't mind me throwing it in with my PR!

Definitely not, @noopkat! Glad it made it in in the end 😀


Upgrade Spring Boot

https://github.com/spring-projects/spring-boot/releases
see: https://tomcat.apache.org/security-10.html
Upgrade to Apache Tomcat 10.1.4 or later

PR: #1995


.foundation('slider', 'set_value', n) triggers change event for all range sliders

This is the exact same issue as #4959
the last comment links a codepen which demonstrates the issue still exists.
http://codepen.io/anon/pen/vhHCF

Closing in favor of #4959. We're looking at it today. :)


siac renter upload and download CLI inconsistencies

siac renter upload [file] [path] returns immediately and adds the file to the upload queue, but siac renter download [path] [file] waits for the file to download before returning, but you can use siac renter queue in another window to show the download queue. The mismatched behaviors of the two commands is jarring. Either upload should behave like download or vice-versa.
Furthermore “queue” and “list” are confusing because they both represent files being transferred, but “queue” means downloading files and “list” means uploading files. There is nothing intrinsic to a queue that implies downloading, so lets make the commands match. I propose changing it to siac renter list download and siac renter list upload or siac renter list for both.
Finally, on a somewhat related note, most siac commands have a status command, but renter does not. From the perspective of someone using siac for the first time, I expected a status command. With this in mind I think the renter CLI for getting the status of uploads and downloads should be siac renter status download, siac renter status upload, and siac renter status (instead of siac renter list download/upload).

it's tricky because a download has a clear end point (the file can be opened), but an upload doesn't ever really "complete" -- it just gets added to the repair pool. I suppose we could poll until the file reached availability.
list doesn't mean uploading files, it means all files. It just also happens to show files whose uploads haven't completed.
As for status, I think we should follow in the footsteps of the API and replace siac [module] status with just siac [module]

it also occurred to me that synchronous calls are a little deceptive, since they give the impression that you can cancel the action with Ctrl-C. Since this isn't the case, maybe asynchronous-by-default is best.


Possibly switch back to Poetry?

I just switched to PDM, because Poetry was taking multiple hours to lock dependencies (due to Coiled being a dependency with way too many transitive deps, and https://github.com/python-poetry/poetry/issues/5121).
Testing with Poetry 1.2.0 though, the situation doesn't seem as bad.
Poetry is still 2x slower than PDM—170 seconds instead of 42. But 170s is way, way better than 3h. It's within the range of tolerability. And since Poetry is more widely used and mature than PDM, and a bit more straightforward to work with in virtualenvs, I'm tempted to stick with it for now, even with the longer lock times. It still doesn't have https://github.com/python-poetry/poetry/issues/697, which could end up being critical at some point, but so far hasn't been too much of an issue.
Probably won't take any action on this for now, just noting this in case other compelling reasons come up one way or another.
gabe dev/stackstac ‹fc326d0› » time pdm add -dG docs sphinx-paramlinks
Adding packages to docs dev-dependencies: sphinx-paramlinks
Virtualenv /Users/gabe/dev/stackstac/.venv is reused.
🔒 Lock successful
Changes are written to pdm.lock.
Changes are written to pyproject.toml.
All packages are synced to date, nothing to do.

🎉 All complete!

pdm add -dG docs sphinx-paramlinks  42.10s user 1.82s system 105% cpu 41.601 total
gabe dev/stackstac ‹fc326d0*› »
gabe dev/stackstac ‹fc326d0*› »
gabe dev/stackstac ‹c67944b› » time poetry add sphinx-paramlinks
Using version ^0.5.4 for sphinx-paramlinks

Updating dependencies
Resolving dependencies... Downloading https://files.pythonhosted.org/packages/2f/be/7d6e073a3eb740ebeba43a69f5de2b141fea50b801e24e0ae024ac94d4ac/matplotlib-3.5.2.tar.gz  28% (2
Resolving dependencies... Downloading https://files.pythonhosted.org/packages/2f/be/7d6e073a3eb740ebeba43a69f5de2b141fea50b801e24e0ae024ac94d4ac/matplotlib-3.5.2.tar.gz  58% (2
Resolving dependencies... Downloading https://files.pythonhosted.org/packages/2f/be/7d6e073a3eb740ebeba43a69f5de2b141fea50b801e24e0ae024ac94d4ac/matplotlib-3.5.2.tar.gz  88% (2
Resolving dependencies... Downloading https://files.pythonhosted.org/packages/03/c6/14a17e10813b8db20d1e800ff9a3a898e65d25f2b0e9d6a94616f1e3362c/numpy-1.23.0.tar.gz  28% (42.5s
Resolving dependencies... (76.1s)

Writing lock file

Package operations: 1 install, 49 updates, 0 removals

  • Updating attrs (22.1.0 -> 21.4.0)
  • Updating fastjsonschema (2.16.1 -> 2.15.3)
  • Updating jsonschema (4.15.0 -> 4.6.1)
  • Updating jupyter-core (4.11.1 -> 4.10.0)
  • Updating pyzmq (23.2.1 -> 23.2.0)
  • Updating tornado (6.1 -> 6.2)
  • Updating mistune (2.0.4 -> 0.8.4)
  • Updating nbclient (0.6.7 -> 0.6.6)
  • Updating pygments (2.13.0 -> 2.12.0)
  • Updating sniffio (1.3.0 -> 1.2.0)
  • Updating matplotlib-inline (0.1.6 -> 0.1.3)
  • Updating nbconvert (7.0.0 -> 6.5.0)
  • Updating prompt-toolkit (3.0.31 -> 3.0.30)
  • Updating websocket-client (1.4.1 -> 1.3.3)
  • Updating charset-normalizer (2.1.1 -> 2.1.0)
  • Updating debugpy (1.6.3 -> 1.6.0)
  • Updating frozenlist (1.3.1 -> 1.3.0)
  • Updating psutil (5.9.2 -> 5.9.1)
  • Updating pytz (2022.2.1 -> 2022.1)
  • Updating urllib3 (1.26.12 -> 1.26.9)
  • Updating zipp (3.8.1 -> 3.8.0)
  • Updating ipykernel (6.15.2 -> 6.15.0)
  • Updating json5 (0.9.10 -> 0.9.8)
  • Updating toolz (0.12.0 -> 0.11.2)
  • Updating yarl (1.8.1 -> 1.7.2)
  • Updating cloudpickle (2.2.0 -> 2.1.0)
  • Updating docutils (0.19 -> 0.18.1)
  • Updating fsspec (2022.8.2 -> 2022.5.0)
  • Updating jupyterlab-server (2.15.1 -> 2.15.0)
  • Updating nbclassic (0.4.3 -> 0.4.2)
  • Updating numpy (1.23.2 -> 1.23.0)
  • Updating partd (1.3.0 -> 1.2.0)
  • Updating dask (2022.9.0 -> 2022.6.1)
  • Updating jupyterlab (3.4.6 -> 3.4.3)
  • Updating pystac (1.6.1 -> 1.4.0)
  • Updating sphinx (5.1.1 -> 5.0.2)
  • Updating distributed (2022.9.0 -> 2022.6.1)
  • Updating exceptiongroup (1.0.0rc9 -> 1.0.0rc8)
  • Updating keyring (23.9.1 -> 23.6.0)
  • Updating pathspec (0.10.1 -> 0.9.0)
  • Updating py-spy (0.3.13 -> 0.3.12)
  • Updating readme-renderer (37.1 -> 35.0)
  • Installing tqdm (4.64.0)
  • Updating viztracer (0.15.4 -> 0.12.3)
  • Updating xarray (2022.6.0 -> 2022.3.0)
  • Updating black (22.8.0 -> 22.6.0)
  • Updating graphviz (0.20.1 -> 0.16)
  • Updating hypothesis (6.54.5 -> 6.49.1)
  • Updating rasterio (1.3.2 -> 1.3.0)
  • Updating twine (4.0.1 -> 3.8.0)
poetry add sphinx-paramlinks  170.55s user 25.80s system 160% cpu 2:02.03 total

Should hatch be considered? it doesn't yet have lock file support but is under the pypa org and seems to have momentum as PYPA's preferred packaging tool.

I've been really curious about hatch, but

No lockfiles
No CLI for adding/removing dependencies: you can easily pip install something in an environment, and forget to add it in tool.hatch.envs.<name>. AFAIU, hatch doesn't have something like poetry's --remove-untracked, so you might not realize you'd messed up until you got to CI.

Lockfiles to me are the core feature though. I never, ever want to end up with different versions of things installed in different environments (my machine vs another dev's machine vs GitHub actions vs readthedocs vs Binder vs ...).

Hey, creator of Hatch here! Out of curiosity, why does this library need lock files?

@ofek good question.
Currently, this project uses lockfiles to reproduce the environment:

on readthedocs
in binder
in a Coiled software environment
(whenever I get around to it) on GitHub actions
on anyone's machine who contributes

Technically, we actually just reproduce subsets of the environment in different places via dependency groups (docs deps aren't installed on binder, etc.)

Broadly, I think there are two related but separate problems:

Specifying the range of dependencies of a library for when other people install it
Pinning the environment of a project for when it needs to be reproduced in other places (CI, contributors' machines)

I wouldn't mind having two separate tools for these separate problems, if the ergonomics were as easy as Poetry/PDM/any modern CLI-based locking package manager. To me, hatch just focuses on problem 1; I don't know of a tool that focuses solely on problem 2 (besides pip freeze I guess, which does't meet the ergonomics requirement). Because these are pretty tightly related (if I change the rasterio dependency in stackstac, I also want to change the rasterio pinned in my environment), most tools (poetry/pdm/npm/cargo/etc.) seem to solve them together.
But I care a lot about problem 2—quite a bit more than I care about problem 1, actually. I have been bitten so many times by un-pinned dependencies changing, and a new release on PyPi of some transitive dep breaking builds. To me, having a lightweight, declarative process to ensure a consistent Python environment everywhere is key to a modern development experience, where you're needing to re-create that environment all the time in many places in an automated way.


Chuck understands r-docs build

#1669 fixes nightly

but both of us think it is a bit hacky.
Chuck needs to invest some time just to understand how it's working, and how it could work, but that shouldn't hold up something that fixes nightly.

See also #1643

Long term, what do we want? Published R docs should include their examples, with output, which means the Rust code is there and is built.
Eventually, we don't even want the R code to be checked in: It would be generated by the Rust build. Does that intersect with this?

See #1430

We also want the developer process to mirror CI to the extent possible.
cargo build --all-features currently produces object code which doesn't work for R, and I don't think we document the steps that would work. Before committing to having two separate builds for Python and R, is there any other way to make R happy with the Python build. It's not obvious to me why extra functionality should break R.
cd rust
cargo build --all-features
cd ..
export OPENDP_LIB_DIR=`realpath rust/target/debug`
tools/r_stage.sh -d
...
symbol not found in flat namespace '_PyBaseObject_Type'

Another thing I don't understand: Why does the doc build work when src is removed? Shouldn't it still be trying to run the examples in the R docstrings?

Trying to understand how the Rust build for R should work:
cd rust
cargo build --features untrusted,ffi --target-dir target/debug-no-polars
cd ..
export OPENDP_LIB_DIR=`realpath rust/target/debug-no-polars`
Rscript -e 'devtools::document("R/opendp")'

still produces
symbol not found in flat namespace '_PyBaseObject_Type'

Is something cached? Or is some python-related Rust code not flagged correctly?


refactor: make some API request in parallel

Description

make some API request in parallel for users & channels
remove some unnecessary optional chaining operators

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Looks good to me:)


403 Forbidden Error on Local

Description
When I run npm run dev I get HTTPError: Response code 403 (Forbidden) when rendering the page. I cloned the repo from main and tried a fresh install, but I'm getting the same issue. When I deploy to Vercel it seems to build as expected, and the hosted site works.
I made sure the Notion page is public, as seen in screenshot #2 below.
Notion Test Page ID
1fffb2204cd74a2499e101f1cd4a7ba8
https://twdev.notion.site/Travis-Aaron-Wagner-1fffb2204cd74a2499e101f1cd4a7ba8
Vercel Link
https://notion-travisaw-trvswgnr.vercel.app
Screenshots

Terminal Output
Here is the output after running npm run dev and visiting http://localhost:3000:
><EMAIL_ADDRESS>dev
> next dev

ready - started server on <IP_ADDRESS>:3000, url: http://localhost:3000
wait  - compiling...
event - compiled client and server successfully in 2.2s (765 modules)
wait  - compiling / (client and server)...
wait  - compiling...
event - compiled client and server successfully in 410 ms (781 modules)
{
  domain: 'notion-travisaw-trvswgnr.vercel.app',
  name: 'Travis Aaron Wagner',
  rootNotionPageId: '1fffb2204cd74a2499e101f1cd4a7ba8',
  rootNotionSpaceId: null,
  description: 'Personal site for Travis Aaron Wagner'
}
page error notion-travisaw-trvswgnr.vercel.app HTTPError: Response code 403 (Forbidden)
    at Request.<anonymous> (/Users/trav/Sites/nextjs-notion-starter-kit/node_modules/notion-client/node_modules/got/dist/source/as-promise/index.js:118:42)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  code: 'ERR_NON_2XX_3XX_RESPONSE',
  timings: {
    start:<PHONE_NUMBER>264,
    socket:<PHONE_NUMBER>265,
    lookup:<PHONE_NUMBER>299,
    connect:<PHONE_NUMBER>341,
    secureConnect:<PHONE_NUMBER>377,
    upload:<PHONE_NUMBER>377,
    response:<PHONE_NUMBER>419,
    end:<PHONE_NUMBER>425,
    error: undefined,
    abort: undefined,
    phases: {
      wait: 1,
      dns: 34,
      tcp: 42,
      tls: 36,
      request: 0,
      firstByte: 42,
      download: 6,
      total: 161
    }
  }
}
wait  - compiling /_error (client and server)...
wait  - compiling...
event - compiled client and server successfully in 174 ms (781 modules)
error - HTTPError: Response code 403 (Forbidden)

Specs

MacBook Pro (15-inch, 2017) 3.1 GHz Quad-Core Intel Core i7
Node v16.15.0
NPM v8.5.5
Chrome Version 102.0.5005.61 (Official Build) (x86_64)
Firefox 100.0.2 (64-bit)
Visual Studio Code 1.67.2 (Universal)

Looks like it was an issue with Notion servers or something. It appears to be working now.


order sidebar

is there a way to order sidebars i want a sidebar to be ontop of the default filter sidebar can this be done?

The hack to fix is to manipulate config.sidebar_sections directly in the controller DSL. e.g.
sidebar :search, :only => :index
config.sidebar_sections.reverse!
This will get you the desired effect. It would be nice to have a priority option supported on the sidebars.


Remove final modifier from static methods

When a static method is overridden in a subclass it can still be accessed via the super class, making a final declaration not very necessary. Declaring a static method final does prevent subclasses from defining a static method with the same signature.

Codecov Report

Merging #503 into dev will decrease coverage by 0.11%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##                dev     #503      +/-   ##
============================================
- Coverage     46.64%   46.53%   -0.12%
  Complexity     2218     2218
============================================
  Files           108      108
  Lines         25279    25279
  Branches       4167     4167
============================================
- Hits          11791    11763      -28
- Misses        11463    11492      +29
+ Partials       2025     2024       -1

Flag
Coverage Δ
Complexity Δ

#JDBC41
46.25% <100%> (-0.15%)
2201 <1> (-4)

#JDBC42
46.43% <100%> (-0.04%)
2215 <1> (+2)

Impacted Files
Coverage Δ
Complexity Δ

...c/main/java/com/microsoft/sqlserver/jdbc/Util.java
59.43% <ø> (-1.09%)
88 <0> (-2)

...n/java/com/microsoft/sqlserver/jdbc/DataTypes.java
77.79% <ø> (ø)
5 <0> (ø)
:arrow_down:

...erver/jdbc/SQLServerPreparedStatement42Helper.java
17.85% <ø> (ø)
1 <0> (ø)
:arrow_down:

...a/com/microsoft/sqlserver/jdbc/PLPInputStream.java
53.01% <ø> (ø)
29 <0> (ø)
:arrow_down:

.../com/microsoft/sqlserver/jdbc/SQLServerJdbc41.java
33.33% <ø> (ø)
0 <0> (ø)
:arrow_down:

...in/java/com/microsoft/sqlserver/jdbc/IOBuffer.java
53.32% <ø> (-0.97%)
0 <0> (ø)

...rc/main/java/com/microsoft/sqlserver/jdbc/DDC.java
43.24% <ø> (ø)
104 <0> (ø)
:arrow_down:

.../com/microsoft/sqlserver/jdbc/SQLServerJdbc42.java
25% <ø> (ø)
0 <0> (ø)
:arrow_down:

.../com/microsoft/sqlserver/jdbc/SQLServerDriver.java
77.22% <ø> (ø)
25 <0> (ø)
:arrow_down:

...ava/com/microsoft/sqlserver/jdbc/SQLCollation.java
92.53% <100%> (ø)
14 <1> (ø)
:arrow_down:

... and 7 more

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 24dfd49...647280a. Read the comment docs.

@JamieMagee Hello. The purpose of those final keywords is to preventing method overriding, not preventing from accessing them via super classes. Although some classes are already declared as final (some classes are not final, i.g. PLPInputStream, so keeping the final keyword is very necessary in this case), we have decided to keep the final keywords on those methods declaration too. Thank you.


Add long options for the short options

Hello,
I was reading and playing with asp and noticed you only list short options for options (-h, -v) but there is no long option.
Is there a possibility to add a long options too like the traditional (that I keep imputing on asp) --help or --version?
some users cof prefer the long options other for muscle-memory, scripts, not mistake, consistency.
even pacman have long and short so it will be on line with what is on Arch.
Note: also https://git.archlinux.org/still show abs as official arch linux project.

EWONTFIX


Updated readme.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (07f3b71) 80.61% compared to head (76cc42f) 80.61%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #36   +/-   ##
=======================================
  Coverage   80.61%   80.61%
=======================================
  Files          13       13
  Lines        1042     1042
=======================================
  Hits          840      840
  Misses        202      202

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


Timesheet - 25/04/2021- Manish Ram

Task 1: Timesheets

Reviewed timesheets

Proof of Work

Commented "Approved" for approved timesheets or left other comments to ask for additional Infos to the timesheet issues dated 24/04/2021
https://github.com/thenewboston-developers/Contributor-Payments/issues

Time Spent
1 hour

Task 2: Audit Discuss

Audit related minor discussion

Proof of Work

Can be verified by Audit Team Lead

Time Spent
0.5 hours

Task 3: Projects

TNBC Games Review
Had a meeting with Zinoadidi regrading TNBC Games
Cleared doubts regarding the project.
Updated the google doc with Zinoadidi's answers.

Time Spent
1 hour

Total Time Spent
2.5 hours
Account Number
0f92e975101eb96cea80dce430d74efd3172fa229377818d467ded85dcf2ab6c

Approved


Add data.gov.uk Publish ('lite' stack only)

"The time has come."
Depends on: https://github.com/alphagov/datagovuk_publish/pull/957

I thought that Publish wasn't used...

It is used: it's the conduit through which stuff published through CKAN makes it into the ES DB for the frontend, which is called "DGU Find". Simples.
(It is also an incomplete web app, which is unused, but was intended to replace CKAN.)


[Snyk] Upgrade react-intl from 6.6.2 to 6.6.8

Snyk has created this PR to upgrade react-intl from 6.6.2 to 6.6.8.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 6 versions ahead of your current version.

The recommended version was released on 4 months ago.

Release notes

Package name: react-intl

6.6.8 - 2024-05-19

6.6.7 - 2024-05-18

6.6.6 - 2024-05-05

6.6.5 - 2024-04-06

6.6.4 - 2024-03-27

6.6.3 - 2024-03-24

6.6.2 - 2024-01-26

    from react-intl GitHub release notes

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:

🧐 View latest project report
📜 Customise PR templates
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 8.27%. Comparing base (7a0a36f) to head (f465c35).

Additional details and impacted files
@@          Coverage Diff           @@
##           master    #802   +/-   ##
======================================
  Coverage    8.27%   8.27%
======================================
  Files          68      68
  Lines        3952    3952
  Branches      864     864
======================================
  Hits          327     327
  Misses       3625    3625

Flag
Coverage Δ

?

Flags with carried forward coverage won't be shown. Click here to find out more.

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

:tada: This PR is included in version 1.45.7 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Update market price loading data

Mark price = (bid + ask) / 2

New columns:
mark_price, mark_time, mark_time_string, bid/ask_price, bid/ask_time, receive_time

According to the document of  CCXT, the orderbook['timestamp'] not be provided by all exchanges. Timestamp data are essential for us to use the marked price.  In the end, we decide to use the last trade API for recording price data.