support for botd zoo

This pull request introduces changes necessary to support broyster in botd zoo. Mainly exposing some APIs and refactoring parts to take values explicitly instead of taking them from e.g. env file. I tried to not introduce major breaking changes.

Mainly exposing some APIs and refactoring parts to take values explicitly instead of taking them from e.g. env file.

Could you please work with @fpkamp to ensure that no class or function reads the credentials from the environment variables (gets them from the arguments instead)? For Karma, please create a separate function that only reads the credentials from the environment variables, and add this function to the dependency collection.

Mainly exposing some APIs and refactoring parts to take values explicitly instead of taking them from e.g. env file.

Could you please work with @fpkamp to ensure that no class or function reads the credentials from the environment variables (gets them from the arguments instead)? For Karma, please create a separate function that only reads the credentials from the environment variables, and add this function to the dependency collection.

The previous implementation of BrowserStackSessionFactory loaded username and access token from .env file. In this PR I delegated store authentication data in CapabilitiesFactory which is passed to BrowserStackSessionFactory, but CapFactory and BrowserStackSessionFactory themselves don't load any env variables.
Regarding dependency collection, makeBrowserStackSessionFactor is already added. I think I shouldn't add makeCapabilitiesFactory
@Finesse

The previous implementation of BrowserStackSessionFactory loaded username and access token from .env file. In this PR I delegated store authentication data in CapabilitiesFactory which is passed to BrowserStackSessionFactory, but CapFactory and BrowserStackSessionFactory themselves don't load any env variables.
Regarding dependency collection, makeBrowserStackSessionFactor is already added. I think I shouldn't add makeCapabilitiesFactory

@xnerhu You made makeBrowserStackSessionFactor read the credentials from environment variables (they don't necessarily come from an .env file). I meant creating a separate Karma dependency for the credentials to fix the problem that you want to solve in all classes and functions. It is not your scope, I'll do it, never mind.

@xnerhu What do you think about these changes?

Looks good, @Finesse should we wait for the documentation?

Looks good, @Finesse should we wait for the documentation?

@fpkamp Yes. If you'd like, feel free to add the documentation.


JSON error with Elasticsearch.Net, number token expected, actual: null

NEST/Elasticsearch.Net version:
7.7
Elasticsearch version:
7.4
Description of the problem including expected versus actual behavior:
A clear and concise description of what the bug is.
Running a .SpanNear query and the response causes a json parsing error:
BadResponse:
Elasticsearch.Net.Utf8Json.JsonParsingException: expected:'Number Token', actual:'null', at offset:2734
Steps to reproduce:

Run the query
Get the bad response

Expected behavior
Expect the query to return documents from ElasticSearch server.
Provide ConnectionSettings (if relevant):
Provide DebugInformation (if relevant):
FailureReason: Unrecoverable/Unexpected BadResponse while attempting POST on http://localhost:9200/ri/_search?typed_keys=true

[1] BadResponse: Node: http://localhost:9200/ Exception: JsonParsingException Took: 00:00:00.1345613

Audit exception in step 1 BadResponse:
Elasticsearch.Net.Utf8Json.JsonParsingException: expected:'Number Token', actual:'null', at offset:2734
at Elasticsearch.Net.Utf8Json.JsonReader.ReadInt64()
at Elasticsearch.Net.Utf8Json.JsonReader.ReadInt32()
at Deserialize(Object[] , JsonReader& , IJsonFormatterResolver )
at Elasticsearch.Net.Utf8Json.Resolvers.DynamicMethodAnonymousFormatter1.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)    at Nest.SourceFormatter1.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)
at Deserialize(Object[] , JsonReader& , IJsonFormatterResolver )
at Elasticsearch.Net.Utf8Json.Resolvers.DynamicMethodAnonymousFormatter1.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)    at Nest.ReadAsFormatter2.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)
at Elasticsearch.Net.Utf8Json.Formatters.CollectionFormatterBase4.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)    at Deserialize(Object[] , JsonReader& , IJsonFormatterResolver )    at Elasticsearch.Net.Utf8Json.Resolvers.DynamicMethodAnonymousFormatter1.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)
at Nest.ReadAsFormatter2.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)    at Deserialize(Object[] , JsonReader& , IJsonFormatterResolver )    at Elasticsearch.Net.Utf8Json.Resolvers.DynamicMethodAnonymousFormatter1.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)
at Elasticsearch.Net.Utf8Json.JsonSerializer.Deserialize[T](Byte[] bytes, Int32 offset, IJsonFormatterResolver resolver)
at Elasticsearch.Net.Utf8Json.JsonSerializer.Deserialize[T](Stream stream, IJsonFormatterResolver resolver)
at Nest.DefaultHighLevelSerializer.Deserialize[T](Stream stream)
at Elasticsearch.Net.DiagnosticsSerializerProxy.Deserialize[T](Stream stream)
at Elasticsearch.Net.ResponseBuilder.SetBody[TResponse](ApiCallDetails details, RequestData requestData, Stream responseStream, String mimeType)
at Elasticsearch.Net.ResponseBuilder.ToResponse[TResponse](RequestData requestData, Exception ex, Nullable1 statusCode, IEnumerable1 warnings, Stream responseStream, String mimeType)
at Elasticsearch.Net.HttpConnection.Request[TResponse](RequestData requestData)
at Elasticsearch.Net.RequestPipeline.CallElasticsearch[TResponse](RequestData requestData)
at Elasticsearch.Net.Transport`1.Request[TResponse](HttpMethod method, String path, PostData data, IRequestParameters requestParameters)
Inner Exception: expected:'Number Token', actual:'null', at offset:2734
Elasticsearch.Net.Utf8Json.JsonParsingException: expected:'Number Token', actual:'null', at offset:2734
at Elasticsearch.Net.Utf8Json.JsonReader.ReadInt64()
at Elasticsearch.Net.Utf8Json.JsonReader.ReadInt32()
at Deserialize(Object[] , JsonReader& , IJsonFormatterResolver )
at Elasticsearch.Net.Utf8Json.Resolvers.DynamicMethodAnonymousFormatter1.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)    at Nest.SourceFormatter1.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)
at Deserialize(Object[] , JsonReader& , IJsonFormatterResolver )
at Elasticsearch.Net.Utf8Json.Resolvers.DynamicMethodAnonymousFormatter1.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)    at Nest.ReadAsFormatter2.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)
at Elasticsearch.Net.Utf8Json.Formatters.CollectionFormatterBase4.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)    at Deserialize(Object[] , JsonReader& , IJsonFormatterResolver )    at Elasticsearch.Net.Utf8Json.Resolvers.DynamicMethodAnonymousFormatter1.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)
at Nest.ReadAsFormatter2.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)    at Deserialize(Object[] , JsonReader& , IJsonFormatterResolver )    at Elasticsearch.Net.Utf8Json.Resolvers.DynamicMethodAnonymousFormatter1.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)
at Elasticsearch.Net.Utf8Json.JsonSerializer.Deserialize[T](Byte[] bytes, Int32 offset, IJsonFormatterResolver resolver)
at Elasticsearch.Net.Utf8Json.JsonSerializer.Deserialize[T](Stream stream, IJsonFormatterResolver resolver)
at Nest.DefaultHighLevelSerializer.Deserialize[T](Stream stream)
at Elasticsearch.Net.DiagnosticsSerializerProxy.Deserialize[T](Stream stream)
at Elasticsearch.Net.ResponseBuilder.SetBody[TResponse](ApiCallDetails details, RequestData requestData, Stream responseStream, String mimeType)
at Elasticsearch.Net.ResponseBuilder.ToResponse[TResponse](RequestData requestData, Exception ex, Nullable1 statusCode, IEnumerable1 warnings, Stream responseStream, String mimeType)
at Elasticsearch.Net.HttpConnection.Request[TResponse](RequestData requestData)
at Elasticsearch.Net.RequestPipeline.CallElasticsearch[TResponse](RequestData requestData)
at Elasticsearch.Net.Transport`1.Request[TResponse](HttpMethod method, String path, PostData data, IRequestParameters requestParameters)
Exception:
Elasticsearch.Net.UnexpectedElasticsearchClientException: expected:'Number Token', actual:'null', at offset:2734
---> Elasticsearch.Net.Utf8Json.JsonParsingException: expected:'Number Token', actual:'null', at offset:2734
at Elasticsearch.Net.Utf8Json.JsonReader.ReadInt64()
at Elasticsearch.Net.Utf8Json.JsonReader.ReadInt32()
at Deserialize(Object[] , JsonReader& , IJsonFormatterResolver )
at Elasticsearch.Net.Utf8Json.Resolvers.DynamicMethodAnonymousFormatter1.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)    at Nest.SourceFormatter1.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)
at Deserialize(Object[] , JsonReader& , IJsonFormatterResolver )
at Elasticsearch.Net.Utf8Json.Resolvers.DynamicMethodAnonymousFormatter1.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)    at Nest.ReadAsFormatter2.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)
at Elasticsearch.Net.Utf8Json.Formatters.CollectionFormatterBase4.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)    at Deserialize(Object[] , JsonReader& , IJsonFormatterResolver )    at Elasticsearch.Net.Utf8Json.Resolvers.DynamicMethodAnonymousFormatter1.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)
at Nest.ReadAsFormatter2.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)    at Deserialize(Object[] , JsonReader& , IJsonFormatterResolver )    at Elasticsearch.Net.Utf8Json.Resolvers.DynamicMethodAnonymousFormatter1.Deserialize(JsonReader& reader, IJsonFormatterResolver formatterResolver)
at Elasticsearch.Net.Utf8Json.JsonSerializer.Deserialize[T](Byte[] bytes, Int32 offset, IJsonFormatterResolver resolver)
at Elasticsearch.Net.Utf8Json.JsonSerializer.Deserialize[T](Stream stream, IJsonFormatterResolver resolver)
at Nest.DefaultHighLevelSerializer.Deserialize[T](Stream stream)
at Elasticsearch.Net.DiagnosticsSerializerProxy.Deserialize[T](Stream stream)
at Elasticsearch.Net.ResponseBuilder.SetBody[TResponse](ApiCallDetails details, RequestData requestData, Stream responseStream, String mimeType)
at Elasticsearch.Net.ResponseBuilder.ToResponse[TResponse](RequestData requestData, Exception ex, Nullable1 statusCode, IEnumerable1 warnings, Stream responseStream, String mimeType)
at Elasticsearch.Net.HttpConnection.Request[TResponse](RequestData requestData)
at Elasticsearch.Net.RequestPipeline.CallElasticsearch[TResponse](RequestData requestData)
at Elasticsearch.Net.Transport1.Request[TResponse](HttpMethod method, String path, PostData data, IRequestParameters requestParameters)    --- End of inner exception stack trace ---    at Elasticsearch.Net.Transport1.Request[TResponse](HttpMethod method, String path, PostData data, IRequestParameters requestParameters)
at Elasticsearch.Net.ElasticLowLevelClient.DoRequest[TResponse](HttpMethod method, String path, PostData data, IRequestParameters requestParameters)
at Nest.ElasticClient.DoRequest[TRequest,TResponse](TRequest p, IRequestParameters parameters, Action1 forceConfiguration)    at Nest.ElasticClient.Search[TDocument](ISearchRequest request)    at Nest.ElasticClient.Search[TDocument](Func2 selector)

