Strange behavior "formData"

Code:
var data = {
    "id": 1337,
    "text": "hek",
    "web": true
};

require("request")({
    method: 'POST',
    json: true,
    formData: data,
    uri: "http://www.google.com"
});

Error:
_http_outgoing.js:433
    throw new TypeError('first argument must be a string or Buffer');
          ^
TypeError: first argument must be a string or Buffer
    at ClientRequest.OutgoingMessage.write (_http_outgoing.js:433:11)
    at Request.write (\node_modules\request\request.js:1378:25)
    at FormData.ondata (stream.js:51:26)
    at FormData.emit (events.js:107:17)
    at FormData.CombinedStream.write (\node_modules\request\node_modules\combi
ned-stream\lib\combined_stream.js:118:8)
    at FormData.CombinedStream._pipeNext (\node_modules\request\node_modules\c
ombined-stream\lib\combined_stream.js:106:8)
    at FormData.CombinedStream._getNext (\node_modules\request\node_modules\co
mbined-stream\lib\combined_stream.js:79:10)
    at FormData.CombinedStream._pipeNext (\node_modules\request\node_modules\c
ombined-stream\lib\combined_stream.js:107:8)
    at FormData.CombinedStream._getNext (J:\node_modules\request\node_modules\co
mbined-stream\lib\combined_stream.js:79:10)
    at FormData.CombinedStream._pipeNext (\node_modules\request\node_modules\c
ombined-stream\lib\combined_stream.js:107:8)

If I change "web": true on "web": 1 - it works perfectly.

Yep, sending boolean doesn't work, I think the form-data team added more appropriate error message in newer releases.

@simov please make sure that it would rollout.

This bug got me too.  It wouldn't be so bad if there wasn't so cryptic.

I've wasted hours trying to diagnose this error before stumbling upon this issue. Please, please make the error message more descriptive.

Yep, sending boolean doesn't work, I think the form-data team added more appropriate error message in newer releases.

any idea which release it was?
we should do one big PR for dep updates and push a new release.

Not sure what was I referring to. We have the latest form-data in our package.json so apparently a better error message was never added.


shared/utils/ auto import documentation is misleading

Environment

Operating System: Linux
Node Version:     v18.20.3
Nuxt Version:     3.14.1592
CLI Version:      3.16.0
Nitro Version:    -
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      default
Runtime Modules:  -
Build Modules:    -

Reproduction
https://stackblitz.com/edit/github-9548wjk1?file=app.vue
Describe the bug
The documentation says: "...files in the shared/utils/ and shared/types/ directories will be auto-imported."
However, in fact, files in the shared/utils/ are not being auto imported unless compatibilityVersion: 4 is enabled. This is not covered in the documentation (only something about app/ is).
Either the documentation should make it clear that shared utils is for Nuxt 4 layout only, or auto import should be fixed.
Additional context
No response
Logs

I see. This is a valid point in the linked comment and below. However the documentation is really misleading for that matter:

It only goes about Nuxt 4 when mentioning the app/ which presumes the above is valid for Nuxt v3.14+.


system settings through apiv2

This PR extends the API capabilities of DefectDojo. As of yet, not all System Configurations are accessible through the API. Thus, this PR advances DefectDojo's API capabilities to e.g. configure DefectDojo in an automatic way through IaC.

Thanks. Would it be better to just use the built in "ModelSerializer" so we don't have to have all the custom code / listing / mapping of fields?

@valentijnscholten Thanks for the comment. Is it fine like this?

@valentijnscholten Thanks for the comment. Is it fine like this?

Thanks. Does it work as expect with POST updating all fields and PATCH allowing update of a subset of fields? I think evertyhing related to tags can be removed from this serializer.

Thanks. Does it work as expect with POST updating all fields and PATCH allowing update of a subset of fields? I think evertyhing related to tags can be removed from this serializer.

@valentijnscholten I tested POST and PATCH. It worked fine.

@valentijnscholten I tested POST and PATCH. It worked fine.


Fixed race in GridDhtForceKeysRequest processing

Is it actual? Can I close it as outdated or merged?

Closing by lazy consensus


feat: Added retry option and max_retries

Fixes
Fixes #49
Changes Proposed

Added retry_on_timeout boolean to toggle retry feature
Added max_retries to take the maximum number of retry as input

@ashnamehrotra @sozercan Please review this PR

@SaptarshiSarkar12 thank you for the PR! I think we can simplify this to one argument. If there are a # of retries specified, we can retry otherwise we don't use retry logic? Would you also be able to modify the test to use these arguments to confirm it works as expected? https://github.com/project-copacetic/copa-action/blob/main/.github/workflows/build.yaml#L83

I think we can simplify this to one argument. If there are a # of retries specified, we can retry otherwise we don't use retry logic?

Yes, correct 👍.
Would you also be able to modify the test to use these arguments to confirm it works as expected? https://github.com/project-copacetic/copa-action/blob/main/.github/workflows/build.yaml#L83
@ashnamehrotra Okay. I will 😀. I am out of station now. So, I would make the changes once I return back home (probably 14th of October). Is it fine?

@ashnamehrotra Hi Ashna :wave:!
I have made the requested changes. Please review it.
Nowadays, I am encountering an issue with copa for the below situation.
Suppose all the vulnerabilities are already patched for oracle image. But Trivy reports false positives, so, the GH Action runs copa patch but it fails with the error Error: no patchable packages found.
A probable solution can be adding a  boolean actions input called fail_if_no_vulns which will not exit with status code 1 if it fails for that reason. So, would I create a new issue for that?
Reference workflow run: https://github.com/SaptarshiSarkar12/Drifty/actions/runs/10968623586/job/30460218219#step:6:2111

TOOMANYREQUESTS: retry-after: 569.492µs, allowed: 44000/minute

@ashnamehrotra From the failed build log, it seems that there have been too many requests error. Unfortunately, it is a bug reported in https://github.com/aquasecurity/trivy-action/issues/389 and https://github.com/orgs/community/discussions/139074#discussioncomment-10808081 where they suggest using AWS image.
What to do from our side to fix this build? A retry might work :crossed_fingers:.

@ashnamehrotra Hi Ashna 👋! I have made the requested changes. Please review it.
Nowadays, I am encountering an issue with copa for the below situation. Suppose all the vulnerabilities are already patched for oracle image. But Trivy reports false positives, so, the GH Action runs copa patch but it fails with the error Error: no patchable packages found. A probable solution can be adding a boolean actions input called fail_if_no_vulns which will not exit with status code 1 if it fails for that reason. So, would I create a new issue for that? Reference workflow run: https://github.com/SaptarshiSarkar12/Drifty/actions/runs/10968623586/job/30460218219#step:6:2111

Hi @SaptarshiSarkar12 this is something we will fix soon in https://github.com/project-copacetic/copacetic/issues/802. This way we will be able to ignore the error of no upgradable packages with the --ignore-errors flag

Hi @SaptarshiSarkar12 this is something we will fix soon in project-copacetic/copacetic#802. This way we will be able to ignore the error of no upgradable packages with the --ignore-errors flag

@ashnamehrotra Hi Ashna :wave:!
That sounds great :+1:. Would really appreciate such improvement.
But would that cause any issue with my current setup for patching oraclelinux - I'm currently patching the whole image with no Trivy reports passed to copa?

@SaptarshiSarkar12 it would only cause errors if there are no upgradable packages, so you would need to catch/ignore that error until we add support for that error via --ignore-errors.
To resolve the CI tests, you will also need to modify the bats test which runs the copa-action to take in the retry argument.

@SaptarshiSarkar12 it would only cause errors if there are no upgradable packages, so you would need to catch/ignore that error until we add support for that error via --ignore-errors.

Okay, so when would that --ignore-errors flag be available?

To resolve the CI tests, you will also need to modify the bats test which runs the copa-action to take in the retry argument.

@ashnamehrotra I have added '5' as the last argument to the copa-action bats test step. Can you please check if that is correct or changes are required in any other section as well?

@SaptarshiSarkar12 it would only cause errors if there are no upgradable packages, so you would need to catch/ignore that error until we add support for that error via --ignore-errors.

Okay, so when would that --ignore-errors flag be available?

To resolve the CI tests, you will also need to modify the bats test which runs the copa-action to take in the retry argument.

@ashnamehrotra I have added '5' as the last argument to the copa-action bats test step. Can you please check if that is correct or changes are required in any other section as well?

We are currently prioritizing other issues https://github.com/project-copacetic/copacetic/milestone/8, so it will likely be available in the next milestone v0.11.0 release. It looks like build tests are still failing and the retry argument is not propagating. It would also be good to have a default value 0 set if no arg is provided.

We are currently prioritizing other issues https://github.com/project-copacetic/copacetic/milestone/8, so it will likely be available in the next milestone v0.11.0 release.

@ashnamehrotra Okay. Thank you for prioritizing that issue for the next release :smile:.

It looks like build tests are still failing and the retry argument is not propagating.

How do I fix that? Any clue?

It would also be good to have a default value 0 set if no arg is provided.

Okay, I'll add it and let's see if that fixes the build failure :crossed_fingers:.


"TypeError: pageView is undefined" during pdf.js tests

Noticed when looking at Treeherder logs.
<EMAIL_ADDRESS>INFO -  JavaScript error: resource://pdf.js/web/viewer.js, line 8148: TypeError: pageView is undefined

Points to https://github.com/mozilla/pdf.js/blob/master/web/app.js#L1589 in the webViewerTextLayerRendered. I suspect that we destroy viewer but still continue rendering of the text layers.

Indeed that is the case. We shall discontinue this event and other renderings if viewer is closed.


DeltaContainer not triggering a data change

@derwish-pro reported a problem in the DeltaContainer recently, with a patch: https://gist.github.com/derwish-pro/ecfd2c143b31816a408ef380e74ac21d
More info:
I have such a state of the game room on the server-side:
this.state.game.turn++;

I want to set a listener on the unity-side to catch this path. How can I do it?
I tried:
 room.Listen("game/turn", OnGameTurn);

and
  room.Listen("game/turn/:number", OnGameTurn);

None of the ways work.
I had to do a fix in DeltaContainer (unity side) to make it work.

Thanks for the initial implementation @derwish-pro, I fixed it a bit differently, though: https://github.com/gamestdio/colyseus-unity3d/commit/5006760c1b85063fd50a4dc05584a6c37d2ec074


Disable image publish action for forked repositories

Signed-off-by: Shyamsundar Ranganathan<EMAIL_ADDRESS>

LGTM


Node Type - Dictionary Node

