Installation of labextension fails on Windows 10

I tried to install by following the directions:
$ conda install ipympl -c conda-forge
$ jupyter labextension install jupyter-matplotlib

This is what I got:
λ conda install ipympl -c conda-forge
Fetching package metadata .................
Solving package specifications: .

# All requested packages already installed.
# packages in environment at C:\Users\Jeremy\Anaconda3:
#
ipympl

and then this
λ jupyter labextension install jupyter-matplotlib
> npm.cmd pack jupyter-matplotlib
jupyter-matplotlib-0.1.0.tgz
> node node-version-check.js
> npm.cmd install
-
><EMAIL_ADDRESS>postinstall C:\Users\Jeremy\Anaconda3\share\jupyter\lab\staging\node_modules\jupyter-matplotlib
> npm run clean && npm run build

><EMAIL_ADDRESS>clean C:\Users\Jeremy\Anaconda3\share\jupyter\lab\staging\node_modules\jupyter-matplotlib > rimraf dist/

'rimraf' is not recognized as an internal or external command,
operable program or batch file.

npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "clean"
npm ERR! node v4.4.7
npm ERR! npm  v2.15.8
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>clean: `rimraf dist/`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>clean script 'rimraf dist/'.
npm ERR! This is most likely a problem with the jupyter-matplotlib package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     rimraf dist/
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs jupyter-matplotlib
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls jupyter-matplotlib
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Jeremy\Anaconda3\share\jupyter\lab\staging\node_modules\jupyter-matplotlib\npm-debug.log
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v4.4.7
npm ERR! npm  v2.15.8
npm ERR! code ELIFECYCLE

