Code examples should be complete enough to run

Hi, I'm reading through the documentation and quite often I find code examples that look like they were taken away from a bigger sample and therefore miss the context around.
It would be much better if the example would be complete so I can copy paste it and run or at least it could link to the original source.
Here is such an example on this page: themes/default/content/docs/reference/pkg/aws/ec2/defaultsecuritygroup.md
If I copy paste the examples I get TypeError, ImportError and other errors because the static method cannot live outside the class.
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        description: Optional[str] = None,
        egress: Optional[Sequence[DefaultSecurityGroupEgressArgs]] = None,
        ingress: Optional[Sequence[DefaultSecurityGroupIngressArgs]] = None,
        name: Optional[str] = None,
        owner_id: Optional[str] = None,
        revoke_rules_on_delete: Optional[bool] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        vpc_id: Optional[str] = None) -> DefaultSecurityGroup

For example the Pydantic has an excellent documentation where I can run all examples.
https://pydantic-docs.helpmanual.io/#example
Thank you!

Generally, the examples are meant to be snippets and not fully executable programs. For fully executable programs, you may want to take a look at https://github.com/pulumi/examples. The examples in documentation are there to help provide a sense of how to use the functions and resources.


Native SetStreamHandler for event stream on Windows results crash

Steps to Reproduce
Platform: Windows
Demo repo here

Enable full page heap verification for example app.
Build windows app.
Run with Debug.

Expected results:
Application run without any error.
Actual results:
Application crashes.

Code sample

Define EventStream
/// An implementation of [HelloPluginPlatform] that uses method channels.
class MethodChannelHelloPlugin extends HelloPluginPlatform {
  /// The method channel used to interact with the native platform.
  @visibleForTesting
  final methodChannel = const MethodChannel('hello_plugin');
  @visibleForTesting
  final EventChannel eventChannel = const EventChannel('hello_plugin/events');

  @override
  Future<String?> getPlatformVersion() async {
    final version =
        await methodChannel.invokeMethod<String>('getPlatformVersion');
    return version;
  }

  @override
  Stream<String?> eventStream() {
    return eventChannel
        .receiveBroadcastStream()
        .map<String?>((dynamic link) => link as String?);
  }
}

Native SetStreamHandler
...
  auto eventChannel =
      std::make_unique<flutter::EventChannel<flutter::EncodableValue>>(
          registrar->messenger(), "hello_plugin/events",
          &flutter::StandardMethodCodec::GetInstance());
  auto atreamHandler = std::make_unique<flutter::StreamHandlerFunctions<>>(
      [plugin_pointer = plugin.get()](
          const flutter::EncodableValue* arguments,
          std::unique_ptr<flutter::EventSink<>>&& events)
          -> std::unique_ptr<flutter::StreamHandlerError<>> {
        std::cout << "on_listen called" << std::endl;
        return nullptr;
      },
      [plugin_pointer = plugin.get()](const flutter::EncodableValue* arguments)
          -> std::unique_ptr<flutter::StreamHandlerError<>> {
            std::cout << "on_cancel called" << std::endl;
            return nullptr;
      });
  eventChannel->SetStreamHandler(std::move(atreamHandler));
...

It crashes when listen is called.
...
_helloPlugin.eventStream.listen(print);
...

Logs

Duplicate of https://github.com/flutter/flutter/issues/113728
This is fixed on master, but for stable you work around the issue by making your EventChannel a plugin member variable instead of a local variable so that its lifetime is extended.


✨Enabling Metrics for vn-agent

What this PR does / why we need it:
The pr enabled metrics server for vn-agent instrumenting all the API Calls to super API Server or Kubelet and counting all the API Calls with respect to host, tenantName, tenantNamespace, action and responseCode.
Which issue(s) this PR fixes
Fixes #251

/ok-to-test

/easycla


A temporary hack to deal with a bug in MSVC v142 - VS 2019 build tools

Please link the relevant issue so that we know when it's fixed: https://github.com/microsoft/STL/issues/1300.


Unexpected Simulation checkpointing frequency behavior

MWE in which I expected checkpointing to occur every 10 iterations:

using Oceananigans, Oceananigans.Fields
arch = CPU(); grid = RegularCartesianGrid(size=(16, 16, 16), length=(1, 1, 1));
model = IncompressibleModel(grid=RegularCartesianGrid(size=(16, 16, 16), length=(1, 1, 1)))
simulation = Simulation(model, Δt=0.1, stop_iteration=1000)

simulation.output_writers[:checkpointer] = Checkpointer(model; interval=10, prefix="model_checkpoint") # expect to checkpoint every 10 iterations?

run!(simulation)

but the files produced are
model_checkpoint_iteration0.jld2    model_checkpoint_iteration400.jld2  model_checkpoint_iteration801.jld2
model_checkpoint_iteration101.jld2  model_checkpoint_iteration500.jld2  model_checkpoint_iteration901.jld2
model_checkpoint_iteration200.jld2  model_checkpoint_iteration600.jld2
model_checkpoint_iteration300.jld2  model_checkpoint_iteration700.jld2

eg, checkpoints are only saved every 100 iterations. Am I missing something?

Meh, I was confused. interval is for time, frequency is for number of iterations.

Hmmm, we're the ones that came up with this naming convention so maybe this suggests we should rename frequency and interval to frequency_interval and time_interval respectively?


Save-Module skips the fourth zero in module version number from a local repo

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
When I Save-Module from PowerShellGallery, the cmdlet creates same directory structure as created by Install-Module in the 'Modules' directory in 'MyDocuments'. Each module is placed in a directory having module version as its name. When I copy R:\flash content to 'MyDocuments\PowerShell\Modules', PowerShell can Import-Module from the directory. That's the expected behavior.
Please, note The behavior does not depend on module name, Microsoft.Graph.Intune was taken as an example of module with four-digit version ending with zero.
Example:
PS> Save-Module Microsoft.Graph.Intune -Path R:\flash -Repository PSGallery
PS> tree R:\flash
Folder PATH listing for volume R
R:\FLASH
└───Microsoft.Graph.Intune
    └───6.1907.1.0
        └───CustomModules

Actual
When I register a local file system directory as PowerShell repository 'local', put there the same Microsoft.Graph.Intune NuGet package downloaded from PowerShellGallery, and Save-Module from the local repo I get different result. In the following example the trailing zero is missing from the version directory name '6.1907.1.0'. When I copy R:\flash content to 'MyDocuments\PowerShell\Modules', PowerShell cannot 'see' the module: Import-Module Microsoft.Graph.Intune and Get-Module -ListAvailable cannot find it.
Expected
The trailing zero is present for modules saved from a local repository and Import-Module can find the module after copying it to 'MyDocuments\PowerShell\Modules'.
Steps again:

Register a file system directory as a PowerShell repository.
Publish or copy a module with four-digit version ending with zero to the local repository created at step 1.
Save the module published at step 2 from the repository created at step 1 to a disk.
Check directory names for the saved module (note the absent trailing zero).
Install the saved module from the disk location (step 3) to PowerShell.
Try to import the module (note that the module cannot be found).

Expected behavior
PS> Save-Module Microsoft.Graph.Intune -Path R:\flash -Repository local
PS> tree R:\flash
Folder PATH listing for volume R
R:\FLASH
└───Microsoft.Graph.Intune
    └───6.1907.1.0
        └───CustomModules

Actual behavior
PS> Save-Module Microsoft.Graph.Intune -Path R:\flash -Repository local
PS> tree R:\flash
Folder PATH listing for volume R
R:\FLASH
└───Microsoft.Graph.Intune
    └───6.1907.1
        └───CustomModules

Error details
No error message.

