'primarySaturation' does not exist in type

Hi:
As below theme setting will cause title issue in main branch
primarySaturation: {dark: 0, light: 0},

use color.saturation in nextra v3 https://nextra.site/docs/docs-theme/theme-configuration#theme-color


Add a section on web apps, and one for static web page generation

I know little about this topic,so  I am not fit to write about it. But a few packages I have stumbled across that should be compared:
HTTP.jl, JSServe.jl, Oxygen.jl, Franklin.jl, Geanie.jl, StaticWebPages.jl

Closed by https://github.com/JuliaPackageComparisons/JuliaPackageComparisons.github.io/commit/2933995ad84def0b259772553492926fedabe0f2. Help still wanted, as the content is quite terrible.


Add TinyLogicFriend firmware for the Raspberry Pi RP2040 Pico board (and other RP2040 boards)

I successfully build the pico-logic project by @markb139, it works great. I build both the RP2040 Pico firmware and the libsigrok driver.
The code uses the following pins on the RP2040 Pico board:

GP15
GP16
GP17
GP18
GP19
GP20
GP21
GP22

The code currently builds using VSCode and Cmake.  I’d rather not require VSCode, so I’m working to understand the files and how to convert this into my existing make file. I’ve been told I can selectively include the right RP2040 SDK files, but haven’t gotten it working yet. (I’m looking at the RP2040 CircuitPython make file for inspiration).
The existing code looks really nice. I’m now working to understand the code a bit and figure how to adapt it to ,y existing framework.
Key differences from the current Cortex M4 code:

This code does straight clock sampling.  I call this “CLOCK” in the mode setting in the libsigrok driver. I will need to verify the data transfer recognizes this mode is CLOCK.
I need to make my data buffer point to the RP2040 DMA data buffer.
It currently uses two different functions depending upon the sampling frequency.

As a note: I'm working on changing the pins used. Will probably make it compile time configurable
Also, the minimum clock for the PIO on the RP2040 is 2kHz and this is why there are two functions. It took a long while to find out why it didn't work at slow rates

Thanks @markb139 .  I’m still working through the details of how best to integrate your code. I’m trying to do it generically enough that I can merge in any future changes that you make. Also I want to get the RP2040 included since your firmware works great and is much faster at sampling than than the initial Cortex M4 code that I’m using (I’m sure it can be improved, but will take some work).
Main objective I have is to get a single sigrok driver that can handle a wide array of boards, like the RP2040 pico and the Cortex M4 boards. If I can integrate the RP2040 code of yours with the same libsigrok driver as I am using for the Cortex M4s, it will suggest that it can handle a decent collection of other boards too.


Add cache to eth_getTransactionReceipt endpoint

Problem
Currently every time eth_getTransactionReceipt is called we call the mirror node for deatils.
However, for a transaction that exists we know the receipt won't change so we should cache it
Solution
Utilize the LRU cache to store the receipt of valid transactions to reduce load on Mirror Node
Alternatives
No response

I saw that we are using this LRU Cache (on-memory) on several other places within the codebase, have we discussed the possibility of using a distributed cache like redis instead of on-memory?
the argument being that every we currently have 2 instances of the relay on hashio and supoosedly the data con instance1 gets cached, there is a 50% chance the next call, where this cached object would be needed will happen in instance2 of the relay. hence having to call the mirror node and not getting full advantange of the cached values.
This problem would exacerbate with more intances in case we need to scale-out in the future.

I think one of our main goals are to keep the relay stateless.

Actually @AlfredoG87 is right. It would be better to have one cache for all instances of the relay. Currently every instance is using it's own cache and inefficiency grows with the number of instances of the relay.

What is the scenario where a single transaction receipt would be requested multiple times? In the most common use-cases a transaction is submitted, then the receipt is requested only once. It could be cached, but I'm not sure how usefull that would be.

@georgi-l95 thanks for your feedback, I was thinking about the stateless thing you mentioned, and here I could add 2 things.  first we could think of the cache as another downstream service, kind of like mirror-node and consensus-node (but a very small one). and second, a distributed cache, adds complexity and points of failure, so I could work on an implementation that only enables cache based on flag on .env properties, and second, in case the cache is down or unreachable, just keeps working as it does right now. we could even add a failover on-memory cache, but I think that would add even more complexity that would be seldomly used and the cost/benefit might not be attractive.

@Ivo-Yankov, yes your suggestion to implement the cache on the client side of the consumer of the mirror-node makes complete sense.
In practice how I like to implement this sort of cache, is to make it transparent to the users consuming the mirror-node, when they in this case call /contracts/results/{hash} the client itself will look first on cache and if not available, will perform the call to the mirror-node, hence transparent to the consumers of the method on mirror-node client.
I am not too familiar with the codebase yet and unsure if we have implementations for clients for each downstream service, but I would look for the simpler (code wise) way to implement it, keeping it transparent.


AnimatedViews..js

Hi!
I've been trying to integrate this https://github.com/react-community/react-native-maps/blob/master/example/examples/AnimatedViews.js to my existing map but since it looks like everything's in the constructor, it seems harder to integrate to my code since I load the markers dynamically.
Does anyone have a tutorial of how to do something similar for dynamic loaded markers?
Image
Thank you.

closing, no issue template

Actually, the Animated View is not working. I tried to copy paste the example and it's not.


Create LICENSE

Fixes #113

Making the executive decision to go with it, can't imagine why we'd do something different than the original docs (which were by default Apache 2.0 since they were in the larger streamlit repo)


3连后1Ba-SoVITS报错

RuntimeError: cuFFT doesn't support signals of half type with compute capability less than SM_53, but the device containing input half tensor only has SM_52

半精度 cuFFT 需要 GPU 架构至少是 SM_53 以上，应该是你的显卡算力不够，所以可以考虑换个设备或者线上方案。

What's your GPU?


email-phone-extractor

Script Title - email-phone-extractor
Brief -
Extract emails and phone numbers from the text from clipboard, to the clipboard
Instructions

Create a new folder for your script and file/folder name should be appropriate.
Create a README.md in your folder for program Instructions
add requirements.txt if needed

Programming Language

[x] Python

Happy Coding

Please validate and assign it to me

So it will based on regex right?

yes

okay, that's fine but make it bit more extensive, like it should save emails and numbers separately in two different csv/excel. And take a text file too as input not just text in terminal, Hope you got it :)

Hey @pawangeek , Looks interesting! Can you assign this to me too?


feat(metrics): monitor s3 sdk retry

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?

Checklist For Contributors

[ ] I have written necessary rustdoc comments
[ ] I have added necessary unit tests and integration tests
[ ] I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features #7934).
[ ] I have demonstrated that backward compatibility is not broken by breaking changes and created issues to track deprecated features to be removed in the future. (Please refer to the issue)
[x] All checks passed in ./risedev check (or alias, ./risedev c)

Checklist For Reviewers

[ ] I have requested macro/micro-benchmarks as this PR can affect performance substantially, and the results are shown.

Documentation

[x] My PR DOES NOT contain user-facing changes.

Click here for Documentation
Types of user-facing changes
Please keep the types that apply to your changes, and remove the others.

Installation and deployment
Connector (sources & sinks)
SQL commands, functions, and operators
RisingWave cluster configuration changes
Other (please specify in the release note below)

Release note

Seems that some CI timeout, might affect performance?

Seems that some CI timeout, might affect performance?

I think so...


Document Image.save_exr() only being available in editor builds

See https://godotforums.org/discussion/comment/51257/#Comment_51257.

Not this documentation change, but what was the reasoning behind save_exr() being removed from templates?

Not this documentation change, but what was the reasoning behind save_exr() being removed from templates?

See https://github.com/godotengine/godot/pull/42947.

Thanks!

Cherry-picked for 3.4.

Cherry-picked for 3.3.3.


support and test 0-pass ccs

this is pretty self-explanatory. et voila!

r? @armintoepfer @dalexander

Won't be online until Monday.
On Aug 4, 2016 8:29 PM, "Lance Hepler"<EMAIL_ADDRESS>wrote:

r? @armintoepfer https://github.com/armintoepfer @dalexander
https://github.com/dalexander
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/PacificBiosciences/unanimity/pull/30#issuecomment-237641598,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABXexuO4CY_RsdRiKBN2-GiMQuv4CIZVks5qci-kgaJpZM4Jc-SL
.

LGTM and straightforward, so I am going to merge.


[BUG] Loading  non-existent psd file causes assert

This reproduces the exception.

#include` <string>
#include <iostream>
#include <filesystem>
#include <OpenImageIO/imageio.h>
using namespace OIIO;

void main()
{

    std::string str("PRP_VillageDirtyRag_A.psd");

    auto in = ImageInput::open(str.c_str());
    if (in)
    {
        const ImageSpec &spec = in->spec();
        int xres              = spec.width;
        int yres              = spec.height;
        int channels          = spec.nchannels;
        // std::vector<unsigned char> pixels(xres * yres * channels);
        // in->read_image(TypeDesc::UINT8, &pixels[0]);
        in->close();
    }
}

This looks suspiciously like #2886, which was fixed for release 2.2.13. Is it possible you are using a version of OIIO that does not incorporate this fix (2.2.12 or earlier, or built from master prior to approximately March 5?

Looks like a duplicate.  I am using  2.2.10, which is the lastest vcpkg version.


Use Bootswatch styling for the navbar and the dropdowns

=>

and

==>

@fisch0920 @terryweiss
Could you take a look at these before and afters and see if you agree its going to be better?
If you think its possible someone might like the before style I can switch the changes based on a flag

I think this looks a lot crisper and more coherent. My advice fwiw is to release this as a fix and not as an option. It was not intentional and trying to describe the legacy behavior in the docs will be a challenge.

@terryweiss great, I was hoping that would be the conclusion


Parameter handling

Hi, I was trying to use this library, but ran into some issues. This branch contains 2 related fixes:

reqwest allows users to set parameters with the same key multiple times, passing them as a slice of pairs. This PR changes params to be passed in the same way, so that the calculated signature matches with the actual parameters passed in the query.
Some servers expect a realm parameter in the Authorization header. This parameter is not used when calculating the signature, however so special handling is needed for it

Note: I changed the type of the values of parameters from Cow<str> to just &str. I think the same can be done in Token, since the values aren't actually modified anywhere, but since I'm quite new to rust I'm not entirely sure.

Are there any update on this ?


Falsy

export type Falsy = false | null | undefined | 0 | ''