npm ERR<EMAIL_ADDRESS>postinstall: `npm run clean && npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script 'npm run clean && npm run build'.
npm ERR! This is most likely a problem with the jupyter-matplotlib package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run clean && npm run build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs jupyter-matplotlib
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls jupyter-matplotlib
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Jeremy\Anaconda3\share\jupyter\lab\staging\npm-debug.log
> npm.cmd run build

><EMAIL_ADDRESS>build C:\Users\Jeremy\Anaconda3\share\jupyter\lab\staging
> webpack

Hash: 998f9dcdfce9168b95b4
Version: webpack 2.7.0
Time: 18682ms
                                 Asset     Size  Chunks                    Chunk Names
  674f50d287a8c48dc19ba404d20fe713.eot   166 kB          [emitted]
af7ae505a9eed503f8b8e6982036873e.woff2  77.2 kB          [emitted]
 fee66e712a8a08eef5805a46892932ad.woff    98 kB          [emitted]
  b06871f281fee6b241d60582ae9369b9.ttf   166 kB          [emitted]
  912ec66d7572ff821749319396470bde.svg   444 kB          [emitted]  [big]
                           0.bundle.js   894 kB       0  [emitted]  [big]
                        main.bundle.js  7.78 MB       1  [emitted]  [big]  main
                       0.bundle.js.map  1.09 MB       0  [emitted]
                    main.bundle.js.map  9.42 MB       1  [emitted]         main
  [24]<EMAIL_ADDRESS>5.48 kB {1} [built]
 [488]<EMAIL_ADDRESS>6.12 kB {1} [optional] [built]
 [489]<EMAIL_ADDRESS>7.91 kB {1} [optional] [built]
 [490]<EMAIL_ADDRESS>10.5 kB {1} [optional] [built]
 [491]<EMAIL_ADDRESS>7.09 kB {1} [optional] [built]
 [492]<EMAIL_ADDRESS>12.5 kB {1} [optional] [built]
 [493]<EMAIL_ADDRESS>1.79 kB {1} [optional] [built]
 [494]<EMAIL_ADDRESS>10.1 kB {1} [optional] [built]
 [495]<EMAIL_ADDRESS>3.78 kB {1} [optional] [built]
 [496]<EMAIL_ADDRESS>11.9 kB {1} [optional] [built]
 [497]<EMAIL_ADDRESS>11.8 kB {1} [optional] [built]
 [498]<EMAIL_ADDRESS>8.84 kB {1} [optional] [built]
 [499]<EMAIL_ADDRESS>4.25 kB {1} [optional] [built]
 [500]<EMAIL_ADDRESS>7.09 kB {1} [optional] [built]
 [529] ./build/index.out.js 8.36 kB {1} [built]
    + 1309 hidden modules

WARNING in ./build/index.out.js
Module not found: Error: Can't resolve 'jupyter-matplotlib/src/labplugin' in 'C:\Users\Jeremy\Anaconda3\share\jupyter\lab\staging\build'
 @ ./build/index.out.js 230:37-80

I was going to attach the npm-debug.log  file that was mentioned in the error message. However, I couldn't find it at the path that was mentioned. Any ideas on how I fix this? I'm on Windows 10. I'm using Anaconda with Python 3.6.
EDIT:
It turns out that it seemed to work after I installed npm rimraf.
λ npm install rimraf -g
C:\Users\Jeremy\AppData\Roaming\npm\rimraf -> C:\Users\Jeremy\AppData\Roaming\npm\node_modules\rimraf\bin.js
<EMAIL_ADDRESS>C:\Users\Jeremy\AppData\Roaming\npm\node_modules\rimraf
└──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
Is this supposed to be a normal part of the installation? Should the command jupyter labextension install jupyter-matplotlib install rimraf if it's not already present?

That was an oversight, thanks!


Create Minimum Sum Partition.py

In this problem given set is partitioned into two subsets such that the difference between the sum of elements of 1st set and the sum of elements of 2nd set is minimized.

Have you read the Contributing Guidelines on Pull Requests?
Minimum Sum Partition
Description
In this problem given set is partitioned into two subsets such that the difference between the sum of elements  of 1st set and the sum of elements of 2nd set is minimized.
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
(Write your answer here.)

Please update the readme file.

Done @Kajol-Kumari

Please update the readme file.

Done @Kajol-Kumari

@Ajay0511 I can't see the changes here. please verify it on your end once.


tedge-log-manager: wait for upload before marking operation successful

Proposed changes
tedge-log-manager previously marked log_upload operation as successful without waiting for the actual HTTP file upload operation to finish successfully. This lead to race conditions where after marking the operation as successful the actual logfile may not yet be available, or to bugs where the operation is marked as successful but the upload could not be completed.
Now tedge-log-manager actor waits for the upload to be successful to mark the operation as successful.
Types of changes

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Improvement (general improvements like code refactoring that doesn't explicitly fix a bug or add any new functionality)
[ ] Documentation Update (if none of the other choices apply)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Paste Link to the issue
#2414
Checklist

[x] I have read the CONTRIBUTING doc
[x] I have signed the CLA (in all commits with git commit -s)
[x] I ran cargo fmt as mentioned in CODING_GUIDELINES
[x] I used cargo clippy as mentioned in CODING_GUIDELINES
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)

Further comments
I thought about adding a test, but I don't quite know how to go about it. The scope seems very limited and I don't know if it's even possible to write that test in such a way that it's not flaky. Suggestions welcome.

Looks good and I'm happy to merge it without system tests as this error was hard to reproduce reliably as it it would rely on controlling the upload speed on localhost.


Passing Audio capture buffer to avs-sdk

Hello AVS Team,
I have an Audio Capture device that is giving me Audio Capture buffer bytes. I want to pass this audio capture buffer having capture data bytes to AVS SDK. In what way can this be achieved ?
Can you help me with the part of code where I can pass audio capture buffer bytes?
Version - 1.9
OS - Ubuntu Linux
Thanks and Regards,
Sumit

Hi @sumit3817,
The interface between the SDK and the Mic is on PortAudioMicrophoneWrapper.cpp.
Could you connect your audio capture device in a similar interface? This way you can implement MicrophoneInterface and initialize it on SampleApplication.cpp.
Thanks,
Benny

Hi,
I am using SPI interface. I didn't have ALSA PCM record device. So I can only pass audio capture buffer to AVS. PortAudio is dependent on ALSA PCM record device.
Is there any another way to pass the  Audio Capture buffer bytes to avs-device-sdk ?
Thanks and Regards,
Sumit

Hi @sumit3817,
Our sample implementation uses PortAudio, so in order to use the sampleApp as it is, you need to use a PortAudio supported device.
Otherwise, you can try implement your own MicrophoneInterface implementation and initialize it in SampleApplication.cpp.
Thanks,
Benny

I am closing this issue due to inactivity. Please feel free to re-open it if it has been closed in error.


SPARK-5270 [CORE] Elegantly check if RDD is empty

Pretty minor, but submitted for consideration -- this would at least help people make this check in the most efficient way I know.

Test build #25667 has started for   PR 4074 at commit de6b95e.

This patch merges cleanly.

(Oh of course, if this looks good I can add this to Java / Python too)

Test build #25667 has finished for   PR 4074 at commit de6b95e.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/25667/
Test PASSed.

LTGM. What is the use case? is this part of a bigger pr?

This is all there is to it. It's just a convenience method that implements the check efficiently. Given several questions on the list, it seems that people do want to test for an empty RDD and there hasn't been an accepted way to do it that is faster than count() == 0:
http://apache-spark-user-list.1001560.n3.nabble.com/Testing-if-an-RDD-is-empty-td1678.html#a1679
... and of course
http://issues.apache.org/jira/browse/SPARK-5270

Seems reasonable to have since it's non obvious how to do it - @srowen could you add this in Java and Python?

Test build #25682 has started for   PR 4074 at commit d76f8e3.

This patch merges cleanly.

Test build #25682 has finished for   PR 4074 at commit d76f8e3.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/25682/
Test FAILed.

Jenkins, retest this please.

Test build #25701 has started for   PR 4074 at commit d76f8e3.

This patch merges cleanly.

Test build #25701 has finished for   PR 4074 at commit d76f8e3.

This patch fails MiMa tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/25701/
Test FAILed.

Test build #25730 has started for   PR 4074 at commit 191bb9f.

This patch does not merge cleanly.

Test build #25730 has finished for   PR 4074 at commit 191bb9f.

This patch passes all tests.
This patch does not merge cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/25730/
Test PASSed.

Test build #25731 has started for   PR 4074 at commit 66885b8.

This patch merges cleanly.

Test build #25731 has finished for   PR 4074 at commit 66885b8.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/25731/
Test PASSed.

LGTM @srowen - are you still working on it or is it good from your end? Will leave a bit of time for others to comment as well.

@pwendell No more changes from my side.

@srowen Thanks Sean, I committed this with a minor re-word of the title.


Update README.md. ADS-B Exchange to be added without need for PiAware

Update README.md so it no longer states ADS-B Exchange requires PiAware.

commit 24ffe9cb70632e6faa28b4c752b70f313b6e10d9


Support for Bitwarden as a provider

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

I use Bitwaden as my passwords manager and would like to extend that usage to the command line using teller.
Describe the solution you'd like

Ideally Bitwarden would show as provider in the list and I can tick it to generate a basic config.
Describe alternatives you've considered
NA, maybe use a different password manager 🤷
I'm willing to work on this provider, if there is an interest to accept it. That said, I can't commit to any time line.

+1

+1

+1 bitwarden secret manager

+1

Now that Teller 2.0 was rewritten fully in Rust, bitwarden should be extremely easy to add. Maybe we can ask @dani-garcia to consider adding support, as I don't have an account myself

+1

+1

+1

+1

+1

+1


[Bug]: inconsistent SIGINT behavior

Contact Details
<EMAIL_ADDRESS>📦 Package Version
latest
🎞 Framework Version
N/A
🔎 Describe the Bug
import os
import time

import agentops
import dotenv

dotenv.load_dotenv()

agentops.init(api_key=os.environ["AGENTOPS_API_KEY"])

while True:
    time.sleep(0.2)

Run the script

Spam <C-c>

Won't [always] terminate

🖇 AgentOps: Session Replay: https://app.agentops.ai/drilldown?session_id=6f8b6bee-33c5-4288-9377-c1f2bb0d264f
^C🖇 AgentOps: SIGINT detected. Ending session...
^C🖇 AgentOps: SIGINT detected. Ending session...
^C🖇 AgentOps: SIGINT detected. Ending session...
^C🖇 AgentOps: SIGINT detected. Ending session...
^C🖇 AgentOps: SIGINT detected. Ending session...
^C🖇 AgentOps: SIGINT detected. Ending session...
^C🖇 AgentOps: SIGINT detected. Ending session...
^C🖇 AgentOps: SIGINT detected. Ending session...
^C🖇 AgentOps: SIGINT detected. Ending session...
^C🖇 AgentOps: SIGINT detected. Ending session...
^C🖇 AgentOps: SIGINT detected. Ending session...
^C🖇 AgentOps: SIGINT detected. Ending session...
... (Goes on forever)

🤝 Contribution

[X] Yes, I'd be happy to submit a pull request with these changes.
[ ] I need some guidance on how to contribute.
[ ] I'd prefer the AgentOps team to handle this update.

on this


Document new host matching in routing for 3.0

Explain why this topic is needed.
3.0 added a new [Host] attribute that can be used to match routes to the host name. This makes it easier for a single ASP.NET Core to provide content for multiple domains.

HostAttribute
Sample (this sample is from 2.2 and uses a predecessor to the final version that was renamed to HostMatching and shipped in 3.0)

Suggest a location in the Table of Contents.
It could be added to https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers/routing?view=aspnetcore-3.0
Write an abstract. In one short paragraph, describe what this topic will cover.
The [Host] attribute can be used to match routes using the host name from a request. You can use host name matching to map controllers and actions from an ASP.NET Core app to multiple domains.

@JamesNK will you be handling this? we plan to spend about a week on paying off some dept in Docs before 3.1.

I'll do it

Fixed with https://github.com/aspnet/AspNetCore.Docs/pull/15291


Selections from list when using arrow keys are not displayed

With theme:

No theme:

I wasn't really sure if you thought the issue was fixed already or not but I still have the issue with the most current theme.

Perfect, thank you.


Passing members hash

Refs https://github.com/keep-network/keep-core/issues/2756
A hash of group members that actively took part in DKG can be calculated off-chain and passed to the contract's submitDKGResult(). This way we skip filtration of the misbehaved members. However, this change requires additional validation during the DKG challenge phase to verify that hash. The reasoning is that the dkg challenge will be done less frequently compared to dkg result submission which overall should save gas.
Initial findings with current tests:
Before (branch: splitting-relay-entry-submission):
|  approveDkgResult                ·     185764  ·     247364  ·     205453  │
|  challengeDkgResult              ·     333403  ·    1175701  ·     978581  │
|  submitDkgResult                 ·     306979  ·     479157  ·     395381  │
|  submitRelayEntry (no slashing)  ·     191316  ·     240943  ·     208197  │
|  submitRelayEntry (slashing)     ·     213726  ·     494962  ·     354344  │

After (current branch):
|  approveDkgResult                ·     186341  ·     247826  ·     206032  │
|  challengeDkgResult              ·     334131  ·    1176402  ·     978049  │
|  submitDkgResult                 ·     297260  ·     421650  ·     383427  │
|  submitRelayEntry (no slashing)  ·     191338  ·     240965  ·     208219  |
|  submitRelayEntry (slashing)     ·     213748  ·     494984  ·     354366  │

Diff in gas after this change (min-max-avg):
|  challengeDkgResult              ·     +728   ·    +701     ·     +532    │
|  submitDkgResult                 ·     -9719  ·    -57507   ·     -11954  │

There's a big diff in max case.
Bytecode:
 |  RandomBeacon            ·     21.954  │
 |  RandomBeaconStub        ·     23.302  │

TODO:

[ ] add test with misbehaved members when groups.hash != hash in dkg challenge

I like the idea of filtering the members off-chain, but I'm afraid of introducing the changes now, after the audit. I'm curious about @pdyraga stand.

I like the idea of filtering the members off-chain, but I'm afraid of introducing the changes now, after the audit. I'm curious about @pdyraga stand.

Let's first merge #2772 and #2780. Then, let's compare changes in this PR against main from the perspective of gas costs and contract size for 64 and 100 group members. We will have a full picture then.

Results are ready in the description for 64 members. It is harder to compare 100 members, because we have bunch of tests that are written for 64 members and they fail. This is not a one number change case, but for sure the numbers for gas will be even higher than for 64 members. The tests that did pass produced these results for 100 members:
Branch: main
submitDkgResult    ·   345905  ·     542948  ·     428666
challengeDkgResult ·           ·    1500531  ·

Branch: passing-members-hash current
submitDkgResult    ·  330874  ·     452494  ·     409014
challengeDkgResult ·          ·    1507884  ·

Can we implement just two tests:

happy path
challenge failing on the last validation step

execute them for 64 and 100 members and compare? We do not need to have all tests passing, we need the happy path which should be at least 99% of cases and the worst case for challenge.

Can we implement just two tests:

happy path
challenge failing on the last validation step

execute them for 64 and 100 members and compare? We do not need to have all tests passing, we need the happy path which should be at least 99% of cases and the worst case for challenge.

branch passing-members-hash
Note that when you run all tests, 'min gas' is sort of misleading for challengeDkgResult, cause it will show you 333403 of gas only when it hit "validation reverted" here, which is not a "happy path" of dkg challenge. All other executions consumed > 1.1M of gas. So when the function executes without any exceptions thrown, it will always consume >1.1M gas.
64 members
challengeDkgResult() when members hash is invalid (last step most expensive) 1224317
submitDkgResult() happy path: 416714
submitDkgResult() max: 421691
100 members
challengeDkgResult() when members hash is invalid (last step most expensive) 1575953
submitDkgResult() happy path: 445716
branch main
64 members
challengeDkgResult() when group members are invalid (last step most expensive) 1164044
submitDkgResult() happy path: 426392
submitDkgResult() max: 479157
100 members
challengeDkgResult() when group members are invalid (last step most expensive) 1491453
submitDkgResult() happy path: 460436

@nkuba I agree with all the recent comments around dkg.test.ts Thery were addressed in a single commit here: 2ca346e

@pdyraga want to give it a final look?


increase local max streams limits with MAX_STREAMS

This implements increasing the local max streams limits by sending
MAX_STREAMS frames, once a certain threshold is passed.
Stream credits are given back to the peer only once a non-locally
generated stream is complete, that is, once all incoming data has been
read by the application and all outgoing data has been ACKed.

TODO

[ ] Merge https://github.com/cloudflare/quiche/pull/158 first.

Rebased on top of latest master (there were a few conflicts).

@LPardue regarding the stream resets, it looks like we are not considering streams complete if they get reset by the peer and we don't receive all the data up to the "final size" from the reset. I'll look into fixing and testing that as part of #158 (or probably as a separate PR since #158 is already pretty big).

Rebased on master.

@LPardue @junhochoi please review again, as I had to change some things (e.g. added explicit count of peer opened streams instead of decreasing the max limit).


Prepare release of v0.14.0

See the changelog for highlights.

@bors r+

:pushpin: Commit 32b125ea62680aac4ecc1107cf2d927b6f15232b has been approved by Amanieu
It is now in the queue for this repository.

:hourglass: Testing commit 32b125ea62680aac4ecc1107cf2d927b6f15232b with merge 3056ee976adaa39f5b502db7441b33ffab372ab6...

:sunny: Test successful - checks-actions
Approved by: Amanieu
Pushing 3056ee976adaa39f5b502db7441b33ffab372ab6 to master...


Runnig Startscript results in file not found. solved

Running you fusion360-start.sh results in an:
file not found Error.
I changed the code line form:
env WINEPREFIX="/$HOME/$USER/.fusion360" wine C:\\windows\\command\\start.exe /Unix /$HOME/$USER/.fusion360/dosdevices/c:/ProgramData/Microsoft/Windows/Start\ Menu/Programs/Autodesk/Autodesk\ Fusion\ 360.link
to
env WINEPREFIX="/$HOME/.fusion360" wine C:\\windows\\command\\start.exe /Unix /$HOME/.fusion360/dosdevices/c:/ProgramData/Microsoft/Windows/Start\ Menu/Programs/Autodesk/Autodesk\ Fusion\ 360.link
Running it on Manjaro letest from home dierctory.
and it worked like a charm :+1:
Keep up the great work!

@lord-x-type Thank you for this report!!! :-)
I have changed this in my script: "fusion360-start.sh"


Update Google Java dependencies

AutoCommon:  0.8     -> 0.10
AutoService: 1.0-rc3 -> 1.0-rc4
AutoValue:   1.5.2   -> 1.5.4
ErrorProne:  2.2.0   -> 2.3.1
GSON:        2.8.4   -> 2.8.5
Guava:       25.0    -> 25.1
HTMLTypes:   1.0.7   -> 1.0.8
RE2J:        1.1     -> 1.2
Truth:       0.36    -> 0.41

Buildbot bazel-kythe status for https://github.com/google/kythe/commit/a0a4106eb5aee73cc8ec80d33b160a05f211f2ec: build successful

Buildbot go-kythe status for https://github.com/google/kythe/commit/a0a4106eb5aee73cc8ec80d33b160a05f211f2ec: build successful

Buildbot bazel-kythe status for https://github.com/google/kythe/commit/17f85e7954c90f2a763579a5878637174fbfa7fc: failed update (failure)

Buildbot go-kythe status for https://github.com/google/kythe/commit/17f85e7954c90f2a763579a5878637174fbfa7fc: failed update (failure)


Programmatically access defined stories

Is there a way to programmatically access defined stories? I am trying to run https://github.com/marmelab/gremlins.js against each of the stories defined, but in order to hit the right one in the iframe (#266) I need the story name. I tried exporting storiesOf(..).add(...) but there is no way to read them from that object.

Try out extensions API: https://github.com/kadirahq/react-storybook/blob/master/docs/extensions.md

Thanks @arunoda. Adding an extension would work, but it basically would be something like:
setAddon({
  add1(storyName, storyFn) {
    this.stories = this.stories || [];
    this.stories.push(storyName);
    this.add(storyName, storyFn);
  },
});

which seems a bit silly, given that the information about defined stories must be kept inside the main object already. I think an introspect(storObj) with a method .getAddedStories() would be saner in the longterm.

For reference: React Storybook has a getStorybook function which can be used to get all stories.
source


Read an account from the service

**As a** user
**I need** to read an account from the service
**So that** I can view customer information

### Details and Assumptions
* The account data should include names and addresses.

### Acceptance Criteria
```gherkin
Given an existing account
When I request the account details
Then the account information should be retrieved and displayed


