feat(lib): Support inline comments in opt-in/out files

Current coverage is 100.00%

Merging #18 into master will not affect coverage as of 019fec5

@@            master     #18   diff @@
======================================
  Files            2       2
  Stmts           68      69     +1
  Branches         0       0
  Methods          0       0
======================================
+ Hit             68      69     +1
  Partial          0       0
  Missed           0       0

Review entire Coverage Diff as of 019fec5

Powered by Codecov. Updated on successful CI builds.

Merge after #17 to include proper instructions on usage when triggering a new release.


Allow using feature attributes for symbol rotation in WebGL layers

Issue was reported here.
Previously when using feature attributes in a rotation expression, the resulting rotation would always be zero.

The fix can be tried here:
https://3337-4723248-gh.circle-artifacts.com/0/examples/webgl-points-layer.html
With the following style:
{
  "symbol": {
    "symbolType": "square",
    "rotation": [
     "get", "population"
    ],
    "size": [
      "array",
      4,
      [
        "interpolate",
        [
          "linear"
        ],
        [
          "get",
          "population"
        ],
        20000,
        4,
        300000,
        28
      ]
    ],
    "color": [
      "interpolate",
      [
        "linear"
      ],
      [
        "get",
        "population"
      ],
      20000,
      "#ffdc00",
      300000,
      "#ff5b19"
    ],
    "offset": [
      "array",
      0,
      [
        "interpolate",
        [
          "linear"
        ],
        [
          "get",
          "population"
        ],
        20000,
        2,
        300000,
        14
      ]
    ]
  }
}


Create select with comma macro to support negative number

Description
For the better readability, gluesql uses select! macro.
But there is a nit problem. It can not handle consecutive negative numbers. That is why there are some workaround code - for example, parse_i64
Below code is the one example of workaound.
test!(
    Ok(select!(
        field_one          | field_two
        I64                |    I64;
        1                  parse_i64("-1");
        parse_i64("-2")    2;
        3                  3;
        parse_i64("-4")    parse_i64("-4")
    )),
    "SELECT field_one, field_two FROM Item"
);

This is because macro rule can not handle consecutive negative numbers with whitespace separator. Here is the playground link
Suggestion
To solve this problem, It is good to use clear separator such as comma or bar instead of whitespace.
So I made a select_with_comma macro.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

27 of 27 (100.0%)  changed or added relevant lines in 5 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.03%) to 97.81%

Totals

Change from base Build<PHONE_NUMBER>:
0.03%

Covered Lines:
28769

Relevant Lines:
29413

💛  - Coveralls

Oops. Thank you @ever0de . Let me change the separator as |

It seems | is not good to be used as separator. I got this error.

Let me try to find the workaround as much as possible I can. Until that, let me change this pr as draft

We share some experimental results...

If you change it to literal, the | delimiter works.
1.1 Changing to literal disables ToOwned or closure.
expr only works as a delimiter for =>, ,, and ;.

cc. @panarch

[conclusion]
expr -> literal
separator: comma -> bar
Type converting: Implement trait - convert row value type to column value type
@ever0de ?


Messaging updates

Tweaking a couple of customer facing messages

Assuming you are talking about the "object.create" it's because it ends up being a by reference case other wise and when the message and stack are modified to remove sensitive information for telemetry it also modifies the output of the exception.
The other cases are clarifying the messages being logged with more useful information why trying to diagnose errors (one was pointed out by a customer).
BTW . . . can you re-approve after my last update?


[NL] Found empty charts!

Happens for disaster charts, with Earth.
[floods across the world]
[which places in the world will be affected by rising temperature the most]

The issue with disaster charts was fixed in https://github.com/datacommonsorg/website/pull/2388.  Will wait and see if this needs more fixing...


bad jar in cache causes subsequent resolve to fail

Problem

In some cases, e.g. connection is bad or cut off, the half downloaded jar could end up in the cache
If a bad jar is in the cache, it is never evicted.

Reproducing 1 takes a bit work, but 2 is easy to repro:
# Fetch artifact, and it works
$ java -jar dist/coursier-cli.jar fetch junit:junit:4.12
/Users/yic/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/junit/junit/4.12/junit-4.12.jar
/Users/yic/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar

# Simulate a bad artifact download
$ rm /Users/yic/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/junit/junit/4.12/junit-4.12.jar
$ touch /Users/yic/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/junit/junit/4.12/junit-4.12.jar

# Fetch again:
$ java -jar dist/coursier-cli.jar fetch junit:junit:4.12
  Error:
https://repo1.maven.org/maven2/junit/junit/4.12/junit-4.12.jar: WrongChecksum(SHA-1,da39a3ee5e6b4b0d3255bfef95601890afd80709,2973d150c0dc1fefe998f834810d68f278ea58ec,/Users/yic/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/junit/junit/4.12/junit-4.12.jar,/Users/yic/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/junit/junit/4.12/junit-4.12.jar.sha1)

# And again
$ java -jar dist/coursier-cli.jar fetch junit:junit:4.12
  Error:
https://repo1.maven.org/maven2/junit/junit/4.12/junit-4.12.jar: WrongChecksum(SHA-1,da39a3ee5e6b4b0d3255bfef95601890afd80709,2973d150c0dc1fefe998f834810d68f278ea58ec,/Users/yic/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/junit/junit/4.12/junit-4.12.jar,/Users/yic/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/junit/junit/4.12/junit-4.12.jar.sha1)

Proposed solution
For 1), download the file to a temp dir, then move it over to cache if the SHA is correct)
For 2), evict the jar that's bad in cache.
Either approach should resolve the issue

@wisechengyi Files are already downloaded to a temporary place (via this method). Maybe we could check the SHA-1 before copying them to their final place, yes.

Fixed by https://github.com/coursier/coursier/pull/797, right?

Yup!


More basic UI icons

Hi! Thanks for making this. I really like the style of the icons!
However, for our e-commerce project we can't use this, since the pack is missing a couple of (IMO) essential icons:

Chevrons for dropdowns and show / hide toggles for expansion panels
A close icon (without a circle) for popups etc.
An error icon (! with a circle), I only found a warning icon

I think the value of this icon pack would be a lot bigger if these icons were added. Hope you found this helpful!
Sidenote: We found the "user" icon extraordinarily big compared to other icons:

I am also badly missing chevrons in the collection, while I see them in the websites UI for category swiper nav and category collapse / expand.

I also anticipated finding these essential icons and was suprised by their absence.

To complement the X without circle I'd say there is a need for a checkmark without.

A caret icon would be a great addition


Add missing HESA codes to institutions

with Ed have gone through and added missing codes.
Devs : please check we have done this correctly, and formatting not changed

 Add missinh HESA codes to Institutions


easyconfig configuration error handling to handle missing arguments

The error handling will end up with a throw (and a dotnet core crash)
If that's acceptable to us, then easyconfig already has code in place for informative error handling (even if the elegance of it is questionable)

Perhas that should have a try...catch(ConfigurationException) {} in the program to output the exception message and exit(1) ?  Other than that, I am ok with it.

As long as those messages are informative, I'm ok with this. Just no IndexOutOfBounds or other built-in exceptions.