Environment data
PS> $PSVersiontable

Name                           Value
----                           -----
PSVersion                      7.3.1
PSEdition                      Core
GitCommitId                    7.3.1
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals
No response

Closing this issue as this bug is being tracked in #1093


feat: Webpack minified bundle file in dist/

I want it minified, so it's smaller and quicker to load.

#29


(v2) implement natives

Add packages such as lp-cross. However, natanbc/lp-cross#3 needs to be fixed because I'm unable to download anything from bintray.

Fixed with latest changes to the v2 branch


Application crashes after 'Finished all tasks' - Pihole Adblocker blocking DNS.

Describe the bug
The application crashes after all tasks are finished.
I use pihole adblocker I am blocking youtube ad servers.    Here is a link to the domains I am blocking: https://raw.githubusercontent.com/Lewis-Fam/pihole_adlists/main/youtube_ads_blocklist.txt
--- Message ---
The requested name is valid, but no data of the requested type was found. (rr3---sn-qxoedne7.googlevideo.com:443)
How To Reproduce
Crashes on playlists and albums. I didn't test tracks.
Include latest log file
..
....
......
[2022.09.09 19:40:32] [Debug]: W #2 ::: Finished current task ::: Case   Point - Savage
[2022.09.09 19:40:32] [Info]: W #2 ::: Skipping: Tut Tut Child - Fat Cat Adventures
[2022.09.09 19:40:33] [Info]: W #2 ::: Skipping: Noisia - Mundus Theme
[2022.09.09 19:40:33] [Info]: W #2 ::: Skipping: Adventure Club - Gold (feat. Yuna)
[2022.09.09 19:40:33] [Info]: W #2 ::: Skipping: Knife Party - Kaleidoscope
[2022.09.09 19:40:34] [Info]: W #2 ::: Finished all tasks
[2022.09.09 19:40:34] [Debug]: W #1 ::: Downloading ::: Linkin Park - LOST IN THE ECHO - KillSonik Remix
[2022.09.09 19:40:37] [Debug]: W #1 ::: Converting ::: Linkin Park - LOST IN THE ECHO - KillSonik Remix
[2022.09.09 19:40:42] [Debug]: W #1 ::: Adding metadata ::: Linkin Park - LOST IN THE ECHO - KillSonik Remix
[2022.09.09 19:40:42] [Debug]: W #1 ::: Finished current task ::: Linkin Park - LOST IN THE ECHO - KillSonik Remix
[2022.09.09 19:40:42] [Info]: W #1 ::: Finished all tasks
[2022.09.09 19:40:42] [Error]: Application crashed!
--- Message ---
The requested name is valid, but no data of the requested type was found. (rr3---sn-qxoedne7.googlevideo.com:443)
--- Helplink ---
--- Source ---
System.Net.Http
--- StackTrace ---
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation1.WaitWithCancellationAsync(CancellationToken cancellationToken)    at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)    at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)    at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)    at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)    at Spotisharp.Client.Services.YoutubeService.GetSize(String url) in W:\Daddy\Documents\dev\Spotisharp\Spotisharp.Client\Services\YoutubeService.cs:line 109    at Spotisharp.Client.Services.YoutubeService.GetStreamAsync(String url, IProgress1 progress) in W:\Daddy\Documents\dev\Spotisharp\Spotisharp.Client\Services\YoutubeService.cs:line 62
at Program.<>c__DisplayClass0_0.<<$>b__0>d.MoveNext() in W:\Daddy\Documents\dev\Spotisharp\Spotisharp.Client\Program.cs:line 230
--- End of stack trace from previous location ---
at Program.$(String[] args) in W:\Daddy\Documents\dev\Spotisharp\Spotisharp.Client\Program.cs:line 150
at Program.(String[] args)
--- TargetSide ---
Void MoveNext()
Windows 10 and 11.
I am able to resolve the crash by disabling pihole adblocker.

I'll run the app in debug mode today or tomorrow and see if where I can catch the error for a clean application exit.  Figured I should let you know though.
Thanks for the great app!

Thank you for your contribution it this project :)

:-)
I created a pull request. The HttpResponseMessage.Content.Headers.ContentLength is a nullable long. This allows the GetSize method to throw anywhere within the request pipeline.  I then had to move the null check to the caller.
So far so good. No issues.

#27 merged. Thank you!


[TS-3589] Enhance header_rewrite to support TRANSACT-COUNT as a condi…

…tion
TS-3589 fixes
fixes

hey @zwoop, this is a header rewrite enhancement we talked about a few weeks ago to allow for the transact-count to be used as a condition. when you've got a minute can you give this PR a look?


Can't publish from third-party repo package with dependencies to crates.io

Problem
We have a  self-developed tool to copy package from one repo to crates.io. However it's impossible to publish from third party repo cargo package with dependencies hosted on crates.io. Error thrown is Failed to publish packages: [Dependency rand is hosted on another registry. Cross-registry dependencies are not permitted on crates.io.]
For packages without any dependencies publishing works as expected.
Steps
Try to upload package hosted on 3-rd party repo.
Example of config.toml file
[package]
name = "cargo_calc"
version = "0.2.2-alpha"
authors = ["..."]
edition = "2021"
rust-version = "1.56"
description = "Simple calculation lib"
documentation = "https://www.github.com/"
readme = "./README.md"
homepage = "https://www.github.com/"
repository = "https://www.github.com/"
license = "MIT"
keywords = ["..."]
categories = ["..."]
exclude = [".idea"]
include = ["/src"]

[dependencies]
random = "0.14.0"

Cargo.toml
[package]
name = "cargo_calc"
version = "0.2.2-alpha"
authors = ["..."]
edition = "2021"
rust-version = "1.56"
description = "Simple calculation lib"
documentation = "https://www.github.com/"
readme = "./README.md"
homepage = "https://www.github.com/"
repository = "https://www.github.com/"
license = "MIT"
keywords = ["..."]
categories = ["..."]
exclude = [".idea"]
include = ["/src"]

[dependencies]
random = "0.14.0"

Cargo.lock
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3

[[package]]
name = "cargo_calc"
version = "0.2.1-alpha"
dependencies = [
 "random",
]

[[package]]
name = "random"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "61c7093a82705b48f10d4b165c6482dbe9f58cd63a870d85537e857b2badbd88"

Possible Solution(s)
Allow publishing packages hosted on 3-rd party repos with dependencies hosted on crates.io
Notes
No response
Version
cargo 1.71.0-nightly (de80432f0 2023-04-21)
release: 1.71.0-nightly
commit-hash: de80432f04da61d98dcbbc1572598071718ccfd2
commit-date: 2023-04-21
host: aarch64-apple-darwin
libgit2: 1.6.3 (sys:0.17.0 vendored)
libcurl: 7.87.0 (sys:0.4.61+curl-8.0.1 system ssl:(SecureTransport) LibreSSL/3.3.6)
ssl: OpenSSL 1.1.1t  7 Feb 2023
os: Mac OS 13.3.1 [64-bit]

It looks like you copied the Cargo.toml file twice, and didn't include the config.toml.  Can up update it to include that?
Also, can you reproduce with just using cargo and not an external tool?  If not, it sounds like this is an issue with the tool and not cargo.  With the information provided, I don't think we would be able to reproduce.

Sorry for the late notice. I've updated config.toml file however I was unable to reproduce this issue using only cargo. Will try another way of publishing artifacts. Thank you!

Since there isn't a reproduction using cargo, I'm going to close assuming this is related to some external tooling. Thanks!


from model.utils.cython_bbox import bbox_overlaps

no module named cython_bbox in model.utils.cython
It should be
from model.rpn.bbox_transform import bbox_operlaps