Date ranges crashing browser

Not sure exactly what the cause is, but it has something to do with the date range.
Reproduction:

https://jsfiddle.net/wp39kL7u/3/

Example:
This works
start: '2019-11-03 10:00',
end: '2019-11-04 14:00'

This crashes the browser
start: '2019-11-02 10:00',
end: '2019-11-04 14:00'

It seems to be if it crosses 12-1am. and it crosses the end of a week/month

@TheJaredWilcurt  I had the same issue, In my case I think it was about the time change in germany. After splitting my event on 26.10 24:00/27.10 00:00 the issue was gone.
In your example it crashes on 27.10 too (at least when I tried), so maybe that could be helpful.

Hi @TheJaredWilcurt,
Mmm that's weird. And it does not crash for me - or even slow down - when I try both end dates on your fiddle and go to month view 🤔
But it's been reported before that browser was hanging like in your case: #194.
In that case the event was ending at 00:00 which you should not as per this issue #139.
I'm keen to find the cause but for now I can't reproduce, so I will leave this open and let's continue tracking this down.

In Firefox it freezes the entire tab. In Chrome it freezes the iframe (in JSFiddle).
I'm in USA Eastern time. Though my team in USA Central time also can reproduce it. Doesn't seem to be OS dependent (happens on Win/Lin/OSX), but perhaps it is the US locale of the system defaulting things in vue-cal differently.

I can also confirm that it happened at the local DST change date. In North America DST changed last weekend...

Cause found
Yep! That's what's causing it to crash. There is an hour of the day that it crashes during.
On March 10, 2019 we skip an hour (2:00 AM - 2:59 AM does not happen, it goes straight from 1:59 AM, then one minute later it is 3:00 AM).
On November 3, 2019 we repeat an hour (2AM-3AM happens, but then we go back to 2AM and repeat the same hour).
 So.

Impact
Interestingly, vue-cal has no problem skipping the hour (Events crossing March 10th do not crash).
Problem solved! Just handle a special case for this exact hour of dates after 2019-11-02 23:59 and before 2019-11-03 01:00.
Except... no. Because DLS happens on "The first Sunday of November" 🙄 .... but that's only in USA. And only in some cases. 💀
So you really just need to pull in a library like Moment or something. to detect if a date range passes over the repeated hour for the current user in whatever their timezone/locale is, and if so, then fix the bug for that event's date range.

Fix how? Change the end time of the event? In my case it was an event that spanned the DST night, not finishing or ending at the 'extra' hour.

I meant fix internally in vue-cal. It's the code that is crashing in this scenario, so it should be detecting the scenario and preventing the crashing.

I hear you guys - does not seems like an easy fix.
Thanks for your explanation @TheJaredWilcurt and @kstankov, I could reproduce the browser hang in Australia/Melbourne timezone only happening on DLS change, only when turning to winter, and only if it is a multiple-day event.
That's a good step already.
Detecting a timezone change is fairly easy with pure JS, but fixing the code is another story.
I will investigate what causes that in the code and let you know.

@TheJaredWilcurt, @kstankov,
Good news here, I found the problem and fixed it, I need to couple more tests and cleanup. Will release a patch soon.

Hi @TheJaredWilcurt, @kstankov,
I have released the patch in version 2.13.2, please try to add your breaking event in this codepen https://codepen.io/antoniandre/pen/mddLEeO?editors=1010 and let me know if this is fixed in your timezone too.
(Make sure there is no cache in the codepen hitting the right version of<EMAIL_ADDRESS>Thanks!

Thanks a lot, and thanks for this great component!

Yep that seems to have fixed it. Great work!


Throttle Scala futures through better Executor

http://quantifind.com/blog/2015/06/throttling-instantiations-of-scala-futures-1/

This has been implemented.

See FutureUtils.getBoundedContext


feature: run shuttle on Kubernetes

Shuttle currently runs on AWS via terraform config.
Deploying on Kubernetes would offer non-cloud, cross-cloud and alternative cloud provider support.

We might consider using Helm charts to modularize the IaC if we switch to using Kubernetes

Hi, what's the current status for this issue? I'd like to be able to use shuttle to deploy apps to self-hosted kubernetes clusters.

Hi, what's the current status for this issue? I'd like to be able to use shuttle to deploy apps to self-hosted kubernetes clusters.

I've been trying to find any info on shuttle self-hosting, but it seems like it's still a "planned to be available in the future" thing, probably after it's considered production-ready by the main team (according to README it's not there yet)

Hi everyone, thank you for your questions and feedback - this is very much appreciated and helps us prioritize our product development efforts 🙏.
Kubernetes support is something we have indeed considered for a while, but at this point we do not have any concrete plans to implement this due to complexity of such a project.
For the broader topic of self-hosting Shuttle, we currently support running Shuttle app on your local system: https://docs.shuttle.rs/getting-started/local-run.
We also have Bring Your Own Cloud on our long-term roadmap, but at this point we are not ready to share any particular timelines for this feature.


gzstream: init at 1.5

Motivation for this change
Things done

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

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

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

This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 110330 run on x86_64-linux 1

1 package built:

gzstream

This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 110330 run on x86_64-linux 1

1 package built:

gzstream

Made the changes. :)

Made the changes. :)


Exams

Don not use console.log in functions, that is just for logging/debug purposes. If you need to return an error you can use return operator with new Error or error code

Use eslint and prettier


Can provide a small panel header style ?

Bootstrap preset panel header does not look good and it is  too big , if you can provide a style more like Google ?

Hi @jewway,
Please provide me with a link to a Google panel header and I will take a look.
Thanks

Hi @acmetech,
Maybe you can refer to the following
1.Google+ setting UI

2.Google Hangouts dialog

3.Google Gmail

Thank you !!

@jewway,
Those examples are for modals, not panels. See http://todc.github.io/todc-bootstrap/javascript/#modals.
From the readme:

This is a Google-styled theme for Bootstrap. Because I'm a fan of the new Google UI seen in Gmail, Docs, Calendar, etc, I decided to reproduce the look of these new UI elements for my own personal use. The project's goal isn't UI parity with Google Apps -- it's feature parity with Bootstrap, themed with Google's UI in mind.

Also see this comment: https://github.com/todc/todc-bootstrap/issues/133#issuecomment-31431365
We wont be changing the height of the modal header at this time. You can change it in your copy by modifying the modal-header class.
Thanks


Added Dataset for KMeans

I've added Mall Customers dataset for KMeans in Kmeans folder.

Hey @geekquad Kindly take a look at this pr.

@geekquad Done!


TypeError: add_code_sample_docstrings() got an unexpected keyword argument "tokenizer_class"

Hello, when run this code, I found a problem in "xbert.py", TypeError: add_code_sample_docstrings() got an unexpected keyword argument "tokenizer_class", could you please tell me why?

可能是transformer版本太高，试试降低一下版本

It is most likely due to a transformer version mismatch

Solution:
pip install transformers==4.8.1

Replacing tokenizer_class with processor_class within models/xbert.py works for me.


CSUB-1100: Experiment: skip validatorCycle test scenario

Description of proposed changes

Practical tips for PR review & merge:

[ ] All GitHub Actions report PASS
[ ] Newly added code/functions have unit tests

[ ] Coverage tools report all newly added lines as covered
[ ] The positive scenario is exercised
[ ] Negative scenarios are exercised, e.g. assert on all possible errors
[ ] Assert on events triggered if applicable
[ ] Assert on changes made to storage if applicable

[ ] Modified behavior/functions - try to make sure above test items are covered
[ ] Integration tests are added if applicable/needed

proxy = no - 1 hr - 15-20 min gain
no-funds / not-a-proxy - no change
proxy = yes, all types ~ 57 min - 15-20 min gain

The other longest running scenarios is withdraw-unbonded
PASS src/test/integration-tests/withdraw-unbonded.test.ts (1260.279 s)
  withdraw-unbonded
    when there are NO unlocked funds
      ✓ should error with no unlocked funds message (14583 ms)
    when funds have been unlocked
      ✓ should be able to withdraw (21752 ms)
      ○ skipped should error with account balance too low message
      ○ skipped should error with proxy.NotProxy message
    when partial unbond has been unlocked
      ✓ should be able to withdraw partially unlocked funds (20432 ms)

which could probably be optimized by making a more clever use of promises, as seen in https://github.com/gluwa/creditcoin3/pull/307, and having some of the waiting time be shared between the various test scenarios.


Linked diagrams are lost when migrating from server to cloud

Similar problem with backup/restore, the pageIDs all change.

This is done so moved to Trello Done column


ConnectivityManager$TooManyRequestsException

I'm getting crash sometimes
ConnectivityManager$TooManyRequestsException
when I start for downloading files

i have the same problem

@l132a @iroidzeel Fetch only attaches one Callback listener to the connectivity manager when a fetch instance is created. The callback is also un-registered after you release the fetch instance.
Looks like the problem occurs when multiple instance of fetch is created and not released correctly.
How many instances of Fetch are you creating in your application? Most of the time, 1 shared instance of Fetch is sufficient.

@jpvs0101 A new version of Fetch 3.0.12 & AndroidX version 3.1.6 has been released

Occasionally I still see this "ConnectivityManager$TooManyRequestsException" exception in Crashlytics, but it happens very rarely...  for like 40k installs, 6 crash events affecting 5 users.
I tried to investigate it but I cannot find the root problem...


Some issue with Rank

There is really a lot of very useful material in this project - thanks.
This is a very minor (non)issue - PBN2.1 says "The import format is rather flexible and is used to describe data that may have been prepared by hand." That I suppose covers the deal format I was reading in
[Deal "S:SA7.H864.DQJT73.CAKQ SQ2.H952.D62.CJT9742 SKT853.HT3.D954.C653 SJ964.HAKQJ7.DAK8.C8"]
where the suits are redundant.  Not surprisingly
@staticmethod
def find(value: str) -> 'Rank':
return Rank[f"R{value.upper()}"]
returns "RS"
Just FYI.

Hiya,
I've not seen seen PBN written like that before, and it's not mentioned in 3.4.11 as a possibility but no doubt if you've come across it then it will exist in other places in the wild...
In any case should be an easy fix and there are a couple more things in the PBN parser which are on my todo list anyway so its a good excuse for me to go and do some tinkering.
Dom