export const isTruthy = <T>(val: T): val is Exclude<T, Falsy> => !!val

The Falsy type is an interesting idea which I'd consider including, but the isTruthy function would represent a departure from the stated goals of this library, which is to be a set of purely static type operators with no runtime component.

Yeah that was just a usage example.

Ok, would you like to submit a PR?


RFC: Allow overriding the id field

Summary

I have a type called Story that has an ID that is always a string. However, Fuse auto-generates id: ID!, which (in TypeScript) converts to string | number. That, in turn, means that I'm getting errors from typechecking when I do story.id.replace(…) because .replace doesn't exist on number—but my ID will always be a string!

Proposed Solution

Allow overriding the id field manually:
export const Story = node({
  // …
  fields: t => ({
    id: t.exposeString('id', { nullable: false })
  })
})

That would work, but override it for all types, right?
I have other types that do have numeric IDs.

How is that possible, the base64 identifier is always a string, no?

Oh right, I forgot that we make IDs globally unique while I was reworking an existing app that does story.id.replace—but of course, story.id used to be the non-opaque ID.


slugbuilder: Bump buildpacks

https://github.com/cloudfoundry/staticfile-buildpack/compare/4d52eac5...46a63b58
https://github.com/heroku/heroku-buildpack-ruby/compare/4da52dad...c242c120
https://github.com/heroku/heroku-buildpack-nodejs/compare/3c91e233...da19bdb7
https://github.com/heroku/heroku-buildpack-clojure/compare/8768a8ff...53a17ee5
https://github.com/heroku/heroku-buildpack-python/compare/0a4cc2c4...4293ec55
https://github.com/heroku/heroku-buildpack-java/compare/abb03034...317a4671
https://github.com/heroku/heroku-buildpack-gradle/compare/b74f7d86...034eaeb9
https://github.com/heroku/heroku-buildpack-scala/compare/54505b74...c64e8c6f
https://github.com/heroku/heroku-buildpack-go/compare/0690d3d2...c17053c6