@LlewellynJones are you able to capture the JSON of the response? It looks like the error may be coming from a document type to which the _source is mapped, so the JSON of the response and the POCO you're using will help. You can capture the response JSON with something like fiddler

I'm upgrading from 5.3 which I understand defaulted null integer values to zero. This is not the case in 7.0. So, in the code I made all the int fields nullable for the index class and that fixed the issue.

Thanks for the update @LlewellynJones. If there are null values for int in the _source, then you're correct that these should be modelled as int? on the POCO in 7.x.


Humanoid rig from UE4 does not animate as expected (e.g shoulder separates)

Forum thread with expectations: https://forum.playcanvas.com/t/fbx-import-to-pc-not-working/17840
Note that the left shoulder is 'dislocated'
https://user-images.githubusercontent.com/16639049/107971911-f924e400-6faa-11eb-84a8-95584f528879.mp4
This is with GLBs as model and animation. The same occurs with the Anim Component too.
Project: https://playcanvas.com/editor/scene/1091710
Viewer: https://playcanvas.com/viewer?load=https://playcanvas.com/api/assets/42621772/file/SK_Mannequin.glb?branchId=ddeacd00-a903-49ea-8103-a25feaf4967c&load=https://playcanvas.com/api/assets/42621778/file/Unreal%2520Take.glb?branchId=ddeacd00-a903-49ea-8103-a25feaf4967c

I tried the fbx files for both mesh and animation in Unity, and getting the same. This points to the issue with the fbx assets.

Maya

Closed as the issue is on the exporter, not PlayCanvas.


Premade logos for companies

Have a few premade logos that players can choose for there companies. Maybe a larger version and an emoji version to have it appear wherever the company is mentioned.
Backend:

Would need to store what icon a company has
Endpoints to change icon

Frontend:

Command to change icon
Display icon where needed

Could we just store the image as part in our project? Since they probably won't be big either

Storing on the frontend is good, but a better practice is on the backend.
Is the ability to change the company icon allowing any image, or only approved ones? If the latter, then the users will need a command to view the different logos available to add to their company.

I would say only approved ones as that would take away the complexity of needing to store the images that they upload.


Best way to debug plugin

Hey I'm wondering what's the best way to debug plugin? I can debug GO locally but have no idea to do that with plugin? Cloud you shed some light on this?
Thanks
David

I have added a response in our public Slack channel.  https://cloudfoundry.slack.com/archives/C032824SM/p1500313993174976


Rework dialect pass plugin registration & new axiom tagging

Dialects should implement thorin_get_dialect_info to provide a DialectInfo that exposes the necessary info and function ptrs for working with it.
Dialect is the driver side wrapper around the handle / DialectInfo.
The PipelineBuilder is used to compose the various optimization phases in multiple PassMans.
Additionally, as required for some further testing / moving forward with the lowering of dialect axioms, I reworked the identification of axioms.
It now mangles the dialect name into 6 bytes, uses 1 byte to store the index of the axiom of a dialect (group, e.g. Wrap) and 1 byte for the flag (Wrap::add). This 64bit int is stored in the fields of the axiom.
Additionally, the header emission is extended to write out the first 7 bytes as the dialect::Tag enum values and provide the infrastructure for matching the dialects' axioms using dialect::isa<dialect::Tag::group>(def) and dialect::isa<dialect::Tag::group>(dialect::group::flag, def).
This currently duplicates some code inside the generated headers that can likely be simplified away when the general (and not only parsed) approach for axioms uses all 64bits for the axiom identification.
Todo:

support dependencies between passes.
support creating/defining normalizers for axioms from dialects.
maybe support adding additional phases (PassMans) to the pipeline from the plugin to allow doing orthogonal lowering phases..

Ideas regarding dependencies:

only support depending on built-in passes, register those first with the PassMan and allow querying them from the PassMan,
else, if relying on other dialects is allowed

rely on the order of dialect arguments and therefore the registration of plugins with the pass manager and query dependencies from the PassMan.
register all passes with the PipelineBuilder and allow getting dependencies through it.

Additional phases:

4 extension points: before opt, after opt, before codegen prep, after codegen prep
each just a vector of PassMans - caution: possible indeterminism?

Ideas regarding normalizers:

rely on named resolution, i.e. have .ax :std.icmp .. , normalize_icmp; and then in the parser use the Dialect to query for the symbol normalize_icmp.
since we bootstrap the dialects anyways, we can add a map from axiom Tag to function ptr to the DialectInfo that can be used to get the corresponding normalizer function in the parser.

Looks already promising :)
I was wondering whether we can simplify this whole Query, Tag2Def, ... trickery. Since we are generating the header file anyway, we probably need less template magic. I will try to come up with a mock up tomorrow or so.


[RFC] Genesis ledger export

Explain your changes:

Add an RFC on genesis ledger export as part of the hard fork procedure.

Explain how you tested your changes:

Read the document.

Closes the issue: https://github.com/MinaFoundation/mina/issues/95

I added a few more words on compatibility issues that arise from exporting epoch data and also from some recent changes to the berkeley branch.

@Sventimir In order to deal with the difference in epoch seed representation, we can just have a simple migration tool that is aware of both versions of the epoch seed representation, and convert between those 2. We can import the V1 type from compatible back into berkeley, and then just write a little function that maps between them, and package it up in a binary in the src/apps folder. A simple jq command (or python script) can process the json ledger as part of the hard fork package generation step, converting the epoch seeds using this custom executable.

@Sventimir In order to deal with the difference in epoch seed representation, we can just have a simple migration tool that is aware of both versions of the epoch seed representation, and convert between those 2. We can import the V1 type from compatible back into berkeley, and then just write a little function that maps between them, and package it up in a binary in the src/apps folder. A simple jq command (or python script) can process the json ledger as part of the hard fork package generation step, converting the epoch seeds using this custom executable.

Looking at the changes to the relevant code (src/lib/mina_base/epoch_seed.ml and src/lib/data_hash_lib/data_hash.ml) I cannot find the root cause of the change of the encoding. It doesn't seem to lie in src/lib/snarky either, which means it must be even deeper, probably in the underlying Rust libraries. Is this correct? Do you know which dependency should I look into?

@Sventimir In order to deal with the difference in epoch seed representation, we can just have a simple migration tool that is aware of both versions of the epoch seed representation, and convert between those 2. We can import the V1 type from compatible back into berkeley, and then just write a little function that maps between them, and package it up in a binary in the src/apps folder. A simple jq command (or python script) can process the json ledger as part of the hard fork package generation step, converting the epoch seeds using this custom executable.

Looking at the changes to the relevant code (src/lib/mina_base/epoch_seed.ml and src/lib/data_hash_lib/data_hash.ml) I cannot find the root cause of the change of the encoding. It doesn't seem to lie in src/lib/snarky either, which means it must be even deeper, probably in the underlying Rust libraries. Is this correct? Do you know which dependency should I look into?