Thanks for the response Dom.  Everything exists in the wild but I had an easy fix by globally replacing the suits.
I've just come across a real issue where Spade voids don't get parsed correctly. C, D, H are OK in the following:

[Deal "S:AKQ6.T753.AJ7.Q2 JT52.Q9864.KT43.. 9873.J2.Q8.KJ843 4.AK.9652.AT9765"]
[Deal "S:K643.Q8.KQJ.A872 AQJ8.K654.A752.K T.JT7.T98643.Q63 9752.A932..JT954"]
[Deal "S:Q62.AK7.K97.QJ84 83.QJ942.642.K63 54.T8653.AJT53.2 AKJT97..Q8.AT975"]
[Deal "S:A2.KJ7.QJ643.A85 Q43.AT83.AK952.T KJT98765.2.8.J43 ..Q9654.T7.KQ9762"]
but S throws an index error.
And later in the file I noticed a case where parsing might possibly be even trickier.
[Deal "S:AK65.986.QT2.AQJ QT72.J2.764.T865 J9843.KT543.AJ9.. ..AQ7.K853.K97432"]

I'll investigate whats going on there!

Hiya,
In this case it looks like the problem is hands containing more than three periods, so e.g. in the last one which throws the error the last hand is ..AQ7.K853.K97432, so it assigns a void to both spades and hearts, which it splits into five different suit holdings the last of which gets assigned to the non-existent fifth suit causing the index error. The hand just before, J9843.KT543.AJ9.., also contains four periods but as in this instance the final one is a void it never actually attempts to assign anything for this suit so it doesn't complain.
I can add code to catch this, but I think the correct behaviour should be to emit an error message that the hand contains more than four suits rather than silently try and 'fix' the pbn as it is too ambiguous.

Thanks Dom.  That's it OK and I agree with your error message.
In this case, the wild is me :-(  I wrote a Lua program for Piotr Beling's bdeal system.  Should be straightforward to fix it.

Closing, this was fixed a while ago but I forgot to follow up on this thread.


Library name change request

Library repository URL
https://github.com/sam-peach/Adafruit_SSD1306_EMULATOR

Hi @sam-peach. The library has not yet been added to the Arduino Library Manager index, so no renaming operation will be necessary.
I see you are now in progress of adding the library: https://github.com/arduino/library-registry/pull/1777
Regards, Per


Feature request: Enable anchor links for specific line numbers/offsets

Since events are already considered discrete (i.e. right-click + "show event"), perhaps it's easy to enable linking to specific lines, line ranges or offsets? Something like "http://<...>/mylogfile.log#L57-60", similar to GitHub?

You can select a line then click Menu -> "Permanent Link to the current position". When somebody opens this link, he will see exactly the same view including selected line, filters, etc..
I'll add the same action to the context menu.

That's a stateful thing though, I was thinking something usable for bootstrapping the viewer's initial state (e.g. instead of start at line=-100, start at line 47. Or with byte offset, if that's what's available).

... especially since there's no guarantee the log viewer itself will have any access to writable persistent storage, as is the case in my K8s-based setup.

Make sense

Strongly need that feature. I have app that builds graph from log and want to give user ability to navigate to log line that is affiliated with certain node. I wanted to do that by inserting link to runing log-viewer server with line number into node property. I am very upset that cannot make that.

Fixed in 1.0.8

When you select a log record, a suffix like #p12345 will be added to the URL. 12345 is the offset of the selected line in the log. If more than one log file is opened on the page, the suffix will be #1a2b3c4d-p12345, where 1a2b3c4d is ID of the log file, 12345 is the offset of the selected line.
https://github.com/sevdokimov/log-viewer/assets/669696/32b1e674-d598-4e4d-8619-5f585eded974


Fix/check mem usage

Checking if mem usage is available in the current environment. Some processes may have undefined in this argument

Is this different from https://github.com/sindresorhus/tasklist/issues/9?


[Docs]: First party support for Mistral AI

📘 Current State of Documentation
Currently their docs have a section on integration with AgentOps using CamelAI.
But there is no section explaining first party support.
📖 Suggested Improvement
We need to add another section to this page showcasing an example using first party support of the mistralai python package.
Link to repo to open a PR -
https://github.com/mistralai/platform-docs-public/blob/main/docs/guides/observability.md
🔗 Affected Documentation Pages
https://docs.mistral.ai/guides/observability/#integration-with-agentops
🔍 Additional Context
No response
🤝 Contribution

[ ] Yes, I'd be happy to submit a pull request with these changes.
[ ] I need some guidance on how to contribute.
[ ] I'd prefer the Agentops team to handle this update.

Same as #543


Report an helpful error message when trying to build a WebExtension using jpm

This PR is related to mozilla-jetpack/jpm#540 (which should prevent future regressions similar to the issue mozilla-jetpack/jpm#539)

@kumar303 can you take a look at this PR?

I think this will be useful, thanks


Loop support - slight bursts, maybe still not aligned etc?

DereTore.Applications <IP_ADDRESS>
I can see small gaps between joined looping audio clips, if the waveform is sufficiently magnified.
https://github.com/Nyagamon/HCADecoder produced a file with seemingly incorrect length - however I can't find such gap.

I see mysterious muteHeader and muteFooter in Nyagamon's HCADecoder - maybe it's related?

Now I think it's just off-by-one error on loop ending block index. The ending block index should be simply excluded. However I haven't done any thorough testing (and I actually have no idea how to test it thoroughly).


ISPN-13898 Create tombstone CacheEntry

new tombstone internal cache entry
entry publisher can publish tombstone (off by default)
key publisher does not publish tombstones if it can (it is impossible to
filter it in some store without having to load everything)

https://issues.redhat.com/browse/ISPN-13898

As agreed with @pruivo let's close it for now


Add test for long and complex crd

Another attempt to try to reproduce https://github.com/fluxcd/flux2/issues/4646

@mloiseleur the YAML is invalid
 ServiceAccount \"capa-controller-manager\" is invalid: metadata.annotations: Invalid value: \"${AWS_CONTROLLER_IAM_ROLE/#arn/eks.amazonaws.com/role-arn\": a qualified name must consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')

Please remove all things from the YAML file which are not CRDs


[stable/prometheus-cloudwatch-exporter] Update cloudwatch-exporter version.

Update version
https://github.com/prometheus/cloudwatch_exporter/releases/tag/cloudwatch_exporter-0.6.0

Is this a new chart

NOTE: We're experiencing a high volume of PRs to this repo and reviews will be delayed. Please host your own chart repository and submit your repository to the Helm Hub instead of this repo to make them discoverable to the community. Here is how to submit new chart repositories to the Helm Hub.

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

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/assign @torstenwalter

/ok-to-test

@asherf
If this PR passed, would you mind to volunteer to be one of the OWNER as replacement to @gianrubio ? It seems @gianrubio lost interest in maintaining helm chart. See:
https://github.com/helm/charts/issues/13867

@zanhsieh I am happy to do it.
https://github.com/helm/charts/issues/13867#issuecomment-543385179

/lgtm

/approve

@torstenwalter friendly ping :-)

/lgtm


add changes to test

Pipelines as Code CISAVITA/news-demo-pull-request has failed.PipelineRun has no taskruns

Pipelines as Code CI/news-demo-pull-request has failed.PipelineRun has no taskruns

Pipelines as Code CI/news-demo-pull-request has failed.PipelineRun has no taskruns


Adjusting filter on camera

Currently the color we get from the camera is orange.
Acceptance criteria

[x] The color of from the camera feed will show a green enviroment and not a orange one.

Done!


Fix URL in gnucash Cask

The prior URL resulted in downloading the HTML rather than the dmg.

Thank you for the contribution. It was merged directly as 223e86de9a8076e5f588706111cb4d39b1d18189 to keep commit history cleaner. Your contribution is still credited to you.


Validate OIDC client making the request

During the /login flow, need to ensure the relying party wallet has been registered.

Validation algorithm should take into account that the RP's client_id is known and authorized to make this request.


Unique Constraint Issue.

It's not possible to detect unique_constraint validation and give a nice error.
I see in the code that we check for valid? before doing insert or update.
And I see that when we do insert or update we presume that it's always success.
Probably by doing we miss the case when people has a unique_index and unqiue_constraint validation on the model.
In web/controllers/admin_controller.ex
if changeset.valid? do
          resource = ExAdmin.Repo.insert(changeset)
          put_flash(conn, :notice, "#{base_name model} was successfully created.")
          |> redirect(to: get_route_path(resource, :show, Schema.get_id(resource)))
        else
          conn = put_flash(conn, :inline_error, changeset.errors)
          contents = do_form_view model, conn, changeset.changeset.data, params
          conn |> render("admin.html", html: contents, resource: resource, filters: nil, defn: defn)
        end

In lib/ex_admin/repo.ex
def insert(%ExAdmin.Changeset{} = changeset) do
    {:ok, resource} = repo.insert changeset.changeset

    case ExAdmin.Schema.primary_key(resource) do
      nil -> resource
      key ->
        resource = repo.get(resource.__struct__, Map.get(resource, key))

        for {cs, fun} <- changeset.dependents do
          if cs do
            fun.(resource, repo.insert!(cs))
          else
            fun.(resource)
          end
        end
        resource
    end
  end

I think we might need to adapt the code so that we don't check valid? and we just do insert or update and handle the errors if they arose from there.

Yes, changeset validation appears to be broken.

Constraint errors don't get recoginized until the Repo action is called. Changed the logic in the controller to handle the error correctly. Also add code to merge the constraint failures into errors for proper display of the errors.


space.com rss feed failure

My space.com feed began failing a few days ago.
http://www.space.com/home/feed/site.xml
Checking the console, I see a 301 temporary re-direct to http://m.space.com/home/feed/site.xml.
That site returns a 302 re-direct back to http://www.space.com/home/feed/site.xml
The console shows about 2.5 flip-flops before stopping.
Somehow Firefox 40 seems to get past it and shows the http://www.space.com/home/feed/site.xml correctly.

They seems to do the redirection based on the user agent. If you change the Miniflux user agent with the one of Firefox that works. It's probably a bug on their side because that redirect in loop between their mobile and desktop website.

Is there a preference setting to change the miniflux user agent string? I am not seeing it on the preference pages. Or does one have to hack the code?
Regardless I'll try to submit a bug report to space.com

There is no settings option yet, you have to change manually the constant here: https://github.com/miniflux/miniflux/blob/master/models/config.php#L13

I sent space.com a request to fix their feed. Not sure it will get anywhere as the only "contact us" link goes to "purch.com" that support multiple e-magazine web sites and seems more interested in selling me content or advertising space.
Would a per-feed, custom, user agent string preference be a good enhancement?

Well I do not know if it was my request to space.com, but their feed just started working is again with miniflux.


Integrate OCRing where needed

I'm not sure the best path for detection of reports that need OCRing (perhaps through a flag set by the scraper), but we should have tesseract for OCRing of some reports.
I'm motivated by this report by the FBI, where only the cover sheet has text. The FBI, at least, has a clear practice of image-izing redacted documents:
http://www.justice.gov/oig/reports/2014/s140827.pdf
It's a great report, and has been getting news coverage. I did some very brief experimentation with OCR parameters for another project, and the 300dpi 8 bit approach seemed good enough to me.