解决了么?


[Fixed issue#1218 V2] Show the best metric curve during search progress in webui

#1218

when user set optimize_mode: maximize, best metric graph is:

and default metric graph is:

when user set optimize_mode: minimize, best metric graph is:

the filed optimize_mode: minimize |  maximize is from tuner.classArgs.optimize_mode

@yangou1988 Could you help us choose the color for best curve? Now it's both blue.


History Data Endpoint

request format: ?exchange={EXCHANGE}_{symbol}&tf={timeframe}&from={FROM}&to={to}
example: ?exchange=NASDAQ_AAPL&tf=1D&from=1660568058000&to=1660654458000
exchange = Exchange an underscore followed by the ticker of the requested instrument
tf = timeframe required for the candles : 1s,1m,1h,1d
Response: array of Bars
Bar is an object with the following fields:
time: number. Amount of milliseconds since Unix epoch start in UTC timezone. time for daily bars is expected to be a trading day (not session start day) at 00:00 UTC. Charting Library adjusts time according to [Session] from SymbolInfo. time for monthly bars is the first trading day of the month without the time part.
open: number. Bar's open value
high: number. Bar's high value
low: number. Bar's low value
close: number. Bar's close value
volume: number. Bar's volume value
Example bar:
{
close: 1189.8
high: 1197
low: 1116.5
open: 1125.5
time:<PHONE_NUMBER>000
volume: 22159225.71
}

5 mins 15 mins 8 hours

Timeframes required: 1s, 1m, 5m, 15m, 30m, 1h, 8h, 1d


Needs testing with SFOS < 4.4

currently untested with anything but <IP_ADDRESS>x
interesting tests:

do language- arch, etc detections work?
currently sailjail/firejail files are shipped. do they have an impact for non-jail-enabled releases?

Thanks for testing.
The screenshot shows encryption as disabled, is that true for this device?

Actually, no! Device is encrypted. I didn't notice this.

likely another missing SailJail permission. will investigate.

4538d2d should fix the encryption detection - but I would need someone to test with a device that is not encrypted ;)

I could fire up my old Jolla C if you make me a test build.

I could fire up my old Jolla C if you make me a test build.

That would be nice.
I have 0.9.7+master.20220828134701.c58e968 from here

Looks correct on both devices.

Very nice, thanks!

0.9.7+master.20220828134701.c58e968 tested successfully on Xperia10/<IP_ADDRESS> (Verla)/armv7hl

Let me know if you need some specific testing.
måndag den 29 augusti 2022 skrev Peter G.:

Very nice, thanks!
--
Reply to this email directly or view it on GitHub:
https://github.com/sailfishos-chum/bugger/issues/12#issuecomment-1230023054
You are receiving this because you commented.
Message ID: @.***

--
Sent from Sailfish X

Tested on Jolla 1/<IP_ADDRESS> (Pallas-Yllästunturi)/arm:
 sailfish-qml harbour-bugger
[D] unknown:0 - Using Wayland-EGL
[W] unknown:133 - file:///usr/share/harbour-bugger/qml/harbour-bugger.qml:133:30: Type MainPage unavailable
         initialPage: Component { MainPage{} }
                                  ^
[W] unknown:193 - file:///usr/share/harbour-bugger/qml/pages/MainPage.qml:193:21: Cannot assign to non-existent property "description"
                         description: qsTr("Please be brief but descriptive");
                         ^

So Silica changed, 3.4 does not have a description for the TextField.
Probably not worth supporting 3.4 - Jolla would likely ignore bug reports for it anyway.

With 0.9.8, support dor 3.x is dropped.
It would be interesting if  4.0 and 4.1 work.


Bug/np float issue

Description
This fixes #546 allowing for use of np.float32 by changing the np.float we were accepting to np.floating. Note that the np.floating is the np API for handing floating points of all scalars and the previous were deprecated.
https://numpy.org/devdocs/reference/arrays.scalars.html#numpy.floating
Adds testing for this use case and to make sure merge is still working, but tests are not in place around downcasting. Further work needs to be done on ensuring we can work with float64 depending on the datasketches fork https://github.com/whylabs/whylogs-sketching.
General Checklist

[X] Tests added for this feature/bug
if it was a bug, test must cover it.
[X] Conform by the style guides, by using formatter
[ ] Documentation updated
[X] (optional) Please add a label to your PR

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.01%) to 82.674%

Files with Coverage Reduction
New Missed Lines
%

src/whylogs/core/summaryconverters.py
1
85.41%

Totals

Change from base Build<PHONE_NUMBER>:
-0.01%

Covered Lines:
4962

Relevant Lines:
5838

💛  - Coveralls


bcbio compatibility with GCE