@skolima the attached image details the type of error I'm talking about. There may still be edge cases that I've not considered (I'm sure there are) but they need to be fixed in EasyConfig, not compensated for in NuKeeper

👍 Looks ok to me. Is it ready to merge?

It is now @AnthonySteele


Reproduce experiments with external MT data

Hello,
Thank you very much for sharing your work!
I have followed your script to run the experiments on the En->De ST. I got a BLEU score of 25.31 without using external MT data. With external MT data used, I got 25.82, which is lower than 28.3 in your paper.
I'm wondering if a pre-trained MT model was perhaps utilized to achieve the 28.3 score? Or is there anything else that I might have missed in the process? Any suggestions or guidance you can offer would be greatly appreciated.
Thank you in advanced!

Hello,
Thank you very much for sharing your work! I have followed your script to run the experiments on the En->De ST. I got a BLEU score of 25.31 without using external MT data. With external MT data used, I got 25.82, which is lower than 28.3 in your paper. I'm wondering if a pre-trained MT model was perhaps utilized to achieve the 28.3 score? Or is there anything else that I might have missed in the process? Any suggestions or guidance you can offer would be greatly appreciated.
Thank you in advanced!

Really sorry for the late reply! ;(
Yes, you need to first pretrain the encoder-decoder model with external MT data (ie WMT16 data).
The data download and preparation code for pre-training with MT data are under ConST/scripts.
For MT training, you can refer to the example in fairseq, and the corresponding task is also in the fairseq/tasks/translation_with_langtag.py.
After the trained MT checkpoint (it is also recommended to do checkpoint average. suppose we save at ./checkpoints/MTpretrain/checkpoint.best_avg.pt) then train the speech translation model, refer to script/train_en2x.sh
Remember to add following args:
--finetune-from-model ./checkpoints/MTpretrain/checkpoint.best_avg.pt \
--find-unused-parameters


Diesel cli<PHONE_NUMBER> exit code - missing libpq.dll

Versions

Rust: 1.45
Diesel_cli: 1.4.1
Database: postgresql 12
Operating System: windows 10

Feature Flags

diesel: postgresql

Problem Description
When i run diesel setup i get error in command promt about missing libpq.dll, what can be a problem if file exist and path is ok?
User and System path variables:
PQ_LIB_DIR: C:\Program Files\PostgreSQL\12\lib
Location screenshoot.
localhost postgres database works fine
Checklist

[v] I have already looked over the issue tracker for similar issues.
[v] This issue can be reproduced on Rust's stable channel. (Your issue will be
closed if this is not the case)

Duplicate of #587

@weiznich it's didn't help :(

Resolver issue, you need to edit environment variables and edit variable Path, adding C:\Program Files\PostgreSQL\12\lib and C:\Program Files\PostgreSQL\12\bin


No podspec found for connectivity_for_web in .symlinks/plugins/connectivity_for_web/ios

After updating connectivity dependency get this issue every time  on Pod Install.

Ère

Duplicate of https://github.com/flutter/flutter/issues/79330
See https://github.com/flutter/flutter/issues/45197#issuecomment-642201335 for instructions to update your project.


Path IntelliSense for jsdoc imports types

https://github.com/Microsoft/vscode/issues/53093

TypeScript Version:  3.0.0-dev.20180626

Search Terms:

jsdoc
import expression
suggestions / intellisense

Code
For a project:
a.ts
export type T = number

b.js
/**
 * @param {import('./')} x
 */
function foo(x) {
}

Try trigger path intellisense after the ./

Expected behavior:
Path suggestions returned. This is what happens if you use import types in a ts file

Actual behavior:
No completions returned

This seems to be working for me already in typescript@next.

Looks like we return these suggestions but fail to render them properly in VS Code? I'll take a look on our side

Never mind! On an old version. All seems to be working in 3.0.1


On Upgrading Yarn Workspace: ERROR #10226 - Couldn't find the "gatsby-source-wordpress-experimental"

Hey,
Thanks for all the working going into this plugin, it's really impressive.
This is the error I get when I try to upgrade to the latest version.
Because I have this issue - https://github.com/yarnpkg/yarn/issues/4442 - yarn upgrade refuses to work inside a workspace. #4442
I ran   yarn workspace websume5 remove gatsby-source-wordpress-experimental
and  yarn workspace websume5 add gatsby-source-wordpress-experimental
It looked to have updated properly in packages/websume5/package.json
I deleted all the node_modules folders in the workspaces and ran yarn to install everything again but the error still persists.
 ERROR #10226  CONFIG

Couldn't find the "gatsby-source-wordpress-experimental" plugin declared in "/Users/*/Documents/Web Development/Active NPM Projects/Gatsby-Sites/websume-test/packages/websume5/gatsby-config.js".

Tried looking for an installed package in the following paths:
 - /Users/*/Documents/Web Development/Active NPM Projects/Gatsby-Sites/websume-test/node_modules/gatsby/dist/bootstrap/load-themes/node_modules/gatsby-source-wordpress-experimental
 - /Users/*/Documents/Web Development/Active NPM Projects/Gatsby-Sites/websume-test/node_modules/gatsby/dist/bootstrap/node_modules/gatsby-source-wordpress-experimental
 - /Users/*/Documents/Web Development/Active NPM Projects/Gatsby-Sites/websume-test/node_modules/gatsby/dist/node_modules/gatsby-source-wordpress-experimental
 - /Users/*/Documents/Web Development/Active NPM Projects/Gatsby-Sites/websume-test/node_modules/gatsby/node_modules/gatsby-source-wordpress-experimental
 - /Users/*/Documents/Web Development/Active NPM Projects/Gatsby-Sites/websume-test/node_modules/gatsby-source-wordpress-experimental
 - /Users/*/Documents/Web Development/Active NPM Projects/Gatsby-Sites/node_modules/gatsby-source-wordpress-experimental
 - /Users/*/Documents/Web Development/Active NPM Projects/node_modules/gatsby-source-wordpress-experimental
 - /Users/*/Documents/Web Development/node_modules/gatsby-source-wordpress-experimental
 - /Users/*/Documents/node_modules/gatsby-source-wordpress-experimental
 - /Users/*/node_modules/gatsby-source-wordpress-experimental
 - /Users/node_modules/gatsby-source-wordpress-experimental
 - /node_modules/gatsby-source-wordpress-experimental

@CloudBop our apologies for this bug, a 2.0.3 release is on it's way!

@acao
Thank you so much. I can confirm this bug is fixed. I just got set up with Gatsby Cloud, this plugin is so cool. It's really nice to be up to date.
Thanks again for all of the hard work.


Simplify the env parsing logic

This should be 100% backwards compatible with the previous
behavior, but with some new additions:

When using an Array in package.json:now.env or now.json:env, you
may specify the value or secret name after an = sign (before, the
entire string was attempted to be the env var key name, which was
just wrong (this is the main "fix").
Specifying null as the value of an env var in an Object forces the
user prompt (before, this was only possibly by using an Array without
an = sign).
You may specify an env var on the CLI without an = sign and it will
show the user prompt (kind of silly since the user is invoking the
command anyways, but this works due to the new normalization)
Less converting the env between Array and Object representations.

The code is also simpler to read now, and a few helpful comments added
as well.

Actually this breaks now -e MY_SHELL_VAR inheriting from the current env. Fixing.

OK fixed. Should be good to go now.


Why can't I call my Java method

Just like the demo in the document, I want to parse the token after I get it to get the UserInfo I want, so I wrote a Java method, but when I call this method, I get an error.
This problem has plagued the time of day.
Hope to get the answer.

@nuanyang233 sorry it looks fine to me. did you solve this ?

I am very sorry, but I carefully checked my code again and found that the problem was in my Java.type. I was missing my class name.

@nuanyang233 no worries :) happy to help.


add iicb.txt

Institute Name: CSIR-Indian Institute of Chemical Biology
Institute Website: http://www.iicb.res.in/

@rjit17 Pull request merged. Thank you!


Remember tile source sort between sessions

I find myself always sorting the sources by name (especially after all sorting bugs were fixed) and having to change it again after each restart was a bit bothersome.
I wasn't sure where to load the value though. Also there is a minor visual bug where TileMap tab's OptionButton doesn't get correct sorting option on first load (even though the list is sorted correctly).

Thanks!


Change vertex attribute slot assignment.

This PR proposes a fix for #339.
Due to limitations with OpenGL's GL_MAX_VERTEX_ATTRIBS constraint, and SPIR-V adding location decorators to our vertex attribute declaractions, we run out of locations using our current attribute assignment schema:

This proposal changes the current traverser behavior for android to use arbitrary slot locations, and our vertex buffer construction logic to be able to gracefully re-arrange how our attributes are passed to match the order that we declare them in our shader.

Traversers now use incrementing attribute locations.
Change BabylonJS::NativeEngine.RecordVertexBuffer to record vertex buffers in ascending native attribute location order. (via https://github.com/BabylonJS/Babylon.js/pull/9183)
Change BabylonNative::NativeEngine::RecordVertexBuffer to use the parsed attribute location order for vertex buffer layout indexing.

Nice picture! :-)

SPIR-V adding location decorators to our vertex attribute declaractions

Ideally, we shouldn't be using SPIR-V at all. Hopefully that doesn't change things.

Change BabylonJS::NativeEngine.RecordVertexBuffer

Can you put your changes in a branch and send a link to compare against master? Diffing babylon.max.js doesn't work on GitHub since it's too big.

Sure, the matching PR in Babylon.js is: https://github.com/BabylonJS/Babylon.js/pull/9183
Currently we are passing an attribute index which corresponds to the attribute ordering in Babylon.js, however after we recompile our shader, we aren't guaranteed the same attribute ordering using this new scheme.
Also, since we have a mapping of attribute->actual index via m_currentProgram->VertexAttributeLocations it might make more sense to use the mapping instead of passing an index?

OK, I think this is ready for proper review.
The current approach is to modify our input attribute names during traversal such that the name now matches the attribute string defined via:
https://github.com/bkaradzic/bgfx/blob/master/src/renderer_gl.cpp#L45-L65
The upside of this approach is that 1) we don't need to modify bgfx's internal workings to support this, instead we're mangling our shader to fit the expected attribute - index schema.
The downside of this is that we're mangling our shader, any inspection into the shader contents will not really make sense, since we're now changing what the actual variables mean (eg: in the shader the symbol a_position0 may now be used as the vertex color)
An alternative that @bghgary proposed is to instead modify this attribute table according to our attribute order that we encounter during traversal.
The upside of this approach is that the shader would retain its original composition. only the symbol-bgfx::Attrib association will be modified (ex: a_texcoord0 may now be associated with bgfx::Attrib::Position internally)
The downside of this approach is that now we need to manage this table as we change our program, each shader program will require this table to be modified before we perform any vertex binding. This may have unintended side effects.


improve copy data experience

This PR fixes #23264
Current Issues

No indicator for the in progress copy operation
Only 1 request is send to retrieve all the selected rows which could block the RPC channel and cause the app to hang.

Fixes:

add a progress notification so that the progress is clear.
reimplemented the multiple selected range scenario, multiple requests will be made to retrieve the same row if the row is present in multiple selection ranges.
retrieve the data in small batches to avoid app freeze/crash.

NOTES: This PR doesn't address the problem of copy operation could take a long time depends on the selection size, I'll implement the copy to clipboard in STS.
New Behavior
In progress - User can see the progress, and can cancel the operation.

Completed

@kburtram I did the multi selection range scenarios
Selection in ADS:

Copied Data:


add search node - [closed]

In GitLab by @luotian-github on Sep 13, 2017, 06:39
Merges devs -> dev
add search node

In GitLab by @wknet123 on Nov 13, 2019, 09:58
closed


How do I customize the database user credentials?

I'm currently running into an issue where I get the below error during mysql backups:
mysqldump: Got error: 1045: "Access denied for user 'root'@'localhost' (using password: NO)" when trying to connect
Is there a way for me to customize the credentials for the database connection?

The user you're running the script as must be able to mysqldump the requested databases without entering a password. This can be accomplished through the use of a .my.cnf file in the user's home directory, containing e.g.
[mysqldump]
user=mysqluser
password=secret


Avoid using test in function names

Fix this unittest failure
Simple_t.SimpleTest:test_auth_fail changed from success to error

that is popping up in #6094
Googling a bit, the problem come from the fact that nose uses a regex to search for tests that needs to be executed. Some more info here:
http://stackoverflow.com/questions/16475980/nose-runs-test-on-function-in-setup-when-no-suite-specified
I hope it fixes the problem.

I dunno. I don't find that function listed here: https://cmssdt.cern.ch/jenkins/view/DMWM/job/DMWM-WMCore-UnitTests/lastCompletedBuild/testReport/
But a good idea anyhow.

Wow, it seems it's hitting jenkins very very hard...

BTW, this is the default regex used by nosetests (?:\b|_)[Tt]est
@ticoann feel free to merge this one (otherwise the MCFake patch will be bugged)


Adding user persistence - settings and history

Various opportunities of users to save some instance state relating to their workflow have become evident. Therefore, we ought to see how we can integrate user persistence where possible and explore best practices for doing this with Dash.
We could integrate it into a Javascript / React-based webapp:
https://dash.plotly.com/integrating-dash
Or we could try to embed the Dash app inside of a Flask app:
https://hackersandslackers.com/plotly-dash-with-flask/
Or we could ultimately move to a flask / plotly stack rather than relying on Dash:
https://towardsdatascience.com/web-visualization-with-plotly-and-flask-3660abf9c946
Interestingly, the last option seems to be more extendible in this respect, but it would obviously take us out of the nice sandbox that Dash allows us to play in.
More to come.

I'm not sure why I'm surprised that Flask is a viable web-app framework:
https://preettheman.medium.com/popular-websites-that-use-flask-e756ea543cf0
I thought it was more basic than that but if it would work that'd be great. The critical part of the topic at hand is whether or not a Flask app would allow for callbacks as easily as Dash does.

https://realpython.com/flask-google-login/#creating-a-google-client
Getting OAuth working seems pretty straightforward, actually. Could work on Dash with few issues.

This is mostly solved w/ the Augur front-end, e.g. users can create their own analysis groups. Further persistence could be baked in there as needed.


Improve efficiency of getCountry method on CustomClient class.

I rewrote the database so this is now irrelevant.


Add callback to dsl_ode_action_capture_frame_new

It would be nice to have a configurable callback for dsl_ode_action_capture_frame_new in order to have a way to know the path/filename of the newly saved image file.  This is necessary if you want to be able to keep a record of the files saved.

Wait....just found dsl_ode_action_capture_complete_listener_add.  I'm guessing that this is what this is for!  :-)
...testing...

dsl_ode_action_capture_complete_listener_add appears to be undocumented, but it works perfectly!

@rbgreenway please see

dsl_capture_info
dsl_capture_complete_listener_cb
dsl_ode_action_capture_complete_listener_add

@rjhowell44 Thanks.  Just totally missed the documentation.


Add testing functions for counter/gauge/histogram

Add functions specifically for testing (should not be used in production code) to avoid having to mock a broker to receive submissions. Caveat: prevent automatic submissions; metrics will be reset after submission. set interval to zero and provide a bogus submission url to put cgm into manual submission mode for testing set/get of metrics.

No, because a gauge can take several different types of numbers and it doesn't know what it was originally.

Makes sense 👍


[ci] Roll toolchains using filepath package names

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

Project coverage is 87.91%. Comparing base (c27220d) to head (70a589b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1630   +/-   ##
=======================================
  Coverage   87.91%   87.91%
=======================================
  Files          16       16
  Lines        5757     5757
=======================================
  Hits         5061     5061
  Misses        696      696

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


second interface using multus is not reachable

Hi ,
I am using single node cluster with calico as the plugin.
I tried creating 2 pods with 2 interfaces each. The second interface is created using multus. Here is my yaml.
kind: NetworkAttachmentDefinition
apiVersion: "k8s.cni.cncf.io/v1"
metadata:
name: eth2
spec:
config: '{
"name": "eth2",
"plugins": [
{
"type": "bridge",
"master": "eth0",
"ipam": {
"type": "static",
"addresses": [
{
"address": "<IP_ADDRESS>/24",
"gateway": "<IP_ADDRESS>"
}
],
"dns": {
"nameservers" : ["<IP_ADDRESS>"]
}
}
},
{
"type": "sbr"
}
]
}'

apiVersion: v1
kind: Pod
metadata:
name: sample
annotations:
k8s.v1.cni.cncf.io/networks: '[
{ "name" : "eth2",
"interface": "eth1" }
]'
spec:
containers:

name: sample
image: sample_kgeneric:v0.16
command: ["python", "/root/Main.py" ,"trap : TERM INT; sleep infinity & wait"]

Another yaml is:
kind: NetworkAttachmentDefinition
apiVersion: "k8s.cni.cncf.io/v1"
metadata:
name: eth1
spec:
config: '{
"name": "eth1",
"plugins": [
{
"type": "bridge",
"master": "eth0",
"ipam": {
"type": "static",
"addresses": [
{
"address": "<IP_ADDRESS>/24",
"gateway": "<IP_ADDRESS>"
}
],
"dns": {
"nameservers" : ["<IP_ADDRESS>"]
}
}
},
{
"type": "sbr"
}
]
}'

apiVersion: v1
kind: Pod
metadata:
name: ut
annotations:
k8s.v1.cni.cncf.io/networks: '[
{ "name" : "eth1",
"interface": "eth1" }
]'
spec:
containers:

name: ut
image: ut:v0.1
command: ["/root/loop.sh", "-d" ,"trap : TERM INT; sleep infinity & wait"]

I logged inside a pod and tried to ping the second interface of another pod.
The second interface is not reachable.  Anyone can sort out the issue?
Note: I have tried the same with flannel pluggin too. Same result. couldnt ping between second interface.

Could you provide the command you're using to ping? If I recall ping -I eth1 google.com would fail but ping -I <IP_ADDRESS> google.com would succeed which had to do with how interfaces are handled. Thanks!


Create data structures for board

Create the data structure(s) needed to be represented of and be manipulated like the Breach Protocol puzzle board.

Buffer should be an object that has a method contains() that takes code matrix coordinates and checks if that cell is in the buffer.

Board structure could be modeled after the JSON encoding proposed in #3.


Make sure to change the verions of the main branch after a release in PyPI

we can use setuptools-scm to deal with versioning

I bumped the version number to 0.2.0 in init.py
For some reason including version in version.py and importing it in init.py caused the build to fail: https://github.com/gaia-unlimited/gaiaunlimited/commit/2fe42b55fe2c0d18350990de7ea0f6162cb6941a


Ton Connect 2.0 plan

Use-cases to focus on
Primary: mobile dapps serverless or via Telegram bots (TWA) working together with mobile native wallets.
Secondary:

server applications,
desktop web- or standalone apps with mobile wallets,
web dapps running as extensions within the mobile wallet.

Tertiary: web-apps working with a chrome extension, and non-native wallets.
Architecture

Each wallet provides a bridging service for the app to connect with. User selects a wallet explicitly in the "Connect with TON" prompt.
SSE and POST requests over the bridge.
Sessions can be re-started at whim by the dapp.
Single SDK to initiate connections.
Separate starting points for connecting a wallet (passing over the unauthenticated wallet address) & signing in.6.
TON DNS for server request identification, and for smart contract entry points. Optional, but we won't use web pki or other trusted parties.

Checklist

[ ] Define the JS API for initiating connections and setting up the prompt.
[ ] Define the format for wallets' descriptions with their bridge addresses, icons and names.
[ ] Ton Connect prompt design and layout (buttons, modal window with wallet buttons, pending confirmation window).
[ ] Message encoding connect requests and responses: connect, sign in, sign tx.
[ ] Define a mechanism for attaching TON.DNS records immutably - as DNS items or via a separate registry.

What's up?

👀

Moved to a separate org: https://github.com/ton-connect

🎉Yay!


libsecret_error: Failed to execute child process

I have been unable to run flutter_secure_storage 6.0.0 on Ubuntu 22.04.
The example builds successfully (after uninstalling the Flutter snap and installing Flutter manually), but when I try to run it it gives the error, libsecret_error: Failed to execute child process “dbus-launch” (No such file or directory) in the terminal. The app appears and displays the "Plugin example app" title bar, but clicking the plus icon does nothing in the GUI and displays an additional libsecret_error error in the terminal. This happens in both debug and release modes. Other Flutter apps work as expected in this environment.
A full log is below.
ubuntu@flutter18:~/flutter_secure_storage_example$ uname -a
Linux flutter18 5.14.0-1046-oem #53-Ubuntu SMP Wed Jul 13 13:15:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
ubuntu@flutter18:~/flutter_secure_storage_example$ sudo apt install -y libsecret-1-dev libjsoncpp-dev libsecret-1-0 libjsoncpp25
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libjsoncpp-dev is already the newest version (1.9.5-3).
libjsoncpp25 is already the newest version (1.9.5-3).
libsecret-1-0 is already the newest version (0.20.5-2).
libsecret-1-dev is already the newest version (0.20.5-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ubuntu@flutter18:~/flutter_secure_storage_example$ flutter clean
Deleting build...                                                   18ms
Deleting .dart_tool...                                               4ms
Deleting Generated.xcconfig...                                       0ms
Deleting flutter_export_environment.sh...                            0ms
Deleting ephemeral...                                                4ms
Deleting ephemeral...                                                0ms
Deleting ephemeral...                                                0ms
Deleting .flutter-plugins-dependencies...                            0ms
Deleting .flutter-plugins...                                         0ms
ubuntu@flutter18:~/flutter_secure_storage_example$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.4, on Ubuntu 22.04.1 LTS 5.14.0-1046-oem, locale C.UTF-8)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] VS Code
[✓] Connected device (2 available)
[✓] HTTP Host Availability