@titanous looks like there is a valid error from the Python buildpack related to PyFlakes (I guess because of the change of the default to Python 3):
remote:        Downloading Flask-0.9.tar.gz (481kB)
packet:          git< \2\33[1G\33[K\33[1G       Complete output from command python setup.py egg_info:
remote:        Complete output from command python setup.py egg_info:
packet:          git< \2\33[1G\33[K\33[1G       Traceback (most recent call last):
remote:        Traceback (most recent call last):
packet:          git< \2\33[1G\33[K\33[1G       File "", line 1, in
remote:        File "", line 1, in
packet:          git< \2\33[1G\33[K\33[1G       File "/tmp/pip-build-cv213mmb/Flask/setup.py", line 62\33[1G\33[K\33[1G       print "Audit requires PyFlakes instal
remote:        File "/tmp/pip-build-cv213mmb/Flask/setup.py", line 62
remote:        print "Audit requires PyFlakes instalpacket:          git< \2led in your system."\33[1G\33[K\33[1G       ^\33[1G\33[K\33[1G       SyntaxError: Missing parentheses in call to 'print'\33[1G\33[K\33[1G
led in your system."
remote:        ^
remote:        SyntaxError: Missing parentheses in call to 'print'
remote:       packet:          git< \2 \33[1G\33[K\33[1G----------------------------------------

remote: ----------------------------------------
packet:          git< \2\33[1G\33[K\33[1G       Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-cv213mmb/Flask/
remote:        Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-cv213mmb/Flask/
packet:          git< \2ERROR: Build failed: exec: job exited with status 1

Fixed in flynn-examples/python-flynn-example#2.


Revert - wait for all snapshots to drain before returning

Add a check that the all snapshots were drained
Add test
Add changelog fragement

I made one suggestion. Otherwise, LGTM.

I've added your fix (thanks for that).


[Discussion] Consider Possibility of turning off Vinnie Algo

The algo seems to have run a bit wild...
See recent posts in #8 for evidence. Specifically this comment
https://github.com/Porthorian/overengineered-eats/issues/8#issuecomment-2035104241

@zamerendino that comment does not exist

It's built with PHP and Crons it needs a rewrite

https://github.com/Porthorian/overengineered-eats/issues/8#issuecomment-2035104241


Chore: add e2e tests for Intercom

Intercom was broken for 2 weeks (see #3876), so I added a test for it.

Enables the Intercom cookies
Opens Intercom
Goes to a Safe App to check that Intercom is disabled
Goes to settings and disables Intercom cookies

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
3841

Relevant Lines:
9463

💛  - Coveralls


Allow sysconfig to override install schemes...

...and provide some compatibility overrides for debian and fedora until they patch sysconfig.
Fixes #12.

@encukou, @doko42 Please have a look and let me know your thoughts, especially about the broad strokes. In particular:

Should distutils attempt to detect Debian/Fedora/other in order to provide compatibility for systems without sysconfig overrides?
Does this approach satisfy the goals of customizing locations?
(Debian) Is there a way to make this work without the --install-layout parameter?

This change doesn't attempt to address the alternate naming for 'egg-info' files (without Python version). That'll be handled in a separate PR if needed.

@encukou, @doko42 Please have a look and let me know your thoughts, especially about the broad strokes. In particular:

Should distutils attempt to detect Debian/Fedora/other in order to provide compatibility for systems without sysconfig overrides?
Does this approach satisfy the goals of customizing locations?
(Debian) Is there a way to make this work without the --install-layout parameter?

This change doesn't attempt to address the alternate naming for 'egg-info' files (without Python version). That'll be handled in a separate PR if needed.

Should distutils attempt to detect Debian/Fedora/other in order to provide compatibility for systems without sysconfig overrides?

I don't think it should. Who konws how many variants there are; Distutils isn't likely to get all of them right.
As written this hardcodes some choices even for systems with sysconfig overrides. The special-casing should only be done if sysconfig doesn't have INSTALL_SCHEMES.

Does this approach satisfy the goals of customizing locations?

For customizing locations on future systems, this looks good. Thank you!
However making 'unix_local' the default everywhere is not right: if Python itself is installed to /usr/local (default when built from source), distutils will now install packages to /usr/local/local. The /local should only be added for the system-installed Python.
Another thing I'm worried about is that distutils.command.install.INSTALL_SCHEMES ended up being API. If anyone tries to use the version here they'll get incomplete/wrong data unless _load_schemes happened to be called already.
Would it be better to move _load_schemes to module level and call it on import?
(The part in _load_schemes where self.install_layout influences global state looks suspicious; moving to a top-level function should help clear that up as well.)

Should distutils attempt to detect Debian/Fedora/other in order to provide compatibility for systems without sysconfig overrides?

I don't think it should. Who konws how many variants there are; Distutils isn't likely to get all of them right.
As written this hardcodes some choices even for systems with sysconfig overrides. The special-casing should only be done if sysconfig doesn't have INSTALL_SCHEMES.

Does this approach satisfy the goals of customizing locations?

For customizing locations on future systems, this looks good. Thank you!
However making 'unix_local' the default everywhere is not right: if Python itself is installed to /usr/local (default when built from source), distutils will now install packages to /usr/local/local. The /local should only be added for the system-installed Python.
Another thing I'm worried about is that distutils.command.install.INSTALL_SCHEMES ended up being API. If anyone tries to use the version here they'll get incomplete/wrong data unless _load_schemes happened to be called already.
Would it be better to move _load_schemes to module level and call it on import?
(The part in _load_schemes where self.install_layout influences global state looks suspicious; moving to a top-level function should help clear that up as well.)

cc @frenzymadness

cc @frenzymadness

I share the intent to help users not to brick their system, having similar patches in Debian and Ubuntu.
The proposed solution however makes 'unix_local' use the same location as somebody doing
./configure --prefix=/usr/local.
Note that --prefix=/usr/local is implicit ( the default). You would now have a common modules dir for two different Python installations. I remember @warsaw suggested to use different locations for that.

I share the intent to help users not to brick their system, having similar patches in Debian and Ubuntu.
The proposed solution however makes 'unix_local' use the same location as somebody doing
./configure --prefix=/usr/local.
Note that --prefix=/usr/local is implicit ( the default). You would now have a common modules dir for two different Python installations. I remember @warsaw suggested to use different locations for that.

As written this hardcodes some choices even for systems with sysconfig overrides. The special-casing should only be done if sysconfig doesn't have INSTALL_SCHEMES.

The _load_schemes does short-circuit if it's able to update the schemes from sysconfig. Can you propose what special casing you would like to avoid additionally?

Another thing I'm worried about is that distutils.command.install.INSTALL_SCHEMES ended up being API. If anyone tries to use the version here they'll get incomplete/wrong data unless _load_schemes happened to be called already.
Would it be better to move _load_schemes to module level and call it on import?
(The part in _load_schemes where self.install_layout influences global state looks suspicious; moving to a top-level function should help clear that up as well.)

I'd like to avoid both "behavior on import" and also help limit use of INSTALL_SCHEMES as API. I agree, changing a global variable seems wrong. In 968d2984b1, I refactor to make the loading of install schemes still lazy, and avoid mutating the global state.

IMO, having a unix_local scheme is incorrect. The Python installation should be self-contained to its prefix and not hijack the /usr/local prefix, which should be reserved for its own Python installation.

This latest draft is minimally invasive, but promises to provide the necessary hook to enable install schemes to be overridden in sysconfig. @FFY00 Can you confirm this approach uses the correct attribute?

Now this change incorporates the recommendation to use sysconfig.get_paths, and adopting this change causes all of the install schemes from sysconfig to be used, which would be fine except that the install schemes there have different semantics than the ones defined here. I found that incorporating the installed_base from sysconfig.get_config_vars satisfies the missing semantics, but I'm not super confident the change is stable.
The tests were only failing on Windows, which led me to realize that it's the keys also that are different between sysconfig and distutils. Distutils uses "unix" whereas sysconfig uses "posix", which means that with the current implementation, only "nt" is getting the new semantics treatment.
I think the best thing would be to also move distutils over to the "posix" naming to consistently apply the shift to sysconfig-based configs... and in fact probably remove any local schemes that are superseded by those in stdilb.

 If only this test about "home installation" is failing, it illustrates that the more common installation schemes, where at least part of this issue (include/headers checks) exists also, aren't failing so aren't covered.
the upstream implementation doesn't include {dist_name} at the end of the include paths.
even the base paths don't match.

I believe this all boils down to detecting that posix_home.include is very different for distutils and sysconfig:
distutils: {base}/include/{implementation_lower}/{dist_name}
sysconfig: '{installed_base}/include/python'
Ignoring for a moment that {implementation_lower} will be lost (that was added very recently in #58), distutils already has very different expectations about that config value.
At this point, I'm not sure it's going to be possible to rely on install schemes from sysconfig. They've drifted too far from what distutils expects to be reliable.
I can imagine that maybe distutils could keep its own copy of the default sysconfig values and the more customized distutils values, and prefer the customized values if the sysconfig values are set to defaults. But what a nightmare would that be?
Until the install schemes specified in sysconfig are aligned with those that distutils expects, this approach is not going to be viable.
It seems to me we have two choices:

come up with another mechanism to allow downstream vendors and python implementations to customize installation schemes.
formalize the install schemes schema to align with distutils' needs

@FFY00 Are those our only choices? How would you recommend to proceed?

Yes, that was the main issue I found when migrating from distutils. It is described here: https://bugs.python.org/issue44445
Currently, I am getting the headers path from distutils and adding it to the scheme dict.
https://github.com/FFY00/installer/blob/ec29913235b2e4dd5ee6a75e38e6302355df8128/src/installer/__main__.py#L118-L128
I think the best way to solve this is, like proposed in the bpo, adding a site-include scheme key and having distutils append the distname to it for the headers path.
This is a major issue with the distutils deprecation and must be solved before 3.12. If distutils cannot use sysconfig for the paths, there is an incompatibility and sysconfig is not a proper replacement.

Thanks for the pointers there. I do indeed see the issue. I do believe it's going to be a long and difficult road to harmonize include and headers, so my instinct here is to do the following:

let distutils still depend on headers
because headers aren't defined in sysconfig, merge the schemes such that keys missing from schemes in sysconfig can be supplied by keys from schemes in distutils.

This approach should provide compatibility while also allowing the downstream packagers to override the headers value.

This sounds reasonable to me as a solution for now, until we fix this properly.

Tests are passing here and also in pypa/setuptools#2875.


ImportError: cannot import name 'module_def_pb2

Stacktrace is below. Honestly, this was working last week and I didn't update anything. Any ideas?
I've looked for the referenced import in the TF Hub project, but I can't actually find it, otherwise I would have tried to fix it and submit a pull request.
`---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
 in ()
1 import tensorflow as tf
----> 2 import tensorflow_hub as hub
3 import matplotlib.pyplot as plt
4 import numpy as np
5 import os
~\PycharmProjects\hub-master\tensorflow_hub_init_.py in ()
59 from tensorflow_hub.estimator import LatestModuleExporter
60 from tensorflow_hub.estimator import register_module_for_export
---> 61 from tensorflow_hub.feature_column import image_embedding_column
62 from tensorflow_hub.feature_column import text_embedding_column
63 from tensorflow_hub.image_util import get_expected_image_size
~\PycharmProjects\hub-master\tensorflow_hub\feature_column.py in ()
23 import tensorflow as tf
24 from tensorflow_hub import image_util
---> 25 from tensorflow_hub import module
26
27 # TODO(b/73987364): It is not possible to extend feature columns without
~\PycharmProjects\hub-master\tensorflow_hub\module.py in ()
21 import tensorflow as tf
22 from tensorflow_hub import module_spec
---> 23 from tensorflow_hub import native_module
24 from tensorflow_hub import tensor_info
25
~\PycharmProjects\hub-master\tensorflow_hub\native_module.py in ()
25
26 from tensorflow_hub import compressed_module_resolver
---> 27 from tensorflow_hub import module_def_pb2
28 from tensorflow_hub import module_impl
29 from tensorflow_hub import module_spec
ImportError: cannot import name 'module_def_pb2'`

Just realized it was trying to use the local files that I cloned instead of the installed TF Hub. Closing.


Combine and transfer older work to new repo

There has been a few disparate efforts developing with Ray both from a users perspective and an OpenShift deployment perspective. With the start of our new Joint OKR we wanted to bring everything together under one Red Hat ET repo we could move forward from. So this PR simple adds the relevant work to date from a couple different repos into this new one.
The additions here consist of work done by @MichaelClifford @erikerlandson @harshad16

For reference, the places this has been compiled from are:

https://github.com/MichaelClifford/moc-ray-demo
https://github.com/erikerlandson/moc-ray-demo
https://github.com/opendatahub-io/odh-manifests/pull/573

lgtm, thanks!


Exceptions during splash screen / net core startup do not exit electron process

Version: 5.30.1

.net core 3.0 - no node js

Target: windows

Steps to Reproduce:

App with long startup (~10s)
Exceptions during startup leave the splash screen open and electron processes have to be manually killed

I tried doing a try/catch with Electron.App.Exit() but this did not close the electron process with the splash screen...

I got an exception when starting my application and I just find out that you can click on the splash to quit/kill the Electron processes.

We need a solution for a global exception handling in .net core... I didn´t mean the ErrorMiddleware... that is only for request/response error handling... but I don´t find a global exception handling...
You must set a try-catch block self. In the catch block you can exit the application.
Alternative, you can use the shortcut [Ctrl] + [C] in the cmd box (thx @OmiCron07) or click on splashscreen and use [Alt] + [F4].
This code works for me, to close the app with splashscreen:
Task.Run(async () =>
{
    try
    {
        throw new Exception("whaaa");
    }
    catch (Exception)
    {
        Electron.App.Exit();
        throw;
    }

    await Electron.WindowManager.CreateWindowAsync();
});


unp4k upgrade rewrite

This is a simplification of #48 and because It hasn't been touched in a while.
The Core Project

[x] Simplify the logging of items in the console project.
[x] Add a static menu at the bottom of the console project with options as well as progress bars for which items are being worked on. This will take far too much time after some research into it
[x] Add options to limit the amount of threads worked.
[ ] Add an actual API with documentation so others can use the libraries.
[x] Setup a workflow to test the build on Windows 11, macOS Ventura & Sonoma (ARM64 Only) as well as Debian and Arch Linux for ISA's x86_64 & ARM64. You cannot currently specify architecture in Github Actions 😔
[ ] Create an optional RAM buffer which dynamically uses free RAM in order to speed up the extraction greatly. This will mainly be reserved for smaller files which are many.
[ ] Add an XML to JSON conversion layer. The user can choose JSON, then the XML will be saved to RAM to save on storage IO.
[x] Remove universal . filter, there shouldnt be a global filter, it should just do everything.

The MAUI Project

[ ] Ability to browse the entire Data.p4k without extraction to storage. (Everything will be within RAM)
[ ] Add ability to extract like you do with the console project but, with more pretty visuals.
[ ] Add ability to extract and forge singular or multiple files or entire directories.
[ ] Add in query search abilities to sift through the Data.p4k.
[ ] Add the ability to merge everything or a query all into a single XML/JSON.

More possibly to come.

Keep at it brother

Keep at it brother

Trying 👍Hopefully will be back at it either next month or the one after. Struggling to find motivation but that may change soon.

Im motivated to continue on unp4k now. just have to wait for the games of this year to pass, I want to be in a consistent state of mind to focus on it. (Next month)

I am finishing off the core project now. I wills tart on the MAUI project when .NET 8 gets released because of how many changes the templates can get and how fiddly it can be sometimes with GUI projects.

The Core project is now complete! Now to wait for .NET 8 MAUI to release!

Decided to change the unit testing to just building the project to see if its in a buildable state, too much hassle to add unit testing in the current state.

New blocking issue for macOS https://github.com/dotnet/maui/issues/17187

If anyone wants to take this up, you obsoluetely can. I just cant find the motivation to continue this with my own projects and such now 😔


samples/red branch is out of date with sdk/red branch.

Samples in red branch need to be updated to the new behavior APIs.

Fixed this in PR#38 in the samples repo.


Crash when right clicking or middle clicking items in remote storage module

The crash report is here : http://pastebin.com/qCdHrxKz
I'm currently using forge 2088, mcjtylib-1.10-2.1.0 and rftools-1.10-5.23

Not a bug in my mods. The crash is in:
at code.elix_x.excore which is a part of FEI.
FEI is known to cause many issues. Please report to them


Allow CUSTOM_AUTH authentication flow via SRP password verification

*Issue #, #79
The custom authentication flow can be used with standard SRP password verification. The initial challenge is done using SRP and the custom authentication can provide MFA challenge such as email.
More information on this can be found here.
https://aws.amazon.com/blogs/mobile/extending-amazon-cognito-with-email-otp-for-2fa-using-amazon-ses/
Description of changes:
Allows the InitiateSrpAuthRequest to work with the custom authentication flow.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This PR was released as part of version 2.3.0


cargo install espup doesn't work on M1

Bug description
Running cargo install espup resulted in espup error: linking with 'cc' failed: exit status: 1, followed by a long dump of gobbledygook, ending with "-llzma" "-framework" "SystemConfiguration" "-framework" "Security" "-framework" "CoreFoundation" "-liconv" "-lSystem" "-lc" "-lm" "-L" "~/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/var/folders/jc/vqhjf43j7gx42h9lj2ngxmzw0000gn/T/cargo-installbTBcBe/release/deps/espup-f117ec602e38a3be" "-Wl,-dead_strip" "-nodefaultlibs"   = note: ld: warning: ignoring file '/opt/homebrew/Cellar/xz/5.4.5/lib/liblzma.5.dylib': found architecture 'arm64', required architecture 'x86_64'

Would you like to work on a fix? [y/n] n (probably beyond my ability)

To Reproduce
Steps to reproduce the behavior:

Macbook Air with M1 Apple Silicon
open terminal, type cargo install espup

Expected behavior
espup to be installed in ~/.cargo/bin
Environment

OS: MacOS 14.2.1
espup version: not sure what version is tied to cargo install

Additional context

I was able to download the binary, and it seems to work fine. Just would have been more convenient if the cargo install option worked as well.

NVM, chatgpt helped me figure out the problem was that at some point when I was setting up rust for developing on the esp board, I had changed the default target for rust, which was causing problems.


Don't activate environments in terminals created by other extensions

Hello,
An R extension has a command to create an R console. If the Python extension is also active and using a virtualenv/conda/etc. environment then text like 'source .../env/bin/activate' is sent to the already running R console. This is confusing because it looks like an R bug. Is there a way to avoid sending Python environment activation commands to terminals created by other extensions?
Related but not the same: #4959
Thank you!
Environment data

VS Code version: 1.45.0
Extension version (available under the Extensions sidebar): 2020.5.80290
OS and version: Ubuntu 18.04
Python version (& distribution if applicable, e.g. Anaconda): Python 3.6.9
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv (but same issue has been observed with conda)
Relevant/affected Python packages and their versions: None
Relevant/affected Python-related VS Code extensions and their versions: R (Yuki Ueda) 1.3.0
Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info #3977): Enabled
Value of the python.languageServer setting: Microsoft

Expected behaviour
New R console does not contain text like
> source [LOCATION]/python-R-test/env/bin/activate
Error: object 'home' not found'

Actual behaviour
New R console contains text like
> source [LOCATION]/python-R-test/env/bin/activate
Error: object 'home' not found'

Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

Install VS Code extension 'R' by Yuki Ueda
Create a folder 'python-R-test' containing empty files 'temp.R' and 'temp.py'.
Create a virtual environment in this folder:

python3 -m venv env

File -> Open Folder..., select 'python-R-test'
Make sure selected Python interpreter is 'env': venv
Use command R: Create R terminal
Observe new R terminal contains text ending in

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

[1] TRUE
> source [LOCATION]/python-R-test/env/bin/activate
Error: object 'home' not found
>

Logs

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

output.txt

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

console.log

Hi @andycraig 👋
Unfortunately there's VSCode doesn't provide anyway for us to know if terminal is created by another extension, so I've to close this. Feel free to file it as a feature request at https://github.com/microsoft/vscode
You can switch off the extension sending activation commands by using the setting "python.terminal.activateEnvironment": false.

@karrtikr Thank you for considering. I have created a feature request for this capability at the VS Code repo: https://github.com/microsoft/vscode/issues/98888

The activation should not be done by sending commands, still waiting on adopting of the environment variable collection API which will let the Python extension activate the environment without sending text. https://github.com/microsoft/vscode-python/issues/11039


Manage output of the column or add custom css/js to main table

Salutare!
I have a question, I'm dealing with a CRUD for slideshow and I would like to see thumbnails of images in table of entries. At the moment I have path of the files I have uploaded I would like to have possibility to build custom types of column output or at least a possibility to add custom JS.
Multumesc

Hi @fencer-md ,
If you're using CRUD 3.0+, you can do that using a custom column type.
If you're using CRUD 2.x, you can do the same thing by overwriting the list.blade.php file (just place one with the same name in your app/views/vendor/backpack/crud folder) and  adding your own column type along the existing ones.
--
Image thumb column type is a pretty common usage, so we'll include it in the core pretty soon. I have some thoughs about this column type, if you create something similar [or better :-) ] and would like to contribute with it, I'd be more than happy to merge your pull request.
Cheers!

Hi @fencer-md ,
Have you got this figured out? Can I close the issue?
Cheers!

I'll go ahead and close this issue so we don't clog the section. Feel free to open it again if you encounter problems or comment if you have follow-ups.


Adding usage

This adds usage to the README. Most of this is taken from the tests, so not sure what is best practice here. Let me know if you need any modifications.
Thanks! :smiley:

My text editor automatically switched to spaces to tabs, and it messed up the formatting on Github.
And unindented the pipe. I am new to Elixir, so didn't know the best practice there. Thanks :smile:

Thank you! :heart:


2D "Tile" transition to random

2D "Tile" transition, is it possible to make it random effect? I mean appearing random on every place instead of top to bottom/left to right? Thanks!

Not without changes to the code, but yes it would be possible with a little work.

Nice! Something like this: http://www.codingjack.com/blades/whiteflashrandom.html

What I like about your work is its responsive. Is it possible for you to do it:)

I don't have the scope anytime soon to look at adding a new effect but you could copy the tile effect and adapt this section to randomise the order of the tiles in the loop https://github.com/p-m-p/jquery-box-slider/blob/master/js/effects/box-slider-fx-tile-3d.js#L113-L147


escaped '&' in macos osx_tools.app Info.plist

This fixes macOS failing to open the Godot application when Info.plist failed to parse.

Thanks!


-debugCallExtension security and obscurity implications

In case of a client-side deployment, this parameter prohibits security through obscurity.
Affected are for example API tokens.
Basically everything a client would need, but shouldn't see or know himself that gets send to or through the extension.
Sincerely Rage

@Ragebone Such obscurity is possible in higher language's like C++, but its not worth the effort in SQF because there are too many security gaps.

obscurity of your extension does not exist because opensource.
what I mean is, if you this deployed on all your clients, you want two things.
to be sure that all API requests come from actual players playing right now.
to be sure that API request from player1 is actually from player1.
solutions for that are API tokens, passwords, some magic sauce that has to be transmitted to the extension at some point to keep it away from player side SQF code.
The only thing you can count on, is that your extension is actually your extension and that it is unmodified, once you have it whitelisted by BE.
Securest place for such information was the extension. Until that command happened.
Possible attack scenario.
I snoop all extension calls. Through that I get all the info that I need to talk to your API.
And I can do all the things now. Depending on how your API is build, that can be very bad.
Not as bad as I thought, I admit that, but still not as awesome.
Sincerely Rage

@Ragebone It is planned (but not listed as issue ^^) that I or "We" behind the project will ask battleye for a whitelisting of this mod.
But why should you send and receive vulnerable data by the client? I think that would bad at all.

some magic sauce that has to be transmitted to the extension at some point to keep it away from player side SQF code.

Do you mean that the extension(s) of the client(s) need an outside server for receiving an key or whatever?
That is maybe not the best idea.
The thing is: Why should vulnerable data be executed by the client? Client side API's in general are more used in things like requesting some unimportant text.
Important requests should be executed by the server.

@Ragebone You could create some kind of session-keys in the API and send an individual key to every new connected client - but no matter what you are trying to do as an workaround for denying requests in simple internet browsers, you could replicate every request of the client.

Are there any more comments?

@TheMysteriousVincent  no further questions and comments, except that Arma s output does only contain the function argument when using the new syntax.
... callExtension ["function", ["hello World"]];
Does print  something like:
"... called Estension .... [function]".
So as long as BIS doesn't change that, we can still transmit "secret" stuff to the extension.

@Ragebone security on the client side should always be ensured by api-side auth.
Meaning a standard logging (or passwordless-auth) which then returns a token for further use.
This login then might be verified on the server side by deprecating tokens of disconnected players and then propagating this to some kind of auth proxy.
Meaning, verifying the player/user is always required by the "user" (dev) and not the extension itself.
And obscurity is never a solution, neither are hardcoded secrets etc. It is not to hard, to secure this with a little experience of building api's and some mixing of server and client side functions.
But I'm happy to discuss this further if you like to (voice too).

closed because of deprecation


Remove mocking of metadata schema service

pass-auth: https://github.com/eclipse-pass/pass-auth/pull/14


Refactor around substrate currency unit concept

check unit flow for USD / TFT and document/comment around

[ ] billing
[ ] pricing policy
[ ] minting?
[ ] ...

TBD

Was gradually done so no need to anymore


Update to latest Odin version, LLVM17 and enable MacOS again

This PR upgrades to the latest odin build, and makes use of LLVM 17. On windows it comes by default, mac has llvm@17 in brew and on linux it's installed with a script.
Note: the linux and macos odin releases are zipped twice for some reason, so the additional unzipping is a temporary hack.
MacOS was previously disabled because of deprecated llvm@11 but now works again.
I also upgraded to checkouts@v4 since v3 triggered deprecated warnings.

Woah thanks!
The LLVM version situation is a bit confusing on Odin. I seem to remember that anything beyond LLVM 14 isn't supported... But I guess if it works it works ;)

Should I also upgrade the gen_bindings workflow in the main sokol repo?

That would be much appreciated, thanks!

From what I understand Odin doesn't support LLVM 15 and 16 because of breaking and unstable API changes, which stabilized later. Odin added support for 17 few months ago because it has huge performance improvements


passing environment variables to the kernel

xref pydata/xarray#3567
I'm trying to pass PYTHONPATH from conf.py to the kernels in order to make sure the notebook is executed using the source checkout instead of a version pulled by dependencies.
I tried to modify $PYTHONPATH (as recommended in the related #96) by editing os.environ in conf.py, which seems to work:
root = pathlib.Path(__file__).absolute().parent.parent
sys.path.insert(0, str(root))
os.environ["PYTHONPATH"] = str(root)

is this something I can rely on? If so, maybe you should add that to your documentation?

TBH, I don't know.
nbsphinx is simply calling nbconvert.preprocessors.ExecutePreprocessor in whatever context Sphinx extensions (source parsers, to be more specific) are running.
I don't know whether ExecutePreprocessor provides a way to explicitly provide environment variables. Or whether there are any guarantees regarding os.environ.
You would have to ask the nbconvert team about that.
There is a related option https://nbsphinx.readthedocs.io/en/latest/usage.html#nbsphinx_execute_arguments, but I guess this doesn't help in your case?

I looked into ExecutePreprocessor, which uses jupyter_client.KernelManager to start the kernels. KernelManager.start_kernel passes the contents of os.environ to the kernel (after removing PYTHONEXECUTABLE), so I guess that's a yes?

I guess so.
It's really hard to give any guarantees, because there are so many moving parts.
But I'd say it seems to be currently a reasonable way to achieve what you want.
Whether it will work in the future, nobody knows.

If so, maybe you should add that to your documentation?

You should add that to the documentation!
There is already a section "Controlling Notebook Execution" where this would fit.

I'm trying to figure out where to add this: would that be a new subsection (i.e. linking to a new notebook in executing-notebooks.ipynb)?

Yes, I think a new notebook would be nice for that.
This new notebook could probably also mention nbsphinx_execute_arguments (or not?).


Small t-ray scanner resprite

About the PR

I haven't changed it much, but the top is now dynamic and flips open when active. Saw the idea through a /tg/ resprite and wanted to incorporate that into ours. Also, the sprite was quite off-centered so I fixed that too.
Media

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog
:cl: Ubaser

tweak: T-Ray scanner sprite is tweaked.

Damn you didn't keep the /tg/ moth antenna


DBZ-3218

https://issues.redhat.com/browse/DBZ-3218

LGTM.
These aesthetic issue with the method names is not very important.

@rk3rn3r, pushed one more commit which I believe takes care of your last point.

@rk3rn3r, @ani-sha, could you take another look?

@rk3rn3r going once, going twice, ...

@rk3rn3r, ok, so the thing is,  I don't want to invest much more time into this. Would you agree that this PR is an improvement over the current situation? If so, I'd suggest we merge it, and we log a follow-up with the cleaner proposal you made. WDYT?

I agree, it is definitely an improvement.

Ok, merging then. Logged https://issues.redhat.com/browse/DBZ-3324 with your proposal as a follow-up. Thanks all!


Add attribute tags to various fields

#78
I think it would be helpful if we could specify attribute tags for various hardcoded values in GMAS. I'm working on a proof of concept, but I'm curious if there's any technical or design blockers for this feature. I'm also super new to this project, so please let me know if there are better intended solutions for these use cases.
Here's some examples:
Effect Delay, Duration, Period
Example use cases:

Declare an effect that grants a player a running speed boost. Attribute allows duration to be made longer or shorter
Declare an effect that increases weapon ammunition by 1 (e.g. reload a shotgun). Attribute allows reload speed to be modified

Possible Issues:

adds a lot of fields in the effect data

if duration, delay, or period change, we may want to update the end time for the effect

Effect Modifier Value
Example use cases:

Declare an effect that recharges stamina over time. Create an attribute tag for stamina recharge speed and use that as the value for the recharge effect. Attribute allows modifying stamina recharge speed
Declare an effect that does fire damage to a player over time. Create an attribute tag representing the damage for the effect. Attribute allows modifying fire damage on player (e.g. fire resistance)

Possible Issues:

May be confusing to users, as there are two attribute tags that can be configured
Can run into issues with infinite recursion if there is a loop attributes referencing each other via modifiers

Cooldown Time
Example use cases:

Create an ability that allows the player to jump. When the player lands, the effect completes. When the effect completes, commit the cooldown. Attribute allows the cooldown duration between jumps to vary

Possible Issues:

If the cooldown time changes, we may want to update the end time for the cooldown

For the issue of Adding a lot of field in the effect data, I think at some point GMAS should take the GAS route and work with effect "module" that you can add or remove as needed.


[BUG] using -a crashes when having removed multi-line imports

Description: Running pycln with the -a flag crashes with SyntaxError when it has cleaned up a multiline import
To Reproduce:

Take this code snippet:
pycln_test.py

# -*- coding: utf-8 -*-
from urllib.parse import quote, unquote, urlparse

from flask import Blueprint, Response, abort, flash, g, jsonify, redirect, render_template, request, session, url_for
from flask_wtf import FlaskForm
from wtforms import (FieldList, Form, FormField, HiddenField, PasswordField, RadioField, SelectField, StringField,
                     SubmitField, TextAreaField, validators)
from wtforms.fields.html5 import EmailField, TelField
from wtforms.validators import DataRequired, Email, InputRequired, Length, Optional, Required

used = [Blueprint, Response, abort, redirect, render_template, request, session, url_for,
        FlaskForm, FieldList, FormField, SelectField, StringField, SubmitField, TextAreaField,
        Required]

Run this Pycln command:

$ pycln -a pycln_test.py

Error traceback or unexpected output (if present):

  pycln_test.py:2:0 'from urllib.parse import quote' has removed! 🔮
  pycln_test.py:2:0 'from urllib.parse import unquote' has removed! 🔮
  pycln_test.py:2:0 'from urllib.parse import urlparse' has removed! 🔮
  pycln_test.py:4:0 'from flask import flash' has removed! 🔮
  pycln_test.py:4:0 'from flask import g' has removed! 🔮
  pycln_test.py:4:0 'from flask import jsonify' has removed! 🔮
  pycln_test.py:6:0 'from wtforms import Form' has removed! 🔮
  pycln_test.py:6:0 'from wtforms import HiddenField' has removed! 🔮
  pycln_test.py:6:0 'from wtforms import PasswordField' has removed! 🔮
  pycln_test.py:6:0 'from wtforms import RadioField' has removed! 🔮
  pycln_test.py:6:0 'from wtforms import validators' has removed! 🔮
  pycln_test.py:8:0 'from wtforms.fields.html5 import EmailField' has removed! 🔮
  pycln_test.py:8:0 'from wtforms.fields.html5 import TelField' has removed! 🔮
  pycln_test.py:9:0 'from wtforms.validators import DataRequired' has removed! 🔮
  pycln_test.py:9:0 'from wtforms.validators import Email' has removed! 🔮
  pycln_test.py:9:0 'from wtforms.validators import InputRequired' has removed! 🔮
  pycln_test.py:9:0 'from wtforms.validators import Length' has removed! 🔮
  pycln_test.py:9:0 'from wtforms.validators import Optional' has removed! 🔮
  pycln_test.py 18 imports has removed! 🚀
Traceback (most recent call last):
  File "/Users/mango/  File "/Users/mango/  File "/Users/mango/  File "/Users/mango/   sys.exit(app())
  File "/Users/mango/my_project/my_projectPassion/venv/lib/python3.8/site-packages/typer/main.py", line 214, in __call__
    return get_command(self)(*args, **kwargs)
  File "/Users/mango/my_project/my_projectPassion/venv/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/Users/mango/my_project/my_proj  File "/Users/mango/my_project/my_proj  File "/Users/mango/my_project/my_proj  Filerv  File "/Users/mango/my_project/my_proj  File "/Users/mango/my_project/my_proj  File ".8  File "/Users/mango/my_project/my_proj  File "/Users/mango/my_project/my_proj el  File "/Users/mango/my_project/my_proj  File "/Users/mango/my_project/my_proj  File "/th  File "/Users/mango/my_project/my_proj  File "/Users/mango/my_project/my_proj  *args, **kwargs)
  File "/Users/mango/my_project/my_projectPassion/venv/lib/python3.8/site-packages/typer/main.py", line 497, in wrapper
    return callback(**use_params)  # type: ignore
  File "/Users/mango/my_project/my_projectPassion/venv/lib/python3.8/site-packages/pyc  File "/Users/mango/my_project/my_projectPassion/venv/lib/pythrce)
  File "/Users/mango/my_project/my_projectPassion/venv/li  File "/Users/mango/my_project/my_projectPassioor  File "/Users/mango/my_project/my_projectPassion/venv/li  File "/Users/mango/my_project/my_projectPassioor  File "/Users/mrs  File "/Users/mango/my_project/netiga/lib/python3.8/site-packages/pycln/utils/refactor.py", line 165, in _output
    fixed_lines = Refactor.remove_useless_passes(fixed_lines)
  File "/Users/mango/my_project/my_projectPassion/venv/lib/python3.8/site-packages/pycln/utils/refactor.py", line 85, in remove_useless_passes
    tree = ast.parse("".join(source_lines))
  File<EMAIL_ADDRESS>line 47, in parse
    return compile(source, filename, mode, flags,
  File "<unknown>", line 7
    from wtforms.validators import Required
    ^
SyntaxError: invalid syntax

Unexpected fixed code:

# -*- coding: utf-8 -*-
from urllib.parse import quote, unquote, urlparse

from flask import Blueprint, Response, abort, flash, g, jsonify, redirect, render_template, request, session, url_for
from flask_wtf import FlaskForm
from wtforms import FieldList, FormField, SelectField, StringField, SubmitField, TextAreaField
from wtforms.fields.html5 import EmailField, TelField
from wtforms.validators import DataRequired, Email, InputRequired, Length, Optional, Required

used = [Blueprint, Response, abort, redirect, render_template, request, session, url_for,
        FlaskForm, FieldList, FormField, SelectField, StringField, SubmitField, TextAreaField,
        Required]

Expected behavior:

Description: The could to run to completion without Exception
Expected output (if present):

  pycln_test.py:2:0 'from urllib.parse import quote' has removed! 🔮
  pycln_test.py:2:0 'from urllib.parse import unquote' has removed! 🔮
  pycln_test.py:2:0 'from urllib.parse import urlparse' has removed! 🔮
  pycln_test.py:4:0 'from flask import flash' has removed! 🔮
  pycln_test.py:4:0 'from flask import g' has removed! 🔮
  pycln_test.py:4:0 'from flask import jsonify' has removed! 🔮
  pycln_test.py:7:0 'from wtforms.fields.html5 import EmailField' has removed! 🔮
  pycln_test.py:7:0 'from wtforms.fields.html5 import TelField' has removed! 🔮
  pycln_test.py:8:0 'from wtforms.validators import DataRequired' has removed! 🔮
  pycln_test.py:8:0 'from wtforms.validators import Email' has removed! 🔮
  pycln_test.py:8:0 'from wtforms.validators import InputRequired' has removed! 🔮
  pycln_test.py:8:0 'from wtforms.validators import Length' has removed! 🔮
  pycln_test.py:8:0 'from wtforms.validators import Optional' has removed! 🔮
  pycln_test.py 13 imports has removed! 🚀

All done! 💪 😎
13 imports has removed, 1 file has changed.

Expected fixed code (if present):

# -*- coding: utf-8 -*-

from flask import Blueprint, Response, abort, redirect, render_template, request, session, url_for
from flask_wtf import FlaskForm
from wtforms import FieldList, FormField, SelectField, StringField, SubmitField, TextAreaField
from wtforms.validators import Required

used = [Blueprint, Response, abort, redirect, render_template, request, session, url_for,
        FlaskForm, FieldList, FormField, SelectField, StringField, SubmitField, TextAreaField,
        Required]

Environment:

Python Version: Python 3.8.6
Pycln Version: pycln, version 1.0.3
OS Type: MacOs 11.6 (Big Sur)

Hi @perfa, this issue has been fixed. The fix will take effect in the next release (soon). Thank you for the feedback. I'm happy to see you around.


how to get and set pose parameters (roll/pitch/yaw angles) in python demo.py?

I successfully built the python module. The demo.py worked fine that I can see the isomap it generated. However there is two questions:

Why is the isomap rotated CCW 90 degrees?
how can I get and set the pose parameters (RPY) in demo.py eos.fitting.fit_shape_and_pose()

I appreciate this great project and your help!

sorry I posted at wrong place.


useHead body style attributes cleared when changing pages

Environment
"@unhead/vue": "^1.9.13",
"nuxt": "^3.12.1"

Reproduction
Stackblitz
Describe the bug
Created an issue in the unhead repo https://github.com/unjs/unhead/issues/357 but not getting any response there. Felt it's appropriate to mention it here since it affects nuxt users quite a bit.
I am currently using useHead to update body style attributes for different pages. It was not working for some reason, the style would be cleared no matter what.
After some investigation, I found that the styles are cleared because the tracked scope includes the value of the attribute, making the previous pending side effect unable to be removed.
https://github.com/unjs/unhead/blob/c0ca0c1cc196928b40952d525f7f5e0d9edd54ce/packages/dom/src/renderDOMHead.ts#L111-L120
Additional context
No response
Logs
No response

I think tracking it in unhead seems to be the best way (cc @harlan-zw)

@DevChanQ Please be mindful that I like most open-source maintainers have limited bandwidth in responding to issues. Creating another issue won't expedite the process.
Closing as the existing issue is tracking.

My apologies 🤝


Silence operator on read

Is the silence operator still needed?
(also the one mentioned in #87 )
https://github.com/fruux/sabre-xml/blob/master/lib/Reader.php#L65
https://github.com/fruux/sabre-xml/blob/master/lib/Reader.php#L145
It seems the issue/bug has been fixed
https://bugs.php.net/bug.php?id=64230
Testing your example code from that bug report
does not throw errors here (php 5.6.14)

If it's fixed in the minimum supported PHP version then I agree that it can be removed. Currently the minimum version is 5.4.1. I would be willing to increase the revision number as the minimum version, if the bug is fixed somewhere in 5.4.x. Any idea if it was?

i have no idea, and can not deduce it from the bug report either.

Here's the github commit:
https://github.com/php/php-src/commit/dc3d360a0ff8c17cb2ce2030813d30b578249be9
Tags: 5.4.22, 5.5.5, 5.6.0. A two-year old release.. I think I can be ok with increasing the minimum versions to those in the next minor version (1.5.0).

Unfortunately we recently found out that this was still needed to support hhvm, which emits errors regardless of this setting.
So I'm reverting this until it's also fixed in hhvm.


Add support for retries from scalatest

This is only added in ScenarioWeb at this point, would be good to put this up so I can see how Jenkins reacts to retries. Might need additional work in tstash to handle this a bit nicer
@johnduffell @jamesoram

:+1: looks good!

I am using the TestRetries trait in my tests, I hope this does not conflict.

I'll come have a chat with you in a sec, your solution might work for me
also
On 6 February 2015 at 11:46, James Oram<EMAIL_ADDRESS>wrote:

I am using the TestRetries trait in my tests, I hope this does not
conflict.
—
Reply to this email directly or view it on GitHub
https://github.com/guardian/scala-automation/pull/43#issuecomment-73225396
.

--

Visit theguardian.com. On your mobile and tablet, download the Guardian
iPhone and Android apps theguardian.com/guardianapp and our tablet editions
theguardian.com/editions.  Save up to 57% by subscribing to the Guardian
and Observer - choose the papers you want and get full digital access.
Visit subscribe.theguardian.com
This e-mail and all attachments are confidential and may also be
privileged. If you are not the named recipient, please notify the sender
and delete the e-mail and all attachments immediately. Do not disclose the
contents to another person. You may not use the information for any
purpose, or store, or copy, it in any way.  Guardian News & Media Limited
is not liable for any computer viruses or other material transmitted with
or as part of this e-mail. You should employ virus checking software.
Guardian News & Media Limited is a member of Guardian Media Group plc. Registered
Office: PO Box 68164, Kings Place, 90 York Way, London, N1P 2AP.  Registered
in England Number 908396


cmd/go: 'go list -m' wildcards don't work with version queries

go get supports ... wildcards, and supports version queries such as @latest, and allows the user to combine the two in the obvious way.
go list -m supports ... wildcards, and supports version queries such as @latest. However, it errors out when both are used in the same argument. It should not — it should instead interpret those queries analogous to how go get does.
$ go version
go version devel go1.17-a7e16abb2 Thu Apr 8 07:33:58 2021 +0000 linux/amd64

$ go mod init example.com
go: creating new go.mod: module example.com

$ go get -d golang.org/x/tools/...@latest
go: downloading golang.org/x/tools v0.1.0
go: downloading golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4
go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
go: downloading golang.org/x/net v0.0.0-20201021035429-f5854403a974
go: downloading golang.org/x/mod v0.3.0
go: downloading golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9
go: downloading github.com/yuin/goldmark v1.2.1
go get: added golang.org/x/tools v0.1.0

$ go list -m golang.org/x/tools/...
golang.org/x/tools v0.1.0

$ go list -m golang.org/x/tools@latest
golang.org/x/tools v0.1.0

$ go list -m golang.org/x/tools/...@latest
go list -m: golang.org/x/tools/...@latest: malformed module path "golang.org/x/tools/...": invalid path element "..."

$

I noticed this while updating go list for #36460.
CC @jayconrod @matloob

Hi @bcmills, I'll work on it.

hey @justplesh would it be OK if I can send a pull request for this? I am almost done with the fix.

@jamdagni86 sure, if you have already done it - it's great.


Uniform null pointer check.

Uniform null pointer check.
Modification:
Use ObjectUtil uniform null pointer check.
Result:
Less code.

A big pull request. I reviewed it myself and modified some incorrect checks.

hi @normanmaurer , I checked all checkNotNull calls and merged them. Could you please review it again?

@normanmaurer  fixed. pls check.

@netty-bot test this please

@carryxyh please fix test errors.

@netty-bot test this please

@normanmaurer Fixed.
It seems netty-bot doesn't follow my instructions. :)

@netty-bot test this please

@carryxyh thanks a lot!


Group tomatoes in cycles in the start focusing tab and take a break tab

Currently that tab shows how many tomatoes completed today in total.
Beyond that, this update will make it easy to tell

How many cycles completed today
Where I am in current cycle

agreed, and it also resets at midnight. if you're working at 11pm, you lose track of your previous tomatoes. it would be great if it could show you current session (current cycle)


:sparkles: Add version subcommand and refactor code

What this PR does / why we need it:
This PR adds version subcommand into the csctl-openstack and refactors code
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #10
Special notes for your reviewer:
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
TODOs:

[ ] squash commits
[ ] include documentation
[ ] add unit tests

Unfortunately, I didn't have enough time to test this PR thoroughly. I only tested the get method and the version subcommand, which works correctly.


update atob dependency due to security issue

please merge this fix to use a newer version of the atob library. The current one (2.0.3 has an memory issue (https://snyk.io/test/npm/atob/2.0.3?severity=high&severity=medium&severity=low)
Afterwards please create an new minor version update too, to let all dependent projects pick up this fix too.
Thanks,
Stefan

The version range already allows newer versions. Upgrade your dependencies (including package-lock.json or yarn.lock) if you have an older version.
❯ snyk test source-map-resolve

Testing source-map-resolve...
Organisation: lydell
Package manager: npm
Target file: package.json
Open source: yes

✓ Tested source-map-resolve for known vulnerabilities, no vulnerable paths found.

Is it best practice to update the version ranges if a security vulnerability is found?

Hi,
yes - for security related updates it helps other projects. Just think of the case someone uses this library within its own project already. Installed version is 2.0.1 (vulnerable). Now it adds your library (or another library depending on yours like chokidar) to its project.
If your lib has an dependency of ^2.0.0 "npm install" checks the current installed version 2.0.1 - dependency fullfilled, nothing done. The other project stays insecure...
If your lib has an dependency of at least 2.1 (secure) the currently installed one will be updated too. Therefore this helps even people not careing about security...
Unfortunately (due to newer npm versions package-lock.json) it does not help for projects already having your lib as dependency... Only new ones benefit from this autmatically or entire reinstallations ...
On the other hand - an updated dependency that needs lots of code rewrites may get an higher version incremenet on your side (may be the minor number, not the third), but thats not the case here...
Thanks,
Stefan Seide

Released in 0.5.2.


Option to add title to svg to make key words searchable in GitHub

Originally posted by @SoumayaMauthoorMOJ in https://github.com/excalidraw/excalidraw/discussions/8213

I would love to pick this up sometime in September :-)

If @sumau is not taking, I can take this up!

Please do @Julias0 :-)


Issue while trying to run graph_models django 1.9

Just recently switch to django 1.9 and have been getting the following traceback with this command?
Is this supported in 1.9?
python manage.py graph_models -a -o myapp_models.png
Cheers, Rylan
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 350, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 342, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 195, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 39, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/usr/local/lib/python2.7/dist-packages/django_extensions/management/commands/graph_models.py", line 8, in
from django_extensions.management.modelviz import generate_dot
File "/usr/local/lib/python2.7/dist-packages/django_extensions/management/modelviz.py", line 15, in
from django.db.models import get_models
ImportError: cannot import name get_models

Could you try with the git version of django-extensions ? this should be solved.
P.S. You can expect a new release on PyPi very soon.

Great thank you!


Use correct holland vars in config template

Currently the role execution fails with an undefined
variable. This fixes that.
Solves https://github.com/rsoprivatecloud/openstack-ops/issues/19

Thanks for the fix.


add const

Great update thank you! :tada:
All clear; merged! :+1: :smiley_cat:

In future PRs, please make sure to add a name / alias for your commits.
You have yours currently set to Your name for this project.
You can do so with the command git config user.name "!put in the quotes your name!"


Runtime Error?

I tried update_deps.bat.. not working please help me with the steps. I am not really good with this stuff

Hi, I have the same problem. I'm running macOS Sierra 10.12.2.
Same thing occurs after running update_macdeps.command.

If this is still an issue in the latest version, please open a new issue.


fix: current bug when trying to publish an app on app store with apollo inside

Description:
There is a bug on Apollo build, that is preventing clients from pushing apps to the App Store.
Checklist:

[] My PR follows the contribution guidelines of this project
[] My PR is free of third-party dependencies that don't comply with the Allowlist
[] I have commented my code, particularly in hard-to-understand areas
[] I have made corresponding changes to the documentation
[] I have added tests that prove my fix is effective or that my feature works
[] I have checked the PR title to follow the conventional commit specification

Code Coverage

Total Project Coverage
91.69%
:white_check_mark:

:tada: This PR is included in version 1.2.13 :tada:
The release is available on:

v1.2.13
GitHub release

Your semantic-release bot :package::rocket:


0.92.0 - BOM Camera component causing errors

Home Assistant release with the issue:
0.92.0
Last working Home Assistant release (if known):
new feature.
Operating environment (Hass.io/Docker/Windows/etc.):
Hass.io, python 3.5.
Component/platform:
BOM Camera; https://www.home-assistant.io/components/bom/#camera
Description of problem:
I found lots of errors in my homeassistant.log. I was not sure what it was but I disabled the bom cameras and restarted and the errors have disappeared. There are 100's of lines of these errors going through a lot of different components.
2019-04-25 14:12:10 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.1099204368] Error handling message: Unknown error
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/websocket_api/decorators.py", line 17, in _handle_async_response
    await func(hass, connection, msg)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/camera/__init__.py", line 524, in websocket_camera_thumbnail
    image = await async_get_image(hass, msg['entity_id'])
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/camera/__init__.py", line 125, in async_get_image
    image = await camera.async_camera_image()
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/bom/camera.py", line 73, in camera_image
    return self._cam.current
  File "/srv/homeassistant/lib/python3.5/site-packages/bomradarloop/__init__.py", line 118, in current
    self._current = self._get_loop()
  File "/srv/homeassistant/lib/python3.5/site-packages/bomradarloop/__init__.py", line 202, in _get_loop
    frames = self._get_frames()
  File "/srv/homeassistant/lib/python3.5/site-packages/bomradarloop/__init__.py", line 158, in _get_frames
    pool0 = multiprocessing.dummy.Pool(self._frames)
  File "/usr/lib/python3.5/multiprocessing/dummy/__init__.py", line 117, in Pool
    return ThreadPool(processes, initializer, initargs)
  File "/usr/lib/python3.5/multiprocessing/pool.py", line 749, in __init__
    Pool.__init__(self, processes, initializer, initargs)
  File "/usr/lib/python3.5/multiprocessing/pool.py", line 194, in __init__
    self._result_handler.start()
  File "/usr/lib/python3.5/threading.py", line 844, in start
    _start_new_thread(self._bootstrap, ())
RuntimeError: can't start new thread
2019-04-25 14:12:10 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.1099204368] Error handling message: Unknown error
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/websocket_api/decorators.py", line 17, in _handle_async_response
    await func(hass, connection, msg)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/camera/__init__.py", line 524, in websocket_camera_thumbnail
    image = await async_get_image(hass, msg['entity_id'])
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/camera/__init__.py", line 125, in async_get_image
    image = await camera.async_camera_image()
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/bom/camera.py", line 73, in camera_image
    return self._cam.current
  File "/srv/homeassistant/lib/python3.5/site-packages/bomradarloop/__init__.py", line 118, in current
    self._current = self._get_loop()
  File "/srv/homeassistant/lib/python3.5/site-packages/bomradarloop/__init__.py", line 202, in _get_loop
    frames = self._get_frames()
  File "/srv/homeassistant/lib/python3.5/site-packages/bomradarloop/__init__.py", line 163, in _get_frames
    pool1 = multiprocessing.dummy.Pool(len(wximages))
  File "/usr/lib/python3.5/multiprocessing/dummy/__init__.py", line 117, in Pool
    return ThreadPool(processes, initializer, initargs)
  File "/usr/lib/python3.5/multiprocessing/pool.py", line 749, in __init__
    Pool.__init__(self, processes, initializer, initargs)
  File "/usr/lib/python3.5/multiprocessing/pool.py", line 168, in __init__
    self._repopulate_pool()
  File "/usr/lib/python3.5/multiprocessing/pool.py", line 233, in _repopulate_pool
    w.start()
  File "/usr/lib/python3.5/multiprocessing/dummy/__init__.py", line 48, in start
    threading.Thread.start(self)
  File "/usr/lib/python3.5/threading.py", line 844, in start
    _start_new_thread(self._bootstrap, ())
RuntimeError: can't start new thread

I could see no outward symptom from these, the cameras still seemed to work but I restarted and removed the BOM Camera config and the errors are gone.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
  - name: Newcastle
    platform: bom
    location: Newcastle
  - name: Sydney
    platform: bom
    location: Sydney

Traceback (if applicable):
You can find my full log file here; https://warvm-mail01.space-marine.org/hass.log.tar.gz
Additional information:

cc @maddenp

@jurgenweber, in your full log I see many instances of MemoryError, so I suspect that you may be running out of memory -- the other errors are probably side effects of that root cause.
Are you in a position to do any monitoring of your system's memory to see how much is available? Can you run without issues with just a single camera defined instead of two?
Also, is there any chance that you are running a 32-bit Python? I'm testing on Linux and can check this like so:
% python -c 'import platform ; print(platform.architecture())'
('64bit', 'ELF')

IIRC A 32-bit Python would only be able to access 4GB or memory, regardless of how much physical RAM you have.

yeah, I hear you.
# source /srv/homeassistant/bin/activate
 # which python
/srv/homeassistant/bin/python
 # python -c 'import platform ; print(platform.architecture())'
('32bit', 'ELF')

Well that is annoying, I would of thought hassbian would handle this.
Right now
# free -m
              total        used        free      shared  buff/cache   available
Mem:            927         238         246          46         442         577
Swap:            99           8          91

Is there something in hass to monitor mem usage? Still, should recompile python for this venv.

A friend was testing an earlier version of the BOM camera code that did more caching for performance, and he ran into similar MemoryError issues. I removed the caching to use less memory and the errors went away. There may be other changes that could further favor memory over time, but an image-processing component probably has some baseline memory requirement that's going to be bigger than many other components.
I don't suppose that a 64-bit Python is going to help if you've only got a gig of RAM to begin with. I'm pretty sure that my friend was lately running several cameras at once without issues. I think he's also using a Raspberry Pi, though I'm not sure which model or how much memory it has. Are you using any other components that might also be vying for a lot of memory?
I will be curious to see if this is a problem for others and whether I'll need to look at trying to squeeze the memory footprint further.

so! I turned one of the BOM Cameras back on for now.
cat /sys/firmware/devicetree/base/model
Raspberry Pi 3 Model B Rev 1.2

I added some stuff from https://www.home-assistant.io/components/systemmonitor/ and we can see how it goes. I seems to be hanging out at the half a gig free mark; https://take.ms/syD5b
My HASS is pretty huge, to give you an idea:
# grep ^\\w /home/homeassistant/.homeassistant/configuration.yaml
homeassistant:
alert:
arlo:
automation: !include_dir_merge_list automation/
binary_sensor: !include binary_sensor.yaml
camera:
config:
cloud: !include cloud.yaml
cloudflare:
conversation:
cover:
daikin:
device_tracker:
fastdotcom:
ffmpeg:
frontend:
geo_location:
googlehome:
group: !include groups.yaml
history:
http:
input_boolean:
input_number:
light: !include light.yaml
lovelace:
logbook:
logger:
media_player:
mqtt:
notify:
owntracks:
person:
recorder:
rest_command:
script: !include scripts.yaml
sensor: !include sensor.yaml
shell_command:
speedtestdotnet:
sun:
system_health:
system_log:
timer:
transmission:
tts:
updater:
vacuum:
weather:
zone:
zwave: !include zwave.yaml

I also have two hikvision security cameras that I stream, etc. Not sure what else would consume a lot of mem, maybe all the zwave nodes? I have about 30.
I did have the jupyter data science stuff running on this as well, which I turned off for now. I am not using it.
Yes, you are correct with only a GB of RAM 64bit Python does seem pointless. I didn't even notice until you mentioned it.

ok, it has started again:
2019-04-26 14:06:05 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.1271915184] Error handling message: Unknown error
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/websocket_api/decorators.py", line 17, in _handle_async_response
    await func(hass, connection, msg)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/camera/__init__.py", line 524, in websocket_camera_thumbnail
    image = await async_get_image(hass, msg['entity_id'])
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/camera/__init__.py", line 125, in async_get_image
    image = await camera.async_camera_image()
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/bom/camera.py", line 73, in camera_image
    return self._cam.current
  File "/srv/homeassistant/lib/python3.5/site-packages/bomradarloop/__init__.py", line 118, in current
    self._current = self._get_loop()
  File "/srv/homeassistant/lib/python3.5/site-packages/bomradarloop/__init__.py", line 202, in _get_loop
    frames = self._get_frames()
  File "/srv/homeassistant/lib/python3.5/site-packages/bomradarloop/__init__.py", line 163, in _get_frames
    pool1 = multiprocessing.dummy.Pool(len(wximages))
  File "/usr/lib/python3.5/multiprocessing/dummy/__init__.py", line 117, in Pool
    return ThreadPool(processes, initializer, initargs)
  File "/usr/lib/python3.5/multiprocessing/pool.py", line 749, in __init__
    Pool.__init__(self, processes, initializer, initargs)
  File "/usr/lib/python3.5/multiprocessing/pool.py", line 194, in __init__
    self._result_handler.start()
  File "/usr/lib/python3.5/threading.py", line 844, in start
    _start_new_thread(self._bootstrap, ())
RuntimeError: can't start new thread
2019-04-26 14:06:15 WARNING (MainThread) [pydaikin.appliance] ServerDisconnectedError 3
2019-04-26 14:08:15 ERROR (Thread-20) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/transmission/__init__.py", line 81, in refresh
    tm_data.update()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/transmission/__init__.py", line 117, in update
    self.torrents = self._api.get_torrents()
  File "/srv/homeassistant/lib/python3.5/site-packages/transmissionrpc/client.py", line 583, in get_torrents
    return list(self._request('torrent-get', {'fields': arguments}, ids, timeout=timeout).values())
  File "/srv/homeassistant/lib/python3.5/site-packages/transmissionrpc/client.py", line 247, in _request
    http_data = self._http_query(query, timeout)
  File "/srv/homeassistant/lib/python3.5/site-packages/transmissionrpc/client.py", line 205, in _http_query
    result = self.http_handler.request(self.url, query, headers, timeout)
  File "/srv/homeassistant/lib/python3.5/site-packages/transmissionrpc/httphandler.py", line 82, in request
    return response.read().decode('utf-8')
MemoryError
2019-04-26 14:10:01 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/transmission/__init__.py", line 81, in refresh
    tm_data.update()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/transmission/__init__.py", line 117, in update
    self.torrents = self._api.get_torrents()
  File "/srv/homeassistant/lib/python3.5/site-packages/transmissionrpc/client.py", line 583, in get_torrents
    return list(self._request('torrent-get', {'fields': arguments}, ids, timeout=timeout).values())
  File "/srv/homeassistant/lib/python3.5/site-packages/transmissionrpc/client.py", line 247, in _request
    http_data = self._http_query(query, timeout)
  File "/srv/homeassistant/lib/python3.5/site-packages/transmissionrpc/client.py", line 205, in _http_query
    result = self.http_handler.request(self.url, query, headers, timeout)
  File "/srv/homeassistant/lib/python3.5/site-packages/transmissionrpc/httphandler.py", line 82, in request
    return response.read().decode('utf-8')
MemoryError

but Free Mem never went under 400mb; https://take.ms/cM0MI
Also nothing in dmesg suggesting it is killing things for OOM.

As a test, I ran HA with 8 BOM cameras (and no other components) for 2 hours, and saw a slow decrease in available memory, from ~2.2GB to ~1.9GB, over that period. I was also running one web browser (this is all on my laptop), though, so I will test again with no applications at all running, and for longer -- probably overnight. Maybe there's a memory leak in the component, which might be more pronounced on a system with less memory. I'll see if I can find anything.

yeah, sorry. I had a busy weekend. If you like you can ping me on discord.
I am thinking the same sort of thing, with it off you can see my usual mem usage; https://take.ms/EbQNP

I did another test and had similar results, so I'm feeling fairly confident that there's a memory leak. I want to test the underlying bomradarloop PyPI package that provides most of the functionality, independent of HA, and see if I can reproduce there, too. To my dismay, I see that there have been multiple reports of memory leaks in the Pillow package, which I'm using for image manipulation, so the problem could be there. But I will assume it's my bug to fix until I know more.

I think I found (and fixed) the problem, and made some other small changes to try to be less demanding on memory. PR #23599 should fix this. At least, I ran HA with my browser open with 10 cameras for 13 hours and saw (unlike before) no creep-up in memory use.

Yeah, just confirming This is working great now for me also.


Fix FrameworkInfo::user documentation

Add a note about the user being required in case the HTTP Scheduler API
is used.

Please update include/mesos/mesos.proto as well.

Done.

LGTM. :-)

Hopefully improved.

Thanks for the clarification @ktf .
This patch LGTM!


Update az cli output to show correct amount of supported versions

The cli output doesn't match the defined supported versions in the doc. Could we update that, it looks like current cli output is accurate.

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

ID: ec484163-5d73-af3a-3d7b-9e0d421d2824
Version Independent ID: 42da7aed-a33d-e331-fb7f-4fb4b40e5813
Content: Supported Kubernetes versions in Azure Kubernetes Service
Content Source: articles/aks/supported-kubernetes-versions.md
Service: container-service
GitHub Login: @sauryadas
Microsoft Alias: saudas

Thanks for the feedback!


适配多biz多partition查询

适配多biz多partition查询

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: WenyiDuan:x: wjp719You have signed the CLA already but the status is still pending? Let us recheck it.


Typescript incomplete definition 'pm:new|edit" event

Could it be that I found some incomplete Typescript definition?
The pm:create and pm:edit events have a layer property. This layer should have a toGeoJSON function available?
 map.on("pm:create", (event) => {
  setMarker(event.layer.toGeoJSON());
});

Duplicate of #945
You need to cast the layer:
map.on("pm:create", (e) => {
  if(e.shape === 'Polygon'){
     (e.layer as Polygon).toGeoJSON();
  }
}


Flickr - redirect to webview, If i deny authorizing in the conformation page.

Description:
Team,
My application redirect to Flickr webview, if i tap NO THANKS in the authorizing conformation page. I haven't get any callback when i tap NO THANKS button.
i'm using OAuth1Swift.
  func doOAuthFlickr(completion: @escaping (Bool) -> ()){
       let oauthswift = OAuth1Swift(
           consumerKey:    ConsumerKeys.consumerKey,
           consumerSecret: ConsumerKeys.consumerSecret,
           requestTokenUrl: "https://www.flickr.com/services/oauth/request_token",
           authorizeUrl:    "https://www.flickr.com/services/oauth/authorize",
           accessTokenUrl:  "https://www.flickr.com/services/oauth/access_token"
       )
       oauthswift.authorizeURLHandler = getURLHandler()
       let _ = oauthswift.authorize(
       withCallbackURL: URL(string: "oauth-swift://oauth-callback/flickr")!) { result in
           switch result {
           case .success(let (credential, _, parameters)):
               let userId = parameters["user_nsid"] as! String
               let u_id = userId.removingPercentEncoding ?? ""
               print(u_id)
               completion(true)
           case .failure(let error):
               print(error.description)
           }
       }
   }

OAuth Provider? (Twitter, Github, ..):
Flickr
OAuth Version:

[ 2.1.0] Version 1
[ ] Version 2

OS (Please fill the version) :

[x] iOS :
[ ] OSX :
[ ] TVOS :
[ ] WatchOS  :

Installation method:

[ ] Carthage
[x ] CocoaPods
[ ] Swift Package Manager
[ ] Manually

Library version:

[ ] head
[ ] v2.1.0
[ ] v2.0.0
[ ] v1.4.1
[ ] v1.2 (Swift 4.0)
[ ] other: (Please fill in the version you are using.)

Xcode version:

[ x] 11.x (Swift 5.1)

[ ] 10.x (Swift 5.0)

[ ] 10.x (Swift 4.1)

[ ] 9.3 (Swift 4.1)

[ ] 9.0 (Swift 4.0)

[ ] other: (Please fill in the version you are using.)

[ ] objective c

the important part here is the url handler used, I see code from demo , not the handler used
I close the issue but you could open new one with more information


Add required dependency on "six" package

Currently, setup.py yields a non-working installation if the "six" package is not already installed. This PR adds "six" to install_requires so installations in minimal environments work out the box.

Thanks for the pull request, @msegado! I've created OSPR-4879 to keep track of it in JIRA, where we prioritize reviews. Please note that it may take us up to several weeks or months to complete a review and merge your PR.
Feel free to add as much of the following information to the ticket:

supporting documentation
Open edX discussion forum threads
timeline information ("this must be merged by XX date", and why that is)
partner information ("this is a course on edx.org")
any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.
Please let us know once your PR is ready for our review and all tests are green.

@msegado Thank you for your contribution. Is this ready for our review?

@msegado thanks.  Do you have details of the six-less failure?  I don't see why it would be required for installation.

@nedbat Sorry, my wording wasn't the clearest... it's not required during installation, but it's required for the installed package to work and so should be specified as an abstract dependency in install_requires. Now that I look at things in more detail though, it looks like codejail dropped support for python 2 in version 3.0.0, so the correct course of action here is probably to remove uses of six rather than add it as a dependency. Thoughts?

...here's what dropping the non-unsupported python 2 compatibility code looks like: https://github.com/msegado/codejail/commit/8afa508a1979ec564b5759f6550046be68c9ace9 . If you like that approach better I can close this issue and open a PR for that branch instead.

I understand your point about the Python 2 code.  This is a simple PR, we can merge it, and then take on the removal of Python 2.

@msegado 🎉 Your pull request was merged!
Please take a moment to answer a two question survey so we can improve your experience in the future.


Possible BUG: Rectangle.contains does not work as expected

Hi,
Analyzing source code of Rectangle.contains(int, int) it seems there is a problem when width and height are equal to 1. Here the code:
public boolean contains (float x, float y) {
return this.x <= x && this.x + this.width >= x && this.y <= y && this.y + this.height >= y;
}
Let me do an example.
Suppose I have a rectangle with x=5, y=5, width=1 and height=1. If it would be a rectangle on a screen it could be a single pixel.
Then I have the point x=5,y=6 (like a pixel at ccoordinate 5,).
Obviously it is not contained into the rectangle. The problem is that according to the code it is, because all conditions are true, in fact:
5<=5 is true
5+1>=5 is true
5<=6 is true
5+1>=6
Am I right?

The Rectangle coordinates have nothing to do with pixels. Perhaps try your example with fractional numbers to better understand why this is not an issue.

Hi
I know rectangle  is not relative to a pixel. It was just an example. If my understanding is correct Rectangle should work with integer numbers. I Hoped to do a favor but I only receiver a non answered.  Can you exploit why You think this code should work. If I use Point in a space whee rectangle start in x, y and end in width-1 height-1 as in whatever frame work this code cannot work. I am 100% sure. Probable there is an assumption that I do not know and I would like to understand.

This is an issue tracker, please use the forum or IRC if you need help or have a question.
See also: https://github.com/libgdx/libgdx/wiki/Issue-Tracker.

For what it is worth, all other frameworks (that I've used) do require that the tested point be less than the extents of the rectangle to be contained. The same parameters to standard Java, .NET, and Android rectangle contains methods all return false while we return true. I agree that this result is unexpected, when considering how other frameworks work in similar scenarios.

Afaik the java, .NET and Android rectangle classes all target canvas graphics and have integer coordinates. Or do you mean that there's a comparable class that also uses floating point coordinates and doesnt include the top/right edges in its contains method? In my experience with (collision) shapes you'd rather have a false positive than a false negative due to floating point errors. E.g. Bullet uses a margin to make the shape slightly bigger to compensate for possible floating point errors.

Yes, they all have float variants which do not include the bottom/right edges (since they are y-down). I don't necessarily think that we need to change anything (other than maybe documenting it) - but I can see how it would be unexpected.


Wrong response with "docker node inspect" command

The command docker node inspect --format '{{ .ManagerStatus.Leader }}' self says that it returns FALSE, but it's not correct, because the next command using docker node inspect --pretty self (the same node self) displays TRUE.
File: edge/engine/reference/commandline/node_inspect.md

Thanks for sharing this issue. This issue is old and the topic has changed. The current output provides examples to show the type and format of the information that may be displayed. The values themselves are irrelevant and may vary depending on your environment. If you feel this is still an issue, please let us know.


Create intermediate Fasta index and bgzip files in a separate directory...

The directory containing ".fasta" file, is the default location for creating(htslib) Fasta index and bgzip files. This is a problem in environments such as Clara deploy, where the directory containing the input files is read-only.
These change circumvent this issue by allowing creation of these files in a temp/output directory. Temp directory is an optional input parameter(-o).

@rilango Since these changes are mostly for supporting deploy SDK, we can add a requirement right now that the index needs to be generated before running the deploy pipeline. It's likely that we'll move away from htslib soon in which case we won't need a tmpdir for the index files anyway. So let's defer these changes for now till we stabilize on the fasta IO library.

This change may be not required as we are moving away from hts based parser.


New map on mobile device, cannot open receiver

At this moment in cannot open a receiver like i could before on my mobile device.
Steps to reproduce:
Open servers.fmdx.org
Zoom in on map to receiver
Tap on receiver
Expected results:
Get a new screen with connect button
Current result:
Looks like multiple screens overlays
It does work as expected on my Windows PC

Clear cache solved the issue