As seen in 18F's blog today, 18F/doc_processing_toolkit handles both text extraction and OCRing. This could work for our purposes, though we should make it configurable, for those who don't want to set up Apache Tika and the like.

Case in point: https://www.si.edu/Content/OIG/Misc/FY16_CSA.pdf has two accessible words in it, "Appendix A".


fix(card-in-card): ensure that the card image is clickable

Related Ticket(s)
https://github.com/carbon-design-system/carbon-for-ibm-dotcom/issues/8300
Description

This PR addresses the issue where the card image within the <dds-card-in-card> is not clickable.
See the issue for more detail - https://github.com/carbon-design-system/carbon-for-ibm-dotcom/issues/8300

Changelog
New

Add a new variable declaration for checking for <dds-card-in-card-image> that's wrapped under <dds-video-cta-container>.

@IgnacioBecerra Thanks for the review! I added a commit that should address your feedback. Let me know if you need anything else.


MaxResourceVariance clarification

From the commentary provided in .aic it seems like you wasn't sure what MaxResourceVariance  really does. I've done some testing. It looks like this is equivalent of MaxEquipment used for equipment that is not set in BlacksmithSetting, FletcherSetting and PoleturnerSetting.
Example: Sherif produces maces, crossbows and pikes. So when he gets into possesion of some swords, bows or spears he sells them as soon as they pass MaxResourceVariance as opposed to MaxEquipment used for other weapons.
TL;DR: in AI Personality:
MaxEquipment  - Applies to weapons and armour produced by AI
MaxResourceVariance  - Applies to weapons and armour which are not produced by AI

Thnx alot

My friend, you touched on an important topic. Indeed, the Bot changes everything that he does not need ... he immediately sells everything that was not mortgaged from him by the creator. In addition to gold))). When I first played, I suffered greatly from this. You help the Snake, throw maces and he sells them. Is he a fool? But no ... just conceived. But it would be very cool if the AI could hire soldiers who are not provided for it. BUT under two conditions

This is done by a live player (this is done artificially)
To hire swordsmen, arbalester, macemen, pikemen, it is necessary to send both weapons and armor.

Дружище ты затронул важную тему. Да и правда Бот меняет всё то, что ему не нужно...он продаёт сразу всё что не заложено у него создателем. Кроме золота ))). Я поначалу когда играл сильно страдал от этого. Ты помогаешь Змее, кидаешь булавы а он их продаёт. Дурак что-ли? А нет...просто так задумано. Но было бы очень здорово если бы ИИ мог нанимать солдат тех которые у него не предусмотрены. НО при двух условиях

Это делается живым игроком (это делается искусственно)
Для найма мечников, арбалетчиков, булавщиков, пикинёров необходимо отправить и оружие и доспехи.

Uhm, what?
MaxResourceVariance functions just as is written in the comment.
The AI checks its stone for example. If MaxStones is set to let's say 50 and MaxResourceVariance is set to 4, then the AI will only start selling stone above the value 54, but back to 50 and not 54.
Same for equipment. If the MaxEquipment is set to 5 and MaxResourceVariance to 4 again, then the AI will only start selling stuff above 9 and back to 5. (Although I noticed the AI sometimes not selling equipment).
The Sheriff is selling swords because Swords are listed on his list of goods he immediately sells.
So you are wrong.


Create Bootstrap Wells

Challenge Create Bootstrap Wells has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/602.3.12 (KHTML, like Gecko) Version/10.0.2 Safari/602.3.12.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

jQuery Playground

@ejang Thank you for reporting this issue. Your code is incorrect.

Nest one div element with the class well within each of your col-xs-6 div elements.

This is a standard message notifying you that this issue seems to be a request for help. Instead of asking for help here, please click the "help" button on the challenge on Free Code Camp, which will take you to the help chatroom for that specific challenge. You can also view our full list of official chatrooms.
If you think I'm wrong in closing this issue, please reopen it and add further clarification. Thank you, and happy coding!

yes, I need

@ejang you are missing this part

jQuery Playground

****

**

**

@bartzet
Please do not post your solution on here. This GitHub Issues are for reporting bugs on the website only.
Happy Coding!


[Code Addition Request]: Add gem cruncher game

Have you completed your first issue?

[X] I have completed my first issue

Guidelines

[X] I have read the guidelines
[X] I have the link to my latest merged PR

Latest Merged PR Link
Add gem cruncher game similar to that candy crush
Project Description
Assign this to me under gssoc ext and hacktoberfest
Full Name
Aditi
Participant Role
Contributor

@UTSAVS26 Can you assign this to me ?

@Aditijainnn please fill proper details what all is asked nothing else, I am closing this issue .
@Keshabkjha don't comment on any open issue until it is label as Up for Grabs, you can raise a new issue.


Device Offset (Through Self-Regulation) Should Always be Applied