! Doctor found issues in 2 categories.
ubuntu@flutter18:~/flutter_secure_storage_example$ flutter run -d linux
Running "flutter pub get" in flutter_secure_storage_example...        354ms
Launching lib/main.dart on Linux in debug mode...
Building Linux application...

(flutter_secure_storage_example:40241): dbind-WARNING **: 20:55:52.574: Couldn't connect to accessibility bus: Failed to connect to socket /run/user/1000/at-spi/bus: No such file or directory

** (flutter_secure_storage_example:40241): WARNING **: 20:55:53.017: libsecret_error: Failed to execute child process “dbus-launch” (No such file or directory)
Syncing files to device Linux...                                    61ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

💪 Running with sound null safety 💪

An Observatory debugger and profiler on Linux is available at: http://<IP_ADDRESS>:37029/y4uUNPzeLvw=/
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(Libsecret error, Failed to execute child process “dbus-launch” (No such file or directory), null, null)
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:653:7)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:296:18)
<asynchronous suspension>
#2      MethodChannelFlutterSecureStorage.readAll (package:flutter_secure_storage_platform_interface/src/method_channel_flutter_secure_storage.dart:61:21)
<asynchronous suspension>
#3      ItemsWidgetState._readAll (package:flutter_secure_storage_example/main.dart:40:17)
<asynchronous suspension>

The Flutter DevTools debugger and profiler on Linux is available at:
http://<IP_ADDRESS>:9101?uri=http://<IP_ADDRESS>:37029/y4uUNPzeLvw=/

** (flutter_secure_storage_example:40241): WARNING **: 20:55:57.676: libsecret_error: Failed to execute child process “dbus-launch” (No such file or directory)
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(Libsecret error, Failed to execute child process “dbus-launch” (No such file or directory), null, null)
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:653:7)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:296:18)
<asynchronous suspension>
#2      ItemsWidgetState._addNewItem (package:flutter_secure_storage_example/main.dart:63:5)
<asynchronous suspension>

** (flutter_secure_storage_example:40241): WARNING **: 20:56:03.004: libsecret_error: Failed to execute child process “dbus-launch” (No such file or directory)
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(Libsecret error, Failed to execute child process “dbus-launch” (No such file or directory), null, null)
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:653:7)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:296:18)
<asynchronous suspension>
#2      ItemsWidgetState._addNewItem (package:flutter_secure_storage_example/main.dart:63:5)
<asynchronous suspension>

Lost connection to device.

(flutter_secure_storage_example:40241): GLib-GObject-WARNING **: 20:56:20.837: ../../../gobject/gsignal.c:2731: instance '0x56184b958030' has no handler with id '222'
ubuntu@flutter18:~/flutter_secure_storage_example$

Update: this is not a bug in flutter_secure_storage. However, it would be helpful if the documentation could be updated.
I was able to get a similar error message without Flutter or flutter_secure_storage:
$ sudo apt install libsecret-tools
<cut>
$ secret-tool store --label=test3333 attribute test4444  # type: thisissecret
Password:
secret-tool: Failed to execute child process “dbus-launch” (No such file or directory)
$

I'm running Flutter in an LXC container which did not have D-Bus or a libsecret 'server'. Les Hazlewood provided the solution.
Set up once:
sudo apt install -y gnome-keyring dbus-x11
mkdir -p ~/.cache ~/.local/share/keyrings

For each new terminal, run:
eval "$(dbus-launch --sh-syntax)"
eval "$(printf 'NEW_KEYRING_PASSWORD\n' | gnome-keyring-daemon --unlock)"
eval "$(printf 'NEW_KEYRING_PASSWORD\n' | /usr/bin/gnome-keyring-daemon --start)"

After this, secret-tool and your Flutter app with flutter_secure_storage should succeed:
secret-tool store --label=test3333 attribute test4444  # type: thisissecret
secret-tool lookup attribute test4444  # should display: thisissecret

Seems like this issue can be closed as it's not this library issue.

I am closing all older issues. If this issue still exists in the latest version, please let me know.


✨Publish releases to homebrew directly

What are you trying to do?
After dagger releases are crafted, homebrew update should fetch the latest version. There's a GH action that can be used for this.
ref: https://github.com/Homebrew/homebrew-core/pull/105746#issuecomment-1190567751
cc @gerhard
Why is this important to you?
keep dagger updated
How are you currently working around this?
downloading the new binary without homebrew.

Yes, that's right, our tap gets updated correctly.
This issue is for the dagger formula which is part of the homebrew-core, meaning that no tap is required. If we get this working properly, then maybe we don't even need to have our own brew tap... I'm all for simplifying this aspect. WDYT @aluzzardi?

I'd love to see this. It usually takes several days for the latest version of dagger to show up in Homebrew today. It used to be quicker, but now that I see humans are in the loop, it's bound to be variable and laggy. https://github.com/Homebrew/homebrew-core/pull/105746

While I ran out of time this week, I intend to come back to this next week.

I intended to get to this today, but ran out of time. If we can keep the release paused for an extra day @marcosnils @aluzzardi, then I will get to this tomorrow, push the release through manually, and make sure that everything works as expected with this new addition. If we want, we should be good to leave the Auto-Release enabled so that it gets triggered automatically next week.

TL;DR this is now handled part of the release process, the PRs above have all the context.
We tested it via https://github.com/Homebrew/homebrew-core/pull/107233. This is now already available in Homebrew:

One thing which I have noticed is that the bottled formula is significantly different to the tap one:

https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/dagger.rb
https://github.com/dagger/homebrew-tap/blob/main/dagger.rb

While this is OK for now, at some point in the future we should converge the two.


Migration tool should call out inserted casts of function literals as questionable.

As of https://dart-review.googlesource.com/c/sdk/+/134504, there are certain situations where the migration tool may insert a type cast that is guaranteed to fail.  For example:
void f(int/*!*/ Function(int) callback) {
  callback(null);
}
int g(int x) => x;
void test() {
  f(g);
}

gets migrated to:
void f(int/*!*/ Function(int?) callback) {
  callback(null);
}
int? g(int? x) => x;
void test() {
  f(g as int Function(int?)); // BAD
}

In this sort of situation, user intervention is required to figure out how the code should be migrated.  The tool should either highlight the cast as questionable.
Alternatively, we could either:

change the migration tool so that it doesn't generate the questionable cast, and the user is alerted to the problem by the fact that the migrated code has a compile-time error, OR
change the migration tool so that it inserts a function literal with a null check, i.e. f((x) => g(x)!); in this example.

As of 1c7fe7196dd7a542f7f91cd6ea2ac81e1a13146c, the null safety migration tool has been removed from active development and retired. No further work on the tool is planned.
If you still need help, or you believe this issue has been closed in error, please feel free to reopen.


Description on corresponding team in teams page

Summary:
Each team should have their own description on the website(corresponding team page).

I think we also need logos for the each team.

https://github.com/amfoss/fosswebsite/pull/349


Fix gem version in deploy script

Fix for failing deploy: https://github.com/babel/ruby-babel-transpiler/pull/141#issuecomment-87770657

After this PR is merged, the release of<EMAIL_ADDRESS>is expected.

It seems released :sunny:


Unable to Spend from Mint Created in LNbits

I am encountering issues while setting up a Cashu mint in LNbits. I am able to create the mint and add it to various applications like enuts, nutstash, and cashu.me. Topping up the mint using lightning invoice works fine; however, I am unable to send eCash from this mint within any application. I face difficulties in creating a cashu token.  enuts displays an error message: "'Ledger' object has no attribute 'keyset'". Cashu.me reports: "Network Error when attempting to fetch resources". Nutstash encounters an error: "Error when creating Token. Sendable Token could not be created".

Can you reproduce this error?
Please post it here: https://github.com/lnbits/cashu


Infinite number of windows are created when catel window is used

Hi,
I tried to use dragablz with catel window. I changed BoundExampleWindow to use Catel:Window instead of DragablzWindow. Now when I try to drag out the window to create new window, new windows are created until I kill the application. With standard window it works correctly.
Jan

Hi.  Haven't used Catel before, I'll try and fire up this week and have a look.

Had a quick look...there seems to be a few hoops I've got to jump through (view model resolution etc), and I don't really have the time to be learning Catel right now.
Can you provide your demo project which I can fire up and see the issue straight away?

OK, I will try to make demo project demonstrating the issue. Where should I commit it ?

Either create a repo under your account or email me a zip (address on my git hub home page).  A repo would be better so we can discuss any tweaks...