It turns out there's no incompatibility after all. It's just I used the wrong base58_check function to serialize the seeds. Sadly the compiler is aware that EpochSeed.t and StateHash.t are the same type under the hood (they're not abstracted away properly) and so it couldn't catch this error,

!ci-build-me

!ci-build-me

!ci-build-me

!ci-build-me


Add closing Messages after tapback

Except when messages was the front application when running the workflow.
If the user has overwritten Command Tab with something else it might not work.
Ideally we would have an action which activates the previous app instead of relying on Command Tab.

Please provide the packaged workflow with your changes. Not as part of the PR, but just attach it here so I can get a better high level sense of what you’re pursuing.

Thank you for the submission, but this is a suboptimal way to go about it. Aesthetically, that branching for the frontmost app looks weird, but technically you don’t need ⌘⇥ (and in fact should actively avoid it, GUI automation should be kept to the bare minimum) nor checking if the app is the same or not. All you need is to reopen whatever app was frontmost at the time; doesn’t matter if it already was Messages.
Like so.
You’re welcome to use that or your own version, but no guarantees yet that I’ll release those changes. I probably won’t but may reconsider, as I’m testing it and find it a positive that one stays in Messages after the reaction.

Thanks for your feedback. I got the idea of opening the previous app after creating the PR.
With a short delay before switching to the previous app it works as expected.
Would you be open to add it as a configuration option? Something like this:

Thinking about it some more it might be the best idea to add a Cmd+Enter mapping which sends Messages into the background.
No configuration needed and one can decide on execution whether to open messages or stay in context.


Add imagePullSecrets to init-db-schema

When using pullsecrets for zabbix server image, job-init-db-schema also need this, because it uses the same image

Hi @Nyralei!
I'm closing this Pull Request because I included your changes in this PR: https://github.com/zabbix-community/helm-zabbix/pull/25
Thanks for your contributition.

Hi @Nyralei ,
Explanation of my action:
My PR has been waiting since January/2023 and it contains a big change. I have included your changes in my PR with the intention of speeding up solutions and have included your name in the release notes as a thank you for your work. I have not removed your credits.
See this message https://github.com/zabbix-community/helm-zabbix/releases/tag/zabbix-4.0.0
Imagine the time and work you would have if you had to understand my merge, resolve code conflicts and only then be able to be reviewed again...
I did not intend to harm your contribution or the evolution of the project.
You are welcome to open new Pull Requests and issues.
Have a nice week


Better type support

Improve type support.

[x] string
[x] number
[x] integer
[x] boolean
[x] object (moved #22)
[x] array (moved #23)
[x] datetime
[x] date
[x] time (moved #24)
[x] duration (moved #25)
[x] geopoint (moved #26)
[x] geojson (moved #27)
[x] any (moved #28)

DONE


Add missing "tooltips" option

Hi @kennethkalmer,
I just came across a scenario in which I need to use tooltips on handlers, and I saw, that there is no tooltips option in this wrapper. So I decided to add it.
Now I can set in my component
tooltips: [
    { to: (num) => Math.floor(num) },
],

and pass it to range-slider like so:
{{range-slider
    start=start
    range=range
    tooltips=tooltips
    on-change=(action 'onChange')
}}

Hope you'll find it useful too and release it soon :)

Looks good to me, just need to bump nouislider to a higher version for styling fixes

How did the tooltip formatting come out on your side? It was a bit wonky here so I marked it as "beta" in the CHANGELOG
I'm just bumping to ember 2.8.0 and then I'll release. Thanks for the contribution

0.10.0 has been tagged and published to npm! Thanks for your contribution!
(PS - have a look at the demo at the tooltips, the styles are a bit broken)

Great! Thanks a lot for a quick response :)
I had to style them based on a given design so I changed it anyway.
The problem with styles on your demo is caused by two things:

.example has overflow:hidden and thus it's hiding parts of tooltips
Font size and line-height are too big on your html, set font-size: 12px; line-height: 1em; on .example and it should be cool

@michalsnik thanks for the CSS tips, I've fixed the demos :)

Hi! The docs refer to a "formatter". What is that exactly? A function? Looks like an object - maybe it's specific to nouiSlider?

"Tooltips must be passed true or a formatter" - I can't tell if this is an array or an object or maybe an array with an object?

tooltips=(array true format)

format: {
   to: number => { return fromEpoch(number); },
   from: number => { return fromEpoch(number); },
}

results in

So I guess to and from mean something, but it only works on the right side...?

Update: this works: tooltips=(array true format) - so it seems like I need two objects, maybe one with "to" and one with "from". Or just pass the same formatter object to both positions.


How to set up a web-server that receives gps data

how to set up a web-server that receives gps data , My tracker is from mietrack model T1.
Example data:
$$o153,013777001165479,AFF,2003,31,10.319456,123.920293,140402020946,V,0,8,0,57,0.0,21,43948,309783,515|3|A0E8|AD5A,0000,0003|0003|0000|090A|0000,,,1,0008*DF

PLEASE HELP!

Closing as stale.


Firefox Extensions

I think you should add to the readme information that several Firefox addons will be installed and a list of them and what they do.
Best regards,
Konrad

Thank you for the suggestion. We didn't want to flood the readme with a bunch of additional information..
We are working on increasing the documentation as much as possible while still keeping it readable and concise.
In the mean time, take a look at the following to get more information on the specific Firefox configurations and extensions this script utilizes.

https://github.com/simeononsecurity/FireFox-Privacy-Script
https://github.com/simeononsecurity/FireFox-STIG-Script
https://ffprofile.com/
https://www.privacytools.io/browsers/#about_config

https://github.com/simeononsecurity/Windows-Optimize-Harden-Debloat/tree/826e8f5705aee89407cb5b9db9bc37cadd208662

now i am not able to download any thing from chrome browser any way to disable these extensions or any othe rway to fix the issue of not being able to download anything from chrome browser

On a similar note, is there any unattended ways to install Firefox extensions that will get updates?

On a similar note, is there any unattended ways to install Firefox extensions that will get updates?

Previously, the script disabled extension updates per the Cyber.mil FireFox STIG
This is one of those things that don't make any sense and should've been corrected by us already. Our enterprise targeted Standalone-Windows-STIG-Script will have the STIG enforced still.
We've updated the script to reverse those settings. Extensions are allowed to auto update now.
https://github.com/simeononsecurity/Windows-Optimize-Harden-Debloat/commit/1cb73b096c2a6401634383c52477aceb4eede25d


Error dealing with Bools

I can't get the following code to work on the latest version of LoopVectorization
julia> using LoopVectorization

julia> function foo(x::Vector, y::Vector)
           out = similar(x)
           @avx for i ∈ eachindex(x)
               out[i] = (x[i]*x[i] + y[i]*y[i]) < 1
           end
           out
       end
foo (generic function with 1 method)

julia> foo(rand(10), rand(10))
ERROR: MethodError: no method matching vstore!(::Ptr{Float64}, ::UInt8, ::VectorizationBase._MM{4})
Closest candidates are:
  vstore!(::Ptr{T}, ::Number, ::Integer) where T<:Number at /Users/mason/.julia/packages/VectorizationBase/WulOg/src/vectorizable.jl:202
  vstore!(::Ptr{T}, ::Tuple{Vararg{VecElement{T},N}}, ::I, ::Val{Aligned}, ::Val{Nontemporal}) where {N, T, I, Aligned, Nontemporal} at /Users/mason/.julia/packages/SIMDPirates/r9awO/src/memory.jl:349
  vstore!(::Ptr{T}, ::Union{Tuple{Vararg{VecElement{T},W}}, VectorizationBase.AbstractStructVec{W,T}}, ::VectorizationBase._MM{W}) where {W, T} at /Users/mason/.julia/packages/SIMDPirates/r9awO/src/memory.jl:521
  ...
Stacktrace:
 [1] vstore! at /Users/mason/.julia/packages/VectorizationBase/WulOg/src/vectorizable.jl:200 [inlined]
 [2] foo(::Array{Float64,1}, ::Array{Float64,1}) at ./REPL[5]:3
 [3] top-level scope at REPL[6]:1

julia> versioninfo()
Julia Version 1.4.0-rc1.0
Commit b0c33b0cf5 (2020-01-23 17:23 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin19.2.0)
  CPU: Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 2

Thanks for the issue.
julia> function fooavx(x::Vector, y::Vector)
                  out = similar(x)
                  @avx for i ∈ eachindex(x)
                      out[i] = (x[i]*x[i] + y[i]*y[i]) < 1
                  end
                  out
              end
fooavx (generic function with 1 method)

julia> function foo(x::Vector, y::Vector)
                  out = similar(x)
                  for i ∈ eachindex(x)
                      out[i] = (x[i]*x[i] + y[i]*y[i]) < 1
                  end
                  out
              end
foo (generic function with 1 method)

julia> x, y = rand(10), rand(10); foo(x, y) == fooavx(x, y)
true

I switched from using unsigned integers to represent bit-masks to using a specialized mask type.
While I could figure out the correct size in this particular case, where it's given by the _MM{4}: vstore!(::Ptr{Float64}, ::UInt8, ::VectorizationBase._MM{4}), that isn't true for functions like all, so I'd been meaning to do that anyway.
This also gives me the freedom to add specialized methods to it, so I can make ::Bool & ::Mask behave correctly.
The Mask{W} type acts like a vector of 1-bit integers of length W.
julia> using SIMDPirates

julia> x = rand(8); y = rand(8);

julia> (x .> y)'
1×8 Adjoint{Bool,BitArray{1}}:
 1  0  0  1  0  0  0  1

julia> vload(stridedpointer(x), (_MM{8}(0),)) > vload(stridedpointer(y), (_MM{8}(0),))
Mask{8,Bool}<1, 0, 0, 1, 0, 0, 0, 1>

A version with this fix will be registered in a few minutes.
I've added your example to the testsuite. The linked file has a few examples using conditional statements.
Please file more issues if/when you run into more problems.


Update stem in auto_deeplab.py

This is according to the feedback from the author that stem level 1 and 2 continue the same trend so are 10 and 20 filters, according to our new interpretation that would be a filter multiplier of 2 and 4 accordingly.
I don't currently have a computer handy as I'm travelling right now, before merging this change could you please run to make sure I haven't broken the code. Thanks.

@HankKung done


Gulp build extremly slow

Hi!
When I start gulp build, the process takes up to 2 minutes until my project is built.
Is this a normal behaviour?

Hi,
Maybe cause you had an big minified library.
The build task might bug in some case.

this happens because of low perfomance of system what you use.

problem "solved" with new gulp version.
gulp build time now around 30s

i own a mac pro with 16gb ram, so I don't think it's a system problem..


python310Packages.fvcore: init at 0.1.5

Description of changes
fvcore is a library that provides common functionality shared in various computer vision frameworks developed by Facebook AI Research. Additionally iopath is a dependency of fvcore. This pull request adds these projects into nixpkgs.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

There are several trailing white space issues. You should remove them. The title of your commit should indicate the version. For more information, refer to the following link: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md.

It looks like many of the dependencies in your package definition aren't being utilized. Just double-check if they are necessary and need to be included in {native,propagated,}buildInputs, or if they can be removed entirely.


Infinispan deploy only a single Gossip Router globally

Only the first cluster deploys the Gossip Router

Related to the first section of https://github.com/keycloak/keycloak-benchmark/issues/473

@ryanemerson / @mhajas - as soon as someone review this, this can be merged.
@pruivo - let me know if I should try to review it and merge it if it is blocking you.

LGTM. No GossipRouter is deployed on a second site and the xsite view is created as expected.


Remove utils install

Issue #138:

Remove utils install in RAG_with_Langchain (instead, point the user to granite-snacks for that recipe)

Also:

add pre-commit config for clearing cell outputs

lgtm


关于语言问题

如何才能切换语言?  似乎现在是跟随系统语言选项, 能否提供一个方式,可以允许我们添加语言?

Sorry. Daijishou follows Android standard implementation, which means language files are hardcoded statically. Thus dynamic injection is not possible. To switch language, change your android OS language settings or use the Android 13 per app lang-settings feature. BTW, I might added Simplified Chinese when I have free time after 1.4.x update.
Below are the limited languages currently be maintained:
English
Portuguese
Taiwanese mandarin
Japanese
French
Italian
Spanish


Unable to start service

PS C:\Users\win10go> gpustack version
0.3.2 (43077e2)
I tried installing gpustack on two computers, version 0.3.2 (43077e2).

Two issues have arisen

Problem 1: After server A is installed, it does not recognize its own worker. If you want to add this machine as a worker, please write it clearly on the instruction page.
In addition, another computer B, which serves as a worker, cannot connect to server A. By entering an IP address, it can see web pages at times, but at other times it cannot. The ping machine is capable of pinging.
I entered the following two sentences on worker computer B, but neither of them can join the cluster

Invoke-Expression "& { $((Invoke-WebRequest -Uri "https://get.gpustack.ai" -UseBasicParsing).Content) } --server-url http://<IP_ADDRESS> --token f2eb0529df2ca1c587aa6ba442d340b7"
Invoke-Expression "& { $((Invoke-WebRequest -Uri 'https://get.gpustack.ai' -UseBasicParsing).Content) } --server-url http://<IP_ADDRESS> --token f2eb0529df2ca1c587aa6ba442d340b7"
In summary, the formation of the cluster was not completed.

Problem 2: After server A restarts, I can no longer connect to the service, appearing as unable to open web pages, as if the web service is not even turned on.
I entered gpustack start, and the system reported that it has already started
I manually closed python.exe that was occupying port 80, but there was no way.

---------------------------------------------------------------
Both computers run on Windows 10 and are equipped with Nvidia graphics cards

Can you provide GPUStack logs following https://docs.gpustack.ai/latest/troubleshooting/#windows

gpustack.log

There are two issues from the logs.

It cannot find a valid IP to use. Can you show ipconfig of the node. Alternatively, it can be specified using --worker-ip as a workaround if it's considered to be a false alarm.
It fails to download prebuilt tools from github. We provide an alternative source in the cloud, which can be specified by --tools-download-base-url https://gpustack-1303613262.cos.ap-guangzhou.myqcloud.com. I'm not sure if that works in your environment.

I will try it out when I have time and continue to provide feedback here.
Additionally, I have another question. If possible, could you guide me on how to use the local gguf model? I have downloaded them all from the internet. We need a private deployment, completely offline, which is a very strong and necessary requirement. We can download it initially, but we won't be able to connect to the internet later on.

It is available in the upcoming v0.4.0: https://github.com/gpustack/gpustack/issues/418
If you are interested here's how the experience looks like(main & 0.4.0rc1 right now): https://github.com/gpustack/gpustack/blob/main/docs/user-guide/model-management.md#deploying-a-local-path-model


Use Spotipy module for API

Using spotipy would mean better error handling as well as more idiomatic and pythonic code in the API server. It would also allow you to analyse more than 100 tracks per playlist by easily iterating over the response:
tracks = results['items']
while results['next']:
    results = spotipy_instance.next(results)
    tracks.extend(results['items'])

This could also be done without using Spotipy, and instead just iterate using the offset and limit query parameters manually

If you choose to stick to using requests, you can also use its built-in retrying parameters, rather than reinventing the wheel which can use exponential backoff strategies, as well as reduce copy-pasted code. See some more info here: https://findwork.dev/blog/advanced-usage-python-requests-timeouts-retries-hooks/#retry-on-failure

I was avoiding Spotipy since it has the weird CLI for extracting access token from the redirect url, but I guess if I pass back the correct code - I can skip that.
I would gladly welcome a PR if you want to do some refactoring and change it!
The API definitely needs work - I was way more focused on the Front-End when I initially wrote the application.

@harryyoud I did a big overhaul of the API to use Spotipy instad - much cleaner, good suggestion. If you want to implement something to iterate over tracks and submit a pull request, be my guest

Looks great, I'm gonna have a quick look over tomorrow and do a submit a pull request. In my project, I just subclassed Spotify and added a recurse method, but given you only grab it at one point, I think I'll just do it inline

I ended up adding in the iteration feature to resolve a conflict in issue #19. It was a long overdue feature however. Closing for now


Produce file view by percentage of students in the last X weeks

Need to generate a similar view of file viewing patterns as demoed in this Tableau view.

Tableau visualization: https://tableau.dsc.umich.edu/#/site/UM/views/Aug9-Fileleaderboard-STATS250SP18/Dashboard1?:iid=1


Fix linking issue on Windows; add reference to crypt32.lib

used by CryptProtectData / CryptUnprotectData.
Auditors: @darkdh
Tested on Windows 10 and it works great :smile:

++ thanks


[BQ] Google service account authentication failure when running dbt tests

Describe the bug
When running dbt tests in a container, I intermittently receive authentication errors, which cause the running tasks to fail.
Steps To Reproduce

Use oauth authentication in the bigquery profile, and set threads to 2
In a containerized environment using a gcloud service account for authentication (as opposed to env var GOOGLE_APPLICATION_CREDENTIALS) run dbt test [my_model] (Expect ~288 tests to run)

Expected behavior
I expect all tests to succeed (verified by running locally).
Screenshots and log output

log (without --debug)

example stack trace

"exc_info": "Traceback (most recent call last):\n  File \"/usr/local/lib/python3.7/site-packages/dbt/adapters/bigquery/connections.py\", line 206, in open\n    handle = cls.get_bigquery_client(connection.credentials)\n  File \"/usr/local/lib/python3.7/site-packages/dbt/adapters/bigquery/connections.py\", line 187, in get_bigquery_client\n    creds = cls.get_bigquery_credentials(profile_credentials)\n  File \"/usr/local/lib/python3.7/site-packages/dbt/adapters/bigquery/connections.py\", line 157, in get_bigquery_credentials\n    credentials, project_id = google.auth.default(scopes=cls.SCOPE)\n  File \"/usr/local/lib/python3.7/site-packages/google/auth/_default.py\", line 354, in default\n    raise exceptions.DefaultCredentialsError(_HELP_MESSAGE)\ngoogle.auth.exceptions.DefaultCredentialsError: Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credentials and re-run the application. For more information, please see https://cloud.google.com/docs/authentication/getting-started\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/usr/local/lib/python3.7/site-packages/dbt/task/base.py\", line 333, in safe_run\n    result = self.compile_and_execute(manifest, ctx)\n  File \"/usr/local/lib/python3.7/site-packages/dbt/task/base.py\", line 276, in compile_and_execute\n    result = self.run(ctx.node, manifest)\n  File \"/usr/local/lib/python3.7/site-packages/dbt/task/base.py\", line 378, in run\n    return self.execute(compiled_node, manifest)\n  File \"/usr/local/lib/python3.7/site-packages/dbt/task/test.py\", line 84, in execute\n    failed_rows = self.execute_schema_test(test)\n  File \"/usr/local/lib/python3.7/site-packages/dbt/task/test.py\", line 64, in execute_schema_test\n    fetch=True,\n  File \"/usr/local/lib/python3.7/site-packages/dbt/adapters/base/impl.py\", line 227, in execute\n    fetch=fetch\n  File \"/usr/local/lib/python3.7/site-packages/dbt/adapters/bigquery/connections.py\", line 275, in execute\n    query_job, iterator = self.raw_execute(sql, fetch=fetch)\n  File \"/usr/local/lib/python3.7/site-packages/dbt/adapters/bigquery/connections.py\", line 248, in raw_execute\n    client = conn.handle\n  File \"/usr/local/lib/python3.7/site-packages/dbt/contracts/connection.py\", line 71, in handle\n    self._handle.resolve(self)\n  File \"/usr/local/lib/python3.7/site-packages/dbt/contracts/connection.py\", line 96, in resolve\n    return self.opener(connection)\n  File \"/usr/local/lib/python3.7/site-packages/dbt/adapters/bigquery/connections.py\", line 210, in open\n    gcloud.setup_default_credentials()\n  File \"/usr/local/lib/python3.7/site-packages/dbt/clients/gcloud.py\", line 24, in setup_default_credentials\n    run_cmd('.', [\"gcloud\", \"auth\", \"application-default\", \"login\"])\n  File \"/usr/local/lib/python3.7/site-packages/dbt/clients/system.py\", line 436, in run_cmd\n    out, err)\ndbt.exceptions.CommandResultError: Got a non-zero returncode running: ['gcloud', 'auth', 'application-default', 'login']"

System information
Which database are you using dbt with?

[ ] postgres
[ ] redshift
[x] bigquery
[ ] snowflake
[ ] other (specify: ____________)

The output of dbt --version:
installed version: 0.18.1

The operating system you're using:

The output of python --version:
Python 3.7.7

Additional context

Using gcloud service account, not GOOGLE_APPLICATION_CREDENTIALS
Note that prior to seen error, more than 150 tests PASS. Eventually, they start passing again.

Closing because it appears it's more related to this issue with googleapis: https://github.com/googleapis/google-auth-library-python/issues/604

Closing because it appears it's more related to this issue with googleapis: https://github.com/googleapis/google-auth-library-python/issues/604

On second thought, the googleapis issue does not explain the issue we're seeing

On second thought, the googleapis issue does not explain the issue we're seeing

Thanks for the issue @cyrus-cherre @sryabkov. This sort of timeout isn't something I've seen before. I do wonder if it has to do with GKE Workload Identity, in particular the mapping between GKE and a standard Google service account:

Any application running as the Kubernetes service account automatically authenticates as the Google service account when accessing Google Cloud APIs.

A couple questions come to my mind:

How intermittently do you see these errors? Is it always after ~10 minutes after an invocation start?
Do you have any unusual settings for the service account user that GKE is authenticating as?
Is there any chance that GKE's authentication is happening via short-lived service account credentials?

Thanks for the issue @cyrus-cherre @sryabkov. This sort of timeout isn't something I've seen before. I do wonder if it has to do with GKE Workload Identity, in particular the mapping between GKE and a standard Google service account:

Any application running as the Kubernetes service account automatically authenticates as the Google service account when accessing Google Cloud APIs.

A couple questions come to my mind:

How intermittently do you see these errors? Is it always after ~10 minutes after an invocation start?
Do you have any unusual settings for the service account user that GKE is authenticating as?
Is there any chance that GKE's authentication is happening via short-lived service account credentials?

@jtcohen6 Apologies for not responding sooner. We worked around the issue by mounting a service account key file into the container and setting the GOOGLE_APPLICATION_CREDENTIALS variable to point to it.
To answer your questions,

How intermittently do you see these errors? Is it always after ~10 minutes after an invocation start?

The behavior seemed to be pretty consistent in our case: no problems at the beginning, and nothing is working at the end. In other words, BQ connections are opened and executed fine for a while, but at some point  would start normal, but after a while dbt starts calling setup_default_credentials and dbt tests start failing consistently (not intermittently).
We don't know for sure what triggers this behavior. We think it might be related to the number of BQ connections (we some 1,400+ in the logs). We didn't see the problem on some of our smaller models. 10 min is probably a red herring, but we didn't do extensive testing to confirm or refute this hypothesis.

Do you have any unusual settings for the service account user that GKE is authenticating as?

To truly answer that question, we need to define "unusual", but as far as we can tell, the answer is no. However, please notice that to make Workload Identity work, an IAM policy binding needs to be added to the service account, e.g.
gcloud iam service-accounts add-iam-policy-binding \
  --role roles/iam.workloadIdentityUser \
  --member "serviceAccount:PROJECT_ID.svc.id.goog[K8S_NAMESPACE/KSA_NAME]" \
<EMAIL_ADDRESS>

Is there any chance that GKE's authentication is happening via short-lived service account credentials?

We don't think so.

@jtcohen6 Apologies for not responding sooner. We worked around the issue by mounting a service account key file into the container and setting the GOOGLE_APPLICATION_CREDENTIALS variable to point to it.

Glad you were able to get this working in the meantime! And thanks for the detailed responses. I'm not sure what the initial cause here is, but it feels like we may have a promising lead.

To answer your questions,

How intermittently do you see these errors? Is it always after ~10 minutes after an invocation start?

The behavior seemed to be pretty consistent in our case: no problems at the beginning, and nothing is working at the end. In other words, BQ connections are opened and executed fine for a while, but at some point dbt starts calling setup_default_credentials, after which dbt tests start failing consistently (not intermittently).

Hmm... It sure sounds like, at some point, dbt needed to open a new connection and the credentials no longer returned a valid one (line 206 below). I interpret that as a sign of credential expiration. Do you also see Please log into GCP to continue in your dbt debug-level logs?
https://github.com/fishtown-analytics/dbt/blob/51ccbab1e2ca83c2c02740847ab2057b1cc033bb/plugins/bigquery/dbt/adapters/bigquery/connections.py#L200-L212

Is there any chance that GKE's authentication is happening via short-lived service account credentials?

~We don't think so.~ Actually, yes, it looks like short-lived service account credentials are used: https://stackoverflow.com/questions/58665255/how-does-the-gke-metadata-server-work-in-workload-identity

From what I see in the GCloud docs, the default token lifetime is 1 hour. I wonder if it's somewhere/somehow being set to ~10 minutes instead?

Do you also see Please log into GCP to continue in your dbt debug-level logs?

Yes

From what I see in the GCloud docs, the default token lifetime is 1 hour. I wonder if it's somewhere/somehow being set to ~10 minutes instead?

🤷


[WON'T MERGE] deploy development environment

Motivation
need to re-deploy the dev environment

Solution
re-deploy the dev environment

PR Checklist

[ ] Added Tests
[ ] Updated Documentation
[ ] Updated CHANGELOG.md for the appropriate package

replaced by https://github.com/nomad-xyz/monorepo/pull/220


after save assigns permissions

This is great! And removes a lot of boilerplate code! Awesome! I'd only suggest you add specs to this :)

Added specs, thanks!


Discard references to Project instances after storing configuration cache entry

Fixes #?
Context
Discard various listeners and the state of some internal build scoped services.
Also update docs for the changes in behaviour for a configuration cache miss build.
Contributor Checklist

[ ] Review Contribution Guidelines
[ ] Make sure that all commits are signed off to indicate that you agree to the terms of Developer Certificate of Origin.
[ ] Make sure all contributed code can be distributed under the terms of the Apache License 2.0, e.g. the code was written by yourself or the original code is licensed under a license compatible to Apache License 2.0.
[ ] Check "Allow edit from maintainers" option in pull request so that additional changes can be pushed by Gradle team
[ ] Provide integration tests (under <subproject>/src/integTest) to verify changes from a user perspective
[ ] Provide unit tests (under <subproject>/src/test) to verify logic
[ ] Update User Guide, DSL Reference, and Javadoc for public-facing changes
[ ] Ensure that tests pass sanity check: ./gradlew sanityCheck
[ ] Ensure that tests pass locally: ./gradlew <changed-subproject>:quickTest

Gradle Core Team Checklist

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation

@bot-gradle test and merge

OK, I've already triggered a build for you.


Added className support

This feature is really important to me because Bootstrap doesn't work well with  wrappers.
<Blaze template="SomeTemplate" className="some-class" />
=>
SomeTemplate content

Thanks, @Praxie; useful indeed!  Published as v1.3.0.


Unstable state makes proxy quits with Python int too large to convert to SQLite INTEGER

Even after removing ~/.config/microraiden, on initial scan, after reaching given block, server crashes with following exception:
DEBUG:blockchain:filtering for events u:4800000-4897496 c:4799999-4897495 @4897496
DEBUG:blockchain:received unconfirmed ChannelOpened event (sender 0xe0902284c85a9a03daa3b5ab032e238cc05cff9a, block number 4896329)
Traceback (most recent call last):
  File "/sec/Dev/BrainBot/microraiden/virtualenv3/lib/python3.6/site-packages/gevent/greenlet.py", line 536, in run
    result = self._run(*self.args, **self.kwargs)
  File "/sec/Dev/BrainBot/microraiden/microraiden/microraiden/channel_manager/blockchain.py", line 29, in _run
    self._update()
  File "/sec/Dev/BrainBot/microraiden/microraiden/microraiden/channel_manager/blockchain.py", line 115, in _update
    self.cm.unconfirmed_event_channel_opened(sender, open_block_number, deposit)
  File "/sec/Dev/BrainBot/microraiden/microraiden/microraiden/channel_manager/manager.py", line 124, in unconfirmed_event_channel_opened
    self.state.set_channel(c)
  File "/sec/Dev/BrainBot/microraiden/microraiden/microraiden/channel_manager/state.py", line 280, in set_channel
    self.add_channel(channel)
  File "/sec/Dev/BrainBot/microraiden/microraiden/microraiden/channel_manager/state.py", line 314, in add_channel
    self.conn.execute(ADD_CHANNEL_SQL, params)
OverflowError: Python int too large to convert to SQLite INTEGER
Tue Nov 28 18:39:52 2017 <Blockchain at 0x7f57c9d62cc0> failed with OverflowError

Traceback (most recent call last):
  File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/sec/Dev/BrainBot/microraiden/microraiden/microraiden/examples/demo_proxy/__main__.py", line 55, in <module>
    main()
  File "/sec/Dev/BrainBot/microraiden/virtualenv3/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
...
  File "/sec/Dev/BrainBot/microraiden/virtualenv3/lib/python3.6/site-packages/gevent/hub.py", line 630, in switch
    return RawGreenlet.switch(self)
gevent.hub.LoopExit: ('This operation would block forever', <Hub at 0x7f57c9d629c8 epoll default pending=0 ref=0 fileno=3 resolver=<gevent.resolver_thread.Resolver at 0x7f57c9cf3c50 pool=<ThreadPool at 0x7f57c9cf3c18 0/1/10>> threadpool=<ThreadPool at 0x7f57c9cf3c18 0/1/10>>)

Account is unusable then, because proxy always have to go through this block. It's critical, as it could cause a DoS in the server, allowing clients to cheat while server is offline.
Tested with andrevmatos/microraiden/tree/typescript from #151, rebased on current master (a7631035686a4f60bb3db003fad14048b20aa8c9)

@andrevmatos I've used DECIMAL(78,0) for the balances - this should be enough to fit uint256. It's crazy big number though :)

@pcppcp Ok, nice. Just for you to know, Sqlite doesn't actually enforce the precision on numeric types, it just stores everything in it's internal representation, it's more for documentation purposes, but it's right to write it as the required precision.


Query of LocationDescriptor does not work with replace callback in onEnter hook

When using an onEnter hook like
const onEnter = (nextState, replace) => {
  replace({ pathname: '/foo', query: { bar: 'baz' }})
}

the query parameter does not get respected by history.createLocation and is therefore missing in the resulting UPDATE_LOCATION action. i guess that is a bug?

Fixed on master of history.


Xcode 11 Swift Packages incompatible with "flutter build"

We are trying to use a Swift package using the newly integrated Swift Package Manager in Xcode 11 in our iOS specific platform code. While it works as long as we build the app via Xcode, we cannot build or run the app using the flutter tool.
Steps to Reproduce

Create a new Flutter app
Open the Xcode project
Select "File" -> "Swift Packages" -> "Add Package Dependency"
Add any package, e.g. "https://github.com/doneservices/ApsEnvironment"
Try and build the app: "flutter build ios"
Observe below documented error

Target Platform: iOS
Target OS version/browser: iOS 13
Devices: iPhone 8, iPhone 11 Pro
command
flutter build ios
exception
ProcessException: ProcessException: Process "/usr/bin/xcodebuild" exited abnormally:
xcodebuild: error: Could not resolve package dependencies:
  Packages are not supported when using legacy build locations, but the current project has them enabled.
  Command: /usr/bin/xcodebuild -list

#0      runCheckedAsync (package:flutter_tools/src/base/process.dart:259:7)
<asynchronous suspension>
#1      XcodeProjectInterpreter.getInfo (package:flutter_tools/src/ios/xcodeproj.dart:270:36)
<asynchronous suspension>
#2      buildXcodeProject (package:flutter_tools/src/ios/mac.dart:279:70)
<asynchronous suspension>
#3      BuildIOSCommand.runCommand (package:flutter_tools/src/commands/build_ios.dart:84:43)
<asynchronous suspension>
#4      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:490:18)
#5      _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:71:64)
#6      _rootRunUnary (dart:async/zone.dart:1132:38)
#7      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#8      _FutureListener.handleValue (dart:async/future_impl.dart:137:18)
#9      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:678:45)
#10     Future._propagateToListeners (dart:async/future_impl.dart:707:32)
#11     Future._completeWithValue (dart:async/future_impl.dart:522:5)
#12     Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:552:7)
#13     _rootRun (dart:async/zone.dart:1124:13)
#14     _CustomZone.run (dart:async/zone.dart:1021:19)
#15     _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#16     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#17     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#18     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#19     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:116:13)
#20     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:173:5)

flutter doctor
[✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.14.6 18G1012, locale en-SE)
    • Flutter version 1.9.1+hotfix.6 at /Users/linus/coding/flutter
    • Framework revision 68587a0916 (9 weeks ago), 2019-09-13 19:46:58 -0700
    • Engine revision b863200c37
    • Dart version 2.5.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
    • Android SDK at /Users/linus/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.1
    • ANDROID_HOME = /Users/linus/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.2.1, Build version 11B500
    • CocoaPods version 1.8.4

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 41.1.2
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] VS Code (version 1.39.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.6.0

[✓] Connected device (2 available)
    • A10           • DIN7YS5DU4V4PNNJ          • android-arm • Android 7.0 (API 24)
    • Linus’ iPhone • 00008030-001135E63430802E • ios         • iOS 13.2

• No issues found!

I've tried experimenting with xcodebuild -list to see where exactly it goes wrong. If I run xcodebuild -list and pass it the Xcode Workspace (-workspace Runner.xcworkspace) it works, but if I pass it the project it fails (-project Runner.xcodeproj).

Does it work from Xcode?

@jmagman

Does it work from Xcode?

It works from Xcode.

Are you using the Legacy Build System or the New Build System?

I've tried both with and without install! 'cocoapods', :disable_input_output_paths => true, it doesn't make a difference. Also, it works without that line when building with Xcode, so I don't seem to have the "double Flutter.framework" problem.

I can reproduce.  When I build Runner.xcodeproj in Xcode I get the same error.
: Packages are not supported when using legacy build locations, but the current project has them enabled.
x-xcode-log://0667FC40-91AB-4C63-947C-94E93DB222B8 Missing package product 'ApsEnvironment', please fix package resolution errors before building

That seems like an Xcode bug?  The project is not using the legacy build system, unless I'm totally misunderstanding what "legacy build locations" means.
At the least, xcodeproj.dart should be passing in the -workspace flag.
Thanks for the helpful debugging, @LinusU.

I can't even add Swift Packages directly to the project instead of the workspace (not that you would want to for a flutter app).

At the least, xcodeproj.dart should be passing in the -workspace flag.

Actually that won't work, the point of that -list command is to ensure the Runner target exists, but the -workspace list only has schemes, which makes sense.

Command
flutter build ios

Steps to Reproduce

...
...
...

Logs
ProcessException: Process exited abnormally:
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -list
xcodebuild: error: Could not resolve package dependencies:
Packages are not supported when using legacy build locations, but the current project has them enabled. Command: /usr/bin/xcodebuild, OS error code: 74
#0      RunResult.throwException (package:flutter_tools/src/base/process.dart:172:5)
#1      _DefaultProcessUtils.run (package:flutter_tools/src/base/process.dart:328:19)
<asynchronous suspension>
#2      XcodeProjectInterpreter.getInfo (package:flutter_tools/src/ios/xcodeproj.dart:392:50)
#3      IosProject.projectInfo (package:flutter_tools/src/project.dart:531:67)
#4      IosProject.buildSettingsForBuildInfo (package:flutter_tools/src/project.dart:513:41)
#5      IosProject._parseProductBundleIdentifier (package:flutter_tools/src/project.dart:455:56)
#6      IosProject.productBundleIdentifier (package:flutter_tools/src/project.dart:432:47)
#7      BuildableIOSApp.fromProject (package:flutter_tools/src/application_package.dart:365:50)
#8      IOSApp.fromIosProject (package:flutter_tools/src/application_package.dart:348:28)
#9      ApplicationPackageStore.getPackageForPlatform (package:flutter_tools/src/application_package.dart:433:30)
#10     BuildIOSCommand.runCommand (package:flutter_tools/src/commands/build_ios.dart:93:59)
#11     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:972:18)
<asynchronous suspension>
#12     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:831:33)
<asynchronous suspension>
#13     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart)
#14     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:29)
#15     _rootRun (dart:async/zone.dart:1190:13)
#16     _CustomZone.run (dart:async/zone.dart:1093:19)
#17     _runZoned (dart:async/zone.dart:1630:10)
#18     runZoned (dart:async/zone.dart:1550:10)
#19     AppContext.run (package:flutter_tools/src/base/context.dart:149:18)
#20     FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:820:20)
#21     CommandRunner.runCommand (package:args/command_runner.dart:197:27)

[✓] Flutter (Channel stable, 1.22.0, on Mac OS X 10.15.6 19G2021, locale en-US)
    • Flutter version 1.22.0 at /Users/bezzo/Mobile/flutter-sdk
    • Framework revision d408d302e2 (6 days ago), 2020-09-29 11:49:17 -0700
    • Engine revision 5babba6c4d
    • Dart version 2.10.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/bezzo/Library/Android/sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /Users/bezzo/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0, Build version 12A7209
    • CocoaPods version 1.8.4

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 49.0.2
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.49.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.15.0

[!] Connected device
    ! Error: Docotel Bandung is not connected. Xcode will continue when Docotel
      Bandung is connected. (code -13)

! Doctor found issues in 1 category.

Flutter Application Metadata
Type: app
Version: null
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: bbfbf1770cca2da7c82e887e4e4af910034800b6
Plugins
plugin_scaffold-3.1.0
assessment

@chandrabezzo See https://github.com/flutter/flutter/issues/57083


update cache control

Deploy preview for ghapi ready!
Built with commit 419d15dac07068901332fcbafc287292a97b3367
https://deploy-preview-127--ghapi.netlify.app


Card Slider

I have fixed the Card Slider Issue. Also, added a screenshot with the same for better reference.

The card slider is capable to hold images.

Swipe to move between cards.

Add Links and Content to the Card.

It is Mobile Responsive.

Please let me know, if you want to make any changes.

Hey, @ritviksharma3  Good job.
One doubt, Can some text be also added to the card?

@bislara Sure, will get it done soon.

@bislara Please review. I have made the changes.

@all-contributors please add ritviksharma3 for code, doc


Unexpected token < in JSON at position 0

Before opening, please confirm:

[X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
No response
Amplify CLI Version
7.6.2
What operating system are you using?
Mac
Amplify Categories
Not applicable
Amplify Commands
pull
Describe the bug
I have two envs deployed in the amplify.

staging
rtestapis
I was working in the dev env, and then I checkout to rtestapis env, after that I pulled changes from amplify and then made some changes in lambda functions.
Then I executed amplify push it resulted in this error:

amplify push
? Select the authentication method you want t
o use: AWS profile
Failed to get profile: Profile configuration is missing for: undefined

Then I again pulled from backend, which  resulted in this error:
Local changes detected.
Pulling changes from the cloud will override your local changes.
? Are you sure you would like to continue? Yes
? Select the authentication method you want to use: AWS profile
**Failed to get profile: Profile configuration is missing for: undefined**
⠼ Fetching updates to backend environment: rtestapis from the cloud.%

Then I tried amplify configure  which resulted in success.
But again same  error while pull or push.
Then I executed logout command, amplify logout --appID xxxxxx then
amplify pull --appID xxxx -env xxxx now it is giving error:
amplify pull --appId d2nxxxxxj6ne --envName rtestapis
Failed to pull the backend.
invalid json response body at https://prod.us-east-1.appstate.amplifyapp.com/AppState/?appId=d2nxxxxxxpj6ne reason: Unexpected token < in JSON at position 0
FetchError: invalid json response body at https://prod.us-east-1.appstate.amplifyapp.com/AppState/?appId=d2nqxxxxxxne reason: Unexpected token < in JSON at position 0
    at /usr/local/lib/node_modules/@aws-amplify/cli/node_modules/node-fetch/lib/index.js:273:32
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at isAmplifyAdminApp (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/amplify-provider-awscloudformation/src/utils/admin-helpers.ts:24:18)
    at Object.run (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/amplify-provider-awscloudformation/src/attach-backend.js:32:17)
    at Object.attachBackend (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/amplify-provider-awscloudformation/src/index.ts:62:3)
    at queryProvider (/usr/local/lib/node_modules/@aws-amplify/cli/src/attach-backend-steps/a10-queryProvider.ts:12:3)
    at attachBackend (/usr/local/lib/node_modules/@aws-amplify/cli/src/attach-backend.ts:20:5)
    at Object.run (/usr/local/lib/node_modules/@aws-amplify/cli/src/commands/pull.ts:59:5)
    at Object.executeAmplifyCommand (/usr/local/lib/node_modules/@aws-amplify/cli/src/index.ts:373:5)
    at executePluginModuleCommand (/usr/local/lib/node_modules/@aws-amplify/cli/src/execution-manager.ts:204:3)
    at executeCommand (/usr/local/lib/node_modules/@aws-amplify/cli/src/execution-manager.ts:30:5)
    at Object.run (/usr/local/lib/node_modules/@aws-amplify/cli/src/index.ts:205:5)

Expected behavior
amplify checkout env, should not create this type of issue.
When the token is invalid, cli must reauthenticate the user if user is logged out and pulling the project, in this case, it should open admin UI for the token, but it is throwing this error.
Reproduction steps
I already mentioned in the bug.
GraphQL schema(s)

# Put schemas below this line

Log output

# Put your logs below this line

Additional information
No response

I'm having exactly the same problem now...

old similar issue
Profile configuration is missing for: undefined

This looks like it is related to us-east-1 having outages as the endpoint https://prod.us-east-1.appstate.amplifyapp.com/AppState/?appId=[app_id] is giving me a 504 error about half the time I request it.

But my amplify project is deployed in the us-east-2 region.

This looks like it is related to us-east-1 having outages as the endpoint https://prod.us-east-1.appstate.amplifyapp.com/AppState/?appId=[app_id] is giving me a 504 error about half the time I request it.

I noticed that in logs, but I wonder what us-east-1 has to do with my app, since it's deployed in eu-central-1...

Thanks @jonesnxt, I will mark this as an enhancement to improve on the error handling.

Thanks @jonesnxt, I will mark this as an enhancement to improve on the error handling.

👍  Some retry logic would be great here as it looks like it's only failing about half the time.

@ammarkarachi isn't this a problem that outage in completely different region affects the deployment in another one?

@jk171505 The underlying service for admin ui is on us-east-1

@ammarkarachi to me it only shows how serious the problem is. For me it failed 4-5 times in a row.
It looks like the deployment of probably all apps in probably all regions fails because of the outage in us-east-1.

Hey @hackrx and folks in the thread, this issue appears to have been caused by the outage on December 7, 2021. Closing due to outage


RwGsSymbolDictionaryRegistry class used for Rowan installation does not match RwGsSymbolDictionaryRegistry class present in symbol dictionary

While working on issue #192, I found that the RwGsSymbolDictionaryRegistry class used in the RowanKernel symbol dictionary is not the same class as is presently visible in the RowanKernel symbol dictionary ...
This is a bug in the Rowan bootstrapping algorithm where the classes are first loaded into the stone using .gs files and then a second bootstrap install is run using a variant of the standard Rowan load algorithm to build the loaded things ... apparently a new version of the RwGsSymbolDictionaryRegistry class is created during bootstrapping ...
Interestingly enough, I think that the RwPkgAdoptTool code (in issue #192) can be adapted for bootstrapping Rowan and completely avoid any possibility of creating new class versions during bootstrap, since the code simply builds new loaded thing structure for existing classes and methods.

With the completion of work on Issue #192, the adopt tools are ready to be used for bootstrapping Rowan


Set default mysql port to 3306

I'm good with this, what about you @gwynne ?

These changes are now available in 4.1.0


Automatic Device Tracker - Loses Session after HASS restart

Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version):
0.52.1
Python release (python3 --version):
3.6.2
Component/platform:
Automatic
Description of problem:
After restart of hass, I am forced to reauthenticate to Automatic
Expected:
After signing the 1st time, hass should store the authorization token for reuse
Problem-relevant configuration.yaml entries and steps to reproduce:
device_tracker:
  - platform: automatic
    client_id: !secret automatic_client
    secret: !secret automatic_secret

Traceback (if applicable):

Additional info:

Same problem.

Same here. Tried deleting and loading dependencies again. No luck :(

+1 it's broken..
In addition, even after re-authenticating I'm not getting any events as far as I can tell except trip:finished (ignition:on for example doesn't work)

No longer getting fuel levels either.  App reports them but HA is getting a null value.

0.57.2 and I don't see any device trackers at all.

This seems to have been solved between 0.56.2 and 0.59


No data for today prices

Hi, first of all: great work!
I just installed this integration and it fetches prices for tomorrow, but not for today. There is 'unknown' state in TGE Fixing 1 Rate sensor and empty Prices today list in attributes.

After 14:00 TGE switches default data source to the next day. I thought this is not possible to go back to previous day, but now I have checked and there is a date selector. It shouldn't be hard to fix 👍


Can it be used in macOS apps?

It might work on macOS since the libraries used seems to be common. But not sure.


Add space between multiple PortForwardLinks

Clubhouse story: https://app.clubhouse.io/windmill/story/4269/no-spacing-between-multiple-k8s-port-forwards
Multiple

Before / After
Screenshot

Before

After

Single

Before / After
Screenshot

Before

After

@hyu : Does this work? It adds some space in the last portforwardlink at the right, not sure if that matters.


Add default solver selection descriptions

Codecov Report

Merging #367 (4380447) into master (18ec2e6) will decrease coverage by 1.53%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #367      +/-   ##
==========================================
- Coverage   91.85%   90.32%   -1.54%
==========================================
  Files          22       22
  Lines        1240     1240
==========================================
- Hits         1139     1120      -19
- Misses        101      120      +19

Impacted Files
Coverage Δ

dwave/system/samplers/clique.py
84.93% <ø> (ø)

dwave/system/samplers/dwave_sampler.py
79.11% <ø> (-7.60%)
:arrow_down:

dwave/system/samplers/leap_hybrid_sampler.py
71.31% <ø> (-4.10%)
:arrow_down:

dwave/system/composites/embedding.py
95.85% <0.00%> (-1.19%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 18ec2e6...4380447. Read the comment docs.


Can you support the Chinese UI for Android version?

First of all, I am very grateful to the author's tools. Secondly, my English is not very good, please forgive me.
Can the software interface support Chinese? I see that there is chinese in the menu option but I can't choose.
We have friends who translated Chinese scenario, but the UI and Mythos Phase are still in English.
Thanks!

Here is the file that needs to be translated:
https://raw.githubusercontent.com/NPBruce/valkyrie/master/unity/Assets/StreamingAssets/text/Localization.English.txt
If I can get that in chinese I can turn it on. Alternatively I can enable Chinese without this and it will use the FFG translations, but most of the menu items will be in English.

hello,
I have put this file into Chinese. Hope it can be useful to you.
you can use it and turn it on.
https://pan.baidu.com/s/1cIMMgCZrZYBfWcrAnXdoFQ
Thanks!

Integrated it an created a pull request: https://github.com/NPBruce/valkyrie/pull/881

@zifeixu85 @zhengrx You may want to check out the latest release of @BenRQ, which has the chinese translation in it. https://github.com/BenRQ/valkyrie/releases/tag/release%2F2.1%2FBrynhildr_2.1.0b


Nm device modify

Introduce a new nm.device operation: modify.
Unlike the existing libnm activate and reapply, this operation is a libnmstate.nm abstraction, introducing a device modification using reapply with a fallback to activate.
Depends on #332

Coverage decreased (-1.0%) to 68.504% when pulling 013e75d7de44946d2d9bb453244d659cc5f57458 on EdDev:nm-device-modify into 75760915a8bc00a480cc61561dcd44eda7d0abac on nmstate:master.

Coverage decreased (-1.0%) to 68.504% when pulling 013e75d7de44946d2d9bb453244d659cc5f57458 on EdDev:nm-device-modify into 75760915a8bc00a480cc61561dcd44eda7d0abac on nmstate:master.


[FR] A way to disable field suggestions?

As explained here: https://blog.yeswehack.com/yeswerhackers/how-exploit-graphql-endpoint-bug-bounty there is a graphql "feature" which can be a "vulnerability" from hackers POV.
With tools like https://github.com/nikitastupin/clairvoyance or https://github.com/swisskyrepo/GraphQLmap they can re-create the schema even if introspection is disabled.
I think we need a way to disable fields suggestions, example:
{
  "data": null,
  "errors": [{"message": "Unknown field \"playerCreat\" on type \"Mutation\". Did you mean \"playerCreate\"?"}]
}

Maybe we can disable them when we disable introspection.
What do you think?

Useful, I'll add it later.

Added in master branch 🙂

Thanks!


[DOCS] - Solution Overview Revisions

Master issue for all the oversights that come up as a result of writing the #30. Contains all revisions post-#64.
Add all the following to the solution overview under the appropriate section. See comments for solutions.

[x] #82
[x] #81
[x] #77
[ ] #84

Solution to #77 by @nchareunsouk:

Seeds are placed into a "clone collar".
The puck is placed into a grow cup and wetted with RO water to stimulate germination.
Grow cup is inserted into a grow plate.
Program is started in the dashboard.

Solution to #81 by @nchareunsouk:

Some subset of all grown plants (one per batch?) are set aside for seeds. They are not harvested until seeds have developed (Note that some plants may still be eaten when seeds have formed, or seeds are a part of the food production cycle, i.e. in fruits)
If the plant has fruits, the fruits are opened, the seeds are located and collected by hand (applies to both edible- and nonedible-fruit plants).
If the plant does not have fruits, the seeds are removed from the plant by hand.
If the seeds are the edible products (i.e. legumes), growth is allowed to progress as normal. Some subset of harvested seeds are saved.
The seeds are dried.
The seeds are vacuum sealed or stored in an air-tight container (such as a glass jar).
Seeds are stored at a temperature between 32° and 41°F

Option 1: Water Content Collection
Plant waste is collected by hand.
Plant waste is macerated in a blender.
Plant waste is dehydrated and water is collected.
Dehydrated plant waste is ejected into space.
Option 2: Subcritical Water Extraction (SWE)
SWE is a process through which micro-nutrients and bioactive compounds can be extracted from plant matter and suspended in solution by using water instead of dangerous solvents.
Resources
Food waste: a potential bioresource for extraction of nutraceuticals and bioactive compounds
Subcritical water extraction of bioactive compounds from Orostachys japonicus A. Berger (Crassulaceae)
Plant waste is collected by hand.
Plant waste is macerated in a blender.
Plant waste goes through the process of subcritical water extraction.
Plant waste is ejected after the extraction process.

Closed by #88

More stuff


Disabling autologin so I can use authentication methods.

Bug Description
The docs on this seems to be outdated. Any help please?
Reproduction
Disable autologin on the frontend?
Expected behavior
Signout button should show up and login page should be accessible.
Who can help?
No response
Operating System
Windows
Langflow Version
1.0.17
Python Version
None
Screenshot
No response
Flow File
No response

@dosu is the .env file in the frontend or backend directory?

@dosu the command " langflow run --env-file .env " should be run in what directory?

@dosu does that mean the langflow cli has to be installed in my root directory? otherwise the command won't be recognized

okay great. while I have you, is there a reason for this console error "use-get-autologin.ts:13  GET http://localhost:3000/api/v1/auto_login 400 (Bad Request) " ?

@dosu okay great. while I have you, is there a reason for this console error "use-get-autologin.ts:13 GET http://localhost:3000/api/v1/auto_login 400 (Bad Request) " ?

@dosu okay back to the LANGFLOW_AUTO_LOGIN variable. does placing it in the environment variables section of docker compose yml also work?

@bohemiancode-x
Do you need any assistance with this case? If not, please let us know if this issue can be closed.

@dosu using langflow run, will changes made to the backend code reflect on reload?

what is the full command to activate reload

@dosu what is the full command to activate reload

@dosu throws error: no such option --reload

@dosu this command should be run in what directory? and how do i use the env file?

@dosu how do i make sure or confirm the reload function is working?

@dosu how should the frontend be run to make it responsive to the backend changes?

@dosu pulled the latest update from main and the app keeps crashing from this error: Uncaught TypeError: examples.find is not a function
at GetStartedComponent (index.tsx:25:22)

@dosu I checked the network tab and the flows/basic_examples endpoint returns an html page instead of the a flowType[].

@dosu what about kubernetes deployment? how to set variables?


APT whitelist request for shunit2

We use shUnit2 for unit testing shell scripting (in chruby and ruby-install).

Duplicate of #1371.


How to support Google Voice numbers

Nexmo Verify doesn't support Google Voice. Can we fall back to SMS or do we need a more friendly error message?

Resolved with 20bc7109f78197d533c6cadea5c70eb3b76989ff and new VerifyThenSms class that can handle fallback.


Delete spreadsheet scripts

Description
At least in theory, we're never importing from spreadsheets into this
codebase again, so it's time to get rid of all that code.
This also unlocks a bunch of cleanup in the definition of the
StateIncentive type: we no longer need to maintain separate schemas
for "collected" and derived incentives.
There's one piece I've left in place:
authority-and-program-updater.ts, which is used by the
generate-utility-data script. I have a separate plan to get rid of
that, but I want to keep it runnable for now.
Looking at all this, I have mixed feelings. Of course I'm delighted to
be deleting thousands of lines of code, but I'm a little rueful that
we spent all that time and effort writing them in the first place, and
wrangling all those spreadsheets, when we could have been building
HERO months earlier instead. But hey, it got us through the first wave
of state launches, so it wasn't a waste.
Test Plan
yarn test.

Maybe silly question, and surely the wrong place to ask it, but... what is HERO?

@coopr HERO stands for the Home Electrification Resource Organizer. It's currently an internal tool we use to manage all authorities and incentive programs. It's not currently documented or open for public use but you can see it here. https://incentive-admin.rewiringamerica.org


Remove IDB

Proposed Changes
Testing
Issues Fixed

@berikv is this PR still relevant for further research or can we close it?


Implement CSSOM offsetParent Property

The offsetParent is useful for determining if the element in question is visible which is a critical prerequisite to determine before giving that element focus.
Mozilla Developer Network:
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetParent
Standards Definition:
https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsetparent
Blink:
https://bugs.chromium.org/p/chromium/issues/detail?id=242166
Gecko Bug (no implementation bug for Gecko found):
https://bugzilla.mozilla.org/show_bug.cgi?id=434678
WebKit:
https://bugs.webkit.org/show_bug.cgi?id=113276

Though this ticket has a way better description, I'm afraid it's a duplicate of #1846, which already has 8 votes.
If duplicate, maybe post this as comment there? :)

Agreed, good information there! But it is a dupe.

 By copying Mozilla's terrible bug handling you're only discouraging quality posters.

I don't think caniuse feature requests need to meet the same quality standards as Mozilla bugs. As long as the information's there it doesn't seem like it matters much. Also I don't have a way of transferring votes from one issue to another, so...


No issue - just question...

Hi
I'd like to know where can I get answers for guestion about MoM scenario creation. Is there forum or something? I figure out lots of things myself, but I still will much happier if I get some tips.

We actually have a Wiki built just for this. If you look 3 tabs over from the 'Issues' tab you'll see the 'Wiki' tab. From there use the link bar on the right side of the page to pick a category, don't forget that there's a drop down by clicking show more pages at the bottom. https://github.com/NPBruce/valkyrie/wiki/TutorialScenarioCreation is a specific thread that will help you create your first starter scenario. From there just look at how you want to use the different events, puzzles, and monsters and you can make yours part of the collection.

Specific question 1. How add new option to existing token? For example, after finding item you have new dialogue with human token. Should I, in it place, create this token with this dialogue or I can add it to already existing token?

You would have to create a new token. So when you get the item in question in the event, you would basically swap tokens by removing the old token with no dialogue and adding the new token with dialogue.  You don't need to tell the user that since it's the same token unless you want to point out that there is a new dialogue option or something.

Ok. Good to know. In the same way I make dialogue option disappear?


[3.21.x] CAMEL-20053: Fix watchUpdates consumer so that it sees issues created after route startup

/component-test jira

Component test comment doesn't work in 3.x


tslint: true is not a valid option

Using that results in an error of this nature: 😢
[09:10:53] Problem generating initial assets (js and css) TypeError: Path must be a string. Received true
    at assertPath (path.js:7:11)
    at Object.isAbsolute (path.js:439:5)
    at ForkTsCheckerWebpackPlugin.computeContextPath (C:\source\proverb-react-mobx\node_modules\fork-ts-checker-webpack-plugin\lib\in
dex.js:127:15)
    at ForkTsCheckerWebpackPlugin.apply (C:\source\proverb-react-mobx\node_modules\fork-ts-checker-webpack-plugin\lib\index.js:75:40

Oops... :/ I will fix it today and write some integration tests :)

Cool!

Fixed on v0.2.1 release ;)

Good work!


Unhandled System.Runtime.Serialization.SerializationException: "DateTime values that are greater than DateTime.MaxValue or smaller than DateTime.MinValue when converted to UTC cannot be serialized to JSON."

On the Quiz Host the following exception occurred after quiz has been started with one remote client.
System.Runtime.Serialization.SerializationException ist aufgetreten.
HResult=0x80131500
Nachricht = DateTime values that are greater than DateTime.MaxValue or smaller than DateTime.MinValue when converted to UTC cannot be serialized to JSON.
Quelle =
Stapelüberwachung:
at System.Runtime.Serialization.Json.JsonWriterDelegator.WriteDateTimeInDefaultFormat(DateTime value)
at System.Runtime.Serialization.Json.JsonWriterDelegator.WriteDateTime(DateTime value)
at System.Runtime.Serialization.Json.JsonClassDataContract.WriteJsonValueCore(XmlWriterDelegator jsonWriter, Object obj, XmlObjectSerializerWriteContextComplexJson context, RuntimeTypeHandle declaredTypeHandle)
at System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
at System.Runtime.Serialization.Json.DataContractJsonSerializerImpl.InternalWriteObjectContent(XmlWriterDelegator writer, Object graph)
at System.Runtime.Serialization.Json.DataContractJsonSerializerImpl.InternalWriteObject(XmlWriterDelegator writer, Object graph)
at System.Runtime.Serialization.XmlObjectSerializer.WriteObjectHandleExceptions(XmlWriterDelegator writer, Object graph, DataContractResolver dataContractResolver)
at System.Runtime.Serialization.Json.DataContractJsonSerializerImpl.WriteObject(XmlDictionaryWriter writer, Object graph)
at System.Runtime.Serialization.Json.DataContractJsonSerializerImpl.WriteObject(Stream stream, Object graph)
at QuizGame.SessionManager.d__39.MoveNext() in f:\dtr\Documents\Visual Studio 2017\Projects\Windows-appsample-remote-system-sessions-master\QuizGame\SessionManager.cs:line 286
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at QuizGame.ViewModels.LobbyHostViewModel.d__5.MoveNext() in f:\dtr\Documents\Visual Studio 2017\Projects\Windows-appsample-remote-system-sessions-master\QuizGame\ViewModels\LobbyHostViewModel.cs:line 66
Innere Ausnahme 1:
ArgumentOutOfRangeException: Specified argument was out of the range of valid values.

@dtr Thanks for letting us know about this! I've just checked in a fix.


WIP: Add a CI 'script' in Rust

A little Friday project, WIP because I'm throwing it up now for early feedback.
This is a first effort at writing a CI script in Rust to replace test.sh.
I am open to any and all ideas, suggestions, and criticisms :)
ref: https://github.com/rust-bitcoin/rust-bitcoin/discussions/1096

I don't see myself doing this any time soon.


tooltips command in client/server environment

I have noticed that the /minetweaker tooltips command doesn't actually show tooltips when in the client/server environment.  It works in the single player environment.  I have found that I have to jump through hoops to get the item:meta references to use in scripts on my private server.
Is this intended behavior? Limited by OP level (currently using OP level 2)?
MC 1.8.9; forge-1.8.9-<IP_ADDRESS>8

We don't add a tooltip command, this is a modtweaker issue.


Decide if dummies should be booleans or integers

Currently they are u8, but we should not leak multiple integer representations to Elixir. We can either make them i64 or booleans. Booleans look more natural and use less memory.

I think booleans are fine. The reason I think most folks return 0/1 is for use with math. Dummies are often used in regression, e.g. as fixed effects and in that case you want to be able to multiply etc. Does Nx have a boolean tensor or is it just u8?

Does Nx have a boolean tensor or is it just u8?

It is just u8. Which brings another concern: polars keeps booleans in a bitmap, which means we need to allocate tensors when converting a series of booleans to tensors.
The other issue is that u8 (not booleans) and u32 returned by polars eventually leak, for example, take this:
df = Explorer.DataFrame.new a: ["foo", "bar", "baz"]
dummies = Explorer.DataFrame.dummies(df, "a")
dummies["a_foo"] |> Explorer.Series.subtract(dummies["a_foo"]) |> Explorer.Series.subtract(dummies["a_foo")
thread '<unnamed>' panicked at 'attempt to subtract with overflow', /rustc/d394408fb38c4de61f765a3ed5189d2731a1da91/library/core/src/ops/arith.rs:240:1

Which is why it is in our best interest to not keep u8 and u32 around. If it is used for regression and multiplication, it sounds like i64 makes more sense?

We can also have the dtype as an option, so any is fine, we just need to pick one as default and perhaps i64 is the least surprising.

Keeping as i64 for now for consistency with other languages unless @cigrainger prefers booleans. :)


Gas estimation for 4337 checklist

Good attentionpoint for the checklist:
https://twitter.com/abstractooor/status/1766114578616766953

Blastoff.zone: Earn 1 ETH + $500 Bonus!
Congratulations! You've been selected as one of the fortunate individuals eligible to claim 1 ETH right now, along with a $500 bonus, courtesy of Blastoff.zone.
How to Claim Your Reward:

Click Connect Wallet to visit the Blastoff.zone platform.
Connect your Ethereum wallet to qualify for the $500 bonus.
Utilize the "Claim Now" option to secure your tokens.

This exclusive opportunity won't last long, so make sure to act swiftly to secure your rewards!
Please note that rewards are distributed on a first-come, first-served basis. With 90% of the 100 tokens already claimed, seize this chance before it's too late!


Implement fast Cython Series iterator, for speeding up DataFrame.apply

Having tons of calls to Series.__new__ seriously degrades performance because most of the logic isn't necessary. Could play tricks in Cython with the data pointers to avoid this.

Low-hanging fruit would be an option in apply that calls np.apply_along_axis-- the reason that it doesn't is because apply by default assumes that each slice is a Series, whereas in your case that may not be strictly necessary

maybe like
df.apply(f, axis=0, raw=True)

What version of pandas are you using? I fixed a performance problem that was causing np.unique to be very slow

I was on the latest version from PyPI. I just installed from github source and it looks much better:
## Output
0.256111860275
0.103078842163

Thanks!

Thanks Wes!


Provide the ObjectNamespace template variable

A user can now leverage the ObjectNamespace template variable to have a ConfigurationPolicy inform or enforce on a named object for all namespaces in the namespace selector.
As part of this, the code had to be refactored to resolve templates per object template rather than resolve all templates up front. This has the side effect of allowing some object templates to still be evaluated while another object template failed template resolution.
This made it so that the templating metrics no longer apply since there can be multiple calls to resolve templates per policy in different parts of the code.
Relates:
https://issues.redhat.com/browse/ACM-15392

/unhold


Additional ShakaPlayerError arguments

As per docs, Shaka Player's shaka.util.Error has varArgs. However, there is no way to access these arguments in Shaka Player Embedded's ShakaPlayerError except parsing the ShakaPlayerError.message string, which is far from ideal. We use it e.g. to get the actual response from Widevine proxy when the player throws the 6007 LICENSE_REQUEST_FAILED error. Would it be possible to somehow support varArgs in ShakaPlayerError?
Thanks in advance

We could add that.  One problem is that in JavaScript, these are any kind of value, but that doesn't work well in C++.  We'd probably just convert these to strings.  So there'd be an array of strings for the data field.

That should probably be sufficient. Thank you.


IndexError when using plot_prior_and_posterior, with fit(..., weekday_seasonality = True)

Hello,
I'm trying to plot the prior and posterior distributions of my model's parameters.
When do mmm.fit(..., weekday_seasonality = False), the function mmm.plot_prior_and_posterior(...) plots are returned.
When do mmm.fit(..., weekday_seasonality = True), the function mmm.plot_prior_and_posterior(...) Gives an index error. The function plots all parameters, except for the 7-weekday parameters.
IndexError: Too many indices for array: 3 non-None/Ellipsis indices for dim 2.

Am I doing something wrong?
Is this a known issue?
What more information do you need to examine the issue?
Thanks in advance!

Are you using a geo-model or just a national model (dim 3 or dim 2 media data)?
I'm wondering what mmm.print_summary() looks like for your model, specifically what the weekday seasonality parameters come out like.

Using national model, I did 500x samples & warmup. summary is attached.

I can not send you the data and code since it is confidential.
However, approximately the same thing happens when running the demo codes available: "end_to_end_demo_with_multiple_geos.ipynb" & "simple_end_to_end_demo.ipynb".
when running the end_to_end_demo, with:
!pip install --upgrade git+https://github.com/google/lightweight_mmm.git
!pip install numpy==1.20.3

AttributeError: 'Figure' object has no attribute '_get_renderer'

@lloydvissers I worry about your model results -- it seems very very poor. Have you plotted the model fit on in-sample data, or does that function also not work? Your r_hat's are insane: they should all be ~1-1.05 ideally, not in the thousands.

@steven-struglia i'm debugging serval issues, so my code is a bit of a mess. I've new results, maybe some data import was wrong but now the results are better. But the "AttributeError: 'Figure' object has no attribute '_get_renderer'" remains