Firstly, I'm making a new issue for this because it is largely unrelated to the other issues I am commenting on. This change is a very simple change. I'm using VTherm with some AC/HVAC units in Cooling mode. They have an issue where their internal temperature is very inaccurate in both heating and cooling modes. The current version of VTherm stops using the device temperature in offset calculations if the target temperature is reached. This prevents my HVAC from turning off the compressor (it still blows cold air).
Here is a quick example:
The target temperature is 20 C. The external temperature sensor is reading 22 C. The HVAC internal temperature is reading 24 C. The HVAC would be set to some value under 24 C (let's say 22 C). This is a very basic calculation, but leaving the regulation algorithm aside, this makes sense: 24-22= 2 C offset. Underlying target temperature should be set to 20, but the offset adds 2, the final target temperature on the underlying unit is 22 C. Now, let's consider that the external temperature is reading 19.9 C (some value under the target of 20 C). For simplicity, let's assume the HVAC internal temperature is still reading 24 C. The calculated offset would be 4.1 C, but this wouldn't be applied due to the following lines in the code:
https://github.com/jmcollin78/versatile_thermostat/blob/2fd60074c7c0c2b483f7e2af3134d2b82dfd3cec/custom_components/versatile_thermostat/thermostat_climate.py#L204-L223
This code makes it so that the offset is not used if the current temperature is less than the target temperature. This results in the underlying entity not having the offset applied, and will result in a smaller target being applied to the underlying entity (the 4.1 C offset is no longer added). This effectively turns the AC back on when it reaches under the VTherm target temperature. The solution is simple, just remove the condition that prevents offsets from being applied if the target is reached. The commit on my fork does this (I can make a PR, but I am waiting for the PR on #240 to be approved).
mag2352/versatile_thermostat@7456a41e4970be9349e664014839b7ca622e04b6
To put the preview here, it looks like this after this simple change:
            offset_temp = 0
            device_temp = 0
            if (
                # regulation can use the device_temp
                self.auto_regulation_use_device_temp
                # and we have access to the device temp
                and (device_temp := self._hass.states.get(under._entity_id).attributes.get("current_temperature")) is not None
            ):
                offset_temp = device_temp - self.current_temperature

Hello, I will have a look more closely. I'm not sure of your asumption.

Sounds good. There is no rush on this, as I have this on my branch and it seems to work fine. If this causes issues, I can just use my  fork for now. I just find it strange to use the offset setting in the configuration, and then have the VTherm stop using the offset once the target temperature is reached. In my case, this causes my HVAC to turn back on when the offset is no longer being used. It would make the most sense to me to always use the offset calculation.

I read Tru the code and agree with @mag2352,
The offset should always been applied. The moment an external temperature meter AND the corresponding internal Temperature meter are accesbile and return a temperate.....an offset applies. No matter if the state is in cooling or hearing mode. And no conditions. Offset applies always.

Same as #535

https://github.com/jmcollin78/versatile_thermostat/releases/tag/6.4.1.beta1
If someone can give it a try, i will put it in the next release. Thank you in advance

Tested and working.

Like wise.  Working in both directions now. Great!
On Wed, Oct 16, 2024, 21:18 tttopuz @.***> wrote:

Tested and working.
—
Reply to this email directly, view it on GitHub
https://github.com/jmcollin78/versatile_thermostat/issues/467#issuecomment-2417745608,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABZ4APMNJFJD7NSCF4QKMDTZ323XTAVCNFSM6AAAAABIRJOHQCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJXG42DKNRQHA
.
You are receiving this because you commented.Message ID:
@.***>


”Popești”, ”Curtea”, ”Dăești”, ”Firijba” are listed in the drop-down menu

Description:
When user writes ”Popești”, ”Curtea”, ”Dăești”, ”Firijba” the locations appear in the drop-down menu next to the comune and the county which is a part according to the law.
Precondition:
The website is up an running.

Step 1
Write in the search bar "Popești"

Expected results
The location appears in the drop-down menu as "Sat Popești, VÂLCEA (Popești)".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Write in the search bar "Curtea"

Expected results
The location appears in the drop-down menu as "Sat Curtea, VÂLCEA (Popești)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Write in the search bar "Dăești"

Expected results
The location appears in the drop-down menu as "Sat Dăești, VÂLCEA (Popești)".

Step 6
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 7
Write in the search bar "Firijba"

Expected results
The location appears in the drop-down menu as "Sat Firijba, VÂLCEA (Popești)".


Add Swift Package Manager Support

You will need to cut a new semantic version release tag for SPM to be able to pick up this package.
Also, I put a dummy version number in the SPM installation section of the readme for the time being. That will need to be updated as well when a new release tag is created.

Thanks for the push/example, I've done a smaller version of this change in the PR linked above.

Oh awesome I didn't see that.


Can't start Forged Aliance (X1CA) Coop games on Linux

Describe the bug
Whenever I try to start a Coop game for any of the six Forged Alliance maps, I crash once the map is loaded, just before the game becomes visible. This only happens with the FA maps though, and not with the vanilla game maps.
To Reproduce
Steps to reproduce the behavior:

Platform

Fedora Linux 34
Proton 6.3-5

Start the client
Select 'Black Day' for Co-op
Start FAF
Ready and Start
Crash

Log or error message
This is my log file:

client.log

Wild Man Guessing
My first bet, is that it's something path-names related, possibly with case sensitivity. One minor observation for example is the missing minimap when loading 'Black Day', which is likely because the resource can't be found.

Does this folder exist? %USER_PROFILE%/.steam/steam/steamapps/common/Supreme Commander Forged Alliance/maps/

If not it might just be a game misconfiguration

Ow damn. Took me some time to see your follow-up question...  I previously did this to tie the existing maps together

I'd like to add something - I encountered the same issue and managed to resolve it completely by having all FA campaign maps both in the 'maps' directory specified in client (in my case /home/username/faf/maps_and_mods/maps) and in the one in the installation folder (/home/username/.steam/debian-installation/steamapps/common/Supreme Commander Forged Alliance/maps), which isn't a symlink but a real folder with X1CA_00# and x1ca_coop_00#.v##### folders.
What's also notable is that I can't watch some of the coop replays (game opens an error window with "unable to load replay from /home/username/.faforever/cache/temp.scfareplay").

@GestaltEngine do you mean you copied all maps from /home/username/.steam/debian-installation/steamapps/common/Supreme Commander Forged Alliance/maps to /home/username/faf/maps_and_mods/maps? I tried that, and while there are no more errors in the client log, I still can't launch coop campaign maps.


[BUG] fix nightly is timing out

Signed-off-by: Peixin Li<EMAIL_ADDRESS>fix #811
also reporting issue should have been fixed within #805

build

looks fine to me, same question as Jason

Looks good to me, just had a question on why we moved the start time five hours rather than only increasing the timeout.

Previously spark-nightly pipelines share nearly the same time slots (started at 6 PDT) as the rapids nightly, as NGCC only have 4 GPU nodes which could fail to schedule rapids-nightly-triggered integration tests, so that's why we were seeing timeout for rapids nightly and integrations tests sometimes


Compilation error - Undefined reference

I installed the library using vcpkg and all went correctly.
I'd like to use Visual Studio Code as Editor, but when I build I receive this error:
C:\Users\luca\AppData\Local\Temp\cc74cy7b.o: In function cpr::Response cpr::Get<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)': C:/vcpkg/installed/x64-windows/include/cpr/api.h:39: undefined reference to cpr::Session::Session()'
C:/vcpkg/installed/x64-windows/include/cpr/api.h:41: undefined reference to cpr::Session::Get()' C:/vcpkg/installed/x64-windows/include/cpr/api.h:39: undefined reference to cpr::Session::~Session()'
C:/vcpkg/installed/x64-windows/include/cpr/api.h:39: undefined reference to cpr::Session::~Session()' C:\Users\luca\AppData\Local\Temp\cc74cy7b.o: In function void cpr::priv::set_option<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >(cpr::Session&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >&&)':
C:/vcpkg/installed/x64-windows/include/cpr/api.h:25: undefined reference to `cpr::Session::SetOption(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'
collect2.exe: error: ld returned 1 exit status
The terminal process terminated with exit code: 1
I added these two lines in the tasks.json file to make it work but it seems that there's something that I'm missing:
"-I", "C:\\vcpkg\\installed\\x64-windows\\include",  "-L", "C:\\vcpkg\\installed\\x64-windows\\lib -l cpr -l libcurl -l zlib"
The compiler I'm currently using is g++.
Thanks in advance for your help

Undefined reference is a linker error, the linker can't find the libraries to link to your executable.
You need to tell it where (it|they) (is|are).

Please have a look at the documentation for how to link against vcpkg libraries without CMake:
https://github.com/microsoft/vcpkg/blob/master/docs/users/integration.md


what is the input format for ligand only

Hi, I tried to use libmolgrid to make only ligands (ligonly.types in data folder) (no binding protein) into grid. But one error happened:
File "test_torch_cnn.py", line 52, in test_train_torch_cnn
e.populate(fname)
ValueError: Example has no label at position 0.  There are only 0 labels
Very appreciate if you could help provide some clues or some tutorials about the input format for ligand only. Thanks!

That error occurs if you are trying to balance your dataset but don't have a label set.  It is impossible to create batches with balanced distributions of labels if there is no label.  Either provide a label or disable balancing.

That error occurs if you are trying to balance your dataset but don't have a label set. It is impossible to create batches with balanced distributions of labels if there is no label. Either provide a label or disable balancing.

Thank you so much, Prof Koes. The problem was solved by setting balancing=False.


Dart JIT code performs so much better than Dart exe code for these regex programs

stackoverflow suggested I re-post here.
Similar to https://github.com/dart-lang/sdk/issues/39260 & https://github.com/dart-lang/sdk/issues/37774
regex-redux #2
exe 20.05 secs
jit 6.70 secs
regex-redux #3
exe 12.09 secs
jit 5.11 secs
regex-redux #4
exe 17.76 secs
jit 5.53 secs
regex-redux #5
exe 12.18 secs
jit 4.11 secs
dart compile exe programs.
dart run programs.

I believe the root issue for this is #37785. Let's continue the discussion there.

@igouy can you kindly post your numbers there?


Never ending mapping - large MongoDB collections

System information:

OS: Windows 10 64bit Pro.
DBeaver version: 7.0.0 Enterprise

Connection specification:

Database: MongoDB 3.2.11
Driver: MongoDB
Standard login using SCRAM-SHA-1

Describe the problem you're observing:
Opening any "big" collection causes the background task to begin a map job of sorts, see screenshot for details.
The job never completes (Waited 10 minutes).

It is unknown to me if cancelling a jobs works, the text states that it is, but again never completes.

Steps to reproduce, if exist:
Connect to db using described settings in top of this ticket.
Double click a collection on over 1 Gig
Include any warning/errors/backtraces from the logs
20200519.log

Adding some severity to this issue.
Our Server had a hard time processing whatever it was processing during this mapping.
I think its fair to say we "need" to be able to turn off this logic/process step.

Agreed. We will disable attributes read in MongoDB. It is too "aggressive" in huge collections.

I'm willing to help test the fix if you like, I use MongoDB on a daily basis towards several different machines of different sizes and OS type.
I will need to renew my Trial through, we're going to buy two copies of enterprise once we can rely on Dbeaver

@christopher-bonitz EE release is available https://dbeaver.com/download/. Could you please check the fix?
Thank you in advance!

Sorry, no can do.

If you can get me a new trial period I am happy to help

In case you are able, you may renew me for a few weeks, here are my License ID:
DB-3V1MPZB1-Z251

@christopher-bonitz please try again. If it won't work please write me on<EMAIL_ADDRESS>

After getting my application up and running again, I can confirm the fixes seem to be working as intended.
I've tried this on a 71 GB collection, CPU usage on server confirms there is no longer a problem.
Thanks a lot!


"Exception: charmap codec can t decode byte 0x81 in position 440: character maps to "

Describe the bug
All detection watches I make change to red text with "Exception: charmap codec can t decode byte 0x81 in position 440: character maps to " below their title once they check. I've made them for multiple sites including eBay and they all do this.
Version
Latest - 0.45.26
To Reproduce
Steps to reproduce the behavior:

Install changedetection.io
Add a change detection watch
Wait for it to check the website and observe the error

Example URLs:
https://www.ebay.com/sch/i.html?_from=R40&_nkw=nintendo+switch+lite&_sacat=0&_udlo=889&_odkw=nintendo+switch+lite&_osacat=0&_sop=10
https://dallas.craigslist.org/search/sss?query=laptop#search=1~gallery~0~0
Desktop (please complete the following information):

Windows 10 HP Pavillion Laptop

Additional context
I'm sorry if I'm just reporting something benign, but I worry that it could be making the check not work or causing other issues.

Similar issue here. The new version fails for every URL for me. The error message is slightly different though. It says:
gbk' codec can't decode byte 0x8c in position 2900: illegal multibyte sequence

My environment:
OS: Windows 11 x64
Installation: pip install changedetection.io
Detailed log (URL redacted)
2024-07-11 17:12:27.938 | INFO     | changedetectionio.update_worker:run:255 - Processing watch UUID dd17e2da-ab10-4868-9128-74c44f1d9571 Priority<PHONE_NUMBER> URL https://1
2024-07-11 17:12:27.938 | INFO     | changedetectionio.update_worker:run:255 - Processing watch UUID ff696b8a-2c49-4003-8f97-d416d87d94de Priority<PHONE_NUMBER> URL https://2
2024-07-11 17:12:27.938 | INFO     | changedetectionio.update_worker:run:255 - Processing watch UUID e48eaabf-fc04-4b42-8e8f-da7d60bf7e79 Priority<PHONE_NUMBER> URL https://3
2024-07-11 17:12:27.938 | INFO     | changedetectionio.update_worker:run:255 - Processing watch UUID 47396e9b-1773-4c53-ba96-fc971a29ad9a Priority<PHONE_NUMBER> URL https://4
2024-07-11 17:12:27.938 | INFO     | changedetectionio.update_worker:run:255 - Processing watch UUID 9eefea13-9966-45fa-b60f-136af0170359 Priority<PHONE_NUMBER> URL https://5
2024-07-11 17:12:27.938 | INFO     | changedetectionio.update_worker:run:255 - Processing watch UUID 11f7ae73-53ac-4cdf-9ad3-67406c2b721e Priority<PHONE_NUMBER> URL https://6
2024-07-11 17:12:27.938 | INFO     | changedetectionio.update_worker:run:255 - Processing watch UUID 68950add-0527-482a-8840-6f8d5b54fa3b Priority<PHONE_NUMBER> URL https://7
2024-07-11 17:12:27.938 | INFO     | changedetectionio.update_worker:run:255 - Processing watch UUID 8252c3b7-f659-4488-8609-743bea2d1eaf Priority<PHONE_NUMBER> URL https://8
2024-07-11 17:12:27.938 | INFO     | changedetectionio.update_worker:run:255 - Processing watch UUID 1b5debb2-cde4-4b00-b129-42a4380330bc Priority<PHONE_NUMBER> URL https://9
2024-07-11 17:12:27.938 | INFO     | changedetectionio.update_worker:run:255 - Processing watch UUID 3690b4bd-d8b5-430b-bb3d-34a2a9aaf38e Priority<PHONE_NUMBER> URL https://10
2024-07-11 17:12:27.938 | ERROR    | changedetectionio.update_worker:run:476 - Exception reached processing watch UUID: dd17e2da-ab10-4868-9128-74c44f1d9571
2024-07-11 17:12:27.938 | ERROR    | changedetectionio.update_worker:run:476 - Exception reached processing watch UUID: ff696b8a-2c49-4003-8f97-d416d87d94de
2024-07-11 17:12:27.938 | ERROR    | changedetectionio.update_worker:run:476 - Exception reached processing watch UUID: 9eefea13-9966-45fa-b60f-136af0170359
2024-07-11 17:12:27.938 | ERROR    | changedetectionio.update_worker:run:476 - Exception reached processing watch UUID: e48eaabf-fc04-4b42-8e8f-da7d60bf7e79
2024-07-11 17:12:27.938 | ERROR    | changedetectionio.update_worker:run:476 - Exception reached processing watch UUID: 47396e9b-1773-4c53-ba96-fc971a29ad9a
2024-07-11 17:12:27.955 | ERROR    | changedetectionio.update_worker:run:476 - Exception reached processing watch UUID: 11f7ae73-53ac-4cdf-9ad3-67406c2b721e
2024-07-11 17:12:27.955 | ERROR    | changedetectionio.update_worker:run:476 - Exception reached processing watch UUID: 68950add-0527-482a-8840-6f8d5b54fa3b
2024-07-11 17:12:27.955 | ERROR    | changedetectionio.update_worker:run:477 - 'gbk' codec can't decode byte 0x8c in position 2900: illegal multibyte sequence
2024-07-11 17:12:27.955 | DEBUG    | changedetectionio.update_worker:run:569 - Watch dd17e2da-ab10-4868-9128-74c44f1d9571 done in 0.02s
2024-07-11 17:12:27.955 | ERROR    | changedetectionio.update_worker:run:476 - Exception reached processing watch UUID: 8252c3b7-f659-4488-8609-743bea2d1eaf
2024-07-11 17:12:27.955 | ERROR    | changedetectionio.update_worker:run:477 - 'gbk' codec can't decode byte 0x8c in position 2900: illegal multibyte sequence
2024-07-11 17:12:27.955 | DEBUG    | changedetectionio.update_worker:run:569 - Watch ff696b8a-2c49-4003-8f97-d416d87d94de done in 0.02s
2024-07-11 17:12:27.955 | ERROR    | changedetectionio.update_worker:run:476 - Exception reached processing watch UUID: 3690b4bd-d8b5-430b-bb3d-34a2a9aaf38e
2024-07-11 17:12:27.955 | ERROR    | changedetectionio.update_worker:run:476 - Exception reached processing watch UUID: 1b5debb2-cde4-4b00-b129-42a4380330bc
2024-07-11 17:12:27.955 | ERROR    | changedetectionio.update_worker:run:477 - 'gbk' codec can't decode byte 0x8c in position 2900: illegal multibyte sequence
2024-07-11 17:12:27.955 | DEBUG    | changedetectionio.update_worker:run:569 - Watch 9eefea13-9966-45fa-b60f-136af0170359 done in 0.02s
2024-07-11 17:12:27.955 | ERROR    | changedetectionio.update_worker:run:477 - 'gbk' codec can't decode byte 0x8c in position 2900: illegal multibyte sequence
2024-07-11 17:12:27.955 | DEBUG    | changedetectionio.update_worker:run:569 - Watch e48eaabf-fc04-4b42-8e8f-da7d60bf7e79 done in 0.02s
2024-07-11 17:12:27.955 | ERROR    | changedetectionio.update_worker:run:477 - 'gbk' codec can't decode byte 0x8c in position 2900: illegal multibyte sequence
2024-07-11 17:12:27.955 | DEBUG    | changedetectionio.update_worker:run:569 - Watch 47396e9b-1773-4c53-ba96-fc971a29ad9a done in 0.02s
2024-07-11 17:12:27.955 | ERROR    | changedetectionio.update_worker:run:477 - 'gbk' codec can't decode byte 0x8c in position 2900: illegal multibyte sequence
2024-07-11 17:12:27.955 | DEBUG    | changedetectionio.update_worker:run:569 - Watch 11f7ae73-53ac-4cdf-9ad3-67406c2b721e done in 0.02s
2024-07-11 17:12:27.955 | ERROR    | changedetectionio.update_worker:run:477 - 'gbk' codec can't decode byte 0x8c in position 2900: illegal multibyte sequence
2024-07-11 17:12:27.955 | DEBUG    | changedetectionio.update_worker:run:569 - Watch 68950add-0527-482a-8840-6f8d5b54fa3b done in 0.02s
2024-07-11 17:12:27.955 | ERROR    | changedetectionio.update_worker:run:477 - 'gbk' codec can't decode byte 0x8c in position 2900: illegal multibyte sequence
2024-07-11 17:12:27.955 | DEBUG    | changedetectionio.update_worker:run:569 - Watch 8252c3b7-f659-4488-8609-743bea2d1eaf done in 0.00s
2024-07-11 17:12:27.955 | ERROR    | changedetectionio.update_worker:run:477 - 'gbk' codec can't decode byte 0x8c in position 2900: illegal multibyte sequence
2024-07-11 17:12:27.955 | DEBUG    | changedetectionio.update_worker:run:569 - Watch 3690b4bd-d8b5-430b-bb3d-34a2a9aaf38e done in 0.00s
2024-07-11 17:12:27.955 | ERROR    | changedetectionio.update_worker:run:477 - 'gbk' codec can't decode byte 0x8c in position 2900: illegal multibyte sequence
2024-07-11 17:12:27.955 | DEBUG    | changedetectionio.update_worker:run:569 - Watch 1b5debb2-cde4-4b00-b129-42a4380330bc done in 0.00s

Hmm both sites worked fine for me, but i'm on linux/docker, so I'm thinking this might be a windows related issue

Similar here:
2024-07-12 16:22:44.552 | ERROR    | changedetectionio.update_worker:run:476 - Exception reached processing watch UUID: 23534ea1-8cc3-4c5e-b8c4-53a54b267585
2024-07-12 16:22:44.553 | ERROR    | changedetectionio.update_worker:run:477 - 'charmap' codec can't decode byte 0x88 in position 438: character maps to
2024-07-12 16:22:44.554 | DEBUG    | changedetectionio.update_worker:run:569 - Watch 23534ea1-8cc3-4c5e-b8c4-53a54b267585 done in 0.04s

@luziol "Similar here:" and care to provide any more information? Mac-OS? rPI? windows 3.11?

Windows 10, python only. No docker.

@luziol "Similar here:" care to provide a URL that you used?

Of course:
2024-07-12 17:36:03.387 | INFO     | changedetectionio.update_worker:run:255 - Processing watch UUID 23534ea1-8cc3-4c5e-b8c4-53a54b267585 Priority 1 URL https://www.freebsd.org/
2024-07-12 17:36:03.392 | ERROR    | changedetectionio.update_worker:run:476 - Exception reached processing watch UUID: 23534ea1-8cc3-4c5e-b8c4-53a54b267585
2024-07-12 17:36:03.393 | ERROR    | changedetectionio.update_worker:run:477 - 'charmap' codec can't decode byte 0x88 in position 438: character maps to
2024-07-12 17:36:03.394 | DEBUG    | changedetectionio.update_worker:run:569 - Watch 23534ea1-8cc3-4c5e-b8c4-53a54b267585 done in 0.01s

Same for me aswell
Exception: 'ascii' codec can't decode byte 0xd8 in position 409: ordinal not in range(128)

@Erwan-loot and windows or?

I have edited my post, sorry
i'm using the docker version

@Erwan-loot and windows or?

I have edited my post, sorry i'm using the docker version You mean the os used for watch change-detection or the os used to host change detection ?

used for hosting, where it runs

@Erwan-loot and windows or?

I have edited my post, sorry i'm using the docker version You mean the os used for watch change-detection or the os used to host change detection ?

used for hosting, where it runs

So yeah my first answer, docker version
here is my docker-compose, normally i use the linuxserver image, i've tested with the original image of course, same result
version: "2.1"
services:
  changedetection:
    #image: ghcr.io/linuxserver/changedetection.io:latest
    image: ghcr.io/dgtlmoon/changedetection.io
    container_name: changedetection
    environment:
      PUID: 1036
      PGID: 100
      TZ: Europe/Paris
      BASE_URL: MYURL
    volumes:
      #- /myvolume/changedetection:/config
      - /myvolume/changedetection:/datastore
    ports:
      - 7756:5000
    restart: unless-stopped
    healthcheck:
      test: wget --no-verbose --tries=3 --spider http://localhost:5000
    security_opt:
      - no-new-privileges=true
    mem_limit: 256m
    ```

This answer helped me (Unraid): https://stackoverflow.com/a/77048834/1464577
docker run
  -d
  --name='changedetection.io'
  --net='bridge'
  -e TZ="America/New_York"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Tower"
  -e HOST_CONTAINERNAME="changedetection.io"
  -e 'BASE_URL'=''
  -e 'PLAYWRIGHT_DRIVER_URL'=''
  **-e 'LC_ALL'='en_US.UTF-8'**
  -e 'PUID'='99'
  -e 'PGID'='100'
  -e 'UMASK'='022'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:5000]'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver-ls-logo.png'
  -p '50931:5000/tcp'
  -v '/mnt/user/appdata/changedetection.io':'/config':'rw' 'lscr.io/linuxserver/changedetection.io'