Closing and tidying due to inactivity.  Please feel free to reopen if you have a demo app to reproduce.


🐛 frame-processor/unavailable: Frame Processors are not enabled

What were you trying to do?
I was trying to use frame processors. But it almost immediately threw this error
Reproduceable Code
const frameProcessor = useFrameProcessor((frame) => {
        'worklet'
        console.log(frame)
    }, [])

    const devices = useCameraDevices()
    const device = devices.back
    if (device == null) return <View />
    return (
             <VisionCamera
                 style={{height: height, width: width}}
                 device={device}
                 isActive={true}
                 frameProcessor={frameProcessor}
                 enableZoomGesture
               />
)

What happened instead?
It just doesn't work.
I have react-native-animated setup with version: 2.3.0-beta.2
I am using the latest version of this library
Relevant log output
frame-processor/unavailable: Frame Processors are not enabled. See https://mrousavy.github.io/react-native-vision-camera/docs/guides/troubleshooting, js engine: hermes

Device
Android 11
VisionCamera Version
2.9.3
Additional information

[ ] I am using Expo
[X] I have read the Troubleshooting Guide
[X] I agree to follow this project's Code of Conduct
[X] I searched for similar issues in this repository and found none.

Having same issue

I am having this issue in ios
"react": "18.1.0",
"react-native": "^0.70.0",
"react-native-reanimated": "2.10.0",
"react-native-vision-camera": "2.14.1",
"vision-camera-code-scanner": "^0.2.0"
platform :ios, '12.4'
i tried everything in this link but to no success
https://mrousavy.com/react-native-vision-camera/docs/guides/troubleshooting/
could someone help me understand why this is happening so i can figure out a way to fix it?


Color code as per events

It would be great to have a color coding per type of events ‘Community events, Major conferences, Hackathon, private event, paid event, workshops and more

#8

#8


app.get('auth') vs app.get('authentication')

Maybe I'm not understanding the code, but it seems that app.get(<something>) fetches from the relevant config file in the /config directory.
In the documentation here, it suggests the name of this config should be 'auth' for the authentication config. In addition, the code in feathers-authentication-local and feathers-authentication-jwt make the assumption that their configs can be fetched using app.get('auth'). However, when using the generator to generate the authentication service:
feathers generate authentication
The config file is modified to have an "authentication" config, not "auth". Is this correct?

I believe the modules default location needs to be updated.

Yes this was changed in the generator but was never update in the auth modules. I think because the generator is set up to pass the auth configs explicitly this wasn't caught sooner. I have PRs coming.


[Port] [SQL Migration] Bug fixes for new SKU recommendation feature in migration extension

https://github.com/microsoft/azuredatastudio/commit/80c8b06ec87debe417713346ce5194f902babbf6.
Adding telemetry for errors happening during data collection/ telemetry for SKU recommendation.
Adding click and close events to disposable collection to avoid leaks
Updating migration workflow strings
https://github.com/microsoft/azuredatastudio/commit/8135867e064f18b4b46cb2671027b7da985d68ae
Updating readme with new gif that includes SKU recommendation usage
Approved: https://github.com/microsoft/azuredatastudio/issues/18428

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
14797

Relevant Lines:
29109

💛  - Coveralls

@raymondtruong closing older port request PRs.  I believe we took this change in a different PR.  Please reactivate if still needed.


Feat/Behind Enemy Lines enforcement

Prevent users from depositing behind enemy lines.
This is critical for prevent a DOS vector where users deposit many ticks of dust causing swaps to have to touch a large number of ticks. By preventing users from depositing at a price cheaper than the opposing token price (ie. on the wrong side of the spread), we greatly limit the surface area for ticks that can be dusted. Most ticks near the spread will already have liquidity so dusting is impossible or limit to a small set of un-used fee tiers. While users can still place dust towards the back of the order book this will not effect swaps.
Additionally, this maintains a nice invariant that all liquidity in the dex exists across a partitioned spread with no overlap in prices.

https://github.com/neutron-org/neutron-tests/actions/runs/9086152025

https://github.com/neutron-org/neutron-tests/actions/runs/9276692068

Resolve conflicts, pls


Attempt to Invoke Interface Method 'boolean com.facebook.react.brige.ReadableMap.hasKey(java.lang.String)' on a null object reference

My code works fine on iOS, the trouble begins in Android. Whatever I do, I face this error:

This is how I invoke image picker:
uploadFile() {
		ImagePicker.launchImageLibrary(null, (response)  => {
			console.log('Response = ', response);

Solution
You shouldn't set option to null as it will cause the error. You better use an empty object {} instead.
Adding some robustness can help other developers not to encounter this error.
react-native-cli: 2.0.1
react-native: 0.46.3
react-native-image-picker 0.26.7
Android
MacOS

i have bug the same. how to fix ?

i have the same issue running the geolocation map app with react-native expo version 53.0.0
anyone to help???

help i'm also have this issue

People who are having same issue as above,
ImagePicker.launchImageLibrary(null, (response)  => {
			console.log('Response = ', response);

from above code, you should not pass the null. I've experienced this and solved it with giving option correctly. Something like below.
const options = {
  storageOptions: {
    skipBackup: true,
    path: 'images'
  }
};

Same issue

Using the same workaround as @dooboolab but the error still persist

@mr-bat  I got the same error using: React Native Geolocation, and your solution works for me. here some information about my environment.
 Environment:
  OS: Windows 10
  Node: 8.11.2
  Yarn: 1.7.0
  npm: 5.6.0
  Watchman: Not Found
  Xcode: N/A
  Android Studio: Version  <IP_ADDRESS> AI-162.4069837

Packages: (wanted => installed)
  react: 16.3.1 => 16.3.1
  react-native: ~0.55.2 => 0.55.4

Thanks you man!

@xfry can you provided the soluction on it ? i also got this issue with
// Attempt to invoke interface method 'boolean abi27_0_0.com 'facebook.react.bridge.readablemap.getstring(java.lang.string) on a null object reference //

same problem, please

just had this problem and I went into the Options.java file (inside android > src) to see what I could've been missing. for any key that says options.getString, my options work ONLY AFTER adding in all the keys with either an empty string or actual argument.
this is my final options which im using with v3.3.4, no longer getting this error
const options = {
title: 'Select Image',
cameraType: "back",
maxWidth: 256,
maxHeight: 256,
noData: true,
mediaType: 'photo',
includeBase64: true,
}

how to fix this Error
"attempt to invoke interface method boolean com swmansion reanimated layout reanimation native methods holder is layout animation enable () on a null object reference"


Fix dice roll only ever giving 1 charge of a boost

Changed BurnMeter_GetLimitedRewardCount to take a second parameter for burnRef instead of getting that information from the player, as the information would not match correctly with the random boost from dice roll if the random boost has multiple charges
Should fix #188

welp, i was beaten to it apparently lol

owned

fr

outskilled

simply outclassed

:(


Add missing traits to Minor Surging Serum

Added Alchemical, Elixir, & Healing traits to Surging Serum (Minor) since it was lacking them.

PR titles should be in imperative case, meaning they finish the sentence "If merged, this PR will ___"


cleanup [1/n]: overall re-ordering

Stack from ghstack (oldest at bottom):

#30
#29
#28
-> #27
#25
#23
#22

Overview:

Connections and backends are now separate (isolate.backends.connections -> isolate.connections). Since you can use both IPC and RPC with virtual environment (and vice versa; they are just different components).
Useful local python execution utilities are now separated from IPC (since gRPC implementation also uses it)
The context API is now the settings (IsolateSettings).


Lettuce client reconnecting every few seconds when using sentinels

I am using Lettuce in a spring boot project. I have configured it using sentinels.
sentinel:
  master: redismaster
  nodes:
    - redis01:26379
    - redis02:26379
    - redis03:26379
lettuce:
  read-from: slave

Basically everything works but i see a lot of these log messages lately. It tries to reconnect every 10 to 16 seconds ?
[xecutorLoop-1-2] i.l.core.protocol.ConnectionWatchdog     : Reconnecting, last destination was /<IP_ADDRESS>:6379
[ioEventLoop-4-7] i.l.core.protocol.ReconnectionHandler    : Reconnected to <IP_ADDRESS>:6379

Why ? How can i prevent that, it fills up my logs ? Any way to configure this behaviour?

Btw this is the timeout setting in redis.conf
# Close the connection after a client is idle for N seconds (0 to disable)
timeout 0

Can you enable debug logging to see what caused the disconnect?

I was able to fix the issue by myself. Th reason was a sentinel from an other cluster joined this cluster and caused this issues. It was just missconfiguration!


ModalFrame shows illegal access error on closing on non-Windows platform

ModalFrame (e.g. WaitFrame, LockFrame, RotateFrame) shows AV error prompt after closing. User can close error dialog and proceed.
Occurs on non-Windows platforms like Mac OS-X

fixed at https://github.com/Zoomicon/READCOM_App/commit/083a14c0476dfa838be7d1b14000495c2b6a64bb


UI Flickering on start search

Description
When starting search for a buddy chat UI renders for a brief moment before showing the loading screen
Screenshots
https://github.com/Dun-sin/Whisper/assets/48488310/e87fc9ec-572e-4199-8d6f-df5ad1faf6bb
Additional information
No response
🥦 Browser
Google Chrome
👀 Have you checked if this issue has been raised before?

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

🏢 Have you read the Contributing Guidelines?

[X] I have read and understood the rules in the Contributing Guidelines

Are you willing to work on this issue ?
Yes I am willing to submit a PR!

How would you fix that?

How would you fix that?

From my current understanding app.currentChatId represents current active thread. So rendering loader conditionally with app.isSearching || !app.currentChatId would be enough for this issue to be resolved.

How would you fix that?

From my current understanding app.currentChatId represents current active thread. So rendering loader conditionally with app.isSearching || !app.currentChatId would be enough for this issue to be resolved.

Alright, give it a go. Make sure you follow the rules 👉🏽here👈🏽, else your PR will not be accepted and will be closed. Good Luck


Add lifetime parameter to Arbitrary trait. Extract shrinking functionality into new trait.

Fixes https://github.com/rust-fuzz/arbitrary/issues/43
Note: This merges into a new branch staging-1.0 where we can put our changes prepping for a 1.0 release

@Manishearth @fitzgen thoughts on this so far? should we create a separate crate for the shrinking behavior?

I think we should have a pre-1.0 release before going 1.0 fwiw. But we can name the branch whatever

Also: thanks for driving this work @frewsxcv! :)

I'm not using the shrinking code, and not planning to use it. Just moved the code to a separate module in case someone did have a use for it! But if none of us do, then yeah let's just get rid of it

to anyone in the future who wants the shrinking code: https://gist.github.com/frewsxcv/390976eb39c7e2a065c0b2d2731a3eb3

currently trying to figure out what the right behavior should be for the new lifetime when deriving Arbitrary. i.e. should we always create a lifetime named 'a? will that cause issues?

Do you mean the actual name of the lifetime we emit in the generated code?
The only way I can imagine running into issues is if the type requires multiple type parameters, but in such a case I don't think our derive can support such types anyways, because we wouldn't know what to do with any extra lifetimes.
But I'm also not a master macrologist, so I'm not 100% sure here...

This is ready for review! I will add a &str implementation in a follow-up PR

Squashed

In the latest force push, I renamed our derive codegen to generate a lifetime named 'arbitrary instead of 'a. To prevent collisions if the user has a lifetime named 'a.

In the latest force push, I renamed our derive codegen to generate a lifetime named 'arbitrary instead of 'a. To prevent collisions if the user has a lifetime named 'a.

Oh I just remembered the other thing we can do: try and grab their existing lifetime from their type and use that instead of coming up with our own and replacing theirs. Sort of something like get_existing_lifetime(input).unwrap_or(default_lifetime).

In the latest force push, I renamed our derive codegen to generate a lifetime named 'arbitrary instead of 'a. To prevent collisions if the user has a lifetime named 'a.

Oh I just remembered the other thing we can do: try and grab their existing lifetime from their type and use that instead of coming up with our own and replacing theirs. Sort of something like get_existing_lifetime(input).unwrap_or(default_lifetime).

I think you're right, we do want to be smarter about lifetimes than just using a new one. In particular, I created this struct for a test:
#[derive(Arbitrary, Debug)]
struct Lifetime<'a, 'b> {
    alpha: &'a str,
    beta: &'b str,
}

This results in an error as currently implemented:

The fix here is to replace:
impl<'a, 'b, 'arbitrary> arbitrary::Arbitrary<'arbitrary> for Lifetime<'a, 'b>

With:
impl<'a, 'b, 'arbitrary: 'a + 'b> arbitrary::Arbitrary<'arbitrary> for Lifetime<'a, 'b>

So that our lifetime is guaranteed to last as long as the existing lifetimes

Also good idea to add a test :)

1.0.0-rc1 has been published!


ReadReport after Timeout

ReadReport will always fail after a timeout happens the first time.  The only way I found to clear the issue is to close the handle and open a new one.  I tried CancelIOex, with the handle and a null pointer, when an error during ReadFile or timeout occurs.  But the ReadFile still times out while the analyzer shows data available.

Can you please check if this is fixed in the latest?

That helps: CancelIO if not Success:
case NativeMethods.WAIT_TIMEOUT:
                                    status = HidDeviceData.ReadStatus.WaitTimedOut;
                                    NativeMethods.CancelIo(Handle); // !!!
                                    buffer = new byte[] { };
                                    break;

thankyou , it work @teplofizik


Improvements based on pr comments

Add missing javadoc comment as suggested in v1.0 PR comments

Coverage remained the same at 92.27% when pulling bc15551f0d606078aff6fc0c5ec0b7a7f5c17824 on jelneo:improvements_based_on_PR_comments into b7b390f474c21aeff86e83cefde3732bf9a5ab92 on CS2103AUG2017-T17-B1:master.


Style QuickInfo links in XAML

Minor improvement. Mouse over visual effect for links that was sluggish should be better now.

Looks great.


[BUG] Python3.10 installation fail

Description
Remark:
Well. Since you switched from django-installer to docker . Django-cms became absolutely non developer friendly. if before for developement needed to spend 1 second and see resuld now need to wait till build and publish docker container.
Whole development with django cms became 10 - 30 times longer.  We really started to think to go to wagtail.
Issue:
Python3 on madjaro (python 3.10)
fresh installation fail on step compilation uwsgi because docker startup cannot live without uwsgi;
    /usr/bin/ld: plugins/python/python_plugin.o: in function `uwsgi_pyimport_by_filename':
    python_plugin.c:(.text+0x1688): undefined reference to `PyParser_SimpleParseString'
    /usr/bin/ld: python_plugin.c:(.text+0x169d): undefined reference to `PyNode_Compile'
    /usr/bin/ld: python_plugin.c:(.text+0x1763): undefined reference to `PyParser_SimpleParseFile'
    /usr/bin/ld: python_plugin.c:(.text+0x1783): undefined reference to `PyNode_Compile'
    /usr/bin/ld: python_plugin.c:(.text+0x17ef): undefined reference to `PyParser_SimpleParseFile'
    /usr/bin/ld: python_plugin.c:(.text+0x180f): undefined reference to `PyNode_Compile'
    /usr/bin/ld: plugins/python/pyloader.o: in function `uwsgi_eval_loader':
    pyloader.c:(.text+0x172f): undefined reference to `PyParser_SimpleParseString'
    /usr/bin/ld: pyloader.c:(.text+0x174b): undefined reference to `PyNode_Compile'
    collect2: error: ld returned 1 exit status
    *** error linking uWSGI ***

Steps to reproduce
trivial
Expected behaviour

Actual behaviour

Screenshots

Additional information (CMS/Python/Django versions)

Do you want to help fix this issue?

[ ] Yes, I want to help fix this issue and I will join #workgroup-pr-review on Slack to confirm with the community that a PR is welcome.
[ ] No, I only want to report the issue.

hi @jpVm5jYYRE1VIKL thank you for your report.
regarding

if before for developement needed to spend 1 second and see resuld now need to wait till build and publish docker container. Whole development with django cms became 10 - 30 times longer.

It's not relevant to your ticket but since you brought it up I would like to help. Docker is a great concept but sometimes it's a but counterintuitive. for django CMS to recompile you don't have to rebuild the docker image / container. If you run django CMS locally with ./manage.py runserver the runserver will reload as normal upon file changes. This should be more or less the same speed as with using a virtualenv on your host (if running on modern hardware). For this to work you have to mount your code into the docker container. For a state of the art setup please see https://github.com/django-cms/djangocms-template
Of course if you would like to continue to run your django CMS barebone on your host using virtualenv you can continue to do so, please see https://docs.django-cms.org/en/latest/how_to/install.html

Hi @jpVm5jYYRE1VIKL
We don't yet support python 3.10 from a pypi/pip package installation.
We're in the process of releasing django-cms 3.10 which does include support for python 3.10. So this will be available soon.

Hello @jpVm5jYYRE1VIKL,
A few words from my side
As you may know, djangoCMS is an open source project. It lives on the dCA, and on the people who participate in the project. Anyone who wants to can participate in the djangoCMS project here. We are an open community, and absolutely any help is welcome.
djangoCMS is in no way not developer friendly. I can understand that it frustrates you that you are not getting anywhere with your problem. It can always happen that things do not work, because they are simply not supported yet. Like in your example. So it's also absolutely right that you create an issue on GitHub and ask for help. That's what the project lives on!. In your case, the solution could probably be to use Python 3.8 or Python 3.9 instead of Python 3.10.
The djangoCMS Installer:
The djangoCMS installer has been put on hold for now, as it currently installs an outdated version of dangoCMS. However, we are in the process of transferring the project to our organization for further development.
I hope you will solve your problem!
If you have any further questions or problems, feel free to join our Slack! :)

@jpVm5jYYRE1VIKL Not sure if you are still subscribed to this thread, you might want to give django-cms==3.10.0rc2 a try, it add python3.10 support and should just work. But we aware, 3.10.0rc2 is a release candidate and shouldn't be used in production yet.


Steps for Edge appear to be out of date

The screenshots provided for Edge appear to be for an old version as the user interface of the development tab has changed fairly substantially - the sidebar where the console and network tab icons were shown is now a series of tabs across the top of Edge and the network tab was not shown by default.  The options to preserve logs were hidden under the cog icon and not shown openly.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 13f9ad7f-cf04-3030-9f71-511e5d603713
Version Independent ID: e43fa6b7-536d-1bca-b2ad-4223e2a18101
Content: Capture a browser trace for troubleshooting - Azure portal
Content Source: articles/azure-portal/capture-browser-trace.md
Service: azure-portal
GitHub Login: @JnHs
Microsoft Alias: jenhayes

@rjchwcc
Thanks for your feedback! We will investigate and update as appropriate.

Hi @rjchwcc - thanks for reporting this. The steps are up to date, however the view you say may not match what is shown due to different settings. I've added a note to clarify this, along with instructions on how to display the Network tab if it's not already visible. Thank you for taking the time to share your feedback and help us improve the docs. I'll close this issue now, but please let us know if you have additional questions or feedback.
#please-close


Updated opt out language

@Prakulka : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@Prakulka Hi. This pull request was opened in the public repo. PMs should work in the private repo, per the Microsoft Docs contributor guide. Would you make this content update in the private repo? We'll close this PR. Thanks.


Separate out multi-threaded wallet

This PR moves the multi-threaded logic out of the main wallet and into a separate class. The aim is both to simplify the logic in the main wallet by removing implementation details related to multiple threads, and to also make it clearer which parts of the wallet are affected by multi-threaded operation.
All the logic for multi-threadedness is now contained in the following class:
export class MultiThreadedWallet extends SingleThreadedWallet {
  private workerManager: WorkerManager;

  public static create(walletConfig?: ServerWalletConfig): MultiThreadedWallet {
    return new this(walletConfig);
  }

  protected constructor(walletConfig?: ServerWalletConfig) {
    super(walletConfig);
    this.workerManager = new WorkerManager(this.walletConfig);
  }

  async updateChannel(args: UpdateChannelParams): Promise<SingleChannelOutput> {
    return this.workerManager.updateChannel(args);
  }

  async pushMessage(rawPayload: unknown): Promise<MultipleChannelOutput> {
    return this.workerManager.pushMessage(rawPayload);
  }

  public async destroy(): Promise<void> {
    await this.workerManager.destroy();
    await super.destroy();
  }

  public async warmUpThreads(): Promise<void> {
    return this.workerManager.warmUpThreads();
  }
}

In order to accomplish this, I had to change the way wallets are constructed:
// old
const wallet = new Wallet(config);
// new
const wallet = Wallet.create(config);

The new Wallet.create method will return a MultiThreadedWallet or a SingleThreadedWallet, depending on the config. I have changed the Wallet constructor to be private, so that calling new Wallet.. will give a type error.
While the change to the construction api will require consumers to update their code, I think it's worth it for the greater flexibility we get with the approach. For example, we could in future change the create method to be async if we needed to.

I'm not sure if git will do this automatically or not but it looks like the move from index.ts to wallet.ts did a bulk line removal and then bulk line insertion which might make git blame a bit messy. Is it possible to write the history as a rename?


safeguard against driver with no source

Right now isolated component won't work if we use drivers with no sources, like the simple log driver from the CycleJS driver page:
const logDriver = msg$ => { msg$.subscribe(msg => console.log(msg)) }

For a live demo check out this webpackbin.
This PR adds a guard to make sure that the source prop isn't undefined, which will be the case with the above driver.

if there is no justification against not returning "empty" source it is ok.

Nod. In my mind, having to return bogus empty objects in sink-only drivers is more "expensive" than not being able to assume that a driver always returns a source.

This issue is also actual for cycle/core (cycle/base) because while disposeit too expects each source not be nil.

This PR makes total sense, thanks for it

Version 1.2.1 released

@staltz there is also need to fix it in cycle/base (cycle/core)

https://github.com/cyclejs/base/pull/5


Proposal: Include response object in Error

Currently, when a call fails, a new Error is created:
return Promise.reject(new Error(`${response.status} - ${response.statusText}`));

However, especially for backends that return json responses, the response itself may be useful as it contains some error information, possibly along the lines of, e.g.:
{ "error": "my custom error message" }

It would be useful if there was some way to pass on the entire response so that the caller can then deal with it as necesary (and redux-api-middleware is agnostic to this). My idea was to create a new ApiError class that extends Error with an additional field response. The middleware can then fail calls with:
return Promise.reject(new ApiError(response));

@mohanzhang  Thanks for your contribution. I'm laptop-less for a few days. I'll get back to you as soon as possible re: this PR.

@agraboso No rush at all. I am running off my own fork for now so please enjoy your digital disconnection and its after-effects ;)

@mohanzhang: Please check the mohanzhang-custom-errors branch. Here's a summary of what it contains.
I started with your PR. From your description above, I interpret that you're looking to get an error JSON response from the server (if it exists). I've tried adding code to parse that JSON response instead of just dumping the raw response object into the ApiError object. In case, the Content-Type header is not set to anything json-like, it defaults to returning that raw response.
I also decided to add status and statusText properties to the ApiError object, so that users don't have to parse the error message property to get that information should they want it.
Code coverage has dropped below 100%. I need to add a test to check an unsuccessful API request with no JSON body. If the code in this branch works for you, I'll do just that and then merge into master. Please let me know — and thanks for your patience until I got my laptop back.

@agraboso I really like your design decisions. The new branch works great for me. I've tried to save you some typing by adding a commit on top of yours that adds the missing test. I am not sure I have the best test though since I am just checking that the response is instanceof Object. Of course, feel free to modify as you see fit, but overall :+1:!

@mohanzhang isomorphic-fetch doesn't export the Response constructor function, so the only thing more specific than an instanceof Object check I could think of was checking the response's constructor name is the string 'Response'.
Once again, thanks for your contribution.


More friendly Filestore API

Having to manually create Documents and Write objects can be cumbersome compared to the https://cloud.google.com/firestore/docs/samples/firestore-data-set-id-specified of filestore (see e.g. https://stackoverflow.com/questions/71163275/add-document-to-firestore-from-beam-with-auto-generated-id) We could provide a more user-friendly API.
Imported from Jira BEAM-13994. Original Jira may contain additional context.
Reported by: robertwb.

I might have duplicated this in https://github.com/apache/beam/issues/24167. Althought I might add the issue is called "filestore" not "firestore".

I'll close this one, we can use #24167 for tracking


refactor: optimize dataprocessing config

What type of PR is this?

What this PR does / why we need it
Which issue(s) this PR fixes

Fixes #
Special notes for your reviewer

@Abirdcfly  Any comments on postresql part ?  Our chat server will need this later.

@ggservice007 @wangxinbiao  Please make sure this configuration change meets your requirements.

confirmed by @ggservice007


Options - Layout: Doesn't save the chosen state

Hello,
first thank you very much for your extension. I'm coming from the good old "NewsFox". For me your extension is the best alternative for Quantum. 👍
To the problem: If I choose in "Options" under "Appearance -Layout" the second mode, it get always resetet to the first (default) mode, if I close the tab or restart Firefox. Another problem: If I move the splitters (left/ right) the state isn't also saved.
Tested on:

Windows 10 64bit
Firefox v71.0
New fresh profile without any other extensions or modifications

Thank you in advance to take a look into this.

I can confirm that layout and size of first pane doesn't save, I will look into this but can't give you any ETA

I'll probably release new version with this and other fixes in a few days

Wow... thank you very much. :-)

just pushed update fixing this to AMO


Tab stops at user snippets not working

VSCode Version: 1.5.1
OS Version: Windows 10.0.10586

Steps to Reproduce:
User Snippets -> Javascript
"Print to console": {
"prefix": "x",
"body": [
"console.log('xxxxxxxxxxxxxxxxxxxxxxxxxx',$1);"
],
"description": "Log output to console"
}
Pressing tab after x shifts cursor to the end of the line where as the desired place is $1

Duplicate of #11719 and #11742.

yeah - dupe of #11742. working on a fix and trying to get it out asap


Fix random CI failures of lightning.tensor

Before submitting
Please complete the following checklist when submitting a PR:

[ ] All new features must include a unit test.
If you've fixed a bug or added code that should be tested, add a test to the
tests directory!

[ ] All new functions and code must be clearly commented and documented.
If you do make documentation changes, make sure that the docs build and
render correctly by running make docs.

[ ] Ensure that the test suite passes, by running make test.

[x] Add a new entry to the .github/CHANGELOG.md file, summarizing the
change, and including a link back to the PR.

[x] Ensure that code is properly formatted by running make format.

When all the above are checked, delete everything above the dashed
line and fill in the pull request template.

Context:
Currently, there are random CI build failures of lightning.tensor due to the missing of CUQUANTUM_SDK env
Description of the Change:
Ignore lightning_tensor path in workflow
Benefits:
Possible Drawbacks:
Related GitHub Issues:

Nice work! One more question. How did you check if the intermittent build failures are not happening anymore?

Nice work! One more question. How did you check if the intermittent build failures are not happening anymore?

Just re-trigger CI for 2-3 times and check if there is any failure for TN python CI tests.

Late for the party. 😢

Another one is on the way @AmintorDusko  🔢


How to initialize script without requiring for security and performance

Description
How to initialize script without requiring for security and performance?

Make just one request to script tag
Initialize immediately
Require script avoid (possible? for one request script tag)

Actual behavior
Requires require code, but i don't want it.
If at all possible, please create a small demo app on GitHub that demonstrates the issue so it's easier for us to check and debug.
Environment

Brunch: (make sure you're on the latest release!) YES
Node.js: not sure, v6+
NPM: (npm v2 is not supported)
Operating system: Windows 7 Ultimate (32-bit 2x CPU Intel)
Code editor: Brackets

package.json contents
{
  "name": "shavkatoff.com",
  "version": "0.0.0-development",
  "description": "Site of shavkatoff.com and their builder",
  "main": "public/app.js",
  "scripts": {
    "start": "brunch watch --server",
    "prod": "brunch build --production"
  },
  "devDependencies": {
    "auto-reload-brunch": "latest",
    "babel-brunch": "latest",
    "babel-preset-es2015": "latest",
    "brunch": "latest",
    "clean-css-brunch": "latest",
    "css-brunch": "latest",
    "css-mqpacker": "latest",
    "handlebars-brunch": "^2.10.0",
    "javascript-brunch": "latest",
    "npm": "latest",
    "postcss-brunch": "latest",
    "postcss-cssnext": "latest",
    "postcss-short": "latest",
    "postcss-size": "latest",
    "precss": "latest",
    "uglify-js-brunch": "latest"
  },
  "author": "dalisoft",
  "license": "GPL-3.0",
  "dependencies": {}
}

brunch config contents
exports.config = {
	files: {
		javascripts: {
			joinTo: {
				'assets/js/app.js': /^app*/
			}
		}
		, stylesheets: {
			joinTo: {
				'assets/css/app.css': /^app*/
			}
		}
        , templates: {
				'assets/js/app.js': /^app*/
			}
	},

	paths: {
		public: './public/'
	},

	plugins: {
		babel: { presets: [ 'latest', 'react' ] }
		, postcss: {
			processors: [ require( 'precss' )
		, require( "postcss-cssnext" )
		, require( 'postcss-size' )
		, require( 'postcss-short' )
		, require( 'css-mqpacker' ) ]
		},
        handlebars: {
				locals: {
					title: 'Brunch is awesome!',
                    body: 'How it was good'
				}
			}
	}
};

Other useful files, when present (log, bower.json etc.)
If there's an unexpected error during brunch build/brunch watch, please attach the compilation log with the debug flag (-d) and stack traces enabled (export LOGGY_STACKS=true).
If something worked with previous versions of brunch, but stopped with a newer one, please include these details as well.

Hi, @dalisoft!
I'm trying to help you with your problem. Could you help me and create a repo that reproduce your troubles with Brunch?

Hi, @dalisoft and thanks for reaching us out!
Take a look at modules.autoRequire option in Brunch config.

please create a small demo app on GitHub that demonstrates the issue

Sure, here it is: https://github.com/denysdovhan/brunch-issue-1680. The most important lines is auto-requiring of initialize module in app.js file.
I'm closing this issue. Feel free to ask, if you still have questions.

Wow. it works. Thanks a lot.
Its now better. Now i have single-packed CSS and JS (nice and fast).
And i am have some question:

There i can disable CSS source-mapping?
Looking at at here i am see that there no bundled file, but works via unpkg nice. ES6 imports too suported, i am too trying to get like that, but not works.

I have just these 2-question now, Thanks for reply.

sourceMaps: false
not sure what you mean by the 2nd question

on 2nd: Brunch is not quite intended for npm packages, it was created for apps. So you can't do umd that unpkg needs. That sucks, but we are planing on fixing it in 3.0. Sadly, can't share any release dates.

Thanks for reply. I am already configured sourceMaps. On second question i no need now as require works best.


Add Emby Support

Example playback.start from Emby:
ImmutableMultiDict([('data', '{"Title":"Scott has finished playing Billy the Kid - S2, Ep1 - The Road to Hell on Chrome macOS","Date":"2023-10-26T03:11:02.4880527Z","Event":"playback.stop","User":{"Name":"Scott","Id":"961f390f0306415687d24263559594ab"},"Item":{"Name":"The Road to Hell","ServerId":"2965b319f8a849ebb156e4ea01e9a5c5","Id":"478","DateCreated":"2023-10-16T04:00:00.0000000Z","Container":"mkv","SortName":"Road to Hell","PremiereDate":"2023-10-15T07:00:00.0000000Z","ExternalUrls":[{"Name":"TheTVDB","Url":"https://thetvdb.com/?tab=episode&id=9944695"}],"Path":"/mnt/user/TV/Billy the Kid/Season 02/Billy the Kid - S02E01 - The Road to Hell.mkv","Overview":"The Lincoln County War is on the verge of kicking off in a big way. Billy has joined Englishman John Tunstall in his commercial battle with Major Murphy and the House, but even bigger players lurk in the background and the stakes are high.","Taglines":[],"Genres":[],"RunTimeTicks":28512110000,"Size":275927118,"FileName":"Billy the Kid - S02E01 - The Road to Hell.mkv","Bitrate":774203,"PlayAccess":"Full","ProductionYear":2023,"IndexNumber":1,"ParentIndexNumber":2,"RemoteTrailers":[],"ProviderIds":{"Tvdb":"9944695"},"IsFolder":false,"ParentId":"477","Type":"Episode","Studios":[],"GenreItems":[],"TagItems":[],"ParentLogoItemId":"44","ParentBackdropItemId":"44","ParentBackdropImageTags":["ee06fe740a11ec9944c619e9f95d86ea"],"SeriesName":"Billy the Kid","SeriesId":"44","SeasonId":"477","PrimaryImageAspectRatio":1.7777777777777777,"SeriesPrimaryImageTag":"ebc8cb7fe2cd3a97fdfa728a86872bff","SeasonName":"Season 2","ImageTags":{"Primary":"fd5c872d31d9973d331bc2f0dc355a72"},"BackdropImageTags":[],"ParentLogoImageTag":"80d339a1912f731bce717291b4933c0e","ParentThumbItemId":"44","ParentThumbImageTag":"789f8891b1ad000a8cdede46e75e0155","MediaType":"Video","Width":1280,"Height":720},"Server":{"Name":"Tower","Id":"2965b319f8a849ebb156e4ea01e9a5c5","Version":"<IP_ADDRESS>"},"Session":{"RemoteEndPoint":"<IP_ADDRESS>","Client":"Emby Web","DeviceName":"Chrome macOS","DeviceId":"TW96aWxsYS81LjAgKE1hY2ludG9zaDsgSW50ZWwgTWFjIE9TIFggMTBfMTVfNykgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzExNy4wLjAuMCBTYWZhcmkvNTM3LjM2fDE2OTgwOTg4NTIwMTI1","ApplicationVersion":"<IP_ADDRESS>","Id":"81c1dc32bdec8bcce23056e6668cf267"},"PlaybackInfo":{"PlayedToCompletion":false,"PositionTicks":13654655720,"PlaylistIndex":0,"PlaylistLength":2}}')])

Example library.new from Emby:
ImmutableMultiDict([('data', '{"Title":"New 10 Things I Hate About You - Cars on Emby Server","Date":"2023-10-26T03:11:25.6926771Z","Event":"library.new","Item":{"Name":"Cars","ServerId":"2965b319f8a849ebb156e4ea01e9a5c5","Id":"5808","DateCreated":"2023-10-26T03:10:32.1268687Z","SortName":"Cars","ExternalUrls":[],"Path":"/mnt/user/TV/10 Things I Hate About You/Cars.strm","Taglines":[],"Genres":[],"FileName":"Cars.strm","RemoteTrailers":[],"ProviderIds":{},"IsFolder":false,"Type":"Episode","Studios":[],"GenreItems":[],"TagItems":[],"SeriesName":"10 Things I Hate About You","SeriesId":"6","SeriesPrimaryImageTag":"95bd99feb1c92c7cb3922c6aa5db3f63","ImageTags":{},"BackdropImageTags":[],"MediaType":"Video"},"Server":{"Name":"Tower","Id":"2965b319f8a849ebb156e4ea01e9a5c5","Version":"<IP_ADDRESS>"}}')])

Fairly simple implementation, Emby returns nice information in their webhooks!
`@app.route("/emby", methods=["POST"])
def receive_emby_webhook():
logging.debug("This hook is from Emby webhook!")
logging.debug("Headers: %s", request.headers)
logging.debug("Raw response: %s", request.form)
if "Emby Server" in request.headers.get("User-Agent"):
    data = request.form.get('data')
    if data:
        data_dict = json.loads(data)
        fullpath = data_dict.get('Item', {}).get('Path', '')
        event = data_dict.get('Event', '')
        logging.debug("Event detected is: " + event)
        if((event == "library.new" and procaddedmedia) or (event == "playback.start" and procmediaonplay)):
            logging.debug("Path of file: " + fullpath)

            if use_path_mapping:
                fullpath = fullpath.replace(path_mapping_from, path_mapping_to)
                logging.debug("Updated path: " + fullpath.replace(path_mapping_from, path_mapping_to))

            add_file_for_transcription(fullpath)
else:
    print("This doesn't appear to be a properly configured Emby webhook, please review the instructions again!")

return ""`

Emby is really nice and doesn't require an API key or server because they return all the info we need in the webhook outright!
https://github.com/McCloudS/subgen/blob/93fbf5e7649a7b609e64cf443009b5a526d34ccf/subgen/subgen.py#L149-L173


Parallel execution - reuse existing cache hash to avoid IO read operation

target:  https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7777

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

7 of 10 (70.0%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 95.686%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/Console/Command/WorkerCommand.php
1
2
50.0%

src/FixerFileProcessedEvent.php
2
4
50.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
27323

Relevant Lines:
28555

💛  - Coveralls

Thanks @keradus 🍻!


Provide windows functionality

Saw that there was some kind of simple notification library for windows, have not tried it, but would it be an option to include?
https://crates.io/crates/win32_notification

this library has basic windows support through winrt-notification