SSE close events do not make it through proxy running on Windows

yarn why http-proxy-middleware OR npm ls http-proxy-middleware output (mask private folder names with *****)
<EMAIL_ADDRESS>D:\Development\proxy
`--<EMAIL_ADDRESS>

[X] I understand project setup issues should be asked on StackOverflow or in GitHub Discussions.
[X] I updated to latest http-proxy-middleware.

Describe the bug (be clear and concise)
When proxy is  run on Windows, although data passes to the client, the server doesn't receive any SSE "closed" events until the proxy itself is stopped.
Here is the minimal proxy I am running:
const express = require('express');
const { createProxyMiddleware } = require('http-proxy-middleware');

const app = express();

app.use('/', createProxyMiddleware({ target: 'http://localhost:3002/', changeOrigin: true }));
app.listen(3003);

I have a SSE server running on 3002, I connect to it on 3003 (via the proxy)
Step-by-step reproduction instructions
1. Launch an SSE server
2. On Windows, launch given minimal proxy example pointing to SSE server
3. Connect a SSE client to the server via the proxy
4. Close the SSE client

Expected behavior (be clear and concise)
The server should register the SSE "close" event
What http-proxy-middleware configuration are you using?
createProxyMiddleware({ target: 'http://localhost:3002/', changeOrigin: true })

What OS/version and node/version are you seeing the problem?
Windows 11 Pro Insider Preview -- Version 10.0.22489 Build 22489
 -- I'm almost certain I began experiencing this problem before running Windows 11
Node - v16.3.0

Additional context (optional)
Works inside WSL, does not work from Powershell or CMD

It seems to be a problem with the http-proxy module (which is used by http-proxy-middleware), since I had the same problem trying to proxy SSE connections through it.
According to this issue that i found in their repository, it can be fixed this way:
const express = require('express');
const { createProxyMiddleware } = require('http-proxy-middleware');

const app = express();

app.use('/', createProxyMiddleware({
    target: 'http://localhost:3002/',
    changeOrigin: true,
    onProxyReq: (proxyRes, req, res) => {
        res.on('close', () => proxyRes.destroy());
    }
}));
app.listen(3003);

I'm having perhaps the inverse of this. When my backend server doing SSE dies, the proxy neither reconnects, nor disconnects the client so it can try to reconnect.

@gitpushdashf I am currently having the exact same problem. Did you find a way of solving this?

It seems to be a problem with the http-proxy module (which is used by http-proxy-middleware), since I had the same problem trying to proxy SSE connections through it.
According to this issue that i found in their repository, it can be fixed this way:
const express = require('express');
const { createProxyMiddleware } = require('http-proxy-middleware');

const app = express();

app.use('/', createProxyMiddleware({
    target: 'http://localhost:3002/',
    changeOrigin: true,
    onProxyReq: (proxyRes, req, res) => {
        res.on('close', () => proxyRes.destroy());
    }
}));
app.listen(3003);

This also solved my similar issue where I was streaming a mjpeg stream from my API and the backend relies on a close event to clean up certain connections. without this the API would never receive a close callback

THANKS - This fixed my issue as well.  I am seeing it on MacOS so not a Windows issue. MacBook Pro - Model Identifier: Mac14,7 with M2 chip running on macOS 14.4.1 (23E224)
The problem only happens for me when using registry.npmjs.org/http-proxy/-/http-proxy-1.18.1
which I use in development (create-react-app).  In production (no proxy) all works as expected.

Should it be
target: 'http://localhost:3002/',
changeOrigin: true,
on: {
  proxyReq: (proxyRes, req, res) => {
    res.on("close", () => proxyRes.destroy());
  },
},

or
target: 'http://localhost:3002/',
changeOrigin: true,
onProxyReq: (proxyRes, req, res) => {
    res.on('close', () => proxyRes.destroy());
}

?


server memory increase on no service state

What version of Go are you using (go version)?

$ go version
go version go1.15.5 linux/amd64

Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
centos 7,Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz，cpu cores : 4
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN="/usr/local/go/bin"
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/root/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/go"
GOPRIVATE=""
GOPROXY="https://goproxy.io"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build129724444=/tmp/go-build"

What did you do?

a new http server.
one client connect server,server used:
select{
case <-timer.C:
{
time.reset(120s)
}
}

at this time,
if another interface called,response the client request,otherwise block 120s response a timeout error.
looks like long rotation training.

now stress testing，use 60k client request service.
after stable:
top cmd res = 3.5GB,
stop test:
at 30 min ago,top res=450M，（open GODEBUG=madvdontneed=1）,[if close madvdontneed memory down to 2G+- stabled],
and next 30min ago,top res=2GB.(no service state the memory increase 1.5GB ？？？)

What did you expect to see?
the memory stabled at 450M+-.
What did you see instead?
no service state the memory increase 1.5GB

the prometheus & pprof & centos data
prometheus：

pprof:
runtime.MemStats
Alloc = 240774520
TotalAlloc =<PHONE_NUMBER>
Sys =<PHONE_NUMBER>
Lookups = 0
Mallocs = 102905393
Frees = 102750194
HeapAlloc = 240774520
HeapSys =<PHONE_NUMBER>
HeapIdle =<PHONE_NUMBER>      -----------madvdontneed=1 not released? (madvdontneed=0 == madvdontneed=1)
HeapInuse = 245317632     ----------- inuse 240M
HeapReleased =<PHONE_NUMBER>
HeapObjects = 155199
Stack = 1343488 / 1343488
MSpan = 951320 / 34816000
MCache = 13888 / 16384
BuckHashSys = 1591611
GCSys = 111649480
OtherSys = 22303437
NextGC = 479226528
LastGC =<PHONE_NUMBER>738759502
NumGC = 472
NumForcedGC = 0
GCCPUFraction = 0.00030084105056857313
DebugGC = false
MaxRSS =<PHONE_NUMBER>

graph :
HeapInuse ~= 240M

centos top RES=1944M

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
For questions please refer to https://github.com/golang/go/wiki/Questions


Translate /docs/concepts/extend-kubernetes/_index.md in Japanese

This is a Feature Request
What would you like to be added
/docs/concepts/extend-kubernetes/_index.md Japanese translation.
Why is this needed
No /docs/concepts/extend-kubernetes/_index.md in Japanese.
Comments
Copy from en content and Update content/ja/docs/concepts/extend-kubernetes/_index.md.

take this

/language ja

/assign

/close

/unassign


Parsing NEXUS trees with undefined taxon labels does not raise error

The parser should complain when given data like:
#NEXUS

BEGIN TAXA;
    DIMENSIONS NTAX=5;
    TAXLABELS
        t1 t2 t3 t4 t5;
END;

BEGIN TREES;
    TREE 1 = (a1,(a2,(a3,(a4,a5))));
    TREE 2 = (t1,(t2,(t3,(a4,a5))));
    TREE 2 = (a1,(t2,(t3,(t4,t5))));
END;

But it does not.

Hi,
I tried to solve the problem and inside the zip file there are two possible solutions.
In the first one (NexusC, TreesC) I uncommented NexusC.taxlabels () and I changed the attributes of TreesC.Tree.init () by adding "taxlabels"; finally in Tree._parse () I added the check to verify that the labels of the tree are actually taxlabels.
In the second one (NexusC2, TreesC2) I always uncommented Nexus._taxlabels () and after the tree was created I added in Nexus._Tree () the call to a function to check the labels called check_labels () in Trees.
Nexus.zip


use url instead of  endpoint

The current config file is returning the following error
[error]: config error file="/etc/td-agent/td-agent.conf" error_class=Fluent::ConfigError error="'url' parameter is required"

Old issue. Error doesn't appear anymore. Closing.


OptimizeSwapBeforeMeasure only when last measurements

Fixes #5905

Also, the pass now rebuilds the entire circuit, rather than scanning and substituting only around swaps and measures, which would be more costly for large circuits. Can this be avoided?

The logic of a local replacement was getting hard with more "looking ahead" conditions. Now conditions are more complex like a swap followed by a measurement (in both wires), followed by an out node.
Things get even harder with #5890 on top of this one. Because I'm trying to partially preserve previous behaviour as an option in #5890, it will be possible to remove a swap mid circuit. This breaks the locality of the transformation (ie, following gates need to be moved to a different wire).
I could try to keep the structure of the pass as it was, but that will result in an incompatible pass wrt to the current OptimizeSwapBeforeMeasure or in very complicated code. In this case, probably create a new pass instead of modifying this one. What do you think?

This appears to have been obsoleted by #11413, which fixed the final-measurement checker a bit more completely.  I'll close this PR as obsolete now.


Prime build of CAPRKE2

Currently, CAPRKE2 images are built and pushed to the GitHub image registry because the Sylva project consumes them. We need to think about how we can make prime builds for it.

https://github.com/rancher/cluster-api-provider-rke2/pull/456

https://github.com/rancher/cluster-api-provider-rke2/pull/473


Widget editable when placed in readOnly dataview

Run the test project
Click on DataView - ReadOnly
Bootstrap-RTE is editable

This has to do with the test-project. The DataView - ReadOnly page use WidgetSnippet_Editable. But... You cannot set editable on the widget itself


Better custom script setup

Take current .scripts and rename it to something like .dependencies. Update path.
Next, make new folder called scripts and make sure it's on path.
Add scripts to .gitignore.
In the installation script, create the scripts folder, only if it doesn't already exist.
Now I can put scripts in there without worrying about dirtying my dotfizzles git setup.

This is actually not needed as the tar command doesn't remove, it only overwrites.
With that said, I did add a scripts folder to my path, so that would be an acceptable separation for my tastes.


artifactory_managed_user: terraform validate fails with "Attribute password string length must be at least 8, got 0"

Describe the bug
With jfrog/artifactory=11.2.0, the artifactory_managed_user fails to validate when passing in a random_password.result.
Example
resource "random_password" "main" {
  length = 24
}

resource "artifactory_managed_user" "main" {
  name              = "foo"
  email             =<EMAIL_ADDRESS>  disable_ui_access = true
  admin             = false
  profile_updatable = false
  password          = random_password.main.result
}

Gives
❯ terraform  validate
╷
│ Error: Invalid Attribute Value Length
│
│   with artifactory_managed_user.main,
│   on main.tf line 25, in resource "artifactory_managed_user" "main":
│   25:   password          = random_password.main.result
│
│ Attribute password string length must be at least 8, got 0
╵

Requirements for and issue

[x] A description of the bug
[x] A fully functioning terraform snippet that can be copy&pasted (no outside files or ENV vars unless that's part of the issue). If this is not supplied, this issue will likely be closed without any effort expended.
[ ] ~Your version of artifactory (you can curl it at $host/artifactory/api/system/version~
[x] Your version of terraform → 1.8.4
[x] Your version of terraform provider → 11.2.0

Expected behavior
The validation does not fail.
Additional context
This does not happen with jfrog/artifactory<11.2.0

@NiklasRosenstein Thanks for the report. I'll investigate.


Cannot use workflows resource create on ARM

Pre-requisites

[X] I have double-checked my configuration
[X] I can confirm the issues exists when I tested with :latest
[ ] I'd like to contribute the fix myself (see contributing guide)

What happened/what you expected to happen?
It seems that the resource creation step requires an AMD64 node to run from. It shouldn't do.
So running the below example, but adding a nodeselector to ensure it starts on arm, results in the workflow failing.
main time="2023-04-03T06:32:19.477Z" level=info msg="capturing logs" argo=true
main time="2023-04-03T06:32:19.508Z" level=info msg="Starting Workflow Executor" version=v3.4.6
main time="2023-04-03T06:32:19.511Z" level=info msg="Using executor retry strategy" Duration=1s Factor=1.6 Jitter=0.5 Steps=5
main time="2023-04-03T06:32:19.511Z" level=info msg="Executor initialized" deadline="2023-04-03 07:32:17 +0000 UTC" includeScriptOutput=false namespace=ci podName=k8s-owner-reference-rwh9g-main-1526760976 template="{\"name\":\"main\",\"inputs\":{},\"outputs\":{},\"nodeSelector\":{\
init time="2023-04-03T06:32:19.095Z" level=info msg="Starting Workflow Executor" version=v3.4.6
init time="2023-04-03T06:32:19.099Z" level=info msg="Using executor retry strategy" Duration=1s Factor=1.6 Jitter=0.5 Steps=5
init time="2023-04-03T06:32:19.099Z" level=info msg="Executor initialized" deadline="2023-04-03 07:32:17 +0000 UTC" includeScriptOutput=false namespace=ci podName=k8s-owner-reference-rwh9g-main-1526760976 template="{\"name\":\"main\",\"inputs\":{},\"outputs\":{},\"nodeSelector\":{\
init time="2023-04-03T06:32:19.139Z" level=info msg="Loading manifest to /tmp/manifest.yaml"
init time="2023-04-03T06:32:19.139Z" level=info msg="Start loading input artifacts..."
init time="2023-04-03T06:32:19.139Z" level=info msg="Alloc=6701 TotalAlloc=12554 Sys=30418 NumGC=4 Goroutines=4"
main time="2023-04-03T06:32:19.511Z" level=info msg="Loading manifest to /tmp/manifest.yaml"
main time="2023-04-03T06:32:19.512Z" level=info msg="kubectl create -f /tmp/manifest.yaml -o json"
main time="2023-04-03T06:32:19.513Z" level=warning msg="Non-transient error: fork/exec /bin/kubectl: exec format error"
main time="2023-04-03T06:32:19.513Z" level=error msg="executor error: no more retries fork/exec /bin/kubectl: exec format error"
main time="2023-04-03T06:32:19.513Z" level=fatal msg="no more retries fork/exec /bin/kubectl: exec format error"
main time="2023-04-03T06:32:20.478Z" level=info msg="sub-process exited" argo=true error="<nil>"
main Error: exit status 1

I would summise that the kubectl installation within workflows is pinned to AMD64, and should instead be dynamic depending on whether the executor pod is ARM or AMD64 (or probably windows?)
Version
v3.4.6., latest
Paste a small workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: k8s-owner-reference-
spec:
  entrypoint: main
  templates:
    - name: main
      nodeSelector:
        kubernetes.io/arch: arm64
      resource:
        action: create
        setOwnerReference: true
        manifest: |
          apiVersion: v1
          kind: Service
          metadata:
            name: "test"
          spec:
            selector:
              workflows.argoproj.io/workflow: "test"
            clusterIP: None

Logs from the workflow controller
time="2023-04-03T06:33:27.544Z" level=info msg="Update leases 200"
time="2023-04-03T06:33:28.583Z" level=info msg="Processing workflow" namespace=ci workflow=k8s-owner-reference-h5mj2
time="2023-04-03T06:33:28.584Z" level=info msg="Task-result reconciliation" namespace=ci numObjs=0 workflow=k8s-owner-reference-h5mj2
time="2023-04-03T06:33:28.584Z" level=info msg="Pod failed: Error (exit code 1): no more retries fork/exec /bin/kubectl: exec format error" displayName="k8s-owner-reference-h5mj2(0)" namespace=ci pod=k8s-owner-reference-h5mj2-main-366178901 templateName=main workflow=k8s-owner-refe
rence-h5mj2
time="2023-04-03T06:33:28.584Z" level=info msg="node changed" namespace=ci new.message="Error (exit code 1): no more retries fork/exec /bin/kubectl: exec format error" new.phase=Failed new.progress=0/1 nodeID=k8s-owner-reference-h5mj2-366178901 old.message= old.phase=Pending old.pr
ogress=0/1 workflow=k8s-owner-reference-h5mj2
time="2023-04-03T06:33:28.585Z" level=info msg="Node not set to be retried after status: Failed" namespace=ci workflow=k8s-owner-reference-h5mj2
time="2023-04-03T06:33:28.585Z" level=info msg="node k8s-owner-reference-h5mj2 phase Running -> Failed" namespace=ci workflow=k8s-owner-reference-h5mj2
time="2023-04-03T06:33:28.585Z" level=info msg="node k8s-owner-reference-h5mj2 message: Error (exit code 1): no more retries fork/exec /bin/kubectl: exec format error" namespace=ci workflow=k8s-owner-reference-h5mj2
time="2023-04-03T06:33:28.585Z" level=info msg="node k8s-owner-reference-h5mj2 finished: 2023-04-03 06:33:28.585154318 +0000 UTC" namespace=ci workflow=k8s-owner-reference-h5mj2
time="2023-04-03T06:33:28.585Z" level=info msg="TaskSet Reconciliation" namespace=ci workflow=k8s-owner-reference-h5mj2
time="2023-04-03T06:33:28.585Z" level=info msg=reconcileAgentPod namespace=ci workflow=k8s-owner-reference-h5mj2
time="2023-04-03T06:33:28.585Z" level=info msg="Updated phase Running -> Failed" namespace=ci workflow=k8s-owner-reference-h5mj2
time="2023-04-03T06:33:28.585Z" level=info msg="Updated message  -> Error (exit code 1): no more retries fork/exec /bin/kubectl: exec format error" namespace=ci workflow=k8s-owner-reference-h5mj2
time="2023-04-03T06:33:28.585Z" level=info msg="Marking workflow completed" namespace=ci workflow=k8s-owner-reference-h5mj2
time="2023-04-03T06:33:28.585Z" level=info msg="Checking daemoned children of " namespace=ci workflow=k8s-owner-reference-h5mj2
time="2023-04-03T06:33:28.585Z" level=info msg="Workflow to be dehydrated" Workflow Size=2248

Logs from in your workflow's wait container
No wait container is created.

Re-tested on 3.4.6 and this is not resolved.

https://github.com/argoproj/argo-workflows/commit/a862ea1b8aa283eefe4f879d43e358d2d15678b0 was not able to be cherry-picked in 3.4.6 due to too many conflicts.

I got same issue.

@tico24 @kahirokunn have u tried on v3.4.7+ ?


Deprecated Atom APIs will be removed June 1st

Atom will no longer load this package after June 1st without changes. There are a couple deprecations on the latest version (0.4.3) of this package:

Store package style sheets in the styles/ directory instead of stylesheets/ in the <pack-name> package
If you would like your pane item with class <ClassName> to support modified behavior, please implement a ::onDidChangeModified() method. If not, ignore this message. ::on methods for items are no longer supported.
If you would like your pane item with class <ClassName> to support title change behavior, please implement a ::onDidChangeTitle() method. ::on methods for items are no longer supported. If not, ignore this message.
Call ::getActiveTextEditor instead
atom.workspaceView is no longer available. In most cases you will not need the view. See the Workspace docs for alternatives: https://atom.io/docs/api/latest/Workspace. If you do need the view, please use atom.views.getView(atom.workspace), which returns an HTMLElement.
Use Project::getDirectories()[0]?.resolve() instead
Use TextEditor::getLastCursor() instead

Visit https://gist.github.com/benogle/6d09e295c84b717ef9b4 and search for your package name to see up-to-date deprecations.
If this package has been replaced by another package or functionality in core, please reply with this information.
See https://github.com/atom/atom/issues/6867 for more info. Thanks!

Aiming to fix with version 1.0.0 (see #26)

Fixed by #26


Fix search result pagination

The start and rows parameter that are passed as part of the search
request are passed directly to Solr on the backend. Results from Solr
may contain deleted nodes no longer in the erchef database.  Erchef will
filter such nodes from the results. Thus, a user may receive fewer rows
than they asked for. Incrementing 'start' only by the number of rows
received will then result in the next Solr response overlapping the
first, which can lead to duplicate results. In the case of a Solr
results page that was completely filtered, it would lead to an infinite
loop.
This commit changes the code to always increment by the requested page
size (args[:rows]) when it is non-nil. Incrementing by the length of the
response set is still wrong in the case when the args[:rows] is nil, but
the server doesn't give us anything else to increment by.
Fixes #4027

cc @chef/client-core
This is still problematic in the case where the user doesn't pass a rows attribute.  Perhaps we want to deprecate searches without rows specified?

:+1:

:+1:

Added a lengthy comment.

excellent comment :+1:

Merge whenever.


Doesn't charge script in page

Hi guys
I need to charge a external link (script) in the head of one page, not in all. Because I'm using Froala editor, url integration
nuxt.config.js
plugins: [
   '~plugins/vuetify',
   { src: '~plugins/socket-client', ssr: false },
   { src: '~plugins/froala', ssr: false },
   new webpack.ProvidePlugin({
     $: 'jquery',
     jQuery: 'jquery',
     'window.jQuery': 'jquery'
   })
 ],

file.vue
<script>
export default {
  data () {
    return {
      config: {
        events: {
          'froalaEditor.initialized': function () {
            console.log('initialized')
          }
        }
      },
      model: 'Edit Your Content Here!'
    }
  },
  head () {
    return {
      script: [
        { src: '//cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js', type: 'text/javascript' }
      ]
    }
  }
}
</script>

when I enter in the page the link doesn't appear.
What can i do?
thanks

Hmm, @fortil can you make a minimal demo of injecting script tag on different pages by remixing this glitch https://glitch.com/edit/#!/nuxt-hello-world?path=README.md:1:0

I have was reading about vue-meta and solved the problem, but I have a question, I use froala, but this library need jQuery global so as ready i can put script in the head, do you know somehow to put $ global into the layout or page?
thanks

@fortil How can I use Froala in Nuxt.js? I tried and failed :(


FEAT: DataFrame Mask OP Support

What do these changes do?
We add the code support for the Mask Operation in DataFrame Object.

Related issue number

Fixes #xxxx
Check code requirements

[ ] tests added / passed (if needed)
[ ] Ensure all linting tests pass

We have already implemented df.where and df.mask in python/xorbits/_mars/dataframe/indexing/where.py.


Spelling

Context
Misspellings make it harder to search for things; they make it harder for people to understand code and descriptions; and sometimes they result in bugs.
Contributor Checklist

[x] Review Contribution Guidelines
[ ] Make sure that all commits are signed off to indicate that you agree to the terms of Developer Certificate of Origin.
^ I'd rather cross this bridge near the end as it's fairly painful for my tooling to do it early:
You only (sic) have 180 commits incorrectly signed off! ...
[x] Check "Allow edit from maintainers" option in pull request so that additional changes can be pushed by Gradle team
[ ] Provide integration tests (under <subproject>/src/integTest) to verify changes from a user perspective
[ ] Provide unit tests (under <subproject>/src/test) to verify logic
[ ] Update User Guide, DSL Reference, and Javadoc for public-facing changes
[ ] Ensure that tests pass locally: ./gradlew <changed-subproject>:check

Gradle Core Team Checklist

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation
[ ] Recognize contributor in release notes

I'm happy to drop files/directories if they're not yours -- I can't figure out if subprojects/ is third party content.
I'm happy to split into, e.g. API, docs, code as requested.

@jsoref Thank you very much for the contribution! I'm quite impressed by your carefulness. Some suggestions:

Please fix the failed DCO.
Please don't put so many changes in one PR. Nobody can review 1000+ files changes. On my computer, this page even scrolls slowly because of the commit number. I'd suggest at most 10~20 files per PR.
Due to historical reason, we'd prefer not to change executer to executor. Not to mention some -Dorg.gradle.integtest.executor in system property, which is binding to our CI configurations. My suggestion would be only changing the incorrect spells in comments, local variables, etc.. Please don't touch the code which affects the program functionality.

We'd be happy to review and merge this when you split it into smaller pieces. Out of curiosity, did you do the spelling check manually or by some automatic tools?

I omitted my standard header, but here it is:
Generated by https://github.com/jsoref/spelling f; to maintain your repo, please consider fchurn
In short, my tool identifies candidates, I manually select and inspect candidates, and corrections are chosen by me manually (although I often let Google suggest the correction instead of typing it myself as it has a lower typo rate).
I'll look into splitting this, but probably not before Sunday.
Splitting on file count is doable, and certainly if I'm skipping things that impact functionality splitting that way entails less risk to splits because things are less dependent. But do note that it's generally easier for me to have all instances of a word correction together as people generally object to a correction as a whole (e.g. executor).
I'll fix the DCO of course.
As an aside, 180 is below the 250 commit cut off that GitHub has and I'm slowly merging what was effectively 350 commits split into pieces.

Thanks! I'm not saying splitting on file count, I'm just suggesting splitting to a reasonable PR size - for example, if you prefer correcting word by word (i.e. each wrong word per PR) and probably a wrong word appears in 100 files - that's acceptable, too.
I'd love to help you improve the spelling and make sure nothing broken.

(Each wrong word per PR would be 180 PRs, which is a bit much let's see what 10-20 words looks like.)

DCO Successful in -1m — DCO that seems buggy.


Cleaned a bit the code

Added a file to count the total length of the test files

Optimisation of conditionnal jumps leads to a 10% decrease in asm size


Crowdsourced data?

What are the standards to follow for data sources?
For example, an app I work on consumes this repo and we've started soliciting information on missing office hours from users. We got the first contribution yesterday, and it seems the info may have been obtained by calling the office. I can't find the hours on the official website.
So, are we limiting this repo to data that can be verified by an official web source? Or for non-required fields can we rely on crowdsourcing and/or verbal confirmation?
Thanks!

I think we could include crowdsourced info for fields that have no other public source.
However, lacking a way to verify or maintain this data, I wouldn't necessarily expect it to survive a bulk or automated update.


Add tests for the articulated hand teleport motion

Describe the problem
Add tests for ensuring that the articulated hand teleport motion works as expected once the teleport motion is integrated into the main articulated hand as per #8509

closed via #8977

closed via #8977


Update to ZIO 1.0.3 and zio-cats-interop <IP_ADDRESS>

Blocked by https://github.com/typelevel/fs2/issues/2076


Bump search-api unicorns to 48 per machine

I want to reduce the number of machines we have in production as it's costing us money. Staging has 36 unicorns running on machines with half the CPU and RAM of those in production and seems fine when dealing with replayed production traffic.
The machines are under low load, and there's plenty of headroom in terms of CPU and memory used. Example machine on Grafana
This app is not particularly CPU intensive as it offloads most things to Elasticsearch or SageMaker, and does some processing of results on the way back through.
I propose to ratchet this up in stages (reducing the number of machines as we go), to potentially halve the number of machines eventually while retaining our pool of workers.

Yep, that was my plan exactly (to get up to ~80). I'll probably be bolder on the next jump 😬


Update tests

This is my exploration for looking into #153. It looks like the tests are failing for Ember >= 2.1. I don't have time right now but I can pick this up later.

How is this coming along?  Need any help with it?

It would be great if you could pick this up. I'm not using Ember 2.x yet because I still need IE8 support so it's not a high priority for me. Thanks!


VSTS CLI - potentially dangerous request.path value was detected from the client

When i am using command "vsts code pr list", it is giving me below error
A potentially dangerous request . Path value was detected from the client. Operation returned an invalid status code of 400.

@jigneshc Thanks for reporting this.  This most likely means that a character or a set of characters that is commonly used in XSS attacks was given in a value you supplied to one of the arguments to the command.
Can you send us the full command you used that repros the issue?  Before sending you need to scrub any private data in a way that we can still see the potentially dangerous strings in the arguments.  Once we have that information, we should be able to repro, and can double check  that we are escaping the value correctly or whether the set of characters just needs to be avoided.
You can find more information here:
https://msdn.microsoft.com/en-us/library/hh882339(v=vs.110).aspx

@tedchamb I am using command "vsts code pr list" to get all pull request.
I guess I was giving half command so when I am using command "vsts code pr list --instance https://jigneshc.visualstudio.com --project WebApplication" that time I am getting all pull request.

Thanks @jigneshc , this is helpful information.
When you do not supply an instance, the tool will try to determine the instance by the git remote associated with your current working directory.  If there is no git remote associated with the current working directory, then it will see if you have a default instance and project configured for the tool.  If there is no default configured, then you will get an appropriate error, stating that you must specify the instance and/or project.  Since you got the error message that you described, this means that either there is a git remote for the current working directory or you have a default configured.
The first thing to do is to run the command with the --debug argument.  When you do this the actual url that you are using will show in the output.  The url being used should be invalid in some way, hence the error message.
To see where this url is coming from, run the following command from the working directory where you can repro the issue: git remote -v  Check the results of that command and if there are any remotes listed, see if there are any unusual strings in the url path.
The next thing to check is to run vsts configure --list, and see if you have set default values for instance and/or project.  If they are set ensure you have set them to correct values.
If these values are incorrect you can run the following to reset them:
vsts configure --defaults instance=https://<account>.visualstudio.com
vsts configure --defaults project=<projectName>
Please let me know if this helps you solve the issue.  If this does not solve your issue, please let me know the results of the commands above after scrubbing any private data, and I will investigate further.
Thanks,
Ted

Thank you @tedchamb above solution is resolving my issue.
Actually, By mistake I set the default project as instance, that's why I am getting potentially damage error.
I check the default by given command:
vsts configure --list
After that I set the default project name using command:
vsts configure --defaults project=
And run the below command:
vsts code pr list
Now it is showing me list of pull request.
Thanks a lot.


Add "help wanted" issues link that filters out "in progress" issues to contributing page

Description
This link takes advantage of the GH search syntax by using the - operator. By adding -label:"in progress", we filter out everything with that label.
Other information

Checklist

[x] My pull request has a descriptive title (not a vague title like Update index.md).
[x] My pull request targets the master branch of the repository.
[x] My commit messages follow best practices.
[ ] I added tests for the changes I made (if applicable).
[ ] I added or updated documentation (if applicable).
[x] I tried running the project locally and verified that there are no
visible errors.

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

Thanks @akmadian!

Sent from iPhone

El 21/02/2020, a las 3:05 a. m., Ari Madian<EMAIL_ADDRESS>escribió:

Description
This link takes advantage of the GH search syntax by using the - operator. By adding -label:"in progress", we filter out everything with that label.
Other information
Checklist
My pull request has a descriptive title (not a vague title like Update index.md).
My pull request targets the masterbranch of the repository.
My commit messages follow best practices.
I added tests for the changes I made (if applicable).
I added or updated documentation (if applicable).
I tried running the project locally and verified that there are no
visible errors.
Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive,Suite D4700, San Francisco, CA, 94129
Everyone is permitted to copy and distribute verbatim copies of this document, but changing it is not allowed.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or.
(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or.
(c) The contribution was provided directly to me by some otherperson who certified
(a), (b) or (c) and I have not modified it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.
You can view, comment on, or merge this pull request online at:
https://github.com/creativecommons/creativecommons.github.io-source/pull/181
Commit Summary
Add "help wanted" issues link, that filters out "in progress" issues
File Changes
M content/contributing-code/contents.lr (1)
Patch Links:
https://github.com/creativecommons/creativecommons.github.io-.source/pull/181.patch
https://github.com/creativecommons/creativecommons.github.io-.source/pull/181.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub. or unsubscribe.
Sent from iPhone

El 21/02/2020, a las 3:05 a. m., Ari Madian<EMAIL_ADDRESS>escribió:

Description
This link takes advantage of the GH search syntax by using the - operator. By adding -label:"in progress", we filter out everything with that label.
Other information
Checklist
My pull request has a descriptive title (not a vague title like Update index.md).
My pull request targets the master branch of the repository.
My commit messages follow best practices.
I added tests for the changes I made (if applicable).
I added or updated documentation (if applicable).
I tried running the project locally and verified that there are no
visible errors.
Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
You can view, comment on, or merge this pull request online at:
https://github.com/creativecommons/creativecommons.github.io-source/pull/181
Commit Summary
Add "help wanted" issues link, that filters out "in progress" issues
File Changes
M content/contributing-code/contents.lr (1)
Patch Links:
https://github.com/creativecommons/creativecommons.github.io-source/pull/181.patch
https://github.com/creativecommons/creativecommons.github.io-source/pull/181.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Wave Sort Algorithm

Description:
The wave sort works on the principle as follows :
arr[0] >= arr[1] <= arr[2] >= arr[3] <= arr[4]
this sorts the array in a wave form.
Checklist:

[ ] Contributor in GSSoC-ext
[ ] Want to work on it

Can I work on this ? Could you assign this task and the labels for the task @pankaj-bind

Can you please add the level for this @pankaj-bind

@Prarthana-35 you can start


Adding the HCMA optimisation algorithm

The HCMA optimisation algorithm is a very promising optimisation algorithm, developed by Ilya Loshchilov et al. (http://dl.acm.org/citation.cfm?id=2482696), that should not be missing in our library.
The pseudo-code for this algorithm is as follows:

Run the STEP optimisation algorithm until there is not improvement between two consecutive iterations or an acceptable solution was found.
Run the NEWUOA optimisation algorithm for 10 * numberOfDimensions iterations or until an acceptable solution was found (whichever comes first).
Run s∗aACM-ES-k until the optimisation process is terminated or an acceptable solution was found (whichever comes first).

As it is a hybrid of three other optimisation algorithms (STEP, NEWUOA and s∗aACM-ES-k), we should implement them first, so each algorithm can also individually be invoked. Also, we should implement BOBYQA instead of NEWUOA, as we favour bound constrained problems, instead of unconstrained ones.

We voted against a combined algorithm, as this is not yet implemented, binds a lot of manpower and will even become obsolete in the next version.
However, the individual algorithms CMA-ES and BOBYQA will be added.


Gather VCFs tmp dir space

I have occasionally seen that large datasets run out of temporary directory space for the sort and gather VCF step. After some digging, I believe this is because the Java tmp dir is hard-coded to /tmp, and if you happen to be running on a node without much space in /tmp, you'll have issues.
The Java tmp directory can be specified either with the _JAVA_OPTIONS environment variable or as part of the command line, so we have at least two options to address this.

Add a note to the readme to have users add export _JAVA_OPTIONS=-Djava.io.tmpdir=/new/tmp/dir to the run_pipeline.sh script if they are running on a large dataset that might have issues, or add this ourselves to the default run script.
Add -Djava.io.tmpdir=/path/to/tmpdir to the gatk commands where temp space may be an issue, pulling the tmp dir location from the config file.

There are probably option options as well. Thoughts?

Is there any downside to option #2? Especially in cluster environments it seems like this will be a common issue

Only in that there could be performance impacts of using a networked scratch drive as opposed to local attached storage. But, if someone has a big enough direct attached scratch they can just specify that in the config, I guess.


Arduino ... another problem (error)

Hello again ... during compilation I get an error..SbusRx / SbusTx does not name a type ... why? I would like to ask for an explanation as a child because I am very beginner ... best regards :-)
(I added the etl library!)

My best guess is that the sbus-arduino library wasn't installed correctly. Is it in the Arduino/libraries directory? If you downloaded the zip, did you rename the folder to sbus-arduino?

the library is in the Arduino / library folder.. it is called "sbus-arduino-main"
now tried to rename it to "sbus-arduino" .. no change.
I uninstalled and reinstalled and still the same error .. "not name a type" ...

After you rename it to "sbus-arduino" you might need to close and restart Arduino so that it refreshes its list of libraries.

Unfortunately no changes ... after renaming and closing the IDE multiple times, the same problem occurs ... :-(

At this point, I'm not sure what to try. It compiles fine for me when targeting that board. You may want to ask on some Arduino forums.

Ok ok :-)
I will try to update my Arduino IDE version to the newest one and see if it will change something ... I will also ask on the forums ...
Thank you very much for your help and the time you gave me! :-)
greetings :-)

Ok ... my IDE version is 1.8.8
now I downloaded the latest 1.8.13
and surprisingly it compiles normally! :-)
after re-compiling on IDE 1.8.8 it also works! ...
is it possible to run a link on a software Uart? (SoftwireSerial library)?
I need to change the hardwareserial library to softwareserial in function and it will work?

Unfortunately it does not work ... is it possible to use pins other than the built-in Uart?

No, it only works with the HardwareSerial.


Missind Descrption Issue #11

I have added the description on the readme.md.  @skmirajulislam please check.

@skmirajulislam please check this. Is this okay?

okay

@skmirajulislam please check these updates


Template "@Var:" is not defined

Can be replicated if using bad shortcode:
[map-leaflet lat=51.505 lng=-0.09 zoom=13 mapname=neighbourhood variant=neighbourhood scale ]
[a-markers markerColor="darkblue"
iconColor="white"
]
[a-markers markerColor="beige" iconColor="darkpurple"]

It's not really possible to allow for all possibility of bad shortcodes. If replicates with a good shortcode, then I can see what the problem is. Otherwise, I'm closing this issue. Thanks for the attention, sorry for the delay in responding


@/charterafrica sourceAFRICA Integration Single Document Rendering

Description
This PR implements the components for rendering a single document.
Fixes #380
Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Screenshots

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation

I think SourceAfricaDocumentViewer, EmbeddedDocumentViewer, etc., are more descriptive names than SingleDocumentation @kelvinkipruto

@koechkevin

Don't forget to review this @koechkevin

Is this good to go @kelvinkipruto ?

Is this good to go @kelvinkipruto ?

@kilemensi yes.


Question about the data

Hi @Slonymelion, thank you for the great work. Can I ask if the data used in the research is available?

Sorry, the data is proprietary and we can’t release it to the public.
--
From: Thanh Vu @.>
Date: Wednesday, October 19, 2022 at 8:56 AM
To: 3mcloud/medical_conversation_summarization @.>
Cc: Longxiang Zhang @.>, Mention @.>
Subject: [EXTERNAL] [3mcloud/medical_conversation_summarization] Question about the data (Issue #4)
Hi @Slonymelionhttps://github.com/Slonymelion, thank you for the great work. Can I ask if the data used in the research is available?
—
Reply to this email directly, view it on GitHubhttps://github.com/3mcloud/medical_conversation_summarization/issues/4, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHIOPCGJAFTTS4CL5QNTSVTWD7VWNANCNFSM6AAAAAARJDBFS4.
You are receiving this because you were mentioned.Message ID: @.***>


mtime-based TLF sorting and use SimpleFS fav API

Commits are individually reviewable.
@keybase/kbfs-hackers for Go code, and @keybase/react-hackers for JS.

I think I know what went wrong with tests. Will fix. Untagging kbfs hackers now

Question: does the GUI need invalidation notifications when the mtime of an existing favorite changes? Seems like that would need a bit more work -- the edit history code could invalidate favorites or update the mtime directly perhaps.

hmm without such notification, does it mean as long as there's no other favorites changes, mtime can be cached up to a week? That sounds bad. If it's more work, perhaps we can also just make it expire more often? Edit history triggered invalidation sounds good to me too.

hmm without such notification, does it mean as long as there's no other favorites changes, mtime can be cached up to a week? That sounds bad. If it's more work, perhaps we can also just make it expire more often? Edit history triggered invalidation sounds good to me too.

Yes, the mtimes would be cached up to a week, which is obviously bad.  If the GUI isn't doing something to force a refresh whenever switching into that tab or something, we should probably hook into the edit history to make it do something.  But I'm ok with that being a separate PR as long as we get it in before releasing this to the public.

OK; I'd prefer to get this in first and do that in a separate PR. If we fail to get that one in before next release we can feature flag off mtime based sorting in GUI.

@strib ready for another look!

@keybase/react-hackers bump! Go side is approved.

seems weird to me that "older first" shows empty TLFs at the top. Any thoughts on this?

I think this is because those have a Mtime of 0. Good point, and I guess we can also make them always appear in the end. But then that gives an impression that they don't exist if you have a lot of TLFs. So I'm a bit torn on which way to go.

I'm getting some bouncing-around behavior as sync states change. Might be a sync bug? If you're not experiencing this, I'm willing to call it that and debug it with offline mode.

Hmm by bouncing-around do you mean the affected TLF bounces up and down? We don't have the Mtime-triggered cache invalidation yet, so that could be related. It seems we could wait until that's in, and it'll be easier to debug.

@jakob223 I was suspecting the reducer to have a bug that could have caused the "bouncing" behavior that you saw, but didn't find any. Although I did realize I missed tlf.conflict when updating updateTlf, so pushed another commit for it. PTAL thanks!


CUJ Testing for Beta v2 - Creator can Apply or Save a Color from/to Their Preset Library

Feature Description
In preparation for the Beta 2 release we would like to have validation and confirmation of the CUJ functionality detailed in
https://github.com/google/web-stories-wp/issues/1629

[x] Click to apply a color to an element
[x]  Save a color to presets
[x]  Delete color preset

Verified in QA


Hot fix pypi

hot fix changed python_requires attribute in setup.py
hot fix frozen python build packages version

Codecov Report

Merging #69 (abe5cfb) into main (26a3220) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #69   +/-   ##
=======================================
  Coverage   99.33%   99.33%
=======================================
  Files         132      132
  Lines        4460     4460
  Branches       94       94
=======================================
  Hits         4430     4430
  Misses         22       22
  Partials        8        8

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Graph sorting inflates StringIndex size

Describe the bug
The size of the StringIndex increases if grap.do_sort is enabled.
Size comparison of string_index_vals with austria-latest.osm.pbf:

unsorted: 6.1MB
sorted: 8.1MB

To Reproduce
Run an import with graph.do_sort: false and one with graph.do_sort: true and compare the size of the resulting string_index_vals.
Expected behavior
Sorting the graph shouldn't impact the StringIndex size.
See: https://discuss.graphhopper.com/t/with-graph-do-sort-getting-too-many-names-are-stored-currently-limited-to-int-pointer-error/6091

This is sadly not fixed by 48d2c93


Sample requested

I'm embarrassed to ask but...   can we have a small (javascript) sample of using the native WebSocket connection to read User specific messages?  As messages published using WebPubSubServiceClient's SendToUserAsync?
Having problems finding a good precedent.
Thanks in advance,

Wow. of course, as soon as I post this, I figure it out.
Trick is to use GenerateClientTokenOptions, like they do here for permissions.  I'm using this just for syntax:
https://docs.microsoft.com/en-us/azure/azure-web-pubsub/reference-json-webpubsub-subprotocol
let service = new WebPubSubServiceClient("[ConnectionString]",hub);
let token = await service.getClientAccessToken({ "userId" : "[YourUserIdHere" });
let ws = new WebSocket(token.url);


Implement usage of 'or' on an assignment

Summary or solution description
I couldn't find how this type of operation was called on Python, but this is called a Elvis Operator
How to Reproduce
https://github.com/CityOfZion/neo3-boa/blob/4d1558cd0f84a142353aa8f71e1bd6f82658942a/boa3_test/test_sc/variable_test/ElvisOperatorStrParam.py#L1-L7
Tests
https://github.com/CityOfZion/neo3-boa/blob/4d1558cd0f84a142353aa8f71e1bd6f82658942a/boa3_test/tests/compiler_tests/test_variable.py#L1035-L1052
Platform:

OS: Windows 10 x64
Python version: Python 3.11

Task linked: CU-864e5k912 other = s or "some default value"


Add PBS Pro executor

@benclifford has a prototype targeted for being production quality

What is the status with this?

There's a PR here. I guess I'm happy enough for it to be merged now for people to start using, but it has some TODOs still in there (eg to do with comprehensively dealing with all pbs status codes) https://github.com/ExaWorks/psi-j-python/pull/140

Closing because #140 was merged.


fixing bug with overwriting .env.development

There is a addresses two small bugs in the CLI init process

an existing .env.development file will be overwritten and lose existing values
project_env_vars will be overwritten by the subsequent call to write the REGISTRATION_CUSTOM_FIELDS block

Should we also check if REGISTRATION_CUSTOM_FIELDS is already in .env.development and override that specific row if it's present so we don't end up with two REGISTRATION_CUSTOM_FIELDS in the .env.development file?

I think we could. Let me write a small function to handle when we want to update an environment value.
Right now though it looks like  people are barred from rerunnign init if the project has already been init'd once.
However, this might be useful to have for a feature to "refresh" an initialization.. when perhaps you update something in the cli and you don't want to have everyone manually enter in something into the .env file but rather run
nhost refresh
I'll go ahead and put that in here so that it will be in place.

@elitan ok this has been updated to include a function for setting an environment variable in the file.. and I have updated the calls for the env generation section where they all call this function to ensure nothing existing is overwritten .. and the existing values are just updated.. .
Should be able to refactor out the .env portion of it so that it could be used in something like a 'refresh' function ... so maybe a future cli upgrade process would involve.. upgrading the cli package and then refeshing environment variables and such


Navigation bar fixes (Logo + fonts + spaces)

Also, might look better to horizontally align the lakeFS logo text and the other content text


Training and eval have the same error. Never had before

2023-02-17 05:47:39 | ERROR    | yolox.core.launch:98 - An error has been caught in function 'launch', process 'MainProcess' (10524), thread 'MainThread'<PHONE_NUMBER>72224):
Traceback (most recent call last):
File "tools/train.py", line 137, in
launch(
└ <function launch at 0x7ff49f6b5310>

File "/content/YOLOX/yolox/core/launch.py", line 98, in launch
main_func(*args)
│          └ (╒═══════════════════╤═══════════════════════════════════════════════════════════════════════════════════════════════════════...
└ <function main at 0x7ff4906bdc10>

File "tools/train.py", line 118, in main
trainer.train()
│       └ <function Trainer.train at 0x7ff48c2e5670>
└ <yolox.core.trainer.Trainer object at 0x7ff48c2f0580>
File "/content/YOLOX/yolox/core/trainer.py", line 75, in train
self.before_train()
│    └ <function Trainer.before_train at 0x7ff48c2ee040>
└ <yolox.core.trainer.Trainer object at 0x7ff48c2f0580>
File "/content/YOLOX/yolox/core/trainer.py", line 157, in before_train
self.prefetcher = DataPrefetcher(self.train_loader)
│                 │              │    └ <yolox.data.dataloading.DataLoader object at 0x7ff46ed62d00>
│                 │              └ <yolox.core.trainer.Trainer object at 0x7ff48c2f0580>
│                 └ <class 'yolox.data.data_prefetcher.DataPrefetcher'>
└ <yolox.core.trainer.Trainer object at 0x7ff48c2f0580>
File "/content/YOLOX/yolox/data/data_prefetcher.py", line 21, in init
self.preload()
│    └ <function DataPrefetcher.preload at 0x7ff48fcf5790>
└ <yolox.data.data_prefetcher.DataPrefetcher object at 0x7ff46ed62df0>
File "/content/YOLOX/yolox/data/data_prefetcher.py", line 25, in preload
self.next_input, self.next_target, _, _ = next(self.loader)
│                │                             │    └ <torch.utils.data.dataloader._MultiProcessingDataLoaderIter object at 0x7ff46ed62af0>
│                │                             └ <yolox.data.data_prefetcher.DataPrefetcher object at 0x7ff46ed62df0>
│                └ <yolox.data.data_prefetcher.DataPrefetcher object at 0x7ff46ed62df0>
└ <yolox.data.data_prefetcher.DataPrefetcher object at 0x7ff46ed62df0>
File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/dataloader.py", line 628, in next
data = self._next_data()
│    └ <function _MultiProcessingDataLoaderIter._next_data at 0x7ff49fd264c0>
└ <torch.utils.data.dataloader._MultiProcessingDataLoaderIter object at 0x7ff46ed62af0>
File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/dataloader.py", line 1333, in _next_data
return self._process_data(data)
│    │             └ <torch._utils.ExceptionWrapper object at 0x7ff480014e20>
│    └ <function _MultiProcessingDataLoaderIter._process_data at 0x7ff49fd265e0>
└ <torch.utils.data.dataloader._MultiProcessingDataLoaderIter object at 0x7ff46ed62af0>
File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/dataloader.py", line 1359, in _process_data
data.reraise()
│    └ <function ExceptionWrapper.reraise at 0x7ff52010a040>
└ <torch._utils.ExceptionWrapper object at 0x7ff480014e20>
File "/usr/local/lib/python3.8/dist-packages/torch/_utils.py", line 543, in reraise
raise exception
└ TypeError('Caught TypeError in DataLoader worker process 0.\nOriginal Traceback (most recent call last):\n  File "/usr/local/...
TypeError: Caught TypeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/_utils/worker.py", line 302, in _worker_loop
data = fetcher.fetch(index)
File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/_utils/fetch.py", line 58, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/_utils/fetch.py", line 58, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/content/YOLOX/yolox/data/datasets/datasets_wrapper.py", line 120, in wrapper
ret_val = getitem_fn(self, index)
File "/content/YOLOX/yolox/data/datasets/mosaicdetection.py", line 93, in getitem
img, _labels, _, img_id = self._dataset.pull_item(index)
File "/content/YOLOX/yolox/data/datasets/voc.py", line 208, in pull_item
img = self.read_img(index)
TypeError: decorator() takes 1 positional argument but 2 were given

i have the same problem, have you solved it?

We have fixed this bug in #1615, plz pull the latest code

i have the same problem, have you solved it?

They fixed the bug. I think we could try the latest version

ok，thanks for you guys


Increment version for managedserviceidentity releases

Increment package version after release of Azure.ResourceManager.ManagedServiceIdentities

API change check
API changes are not detected in this pull request.

/check-enforcer override

Failure is unrelated to these changes; merging.


Issue selecting time slices

Selecting time slices of dataset using dataset's own dimension
This might not be the correct place for this issue, but I was somewhat surprised to find that I couldn't use a dataset's own time dimension to index. The sel works as expected when explicitly passing a pandas.datetime object but throws an error (reproduced below) when selecting using the dataset's own time dimension.
Working example
import xarray as xr
import pandas as pd
import numpy as np

ds = xr.Dataset({'example': (['time'],  np.arange(0, 15))},
                 coords={'time': pd.date_range(pd.datetime(2011, 6, 1),
                                               pd.datetime(2011, 6, 15), freq='1D')})

# This is not an error
ds.sel(time=slice(pd.datetime(2011, 6, 1), pd.datetime(2011, 6, 6)))

# This is an error
ds.sel(time=slice(0, 5))

Problem description
I expected to be able to index a dataset using it's own time dimension or the time dimension of another dataset.
I would expect the operation to work like:
Expected Output
import xarray as xr
import pandas as pd
import numpy as np

ds = xr.Dataset({'example': (['x'],  np.arange(0, 15))},
                 coords={'x': np.arange(0, 15)})

# Neither of the below fails
ds.sel(x=slice(0, 15))
ds.sel(x=slice(ds.x[0], ds.x[-1]))

where both operations are identical. I know I could use the isel method here, but the current behavior was very unexpected.
Output of xr.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Darwin
OS-release: 15.6.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
xarray: 0.10.1
pandas: 0.20.3
numpy: 1.13.1
scipy: 0.19.1
netCDF4: 1.2.4
h5netcdf: None
h5py: 2.7.0
Nio: None
zarr: None
bottleneck: 1.2.1
cyordereddict: None
dask: 0.10.0
distributed: None
matplotlib: 2.0.2
cartopy: None
seaborn: 0.7.0
setuptools: 38.5.2
pip: 9.0.1
conda: 4.4.11
pytest: 2.9.2
IPython: 6.2.1
sphinx: 1.4.1

Thanks for the report and the code to reproduce! This is a duplicate of https://github.com/pydata/xarray/issues/1240

مكسيكو سيتي


CWindowAndroid is a mess and needs fixing

TODOs:

fix https://github.com/Devsh-Graphics-Programming/Nabla/blob/window_resizing/include/nbl/ui/CWindowAndroid.h#L33 otherwise it crashes when getManager is invoked
better class hermetization, why we have stuff that should not be available by user placed in public section?

Examples/Engine doesn't need to run, just needs to compile.
We wont do any testing with running samples until we can get a hand on a Vulkan 1.1 x86 Android device.

screw android (for now)


Open from CouchDB - Error 404: missing

Hello everyone,
I have a problem, when I want to open some document from CouchDB, I'm still getting "Error 404: Missing". But when I use "Open by ID..." and then paste a specific DocumentID, it works without any problems.
When it comes to "Save on CouchDB, it works just fine too.
This is what I have in my CouchDB URL:
http://<IP_ADDRESS>:5984/test_database

If it helps, I followed this setup tutorial - https://github.com/benweet/stackedit/blob/master/doc/couchdb-setup.md

My configuration of cors and httpd from default.ini:
[httpd]
port = 5984
bind_address = <IP_ADDRESS>

authentication_handlers = {couch_httpd_oauth, oauth_authentication_handler}, {couch_httpd_auth, cookie_authentication_handler}, {couch_httpd_auth, default_authentic$
default_handler = {couch_httpd_db, handle_request}
secure_rewrites = true
vhost_global_handlers = _utils, _uuids, _session, _oauth, _users
allow_jsonp = false
; Options for the MochiWeb HTTP server.
;server_options = [{backlog, 128}, {acceptor_pool_size, 16}]
; For more socket options, consult Erlang's module 'inet' man page.
;socket_options = [{recbuf, 262144}, {sndbuf, 262144}, {nodelay, true}]
socket_options = [{recbuf, 262144}, {sndbuf, 262144}]
log_max_chunk_size = 1000000

enable_cors = true

[cors]
credentials = false
; List of origins separated by a comma, * means accept all
; Origins must include the scheme: http://example.com
; You can’t set origins: * and credentials = true at the same time.

origins = *
; List of accepted headers separated by a comma
; headers =
; List of accepted methods

methods = GET, HEAD, PUT, POST

; Configuration for a vhost
;[cors:http://example.com]
; credentials = false
; List of origins separated by a comma
; Origins must include the scheme: http://example.com
; You can’t set origins: * and credentials = true at the same time.
;origins =
; List of accepted headers separated by a comma
; headers =
; List of accepted methods
; methods =

And configuration of cors and httpd from local.ini:
[httpd]
enable_cors = true

port = 5984
bind_address = <IP_ADDRESS>

; Options for the MochiWeb HTTP server.
;server_options = [{backlog, 128}, {acceptor_pool_size, 16}]
; For more socket options, consult Erlang's module 'inet' man page.
;socket_options = [{recbuf, 262144}, {sndbuf, 262144}, {nodelay, true}]

; Uncomment next line to trigger basic-auth popup on unauthorized requests.
;WWW-Authenticate = Basic realm="administrator"

; Uncomment next line to set the configuration modification whitelist. Only
; whitelisted values may be changed via the /_config URLs. To allow the admin
; to change this value over HTTP, remember to include {httpd,config_whitelist}
; itself. Excluding it from the list would require editing this file to update
; the whitelist.
;config_whitelist = [{httpd,config_whitelist}, {log,level}, {etc,etc}]

[cors]
origins = *
methods = GET, HEAD, PUT, POST

I'd be more than grateful for every help. Thanks in advance.

This fork https://github.com/dtu-compute/dtu-enote-stackedit have been modified to have working https and credentials for couchdb. The fork is not indented for general purpose, but the couchdb fixes are.

Support for CouchDB has been dropped in the v5 (https://stackedit.io/app), at least for now.


example shell script to locally create customized disk image

What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Awesome, thanks :100: !


Do not use omni source in go files

I'd say we should add this to the example configuration so that deoplete doesn't use the omnifunc. It results in weird behaviour for me like the completions being inserted and then quickly deleted and it doesn't properly respect auto_completion_start_length. In fact there is no point to this plugin with the omni stuff enabled. Instead add this to the example config file.
let g:deoplete#sources = {}
let g:deoplete#sources.go = ['go']

This will make sure only that only the go source is used in go files.

Never mind I have a better way to do this, i'll close this issue.


Automatically restart PowerToys after updating

📝 Provide a description of the new feature
I would like PowerToys to restart automatically after updating or at least prompt me to do so.
Updates are super frequent, which I'm grateful for, but diving into the start menu to reopen the application is getting somewhat tedious.
Thanks again for the awesome tools! Keep up the great work!

If you'd like to see this feature implemented, add a 👍 reaction to this post.

The auto 0.20 auto updater already does that, is not working for you?

Looks like I might have gotten stuck on v0.18.1

I'm manually installing 0.20.1 currently and will follow up if I have any further trouble. Thank you!

Closing for now, reopen if needed.


allow gpu when using an empirical prior for SNPE

Resolves #728

Codecov Report

Merging #730 (d725de0) into main (b7f0e9e) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #730   +/-   ##
=======================================
  Coverage   74.25%   74.25%
=======================================
  Files          79       79
  Lines        6033     6033
=======================================
  Hits         4480     4480
  Misses       1553     1553

Flag
Coverage Δ

unittests
74.25% <100.00%> (ø)

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

Impacted Files
Coverage Δ

sbi/inference/snpe/snpe_base.py
88.81% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


fixed #1319 : Header Element and styles fixed

Before

Header components were uneven in size and there were no hover effect

After

fixed the size of all header component
fixed the hover effect of all components
there was no hover effect on two of them so i fixed.

@vaibhavrajharsh Please resolve the conflicts in the mentioned files. Ensure you pull all the latest changes before pushing your feature/bug fixes to the main branch. After resolving the conflicts, please open a new PR for review.
Thank you!


error: no member named 'SetFont' in 'MyCtrl' in GUI Tutorial Gui21

In GUI Tutorial Gui21, when I right click to add "User class", the default widget properties are as follows:

If I set "SetFont()" and "SetInk()" in Gui21.lay like this:
LAYOUT(Gui21Layout, 200, 100)
	ITEM(MyCtrl, myctrl, SetFont(StdFont(11)).SetInk(Black).LeftPosZ(44, 112).VSizePosZ(32, 32))
END_LAYOUT

It compiles with error:
error: no member named 'SetFont' in 'MyCtrl'

I have to remove "SetFont()" and "SetInk()" in Gui21.lay to get it compiled.
So what are they for of these widget properties?

Well, it is sort of gray area, these are leftover from normal widgets, the idea being that either your widget knows them or you leave them unused.
Should I try to remove them?

OK. Maybe the gray area is not prominent. I think we can simply remove them or set them read-only if we can't use them. They are misleading as these properties are editable.

Done.


Bugfix/fix doc build

Signed-off-by: reiase<EMAIL_ADDRESS>

Codecov Report

Merging #1481 (24c4524) into main (61519fa) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1481   +/-   ##
=======================================
  Coverage   68.03%   68.03%
=======================================
  Files         314      314
  Lines       17890    17890
  Branches     2938     2938
=======================================
  Hits        12172    12172
  Misses       4886     4886
  Partials      832      832

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 61519fa...24c4524. Read the comment docs.

/lgtm


Feature dsl

Codecov Report

Merging #6 into develop will increase coverage by 0.22%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop       #6      +/-   ##
===========================================
+ Coverage    99.03%   99.25%   +0.22%
===========================================
  Files           23       35      +12
  Lines          208      270      +62
===========================================
+ Hits           206      268      +62
  Misses           2        2

Impacted Files
Coverage Δ

Plug/DSL/Rule+Negate.swift
100% <100%> (ø)

Plug/DSL/Builder+RemovePlugin.swift
100% <100%> (ø)

Plug/DSL/Rule+None.swift
100% <100%> (ø)

Plug/DSL/Builder+RemoveRule.swift
100% <100%> (ø)

Plug/DSL/Builder+Build.swift
100% <100%> (ø)

Plug/DSL/Builder+AddRule.swift
100% <100%> (ø)

Plug/DSL/Builder+RemoveChild.swift
100% <100%> (ø)

PlugTests/PluginPointBuilderTests.swift
100% <100%> (ø)
:arrow_up:

Plug/DSL/Builder+AddChild.swift
100% <100%> (ø)

Plug/DSL/Rule+All.swift
100% <100%> (ø)

... and 15 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 5a21622...5509f66. Read the comment docs.


[BUG] Can not retrieve audio on iOS

final PermissionState _ps =
                    await PhotoManager.requestPermissionExtend();
                if (_ps.isAuth) {
                  final List<AssetPathEntity> paths = await PhotoManager.getAssetPathList(type: RequestType.audio,);
                }

It is not returning the audio AssetPathEntity. It is working fine with android.
I have tried with iOS 15. Mp3 files are in local storage.

This is the limitation on the iOS platform. Closing as it won't be fixed.


Create a-coruña.json

Global Day of Code Retreat 2018 A Coruña - Spain

Wecolme @BorjaL nice to e-meet you for another year.

Thank you @jdvr!


When decorating a class, The Around decorator only works on methods modified by @Path

Is your feature request related to a problem? Please describe.

The Around decoration modifier only works for methods modified by @Path when decorating the class, but now other ordinary methods in the controller will also be wrapped by Around before execution, and a promise is forced to return.

like this
import { BaseController, Path, Around } from '@umajs/core';
import { method } from '../aspect/method.aspect';

@Around(method)
@Path('/aroundTest')
export default class AroundController extends BaseController {
    @Path()
    index() {
        const name = this.getName(); // return a promise
        return this.view('index.html', {
            frameName: name,
        });
    }
    getName(){
        return 'UMajs'
    }
}

Describe the solution you'd like

The Around decoration modifier only works for methods modified by @Path when decorating the class
Around decorator must be used with Path decorator   How about it？

待讨论后补充单测

I  support 'The Around decoration modifier only works for methods modified by @path when decorating the class'
Here we determine if there is a @Path decorator. Around


Small perf wins inside MemoryCache

Hi, I was looking at the caching code and I found some points which can be enhanced to avoid creating unnecessary objects. I'm referring to the class MemoryCache, the private field _entries can be a Dictionary<string, CacheEntry> instead of an IDictionary<string, CacheEntry> (since it's private and it's always initialized to a Dictionary<string, CacheEntry>) thus saving some unnecessary memory allocation when iterating over Keys and Values. Also the RemoveEntries method could be changed to accept a List instead of IEnumerable<CacheEntry> (since it's a private method always called with an instance of List<CacheEntry>) saving 1 object allocation when iterating over the list of entries. This change will also be consistent with the method ExpirePriorityBucket which already accept generic lists parameters.
It's not a huge improvement, but it's a fairly simple one at least IMHO.
Max.

FYI, I noticed these as well and went ahead and fixed them while making some other changes in #74.

Fixed by #74. This can be closed.


Invalid for_each argument in v1.6.0

Error: Invalid for_each argument

  on .terraform/modules/records-private-ro/modules/records/main.tf line 15, in resource "aws_route53_record" "this":
  15:   for_each = var.create && (var.zone_id != null || var.zone_name != null) ? local.recordsets : tomap({})

The "for_each" value depends on resource attributes that cannot be determined
until apply, so Terraform cannot predict how many instances will be created.
To work around this, use the -target argument to first apply only the
resources that the for_each depends on.

v1.5.0 works perfectly

Hi @nabeelshaikh91 !
Please check the solution for a similar issue here - https://github.com/terraform-aws-modules/terraform-aws-route53/issues/25#issuecomment-778749402
Consider upgrading to the latest version of this module if possible, and check the examples code in examples/complete.


Notebook: use UDTF to normalize a table column

As in title.

Build is failing in the conda test (omniscidb 5.2). Do you know if load_table_columnar works in older versions?

It should work. However, the failing test does not use load_table_columnar. I suspect that the recent changes to thrift config might cause the failure. I'll try to reproduce locally..


[CallWithChat] Show currently active device in MoreDrawer and SubMenuItems

What
Show currently active device in MoreDrawer and SubMenuItems

Why
https://skype.visualstudio.com/SPOOL/_workitems/edit/2770662
How Tested
Tested on local chrome browser with mobile view. Tested on android device as well.

Some things to note:
(I go into more detail here with images: https://skype.visualstudio.com/SPOOL/_workitems/edit/2772641/)

Selecting a new subMenuItem does not reflect on screen (no immediate indication like icons changing, etc.). However, when closing Menu Drawer than reopening menu drawer, changes can be seen. I implemented a quick workaround in onSelectSpeaker callback.
Long device names truncate "Speakers" and "Microphones" text and not just the device name in MoreDrawer
ControlBar does not resize for bigger screen views like the Galaxy Fold 2 inner display.
View does not resize for narrow screens like the Galaxy Fold 2 outer display

FYI @JamesBurnside

Some things to note: (I go into more detail here with images: skype.visualstudio.com/SPOOL/_workitems/edit/2772641)

Selecting a new subMenuItem does not reflect on screen (no immediate indication like icons changing, etc.). However, when closing Menu Drawer than reopening menu drawer, changes can be seen. I implemented a quick workaround in onSelectSpeaker callback.
Long device names truncate "Speakers" and "Microphones" text and not just the device name in MoreDrawer
ControlBar does not resize for bigger screen views like the Galaxy Fold 2 inner display.
View does not resize for narrow screens like the Galaxy Fold 2 outer display

FYI @JamesBurnside James Burnside FTE

Nice finds!
For 1 this is fixed here and should be merged shortly: https://github.com/Azure/communication-ui-library/pull/1520
For 2-4 can you file bugs on these? For 3&4 it's unlikely we'll support a screen so narrow but lets file bugs on them and bring up in the feature weekly meeting

Some things to note: (I go into more detail here with images: skype.visualstudio.com/SPOOL/_workitems/edit/2772641)

Selecting a new subMenuItem does not reflect on screen (no immediate indication like icons changing, etc.). However, when closing Menu Drawer than reopening menu drawer, changes can be seen. I implemented a quick workaround in onSelectSpeaker callback.
Long device names truncate "Speakers" and "Microphones" text and not just the device name in MoreDrawer
ControlBar does not resize for bigger screen views like the Galaxy Fold 2 inner display.
View does not resize for narrow screens like the Galaxy Fold 2 outer display

FYI @JamesBurnside James Burnside FTE

Nice finds! For 1 this is fixed here and should be merged shortly: #1520 For 2-4 can you file bugs on these? (one bug for 2, and one bug for 3&4) For 3&4 it's unlikely we'll support a screen so narrow but lets file bugs on them and bring up in the feature weekly meeting

Bugs created:

https://skype.visualstudio.com/SPOOL/_workitems/edit/2773964
[CallWithChat] Long device names truncate "Speakers" and "Microphones" text and not just the device name in MoreDrawer
https://skype.visualstudio.com/SPOOL/_workitems/edit/2773971
[CallWithChat] View does not support narrow and large screen mobile devices

I also noticed that the icons and are not vertically aligned with the text in the MoreDrawer.

I also noticed that the icons and are not vertically aligned with the text in the MoreDrawer.

Icon alignment also fixed here and will be merged shortly 😉 https://github.com/Azure/communication-ui-library/pull/1528

I think we should add a maxWidth property to the secondary text:


Adding Image to Axes in 3-D View not working properly

When using image() on an existent chart to add an image to it, it's being plotted as a completely new chart, with it's own grid and not integrating to the existent one.
Z = 10 + peaks;
surf(Z)
hold on
image(Z,'CDataMapping','scaled')

fig2plotly(gcf, 'offline', false);

Expected and generated (https://chart-studio.plotly.com/~xarico10/910/#/) plots:

Examples on doing this can be found on:
https://www.mathworks.com/help/matlab/ref/image.html#buryl46-1

PR #346 fix this issue


[REQUEST]  Priority for Keychecks, Continue or Stop when fail.

It is a low request.

Openbullet already has this feature.
Open your config -> go to settings -> Statuses for which the bot will continue / stop is what you need.

What if i need for each keycheck different status?

You can replace the keycheck block entirely and use IF, ELSE and ELSE IF statements together with the return; statement (which basically interrupts the script of the config).
You can find the documentation here https://discourse.openbullet.dev/t/lolicode-language-documentation/3992
I will post an example.
IF STRINGKEY @data.SOURCE Contains "abc"
data.STATUS = "FAIL";
return;
ENDIF

You can find many examples of this on the forum.

@openbullet I think ENDIF works only with OB1 and END works with OB2
So it should be like this:
IF STRINGKEY @data.SOURCE Contains "abc"
data.STATUS = "FAIL";
return;
END

@A1NTHATEASY You're right, I forgot the exact syntax 😅 my bad!
Thanks for correcting it.


raft: fix raft port.

@ngaut @BusyJay @hhkbp2 @zhangjinpeng1987

maybeAppend:  https://github.com/coreos/etcd/blob/master/raft/log.go#L82
term: https://github.com/coreos/etcd/blob/master/raft/log.go#L235

LGTM

LGTM


Keep object inside mask

Hi:
Is it possible to use lama-cleaner to do the opposite of inpainting, that is, to keep the object selected with a mask?
I have tried substracting the inpainted image to the original, but that process leaves a lot of noise. Since the model is trained to remove structures, what is needed to train another model which leaves them (and removes the background)?
I would be very grateful for any hint on how to solve this problem.
(PD: I don't know if this is the appropiate space for this kind of question, I apologize in advance if that is not the case)
Thanks in advance!

I'm not sure I understood your need, is it something like what rembg does?

Well, that certainly does seem like what I want to achive, but I cannot find how to give a mask to rembg or how it selects the object. Over all it is not nearly as interactive as lama-cleaner but I will check it out in more depth.
Thank you very much for your time :)

I have found this tool: CascadePSP  that may be exactly what I need but interactivity remains a problem. I will keep looking, thanks for pointing me in the right direction.

If you are looking for the best salient semantic segmentation project, perhaps this project would be of interest to you as well：https://github.com/xuebinqin/DIS

If you really care about interaction, there is a niche discipline in deep learning called interactive semantic segmentation. The flow of the interaction is shown in the following demo. As far as I know ClickSEG is the current SOTA method

example from: https://github.com/saic-vul/ritm_interactive_segmentation

example from: https://research.runwayml.com/building-a-web-based-real-time-video-editing-tool-with-machine-learning

Wow, that really seems to be what I have been looking for, I will try them out as soon as I can.
Thank you very much again :)


Api.Object does not expose Query

In the Github API, under Query, there is a field called Relay that gives back a type of Query.
In the generated Elm code, this is defined as:
relay : SelectionSet relay Api.Object.Query -> FieldDecoder relay RootQuery
relay object =
    Object.single "relay" [] (object)

However, Api.Object.Query is not defined and therefore, the Elm code cannot be compiled.

Thanks for the report! I'm working on a fix for this. Using RootQuery instead of Api.Object.Query there does the trick. I think I'll have a fix in tomorrow.

I pushed a fix! It doesn't handle all cases yet, but it handles the Github Api relay reference.

Alright, it now handles self-referring RootQuery objects and RootMutation objects. Should be good to go.

Haven't had a chance to test this but it's great that these fixes are going in so quickly. :+1:

My pleasure, thanks for the help getting things polished! I've got 7 more items on the Trello board that I consider to be the core (to varying degrees, mostly the core items are done and stable really). It'll be nice to knock the last few off of there!


how to convert picker image or file to base64

I am not able to convert the picked image to base64 so any solution??

@oswalgopal found a solution for this ?

I found the solution for this @oswalgopal

Or you can use RNFS library

closing as answered


Use https:// instead of git:// for README URLs

See https://github.com/rspec/rspec-core/pull/2327.
git:// URLs are insecure and cause recent versions of Bundler to emit a warning.
If this PR is accepted, I'll make the same PR to other RSpec repos with git:// URLs in their READMEs.

Thanks @alyssais!


'pipenv install' etc. fail with "ModuleNotFoundError: No module named 'pip._internal'"

Issue description
pipenv commands that use pip internally or explicitly fail.
Steps to reproduce

make sure we're in a pristine and safely disposable directorycd $(mktemp -d)

run a pipenv command that uses pip explicitlynix-shell -p pipenv --run 'pipenv run pip --version'

Expected

Virtualenv is created
Pipfile is created
Version of pip in that virtualenv is displayed

Observed

:heavy_check_mark: Virtualenv is created Creating a virtualenv for this project…
 ⠋Using base prefix '/nix/store/ljhgdba6n8ag6f8clpi4m9zizm7b8mx3-python3-3.6.5'
 New python executable in /home/das-g/.local/share/virtualenvs/tmp.btSs5gvz0u-HGofKOag/bin/python3.6m
 Also creating executable in /home/das-g/.local/share/virtualenvs/tmp.btSs5gvz0u-HGofKOag/bin/python
 Installing setuptools, pip, wheel...done.
 Virtualenv location: /home/das-g/.local/share/virtualenvs/tmp.btSs5gvz0u-HGofKOag

:heavy_check_mark: Pipfile is createdCreating a Pipfile for this project…

:heavy_multiplication_x: Then, a ModuleNotFoundError error is displayed:Traceback (most recent call last):
  File "/home/das-g/.local/share/virtualenvs/tmp.btSs5gvz0u-HGofKOag/bin/pip", line 7, in <module>
    from pip._internal import main
ModuleNotFoundError: No module named 'pip._internal'

Cleanup after reproducing
In this order:

Remove the virtualenv:nix-shell -p pipenv --run 'pipenv --rm'

cd - and remove the temporary directory with its content

Variations
Similar observations for

pipenv commands using pip internally, e.g. pipenv install requests
invoking pip in a pipenv shell:nix-shell -p pipenv --run 'pipenv shell'
pip --version

doing any of the above in an interactive nix-shell with pipenv

Technical details

system: "x86_64-linux"
host os: Linux 4.14.35, NixOS, 18.03.132083.06c576b0525 (Impala)
multi-user?: yes
sandbox: no
version: nix-env (Nix) 2.0
channels(root): "nixos-18.03.132083.06c576b0525"
channels(das-g): ""
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs

(Dunno whether this is related to #33713, where pipenv complains about not finding /bin/pip rather than not finding some submodule of pip as here.)

I've experimented some more, and it seems like the error only occurs when using nix-shell (whether with --run or interactively, whether with -p pipenv or with a default.nix doesn't seem to matter), but not when having pipenv installed by listing it in /etc/nixos/configuration.nix or by imperatively in the current user's profile with nix-env -iA nixos.pipenv.

and this pip from nix-shell is advised in the manual :-\

but that one is for virtualenv + pip, not pipenv

See https://nixos.org/nixpkgs/manual/#how-to-consume-python-modules-using-pip-in-a-virtualenv-like-i-am-used-to-on-other-operating-systems - that failed with No module named 'pip._internal' for my until I added export PYTHONPATH=venv/lib/python3.6/site-packages/:$PYTHONPATH

I've just pushed 7a7463d0a3fe6d39a7fc499a0fd9756a3c671e62 and pipenv works for me now, can you give it a shot?

Yep, seems to work:
cd $(mktemp -d)
nix-shell -p pipenv \
 -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/7a7463d0a3fe6d39a7fc499a0fd9756a3c671e62.tar.gz \
 --run 'pipenv run pip --version'

Creating a virtualenv for this project…
Using /nix/store/yxzy33fw61kj9ljk30i5qyjrv3pax0kc-python3-3.6.5/bin/python3.6m (3.6.5) to create virtualenv…
⠋Already using interpreter /nix/store/yxzy33fw61kj9ljk30i5qyjrv3pax0kc-python3-3.6.5/bin/python3.6m
Using base prefix '/nix/store/yxzy33fw61kj9ljk30i5qyjrv3pax0kc-python3-3.6.5'
New python executable in /home/das-g/.local/share/virtualenvs/tmp.kitAQ9u20x-kvPPKl1d/bin/python3.6m
Also creating executable in /home/das-g/.local/share/virtualenvs/tmp.kitAQ9u20x-kvPPKl1d/bin/python
Installing setuptools, pip, wheel...done.

Virtualenv location: /home/das-g/.local/share/virtualenvs/tmp.kitAQ9u20x-kvPPKl1d
Creating a Pipfile for this project…
pip 10.0.1 from /nix/store/w18a3cl9g0rppnrvig820ywn8hg6x87z-python3.6-pip-10.0.1/lib/python3.6/site-packages/pip (python 3.6)

:+1:
Will this get backported to release 18.03 Impala?
Should this issue (#39558) be closed?

Oh, and can we add a test for this?

As 18.09 is going out in two weeks, I'm closing this as fixed.


Installer Not Digitally Signed/Unknown Publisher

Uh oh! Did Tabular Editor 2.20.2 lose the digital signature on its MSI installer?
The SHA256 hash on the release page matches the file I downloaded, but the installer does not indicate that it is signed.

I’m investigating. Recommend using the portable version for now, since that’s signed.

Thanks, @otykier.
On the MSI version, can you confirm that the hash posted on the releases page is accurate?

The hash is accurate, but there was an error during our release process causing the .msi not to be signed. Unfortunately, we didn't catch this. We'll be uploading a new, signed, .msi soon (which will obviously have a different hash).

Thankis, @otykier!

2.21.0 is now available, with proper code sign certificate on both the .msi and the .zip content.

Thank you, @otykier!


Fixes normalized gini for 1 elem series

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- varats/data/metrics.py  1

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- varats/data/metrics.py  1

See the complete overview on Codacy


uniform pdfs for rateParam & flatParam nuisance parameters

In most use cases, there is no need to include a pdf for rateParam / flatParam nuisances (in all fully frequentist methods, it makes no difference), however having the ability to include them could be useful in some cases eg

Bayesian methods in which the nuisance parameter (not just the POI) has a uniform prior
Cousins-Highland based toy generation where one or more nuisance parameter is assumed to have a flat pdf

It should be as simple as creating a user flag (even rtd) that tells combine to create a uniform pdf and include it into the NuisancePdf (along with some dummy global observable that effectively does nothing), but would also require some basic testing to make sure it doesn't break other things.

More thoughts on this ... it should be possible to use the fact that these nuisances if declared as such in the card, will have the attribute "flatParam". This could be used to check which additional Prior terms should be constructed during the text2workspace stages.

It is unclear to me why do we need a global observable or what to do with it in this case. Obviously RooUniform does not have any parameters so we can not introduce a global observable to the function as it is done in RooGaussian for example.

Addressed by #834


DYLD, [0x4] Symbol missing

After updating XCode to latest and the upgrading to the 0.9.0 version i get the following error
Termination Reason:    DYLD, [0x4] Symbol missing
Application Specific Information:
dyld: launch, loading dependent libraries
DYLD_FALLBACK_LIBRARY_PATH=/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 11.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib
DYLD_ROOT_PATH=/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 11.4.simruntime/Contents/Resources/RuntimeRoot
DYLD_FALLBACK_FRAMEWORK_PATH=/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 11.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks
Dyld Error Message:
Symbol not found: _$sBOWV
Referenced from: /Users/USER/Library/Developer/CoreSimulator/Devices/687AD3DB-1970-4780-BB76-80D3246E70A0/data/Containers/Bundle/Application/8901B743-DC39-4894-943B-ED1A7465F420/xxxx_mobile.app/Frameworks/InputMask.framework/InputMask
Expected in: /Users/USER/Library/Developer/CoreSimulator/Devices/687AD3DB-1970-4780-BB76-80D3246E70A0/data/Containers/Bundle/Application/8901B743-DC39-4894-943B-ED1A7465F420/xxxx_mobile.app/Frameworks/libswiftCore.dylib
in /Users/USER/Library/Developer/CoreSimulator/Devices/687AD3DB-1970-4780-BB76-80D3246E70A0/data/Containers/Bundle/Application/8901B743-DC39-4894-943B-ED1A7465F420/xxxx_mobile.app/Frameworks/InputMask.framework/InputMask

@edxe could you check this out on the new version v1.0.1?


Make completion of RequestRetrier escaping

Allows the RequestRetrier to perform async work before executing the completion closure.
I’m in need of this since I’m using this a point to handle 401 errors and kick off re-authentication (refreshing the access token). Having those requests re-tried automatically once the access token has arrived. As such the completion closure needs to be “stored away” for a bit.

Absolutely! Great call @rastersize. This was always the intent, but we missed this change when the GM dropped.
Cheers. 🍻


✨ Add support for brightness control

Description
Adds support for brightness control using CSS opacity to macos-web
Type of change

[x] New feature (non-breaking change which adds functionality)

Changes

Adds a new store brightnessStore
Use the brightness to control the opacity at places
Set the background color of the body to #000 or black

Hey Preet. Thanks for taking the time to go through the code. I really appreciate it.
However, I regret to tell you that I can't merge this PR. Because there are certain browser level bugs that kill the whole User experience.
I implemented this feature myself a few months back. It had browser-level persistence too, so the brightness would pick off from the last user session. See https://github.com/PuruVJ/macos-web/blob/main/src/hooks/use-screen-brightness.ts
However, because of all these bugs, I had to remove this functionality.
I had to reject a contribution from another awesome developer. You can see the conversation here: https://github.com/PuruVJ/macos-web/pull/44
But hey, I would love to collaborate more with you on this project. Again, thanks for contributing :)

Because there are certain browser level bugs that kill the whole User experience.

Could you add more references to this bug, I did notice safari complaining "This app takes too many resources", is this the bug?

Because there are certain browser level bugs that kill the whole User experience.

Could you add more references to this bug, I did notice safari complaining "This app takes too many resources", is this the bug?

When there's filter applied on body or some element, weird shadows/bluryy squares start appearing on the page anywhere, as you interact with it, and the UX is just very terrible.
There was a webkit bug tracker page, but I can't find it.


Is it possible to trim the .flac files using this library?

I am unable to find how to trim my 1 minute long .flac files at required seconds . Does this have functions which can trim .flac audio files. If yes please help me regarding this .
I have read the .flac file like this:-->
import pandas as pd
import numpy as np
import soundfile as sf
import matplotlib.pyplot as plt
import torch

filename = "../...../..........file_path.........../*.flac"
waveform, sample_rate = sf.read(filename)
waveform.shape

waveform = torch.from_numpy(waveform)
waveform = torch.reshape(waveform, (1,waveform.shape[0]))
waveform.shape

plt.figure()
plt.plot(waveform.t().numpy())

Your audio data is a numpy array. You can slice that numpy array to crop the audio.
However, this page is about issues with soundfile, not general Python programming question.


Abaqus Error in locating file when used with relative path

When we use relative path to the python script (python3 myscript.py)
&
Change the work directory on the fly (to run multiple models in different folders)
Abaqus can not locate the script file.
Example
Given the small test

Contents of `myscript.py`
# contents of `myscript.py`
import os
import sys
import shutil
import time

from abaqus import *
from abaqusConstants import *
from caeModules import *
from driverUtils import *

def make_dir_model(name):
    if os.path.exists(os.path.abspath(name)):
        shutil.rmtree(name)
        time.sleep(1) # wait a 1 sec
    os.mkdir(name)

def test_multimodels():
    model_names = ['Model1', 'Model2', 'Model3']
    for name in model_names:
        make_dir_model(name)
        os.chdir(name)
        mdb.saveAs('{0}.cae'.format(name))
        os.chdir('../')

if __name__ == "__main__":
    test_multimodels()

The script above runs OK when using the absolute path:
python3 absolute/path/to/myscript.py

But gives an error in Abaqus when using relative path:
python3 myscript.py

Because Abaqus can not locate the script file in this case
Abaqus Error: The following file(s) could not be located: absolute\path\to\Model1\myscript.py
Abaqus Error: The following file(s) could not be located: absolute\path\to\Model2\myscript.py
Abaqus Error: The following file(s) could not be located: absolute\path\to\Model3\myscript.py

That happens because the resolution of the function
os.path.abspath(sys.argv[0])

is to the Current Work Directory (CWD) when the sys.argv[0] is not absolute.
Possible Solution
Replace sys.argv[0] by the top level script path (__main__.__file__) inside the run() function

You are right, and I believe __main__.__file__ would solve this problem.

Instead of using __main__.__file__ directly, I would use sys.modules['__main__'].__file__ since PyCharm tells me Python 3.7, 3.8 ... 3.11 do not have module __main__ through I don't know why. But anyway.

Instead of using __main__.__file__ directly, I would use sys.modules['__main__'].__file__ since PyCharm tells me Python versions 3.6, 3.7, 3.8, 3.9, 3.10, 3.11 do not have module __main__  through I don't know why.

I think you have to import __main__ before.

I know that, it works, PyCharm just raise a warning.

oh, I see. I think that is an issue in PyCharm itself. Look this and this

Right, sys.modules['__main__'].__file__ will totally work and it is identical.


Multiple Color Picker instances

Hi,
I need to have multiple instances of the color picker directive on the same page. I've noticed though that when I set unique ng-models for each one. If I open one then it starts working with the other one and displaying the hex value in the wrong field.
<color-picker         ng-model="navbarColor"         options="options"         api="api"         event-api="eventApi">       </color-picker>
<color-picker         ng-model="navbarFontColor"         options="options"         api="api"         event-api="eventApi">       </color-picker>
$scope.options = {             required:false,             disabled:false,             round:false,             format:'hex',             hue:false,             alpha:false,             swatch:true,             swatchPos:'left',             swatchBootstrap:true,             swatchOnly:false,             pos:'bottom-left',             case:'lower',             inline:false,             placeholder:'',             close:{               show:true,               label:'Close',               class:''             }         };
Is there a way to have multiple on the same page?

The api attribute is not required, but if you do supply it each color picker needs a separate api object.