Although in my case, I only had to add LC_ALL environment variable.

It seems to fix my issue thanks  @jbouwens
here the fix in docker-compose
version: "2.1"
services:
  changedetection:
    image: ghcr.io/linuxserver/changedetection.io:latest
    container_name: changedetection
    environment:
      PUID: 1036
      PGID: 100
      TZ: Europe/Paris
      BASE_URL: MYURL
      LC_ALL: en_US.UTF-8
    volumes:
      - /myvolume/changedetection:/config
    ports:
      - 7756:5000
    restart: unless-stopped
    healthcheck:
      test: wget --no-verbose --tries=3 --spider http://localhost:5000
    security_opt:
      - no-new-privileges=true
    mem_limit: 256m

This answer helped me: https://stackoverflow.com/a/77048834/1464577
docker run
  -d
  --name='changedetection.io'
  --net='bridge'
  -e TZ="America/New_York"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Tower"
  -e HOST_CONTAINERNAME="changedetection.io"
  -e 'BASE_URL'=''
  -e 'PLAYWRIGHT_DRIVER_URL'=''
  -e 'LC_ALL'='en_US.UTF-8'
  -e 'PUID'='99'
  -e 'PGID'='100'
  -e 'UMASK'='022'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:5000]'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver-ls-logo.png'
  -p '50931:5000/tcp'
  -v '/mnt/user/appdata/changedetection.io':'/config':'rw' 'lscr.io/linuxserver/changedetection.io'

Although in my case, I only had to add  -e 'LC_ALL'='en_US.UTF-8' environment variable. (using Unraid)

Also encountered this issue using the Docker version on Unraid OS. This solution works.

I was running into a similar issue on UnRAID 6.12.11 (Linux 6.1.99 Kernel), using Docker. I am, however, using the linuxserver.io container. The error was as follows:
Exception: 'ascii' codec can't decode byte 0xd8 in position 409: ordinal not in range(128)

This was happening on both "basic" HTTP checks and those using Playwright.
I was able to fix it by adding the 'LC_ALL'='en_US.UTF-8' environment variable as discussed above. This fixed it for basic HTTP scrapes, but it kept occurring with Playwright powered alerts. Adding the same environment variable to my browserless container fixed it.
I only started running into this issue after updating to the latest version (0.46.01).  I was previously two or three versions behind, I think (maybe 0.45.26?).
Perhaps this is something that can be "baked in" to the container (since everything is UTF-8 nowadays), or maybe it is a problem on the linuxserver.io side?

I was running into a similar issue on UnRAID 6.12.11 (Linux 6.1.99 Kernel), using Docker. I am, however, using the linuxserver.io container. The error was as follows:
Exception: 'ascii' codec can't decode byte 0xd8 in position 409: ordinal not in range(128)

This was happening on both "basic" HTTP checks and those using Playwright.
I was able to fix it by adding the 'LC_ALL'='en_US.UTF-8' environment variable as discussed above. This fixed it for basic HTTP scrapes, but it kept occurring with Playwright powered alerts. Adding the same environment variable to my browserless container fixed it.
I only started running into this issue after updating to the latest version (0.46.01). I was previously two or three versions behind, I think (maybe 0.45.26?).
Perhaps this is something that can be "baked in" to the container (since everything is UTF-8 nowadays), or maybe it is a problem on the linuxserver.io side?