I would like to request a special node type. This node type would have a dictionary member, with pairs editable (addable, removable, changeable) in the inspector. This node would have a resource field for a JSON file from which information would be loaded on ready(), and a method save() that takes the current values and saves them to the file. The inspector would also have a few buttons to save and load to the json file, and (potentially) the ability to mark certain pairs as read-only.
The ideal use case is with this as the root node for instanced scenes. This way, custom values can be easily changed in the editor without having to edit child nodes (making things cleaner, simpler, and more straightforward). Also, it would add a built-in way to save and load simple data sets without a developer having to copy-paste from the wiki, mitigating potential bugs and streamlining the development of many kinds of games.

BTW, I would rather like to be able to export dictionaries and function (for buttons) instead... That way this would be implementable via plugins/tool scripts, plus many other possibilities would abound. :smile:

Bojidar, that's certainly a better idea. Much more flexible then mine.

I think this could be implemented as an addon.

Dictionaries are already able to be exported.
Dictionary node would be basically any Node with this: #5433
Also

export function (for buttons)

#9380

Closing as superseded by #5433 and #9380 then.


version bumps and nod audit fixes

Not to be merged until PR https://github.com/chjj/pty.js/pull/197 accepted (note package.json is using fork)

closing - working through deprecations and version bumps


Atom.Object.defineProperty.get is deprecated.

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.
Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:54:11)
updateStatusbar (/Users/rmachado/.atom/packages/jshint/index.js:102:6)

https://github.com/sindresorhus/atom-jshint/issues/71#issuecomment-77728141


Add support for stock asus firmware

Doesn't work (v0.1.0) on stock asus firmware (XT8) due to lack of SCP.
One option would be to dispense with SCP and just use sh directly to copy the files.
E.g.
ssh routerUser@routerIP -p routerSSHPort -i privateRouterSSHKeyPath "cat routerCertPath" > HACertPath
ssh routerUser@routerIP -p routerSSHPort -i privateRouterSSHKeyPath "cat routerKeyPath" > HAKeyPath
Default router certificate paths are:
cert: /tmp/etc/cert.pem
key: /tmp/etc/key.pem

Suggested fix is implemented in the following forked project: https://github.com/ricardoaveloso/home-assistant-ssl-from-stock-asus-router


altering-lists python tutorial

Populate lists/altering-lists.py with a tutorial and challenge.

I would like to be assigned this please.

sure @drentsoft


Create file recovery directory if it doesn't already exist

Fixes https://github.com/atom/atom/issues/17013 by creating the recovery directory
Requirements

Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
All new code requires tests to ensure against regressions

Description of the Change
From v1.24.0 to v1.25.0-beta0 a regression issue was created by replacing fs-plus.copyFileSync() with a local function that does a stream copy. The problem is that the new function does not create the directory first, but fs-plus.copyFileSync() did.
I've added the same mkdirp.sync() call that fs-plus uses in copyFileSync().
Alternate Designs
It's also possible to revert to using copyFileSync() from fs-plus, but I presume the change was for a good reason.
Why Should This Be In Core?
The FileRecoveryService is core functionality.
Benefits
Fixes very significant problems that folks have been experiencing with git
Possible Drawbacks
None that I can see.
Verification Process
I was not able to reproduce the issue with this change in place.
Applicable Issues
https://github.com/atom/atom/issues/17013
https://github.com/atom/github/issues/1418
https://github.com/atom/atom/issues/17223
https://github.com/atom/atom/issues/17235
https://github.com/atom/github/issues/1283
https://github.com/atom/github/issues/1375
https://github.com/atom/atom/issues/11384
https://github.com/atom/atom/issues/16420
https://github.com/atom/atom/issues/17179
https://github.com/atom/atom/issues/17187

It looks like the regression was caused by me in https://github.com/atom/atom/pull/16592.

@byronigoe It looks like there's a pre-existing problem with CI on master. I'm looking into that now.

I've pushed a fix to your branch. Here's the whitespace-insensitive diff.

Thanks. Is this all set to merge? This PR is from my "master" branch, which is bad form. Will I be able to continue committing to my master after this PR is merged/closed without screwing things up?

Yeah, thanks so much for tracking this bug down. After we merge this, I'd suggest just resetting your master branch back to atom/atom's master.


Created Coulomb prior

This adds a Coulomb interaction.  At the moment it requires partial charges to be specified by the dataset.  In the future we'll want to let the model predict charges, but that will come later.
The interaction is applied to all pairs without any cutoff.  The point of this prior is to provide accurate long range interactions.  It does get scaled by erf(alpha*r), which reduces the effect at short ranges and prevents it from diverging at r=0.  That also happens to be the scale factor of the reciprocal space term in Ewald summation.  Eventually we'll want to apply this to large systems that are partly modeled with ML and partly with a conventional force field.  The idea is that you'll be able to include the Coulomb prior simply by including the ML region in the reciprocal space PME calculation.

Does anyone have comments on this?

Is it ok to merge this?

This LGTM, its merge from me.

Thanks!


Error: ENOENT: no such file or directory, open manifest.json

On windows 10
node version v18.14.0
yarn version 1.22.19

On windows 10 WSL2 Ubuntu 22.04
node version v18.12.1
yarn version 1.22.19

I think it might be related to this https://stackoverflow.com/questions/34811222/writefile-no-such-file-or-directory
so perhaps it would help if you just make some empty folders dist/chrome and dist/firefox and try to run yarn bundle

That is now fixed 👍


[Module Proposal]:  Azure Bing Resource

Have you checked this module does not already exist in the registry?
Yes
Why is the module needed?
We require a base module to create Azure Bing Resources.
https://learn.microsoft.com/en-us/rest/api/cognitiveservices-bingsearch/bing-web-api-v7-reference
Module path
cognitiveservices/bing-resource
Describe the module
Allows the provisioning and management of Azure Bing Resource including pricing plan selection

As suggested in https://github.com/Azure/bicep-registry-modules/pull/407#issuecomment-1619014411, we should consider change the module path to ai/bing-search.

Dear @tanujbhatia1708 , Azure Verified Modules (AVM) will become the single Microsoft standard for Bicep modules. Transitioning to AVM, module proposals for new, non-AVM modules will no longer be accepted and we encourage you to propose a new AVM module, which you can file here: Module Proposal, here.
See this informational notice for more details on the upcoming changes.
Thank you for your understanding!


signinSilent failed after the browser reboot