I'm hoping to get bcbio set up on a google instance.  Our Lab got a grant specifically to use google compute resources, so i need to transition from amazon to google.  I'm having issues right off the bat, and am wondering what is the best way to get bcbio running on gce?  I need a straight forward set up, no cluster or shared file system compatibility.
following a basic install attempt:
python bcbio_nextgen_install.py /usr/local/share/bcbio --tooldir=/usr/local   -
-genomes GRCh37 --aligners bwa
it crashes:
Upgrading third party tools to latest versions
--2018-03-29 20:13:41--  https://github.com/chapmanb/cloudbiolinux/archive/master.tar.gz
Resolving github.com (github.com)... <IP_ADDRESS>, <IP_ADDRESS>
Connecting to github.com (github.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/chapmanb/cloudbiolinux/tar.gz/master [following]
--2018-03-29 20:13:41--  https://codeload.github.com/chapmanb/cloudbiolinux/tar.gz/master
Resolving codeload.github.com (codeload.github.com)... <IP_ADDRESS>, <IP_ADDRESS>
Connecting to codeload.github.com (codeload.github.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘STDOUT’
0K ........ ........ ........ ........ ........ ........ 32.8M
3072K ........ ........ ........ ......                     25.5M=0.2s
2018-03-29 20:13:41 (29.5 MB/s) - written to stdout [5168529]
Traceback (most recent call last):
File "/usr/local/share/bcbio/anaconda/bin/bcbio_nextgen.py", line 222, in
install.upgrade_bcbio(kwargs["args"])
File "/usr/local/share/bcbio/anaconda/lib/python2.7/site-packages/bcbio/install.py", line 82, in upgrade_bcbio
upgrade_thirdparty_tools(args, REMOTES)
File "/usr/local/share/bcbio/anaconda/lib/python2.7/site-packages/bcbio/install.py", line 444, in upgrade_thirdpa
rty_tools
cbl_deploy = import("cloudbio.deploy", fromlist=["deploy"])
File "/home/patrickjenningsreed/tmpbcbio-install/cloudbiolinux/cloudbio/deploy/init.py", line 18, in
from .volume import attach_volumes, make_snapshots, detach_volumes
File "/home/patrickjenningsreed/tmpbcbio-install/cloudbiolinux/cloudbio/deploy/volume.py", line 3, in
from boto.exception import EC2ResponseError
File "/usr/local/share/bcbio/anaconda/lib/python2.7/site-packages/boto/init.py", line 1216, in
boto.plugin.load_plugins(config)
AttributeError: 'module' object has no attribute 'plugin'
Traceback (most recent call last):
File "bcbio_nextgen_install.py", line 260, in
main(parser.parse_args(), sys.argv[1:])
File "bcbio_nextgen_install.py", line 44, in main
subprocess.check_call([bcbio, "upgrade"] + _clean_args(sys_argv, args))
File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/local/share/bcbio/anaconda/bin/bcbio_nextgen.py', 'upgrade', '--tool
dir=/usr/local', '--genomes', 'GRCh37', '--aligners', 'bwa', '--data']' returned non-zero exit status 1

Patrick;
Thanks much for this report and apologies about the issue. I believe we're running into this boto issues on GCE:
https://stackoverflow.com/questions/40732313/gensim-installation-problems
which I tried to avoid by moving the unneeded boto import in cloudbiolinux. You should be able to easily use either a local bcbio install or Docker approach here, so hopefully this enables it for you. You'll need to remove any cached cloudbiolinux installs (rm -rf tmpbcbio-install) and then re-running should work. Please let us know if you run into any other issues.


Door lock help

I am using your library to write a simple Matter server that will set a door lock's state when changed inside of HomeKit. I have the ESP32 device working and I can add it to HomeKit. I then try to lock the physical lock from HomeKit, but I have no idea where in the code I should be intercepting this action. It seems to me that the on_device_event callback function would be a logical place, but I am not getting anything on that function when I try to change the lock state on HomeKit.
Could you maybe point me in the right direction if this is completely wrong?
Thank you.

try on_attribute_update function.


Backend: Send e-mail

User story

As a (HR employee)
I want / need users to receive mails (in different processes)
So that I am able to communicate with them (e.g. invitation to use DI)

Acceptance criteria

backend sends email to a given email-address

Definition of done (DoD)

Added only after week 5
The same for all features
Here goes the project specific part

DoD general criteria

Feature has been fully implemented
Feature has been merged into the mainline
All acceptance criteria were met
Product owner approved features
All tests are passing
Developers agreed to release

Finished in sprint 5: 8b9cdf974b0592bb76a4d87a3d35fe9834c38272


Fails authorizing when using an ECDSA account key of 256 bits

The error thrown is the following:
square/go-jose: expected 384 bit key, got 256 bits instead

Why is your ECDSA key so small? I don't know if acme allows keys to be that few bits.

The size is perfectly fine for a ECDSA signing algorithm.

Unless, LetsEncrypt is strictly following NIST recommendations for key lenghts: https://www.keylength.com/en/6/

This would be the bug
https://github.com/ericchiang/letsencrypt/blob/a095679ba87c40b35e2fb94c62651b79594bdd58/acme.go#L429
I think that value should be jose.ES256

Right, they allow 256bits for ECDSA: https://github.com/letsencrypt/boulder/blob/master/core/good_key.go#L171

Awesome. Feel free to open an PR for this (or I can fix it later).

I'll send you a PR shortly.
On Wed, Mar 9, 2016 at 4:19 PM Eric Chiang<EMAIL_ADDRESS>wrote:

Awesome. Feel free to open an PR for this (or I can fix it later).
—
Reply to this email directly or view it on GitHub
https://github.com/ericchiang/letsencrypt/issues/18#issuecomment-194510933
.

https://github.com/ericchiang/letsencrypt/pull/19


[FEATURE REQUEST] - Option to control Internet access on connected devices

Is your feature request related to a problem? Please describe.
No, it is a feature that would be a "nice to have", that's all.
Describe the solution you'd like
I would like to be able to switch on and off the internet access of any connected devices on my network. This is already possible using the web interface of the router but I would like to do it via Home Assistant.
Describe alternatives you've considered
I saw in your repository miwifi-luci-api that most, if not all firmware listed there have an action called set_wan in the files misystem.unluac.lua which should be able to do just that but I have no idea of how it works.

@Emeraude998 Hello. This automation does exactly what you need.
https://github.com/dmamontov/hass-miwifi/wiki/Example-automation#device-blocking

Hi @dmamontov ,
Thank you for the quick answer, this is exactly what I was looking for.
Thanks again


Should require a minimum number of points to do GMM

Describe the change
At present, Gaussian Mixture Modelling is being executed if cloud layers have at least 2 oktas and more than 3 points. But 3 points still leads to unstable results - this number should be increased to a reasonable value, based on simulations.
E.g.: 50 ?

As of #74, a minimum number of 30 valid (i.e. non-nan) points are required to run the GMM layering step.


Update isogram exercise spec

Hi, this is an update to the Isogram exercise to match the problem-specifications canonical-data.json,
https://github.com/exercism/problem-specifications/blob/master/exercises/isogram/canonical-data.json

Lovely.  Thanks @amscotti !


Can't connect to LibSQL local file database

I'm trying to use Atlas but if I set up my atlas.hcl as such:
env "local" {
  src = "file://schema.sql"
  url = "libsql://data/local.db"
  dev = "libsql://data/atlas.db"
}

Then I get this error (when for example I run a command like atlas migrate diff --env local):
Error: sqlite: query version pragma: failed to WebSocket dial: failed to send handshake request: Get "https://data/atlas.db": dial tcp: lookup data on <IP_ADDRESS>:53: no such host

Does atlas only support LibSQL when run with Turso or as a server?
I could modify it to just use sqlite instead of libsql for local tests but then libsql supports some features which libsql does not (for example random row id), and so atlas would give an error when trying to use one of those

The libsql:// protocol implies remote access right now. @haaawk, is this use case supported where you use local files only?

The libsql:// protocol implies remote access right now. @haaawk, is this use case supported where you use local files only?

Ah I see, makes sense
Would definitely be useful to be able to use it from a file as well though!
Maybe you could do libsql+file:// for file databases or something

From a quick search through your code you've imported libsql-client-go, not sure how you use it but sql.open("libsql", "file:/local.db") allows you to read a local libsql database


January 2022 Endgame

January 24, 2022 Code freeze for the endgame
January 28, 2022 Endgame done
February 03, 2022 Expected release date (this may change)

Monday

[ ] Check that all queries in this issue use the current milestone endgame champion
[ ] Run OSS tool endgame champion
[ ] Update links in Endgame issue and Endgame notebooks to point to new milestone endgame champion
[ ] Code freeze at 5pm PT
[ ] Ensure we have a green build on all platforms at 5pm PT
[ ] Create test plan items following the template here by 6pm PT
[ ] Add verification-needed label to features needed testing and are not tested by TPIs.
[ ] Update your availability for testing here - https://vscode-tools.azurewebsites.net/team team

[ ] Update availability of testers in vacation. Double check N/A testers. endgame champion

Tuesday

[ ] Test plan items assigned (using https://vscode-tools.azurewebsites.net/test-plan-items)

Run the tool multiple times to balance load if test items come in later and assignments are already made
Assigned to you

[ ] 🔖All closed feature-requests either have a verification-needed or on-testplan label
[ ] Test build starts at 7am CET
[ ] Test plan ready by 8am CET
[ ] 🔖Testing
[ ] 🔖Verification needed

Wednesday

[ ] 🔖Testing
[ ] Remind team members to assign issues that they intend to fix to the current milestone
[ ] Fixing (self-assigned, milestone assigned)
[ ] 🔖Verification needed

Thursday

[ ] Fixing (self-assigned, milestone assigned, no need for PR or review)

Increased scrutiny sets in due to testing being completed. Fixes pose a much higher risk
Move issues to the next month that can be deferred

[ ] 🔖Verification needed
[ ] 🔖Verification

Friday

[ ] Build a stable build to ensure stable build is green endgame champion
[ ] Pause scheduled insider builds endgame champion
Satellite modules/npm packages ready, version updated, smoke tested

[ ] vscode TBD
[ ] yo generator @aeschli
[x] vsce @joaomoreno
[ ] node debug @weinand
[ ] js-debug @connor4312
[ ] node debugadapter node @weinand
[ ] debug adapter protocol @weinand
[ ] custom data for html/css @aeschli

[ ] Only candidate issues are open and assigned to 🔖milestone
[ ] All issues 🔖verified
[ ] Branch code to release/<x.y> after all expected fixes are in (latest 5PM PST) endgame champion
[ ] Branch distro to release/<x.y> after all expected fixes are in (latest 5PM PST) endgame champion
[ ] Announce main is open for business endgame champion
[ ] Fixing (PR + review required once branched - major bugs only - to be discussed in stand-up meeting, labeled as candidate)
[ ] All release notes updated

release notes are collected in a file named v<Major>_<Minor>.md in this repo directory
[ ] @aeschli
[ ] @alexdima
[ ] @alexr00
[ ] @bpasero
[ ] @chrmarti
[ ] @connor4312
[ ] @dbaeumer
[ ] @deepak1556
[ ] @egamma
[ ] @hediet
[ ] @isidorn
[ ] @JacksonKearl
[ ] @joaomoreno
[ ] @joyceerhl
[ ] @jrieken
[ ] @kieferrm
[ ] @lramos15
[ ] @lszomoru
[ ] @meganrogge
[ ] @mjbvz
[ ] @rebornix
[ ] @roblourens
[ ] @rzhao271
[ ] @sandy081
[ ] @sbatten
[ ] @tanhakabir
[ ] @tylerleonhardt
[ ] @tyriar
[ ] @weinand

[ ] Acknowledge pull requests in release notes. We acknowledge PRs from outside the team. We have improved the tooling so that the endgame champion can generate the pull request acknowledgment for all repositories at once. endgame champion

[ ] debug-adapter-protocol, inno-updater, jsonc-parser, language-server-protocol, lsif-node, vscode, vscode-codicons, vscode-css-languageservice, vscode-debugadapter-node, vscode-dev-containers, vscode-docs, vscode-emmet-helper, vscode-eslint, vscode-extension-samples, vscode-generator-code, vscode-hexeditor, vscode-html-languageservice, vscode-js-debug, vscode-js-debug-companion, vscode-js-profile-visualizer, vscode-jshint, vscode-json-languageservice, vscode-languageserver-node, vscode-livepreview, vscode-loader, vscode-lsif-extension, vscode-node-debug, vscode-node-debug2, vscode-pull-request-github, vscode-recipes, vscode-references-view, vscode-textmate, vscode-vsce

[ ] Acknowledge issue trackers from the community @chrmarti
[ ] Add notable fixes to the release notes all
When done fixing/verifying and there are changes since last build at the end of day PT

[ ] Build and manually release Insider from release/<x.y> endgame champion

[ ] Localization: Run Update VS Code Branch in the vscode-loc-drop repo with release/* as the VS Code Branch parameter (it's the default so you shouldn't have to change anything) endgame champion

Friday/Monday

[ ] Polish release notes redmond
[ ] Fixing (only critical bugs - no string changes)

Monday - Wednesday

[ ] 🔖milestone issues
[ ] 🔖candidate issues
[ ] Polish release notes redmond
[ ] Cherry-pick hand-picked and reviewed changes to release/<x.y> endgame champion
[ ] Build Insider from release/<x.y> endgame champion
[ ] Manually release Insider endgame champion
[ ] Build stable for all platforms as new candidate issues come in endgame champion
[ ] Documentation updated

[ ] @aeschli
[ ] @alexdima
[ ] @alexr00
[ ] @bpasero
[ ] @chrmarti
[ ] @connor4312
[ ] @dbaeumer
[ ] @deepak1556
[ ] @egamma
[ ] @hediet
[ ] @isidorn
[ ] @JacksonKearl
[ ] @joaomoreno
[ ] @joyceerhl
[ ] @jrieken
[ ] @kieferrm
[ ] @lramos15
[ ] @lszomoru
[ ] @meganrogge
[ ] @mjbvz
[ ] @rebornix
[ ] @roblourens
[ ] @rzhao271
[ ] @sandy081
[ ] @sbatten
[ ] @tylerleonhardt
[ ] @tyriar
[ ] @weinand

[ ] Run scripts/test-documentation.sh|bat and add file or fix issues if there are new colors that are not documented.

Note: The Insiders build needs to be in the wild for 24 hours before we can enter the last phase of the endgame. endgame champion

Wednesday/Thursday - Expected release day (this may change)

[ ] Build stable for all platforms endgame champion
[ ] Sanity check of installable bits (server instructions)

[ ] Windows 32 bit owner

[ ] signed installer 32-bit
[ ] signed user installer 32-bit
[ ] zip 32-bit
[ ] server 32-bit

[ ] Windows 64 bit owner

[ ] signed installer 64-bit
[ ] signed user installer 64-bit
[ ] zip 64-bit
[ ] server 64-bit

[ ] Windows ARM64 owner

[ ] signed installer ARM64
[ ] signed user installer ARM64
[ ] zip ARM64

[ ] macOS

[ ] Universal owner
[ ] Intel owner
[ ] Intel server owner
[ ] Apple Silicon owner

[ ] Linux x64

[ ] deb owner
[ ] rpm owner
[ ] archives owner
[ ] snap (sudo snap install --classic --dangerous <file>.snap) owner

[ ] Linux server owner

[ ] x64
[ ] x64 Alpine
[ ] ARM32
[ ] ARM64

[ ] Publish website @gregvanl
[ ] Publish to stable endgame champion
[ ] Create an official release endgame champion

[ ] Create a tag (make sure you pull the release branch first): git tag <x.y.z>
[ ] Push the tag: git push origin <x.y.z>
[ ] Create a GitHub release: Open the GitHub tags, and click far right ... > Create Release. Use the correct title and description from our release notes. Also change the relative links for the key highlight list items to absolute links Example

[ ] Twitter announcement @chrisdias
[ ] Enable scheduled insider builds endgame champion
[ ] Bump up the version in package.json on main - endgame champion
[ ] Publish @types/vscode endgame champion

@hediet 👋 I seem to still be assigned items on this 😂

@eamodio you sure you don't want any TPIs?

I'd be open to grabbing a couple for commit rights again 😂


feat: add clean cli command

Description:
This pr implements the following

clean command to remove artifacts from the workspace
Removes the compiled contracts using scarb
Update the documentation

Screenshots:
When there are artifacts

When there are no artifacts

Hey @ftupas, I'm updated the CONTRIBUTING guide now, I forgot to add that you must run tests with
cargo stest locally, and not with cargo test (they need to run sequentially).


Update README.md

Closes #39.

[x] A1: Add UI mockup
[x] A2: GitHub Actions build status badge
[x] A3: Acknowledge the original source of the code

LGTM


dragging the scroll bar is unexpectedly slow

https://youtu.be/VhIm-63k2sI

Math doesn't still doesnt check out in my head so I'm leaving it as is for now but will try to work it out for the next update, thanks!

Fixed on latest commit (kinda)~, will included in the next build (0.3.2 beta 3 and up)


Fix language settings

Issue

close #714

Overview (Required)

Add language setting from the DataStore to SettingViewModel.State by using combine().
Add switch languages in app setting.

Links

Screenshot

Before
After

👀


Generating a project from an Azure Repos URL fails

I'm trying to generate a project from a template in an Azure Repo using the following command:
copier copy my-azure-repo-url .
Where I'm getting my-azure-repo-url from the clone option the Azure portal and is of the format https://my-azure-organisation/my-azure-project/_git/my-repo
I am seeing the following error:
Traceback (most recent call last):
  File "c:\python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Python38\Scripts\copier.exe\__main__.py", line 7, in <module>
  File "c:\python38\lib\site-packages\plumbum\cli\application.py", line 577, in run
    inst, retcode = subapp.run(argv, exit=False)
  File "c:\python38\lib\site-packages\plumbum\cli\application.py", line 572, in run
    retcode = inst.main(*tailargs)
  File "c:\python38\lib\site-packages\copier\cli.py", line 38, in _wrapper
    return method(*args, **kwargs)
  File "c:\python38\lib\site-packages\copier\cli.py", line 252, in main
    self.parent._copy(template_src, destination_path)
  File "c:\python38\lib\site-packages\copier\cli.py", line 173, in _copy
    return copy(
  File "c:\python38\lib\site-packages\copier\main.py", line 133, in copy
    conf = make_config(**locals())
  File "c:\python38\lib\site-packages\copier\config\factory.py", line 125, in make_config
    init_args["data_from_asking_user"] = query_user_data(
  File "c:\python38\lib\site-packages\copier\config\user_data.py", line 213, in query_user_data
    answer = prompt(message, type_fn, answer)
  File "c:\python38\lib\site-packages\plumbum\cli\terminal.py", line 135, in prompt
    ans = readline(question).strip()
  File "c:\python38\lib\site-packages\plumbum\cli\terminal.py", line 16, in readline
    sys.stdout.write(message)
  File "c:\python38\lib\site-packages\colorama\ansitowin32.py", line 41, in write
    self.__convertor.write(text)
  File "c:\python38\lib\site-packages\colorama\ansitowin32.py", line 162, in write
    self.write_and_convert(text)
  File "c:\python38\lib\site-packages\colorama\ansitowin32.py", line 190, in write_and_convert
    self.write_plain_text(text, cursor, len(text))
  File "c:\python38\lib\site-packages\colorama\ansitowin32.py", line 195, in write_plain_text
    self.wrapped.write(text[start:end])
  File "c:\python38\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f3a4' in position 104: character maps to <undefined>

Unclear if this is a bug or if I'm simply using the wrong command to generate my project from the template in the Azure repo

My go-to fix for encoding/decoding errors on Windows in to set these environment variables:
PYTHONIOENCODING=UTF-8
LANG=en_US.utf-8
LC_ALL=en_US.utf-8

It does not always work though, and I'm not sure this is the actual issue here 🙂

Try git+https://my-azure-organisation/my-azure-project/_git/my-repo and report results please.

@Yajo Using the git+ prefix did the trick! Many thanks


Redesign the floating windows - R-Groups

Change the visual representation of the R-Group window
GIVEN Ketcher user having something or nothing on the canvas having R-Group tool selected WHEN clicking on the canvas  THEN
Ketcher displays a floating R-Group window with the list of all R-Groups as available and a button to confirm adding the R-Group to the canvas AND
I can select only one R-Group from the presented and confirm adding to the canvas by clicking OK button AND
I can't confirm adding to the canvas if the R-Group is not selected AND
I can close the window with the cross icon or by using the Esc hotkey
GIVEN Ketcher user having R-Group on the canvas and having R-Group tool selected WHEN clicking on the R-Group on the canvas THEN
Ketcher displays a floating R-Group window with the same behavior as for adding new R-Group on the canvas
GIVEN Ketcher user having something on the canvas and having R-Group Fragment tool selected WHEN selecting fragment on the canvas THEN
Ketcher displays a floating R-Group window with the same behavior as for adding new R-Group on the canvas AND list of available R-Groups the items that are included in the selected fragment should be disabled
GIVEN Ketcher user having something R-Group Fragment on the canvas and having R-Group Fragment tool selected WHEN selecting R-Group Fragment on the canvas THEN
Ketcher displays a floating R-Group Logic window with the ability to change Occurrence, RestH flag, and Condition AND
confirm new R-Group Fragment settings by clicking on OK AND
close the window without change with cross icon or by using the Esc hotkey
Use the design:

Need design for one more window - R-Group Logic

Latest designs:

RestH and Condition fields should be separate
Final design for R-group logic condition dialog:

R-group logic form behaves differently in Demo and in master (release 2.4. behaves like master):
WHEN there're few R-Group members on canvas, user can choose some other then 'always' option(s) in "Option" select in format "IF R__ THEN R__", AND
when user chooses any option different from "always":
Demo:

"Occurrence" value changes automatically;
"RestH" checkbox is set selected automatically;
I.e. other form fields depend on "Option" value

Master / Release 2.4.

"Occurrence" value does not change;
"RestH" checkbox status does not change;
I.e. other form fields does not depend on "Option" value

TODO:
Behavior in demo is correct, thus changes in Master / Release 2.4. should be made.
Note: there're errors occurring in demo after submitting form

Discussed with Alena. Current behaviour is correct. Behaviour  in demo is wrong

Changes in the requirements:
"I can select only one R-Group from the presented and confirm adding to the canvas by clicking OK button" have been changed to  "I can select one or multiple R-Groups from the presented and confirm adding to the canvas by clicking OK button". Approved by @Alena-Guznischeva


Controllers cause erratic movement when enabled.

Operating System: Manjaro Linux
Controllers/drivers used:

Logic3 XBox 360 compatible controller (xpad/xboxdrv)
PDP XBox One controller (xpad)
Steam Controller (sc-controller, generic gamepad) yields no results until I set it to keyboard mapping, which defeats the purpose of enabling controllers

Connecting a game controller causes the PC to jump and move to the right, while constantly jumping. Moving the joystick(s) in any direction, pressing/releasing the triggers, an pressing any of the buttons fails to control the character most of the time, and the keyboard controls yields the same result until the controller is unplugged.
I have a sneaking suspicion that it's an issue with SDL and improper deadzoning of analog joysticks, but am unable to verify, since the original OSA does not compile on my machine.

I ran a few more checks, and can confirm it's an issue with deadzoning. Linked below are three videos for proof, using jstest to see the direct events (axis 0/1 is the X and Y for left joystick), AntiMicro for a visual aid (default deadzone), and the reaction in OSA. In general, the two XBox controllers are not properly centered, and rely on software deadzoning to keep them center, while the wired Steam Controller (no sc-controller driver) is perfectly centered, and can run the game perfectly fine.
I'm combing over the current port's DxLib.cpp (I'm not a C++ developer), but my guess is that it is taking an absolute direction without taking into account of controller defect. Obviously, this is an issue upstream, but if SDL can either use d-pad only or define an acceptable deadzone, this issue would be solved.
Videos:
XBox 1
XBox 360
Steam Controller

Apologies for the ignorance.  I've applied the patch!


Install pydantic 1.10.12 failed

Hi.
If i would install Spoolman, i have this Problem...
`pi@test:~/Spoolman`` $ bash ./scripts/install_debian.sh
Python 3.9 or later is installed (Current version: 3.9.2)
Updating apt-get cache...
Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Reading package lists... Done
Updating pip...
Pip updated successfully.
Installing system-wide pip packages needed for Spoolman...
Installing Spoolman backend and its dependencies using PDM...
WARNING: Lockfile is generated on an older version of PDM
Synchronizing working set with resolved packages: 1 to add, 0 to update, 0 to remove
✖ Install pydantic 1.10.12 failed
Retry failed jobs
✖ Install pydantic 1.10.12 failed
ERRORS:
add pydantic failed:
Traceback (most recent call last):
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/pi/.local/lib/python3.9/site-packages/pdm/installers/synchronizers.py", line 286, in install_candidate
self.manager.install(can)
File "/home/pi/.local/lib/python3.9/site-packages/pdm/installers/manager.py", line 34, in install
dist_info = installer(str(prepared.build()), self.environment, prepared.direct_url())
File "/home/pi/.local/lib/python3.9/site-packages/pdm/models/candidates.py", line 403, in build
self.obtain(allow_all=False)
File "/home/pi/.local/lib/python3.9/site-packages/pdm/models/candidates.py", line 440, in obtain
self.link = _find_best_match_link(
File "/home/pi/.local/lib/python3.9/site-packages/pdm/models/candidates.py", line 106, in _find_best_match_link
found = attempt_to_find()
File "/home/pi/.local/lib/python3.9/site-packages/pdm/models/candidates.py", line 97, in attempt_to_find
best = finder.find_best_match(req.as_line(), hashes=hashes).best
File "/home/pi/.local/lib/python3.9/site-packages/unearth/finder.py", line 368, in find_best_match
best_match = next(iter(applicable_candidates), None)
File "/home/pi/.local/lib/python3.9/site-packages/unearth/finder.py", line 301, in _find_packages_from_requirement
yield from self._find_packages(requirement.name, allow_yanked)
File "/home/pi/.local/lib/python3.9/site-packages/unearth/finder.py", line 267, in _find_packages
return sorted(all_packages, key=self._sort_key, reverse=True)
File "/home/pi/.local/lib/python3.9/site-packages/unearth/collector.py", line 135, in collect_links_from_location
yield from _collect_links_from_index(session, location)
File "/home/pi/.local/lib/python3.9/site-packages/unearth/collector.py", line 85, in parse_json_response
data = json.loads(page.content)
File "/usr/lib/python3.9/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.9/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 119703 (char 119702)
See /tmp/pdm-install-ipbinizb.log for detailed debug log.
[InstallationError]: Some package operations are not complete yet
WARNING: Add '-v' to see the detailed traceback
pi@test:~/Spoolman $`

Did you try again? Seems like the install was aborted perhaps due to some network issue

Hi, I'm having the same issue - any ideas how I can get it to work?


[Android ]KeyboardAwareScrollView, Expo and standalone APK

Hello.
I have the following code that works great on EXPO
<KeyboardAwareScrollView enabledOnAndroid>
                    <View style={styles.footer}>
                        <TextInput
                            style={styles.input}
                            placeholder="Write a message"
                            value={this.state.message}
                            onChangeText={message => this.setState({ message })}
                            blurOnSubmit={false}
                            returnKeyType="send"
                            onSubmitEditing={this.send}
                            underlineColorAndroid="transparent"
                        />
                        <TouchableOpacity primary transparent onPress={this.send}>
                            <Text style={styles.btnText}>Send</Text>
                        </TouchableOpacity>
                    </View>
</KeyboardAwareScrollView>

But as soon as I compile the standalone apk, it just does not work.
My question is. as I don't want to detach the app, meaning that I can't change windowSoftInputMode
Is there anything I can do to make it work on Android just to push the input up?

I have the same problem, maybe ask expo

@luoshuisheng yeah this is the issue comment here
https://github.com/expo/expo/issues/2172

Seems that this is an upstream issue.


chore: Docs move custom request config to a separate section

Context
AI/gen-ai-hub-sdk-js-backlog#139.
Definition of Done

~[ ] Code is tested (Unit, E2E)~
~[ ] Error handling created / updated & covered by the tests above~
[X] Documentation updated
~[ ] (Optional) Aligned changes with the Java SDK~
~[ ] (Optional) Release notes updated~

Wrong branch..


Getting errors on latest Rust

rustc 1.0.0-nightly (123a754cb 2015-03-24) (built 2015-03-25)
Lots of
/Users/sven/.cargo/registry/src/github.com-1ecc6299db9ec823/bswap-0.1.8/src/lib.rs:587:17: 587:55 error: unresolved name `intrinsics::copy_nonoverlapping_memory`
/Users/sven/.cargo/registry/src/github.com-1ecc6299db9ec823/bswap-0.1.8/src/lib.rs:587                 intrinsics::copy_nonoverlapping_memory(dst.as_mut_ptr(), &tmp as *const _ as *const u8, $Bytes);
                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sven/.cargo/registry/src/github.com-1ecc6299db9ec823/bswap-0.1.8/src/lib.rs:547:1: 601:2 note: in expansion of mod_std_impls!
/Users/sven/.cargo/registry/src/github.com-1ecc6299db9ec823/bswap-0.1.8/src/lib.rs:630:17: 630:77 note: expansion site
error: aborting due to 47 previous errors
Build failed, waiting for other jobs to finish...
Could not compile `bswap`.

Heh, I guess it's the first consequence of the new dependency.
The byteorder crate is widely used, so I guess it won't take long for it to be fixed.

Ah, yikes! I'll be able to fix it tonight.

@BurntSushi You are very active, indeed. :heart:

I'm currently taking a look at a bunch of the build issues, seems to be more problems than just bswap

@stjahns Thanks for stepping in!

Some #![feature()] probably need to be added, and PathBuf::new replaced by PathBuf::from.

Sorry about the delay folks, but byteorder should be good to go now. Updated on crates.io.

thx


Example notebooks for  pacakge installed from pip.

How to make a runnable example that people can download ?
The example notebooks , if one install as one has to a python package is impossible to find.
Downloading the notebook from the github examples won't work as the toy models are not part of qcodes pacakges.
Maybe the toy model is also a bit too hard for sombody new?
@alexcjohnson  ideas?

we could certainly move toymodel into the repo - maybe into instrument_drivers, since that's what it's supposed to mimic really.
But also, if folks already have all the examples, it would be a shame to make them download them again just because they're hard to find. What if we just made a function qcodes.copy_examples(destination='.')? We could put that into a little notebook so people download one notebook that has a little intro and then copies all the others next to it, and maybe links to some of the newly copied notebooks directly?

I mean move toymodel into the package, of course it's already in the repo. Also you're right that it could definitely be simplified to have the same functionality without all the complicated MockInstrument / MockModel stuff. But that seems like a separate issue from making it practical for users to run the examples.

@alexcjohnson  I think it makes more sense to just allow for the downloaded notebooks to be runnable without extra magic (just after installing qcodes). The extra function seems to me just confusing!

The easy solution for now could be  to merge the toy things into the notebook @alexcjohnson , what you think?

I know we're not recommending it, but that would break multiprocessing if someone wanted to try turning it on in the examples. Do you see an issue putting it in the instrument_drivers folder? I can do that when I add some more examples.

@alexcjohnson ! Right,  better play safe! Let's go for instrument_divers then ! :ice_cream:


Extra debugging for Quorum Calculations

Issue being fixed or feature implemented

What was done?

How Has This Been Tested?

Breaking Changes

Checklist:

[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have added or updated relevant unit/integration/functional/e2e tests
[ ] I have made corresponding changes to the documentation

For repository code-owners and collaborators only

[ ] I have assigned this pull request to a milestone

Codecov Report
Base: 45.10% // Head: 45.25% // Increases project coverage by +0.14% :tada:

Coverage data is based on head (8611ee8) compared to base (15dfc54).
Patch coverage: 76.27% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #177      +/-   ##
============================================
+ Coverage     45.10%   45.25%   +0.14%
- Complexity     5331     5358      +27
============================================
  Files           379      379
  Lines         41502    41529      +27
  Branches       5685     5691       +6
============================================
+ Hits          18721    18795      +74
+ Misses        20829    20786      -43
+ Partials       1952     1948       -4

Impacted Files
Coverage Δ

...ore/src/main/java/org/bitcoinj/core/PeerGroup.java
51.65% <0.00%> (+0.11%)
:arrow_up:

...rc/main/java/org/bitcoinj/core/VersionMessage.java
59.23% <ø> (ø)

...va/org/bitcoinj/evolution/QuorumRotationState.java
62.83% <84.09%> (+1.85%)
:arrow_up:

...ain/java/org/bitcoinj/core/AbstractBlockChain.java
80.00% <100.00%> (ø)

...va/org/bitcoinj/evolution/AbstractQuorumState.java
26.82% <100.00%> (+0.53%)
:arrow_up:

...inj/evolution/SimplifiedMasternodeListManager.java
38.95% <100.00%> (+0.74%)
:arrow_up:

...c/main/java/org/bitcoinj/params/MainNetParams.java
80.83% <100.00%> (ø)

.../main/java/org/bitcoinj/params/TestNet3Params.java
100.00% <100.00%> (ø)

...c/main/java/org/bitcoinj/net/NioClientManager.java
60.86% <0.00%> (-1.09%)
:arrow_down:

...e/src/main/java/org/bitcoinj/core/BloomFilter.java
75.34% <0.00%> (-0.69%)
:arrow_down:

... and 13 more

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

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

This is replaced by #180


Unstack classes are missing

How to reproduce this bug:

Download custom build with flex grid from http://foundation.zurb.com/sites/download.html/

What should happen:
Built CSS should include .medium-unstack and .large-unstack classes as per http://foundation.zurb.com/sites/docs/flex-grid.html#automatic-stacking
What happened instead:
Only .small-unstack is rendered
Foundation Version(s) you are using:
6.4.1

@maggo Thanks for the bug report.
I downloaded a custom build myself and it looks like the other size classes are still getting the small prefix, rather than their correct name. I also tried in a Sass project and its the same behaviour.

I see all the unstack classes except small-unstack with the $breakpoint-classes settings. Is this fixed in 6.4.3/6.4.4?


JASSjr in Go

Adds a Go implementation of JASSjr to go alongside the others.
This is a direct copy of the Java version with minor changes due to language differences
I have verified the output is the same through the following comparisons:

docids.bin is the exact same
lengths.bin is the exact same
vocab.bin is the same size (it is stored in a different order)
postings.bin is the same size (it is stored in a different order)
execute an example query and compare the output is the exact same

Here are some example timings for the various versions on my machine:

Time to index (s)
Time for one query (s)
Time for 50 queries (s)

C++
15
0.35
3.90

Java
18
0.33
1.10

Python
74
0.85
2.80

JavaScript
35
0.75
3.80

Elixir
125
0.85
2.20

Ruby
160
2.30
62.5

Perl
115
0.90
3.60

Go
18
0.25
0.67

The time for 50 queries looks wrong for many of these languages, but I notice it for the Go version because its so small.  Would you be able to please check these?  Thanks.

The time for 50 queries looks wrong for many of these languages, but I notice it for the Go version because its so small. Would you be able to please check these? Thanks.

Hi, the 50 queries time is calculated by using e.g. time go run JASSjr_search.go < 51-100.titles.txt > /dev/null rather than simply repeating the single query. In that case it's a rough measure of index decoding time vs query processing time
I have compared the output of all of the versions against the CPP implementation to ensure they match so as far as I can tell they are legitimate
I suppose the better question is what's slowing down the CPP implementation


New Feature Request - Powermeter

The Plugin Works Perfect with on/off Commands for my Smart Plug with Powermeter.
Is it planned to call up the consumption or current performance?
Thanks

Hi @real-intruder, since your instance is working fine, could you share your wiz-config parameters or even an example flow with me?  Thanks.

@AndyZaa I got it working. For "Interface" I put the name of my wireless network. The "name" of the config node didn't seem to matter, I used WiZ.
When I had two config nodes (even if I wasn't using them), node-red crashed. I had to pick the second one from the drop-down menu in the node and then either "disable" it or delete it. Because node-red was crashing so much, to do that it was necessary to run node-red in safe mode, ie on Windows I typed node-red --safe in the command window. I hope this helps.

Thanks @kccrkccr. When you say you put the name of your wireless network, do you mean like MyWireless_2.4G, not the numerical IP of my router? I don't think I tried the former. The duplicate config nodes issue is interesting. I don't know if I had that because each time I crashed node-red I reloaded the backup. I'm in the midst of adding some other gear so I'll let that get to steady state and then try the WiZ node again.

Yes, exactly, the "human-friendly" name like My_Wireless_2.4G. Nothing I needed to go into my router settings to get. Good luck!


Start animation on mouse move?

Thank you for this great animation! Absolutely amazing!
I like to use this for our website background.
https://www.zahmundzornig.de/zuz
I change some issue for our needs. Her is one thing I can´t solve on desktop view: Actually the animation starts with a mouse click (mousedown).  But I like to start the animation one mousemove. The animation should be start directly after loading only with mouse moving. Any ideas?
Thank you!

this line, move it to the bottom of a function and change it to pointer.moved = Math.abs(pointer.deltaX) > 0 || Math.abs(pointer.deltaY);

There is also can be a problem when deltaX and deltaY can be very high on first frame mouse move which can destroy simulation.

Thank you, that works!
I aware of the high deltaXY. Most of the time it works fine. Sometimes it destroys the simulation. But thats ok for now.

Simulation will crash if mouse is moving in the begining. Which can be solved by delaying the mousemove event listener. It's worth making it configurable:
import WebglFuild from 'webgl-fluid'

WebglFuild(document.querySelector('canvas'), {
  TRIGGER: 'hover', // Can be change to 'click'
})


Mobile

Please make a mobile version for us mobile gamers we want and need thiss

Not sure if a joke but this is a toolset meant to be used with Spelunky HD which is not on mobile phones so it wouldn't make sense to port this to a mobile app.


Fix offline plots outside of notebooks

Currently cufflinks users calling iplot outside of notebooks get an error message about connecting to plotly, even if they user .iplot(asPlot=True) or do cufflinks.go_offline() prior to the .iplot() call.
When examinig the code we notice that asPlot mode implicitly tries to connect to plotly.
This PR changes that behaviour so that users without a plotl account can generate plotly graph in an html file outside of notebooks.
With this PR, in a .py file one can do:
import pandas as pd
import cufflinks
cufflinks.go_offline()
pd.Series([1,2,3]).iplot(asPlot=True)

which will save the figure to an html file an open it.

So the reason df.scatter_matrix() doesn't work is that it has it's own logic to determine how to render the result (currently directly calls ploty's iplot that is meant for notebooks and doesn't support rendering asPlot in an html file unlike df.iplot()). I can duplicate the logic from df.iplot() or I can put the rendering part in a central function. It depends on what @santosjorge thinks is the best. Since it's a decent amount of time to go either way I prefer to have his input so as not to waste time on a PR that's not going to be merged.

This is a great addition @TristanBoudreault . Thank you.
I will also look into the scatter_matrix issue.


Adding more PDF preparers

Includes:

money on hand
medical expenses

This probably shouldn't say "you" for the name (Household resources) :


Schema creation in transaction doesn't roll back on errors

Environment
Knex version: 0.21.2
Database + version: mySQL 8.0.19
OS: macOS
Bug / Feature Request
I'm dynamically creating tables from my app, and would like to rely on transactions to ensure my database doesn't end up in a half-broken state when something fails during the creation of a new table. I expected the following to work (seeing it works amazingly well with "regular" non-schema creation methods):
await database.transaction(async trx => {
  await trx.schema.createTable('example', table => {
    table.increments();
  });

  await trx.insert({ action: 'create', table: 'example' }).into('logs');
  //        ^^^^^^
});

If the second trx call fails, I expected the first to be rolled back. However, it seems like the table creation still persists. Is this a bug, or something that hasn't been implemented / isn't supposed to work?

It is not supposed to work. MySQL database does not support transactions with schema changing DDL queries.  More info about mysql/mariadb implicit commits here https://stackoverflow.com/questions/54179669/transaction-issue-with-knexjs-typescript-and-mariadb/54180024#54180024