That’s exactly the same issue I have encountered. I’m running a recently-updated linuxserver.io image on Unraid 6.12.10, but I don’t have Playwright installed. There was no problem when using ChangeDetecion.io 0.45.26.

Same issues on the latest version.
Windows Server 2019 (v1809). Every URL fails, including the built-in https://changedetection.io/CHANGELOG.txt
They all fail with the error Exception: 'charmap' codec can't decode byte 0x81 in position 440: character maps to <undefined>

@dgtlmoon I see you've got commit #2515 indicating that it will close this issue, however it only addresses docker containers. This is affecting bare python/pip installs too.
One thing to note with locales on Windows is that they usually use a hyphen instead of an underscore, so en_US on Linux is en-US on Windows, etc.
On Windows, no docker, changing flask_app.py:90 to specify the locale to be 'en-US.UTF-8' resolves the warning on launch that the locale can't be set
Before:
INFO     | changedetectionio.flask_app:<module>:88 - System locale default is ('en_US', 'cp1252')
WARNING  | changedetectionio.flask_app:<module>:93 - Unable to set locale ('en_US', 'cp1252'), locale is not installed maybe?

After:
INFO     | changedetectionio.flask_app:<module>:88 - System locale default is ('en_US', 'cp1252')
INFO     | changedetectionio.store:__init__:48 - Datastore path is

However, it still fails: ERROR    | changedetectionio.update_worker:run:479 - 'charmap' codec can't decode byte 0x81 in position 440: character maps to <undefined>
I haven't had much time to look, but I had enough time to try that quick change, so I'm not sure if maybe the locale just needs to be set somewhere else / set as an environment variable. But in any case, I hope this helps.

Hi. I just installed changedetection in Windows 10 Pro, no docker, following your instructions.
I also get the same error:
"Exception: 'charmap' codec can't decode byte 0x81 in position 440: character maps to "
In my case, I am running Windows with spanish enconding (Spain), no I am not sure if this has anything to do with the error.
I also get the following message when loading changedetection.py:
2024-08-03 13:05:20.517 | INFO     | changedetectionio.flask_app::88 - System locale default is ('es_ES', 'cp1252')
2024-08-03 13:05:20.550 | WARNING  | changedetectionio.flask_app::92 - Unable to set locale ('es_ES', 'cp1252'), locale is not installed maybe?
Thanks

Same problem, using the changedetection.io docker on Unraid .
Am now using latest versions (app docker 24.05.31 by linuxserver, and changedetection.io v0.46.02)
I have not applied workaround 'LC_ALL'='en_US.UTF-8' since I read (in this issue) the issue remains when using playwright.

I first time installed this project and I am facing the same problem on windows 10. I used the pip install method.

Same problem, installed via pip method on windows 2019 std server, all sites have the red "Exception: 'charmap' codec can't decode byte 0x81 in position 440: character maps to " error

Windows 11 and installed via PIP (no docker) with the same error. v0.46.02
Exception: 'charmap' codec can't decode byte 0x81 in position 440: character maps to <undefined>

Windows 11 and installed via PIP (no docker) with the same error. v0.46.02 Exception: 'charmap' codec can't decode byte 0x81 in position 440: character maps to <undefined>
Adding the encoding="UTF-8" to line 69 in base.py resolved the issue. self.instock_data_js = importlib.resources.files("changedetectionio.content_fetchers.res").joinpath('stock-not-in-stock.js').read_text(encoding="UTF-8")
Additionally, I resolved the Unable to set locale issue by setting default_locale = locale.getdefaultlocale() in flask_app.py

This resolved my issue as well on Windows 11

Hello everyone,
I encountered an issue while deploying this container but was able to resolve it with the help of this and other threads. I wanted to share my experience and solution.
I removed everything unnecessary from my docker-compose.yml file and tested with the configuration below using the default monitored sites.
Operating System: openSUSE Leap 15.6
Docker version: 24.0.7-ce, build 311b9ff0aa93
Docker Compose version: 2.22.0
Error message
On the WebUI:
https://changedetection.io/CHANGELOG.txt
Exception: 'ascii' codec can't decode byte 0xd8 in position 409: ordinal not in range(128)

In the Docker logs:
changeio-webserver-1  | 2024-08-15 12:04:12.402 | ERROR    | changedetectionio.update_worker:run:478 - Exception reached processing watch UUID: 5c0d902d-8988-4bca-b8d1-f4f0478d3e40
changeio-webserver-1  | 2024-08-15 12:04:12.403 | ERROR    | changedetectionio.update_worker:run:479 - 'ascii' codec can't decode byte 0xd8 in position 409: ordinal not in range(128)

Not working:
---
services:
  webserver:
    environment:
      TZ: 'Europe/Berlin'
    image: 'lscr.io/linuxserver/changedetection.io:latest'
    ports:
      - '10190:5000/tcp'
    restart: 'unless-stopped'

Solution 1: Setting 'LC_ALL':
---
services:
  webserver:
    environment:
      LC_ALL: en_US.UTF-8
      TZ: 'Europe/Berlin'
    image: 'lscr.io/linuxserver/changedetection.io:latest'
    ports:
      - '10190:5000/tcp'
    restart: 'unless-stopped'

Solution 2: Rollback:
---
services:
  webserver:
    environment:
      TZ: 'Europe/Berlin'
    image: 'lscr.io/linuxserver/changedetection.io:0.45.26'
    ports:
      - '10190:5000/tcp'
    restart: 'unless-stopped'

I also tried version 0.46.00, but this still gave me the error.
Best Regards
Alex

does this PR which is now in 0.46.03 help ? https://github.com/dgtlmoon/changedetection.io/pull/2574

@dgtlmoon Yes, the issue has been fixed in 0.46.3. Thank you!

@jiangzhenjerry fantastic!
Can anyone else confirm the fix?

Yes, confirmed the latest version resolves the problem for me using it directly on Windows 10 with Python

@dgtlmoon I commented #LC_ALL, pulled the new image, docker-compose down and up and it looks great!
Thanks for the fix :)

Wonderful, closing

Windows 11 and installed via PIP (no docker) with the same error. v0.46.02 Exception: 'charmap' codec can't decode byte 0x81 in position 440: character maps to <undefined>
Adding the encoding="UTF-8" to line 69 in base.py resolved the issue. self.instock_data_js = importlib.resources.files("changedetectionio.content_fetchers.res").joinpath('stock-not-in-stock.js').read_text(encoding="UTF-8")
Additionally, I resolved the Unable to set locale issue by setting default_locale = locale.getdefaultlocale() in flask_app.py

This resolved my issue as well on Windows 11

I pulled the latest version but it had importlib.resources.files("changedetectionio.content_fetchers.res").joinpath('stock-not-in-stock.js').read_text(encoding='UTF-8')`
which did not work on a Windows 2019 server, I had to change the single ' to a double " and it worked

which did not work on a Windows 2019 server, I had to change the single ' to a double " and it worked

that seems very unusual, could it be that the restart when you changed it was the actual fix?

Unfortunately version 0.46.03 did not fix it for me - running linuxserver/changedetection.io:latest on synology docker manager with playwright-chrome aka dgtlmoon/sockpuppetbrowser:latest.
Only LC_ALL did.
Anything I can test?


Connection refused - java.net.ConnectException

Hello ;
Could you please help me with this warn ?
here is the Log file
Thank you.
2015-08-01 23:07:21  INFO: device: 1023, time: Sat Aug 01 23:07:18 EAT 2015, lat: 13.432315, lon: 22.425501666666666
2015-08-01 23:07:21 DEBUG: [21000 <- <IP_ADDRESS>] - HEX: 1a
2015-08-01 23:07:21 DEBUG: [21000 <- <IP_ADDRESS>] - HEX: 1a
2015-08-01 23:07:23 DEBUG: [21000 <- <IP_ADDRESS>] - HEX: 2d313037362d244750524d432c3230303732312e3030302c412c313535362e333539372c4e2c30333233342e353531332c452c302e30332c3232312e39312c3031303831352c2c2c412a36342c257a303030303134303135313830222c3044540d
2015-08-01 23:07:23  WARN: Connection refused - java.net.ConnectException (PlainSocketImpl.java:-2)
2015-08-01 23:07:23  INFO: device: 1076, time: Sat Aug 01 23:07:21 EAT 2015, lat: 15.939328333333334, lon: 32.575855

Are you using reverse geocoding? I guess there is some problem with connecting to geocoding API service. Try to disable it in the config and see if it helps.

Yes that was it
Thank you


Weird data of Experience System

I noticed an unusual upgrading speed after the robot passed through level 4, wondering if the esperience system dataset is wrong

Need a more precise description or proof, the exp profile seems right.

Sorry i calculated via rule manual wrongly, the experience system act normally before level 10, but the display of over 10 grade is wrong, showing no level number and still ecumulating experience to level up.

I calculated a second time and am pretty sure that nowtime outpost and sentry in your simulator cannot support a single standard to levelup to 10/

Suppose a standard exchanged 400 rounds of 17mm, then that's 400exp
Destroying the outpost collects 1500exp
Destroying the 400HP sentry collects 1600exp
The exp collected in total yields 3500exp, way before 5000exp required for Level 10!

Sry my bad, not noticing a 600 extra HP for sentry.
My bad.


[FEATURE] is NaN type function

Description
This one was missing from type category. It is a bit trickier compared to other snippets, so let me explain:
We use NaN to define a number that isn't really a number "foo" / 2 = NaN. typeof(NaN) -> "number".
NaN compared to anything is false, even to itself. There is native isNaN function but it isn't stable, here are the examples with explanations:
native isNaN(NaN) returns true (this one is okay)
native isNaN(1) returns false (this is okay too)
native isNaN("1") returns false (this is okay too)
native isNaN("foo") returns true (this is not okay obviously, it is because of JavaScript coercion) - Number("foo") returns NaN. Therefore isNaN("foo") turns into isNaN(NaN)
The solution to the problem:
In JavaScript the NaN is the only value that is treated as following NaN == NaN returns false. Therefore, we can use strict inequality to compare such value. The following solution is often asked on job interviews.
✅ I've updated tests accordingly. New tests are passing, however, there were 2 tests that fail from before: pad and toCurrency
What does your PR belong to?

[ ] Website
[x] Snippets
[ ] General / Things regarding the repository (like CI Integration)
[x] Tests

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] Enhancement (non-breaking improvement of a snippet)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have checked that the changes are working properly
[x] I have checked that there isn't any PR doing the same
[x] I have read the CONTRIBUTING document.

Number.isNaN() is the new native alternative, but I think it's still an interesting concept, where NaN is the only value that is not equal to itself.

This is natively implemented as Number.isNaN(), so we don't really need to add it ourselves. Let ES6 handle the NaN weirdness, trust me it's for the best.