I'm using oidc-client-ts 2.20 with Keycloak 19.0.1, and using mgr.signinSilent to refresh the access token.
After logged in with mgr.signinRedirect,  the mgr.signinSilent can refresh the access token successfully.
Exit the APP totally after closing the browser, and open my APP again. The access/refresh token is loaded from the local store. However, they can be refreshed again with the mgr.signinSilent. Here is the error message:
ErrorResponse: login_required
    at ResponseValidator._processSigninState (http://<IP_ADDRESS>:5173/node_modules/.vite/deps/oidc-client-ts.js?v=2ac95190:1573:13)
    at ResponseValidator.validateSigninResponse (http://<IP_ADDRESS>:5173/node_modules/.vite/deps/oidc-client-ts.js?v=2ac95190:1500:10)
    at OidcClient.processSigninResponse (http://<IP_ADDRESS>:5173/node_modules/.vite/deps/oidc-client-ts.js?v=2ac95190:2006:27)
    at async UserManager._signinEnd (http://<IP_ADDRESS>:5173/node_modules/.vite/deps/oidc-client-ts.js?v=2ac95190:2974:28)
    at async UserManager._signin (http://<IP_ADDRESS>:5173/node_modules/.vite/deps/oidc-client-ts.js?v=2ac95190:2953:12)
    at async UserManager.signinSilent (http://<IP_ADDRESS>:5173/node_modules/.vite/deps/oidc-client-ts.js?v=2ac95190:2837:12)
    at async retriveRefreshToken (http://<IP_ADDRESS>:5173/src/services/auth-service.ts:19:20)

My question is how can I refresh the access token after reentering the APP totally. Should I interface with the Keycloak's API directly?

You have to create a web store to store the data in.
import { UserManager, WebStorageStateStore } from "oidc-client-ts";

const userStore = new WebStorageStateStore({ store: localStorage });

And pass it in the userStore field while instantiating your UserManager
export const manager = new UserManager({
  authority: "<your_authority_url>",
  client_id: "<your_client_id>",
  redirect_uri: "<your_redirect_uri>",
  scope: "<your_scopes>",
  userStore: userStore,
});

Storing your token in local storage is a bad security advice

Storing your token in local storage is a bad security advice

OP asked for login persistence—we want to have a way to access refresh/access tokens after the browser session is closed (so a simple in-memory storage will not work). localStorage is a plug-and-play solution which is also secured under the Same Origin Policy. The only way it can be hijacked is by XSS attacks within the site (user-inputted data being not properly sanitized, malicious userscripts, malicious bookmark links).
The only thing that can offer you security against XSS attacks, all the while maintaining login persistence, is an HttpOnly cookie (which is by definition inaccessible by any JavaScript run on the client). However, this requires some backend setup (as in, you would provide the tokens provided to you via the OAuth redirect, and the backend would return a response that sets an HttpOnly cookie, or literally any method with which you are able to set an HttpOnly cookie with what you want).
Again, this is only to safeguard against XSS attacks, since this is pretty much the only client-side vulnerability to any storage utilizing the Same Origin Policy. Due to the complexity of implementing the HttpOnly cookie, and considering the only ways to
This article goes into more detail: https://auth0.com/blog/secure-browser-storage-the-facts/


Package request: jailer

Project description
Jailer is a tool for database subsetting, schema and data browsing.
Metadata

homepage URL: https://wisser.github.io/Jailer/
source URL: https://github.com/Wisser/Jailer
license: Apache 2
platforms: unix

Add a :+1: reaction to issues you find important.

Fixed by https://github.com/NixOS/nixpkgs/pull/311371


Fixed broken link in about us page

Pull Request Test Coverage Report for Build 291

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

Totals

Change from base Build 290:
0.0%

Covered Lines:
2350

Relevant Lines:
2605

💛  - Coveralls


please make dockerized headless version branch

Hi TECHTANIC,
please make dockerized headless version branch to easily deploy on cloud contanier.
waitngi for your changes
finest regards

Hey can provide more information related to it


filetype: some pbtxt files are not recognized

Problem: some textual protocol buffers file extensions are not recognized. Especially, the now officially recommended extension txtpb (see 1).
Solution: add patterns for all extensions that are not strongly discouraged by the documentation.

Ideally, I think the filetype should be renamed, but that's more of a nitpick.

thanks!

Can you please update test_filetype.vim?

@chrisbra done :-)

The test failures look unrelated (and mention the test being flaky).

thanks!


Image has problems scaling up with docker swarm

I successfully started my first instance of docker-minecraft-server on my docker swarm worker node. However rescaling the replicas from 1 to 10
docker service scale mc_test=10
didn't do the trick only 1 instance is available even after hours of waiting.
Some things I noticed:

The status of all instances switches between the running and starting progress or are unhealthy:

1/10: running   [==================================================>]
2/10: starting  [============================================>      ]
3/10: task: non-zero exit (137): dockerexec: unhealthy container
4/10: starting  [============================================>      ]
5/10: starting  [============================================>      ]
6/10: task: non-zero exit (137): dockerexec: unhealthy container
7/10: running   [==================================================>]
8/10: running   [==================================================>]
9/10: starting  [============================================>      ]
10/10: starting  [============================================>      ]

The CPU usage is at 96%
Following error appears in the log of every instance that isn't available:

 [20:15:09] [Server thread/INFO]: Found new data pack vanilla, loading it automatically
 [20:15:09] [Server thread/INFO]: Reloading ResourceManager: Default
 [20:15:28] [Server thread/INFO]: Loaded 6 recipes
 2020/04/30 20:15:42 Stopping with rcon-cli
 2020-04-30T20:15:42.736Z      ERROR   mc-server-runner        ERROR Failed to stop using rcon-cli  {"error": "exit status 1"}
 2020-04-30T20:15:42.737Z      INFO    mc-server-runner        Sending 'stop' to Minecraft server...
 2020-04-30T20:15:42.737Z      INFO    mc-server-runner        Waiting for completion...

The current laborious workaround is scaling it up slowly:
docker service scale mc_test=5
wait some minutes
docker service scale mc_test=10
I'm not sure if this issue is related to the docker-minecraft-server image or can be fixed by modifying  the image. But I think it is at least worth mentioning it.
(This issue isn't related to https://github.com/itzg/docker-minecraft-server/issues/514 I already checked 😉)

I might be wrong, but I don't think you can use scale with this image at all.
While creating new instances will create a different servers to work with the same world, it is not possible to determine what instance's service should have a priority upon world's change. Besides, as Minecraft server opens an external port to forward to the container, each replicated instance will be assigned a new random external port to listen to. For example: only one container will have '25565:25565' port forwarded and all the other will be assigned a random one '16788:25565'.
About world's problem - as all containers will share the same world (because they will share the same /data directory and configuration), only one will be able to work with the world. And I believe that Minecraft server uses some locks on world's file to make sure that the file is accessed only by one Minecraft server at the time.
Also, I don't understand why do you want to use scale? In the example above, you will have 10 instancies with 1GB RAM limit, using 10 GB of RAM total, but because only one of them is really working, your Minecraft server will be using maximum 1GB of RAM and all the rest 9BG will be the overhead that will never be used. You can't use it in this scenario.

@ImuustMINE, I agree with @wlp7s0, the Minecraft server itself (nothing to do with the container) is not designed for horizontally scaling/replicas.
Even large scale severs like hypixel don’t share world data across their backend server farm.


Dataset exploration

This PR adds jupyter notebook for dataset explanation.
You may refer here as well.
https://github.com/corochann/chainer-chemistry/blob/dataset_exploration/examples/qm9/qm9_dataset_exploration.ipynb
https://github.com/corochann/chainer-chemistry/blob/dataset_exploration/examples/tox21/tox21_dataset_exploration.ipynb

Updated based on comments.


[question]how to use cd command to change folder

go exec.Command can't use cd to change folder,pty pkg can do this?

cd is a built-in command in the shell, it changes the current working directory. exec.Command can do that as well by setting the 'Dir' field.
the pty package is a wrapper for exec.Command that adds support for pseudo terminals, so outside the pseudo terminal management, it can do exactly what exec.Command can and can''t do.
Example:
package main

import (
	"fmt"
	"os/exec"
)

func cd(dir string) {
	cmd := exec.Command("pwd")
	cmd.Dir = dir
	out, err := cmd.Output()
	if err != nil {
		panic(err)
	}
	fmt.Printf("%s", out)
}

func main() {
	cd(".")
	cd("..")
	cd("/tmp")
	cd("/var/log")
}

Closing as this is not related to the lib.
For this kind of question, I would recommend StackOverflow, which has a very active community and is not limited to a single project/library.


Pattern argument of match is reduced before calling while it can return result without being reduced

(:= (Green Sam) True)
(= (Green Tom) False)
!(println! (match &self (:= (Green $who) True) ($who is really green)))

The second line (= (Green Tom) False) changes output
Without it program prints "(Sam is really green)"
with it matching fails

I'm not sure this should be called a bug. Apparently, when you have (= (Green Tom) False) defined, you specifies a non-total function Green. Substituting it to the query may suppose that you evaluates (Green $who) to False with grounding $who to Tom. OTOH, if we define atom types, and in particular define match type as (-> Space Atom ...), then it should match its first argument without reduction. But maybe you should also define the type of := as (-> Atom ...) in order to avoid reduction of its first argument. So, basically, any behavior can be accepted as valid. What should be the default behavior and how it is better to control this behavior via explicit types is what is being fleshed out right now.

Should such query work then:
(= (Green Sam) True)
(= (Green Tom) False)
!(println! (match &self (= (Green $who) True) ($who is really green)))

?

This code works
(: = (-> Atom Atom Any))
(= (Green Sam) True)
(= (Green Tom) False)
(= (x) (match &self (= (Green $who) True) ($who is really green)))
!(println! (x))

There are two questions. One is what to do with = and its type. It is not a normal grounded symbol, because its semantics is defined by the interpreter - not by execute method. But maybe we should have it formally as a grounded symbol with a corresponding type. Or we should just insert its type definition by default in Atomspace.
The second question is why calling match within println! directly doesn't output the result, while wrapping it into a function does... Maybe, it's also the question about match type. I have not yet dig into the novel version of the interpreter. Maybe, @vsbogd has some ideas?

One more concern. Why initially I did think that such queries as (match &self (= (Green $who) True) ($who is really green)) should work, so we can always revert =, when we want, but maybe we should keep = for purely functional evaluation, and when we want reversible declarative definitions, we should use another symbol (in OpenCog classic, there is an imperative BindLink and declarative PLN links like Inheritance, Equal or others). It would be really convenient to be able to deal with = declaratively, but if it will appear that there are some nasty problems with this, we can resort to using Eq (or anything else) with inference rules for it defined in MeTTa for the cases, when we do expect backward chaining to be used. I'm not sure if this would be just a fallback strategy, or a preferable less confusing solution.

I mean,
(:= (Green Sam) True)
(:= (Green Tom) False)
(= (x) (match &self (:= (Green $who) True) ($who is really green)))
!(println! (x))

works out-of-the-box without specifying a type for :=. Thus, behavior of = inevitably differs from a pure symbol. Of course, it is always up to the programmer whether to define own equality symbol with custom behavior, or to overuse = possibly facing some issues. But "good practices" should come from us.

@Necr0x0Der There type issue in such query !(println! (match &self (= (Green $who) True) ($who is really green)))
i mean without wrapping the query in (x)
========= MeTTa version 0.0 =========

[2022-06-03T12:34:22Z DEBUG hyperon::metta::interpreter] interpret_as_type_plan: input: (println! (match &self (= (length (Cons a Nil) $W) True)
[2022-06-03T12:34:22Z TRACE hyperon::metta::types] get_reducted_types: atom: println!
[2022-06-03T12:34:22Z TRACE hyperon::metta::types] get_reducted_types: return atom println! types [(-> ? IO)]
[2022-06-03T12:34:22Z DEBUG hyperon::metta::interpreter] current plan:
    return [(-> ? IO)] then form alternative plans for expression (println! (match &self (= (length (Cons a Nil) $W) True) $W)) using types
[2022-06-03T12:34:22Z DEBUG hyperon::metta::interpreter] current plan:
    apply "form alternative plans for expression (println! (match &self (= (length (Cons a Nil) $W) True) $W)) using types" to "[(-> ? IO)]"
[2022-06-03T12:34:22Z DEBUG hyperon::metta::interpreter] interpret_expression_as_type_op: input: (println! (match &self (= (length (Cons a Nil) $pected return type: Undefined
[2022-06-03T12:34:22Z DEBUG hyperon::metta::interpreter] interpret_as_type_plan: input: (match &self (= (length (Cons a Nil) $W) True) $W), type:
[2022-06-03T12:34:22Z TRACE hyperon::metta::types] get_reducted_types: atom: match
[2022-06-03T12:34:22Z TRACE hyperon::metta::types] get_reducted_types: return atom match types [(-> Space Any Atom Atom)]
[2022-06-03T12:34:22Z DEBUG hyperon::metta::interpreter] current plan:
    return [(println! (match &self (= (length (Cons a Nil) $W) True) $W))]
    return [(-> Space Any Atom Atom)] then form alternative plans for expression (match &self (= (length (Cons a Nil) $W) True) $W) using types telement then interpret each alternative
[2022-06-03T12:34:22Z DEBUG hyperon::metta::interpreter] current plan:
    return [(-> Space Any Atom Atom)] then form alternative plans for expression (match &self (= (length (Cons a Nil) $W) True) $W) using types t (length (Cons a Nil) $W) True) $W))], ?) then insert right element as child 1 of left element then interpret each alternative
[2022-06-03T12:34:22Z DEBUG hyperon::metta::interpreter] current plan:
    apply "form alternative plans for expression (match &self (= (length (Cons a Nil) $W) True) $W) using types" to "[(-> Space Any Atom Atom)]" = (length (Cons a Nil) $W) True) $W))], ?) then insert right element as child 1 of left element then interpret each alternative
[2022-06-03T12:34:22Z DEBUG hyperon::metta::interpreter] interpret_expression_as_type_op: input: (match &self (= (length (Cons a Nil) $W) True) $, expected return type: Specific(?)
[2022-06-03T12:34:22Z DEBUG hyperon::metta::interpreter] current plan:
    error "Operation returns wrong type: Atom, expected: Specific(?)" then return tuple ([(println! (match &self (= (length (Cons a Nil) $W) Trueld 1 of left element then interpret each alternative

One option to change the behaviour is to have both alternatives in interpreter plan:

matching after reduction: (match &self (:= False True) (Tom is really green))  returns empty result
matching without reduction: (match &self (:= (Green $who) True) ($who is really green)) returns (Sam is really green)
Merging of the results will return [(Sam is really green)].

Should such query work then:
(= (Green Sam) True)
(= (Green Tom) False)
!(println! (match &self (= (Green $who) True) ($who is really green)))

It will not work out of the box because = has special meaning as Alexey said. It is not equality check, it adds the equality which is used by interpreter.

The second question is why calling match within println! directly doesn't output the result, while wrapping it into a function does...

If println! type is changed to (-> Atom IO) it works. At the moment interpreter matches returned type of the function with expected type of the next one. It is added to cut incorrect interpretation paths and make interpretation faster. But at the moment we have a number of types like ? which doesn't type check by internal type checker and it leads to such confusion. We should cleanup such examples using standard type system for MeTTa. One particular thing which is not finished yet is consistent notation for the Undefined type.

Hmm... with (-> Atom IO) type, println! just prints the given expression without reducing it (which makes sense for Atom). (println! (match &self (:= (Green $who) True) ($who is really green))) works only when both match and println! have Any as the return type, which is strange, because I'd expect that the argument type of println and the return type of match should coincide (not two return types)...
In any case, since we have support for types of grounded symbols, we can start cleaning up the mess with the types of concrete grounded symbols and continue with formalizing the semantics of the interpreter w.r.t. symbols (meta)types.

Yes, sorry, with (-> Atom IO) it works but relatively useless. It should work properly with (-> Any IO) but it doesn't work at the moment because Any is not matched against Atom returned from match. It is what I mean when say that we need to define consistent type system here.

Hmm.... match should be typed as (-> Space Any $t $t), but with $t being also Atom for the first occurrence (to be not reduced before calling match) and being non-deterministic for the return type. In some cases we may want to get a non-reduced Atom, but of type Int (e.g. arithmetic expression over ints). I don't want to overcomplicate it, but it seems that we may want to define both type and meta-type simultaneously. Maybe, we should think about this...
Another note/question: I wonder if we can or should be able to define quote and unquote as identity functions with different type signatures:
(: quote (-> Any Atom))
(: unquote (-> Atom Any))

In both cases, we may want to give more precise types, e.g. (: quote (-> $t (Atom $t)) or something like that...

@Necr0x0Der , looks like this old issue is relevant to what we are discussing in #136 : type of pattern argument in match should be Atom

Conclusion. Our choice is to consider match input pattern as Atom and do not reduce it. This behavior should be emphasized (in docs, tests, tutorials, etc.), so no one would expect that any subexpression of the pattern would be reduced before match is executed.


Replace parens with braces to compile aggregate

Fixes the following issue in clang:
In file included from /Users/ray_zhang/anaconda3/envs/idp3/include/xtensor/xarray.hpp:19:
In file included from /Users/ray_zhang/anaconda3/envs/idp3/include/xtensor/xcontainer.hpp:23:
In file included from /Users/ray_zhang/anaconda3/envs/idp3/include/xtensor/xmath.hpp:27:
In file included from /Users/ray_zhang/anaconda3/envs/idp3/include/xtensor/xstrided_view.hpp:26:
/Users/ray_zhang/anaconda3/envs/idp3/include/xtensor/xstrided_view_base.hpp:878:55: error: cannot compile this aggregate expression yet
                return std::array<std::ptrdiff_t, 3>({0, 0, 0});

@tdegeus any chance you could check if this syntax causes the warnings you were seeing before?

@OneRaynyDay this one doesn't complain: https://github.com/QuantStack/xtensor/blob/773b86b7e936b819ecfa08c9ec1270ad92e972b3/include/xtensor/xstrided_view_base.hpp#L885 ?
also any chance you can check these:
https://github.com/QuantStack/xtensor/blob/773b86b7e936b819ecfa08c9ec1270ad92e972b3/include/xtensor/xslice.hpp#L63-L91

There were no compiler warnings emitted from them. @wolfv

@wolf Also no warnings for me.


Add switch command

Improvements:

Add switch command to switch between data fields in ModQuik

Format: switch f/FIELDS (FIELDS should be student, tutorial, consultation, or grade)

Switch automatically to the data fields related to a command after executing this command successfully.

Codecov Report
Base: 58.10% // Head: 58.13% // Increases project coverage by +0.02% :tada:

Coverage data is based on head (8969619) compared to base (0283970).
Patch coverage: 35.29% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #119      +/-   ##
============================================
+ Coverage     58.10%   58.13%   +0.02%
- Complexity      671      696      +25
============================================
  Files           146      149       +3
  Lines          2757     2921     +164
  Branches        317      335      +18
============================================
+ Hits           1602     1698      +96
- Misses         1028     1091      +63
- Partials        127      132       +5

Impacted Files
Coverage Δ

...va/seedu/address/logic/commands/SwitchCommand.java
0.00% <0.00%> (ø)

.../seedu/address/logic/parser/AddressBookParser.java
60.78% <0.00%> (-2.18%)
:arrow_down:

...eedu/address/logic/parser/SwitchCommandParser.java
0.00% <0.00%> (ø)

src/main/java/seedu/address/ui/MainWindow.java
0.00% <0.00%> (ø)

...va/seedu/address/logic/commands/CommandResult.java
93.33% <83.33%> (+5.33%)
:arrow_up:

...java/seedu/address/logic/commands/ExitCommand.java
100.00% <100.00%> (ø)

...java/seedu/address/logic/commands/HelpCommand.java
100.00% <100.00%> (ø)

.../commands/consultation/AddConsultationCommand.java
85.71% <100.00%> (ø)

...mmands/consultation/DeleteConsultationCommand.java
100.00% <100.00%> (ø)

...edu/address/logic/commands/student/AddCommand.java
100.00% <100.00%> (ø)

... and 14 more

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


returning pathes by download supplementary files

For bioinformatic pipelines it is useful to get pairs of name-> file for all downloaded supplementary files. My suggestion is to return dictionary of pairs name -> path in gsm.download_supplementary_files instead of current None

That's a good idea. I'll try to make it for the next release or even earlier for the master.


Create 210-Course-Schedule-II.cs

File(s) Modified:210-Course-Schedule-II.cs
Language(s) Used: csharp
Submission URL: https://leetcode.com/submissions/detail/792074642/
Language: csharp

Thanks, @agnihotriketan!


TextInput's selectionColor doesn't style Android's selection handles

Description
Using selectionColor on iOS styles the selection, as well as the 'handles' on either side of it:

However, on Android these handles are green, which also happens to be the default selectionColor if you don't override it. I feel that these should go along with what iOS does (turn pink in this example).

Another example (where it should also be pink):

React Native version:
System:
    OS: macOS 10.15.7
    CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
    Memory: 21.14 MB / 16.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 14.11.0 - ~/.nvm/versions/node/v14.11.0/bin/node
    Yarn: Not Found
    npm: 6.14.8 - ~/.nvm/versions/node/v14.11.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.9.3 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.1, DriverKit 19.0, macOS 10.15, tvOS 14.0, watchOS 7.0
    Android SDK: Not Found
  IDEs:
    Android Studio: 4.0 AI-193.69<IP_ADDRESS>26763
    Xcode: 12.1/12A7403 - /usr/bin/xcodebuild
  Languages:
    Java: javac 15 - /usr/bin/javac
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1
    react-native: 0.63.3 => 0.63.3
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.

Create a TextInput and set its selectionColor prop to something
Run in the iOS or Android simulators, make a selection, and check the handle colours

Expected Results
The selection drag handles should be coloured by selectionColor on Android.
Snack, code example, screenshot, or link to a repository:
Snack

i have the same problem with you. and i tried to config some android xml files and turn out  not work at all.

I also meet this problem. Do you know the solutions now? @adamsoutar

I'm pretty sure this problem has been around for a year at least. Ideally the prop should work cross-platform. Worst-case the docs should be updated to reflect that this is an iOS-only prop...

I'm pretty sure this problem has been around for a year at least. Ideally the prop should work cross-platform. Worst-case the docs should be updated to reflect that this is an iOS-only prop...

Related https://github.com/facebook/react-native/issues/22762#issuecomment-646055030, I summarize https://github.com/facebook/react-native/issues/22762#issuecomment-772634690 limitations given by the Android Sdk API 28 (Pie) do not allow us to change the cursor color
you can change the cursor color on the other APIs with selectionColor prop. Thanks :peace_symbol: :pray:


refactor: get client version from crate and git

What this PR does / why we need it:
This PR

Get the client version from crate version and git such as 0.1.0-beta.5+8f3eded
Remove the client_version field in config.rpc

Which issue(s) this PR fixes:

Fixes #
Which docs this PR relation:
Ref #
Which toolchain this PR adaption:
No Breaking Change
Special notes for your reviewer:
NIL
CI Description

CI Name
Description

Chaos CI
Test the liveness and robustness of Axon under terrible network condition

Cargo Clippy
Run cargo clippy --all --all-targets --all-features

Coverage Test
Get the unit test coverage report

E2E Test
Run end-to-end test to check interfaces

Code Format
Run cargo +nightly fmt --all -- --check and cargo sort -gwc

Web3 Compatible Test
Test the Web3 compatibility of Axon

v3 Core Test
Run the compatibility tests provided by Uniswap V3

OCT 1-5 | 6-10 | 11 | 12-15 | 16-19
Run the compatibility tests provided by OpenZeppelin

CI Usage

Check the CI you want to run below, and then comment /run-ci.

CI Switch

[ ] Chaos CI
[x] Cargo Clippy
[ ] Coverage Test
[x] E2E Tests
[x] Code Format
[x] Unit Tests
[x] Web3 Compatible Tests
[x] OCT 1-5 And 12-15
[x] OCT 6-10
[x] OCT 11
[x] OCT 16-19
[x] v3 Core Tests

/run-ci

/run-ci

/run-ci


making custom clients, XEmbed-like functionality

I wonder if the plumbing here would be useful for ideas like the following.
Implementing a wayland version of https://tools.suckless.org/tabbed/ where instead of wprsc creating new windows for each remote window, it has a single window with tabs, and any new window opened ends up in a new tab.
And there could be a component that is similar to xwayland-xdg-shell that skips the serialization/deserialization for local use, so you are running a compositor as a sort of app framework.
Building on the "tabbed" idea, if the abstraction is easy to work with, this could be a mini UI framework for gluing together different applications. E.g. make custom layouts, run program A and B stacked side to side or on top of each other. Or directly on top of each other (you could add your own custom controls to existing applications that will draw over their UI, or do things like zoom in or crop the remote application, or embed them in a custom application).
Prior art with wakefield that embeds a wayland compositor in gtk,
https://github.com/magcius/wakefield
https://github.com/alexlarsson/wakefield
https://github.com/3v1n0/wakefield
The last one is the most recently updated, but it's still limited. E.g. it can't run firefox.
More ideas:

a solution to https://github.com/mpv-player/mpv/issues/9654 where you can embed mpv in your application, and no special support or protocols required
aside from modifying graphics/layout, you could hack inputs: allow custom macros and filtering of input to interact with the embedded apps.

There's also a protocol xdg-foreign which could be another approach, but I'm not sure if anyone has used it like this.

I really agree with you about the need for this, but I don't think this project is a good place to do it, the majority of what this project does is dealing with networking and resources, a local embedded compositor only have to deal with very minor position transformations and state management and there's really no reason to have a custom protocol in the middle.
There's actually a newer gtk 4 wayland compositor there has been made since, Casilda (announcement).
There's also cosmic-panel (also smithay based), which is a panel application that is wayland compositor and it's applets are separate wayland clients.
I really feel like we're missing a simple to use library that plugs into the wayland event loop directly, turning toplevels to subsurfaces, and handles all the proxying and translations needed for you.

a few more found in phoronix thread on casilda: libwlembed, QtWaylandCompositor (examples)


Windows Testing

Hi!
Thank you for creating this! It works perfectly on Mac and Linux. I am, however, having issues running tests on Windows (one problem I think you're aware of already).  However, I come bringing possible solutions.
https://github.com/p5-UV/Alien-libuv/blob/master/.github/workflows/windows.yml I am using this setup now. It's using a friend's S3 bucket site mirror for Strawberry Perl's site. It fixes the problem of not being able to test on any version. It saves you from actually having to build Perl on the Windows machine with MinGW.
If you can alter your actions to use this method along with your caching mechanism, it would allow you to have working tests on Windows for any version of Perl where there's a portable.
Running this particular set of tests I linked to above was taking around 10 minutes per run on AppVeyor and now runs in around 2 minutes and 30 seconds on GitHub Actions. It allows testing both pure Perl and XS modules and already has cpanm setup from the beginning.
Thoughts?

strawberry perl is available on https://github.com/shogo82148/actions-setup-perl/releases/tag/v1.5.0
enjoy hacking!

By default, windows-latest comes with Strawberry Perl installed. This needs to be removed from the PATH. When you then download and run a portable strawberry, those paths need to be added to the PATH. It looks like we're seeing:
2020-06-19T21:06:40,5944| You have make C:\Strawberry\c\bin\gmake.EXE
Attempting to build/install with the version that comes already installed vs using the portable you're asking for in the workflow file.
See the example here:
https://github.com/p5-UV/Alien-libuv/blob/master/.github/workflows/windows.yml#L31-L39

Oh, I forgot to add C:\straw\perl\site\bin to the PATH.
I'll fix it.

Got this one working today! https://github.com/perhunter/slurp/blob/master/.github/workflows/windows.yml  Works well.  Thank you again!


Newletter consent copy, disclaimer, and keyboard handling

What
Updating copy for disclaimers and newsletter, plus adding tap handler and proper handling for the keyboard.
Why
GDPR.
See 👀

 Newsletter Consent Copy


All recorded videos appear to be corrupt (?)

I record videos with this script:
#!/bin/bash

# Convenience script for recording under sway

if [[ -z "$1" ]]; then
    echo "Fatal error: First argument must be the recording destionation" >&2
    exit 1
fi

wf-recorder \
    -g "$(slurp-window)" \
    -c libx264rgb \
    -p "tune=animation" \
    -p "preset=faster" \
    -p "crf=14" \
    --audio="alsa_output.pci-0000_11_00.4.analog-stereo.monitor" \
    --file "$1"

The resulting video plays well with mpv and VLC, but if I try to embed it in a browser it doesn't work:
https://user-images.githubusercontent.com/597206/119030219-e3f49280-b9a9-11eb-8ca7-cce5924f6111.mp4
If I try to open the file in Avidemux to re-encode it, all it shows is a green box:

Does anybody else have this issue? Is it an issue with wf-recorder or with my ffmpeg parameters?

i have simillar problem: when i record video from terminal, it plays fine everywhere. but when i record it with sway keybind (bindsym), it doesnt play anywhewre

i have simillar problem: when i record video from terminal, it plays fine everywhere. but when i record it with sway keybind (bindsym), it doesnt play anywhewre

Do you send SIGINT to stop the recording?

i have simillar problem: when i record video from terminal, it plays fine everywhere. but when i record it with sway keybind (bindsym), it doesnt play anywhewre

Do you send SIGINT to stop the recording?

I just press Ctrl+C, as I thought was the intended way 🤔

I just press Ctrl+C, as I thought was the intended way

Yes, this is the intended way. Ctrl+C == SIGINT :)
I am unfortunately not sure what is causing your original issue, just thought that maybe @SNvMK has a different issue where they haven't set up the stop binding properly (for ex. killing with -9)

i have simillar problem: when i record video from terminal, it plays fine everywhere. but when i record it with sway keybind (bindsym), it doesnt play anywhewre

Do you send SIGINT to stop the recording?

i just doing exec killall wf-recorder. do i do something other?

i just doing exec killall wf-recorder. do i do something other?

Yes, you're sending SIGTERM. Try killall -SIGINT wf-recorder

I record videos with this script:
#!/bin/bash

# Convenience script for recording under sway

if [[ -z "$1" ]]; then
    echo "Fatal error: First argument must be the recording destionation" >&2
    exit 1
fi

wf-recorder \
    -g "$(slurp-window)" \
    -c libx264rgb \
    -p "tune=animation" \
    -p "preset=faster" \
    -p "crf=14" \
    --audio="alsa_output.pci-0000_11_00.4.analog-stereo.monitor" \
    --file "$1"

The resulting video plays well with mpv and VLC, but if I try to embed it in a browser it doesn't work:
test.mp4
If I try to open the file in Avidemux to re-encode it, all it shows is a green box:

Does anybody else have this issue? Is it an issue with wf-recorder or with my ffmpeg parameters?

wf-recorder || pkill -SIGINT $(pgrep wf-recorder)
put this at the end of your script

trap "pkill -INT wf-recorder" INT pulling this before the wf-recorder command also does the job.

I'm getting a similar problem where plain wf-recorder (v0.3.0) produces a recording that is said to be corrupted on GitHub or "not compatible" on WhatsApp.

Tried with the the two suggestions above (trap / pkill) with no success
Playing the video on VLC works but produces the following error logs:

❯ vlc recording.mp4
VLC media player <IP_ADDRESS> Vetinari (revision 3.0.13-8-g41878ff4f2)
[000055a05898e580] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00007fad40007960] gl gl: Initialized libplacebo v4.192.1 (API v192)
[00007fad40840b80] chain filter error: Too high level of recursion (3)
[00007fad40828dc0] main filter error: Failed to create video converter
[00007fad40840b80] chain filter error: Too high level of recursion (3)
[00007fad40828dc0] main filter error: Failed to create video converter
[00007fad40840b80] chain filter error: Too high level of recursion (3)
[00007fad40828dc0] main filter error: Failed to create video converter

[...]

[00007fad40840b80] chain filter error: Too high level of recursion (3)
[00007fad40828dc0] main filter error: Failed to create video converter
[00007fad4080c090] main filter error: Failed to create video converter
[00007fad400013c0] main vout display error: Failed to create video converter
[00007fad400013c0] main vout display error: Failed to adapt decoder format to display
[00007fad3c0ac5e0] main video output error: video output creation failed
[00007fad58c15700] main decoder error: failed to create video output
[00007fad4080d0a0] gl gl: Initialized libplacebo v4.192.1 (API v192)

Installing version 0.2.1 of wf-recorder works: WhatsApp accepts to display the video

With that version, VLC logs are different

❯ vlc recording.mp4
VLC media player <IP_ADDRESS> Vetinari (revision 3.0.13-8-g41878ff4f2)
[000055b222169580] main libvlc: Running vlc with the default interface.

I tried to compile previous commit versions to find a culprit but getting build issues and failing to cherry-pick 47a3905f670fe12ecbdfe4719df654df1cd183e2 on older commits (I've not put much effort after that)
This is on Arch Linux with sway wm.

Well, rubber duck debugging effect: that made me search for codec options; and the following fixed it:
  -t, --force-yuv           Use the -t or --force-yuv option to force conversion of the data to
                            yuv format, before sending it to the gpu.

Hopefully that helps someone else in the same situation!

https://user-images.githubusercontent.com/48933993/176851454-e5f9b43e-da54-4b14-a68a-04955751665f.mp4
same here using artix linux, how to stop the recording in terminal ??

When wf-recorder is terminated with a SIGTERM, e.g. by running pkill wf-recorder, it should exit gracefully and correctly closing the recording just like with SIGINT. SIGTERM (as opposed to SIGKILL) indicates a graceful termination (it is described in the glibc guide as "It is the normal way to politely ask a program to terminate.") and is the obvious way to stop a wf-recorder instance running in the background. And perhaps SIGHUP should be handled similarly as well.

It's now again broken for me with some of the recent updates on Arch/Wayland. --force-yuv worked will, except now all the videos are again corrupt in Firefox. Anyone else?

This solves it. Sorry for the noise.


[Feature Request] Shortcuts for clear context

🥰 Feature Description
Add shortcuts for clear current context, because I use that for over hundred times everyday.
🧐 Proposed Solution
I guess the description is clear and enough.
📝 Additional Information
No response

You can input quotation marks（:） to trigger the clearing context or to delete the current chat window.

Or click this icon to clear context.

thank you, :clear meets my need


dead or expired URL goes to 404 page

I an not sure if this is an issue, a config issue on my part, or if it was the intent of the developer but i thought I would report here just in case.
If a link has already been used or is expired it goes to a generic 404 page.
Centos 7.2
Apache/2.4.6 (reverse proxy)
Python 2.7.5
pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7)
Redis server v=2.6.17
Not Found

The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

Would it be better if snappass instead showed a page informing them that the link was either expired, wrong, or already used? If it is an config issue on my part or the devs intent let me know. Thank you.

Right now, this is as designed. A Jinja2 template could be added to be display a more informative 404 page instead of the Python web server returning its default 404 page.

Thanks James, I appreciate the response!


Scrollbars of both panels are not independet

Both panels should have the height of it container and show a scrollbar if grows bigger. Currently, the right container is not displaying an internal scrollbar and when it grows bigger than the viewport, a "main" scrollbar is shown that moves both panels.

hey @barretodavid could you please let us know which version of angular2/batarangle you're using, and if possible, a screenshot of the scrollbar issue you're experiencing?

Sure. I'm using angular2-beta8 and batarangle 0.0.2

cool thanks! @barretodavid this issue is fixed with the latest build :)

Where should I get the latest build? I just went to batarangle.io, hit the install button, drag & drop to my extensions in chrome and I still have the same 0.0.2 version with the same issue. Do I need to do the build myself from source?

Easiest would be to pull the repo and build it yourself indeed.

Building from repo fix it, thanks


Refactor: Eff

Actually, the repo should definitely have the following in place before tackling #3 and #4:

Refactor many functions involving PlayerState to GameState.
Refactor most things involving GameState -> GameState to a (State GameState :> es) => Eff es a.
Make GameState include a Map UUID PlayerState and not just two PlayerStates as it is right now.
Zoom appropriately. Note, zoom worked with Zoom (which depended on mtl-style MonadState), so there probably will be some rewritings for zoom to work with the state effect.


New Window does not start a new instance of VS Code in a separate window

VSCode Version: 1.20.0
OS Version: 10.13.3

Steps to Reproduce:

Use any of the create 'New Window' approaches:

From menubar: File > New Window
Pressing keyboard shortcut: CMD + Shift + N
From Dock: Right Click VS Code Icon > New Window

The current workspace is replaced with a blank workspace.

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

@oscarcao that should not be the case. can you share your settings?

These are my custom settings:
// Place your settings in this file to overwrite the default settings
{
"telemetry.enableCrashReporter": false,
"git.confirmSync": false,
"window.nativeTabs": true,
"workbench.iconTheme": "material-icon-theme",
"git.enableSmartCommit": true,
"editor.minimap.enabled": false,
"extensions.ignoreRecommendations": true,
"workbench.startupEditor": "none",
}
On Sat, Feb 10, 2018 at 6:04 PM, Benjamin Pasero<EMAIL_ADDRESS>wrote:

@oscarcao https://github.com/oscarcao that should not be the case. can
you share your settings?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/vscode/issues/43360#issuecomment-364631673,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAnCoUKOOMEF_7MW_gsh24YKKYwJUorMks5tTT-IgaJpZM4SAqgg
.

@oscarcao maybe try to set "window.nativeTabs": false

Setting "window.nativeTabs": false resolves the issue. However, for Hyperdock's window snapping feature to work, I need to have nativeTabs enabled.

This is a OS setting then, nothing VS Code controls:


Patch htsjdk to propagate indices to CRAM readers correctly

This is htsjdk issue https://github.com/samtools/htsjdk/issues/296

@edwardkw, this one is for you. Since it's blocking several other tickets, recommend prioritizing it over other tasks.

Done in https://github.com/samtools/htsjdk/pull/299


New version: MeshCore v1.1.3

Registering package: MeshCore
Repository: https://github.com/PetrKryslUCSD/MeshCore.jl
Created by: @PetrKryslUCSD
Version: v1.1.3
Commit: 60590ac744e211e87f1212a9e87df120a1391fd7
Reviewed by: @PetrKryslUCSD
Reference: https://github.com/PetrKryslUCSD/MeshCore.jl/commit/60590ac744e211e87f1212a9e87df120a1391fd7#commitcomment-48116277

@PetrKryslUCSD this should be v1.2.0


Implement test execution (local, central, remote)

This story is about provisioning, configuring and execution of automotive test cases within the openDuT framework on the DuTs. Depending on the specific test case and method, it is necessary to execute tests locally, in close vicinity to the DuT. In parallel, for certain tests it is appropriate that test case generation is taking place at a central instance of the framework or even from an external/ remote entity (e.g., testing SaaS).
Specific features of this story are:

[ ] Implement a local test execution environment for automotive test cases on EDGAR. The execution environment should be segregated from other EDGAR components, communicate via an API with EDGAR and be potentially containerized
[ ] Create a mechanism to provision the deployment of new/ external test engines on EDGAR that can be executed on the attached DuTs
[ ] Connect the (local) test engine with the physical/ virtual automotive interfaces (ETH, CAN) of EDGAR to reach the DuTs
[ ] EDGAR must be capable of embedding new test engines in a plug&play mode, potentially triggered by the Test-Manager and distributed via the VPN (CARL)
[ ] Provide an interface for the test engine to trigger automotive applications (clamps, serial comm., general I/O, power supply) on the DuT (cf. #4 )

For the MVP, we have distilled and are currently working on the following tasks:

[ ] Define test configuration format (JSON)
[ ] Adjust and extend types to allow transferring test configurations to EDGARs
[ ] Create logic for parsing test configuration JSONs on CLEO
[ ] Create logic for pushing test configuration to EDGAR
[ ] Create logic for test initialization and monitoring on EDGAR
[ ] MAKE CAN and Ethernet accessible from within the test execution container
[ ] Set up dockerized WebDAV server
[ ] Create logic for uploading test results to WebDAV server
[ ] Create channel back to CARL to report status information
[ ] Set up dockerized local Docker repository (for MVP)


License

Dear yandexdataschool,
Thanks for sharing these scripts with us. They are very easy and useful!
Could you add a license for the files you have in this repository?
Kind regards,
Victor

Dear yandexdataschool,
Yeah I agree with labrax, indeed the code is really useful. I'd love to know if any license is available for us? Thanks!

Thank you for dropping by! Looks like I need to review my GitHub notification settings.

Thank you for dropping by! Looks like I need to review my GitHub notification settings.


Sometimes the last word of a text is not rendered

Is there an existing issue for this?

[X] I have searched the existing issues.

Is this issue related to iced?

[X] My hardware is compatible and my graphics drivers are up-to-date.

What happened?
Commit Merge pull request https://github.com/iced-rs/iced/pull/1921 from iced-rs/subpixel-glyph-positioning introduced a regression where sometimes the last word of a text is not rendered - for example see the last page of the Tour example ("end!" is missing).

What is the expected behavior?
The text is rendered completely.
Version
master
Operating System
Linux
Do you have any log output?
No response

For another example check the download_progress example:

I just opened #1933 which should fix the issue. Let me know!

https://github.com/iced-rs/iced/pull/1934 fixes the issue for me. Thanks! That was fast.

Was this the same as #782?

@lufte Yes.


training_regime is not documented in the model card spec

Bug description.
In https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md there is a section on hyperparameters (in particular, training_regime). However, this field does not appear in https://huggingface.co/docs/hub/model-card-annotated, so it is not clear what it exactly means, or how to report it. Guidance would be highly appreciated
Describe the expected behaviour
A definition on training_regime in https://huggingface.co/docs/hub/model-card-annotated if possible with an example
Thanks in advance!

cc @EziOzoani @meg-huggingface


SyntaxError in /clan/war-quuvqjvr

Error in ClashLeaders
SyntaxError in /clan/war-quuvqjvr
The string did not match the expected pattern.
View on Bugsnag
Stacktrace
[native code]:0 - json

View full stacktrace
Created automatically via Bugsnag

An error linked to this issue has been marked as fixed in Bugsnag
SyntaxError in /clan/reddit-dynasty-ugjpvjr


fix(TFD-2647): Add type converter.

What is the current behavior? (You can also link to an open issue here)
The type converter is deactivated.
What is the new behavior?
The type converter is activated.
Please check if the PR fulfills these requirements

[X] The commit message follows Talend standard
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features) ?
[ ] The code coverage on new code >75%
[ ] The new code does not introduce new technical issues (sonar / eslint)

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build / CI related changes
[ ] Other... Please describe:

Does this PR introduce a breaking change?

[ ] Yes
[ ] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information:

Pull request test result: success :star:
Sonar results

Pull request test result: success :star:
Sonar results

Pull request test result: success :star:
Sonar results

Pull request test result: success :star:
Sonar results

Pull request test result: success :star:
Sonar results

Pull request test result: failure :x:

Pull request test result: success :star:
Sonar results

Pull request test result: success :star:
Sonar results

Pull request test result: success :star:
Sonar results

Pull request test result: success :star:
Sonar results

Pull request test result: success :star:
Sonar results

Pull request test result: failure :x:

Pull request test result: success :star:
Sonar results

Pull request test result: success :star:
Sonar results

Pull request test result: success :star:
Sonar results

Pull request test result: success :star:
Sonar results

Pull request test result: success :star:
Sonar results

Pull request test result: success :star:
Sonar results


can't download pdf

Whenever I try to download this pdf I get this error:
Downloading metadata and eText information...
Traceback (most recent call last):
File "downloader.py", line 223, in
main(sys.argv[1])
File "downloader.py", line 86, in main
userid=bookData['userid'][0],
KeyError: 'userid'
I don't know how to fix it.

Hi there @mblack1,Pearson stopped including one of the arguments that had previously been required to download the book, so the downloader didn't work up until just now. I've updated the script on and tested it, and it should work. Please download the updated version from GitHub and let me know if it works or if it still has issues

Tried the most recent version and am getting.
Me@Me$ python3 downloader.py "https://etext.pearson.com/eplayer/book/7Z3LGD14D7"
Trying to extract bookId from url
Traceback (most recent call last):
File "downloader.py", line 223, in
main(sys.argv[1])
File "downloader.py", line 75, in main
bookId = bookData["bookid"][0]
KeyError: 'bookid'
Me@Me$ python3 downloader.py 7Z3LGD14D7
Traceback (most recent call last):
File "downloader.py", line 223, in
main(sys.argv[1])
File "downloader.py", line 77, in main
bookId = int(bookId)
ValueError: invalid literal for int() with base 10: '7Z3LGD14D7'
Does this mean this is a type of book that cannot be downloaded? Thanks.

Yup, you have one of the newer books that are stored as an epub on Pearson's servers. Those aren't supported by this script, and while I did try reversing the format at one point, I ran into too many issues, and wasn't able to make any progress towards making them downloadable and usable, sadly.

I've created a new issue for all ETEXT2_PXE-style books. At the moment, they're unsupported because they use a completely different format compared to the original etext system this downloader works with. Closed to keep discussion on these types of books in #12


Update instance.c to fix build error

I was not able to build the project due to the following error
src/wasm/instance.c:7:56: error: expected ‘,’ before ‘)’ token
 static_assert(sizeof(ovm_value_t) == sizeof(wasm_val_t));

Providing a debug message to the static_assert resolved the issue.

Looks great! Sorry this was an issue.


Update OpenSSL to 3.1.4

Scope & Purpose
Update OpenSSL to 3.1.4

[x] :hankey: Bugfix

Checklist

[x] Tests

[x] Regression tests

[x] :book: CHANGELOG entry made

Related Information
(Please reference tickets / specification / other PRs etc)

[x] oskar PR: https://github.com/arangodb/oskar/pull/563

Unrelated replicatedStateDocumentStoreSuiteDatabaseDeletionReplication2 known failure.


HDDS-7794: [snapshot] SnapshotDiff should throw better error messages for exception handling

What changes were proposed in this pull request?
Add error message in case snapshot info not found.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-7794
How was this patch tested?
Existing Unit test

@swamirishi Please fix the PR title. It should use . instead of :


Identity picker and scroll

Hello everyone!
I use this react component from azure-devops: https://azdevui.azureedge.net/azure-devops/components/identity-picker and it is great!
But I found one small issue. You can reproduce it right on component page description  (https://developer.microsoft.com/en-us/azure-devops/components/identity-picker)

Click on component field

Suggest list will be open

Try to scroll browser page down and you will see this picture:

You can see space between component and the list of users. The more you scroll - the more the space.

@dominionish - thanks for your feedback. Could you please report this issue here https://developercommunity.visualstudio.com/spaces/21/index.html .

https://developercommunity.visualstudio.com/content/problem/636085/identity-picker-and-scroll.html


Markdown command break

Hello there, I would like to report that I'm unable to make ghost parse correctly markdown as described in the documentation right here : https://docs.ghost.org/faq/using-the-editor/
As you can seen there is, highlight and subtext.
Using the editor this syntax is not doing anything. I didn't tested some others but this might also happen.
Thank you in advance :p
Technical details:

Ghost version: 2.22.3
Node Version: v8.10.0
Browser/OS: Chrome Version 74.0.3729.169 (Official Build) (64-bit)

The highlight syntax is a slight docs error. Highlight syntax works inside of a markdown card but it's never been recognised syntax for a text expansion inside of the rich-text editor because the <mark> element is not supported in the underlying library and document format.
I've tested and confirmed that subtext text expansion and all the other supported expansions are working correctly, as such I'm going to close this issue. If you continue to have problems, please provide detailed reproduction steps.


handle specs being deleted/renamed

The autorust generator needs to be able to handle specifications that vanish out from underneath us.
A recent issue related to this is where storagetasks was renamed to storageactions.  Ref: https://github.com/Azure/azure-rest-api-specs/pull/25847

mitigated via #1509


L10n example and performance improvements

Adds an example showing how to use fluent to translate text, including a more advanced plural selection.
Fixes a couple unneeded String clones in the localization implementation by using a Cow, and prevents the bidi markers from being written by fluent so we don't need to remove them.

I'll try to take a look at this soon. Meanwhile please rebase on master to fix the clippy errors so we can pass the CI.


Prefetcher needs to be throttled

Overview
Currently it looks like I can trigger an indefinite amount of prefetches just by hovering the mouse pointer in and out an item on a list. Refer to the screenshot below in marketing section's marketing activity index page:

This would potentially cause GraphQL throttle issue. One solution is to throttle prefetcher, i.e., re-prefetch after 30 seconds or 1 minute since it is unlikely that data will be changed within such short amount of time.
Motivation
Avoid GraphQL throttle issue.

What inspired this enhancement? What makes you think this should be in quilt?
@darrenhebner referred me to this repo.

Checklist

[x] Please delete the labels section before submitting your issue
[x] I have described this issue in a way that is actionable (if possible)

I am not sure if this is really an issue. The prefetcher waits for a link to be hovered for 150ms before triggering the prefetch.


[AutoRelease] t2-datadog-2022-10-26-63902(Do not merge)

https://github.com/Azure/sdk-release-request/issues/2985
Live test success
https://dev.azure.com/azure-sdk/internal/_build?definitionId=1031

issue link:https://github.com/Azure/sdk-release-request/issues/2985


Feature: Enable grecaptcha.render optional callback.

I'd like to introduce following optional callbacks of grecaptcha.render.

expired-callback
error-callback

cf. https://developers.google.com/recaptcha/docs/invisible
Currently, when the connectivity is lost after starting recaptcha sequence, there is no way to know the hanging.
error-callback is called when a connectivity issue happens, and the result should be error.

Good stuff. I only have one question I commented above. Once that has been cleared, it's good to be merged


Add mind-as-well to Contributors list

added name to contributors list. excellent guide, very easy to follow!

@mind-as-well, I'm quite elated about your pull request. I wanna evolve this project to addresses various problems faced by first-time contributors. I'd love to learn about your journey in open source community, the problems, pain points you had etc.
Could you explain how you felt when you went through the tutorial, made a pull request and learned that I merged it?
We’ve recently added Facebook share and tweet feature to our web app. Could you please go to https://roshanjossey.github.io/first-contributions/#social-share and share your first contribution to open source?
Also, check out projects with easy issues while you’re there.

Your tutorial was fantastic! I'm still getting used to github so let me think about it, your project seems like a great idea!

@mind-as-well, I’d urge you to continue contributing to other open source projects.
We also have a slack team to help/mentor people trying to contribute to open source projects.
You can join the team by going to https://firstcontributions.herokuapp.com


Feature/testwise coverage

This PR adds basic support for collecting "test-specific coverage" or rather allows the debuggee to signal the debugger (i.e., TinyInst host process) to dump the collected coverage and reset all probes. The signaling process is implemented using (OUTPUT_DEBUG_STRING_EVENT)[https://docs.microsoft.com/en-us/windows/win32/api/debugapi/nf-debugapi-outputdebugstringa), an IPC approach provided by Microsoft's debugger API.
To make use of it, simply add the command line argument -dump_on_debug and it will dump the current coverage to whatever filename you provide using the output debug string plus the .cov extension.
Here's a simple usage example from a GoogleTest event listener:
#include <gtest/gtest.h>
#include <Windows.h>

// ...

class CoverageEventListener : public testing::EmptyTestEventListener {
public:
    CoverageEventListener() = default;

    void OnTestProgramStart(const testing::UnitTest &test) override {
		// trigger coverage dump (for clean start)
		OutputDebugString(L"TEST_PROGRAM_START");
	}

    void OnTestStart(const testing::TestInfo &test_info) override {
		std::string full_test_name = (std::string(test_info.test_suite_name()) + "_" + test_info.name());
		// trigger coverage dump (for clean first test)
		if (counter == 0)
			OutputDebugString(L"BEFORE_FIRST_TEST");
		counter += 1;
	}

    void OnTestEnd(const testing::TestInfo &test_info) override {
		std::string full_test_name = (std::string(test_info.test_suite_name()) + "_" + test_info.name());
		std::wstring test_name = std::wstring(full_test_name.begin(), full_test_name.end());
		// trigger coverage dump after each test case for test-specific coverage
		OutputDebugString(test_name.c_str());
	}

    void OnTestProgramEnd(const testing::UnitTest &test) override {
		// trigger coverage dump (to see cleanup)
		OutputDebugString(L"TEST_PROGRAM_END");
	}
private:
    int counter = 0;
};

Additionally, a small program (litecov-resolver.cpp) is added which enables resolving the BB offset addresses that TinyInst collects to source files and lines using dbghelp.dll.
To use it, you must also copy dbghelp.dll, symsrv.dll, and symsrv.yes to the build output path (or in the same directory as litecov-resolver.exe). These files are distributed as part of the Windows Debugging Tools.
simple-resolver.cpp is added as a playground for dbghelp.dll.

Open issues:

[ ] Add a instrument_modules_file option that allows passing a file containing modules to instrument (addresses command line length of cmd.exe)
[ ] Add a drop_duplicate_lines option to litecov-resolver which throws away covered BBs of the same source file line
[ ] Check if exception handling code is negatively affected by using -generate_unwind
[ ] Investigate issues with instrumentation in certain tests (?)
[ ] Add standardized coverage output format such as Cobertura (needs to be compatible with grcov)
[ ] Investigate if inlining is properly instrumented by TinyInst
[ ] Investigate performance overhead


Add readOnly styles to input

Description
Input component should has an styled readOnly state. Follow design specs.
Problem Statement/Justification
Users should be able to tell the difference between a normal and a readOnly input.
Proposed Solution or API
<Input readOnly />

Only on the input? there are no readOnly styles for the radio, checkbox, switch elements?

For now the scope of this task is only for the input component

We changed a lot of code for the Input package and will re-apply what you did @kikoruiz on the newest version :) I move it back to "in progress".


Number 'protocol' for laconia-config

Is your feature request related to a problem? Please describe.
AWS Lambda API states that all config should be strings.
This means that all our config should be string and then converted to number.
Describe the solution you'd like [optional]

Add LACONIA_CONFIG_PORT: integer:8080 to env to be intepreted by laconia-config as parseInt(8080);
Add LACONIA_CONFIG_TAX: float:80.80 to env to be interpreted by laconia-config as parseFloat(80.08);
Update documentation and examples with new features.

@hugosenari I can implement this, I haven't contributed in awhile. Or are you working on it?

Thanks @hugosenari and @geoffdutton! This is now released under 1.10.0. And the docs is live at https://laconiajs.io/docs/api/config.


Maintenance task: update articles to show good coding practices

What's wrong?
Aiven developer documentation should promote good coding practices. For example, some of the existing articles might contain hardcoded URI variables.
This is an ongoing task so that PRs can refer to this maintenance issue.
Please don't close this issue.
URL of affected page, and any other information

[ ] https://developer.aiven.io/docs/products/postgresql/howto/connect-python.html --> Update python main.py to something like DATABASE_URL=<postgres_uri> python main.py so that the URI is coming from an environment variable
[ ] https://developer.aiven.io/docs/products/mysql/howto/connect-with-php.html --> Use getenv() function or .env files instead of $uri = "MYSQL_URI";

Let's try to keep our issues to things that can be completed and closed. This long-running style is more like a regular chore, than an issue, so I'm closing this. Let's open issues with clear objectives when we spot something that can be improved.


envoy: Sanitize HTTP headers

[ upstream commit 9bb35ec59bf4809b3336fab61ea5f515ec5786d5 ]
Remove HTTP headers that might interfere with the original destination processing.
Signed-off-by: Jarno Rajahalme<EMAIL_ADDRESS>

This change is

wrong base branch, closing.


Futbin prices not showing in club's search filters

It stopped working because of the fix for stopping the interval when exiting the relevant page.
I did a fix if want it:
FUT Show Futbin player price.user.txt

Please submit these fixes as PR's instead of separate issues. It's very hard to keep track of what you changed this way.


Mystery Text Discussion: cpi.txt

Post your screenshots and discuss your findings about ww.txt here!

From this text document (cpi.txt), frequencies above 5 occur at ngrams sizes 5 and below. Sizes of 3 and below for the ngram give frequencies in the double digits. In terms of common phrases, they are mostly composed of references to locations and characters relevant to the text (Poirot, the Prime Minister, London, and so on).

Some common phrases are also mixed in there for high frequencies. One thing I found interesting was the common use of "I don't" as well as " I do not". They are close to the same frequencies at ngram size 3. Looking at the direct uses of "I do not", I think that these are intentionally used to portray the level of formality the character is speaking in (whether or not they heavily use contractions while speaking). I am assuming this, because the text samples include a lot of "Mr.", "Miss", "Mrs.", and other more formal descriptors. One the other hand, analysis of how "The Prime Minister" is used seems to indicate that he is being watched or maybe even investigated.

From the few text snippets that I have seen and the text analysis results, I can piece together that this is some sort of detective story. I wonder what the general plot of the story is.


Add a Codacy badge to README.md

Current coverage is 97.22% (diff: 100%)

Merging #1 into master will not change coverage

@@             master         #1   diff @@
==========================================
  Files             7          7
  Lines            36         36
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits             35         35
  Misses            1          1
  Partials          0          0

Powered by Codecov. Last update bd70412...b9b6f89


Access wrapped objects by ID outside of Move

Motivation
When an object is wrapped (made a field of) another object over the course of a move transaction, it disappears from the perspective of external tools, which can create confusing experiences, e.g.: When viewing a transaction that created an NFT in Explorer, if it is wrapped, its details will not be accessible via the transaction, even though it still exists in some sense.  At a later time, the details may become accessible again, if the object is unwrapped.
Functionality

Query an object by ID and discover that it is wrapped.
Use this query to visualise wrapped objects in Explorer.

Proposal

[ ] Full Node indexes wrapped events by scanning mutated objects looking for objects in the sub-structure whose id field matches the wrapped object's ID.
[ ] Full Node persists this information into a table mapping an ID to a root object and access path.
[ ] RPC calls to get objects by ID consult this table, and return a response indicating that the object was found wrapped.
[ ] Explorer displays wrapped objects as differentiated from root objects, with an option to view the object that it is wrapped in.

Alternatives
It is possible to achieve the same functionality within the adapter layer between Sui and Move, by explicitly representing wrapped object's in validators' object storage.  This could be done in one of two ways:

Wrapped objects are represented by a root object and access path (like the proposed full node index) and the adapter scans mutated objects to look for wrapped objects to update.
Wrapped objects are represented by their contents, and references to wrapped objects (in the object wrapping them) are represented by a forwarding pointer.  This requires that the adapter layer re-constitutes the wrapped representation before objects before a move call, and then scan the resulting objects to flatten the representation back out when committing transaction effects to storage.

Both of these approaches require doing additional work on the validator which doesn't help with execution or consensus, and can be done in the full node for the benefit of readers.
There is also the possibility of an even simpler index representation in Full Node which omits the access path (i.e. the index just says that a wrapped object can be found "somewhere" in the sub-structure of a given root object).  This saves indexing work on writes at the expense of scanning work on reads, which may make sense if reads are infrequent, but this may not be true if the Explorer is going to visualise all wrapped objects.

Motivation
When an object is wrapped (made a field of) another object over the course of a move transaction, it disappears from the perspective of external tools, which can create confusing experiences, e.g.: When viewing a transaction that created an NFT in Explorer, if it is wrapped, its details will not be accessible via the transaction, even though it still exists in some sense.  At a later time, the details may become accessible again, if the object is unwrapped.
Functionality

Query an object by ID and discover that it is wrapped.
Use this query to visualise wrapped objects in Explorer.

Proposal

[ ] Full Node indexes wrapped events by scanning mutated objects looking for objects in the sub-structure whose id field matches the wrapped object's ID.
[ ] Full Node persists this information into a table mapping an ID to a root object and access path.
[ ] RPC calls to get objects by ID consult this table, and return a response indicating that the object was found wrapped.
[ ] Explorer displays wrapped objects as differentiated from root objects, with an option to view the object that it is wrapped in.

Alternatives
It is possible to achieve the same functionality within the adapter layer between Sui and Move, by explicitly representing wrapped object's in validators' object storage.  This could be done in one of two ways:

Wrapped objects are represented by a root object and access path (like the proposed full node index) and the adapter scans mutated objects to look for wrapped objects to update.
Wrapped objects are represented by their contents, and references to wrapped objects (in the object wrapping them) are represented by a forwarding pointer.  This requires that the adapter layer re-constitutes the wrapped representation before objects before a move call, and then scan the resulting objects to flatten the representation back out when committing transaction effects to storage.

Both of these approaches require doing additional work on the validator which doesn't help with execution or consensus, and can be done in the full node for the benefit of readers.
There is also the possibility of an even simpler index representation in Full Node which omits the access path (i.e. the index just says that a wrapped object can be found "somewhere" in the sub-structure of a given root object).  This saves indexing work on writes at the expense of scanning work on reads, which may make sense if reads are infrequent, but this may not be true if the Explorer is going to visualise all wrapped help mỹ Mobiphone

Help Mobiphone


setpgid() fails with EPERM if pgid is exited but not reaped (it should succeed)

This is a reduced test case for some behavior that we're seeing in the fish shell. One issue in fish, previous WSL issue which was considered fixed but is not.
fish handles pipeline jobs by making the first process the group leader for all processes in the job, via setpgid. However if the group leader has exited (but not yet been reaped), the setpgid() call fails with EPERM on WSL, where AFAICT it ought to succeed (it does on macOS and Linux).
Tested on Win10 build 16299.rs3_release.170928-1534.
To reproduce: compile and run run.c as cc run.c; ./a.out On WSL this will output some errors and hang. On macOS and Linux it succeeds.
You can simulate fish's ugly workaround by running ./a.out keepalive. This keeps the parent process alive until the child has joined it, which prevents the error.

I call this the Rick Grimes problem. Like #1353 (message). From ps on Real Linux:
11006 pts/0    S+     0:00 ./a.out
11007 pts/0    Z      0:00 [a.out] <defunct>

This should work better starting in Insider Build 17713


Some questions about the detail in the paper.

Nice work!  Excuse me,  I have some question about the Table 7 and figure 5 of  the paper. In Table 7,  it shows the from scratch training is higher than from pretrained DINO in COCO datase, where in figure 5 is on the contrary.   It's a little confusing.

Thanks for your good question. As the model trained from scratch needs more training time, we only present the early epochs during training. The final results are better than the DINO-pretrained version, but with slow convergence.


[Cal.com] Share Meeting Link does not work. It's always empty despite me having public meeting links.

Extension
https://github.com/raycast/extensions/tree/main/extensions/cal-com-share-meeting-links
Description
“share meeting link” for cal.com's raycast extension has never ever worked for me.
I have made sure i pasted in the API key, tried different keys days later and im on the latest version. It always shows up empty despite me having two public meetings (15m & 30m).
Anyone else experiences this?

Steps To Reproduce

Make sure you have public event types in your cal.com profile
grab your API key from cal.com
paste in into the Raycast extension
See that there are no meeting links shown at all.

I'm not sure if there's something about my meetings that make it not go through.
Current Behaviour
The meeting links are not shown.
Expected Behaviour
The meeting links should be shown.

Hi @harrisrobin. I'm unable to replicate this. Are you using the hosted or self-hosted version of cal.com? The extension only works with the hosted version, but that is the only thing off the top of my head why it wouldn't work for you.

@eluce2 thanks for the reply!
I'm using the hosted version, not the self hosted. I definitely pasted the API key that I copied directly to my clipboard on cal.com. I don't really know why it's not working for me, will keep trying stuff.
Here's a video
https://user-images.githubusercontent.com/3880008/221679224-a88894a4-3e4f-4b3f-88e3-61a9efd5e981.mp4


Conversion of nulls between K arrays of minute/time/second/date/month type to numpy array of corresponding type

Numpy supports NaT for both datetime64 as well as timedelta64, and when converting K vectors of timestamp/timespan, nulls are converted to NaT as expected
np.asarray(q('0Np,1?0Wp'))

array(['NaT', '2212-04-14T11:35:56.648210432'],ndtype='datetime64[ns]')

np.asarray(q('0Nn,1?0Wn'))

array(['NaT',<PHONE_NUMBER>873370624], dtype='timedelta64[ns]')

but when converting K arrays of type minute, time, second, date, or month, nulls are not handled properly:
np.asarray(q('0Nd,1?0Wd'))

array(['-5877611-06-22',  '2129873-03-10'], dtype='datetime64[D]')

np.asarray(q('0Nt,1?0Wt'))

array([-9223372036855,<PHONE_NUMBER>], dtype='timedelta64[ms]')

If I upcast before the conversion and then downcast, everything works as expected, but this seems unnecessarily hacky.
np.array(q('`timestamp$0Nd,1?0Wd'), dtype='datetime64[D]')

array(['NaT', '1707-09-22'], dtype='datetime64[D]')

np.array(q('`timespan$0Nt,1?0Wt'), dtype='timedelta64[s]')

array([  'NaT', 1775124], dtype='timedelta64[s]')

Ideally, we would have this behavior without the up/down cast.
The conversion is also problematic in the reverse. NaT from numpy arrays are incorrectly converted into K. NaT from datetime64 gets converted to 1970.01.01, while NaT from timedelta64 gets converted to 0
K(np.array(['NaT','2001-01-01'], dtype='datetime64'))

k('1970.01.01 2001.01.01')

K(np.array(['NaT',1000], dtype='timedelta64[s]'))

k('0D00:00:00.000000000 0D00:16:40.000000000')

Thanks for your report. We will add support for handling NaTs in the future release.

Thanks a lot. Do you have a rough idea when 4.2.0 will be released?

This issue was addressed in the upcoming release 4.2.0.


Support blame for git submodules

We can look in parent directories for a .git file that will contain a relative path to the git repository to use for the sub-module.

Fixed in 1.10.0.


Cookbook should support installing Sensu on AIX

Expected Behavior
Current Behavior
Recipe sensu::_linux raises an exception indicatingUnsupported Linux platform family aix
Possible Solution
Extend sensu::_linux or add sensu::_aix recipe to handle AIX differences.
Steps to Reproduce (for bugs)

On an AIX 6.1 or 7.1, install Chef and attempt to run sensu::default recipe

Context
AIX is... different.
Your Environment

Version of this cookbook used: 3.0.0
Version of Sensu used: n/a
Version of Chef used: 12.14
Operating System and version (e.g. CentOS 7, Ubuntu 14.04): AIX 6.1, 7.1
Link to your project: N/A

Closed by #497


Sonic the Masked Werehog: Watch worthychoices.com

Sonic the Masked Werehog requests the watch of the watch_keyword worthychoices\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

worthychoices\.com has been seen in 0 true positives, 0 false positives, and 0 NAAs.

OK. So, I need to check PRs prior to doing !!/watch.


Get the Id of Task that is running me

Having called manage.py process_tasks which will then call the function given in the task, is it possible for that function to somehow get hold of the Task Id that caused its invocation?

I also tried to find a way of getting this, but no luck

Make use of the Task model from background_task.models and fetch the inserted Id from the function running it

Make use of the Task model from background_task.models and fetch the inserted Id from the function running it

This is not a reliable method when multiple tasks can be executed at the same time. Using something like Task.objects.latest() there is no guarantee that it is the correct task.
Because this package uses @background to register tasks, would it be that hard to add the task id in some sort of a static variable?
Something like this:
def static_var(varname, value):
    def decorate(func):
        setattr(func, varname, value)
        return func
    return decorate

@static_var("counter", 0)
def foo():
    foo.counter += 1
    print "Counter is %d" % foo.counter

For now i'm using an ugly way to do this. I'm passing a random hash to function as an argument and later on I search the database to find object that has this hash in argument field.


[Calculator Page] Changing the price category without changing the child's age does not allow to get new calculation results

Steps to reproduce:

Choose the Child's age and the Price category. Press the "Calculate" button.
Change the Price category without changing the Child's age. Press the "Calculate" button again.

Expected Result:
New calculation results are displayed.
Actual Result:
After changing the Price category (without changing the Child's age), the "Calculate" button is inactive, you must change the Child's age to get the results.

To do list

[x] create a new model to store periods of a child's life, the diaper consumption per day, and the price per unit that will belong to one of the categories.
[x] validations for the model
[x] validation to check the overlap period
[x] rework calculations based on new possible categories
[x] number of categories can be arbitrary
[x] number of periods can be arbitrary
[x] after adding periods to a category, the category becomes available for calculations
[x] on the New Design Calculator page, display all categories that have a diaper periods
[x] cover the functionality with tests

Done