sqlalchemy.exc.InvalidRequestError: Vws friend stopped recording data

Vws friend had an error and stopped recording data after trip ended and charger connected.
After restarting the container everything worked fine.
I don't know if this has something to do with it, but this was the first trip after the 2.4 update.
Log:
2022-09-02T13:01:44+0000:INFO:vwsfriend_base:Updating data from WeConnect

2022-09-02T13:01:46+0000:INFO:trip_agent:Vehicle WVWZZZE1Z*** ended a trip (car was connected to charger)

2022-09-02T13:01:46.831238452Z Traceback (most recent call last):

2022-09-02T13:01:46.831304284Z   File "/opt/venv/bin/vwsfriend", line 8, in <module>   sys.exit(main())

2022-09-02T13:01:46.842102712Z   File "/opt/venv/lib/python3.10/site-packages/vwsfriend/vwsfriend_base.py", line 493, in main
    weConnect.update(updateCapabilities=True, updatePictures=True, force=True)

2022-09-02T13:01:46.849257559Z   File "/opt/venv/lib/python3.10/site-packages/weconnect/weconnect.py", line 183, in update
     self.updateComplete()

2022-09-02T13:01:46.851045127Z   File "/opt/venv/lib/python3.10/site-packages/weconnect/addressable.py", line 519, in
    updateComplete    child.updateComplete()

2022-09-02T13:01:46.853010841Z   File "/opt/venv/lib/python3.10/site-packages/weconnect/addressable.py", line 519, in updateComplete  child.updateComplete()

2022-09-02T13:01:46.853859867Z   File "/opt/venv/lib/python3.10/site-packages/weconnect/addressable.py", line 519, in updateComplete  child.updateComplete()

2022-09-02T13:01:46.854587061Z   [Previous line repeated 3 more times]

2022-09-02T13:01:46.854616134Z   File "/opt/venv/lib/python3.10/site-packages/weconnect/addressable.py", line 97, in updateComplete  observer(element=self, flags=self.onCompleteNotifyFlags)

2022-09-02T13:01:46.855075424Z   File "/opt/venv/lib/python3.10/site-packages/vwsfriend/agents/charge_agent.py", line 200, in __onPlugConnectionStateChange  self.session.refresh(self.chargingSession)

2022-09-02T13:01:46.860994418Z   File "/opt/venv/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 2348, in refresh

2022-09-02T13:01:46.865687651Z     raise sa_exc.InvalidRequestError(

2022-09-02T13:01:46.865847463Z sqlalchemy.exc.InvalidRequestError: Could not refresh instance '<ChargingSession at 0xb425f2f8>

Hmm, I have not yet succeeded in finding out what exactly causes this problem.

I have a small hope that this will be fixed with the update of sqlalchemy to 2.0.0 that is currently in testing.


User with UserBase Global permission does not have right permissions

Rancher Server Setup

Rancher version: 2.6.3
Installation option (Docker install/Helm Chart): Helm chart

If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc): RKE1 local cluster

Information about the Cluster

Kubernetes version: v1.21.7

User Information

What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom). - User with UserBase Global permission

Describe the bug
User with UserBase Global permission does not have right permissions
To Reproduce

As an admin create a User Base user - user1

Login as user1

User is navigated to Home page

Click on Create. User is navigated to this page

User is not able to navigate to any other page- which seems like it is expected.

Question:

Is the landing page on click on Create cluster correct?
In Ember UI, this is what the user with User Base access can see.

need to investigate if this is a UI issue

I attempted a repro of this on Rancher v2.6.4 and am not able to see the issue in dashboard. Here are the steps I used:

Create a User Base
Log in as User Base
Observe no Create button in Home view in Dashboard UI

This is expected, user base can't provision clusters
User base hasn't been added to any clusters so can't view local or downstream (expected)
This looks correct on the dashboard side

Looking at ember, I can see that the user base is able to access the following cluster provisioning / import options:

There is a discrepancy here. Based on the static role data for User Base these options should not be available on the Ember side.
We should have someone on the UI team investigate why a User Base can access the Add Cluster forms in Ember UI

@gaktive reassigning to your team based on Ryan's latest comment

Transferring to rancher/dashboard for UI tracking.


Parity between c++ xgboost and xgboost-predictor-java

Hi -
Have you done any parity tests between the scored output of the c++ models and the java models?
Asking because I'm seeing large differences (greater than 1) when using double precision values when doing regression.
Using these training parameters:
    "eta" -> 0.3,
    "max_depth" -> 2,
    "objective" -> "reg:linear",
    "early_stopping_rounds" ->2,
    "num_round" -> 15,
    "nworkers" -> 2

When I cast the Doubles in the FVec to a Float first, I then see the results are much closer, to within a .0001 tolerance.

Hi,
We also noted this tolerance. Is there any way to improve it?
Thank you!!!

I would recommend to always be using features as floats. XGBoost is explicit that it treats things as 32 bit due to performance optimizations (one example https://github.com/dmlc/xgboost/issues/1410). If a model has been trained using xgboost its split values will be stored as floats and so giving it doubles may cause inaccurate predictions if hit just the right values.


chore: add ts-jest example

Summary
Hopefully it'll fail on Windows CI due to #10339.

Test plan
Red CI, followed by some fix 😀

nope, #10346


NPE on Listener ClientConnectionEvent.Disconnect when server is stopping.

I am currently running

SpongeVanilla version: 1.12.2-7.1.6-RC181 (The latest ACTUALLY Stable version)

Java version: 1.8.0_191

Operating System: Win7

Plugins: Just my Test plugin

Issue Description
Stopping the server threw an NPE on my player disconnection listener. The listener looks as follows: public void onDisconnect(ClientConnectionEvent.Disconnect event, @Root Player player){
I think it has to do with a player loosing connection, and then leaving the game when the server stops.
It was hard to reproduce this bug because it doesn't happen all the time, but when it does, I get the following below:
StackTrace
https://pastebin.com/DDLFvfqm

We need to see the code of your listener.

All i do is unregister the player from a database

Yeah I am having trouble reproducing this myself.

I think the Player object is null and the event is called, i threw in a null check but im still having issues

The player can't be null.
If it was, this line would throw the NPE
LOGGER.info("{} lost connection: {}", this.player.getName(), reason.getUnformattedText());
I can't reproduce this either. Please, post your code or a minimal code snippet to reproduce the issue. The NPE is thrown inside your method.


Get rid of mongodb and move do *sql.DB

This is sort of dependent on the irc rewrite, but it would be nice to get rid of mongo.

This has been done. We're using *sqlx.DB, but same idea.


Expose as JS library and test against Mozilla's unit tests/test suite

To get a better idea of what work is done and todo, we could expose a JS API using this library that matches the original readability's API so that we can test this library against the original.
Is anyone interested in that? Is anyone actually using this crate?
I tried to use it for some toy project just to try something out and while it does get reasonable results for websites that have a more-or-less straightforward layout, it seems to struggle with some more complicated pages.

There is an official js lib https://github.com/mozilla/readability


Better support for AbstractSampler

Now that we have DynamicPPL.LogDensityFunction + AbstractMCMC.LogDensityModel, it would be nice to drop the usage of Turing.Inference.InferenceAlgorithm and allow "arbitrary" AbstractMCMC.AbstractSampler to be used with in Turing without much effort on the user side.
This would of course also help alleviate the discrepancy in configuration that is present on the package containing the implementation of the sampler and the corresponding "inference algorithm" in Turing.jl.
The issue with just replacing InferenceAlgorithm with AbstractSampler and AbstractMCMC.AbstractModel with DynamicPPL.Model, as is done in #2008, is that of method-ambiguities. I also assume that method ambiguities were part of the reason why InferenceAlgorithm was kept around.
There are, as I see it, two solutions:

Replace the currently present overloads of AbstractMCMC.sample in Turing.jl by Turing's own sample, i.e. make Turing.sample !== AbstractMCMC.sample. Turing.sample then calls AbstractMCMC.sample under the hood but with some additional niceties.
Keep something equivalent to InferenceAlgorithm or a wrapper type and continue overloading AbstractMCMC.sample.

Personally, I'm very much in favour of option (1). This has several benefits:

Removes the type-piracy.
Maintains the status-quo.

@devmotion @yebai @JaimeRZP thoughts?

Hi Tor!
Thanks for opening an issue.
After some thought I am also in favour of 1; i.e. Turing.sample .
I think besides the points you have raised I can also see how it would be easier to debug in case the user manages to dispatch to the wrong function.
Also for some samplers Turing dispatches to sampler specific instance AbstractMCMC.sample. Having all of these being specified within Turing seems the most elegant solution.
What do others think?
Best,
Jaime

I have been playing around with these ideas and I have noticed that even if we get rid of InferenceAlgorithm would still need to wrap AbstractSampler in DynamicPPL.Sampler() if we do not wish to change many things in one single PR.  Would somethign like the code below also lead to method ambiguities?
function AbstractMCMC.sample(
    rng::AbstractRNG,
    model::Model,
    sampler::Sampler{<:AbstractSampler},
    N::Integer;
    chain_type=MCMCChains.Chains,
    resume_from=nothing,
    progress=PROGRESS[],
    kwargs...
)
.
.
.
end

One consequence of (1) is that many users will run into warnings about conflicting exports and many scripts and tutorials will can't be used with newer Turing versions - AbstractMCMC.sample itself is not owned by AbstractMCMC but just StatsBase.sample. (1) might still be preferable but that's a somewhat unfortunate consequence of it, I think.
I wonder if there is a better way to fix these method ambiguities. What's the main problem to fix here? I think the problem is mainly that https://github.com/TuringLang/Turing.jl/pull/2008 does keep sample definitions with generic sampler and DynamicPPL.Model - even though I think they should be removed. If a sampler package defines sample, Turing should be able to reuse it automatically without any custom definitions if this implementation is defined for generic LogDensityModels.

What's the main problem to fix here?

Problem is: how do we avoid method ambiguities while at the same time allowing Turing.sample (whatever this method is) to add Turing's bells and whistles, e.g.

Good support for conversion into a Chains, i.e. if chain_type=Chains (which it should also be by default in Turing.sample) then we should extract parameter names, etc.
Convert DynamicPPL.Model into a LogDensityFunction or whatever the actual sampler wants.

I think the problem is mainly that #2008 does keep sample definitions with generic sampler and DynamicPPL.Model - even though I think they should be removed.

So before that was InferenceAlgorithm + AbstractModel. I def agree that we should remove these overloads or something, but we want to do that while we preserve the current behavior of Turing.sample, right?

If a sampler package defines sample, Turing should be able to reuse it automatically without any custom definitions if this implementation is defined for generic LogDensityModels.

Which def are you referring to?

One consequence of (1) is that many users will run into warnings about conflicting exports and many scripts and tutorials will can't be used with newer Turing versions - AbstractMCMC.sample itself is not owned by AbstractMCMC but just StatsBase.sample.

Very much agree with this though :confused:

My premise was that these would have to be removed or integrated in AbstractMCMC (possibly not the exact default values but some way to specify them).

But how do we do either of these while still preserving the desired behavior mentioned above? :confused:
Complete removal of Turing.sample implementations seems ideal, but I don't understand how we can do that and preserve the status quo from a Turing-user's persective :confused:

If the sampler expects a LogDensityModel, shouldn't this work automatically?

I don't think I fully understand :confused:  Can you write the signature you want Turing.sample to have (and whether it's AbstractMCMC or not)?

I assumed that Model <: AbstractMCMC.LogDensityModel. Isn't that what we want? Then sample(rng, ::LogDensityModel, ::MyCustomSampler) would be sufficient (modulo Turing-specific defaults). But it seems currently it's just a subtype of AbstractMCMC.AbstractModel (https://github.com/TuringLang/AbstractPPL.jl/blob/0f289206b22da5feee03218c157afb28706ed8ec/src/abstractprobprog.jl#L11).

I assumed that Model <: AbstractMCMC.LogDensityModel. Isn't that what we want?

Uhmm that is not at all what I hand in mind :sweat_smile: But I don't quite see how this helps. Sure, it does let us remove the sample functions from Turing, but we're also then losing everything that comes with that.

Then sample(rng, ::LogDensityModel, ::MyCustomSampler) would be sufficient (modulo Turing-specific defaults).

But the Turing-speciific stuff is sort of the important bit, no? :sweat_smile: Otherwise, yes things become much simpler.

My feeling was that they can easily be kept by changing the upstream code a bit. After all, it seems the only Turing-specific keyword arguments are chain_type = Chains and resume_from? Support for the latter could be added in AbstractMCMC I think, and the chain_type default could be made a function of the model (and sampler, I assume? - but then we need clear instructions for who is allowed to implement it to avoid method ambiguities, I guess).

But how do we extract the variable names in this scenario? This also needs to enter somewhere in the process, right?

chain_type default could be made a function of the model (and sampler, I assume? - but then we need clear instructions for who is allowed to implement it to avoid method ambiguities, I guess).

But would that help us in this case? We would dispatch on ::Model and ::AbstractSampler then, which would still leave room for ambiguity?

The variable names? Isn't that done by save!! and bundle_samples?
We can also prescribe the priority of arguments by defining eg
default_chain_type(model, sampler) = default_chain_type(sampler)
default_chain_type(sampler) = Any

and demanding that sampler packages only implement default_chain_type(::MySampler).
But, honestly, maybe it would be best to remove chain_type completely. I've never liked it very much, it doesn't seem a good approach for achieving composability. Maybe instead we should just demand that sample returns something that satisfies a Chains-interface (similar to Tables.jl, with some defaults for base types like Vector{<:NamedTuple}). And then Chains pacakges could define their constructors/converters for anything that satisfies this interface.

The variable names? Isn't that done by save!! and bundle_samples?

Aye, but on what do we dispatch bundle_samples if we remove InferenceAlgorithm?

But, honestly, maybe it would be best to remove chain_type completely. I've never liked it very much, it doesn't seem a good approach for achieving composability. Maybe instead we should just demand that sample returns something that satisfies a Chains-interface (similar to Tables.jl, with some defaults for base types like Vector{<:NamedTuple}). And then Chains pacakges could define their constructors/converters for anything that satisfies this interface.

Very happy to go down this route! Though it will require some more effort on our part. I do agree with the comment on chains_type too.

Aye, but on what do we dispatch bundle_samples if we remove InferenceAlgorithm?

On DynamicPPL.Model? As suggested in the previous comment, we could work around ambiguity issues by not dispatching on the model in the default fallback and when implementing it in the sampler packages but only in e.g. Turing.

As suggested in the previous comment, we could work around ambiguity issues by not dispatching on the model in the default fallback and when implementing it in the sampler packages but only in e.g. Turing

Ah, I see. Hmm, I don't know man, that seems somewhat fickle :confused: All it takes is one sampler package to add a ::AbstractModel in the bundle_samples def, no?

If the official API/docs state that you must not do this, it's a bug in the sampler package :shrug:

Of course, it's just that it's something that's difficult to properly test for since involves combinations of packages which are supposed to be independent of each other.
But let's take an example. In AdvancedHMC.jl we have the following implementation in the MCMCChains extension:
function AbstractMCMC.bundle_samples(
    ts::Vector{<:Transition},
    model::AbstractMCMC.AbstractModel,
    sampler::AbstractMCMC.AbstractSampler,
    state,
    chain_type::Type{Chains};
    kwargs...,
)

Here we would just remove the specialization on mode::AbstractMCMC.AbstractModel, right? Making it
function AbstractMCMC.bundle_samples(
    ts::Vector{<:Transition},
    model,
    sampler::AbstractMCMC.AbstractSampler,
    state,
    chain_type::Type{Chains};
    kwargs...,
)

Then in Turing.jl, we'd implement what exactly? Clearly just specializing on the Model won't be sufficient here, right?

No, I meant a different approach - the one outlined for default_chain_type above.

But that only addresses the choice of chain_type=MCMCChains.Chains, right? Or am I just completely misunderstanding?

and demanding that sampler packages only implement default_chain_type(::MySampler).

Aaaah okay I forgot this. But then I don't understand how you can hook into, say, MCMCChains as a sampler :confused:

You can define default_chain_type(::MySampler) = Chains, can't you? But since it's just a default value anyway and users are free to specify any other value, my feeling is that it does not scale if sampler packages specialize too much on a single chains format - which would again be an argument for decoupling the chains output completely from the sampling.

You can define default_chain_type(::MySampler) = Chains, can't you?

But that's not enough. For example, in the above example, bundle_samples does stuff like transforming the variables back to the constrained space, extract statistics and putting that in a format that is compatible with Chains, etc. For this you then need to overload bundle_samples, right?

transforming the variables back to the constrained space

Maybe a side remark but should that really be done in bundle_samples? Such transformations mean also that the iterator and transducer interface are inconsistent with sample.
I think if the samples are a collection of draws, then bundle_samples should merely add additional metadata and convert it to the desired output type. And the latter I think we should remove; and maybe we could just return (samples, metadata) or (; samples, metadata) by default.
If the chains packages implement constructors based on these return types, users could use
sample(model, sampler, N; ....) |> Chains

or
Chains(sample(model, sampler, N; ...))

Maybe a side remark but should that really be done in bundle_samples? Such transformations mean also that the iterator and transducer interface are inconsistent with sample.

I agree that it's not desirable, but it does have the advantage that it defers transforming the variables back to the constrained space just before you pass it to the user, i.e. AdvancedHMC doesn't have to worry about the transformations at all.

And the latter I think we should remove; and maybe we could just return (samples, metadata) or (; samples, metadata) by default.

Okay, then I'm with you on what you mean:) I also like the "manual" part of piping the result to Chains or something, but I don't like the idea of the end-user of Turing, which is suppposed to be somewhat accessible for someone with minimal programmming experience, to have to go through this manual construction. For everywhere else, I very much agree that manual specification would be nice as it would allow us to clean up this process significantly.


chore: add npmrc with legacy-peer-deps

why is this required?

why is this required?

we're using React 18 and a surprising number of libraries don't have React 18 as a peer dep yet, instead they're mostly "react": "^16.8.0 || ^17.0.0" which makes npm (v7+) throw an error when installing, npm 6 behaved differently by not installing peer dependencies automatically - more info can be found here https://stackoverflow.com/a/66620869

ok, I understand.


Support for custom routes and Router.push

Hi,
I have implemented the code to switch languages but I saw an issue with custom routes and Router.push.
Does this package support either custom routes or Router.push yet?
Thanks!

This package does not support Router.push and probably never will. Imperative routing is up to the user, and you should be aware of the as property.
This package does not support custom routes, but possibly could in the future. At the present moment, I have no idea how we'd achieve that. Again, it's most likely best left up to the user.

To help with both, I could expose lng-path-corrector and lng-path-detector.
The corrector takes a path and returns the corrected path based on language, and the detector takes a req, res and returns the current language.
Let me know what you think. We certainly won't be supporting either of these features anytime soon, as they're both quite complicated and easy to achieve on your own.

I actually managed to fix both scenarios.

For Router.push I created a separate function and I am using that as the main Router.push function

`import { config, i18n } from '../i18n';
import Router from 'next/router';
class RouterHelper {
push(href) {
const { defaultLanguage, localeSubpaths } = config;
let lng = null;
if (Array.isArray(i18n.languages) && i18n.languages.length > 0) {
[lng] = i18n.languages;
}
if (localeSubpaths && lng && lng !== defaultLanguage) {
return Router.push(/${lng}${href});
}
return Router.push(href);
}
}
const routerInstance = new RouterHelper();
export default routerInstance;`

With regards to custom routes it wasn't that difficult either.

//Add Language path first routesArray.forEach(({ page, path }) => routes.add(/:lang${path}`, page));
//Add non-language paths at the end
routesArray.forEach(({ page, path }) => routes.add(path, page));`

easy to achieve on your own

I'm glad you agree, then!
In general you're going to run into problems if you don't use the as option.
If you're having problems with i18next, I suggest you create a reproducible example and post on StackOverflow.


Pytest added to requirements.txt

Current requirements.txt does not include pytest which is needed to run test cases so I have added pytest to requirements.txt.
Might be better to have a separate test requirements file similar to the requirements-plotting.txt for matplotlib?

This is great, but somehow the view_graph edits are also a part of this PR. Can you create a fresh PR that only includes changes to requirements-test.txt?

Ah yes, sorry. I must have pushed to the wrong branch.

Closing this issue since it is a duplicate of #275


Add support for Logout Timer plugin

The new Logout Timer plugin added in https://github.com/runelite/runelite/commit/b58e3817d5e1069552944e2c01be0030adc9f0c0#diff-36bf7e903386494fb31a78acb18418f61a47d19e17b152b00ec07ef0922d879f allows changing the idle timer to up to 25 mins.

Fixed with v1.3


Add citation information

Good idea! I'm wondering if we should add something like a contribution guide, in particular to ask people to add themselves to this file if they are doing their first PR?

Yes, sounds like a good idea! But I think we should cover that in a separate PR, because adding a contribution guide might be a topic on its own


Showing nothing after build

After running the build command and serving the projects the public path can not be resolved so the components assets are not loaded.

Hi @mostafa-rahmani
We have added publicPath conditionally based on your current environment.
Use publicPath: '/' if you are deploying your app to root of the domain. If you are going to deploy your app in subpath (i.e. https://domain.com/my-sub-path/vue-app) then just update publicPath as below:
- publicPath: process.env.NODE_ENV === 'production' ? '/demo/materio-vuetify-vuejs-admin-template-free/demo' : '/',
+ publicPath: process.env.NODE_ENV === 'production' ? '<sub-path>' : '/',


Thumbs up animation added

Title and Issue number

I have added the project .Can it be merged now?
Close #4962

Checklist:

[X] I have mentioned the issue number in my Pull Request.
[] I have commented my code, particularly in hard-to-understand areas
[] I have created a helpful and easy to understand README.md

@MohitGupta121 ,@TusharKesarwani Please review my PR.


Invalid Key Format error from VM testing script

./tests/ssh/id_rsa needs 0600 perms and id_rsa.pub in the same folder needs 0644 perms. Anything more and OpenSSH refuses to use it.
The ./tests/ssh folder might need to be 0700 perms as well.

Appears to be a limitation with Git. The Git Manual indicates the only valid permissions are 100644 (rw-r--r--), 100755 (rwxr-xr-x) and 120000 (symlink). We will need to update any testing scripts to chmod the files before they are needed.


feat: automate slack sns subscription

Cloud One Service
[ X] File Storage Security
Proposed Changes
Python script to take Slack plugin lambda and subscribe it to all deployed FSS storage stacks.

@raphabot I went the extra mile and added another step for further instruction on that.

A general comments about the PATH chosen for the project...
I just thinking about the next ones that might come up, Deployment is more generic, might be more logical to a person looking at these automations in the repo...
Thoughts @raphabot @JustinDPerkins ?

@felipecosta09 I moved the folder structure under Deployment. At least with a directory called 'post-scan-action-automations', it's kind of easy telling. Always happy to change it

@raphabot and @felipecosta09
I updated the script to leverage an AWS profile param.
I updated the ReadMe to reflect changes to call the script.
I added in a reqs file as well.
Last is now this script lets sns topics in other AWS regions to be subscribed.

LGTM.
However I'd recommend to make the profile parameter non-mandatory as it also isn't in the AWS CLI. I'd default to the default profile.

Thoughts before we merge @JustinDPerkins ?

I added a diagram to this to assist in script usage.
I changed the awsprofile flag to not be required and will default to 'default' if not defined.
Added instruction link to set up named profile.
Also this will work for other FSS notification plugins not just slack(IE MS Teams, Jira, etc). So I updated the ReadMe to be more agnostic.

New logo inserted.


Provide a way to execute inspector logic that should run before the first line of the application

In order to have source maps we needed a way to execute some java script that would return the source map content before the first application line. The end user should not see this so we hide it from the debugger. If you want to debug it you should pass a NS_dontSuppressAllPauses environment variable

Looks good to me.


Failed to download model with docker behind proxy

System Info
docker image:  1.4
model: teknium/OpenHermes-2.5-Mistral-7B
Information

[X] Docker
[ ] The CLI directly

Tasks

[X] An officially supported command
[ ] My own modifications

Reproduction
~/tdi# docker run -e  http_proxy=$http_proxy -e https_proxy=$https_proxy --shm-size 1g -p 8080:80 -v $volume:/data ghcr.io/huggingface/text-generation-inference:1.4 --model-id $model
2024-04-11T14:14:28.352097Z  INFO text_generation_launcher: Args { model_id: "teknium/OpenHermes-2.5-Mistral-7B", revision: None, validation_workers: 2, sharded: None, num_shard: None, quantize: None, speculate: None, dtype: None, trust_remote_code: false, max_concurrent_requests: 128, max_best_of: 2, max_stop_sequences: 4, max_top_n_tokens: 5, max_input_length: 1024, max_total_tokens: 2048, waiting_served_ratio: 1.2, max_batch_prefill_tokens: 4096, max_batch_total_tokens: None, max_waiting_tokens: 20, max_batch_size: None, enable_cuda_graphs: false, hostname: "95997621edea", port: 80, shard_uds_path: "/tmp/text-generation-server", master_addr: "localhost", master_port: 29500, huggingface_hub_cache: Some("/data"), weights_cache_override: None, disable_custom_kernels: false, cuda_memory_fraction: 1.0, rope_scaling: None, rope_factor: None, json_output: false, otlp_endpoint: None, cors_allow_origin: [], watermark_gamma: None, watermark_delta: None, ngrok: false, ngrok_authtoken: None, ngrok_edge: None, tokenizer_config_path: None, disable_grammar_support: false, env: false }
2024-04-11T14:14:28.352213Z  INFO download: text_generation_launcher: Starting download process.
Error: DownloadError
2024-04-11T14:14:31.454429Z ERROR download: text_generation_launcher: Download encountered an error:
urllib3.exceptions.SSLError: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1007)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/conda/lib/python3.10/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
File "/opt/conda/lib/python3.10/site-packages/urllib3/connectionpool.py", line 847, in urlopen
retries = retries.increment(
File "/opt/conda/lib/python3.10/site-packages/urllib3/util/retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/teknium/OpenHermes-2.5-Mistral-7B (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1007)')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda/bin/text-generation-server", line 8, in
sys.exit(app())
File "/opt/conda/lib/python3.10/site-packages/text_generation_server/cli.py", line 128, in download_weights
utils.weight_files(model_id, revision, extension)
File "/opt/conda/lib/python3.10/site-packages/text_generation_server/utils/hub.py", line 151, in weight_files
filenames = weight_hub_files(model_id, revision, extension)
File "/opt/conda/lib/python3.10/site-packages/text_generation_server/utils/hub.py", line 110, in weight_hub_files
info = api.model_info(model_id, revision=revision)
File "/opt/conda/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
return fn(*args, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 1921, in model_info
r = get_session().get(path, headers=headers, timeout=timeout, params=params)
File "/opt/conda/lib/python3.10/site-packages/requests/sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/opt/conda/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 63, in send
return super().send(request, *args, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/requests/adapters.py", line 517, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/teknium/OpenHermes-2.5-Mistral-7B (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1007)')))"), '(Request ID: e30a461b-7756-4f94-8234-0c5edff6645e)')
Expected behavior
Work.

BTW, is it possible to download by hand and put it somewhere?

Simply download your model to a location (here models-cache) and set HUGGINGFACE_HUB_CACHE=/models-cache and MODEL_ID=/models-cache/deepseek-coder-33B-instruct-AWQ


Updated command for flashing custom image to target

Description
The command was missing previously missing, so that the nanoff tool just displayed the information about the board. From what I could gather from the documentation, --deploy seems to be the correct command.
Motivation and Context
This helps newbies (like myself) to correctly flash custom firmwares.
Types of changes

[X] Improvement (correction, content improvement, typo fix, formatting)
[ ] New Article (new document for docs website)
[ ] Config and build (change in the configuration and build system, has no impact on code or features)

Checklist:

[X] My doc follows the code style of this project.
[X] I have read the CONTRIBUTING document.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Nice catch! Actually the correct options are these.


Simplification of _checkBalance

Contract changes

Refactor _checkBalance on OETHVaultCore to reuse the withdrawal queue adjustment logic in _totalValue()

Code Change Checklist
To be completed before internal review begins:

[ ]  The contract code is complete
[ ]  Executable deployment file
[ ]  Fork tests that test after the deployment file runs
[ ]  Unit tests *if needed
[ ]  The owner has done a full checklist review of the code + tests

Internal review:

[ ] Two approvals by internal reviewers

Closing as this has been replaced by https://github.com/OriginProtocol/origin-dollar/pull/2163


Dagger 2 ActivityKey feature

Lets break the ActivityComponent

It should be ViewModel now :) I think we should have separate component for activities or no injection at all :)


Feat:  Add support for salesforce oauth

Does this work with Salesforce oauth flow?

Hi,
As far as I know there should be nothing preventing you to try it.
If there are problems,  report back and I try to help but PLEASE use the issue template so we get important information about your config, platform, ...
BR

I'm closing this task as the author did not reply


Update specs2-core, specs2-scalacheck to 4.12.2

Updates

org.specs2:specs2-core
org.specs2:specs2-scalacheck

from 4.12.1 to 4.12.2.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.specs2" } ]

labels: test-library-update, semver-patch

Superseded by #280.


Revert "Revert "Revert "Carlospolop patch 4"""

Reverts carlospolop/404checker#7

No vulnerabilities were found!


No EBS encryption support

If your default EC2 security settings are set to encrypt all new EBS volumes, the Terraform job will fail with the following error:
│ Error: waiting for EC2 Instance (i-XXXXXXXXXXXXX) create: unexpected state 'shutting-down', wanted target 'running'.
│ last error: Client.InvalidKMSKey.InvalidState: The KMS key provided is in an incorrect state
│
│   with module.deploy.aws_instance.cml,
│   on module-cml2-deploy-aws/main.tf line 125, in resource "aws_instance" "cml":
│  125: resource "aws_instance" "cml" {

Likely, additional instructions are required in the README to modify IAM permissions to allow the appropriate access to KMS.  However, a work around is to temporarily disable the default encryption state of all new EBS volumes:
AWS Console -> EC2 Dashboard -> Data Protection and security (upper right-hand corner) -> EBS Encryption -> Manage -> Uncheck 'Enable'

Hi, @orndor .. Thanks.  Obviously, I didn't run into this myself so far.  What would be the preferred solution here?  Changing the policy or applying the workaround?

Hi @rschmied!  Changing the required policy for KMS would be preferred.  I gather Enterprise users might have AWS governance polices which require EBS encryption by default.


70 fail on missing snapshot

:pushpin: References

Issue: #70

:tophat: What is the goal?
Allow to run KotlinSnapshot in a mode where it fails on missing snapshots.
:memo: How is it being implemented?

I have introduced a new property/env variable failOnMissingSnapshots. If this is set to 1, the camera will fail instead of writing the snapshot.

:boom: How can it be tested?

Write a snapshot test with missing snapshot, run failOnMissingSnapshots=1 ./gradlew test – The test should fail.
Run ./gradlew test – The snapshot should be created and the test should pass
Run failOnMissingSnapshots=1 ./gradlew test – The test still should pass.

See also: CameraTest.

☝ Seems to fail because it cannot unpack Oracle JDK 9 (and others) – Is this a known issue? 🤔

Thanks for your contribution @TobiasMende before taking a look at the code, could you please ensure we are able to run our CI jobs and get them passing? Maybe we need to move from Travis CI to GitHub actions in order to get them passing.

Hi @pedrovgs, I have tried to push my changes again but cannot see any Travis build for it. Anything I can do from my side?
Could you explain, what the AndroidConsumer, SpringConsumer and KotlinConsumer are needed for? 🙏  To me it looks like they are some kind of test, but I am unsure why those tests are needed and it might be more complicated to migrate them to GitHub actions (especially the AndroidConsumer) – (I am not very familiar with GitHub actions yet).

I don't know why Travis checks are not passing. We'd need to port CI to github actions instead. Could you please take care of this task?

I don't know why Travis checks are not passing. We'd need to port CI to github actions instead. Could you please take care of this task?

@pedrovgs Done ✅  – Not sure, why it is not running here, maybe you need to set some permissions on the repository? – Please have a look here to see the GitHub Actions in "action" :-) https://github.com/TobiasMende/KotlinSnapshot/actions/runs/2249503458

I'm closing and opening again just to see if this triggers the CI check.

Update the README.md file with information about this new env var or config param you created 😃 Something simple would be enough I guess. As soon as we address the readme change and the config param change we are good to merge and publish a new release 😃

I thought, this is, what I have done here. But I will have a second look :-)
https://github.com/pedrovgs/KotlinSnapshot/pull/71/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R107

hahaha sorry, @TobiasMende I didn't notice the comment was added on the README. Never mind about the docs update...it's Monday and not my best day as you can see xD

No worries :D Just got confused a bit ;-) – I think we can easily add the boolean handling in SystemSnapshottingProperties – I will see if I can write a test for it and change that :-)

@pedrovgs Please hold on for a sec. Something is odd with the SpringConsumer and Snapshot Update.

Actually, it looks like the failing SpringConsumer test is not due to the changes, but due to the fact, that the SpringConsumer test uses an older version of KotlinSnapshot, not the one in the repository. (Thus, if we change updateSnapshots: 1 (the old style) in the GitHub Action, it will work again.

I'll fix it before releasing the new version @TobiasMende 😃 don't worry!

Awesome! Thank you so much 🙏  – Looking forward to the release! 😊


correct path to missing caption file

fixes #96
adding eslintrc and fixing some minor issues in package.json & PXVideo.js

Its actually added in one place. The 2nd one is the transpiled code. After running npm run react.
Anyways let me remove it, if it works without it.


Charmxi chokes on parameter packs

Original issue: https://charm.cs.illinois.edu/redmine/issues/1854

Nils is currently working around this in Spectre. charmxi doesn't parse "..." properly.

Original date: 2018-04-12 14:23:45

~~https://charm.cs.illinois.edu/gerrit/#/c/charm/+/3980/~~ https://github.com/UIUC-PPL/charm/commit/0be40b0c9887d369a778097a33d5300ab81cfca5


Quantization model deploy on GPU

I have below error. model downloaded from your exported ones:
with cache or without cache enabled same error.

python3 infer.py --model yolov7-w6-end2end-ort-nms.onnx   --image /data/Videos/hiv00131/hiv00131/00000480.png  --device gpu --use_trt True
[INFO] fastdeploy/backends/tensorrt/trt_backend.cc(540)::CreateTrtEngineFromOnnx	Detect serialized TensorRT Engine file in yolotrt.cache, will load it directly.
[INFO] fastdeploy/backends/tensorrt/trt_backend.cc(106)::LoadTrtCache	Build TensorRT Engine from cache file: yolotrt.cache with shape range information as below,
[INFO] fastdeploy/backends/tensorrt/trt_backend.cc(109)::LoadTrtCache	Input name: images, shape=[1, 3, 640, 640], min=[1, 3, 640, 640], max=[1, 3, 640, 640]

[INFO] fastdeploy/fastdeploy_runtime.cc(270)::Init	Runtime initialized with Backend::TRT in device Device::GPU.
[ERROR] fastdeploy/backends/tensorrt/trt_backend.cc(384)::AllocateOutputsBuffer	Cannot find output: num_dets of tensorrt network from the original model.
Aborted (core dumped)

Please check the docs of YOLOv7End2EndORT:

vision/detection/yolov7end2end_ort

This class does not support TRT backend. To support TRT::EfficientNMS_TRT op, you should use YOLOv7End2EndTRT, please refer to:

vision/detection/yolov7end2end_trt

export yolov7 with trt nms (let max-wh be None):
# 下载yolov7模型文件
wget https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7.pt

# 导出带TRT_NMS的onnx格式文件 (Tips: 对应 YOLOv7 release v0.1 代码)
python export.py --weights yolov7.pt --grid --end2end --simplify --topk-all 100 --iou-thres 0.65 --conf-thres 0.35 --img-size 640 640
# 导出其他模型的命令类似 将yolov7.pt替换成 yolov7x.pt yolov7-d6.pt yolov7-w6.pt ...
# 使用YOLOv7End2EndTRT只需提供onnx文件，不需要额外再转trt文件，推理时自动转换

or download from  vision/detection/yolov7end2end_trt .

@DefTruth  Thanks I noticed the problem.
Another interesting thing that I quantize of the exported to onnx (small object detection / visdrone paddle) and its succesfully QUint8 and inferencin.
Problem is qunatized onnx much more slower than the orignal fp32.. 10 times.
Meanwhile I will give a shot to int8 chip (hailo-8)
To export onnx some converter asks for calibration images as in
weights=https://paddledet.bj.bcebos.com/models/ppyoloe_crn_l_80e_sliced_visdrone_640_025.pdparams

How can I quantize with calibration ? weights=https://paddledet.bj.bcebos.com/models/ppyoloe_crn_l_80e_sliced_visdrone_640_025.pdparams
Best

@DefTruth Thanks I noticed the problem.
Another interesting thing that I quantize of the exported to onnx (small object detection / visdrone paddle) and its succesfully QUint8 and inferencin.
Problem is qunatized onnx much more slower than the orignal fp32.. 10 times.
Meanwhile I will give a shot to int8 chip (hailo-8) To export onnx some converter asks for calibration images as in weights=https://paddledet.bj.bcebos.com/models/ppyoloe_crn_l_80e_sliced_visdrone_640_025.pdparams
How can I quantize with calibration ? weights=https://paddledet.bj.bcebos.com/models/ppyoloe_crn_l_80e_sliced_visdrone_640_025.pdparams
Best

Inference with CPU or GPU while you use the quantized onnx model?

@jiangjiajun  inferencing with GPU 2080Ti

Which tool you are using to quantize your onnx model?

@jiangjiajun
onnx:

`from onnxruntime.quantization import quantize_dynamic, QuantType

model_fp32 = '/Users/tulpar/Project/devPaddleDetection/sliced_visdrone.onnx'
model_quant = '/Users/tulpar/Project/devPaddleDetection/88quant_sliced_visdrone.onnx'
# quantized_model = quantize_dynamic(model_fp32, model_quant)
_quantized_model = quantize_dynamic(model_fp32 , model_quant , weight_type=QuantType.QUInt8)
`

This quant tool is not supported by TensorRT now, Refer this doc https://onnxruntime.ai/docs/performance/quantization.html#quantization-on-gpu

@jiangjiajun onnx:

`from onnxruntime.quantization import quantize_dynamic, QuantType

model_fp32 = '/Users/tulpar/Project/devPaddleDetection/sliced_visdrone.onnx'
model_quant = '/Users/tulpar/Project/devPaddleDetection/88quant_sliced_visdrone.onnx'
# quantized_model = quantize_dynamic(model_fp32, model_quant)
_quantized_model = quantize_dynamic(model_fp32 , model_quant , weight_type=QuantType.QUInt8)
`

Hi, FastDeploy will provide the tools to quantize model, which could suit deployment on FastDeploy better.  See current tutorials as : https://github.com/PaddlePaddle/FastDeploy/tree/develop/tools/quantization.  And we will release the examples about how to deploy INT8 models (YOLO series) on FastDeploy in tow days.
What model do you want to quantize and deploy on FastDeploy? We would give you supports.

@jiangjiajun
The model is : https://paddledet.bj.bcebos.com/models/ppyoloe_crn_l_80e_sliced_visdrone_640_025.pdparams
We have a competition for a huge project for object detection as in above model exactly. But we need to achieve 100fps minimum on the Xavier NX at 640x480 px.
Accuracy is perfect for above model. Neet to speed up and achive the performance.
This is why I tried to quantize int8.
I tried cpp inference 👍
./main --model_dir=/data/dProjects/devPaddleDetection/output_inference/ppyoloe_crn_l_80e_sliced_visdrone_640_025 --video_file=/data/RTSP_oz/20221010_14_30:00_rtsp029.mp4     --device=gpu --run_mode=trt_int8 --batch_size=8 --output_dir=/data/int8.mp4
But not much speedup . Only 40millisec on the 2080 rtx Ti

@jiangjiajun
The model is : https://paddledet.bj.bcebos.com/models/ppyoloe_crn_l_80e_sliced_visdrone_640_025.pdparams
We have a competition for a huge project for object detection as in above model exactly. But we need to achieve 100fps minimum on the Xavier NX at 640x480 px.
Accuracy is perfect for above model. Neet to speed up and achive the performance.
This is why I tried to quantize int8.
I tried cpp inference 👍 ./main --model_dir=/data/dProjects/devPaddleDetection/output_inference/ppyoloe_crn_l_80e_sliced_visdrone_640_025 --video_file=/data/RTSP_oz/20221010_14_30:00_rtsp029.mp4 --device=gpu --run_mode=trt_int8 --batch_size=8 --output_dir=/data/int8.mp4
But not much speedup . Only 40millisec on the 2080 rtx Ti

We have tried to quantize ppyoloe_crn_l_300e_coco, and it works well on FastDeploy.
Maybe we could help you, how about join our Slack channel for further support?  link: https://fastdeployworkspace.slack.com/ssb/redirect

@yunyaoXYY
I will join.
any speed improvement.

@yunyaoXYY did you tried ppyoloe_crn_l_80e_sliced_visdrone_640_025 ? any speedup ?

@yunyaoXYY I need and invitation to join Slack

@yunyaoXYY I need and invitation to join Slack

HI, please try this.
https://join.slack.com/t/fastdeployworkspace/shared_invite/zt-1hm4rrdqs-RZEm6_EAanuwEVZ8EJsG~g

此ISSUE由于一年未更新，将会关闭处理，如有需要，可再次更新打开。


Configure/Release

Configuring a peripheral should be undoable in some way to return it back to its default state.
The C SDK does this using _init/_deinit pairs for peripherals, we can probably do this using type states and similar calls, instead perhaps using configure/release as the call pair.

Really we are doing clock, so perhaps unclock is the right term to use here anyways

There's really a few possible States a peripheral may be in beyond clocked, but the goal is the same, a reversal of the peripheral states from Unclocked -> Clocked -> Configured and back


Asking

can we use in different domain and different host/server ?

The truth if you want a SSO I recomend to you use Laravel Sanctum https://laravel.com/docs/8.x/sanctum I wouldn't do not use this lib anymore.
With Sanctum you can control from wich domain do you want to accept requests and share the conection between different websites (using the same domain).
I'm not sure if you can accept requests from different domains, maybe yes.


Update aws-java-sdk-kinesis, ... to 1.11.807

Updates

com.amazonaws:aws-java-sdk-kinesis
com.amazonaws:aws-java-sdk-s3
com.amazonaws:aws-java-sdk-sqs

from 1.11.804 to 1.11.807.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.amazonaws" } ]

labels: library-update, semver-patch

Codecov Report

Merging #383 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #383   +/-   ##
=======================================
  Coverage   47.38%   47.38%
=======================================
  Files          25       25
  Lines         287      287
=======================================
  Hits          136      136
  Misses        151      151

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 9d6e295...4561414. Read the comment docs.


Strict compilation

Support a --strict command line option to exit with an error code if the typescript compiler emits any warning or error.

This depends on #3

#3 is now solved so consumers can implement this feature if they want to.
Changing the options depending on command line arguments is outside of the scope of this project: it should be handled by the consumers. We might add some helper functions later to facilitate this but for now I am closing this issue.


feat(trie): Add longest word in dictionary.

Coverage remained the same at 100.0% when pulling 64f137e26ac17b79098b37c262c5334dbf546b65 on longest-word-in-dictionary into d9e3227cfcf8f80e46bbaf0351d7f18093ccdfcb on master.


MSID: 99084 Version: 1 DOI: 10.1101/2<IP_ADDRESS>2184

MSID: 99084
Version: 1
Preprint DOI: https://doi.org/10.1101/2<IP_ADDRESS>2184
Step 1. Awaiting reviews
Editorial to post reviews via hypothesis
Useful links:

DocMap: https://data-hub-api.elifesciences.org/enhanced-preprints/docmaps/v2/by-publisher/elife/get-by-manuscript-id?manuscript_id=99084
New model tracking: https://docs.google.com/spreadsheets/d/1_fHaoOy7hjyocptKtVJRijeNpUY4hBS7Ck_aVmx6ZJk/
Reviews on sciety: https://sciety.org/articles/activity/10.1101/2<IP_ADDRESS>2184

For trouble shooting (e.g. no Docmaps available):

DocMap issue addressing: https://miro.com/app/board/uXjVNCwK6EI=/
Explore DataHub DocMaps API: https://lookerstudio.google.com/reporting/4c2f0368-babb-4beb-b5b3-497e7e7b0f08/page/ejphD
Unmatched submissions and preprints: https://lookerstudio.google.com/u/0/reporting/9f86204f-3bf7-477c-9b18-5c5ef141bf69/page/p_gxi57ha93c
Unmatched manuscripts spreadsheet: https://docs.google.com/spreadsheets/d/15QcK8w-ssB7109RQEDtFpJPZ0J5HTGxoHa_2TtpMBbg/edit#gid=1336081641

Step 2. Preview reviewed preprint
Production QC content ahead of publication
Instructions:

QC preview: https://prod--epp.elifesciences.org/previews/99084v1
Update ticket with any problems (add blocked label)
When QC OK, add QC OK label to ticket and add publication date and time to https://docs.google.com/spreadsheets/d/1amAlKvdLcaDp5W8Z8g77NmkwbMF5n_u89ArSqPMO8jg
Move card to next column
(At end of the day post link in #enhanced-preprint and ask for PDF to be generated)

Useful links:

Preprint DOI :  https://doi.org/10.1101/2<IP_ADDRESS>2184
Confirm reviews returned by EPP: https://prod--epp.elifesciences.org/api/reviewed-preprints/99084/v1/reviews
To update the MECA path in the docmap: https://docs.google.com/spreadsheets/d/1mctCQuNFBjSn97Lihy7_vBO6z7-N-oqyLv4clyi6zHg

Step 3: Awaiting search reindex
This step adds the reviewed preprint to the homepage: https://elifesciences.org
The search reindex is triggered once an hour. We need the reviewed preprint to be indexed as the search application serves the journal homepage.
Useful links:

Jenkins pipeline to reindex search can be triggered sooner or monitored here: https://alfred.elifesciences.org/job/process/job/process-reindex-reviewed-preprints/

Step 4: Published! PDF requested
Waiting for PDF to be generated
Useful links:

PDF tracking: https://docs.google.com/spreadsheets/d/106_XeDjmuBae7gexOTNzg60lapeqjl2aRn9DzupGyS8/

Step 5: Introduce PDF to data folder and git repo
Upload PDF to relevent folder in git repo https://github.com/elifesciences/enhanced-preprints-data/
Step 6: Done!

[ ] Kettle is on!

Fixing various XML issues.


Adding markers to the map

Hey
Any idea how i can add marker to the map ?
I have this code in app.component.ts but it didn't show any markers on the map the same way for the popup works!
     import {LngLat, Map, Popup, Marker} from 'mapbox-gl';

        let marker = new Marker()
        .setLngLat([-96, 37.8])
        .addTo(map);

        this.mapService.marker = marker;

If you check your DOM tree, I can see a marker has been created. As you use the default element as its content, which is an empty div, you are surely unable to see anything.
Unlike Leaflet, Mapbox GL doesn't provide any default marker icon and you need to feed it. Try this and you should see a red square at the Null Island.
  let el = document.createElement('div');
  el.style.backgroundColor = 'red';
  el.style.width = '10px';
  el.style.height = '10px';

  let marker = new Marker(el)
      .setLngLat([0, 0])
      .addTo(map);

Thanks man!


Authentication

Good day, I am currently busy with the hands on lab. Lab 2: Create a Notebook Session and Copy the Repository. 3. Execute the following command in the terminal window:git clone https://github.com/oracle/oci-data-science-aisamples.git labinput: (base) bash-4.2$ git clone https://github.com/oracle/oci-data-science-aisamples.git labresultCloning into 'lab'...Username for 'https://github.com':Password for 'https:I used my own username and password.the resultremote: Support for password authentication was removed on August 13, 2021.remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories

Can anyone help me please?


Add Action to create releases

The action should:

Create a release
Build and upload the debug apk
Build and upload the static web assets
Build and upload the signed apk

Everything except the Signed APK build has been implemented. Signed APK has been moved to #375


[error] ** System running to use fully qualified hostnames **

Environment

OS: https://github.com/emqtt/emq-docker
Erlang/OTP: https://github.com/emqtt/emq-docker
EMQ: https://github.com/emqtt/emq-docker

Description
使用阿里云的容器服务，

Docker=A的服务编排中设置hostname=emqtt
Docker=B的服务编排中设置environment: EMQ_JOIN_CLUSTER=emqtt@emqtt

先启动A，等A正常了，再启动B，结果看到B的Log：
emqtt_emqtt-lb_1 | 2017-11-22T08:53:33.995182237Z ['2017-11-22T08:53:33Z']:waiting emqttd
emqtt_emqtt-lb_1 | 2017-11-22T08:53:34.027610741Z emqttd 2.3.0 is running now
emqtt_emqtt-lb_1 | 2017-11-22T08:53:34.447038052Z ['2017-11-22T08:53:34Z']:emqttd start
emqtt_emqtt-lb_1 | 2017-11-22T08:53:34.447764103Z ['2017-11-22T08:53:34Z']:emqttd try join emqtt@emqtt
emqtt_emqtt-lb_1 | 2017-11-22T08:53:34.965973408Z 08:53:34.962 [error] ** System running to use fully qualified hostnames **
emqtt_emqtt-lb_1 | 2017-11-22T08:53:34.965998136Z ** Hostname emqtt is illegal **
emqtt_emqtt-lb_1 | 2017-11-22T08:53:34.966787396Z Failed to join the cluster: {node_down,emqtt@emqtt}

补充，在B中，是可以ping到hostname=emqtt 的ip的，B用ip是可以Join到A的，environment: EMQ_JOIN_CLUSTER=emqtt@ip

This issue is very important! Docker container ip maybe change on restart.

Hello,
apparently I've just hit this error on a just installed v4.2.1 image on K8s:
(emqx@emqx-0.emqx.rtm.svc.cluster.local)1> 2020-07-28 13:55:14.480 [error] ** System running to use fully qualified hostnames ** ** Hostname emqx-0 is illegal **
and you can see it correctly called himself "emqx@FQDN", so why is it staring at the hostname... everyone knows the hostname is shorter than the FQDN, anyway...
Here's the environment I'm passing to the v4.2.1. docker image:
EMQX_CLUSTER__AUTOCLEAN=5m	 	 EMQX_CLUSTER__AUTOHEAL=on	 	 EMQX_CLUSTER__DISCOVERY=k8s	 	 EMQX_CLUSTER__K8S__ADDRESS_TYPE=hostname	 	 EMQX_CLUSTER__K8S__APISERVER=https://<IP_ADDRESS>:443	 	 EMQX_CLUSTER__K8S__APP_NAME=emqx	 	 EMQX_CLUSTER__K8S__NAMESPACE=rtm	 	 EMQX_CLUSTER__K8S__SERVICE_NAME=emqx	 	 EMQX_CLUSTER__NAME=rtmcl	 	 EMQX_NAME=emqx	 	 EMQX_NODE__COOKIE=cookie
Please advise, as I'm really puzzled by this, since just yesterday I've successfully installed another emqx v4.2.1 cluster in a different namespace, and it's working very well!

@adacaccia could you try to add DEBUG=true to your environment variables and paste the output here ?
You may also try to set EMQX_HOST to the FQDN

did not notice that the issue has been resolved.
nonetheless, debug output could help us to understand what went wrong.


Font imports break when viewing in Incognito mode

When viewing in Chrome's Incognito mode, the font imports for the site break, disrupting formatting. We should fix this immediate issue as well as choose more sensible font fallbacks (serif vs. san-serif) in case Google Fonts' CDN is ever down.
Firefox Private Browsing appears to work fine.

False alarm. This was broken only on my machine because I had some bad debug headers set.


create visualstudio2017-workload-msbuildtools

This workload is mandatory/always present, same as Core Editor in IDE products.


[LUIS] How to recognize an address(geography) in other languages?

Bot Info

SDK Platform:  Node.js
Deployment Environment: Heroku

Issue Description
How can LUIS recognize an address? I've seen that geography prebuilt entity will be deprecated but it was only available in English (I'm doing a French bot).
For the context I'm doing a google maps chatbot where you can ask questions like "estimated time to travel from paris to madrid".
Right now it only works with cities name or places
But not with adresses like: "take me to 9 Fosh avenue Paris"
Is it possible to add a regex recognizer to the entities?
Link to repo
Thanks

Closing the issue assuming it as resolved. Please reopen a new issue if it still persists.


updates for native file type using iiif

Tested localhost as much as possible, but since the collections are on sandbox and digital, the file downloads don't work quite right. We'll need to test on sandbox once deployed there, and make sure the different file sizes work correctly when downloaded.
I did notice the iiif service still is used for native file formats when choosing a different image resolution.


support pull exporters

example: @opentelemetry/exporter-prometheus

https://github.com/cap-js/telemetry/pull/118


Add front-end support saving and reading feature flags

Problem statement
Feature flags v2 involves moving enabled flags to an Organization level, so we no longer need to maintain that in LocalStorage.
What you need to know

Feature flag v2 pull request

Acceptance criteria

[ ] Add a useIsFeatureEnabled hook to determine if the current Organization has a feature enabled based on settings
[ ] Feature flag v1 UI and logic is removed
[ ] Organization settings page has a JSON textarea to specifically update featureFlags (optional, can get by without it)

@chris-kuryak We can have a longer discussion about this, I'm wondering if we really need to support feature flags in the future.  It doesn't make sense to me to show a specific set of UX features to certain Organizations other than the normal Sender/Receiver user journeys.  With feature flags, we'd have the capability of showing, say, the validator feature to Abbott but not SimpleReport.  This is a farfetched example, but if we're trying to make the ReportStream website universally usable to our users, feature flags feel antithetical to that.
Thoughts?

@stephenkao Yes, I don't have any great examples with what's on our roadmap regarding features we'd only want to show to limited users. I can only see the case where we'd want to have a "limited release" of a feature to a certain sub-group of users to test it out before a full release.
I think we should bring this up to all teams in our sync to see if we are missing any historical context/obvious. How do you feel about that?

Ah, sorry -- I forgot to follow up on this ticket @chris-kuryak!
I asked about historical context in the sync this week, and the short of it was that we didn't have a good use case for Organization-specific feature flags, so my feeling is that we can close this ticket and revisit if we ever need to handle the aforementioned "limited release" logic.
Another topic that comes to mind is a/b testing, but I think we're a looooooong ways away from even thinking about that at this point given the fact that we won't be able to get any statistically significant values from our very limited set of real users.  If/when we do want to broach a/b testing, we should consider investing in a more fully fleshed out solution so we can automatically group users into cohorts and potentially run blind/double-blind experiments against them.
In any case, I don't think we need to take any further action with feature flags as they are now so I'm in favor of closing this ticket.  Thoughts?

Agreed @stephenkao


Merged-in PR not showing in dashboard

Is there an existing issue for this?

[X] I have searched the existing infra issues

Type of Request
bug
Infrastructure Environment
LUCI
What is happening?
I have a PR (https://github.com/flutter/flutter/pull/135444) that merged at 12:48 CDT, but it isn't showing in the dashboard as of 2 PM CDT
One thing that may be of note is that I manually overrode the Google Testing status
Steps to reproduce

Visit https://flutter-dashboard.appspot.com/#/build
See that my PR is not listed

Expected results
I expect to see my PR in https://flutter-dashboard.appspot.com/#/build

It just started showing on the dashboard at ~2:05 PM CDT

There seems a bug in webhook subscription when GOB commit copy over is slow (fails to show up even after 3 retries), it will fail to insert the data to datastore. To workaround, I manually vacuum the missing commits.

The webhook message is supposed to be resent to subscription API after 500 error, but it didn't. This causes the commit missing if GOB copybara slows.
I am trying to understand the difference between subscriptions github-webhooks-sub and luci-postsubmit:
where the webhook message was not retried after 500 but the postsubmit message did get retries


more reliable event handling between pan gesture and FlatList

According to the issue reported in https://github.com/computerjazz/react-native-draggable-flatlist/issues/467, this fix improves (at least in my case) the propagation of the events between the pan gesture and the FlatList scroll event avoiding in fast panning the cancelation of the pan gesture in favor of the FlatList scroll event.
Additionally, there are cases where visual gaps occur at the first offset, so add the reset call in the begin.

Carefully, this setting only works if a limited dragHitSlop is specified for the drag area, I will change the PR to use simultaneousHandlers instead of waitFor which I think will solve this problem.

Carefully, this fix only works if a limited dragHitSlop is specified for the drag area, I will change the PR to use simultaneousHandlers instead of waitFor which I think will solve this problem.

I will add a clean version using the simultaneousHandlers only.


Refactor to BeyondML

Need to refactor entire codebase to make way for the new name - BeyondML

Changes pushed to refactor branch


spring.kafka.listener.concurrency large than partition count, is that any problem?

I'v configured spring.kafka.listener.concurrency=10 in my application, with num.partitions=8  in kafka server.properties. After start up the application for a while, the cpu load is much higher than before, even reached 100%. Is there any rule for the concurrency configuration? Why the cpu load is too high? Thanks for your reply.

Well, you need to confirm with some report that it is indeed a Spring Kafka problem.
A concurrency behavior is like this: minimum from the spring.kafka.listener.concurrency and num.partitions. In other words we are not going to have more threads, than you have partitions.

Based on the comment from @garyrussell this seems intended to be closed.


Spelling error

Looks like there is a spelling error in the guide portion of the app. 'Customisation' should be 'Customization'.

It's not an error. American English uses "customization" and I'm following British English. Note the word "optimise" in the rightmost panel. :)

@joshavanier haha oh good point, my apologies


After fullscreen mode, dragging elements now allow outside drawflow bounds

Added a fullscreen mode on its parent div container which will look like this.

but after exiting the fullscreen mode, I can now drag the element outside the bounds of drawflow

Also in the fullscreen mode, I can already drag the element outside the bounds of drawflow

Hi @shidcordero
How implement fullscreen?
Simple demo fullscreen and no problem:
<!DOCTYPE html>

    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link
      rel="stylesheet"
      href="https://cdn.jsdelivr.net/gh/jerosoler/Drawflow/dist/drawflow.min.css"
    />

    <button id="fullscreen" onclick="fullscreen()">Fullscreen</button>

Test with parent div and no problem.
<!DOCTYPE html>

    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link
      rel="stylesheet"
      href="https://cdn.jsdelivr.net/gh/jerosoler/Drawflow/dist/drawflow.min.css"
    />

        <button id="fullscreen" onclick="fullscreen()">Fullscreen</button>

im not sure now how did it happen to me, does display and position styles can be the cause here? or setting the height or width?

It could be the cause if you have done something like this:
     position: absolute;
     width: 100vw;
     height: 100vh;

so I've tried your code in my app, and it works great. can you try it in a vue app?

finally fixed it. I found the solution in your Theme Generator, and the fix was just to add a class parent-drawflow in the #drawflow id.


lnwallet: apply dust amounts to fees

If an HTLC’s value is below a node’s dust limit, the amount for that
HTLC should be applied to to the fee used for the channel’s commitment
transaction. This PR also adds minor refactoring of the dust limit unit tests.

Coverage increased (+0.006%) to 72.982% when pulling db7e585657aa78deb286622edbb77d845e522333 on bryanvu:dustfees into 74897dc328dbdeb59acd2b35d0288cdc03ec0f4c on lightningnetwork:master.

Suggestion regarding how to deal with cases where HTLC’s value is below a node’s dust limit:  rather than the entire amount for that HTLC being applied to the fee used for the channel’s commitment
transaction, the HTLCs are gathered together until they can be made part of a transaction.  There is then a fee, a transaction and a donation.  The donation and recipient(s) would be specified by the user from the wallet (visual example of how this might look like in a user's GUI wallet settings based on an actual example).  Support from wallets would vary but the  support for this would be present in lnwallet.
Further concepts relating to this suggestion are here and also here.

@ABISprotocol that can't be done as is. Doing so would require a new transaction to be create when closing a transaction forcibly which would be a protocol modification. While your idea may be interesting when applied to a user facing wallet with a GUI, it isn't very applicable to this situation.

Coverage increased (+0.01%) to 74.116% when pulling 23952cd7bea1f5bc3291a6acbe8abf5f83dd2a5d on bryanvu:dustfees into dc0ab06d9119b97598595dcb9431904197500c69 on lightningnetwork:master.

Just pushed with the requested changes.


feat(annotations): create jsonSchema annotation

Early stage
This is an experimental change
Description
Create @jsonSchema annotation
Type of Change

[x] ✨ New feature (non-breaking change which adds functionality)
[ ] 🛠 Bug fix (non-breaking change which fixes an issue)
[ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🧹 Code refactor
[ ] ✅ Build configuration change
[ ] 📝 Documentation
[ ] 🗑 Chore

Usage
Add the annotation to your model
@jsonSchema
class MyModel {
//
}

Run the build_runner
dart run build_runner build

Generates swagger using nenuphar
nenuphar gen

Still todo

[ ] nenuphar_generator should reference other model schemas
[ ] @Response annotation
[ ] @RequestBody annotation
[ ] code coverage
[ ] documentation
[ ] nenuphar_annotations publication
[ ] nenuphar_generator publication
[ ] nenuphar_cli publication

Ohh nice one!!!


A3C loss functions

In A3C,
self.value_loss = 0.5 * tf.reduce_sum(tf.square(self.target_v - tf.reshape(self.value,[-1])))
self.entropy = - tf.reduce_sum(self.policy * tf.log(self.policy))
self.policy_loss = -tf.reduce_sum(tf.log(self.responsible_outputs)*self.advantages)
self.loss = 0.5 * self.value_loss + self.policy_loss - self.entropy * 0.01

since, 0.5 is already multiplied in self.value_loss, should
self.loss = self.value_loss + self.policy_loss - self.entropy * 0.01

Hi Gabriel, this is actually a feature, in a strange way. In A3C the value loss is often scaled by some coefficient in order to ensure smaller (and hopefully more stable) changes to the value function. The first 0.5 is part of the value loss itself, while the 0.5 in the full loss function is the regularizer parameter, similar to the 0.01 the entropy is multiplied by. I have actually seen the value loss scaled down to as much as 0.1 in some cases. In practice the separation can seem somewhat arbitrary though.


Sample updates:

@ldanzinger - please review the updates to the sample

use a colour raster to make changes more obvious
add more info to README
update screenshot

looks good


Output more user-friendly error reports for polldevs.py parsing errors

Closes #247
Examples of output:
ERROR - zino.scheduler (MainThread) - polldevs.cf:4: 'foobar' is not a valid configuration line

ERROR - zino.scheduler (MainThread) - polldevs.cf:11: Validation error in device block 'N/A': Field required ('name')

ERROR - zino.scheduler (MainThread) - polldevs.cf:11: Validation error in device block 'example-gw': Input is not a valid IPv4 address ('address')

Still missing added test coverage.

What do you think, @runborg ?

The examples in first post are great!  informative messages :)

🦙 MegaLinter status: ✅ SUCCESS
Descriptor 	Linter 	Files 	Fixed 	Errors 	Elapsed time
✅ PYTHON 	black 	3 		0 	0.53s
✅ PYTHON 	isort 	3 		0 	0.23s
✅ PYTHON 	ruff 	3 		0 	0.01s

ruff can do the job of both black and isort. ruff is even incompatible with black in a few cases.

Are there any plans to switch to toml for polldevs?

I do not se a real reason for not changing to toml, but there are functionallity that needs to be handled specially.. eg. "hierarchical" settings.. defaults etc..

I think we can live with one line not covered by tests :grin:


added emoji support for formatting

When format is used as bar.Format("<=\U0001F600 >”),
we can have a progress bar as follows.
2876 / 10000 <===============😀                                                                           >  28.76% 8s
Previously, when we use the same format call, it was showing the bar with default format.

Thank you! Merged


CYD Dual USB

Touch Controls are horribel
How to select things
How to scroll

you dont scroll the screen is divided into 3 halfs top of the screen is to go up bottom of the screen is to go down
middle screen to select and go back depending on what menu you are in
this is not a issue but more so a misunderstanding of how the touch controls works which is also stated in the wiki
thank you for your understanding


Fix typo

a Azure -> an Azure

@changeworld : Thanks for your contribution! The author, @sharonlo101, has been notified to review your proposed change.

Verified editorial corrections.


Support iOS 9 target

Summary
Added Support for iOS 9 target (for projects that have min iOS 9 target and can't use PanModal)
Requirements (place an x in each [ ])

[x] I've read and understood the Contributing Guidelines and have done my best effort to follow them.

[x] I've read and agree to the Code of Conduct.

[ ] I've written tests to cover the new code and functionality included in this PR.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Omid Dolatkia seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

it will be nice if we can get a clarification from  the owner of the this Library, whether the support for ios 9 will be taken into the consideration or not. We also need to use this library as well need to support ios 9 in our App, so please give us some sign that we can able to use this library directly from the main repo.
Thanks

@ste57 Could you please review this PR, thanks

Hi @omiddlk
I'd recommend merging this on a fork as we're not looking to support iOS 9 publicly

Hi @omiddlk  will you be making a fork ?
please mention me in your PR if you make it.
Thanks


[stable/rabbitmq] Add additional liveness/readiness probe parameters

Signed-off-by: Severn Tsui<EMAIL_ADDRESS>
What this PR does / why we need it: Adds the ability to configure probing period and thresholds for both liveness and readiness checks.
@bitnami-bot

/lgtm

/ok-to-test

/ok-to-test
/lgtm


'PT_NIP' was not declared - linux ppc64le

Hi,
I'm building gperftools on linux ppc64le machine and I'm getting errors like this
src/stacktrace_powerpc-linux-inl.h:188:62: error: 'PT_NIP' was not declared in this scope
         result[n] = (void*) sigframe->uc.uc_mcontext.gp_regs[PT_NIP];
                                                              ^~~~~~
src/stacktrace_powerpc-linux-inl.h:188:62: note: suggested alternative: 'PT_NUM'
         result[n] = (void*) sigframe->uc.uc_mcontext.gp_regs[PT_NIP];
                                                              ^~~~~~
                                                              PT_NUM

It was working some time ago, but something changed. I'm trying to figure out what's wrong, but can't find how PT_NIP is defined in gperftools - how is /usr/include/linux/ptrace.h included? @alk Could you help please?

gcc 8.1.1
kernel-headers 4.17.0
glibc-headers 2.27

I am not not a ppc person. What version of gperftools is that? Can you pinpoint this problem to any specific change in gperftools ?

What version of gperftools is that?

2.5 (it's bundled in mongodb database). I've tested it also with 2.6.3 and I working on ppc64le. So I guess this issue can be closed as it works in latest version.

I almost sure it is related to https://sourceware.org/bugzilla/show_bug.cgi?id=21457 . We cleanup lot of architecture headers for GLIBC 2.27 which added a lot of identifiers not reserved by POSIX (such as PT_NIP). It means to get the old register definition for mcontext_t you will need to use build with _DEFAULT_SOURCE (_BSD_SOURCE || _SVID_SOURCE on GLBC prior of 2.24) or include the kernel header.

@zatrazz Thanks for the information and workaround! I wasn't able to find what is causing it...

It means to get the old register definition for mcontext_t you will need to use build with _DEFAULT_SOURCE (_BSD_SOURCE || _SVID_SOURCE on GLBC prior of 2.24) or include the kernel header.

@zatrazz I probably get it wrong. So _DEFAULT_SOURCE has to be used when building glibc? (I thought that it concerns building gperftools)


problems in train.py

Hi. When I run 'python train.py config/pan/pan_r18_ic15.py' , the errors are as followings:
Do you know how to solve the problem? Thank you very much.
Traceback (most recent call last):
File "train.py", line 234, in
main(args)
File "train.py", line 216, in main
train(train_loader, model, optimizer, epoch, start_iter, cfg)
File "train.py", line 41, in train
for iter, data in enumerate(train_loader):
File "D:\Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 435, in next
data = self._next_data()
File "D:\Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 1085, in _next_data
return self._process_data(data)
File "D:\Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 1111, in _process_data
data.reraise()
File "D:\Anaconda3\lib\site-packages\torch_utils.py", line 428, in reraise
raise self.exc_type(msg)
TypeError: function takes exactly 5 arguments (1 given)

It may be the problem of software environment.

same problem.


README.md: Fixed link in "Development" section

After HTML code you need a space or markdown syntax breaks, now the word here is clickable instead of having a link besides it

I keep forgetting to fix this, thanks


Unable to download webpage: <urlopen error [Errno -2] Name or service not known> (caused by URLError(gaierror(-2, 'Name or service not known'),))

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://www.youtube.com/playlist?list=PLyc5xVO2uDsB_HVlVzAOf5JKfV0U-LXvz', u'--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.07.28
[debug] Python version 2.7.16 (CPython) - Linux-5.6.0-0.bpo.2-amd64-x86_64-with-debian-10.5
[debug] exe versions: ffmpeg 4.1.6-1, ffprobe 4.1.6-1
[debug] Proxy map: {}
[youtube:playlist] PLyc5xVO2uDsB_HVlVzAOf5JKfV0U-LXvz: Downloading webpage
[download] Downloading playlist: How to Build and Install Gentoo Linux
[youtube:playlist] playlist How to Build and Install Gentoo Linux: Downloading 10 videos
[download] Downloading video 1 of 10
[youtube] KJ7zVUBcS4s: Downloading webpage
[youtube] KJ7zVUBcS4s: Downloading MPD manifest
[debug] Default format spec: bestvideo+bestaudio/best
[download] 1 of 9 Building and Installing Gentoo by Kernotex - Part 1-KJ7zVUBcS4s.mp4 has already been downloaded and merged
[download] Downloading video 2 of 10
[youtube] nl4Cuqwyb6s: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [Errno -2] Name or service not known> (caused by URLError(gaierror(-2, 'Name or service not known'),))
File "/home/tunsuriya/.local/bin/youtube-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/home/tunsuriya/.local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2238, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 447, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/home/tunsuriya/.local/bin/youtube-dl/youtube_dl/utils.py", line 2736, in https_open
req, **kwargs)
File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
raise URLError(err)

Did you solve this problem, I ran into the same problem

Did you solve this problem, I ran into the same problem

How did you solve the problem?

Presumably by fixing the network: in particular, DNS.


fix: [M3-7085] e2e coverage for Linode Config Flows

Description 📝
Follow up to https://github.com/linode/manager/pull/9644 which hotfixed an issue with being unable to edit a VLAN config
Adding e2e to the linode config flows (List, Create, Edit, Boot, Delete) and utils to facilitate the task.
Also fixed a couple related UI fixes to the clone flow which were flagged as part of this work (fixed backround and added cancel action to get back to the configs page)

Before
After

Steps to reproduce

e2e test: run cy:debug search for and run linode-config.spec.ts
UI fix:

Visit /linodes, select a Linode and click on the "Configurations" tabs
Click on the first config's action menu and select "Clone"
Confirm the styling improvements of the clone panel (background, alignment)
Confirm the back button brings you back to the configurations tabs

Looks good -  thanks for the test 🚀


Allow using custom SystemUiOverlayStyle in theme.json

Problem
Currently in a theme.json you can only set appBarTheme:systemOverlayStyle to "light" or "dark". Nevertheless for more customization it would be great to set a fully SystemUiOverlayStyle there in the JSON and not just "light" or "dark".
Example:
{
  "$schema": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/theme_data.json",
  "appBarTheme": {
    "backgroundColor": "transparent",
    "centerTitle": false,
    "systemOverlayStyle": {
      "statusBarColor": "#ffffdad4"
    }
  },
}

Thanks for the suggestion.  This is available in 4.0.2.


Guidance needed for implementing tracing API

I am currently implementing a simplified tracing API for my uses, aiming to abstract away the complexities of manual span management. The goal is to get a straightforward API that allows me to start traces, end traces, and add subtraces without directly dealing with parent-child span relationships.
Here's what I am trying to achieve:

Start Trace: Initiates a new trace or a root span.

End Trace: Closes the currently active span and automatically manages the context to revert to the parent span.

Add Subtrace: Creates a new sub-span under the current active span.

I've encountered a challenge with the Span class, particularly in retrieving and managing the parent span when ending a trace. The current Span implementation exposes parentSpanId, but it doesn't provide direct access to the parent Span object, which is necessary to handle the thing properly.
Questions:

Is there an existing implementation or pattern within the library that supports this kind of API, specifically for managing the parent span relationship internally?

If such functionality is not currently available, is this normal because the lib is under development ? Am i missing something important ?

Some things to keep in mind:

The relationship between a parent and child is created by the child.
The relationship is created when the child span is created and it is immutable.
The only concrete implementation of a "trace" is the trace ID that is either created or inherited when a span is created.

With respect to the API you are trying to achieve:

Start Trace: when starting a span, the context the span is started with needs to contain an invalid span context. Consider this code: https://github.com/Workiva/opentelemetry-dart/blob/008b9451d013541587fa3e9bfd94e855c4a302b2/lib/src/api/open_telemetry.dart#L76-L79.
End Trace: The best way to manage context automatically is to use zones. When execution context leaves the zone where a span is active, the span is no longer active and thus the active context "reverts" to the parent span of the parent zone, if any.
Add Subtrace: Again, the best way to manage context automatically is zones. Consider the same code linked above.

I believe this answers your questions, loosely. I apologize for the brevity. It's hard to be succinct. I think the implementation of the linked function is the most succinct answer to your questions.
Aside: I am on the fence about the current implementation of contexts and their use of zones. I've been collecting my thoughts and would like to open an issue and fish for feedback regarding changes to the implementation. But the changes, or reasons for the changes, don't feel very well fleshed out yet. Maybe I still open the issue though. Perhaps folks such as yourself can help clear up the fog where I'm struggling!

Here's the issue I made on consolidating context APIs: https://github.com/Workiva/opentelemetry-dart/issues/185


Proposal: We could also include Jira as a Repository Source

Most documentation (executable or otherwise) starts with an issue (e.g. change request , story etc.) within an issue management application like Atlassian's Jira.
The life cycle of an executable document could be as follows:

create a Jira issue
add examples to the issue (as part of the description or in special field)
implement the issue ATDD style:

implement fixture for examples in Jira issue
bind executable document class to Jira issue
develop functionality while continuously testing against example until it is green

create / amend documentation in Confluence
migrate examples to documentation
change executable document class binding to document in Confluence

If we want to support this, we will simply have to to implement a JiraRepository in addition to our already planned ConfluenceRepository.

well as you know I do not really support this concept. But as some bdd jira plugins are successfull it seems that many teams are using Jira as a documentation source .. so why not ..

I agree that noone should use Jira for any long term documentation. Issues should be forgotten as soon as they are done. But I think it would offer some benefit for the BDD movement if we could execute examples as soon as possible.
We still recommend to move to a real documentation ASAP, but having the option would be nice for development. In my experience writing documentation is always the last step when implementing a user story or change request. Which also moves the implementation of acceptance tests (at least psychologically) to the end as well. But for real ATDD you should be able to implement the acceptance tests as soon as you start implementing the change.


fix: --syncmode is empty string

OP_GETH_SYNCMODE in .env file is set but is empty string. Condition is never met.
Or instead of this PR, you can add to .env:
# Uncomment the following line to force op-geth to use --syncmode=full
# OP_GETH__SYNCMODE=full

Thank you. Will look into +x things

As a side note, all scripts have the same problem with the use of -z and -n.
I made a test below:
NODE_TYPE=full
OP_GETH__SYNCMODE=

echo "OP_GETH__SYNCMODE+x=${OP_GETH__SYNCMODE+x};"

# Determine syncmode based on NODE_TYPE
if [ -z "${OP_GETH__SYNCMODE+x}" ]; then
  if [ "$NODE_TYPE" = "full" ]; then
    export OP_GETH__SYNCMODE="snap"
    OP_GETH__SYNCMODE="snap"
  else
    export OP_GETH__SYNCMODE="full"
    OP_GETH__SYNCMODE="full"
  fi
fi

echo "OP_GETH__SYNCMODE=${OP_GETH__SYNCMODE};"

and the output is:
OP_GETH__SYNCMODE+x=x;
OP_GETH__SYNCMODE=;

fixed as the commit:
NODE_TYPE=full
OP_GETH__SYNCMODE=

echo "OP_GETH__SYNCMODE+x=${OP_GETH__SYNCMODE+x};"

# Determine syncmode based on NODE_TYPE
if [ -z "${OP_GETH__SYNCMODE}" ]; then
  if [ "$NODE_TYPE" = "full" ]; then
    export OP_GETH__SYNCMODE="snap"
    OP_GETH__SYNCMODE="snap"
  else
    export OP_GETH__SYNCMODE="full"
    OP_GETH__SYNCMODE="full"
  fi
fi

echo "OP_GETH__SYNCMODE=${OP_GETH__SYNCMODE};"

we will get the right result:
OP_GETH__SYNCMODE+x=x;
OP_GETH__SYNCMODE=snap;

OP_GETH_SYNCMODE in .env file is set but is empty string. Condition is never met.
Or instead of this PR, you can add to .env:
# Uncomment the following line to force op-geth to use --syncmode=full
# OP_GETH__SYNCMODE=full

I think it's unsuitable to set OP_GETH__SYNCMODE to "full" in .env forcibly.

The root cause is
set -eou

-u option make command error if the variable is unset. Removing ou option allow us to avoid +x

I think it's unsuitable to set OP_GETH__SYNCMODE to "full" in .env forcibly.

This shouldn't be set by default, and it will choose the most appropriate sync mode automatically.


conditional variables based on stageDependencies

Im trying to set up a pipeline that switches environment based on a stageDependencies variable.
Is this possible or do i need to set up 2 stages, 1 apply_autoapprove and 1 apply_manual?
Below pipeline errors with Unrecognized value: 'stageDependencies'. Located at position 4 within expression: eq(stageDependencies.Plan.Terraform_Plan.outputs['opa.opa_autoapprove'], 'true').
resources:
  repositories:
    - repository: templates
      type: git

stages:
  - stage: Plan
    jobs:
      - job: Terraform_Plan
        displayName: Terraform Plan - Publish a package if Infrastructure changes are identified
        continueOnError: false
        steps:
          - template: azure-devops/templates/steps/terraform.yaml@templates
            parameters:
              version: $(terraform_version)
              path: $(directory)
              package_name: $(product)
              terraform_init: true
              terraform_plan: true
              terraform_opa: true

  - stage: Apply
    dependsOn: Plan
    variables:
      - name: opa_autoapprove
        value: $[stageDependencies.Plan.Terraform_Plan.outputs['opa.opa_autoapprove']]
      - name: deployment_environment
        ${{ if eq(variables['opa_autoapprove'], 'true')}}:
          value: Terraform_Apply_Autoapprove
        ${{ if ne(variables['opa_autoapprove'], 'true')}}:
          value: Terraform_Apply

    condition: |
      and(
        succeeded(),
        ne(variables['Build.Reason'], 'PullRequest'),
        eq(stageDependencies.Plan.outputs['Terraform_Plan.plan.plan_exitcode'], '2')
      )
    jobs:
      # track deployments on the environment
      - deployment: Terraform_Apply
        displayName: Terraform Apply - Resources creation
        environment: ${{variables['deployment_environment']}}
        strategy:
          # default deployment strategy
          runOnce:
            deploy:
              steps:
                - template: azure-devops/templates/steps/terraform.yaml@templates
                  parameters:
                    version: $(terraform_version)
                    package_name: $(product)
                    terraform_apply: true

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

ID: 77c58a78-a567-e99a-9eb7-62dddd1b90b6
Version Independent ID: 680a79bc-11de-39fc-43e3-e07dc762db18
Content: Expressions - Azure Pipelines
Content Source: docs/pipelines/process/expressions.md
Product: devops
Technology: devops-cicd-process
GitHub Login: @juliakm
Microsoft Alias: jukullam

@tehho - Thanks for your question. It looks like you're working through an issue with your scenario or implementation, rather than an issue with the documentation. Please consider these resources:

Azure DevOps Services
Azure DevOps Support Bot
Azure DevOps on Stack Overflow


Make raids scouter scout unknown rooms on new area loaded

Scouter: https://streamable.com/sjvq3

After completing a raid. When making a new party, the raid overlay from the previous raid will show outside of the raid.

Rebased and fixed the known bug.

Updated PR to also remove the raid timer infobox and put the tooltip information onto the points widget.

nvm

"Show scout overlay outside lobby" is broken because it seems to null the scout when you leave the instance even if someone's holding / still in party

fixed

@Kamielvf is this fine? You should probably look at this

Any update on this?

Any update on this?

I just rebased and fixed the part I thought was bad. It should be good for review.

Nice. @Kamielvf can you check it?


feat: improve resource names

Makes sanitized resource names more human-friendly (before: jadx_deobf_<id>, after: <sanitized_name>_<id>).
Improves detection of incorrect characters in resource names.
Fixes an issue where "better name" determination was not performed for styles.
Fixes an issue where keywords could be used as a field name in the R class.

@pubiqq this change looks great!
Although, I am hoping that someone also check and test this change :sweat_smile:

@pubiqq this change looks great! Although, I am hoping that someone also check and test this change 😅

hi, it looks interesting, i want test it. But i am not clear how to test, should I write a test class, or run the test locally? 😅

@skylot I will try to make a review in the next days. Based on the description it sounds good. Biggest problem is to find good example APKs to test it's functionality.
@zhongqingsong Pull Requests are effectively branches you can check-out, compile. In the end have a modified Jadx version with the PR changes: https://docs.github.com/de/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

Sorry for the delay, I needed to code some utilities first to be able to process multiple APKs one after another to get a better understanding when renaming is applied.
I started with jadx.core.xmlgen.ResTableBinaryParser#getNewResName. For the few APK files I tested it the most common case was a renaming because the resource name started with a $ like this:
$avd_hide_password__0 renamed to _avd_hide_password__0_res_0x7f080000 however the new resource name doesn't seem to be used anywhere (this was from the APK linked in #1232).

I started with jadx.core.xmlgen.ResTableBinaryParser#getNewResName. For the few APK files I tested it the most common case was a renaming because the resource name started with a $ like this:
$avd_hide_password__0 renamed to _avd_hide_password__0_res_0x7f080000

The dollar sign is not a valid character for resource names in aapt2, so ResNameUtils#sanitizeAsResourceName replaces it with an underscore and appends a postfix with the resource id.

however the new resource name doesn't seem to be used anywhere

They are used in drawable/avd_hide_password.xml.

I started with jadx.core.xmlgen.ResTableBinaryParser#getNewResName. For the few APK files I tested it the most common case was a renaming because the resource name started with a $ like this:
$avd_hide_password__0 renamed to _avd_hide_password__0_res_0x7f080000

The dollar sign is not a valid character for resource names in aapt2, so ResNameUtils#sanitizeAsResourceName replaces it with an underscore and appends a postfix with the resource id.

OK, got it. I saw that it was already renamed before your PR, but the new format used by your PR is indeed much better.
Could you please extend your PR and add JavaDoc where you describe why something is done? The info what is done can be derived from the code but the reason why is often lost. That would really be helpful for the future...

They are used in drawable/avd_hide_password.xml.

Seems like Jadx resources search does not yet allow searching for file-names, so I directly hit the blind spot of Jadx-Gui ;)

@pubiqq I didn't had something special in mind, therefore what you have written is in my opinion sufficient. Thanks for your patience and of course of PR.


Fix defer

Please provide a description for what this PR is for.
And to help us figure out who should review this PR, please
put an X in all the areas that this PR affects.
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Pull Request Attributes
Please check any characteristics that apply to this pull request.
[ ] Does not have any changes that may affect Istio users.

FYI https://github.com/istio/istio/pull/26602#discussion_r472433445

@hzxuzhonghu: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
b68265f490145b6f741f538822fef6f137b395a9
link
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test release-notes_istio


Fix: Solar Appscreener - add line property

Parcer specified finding.sast_source_line property instead of finding.line - fixed.
Now specify both.

Can you rebase on or merge latest dev? the unit tests files have been moved.


Could not find a way to list security groups having permissions to a repo

Hi,
I was trying to list all security groups in Azure devops which have been assigned as a security group for a repo.
I was able to list a repo independently with a name or ID using: az repos show --id
I was also able to list a security group using: az devops security group show --org  --id
But both the jsons of the above commands doesn't have any overlapping field that I can use to list all security groups bound to a list.
Kindly shed some light on any commands I might not know of. I am trying to list all security groups as in the below screenshot.

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

ID: 9ab02309-1484-154f-9e4a-b6d851405b5f
Version Independent ID: 771865f9-8563-3015-8942-30cee27432ae
Content: az repos policy build
Content Source: latest/docs-ref-autogen/repos/policy/build.yml
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

route to service team

Thank you for your response. So by when will the service team address this issue?

Can I get any updates on this?

Hello, Just wanted to know if there were any efforts towards this issue...?

Any news about this? How can we list User Permissions in security tab for a Repo

Yes, please, this is badly needed!


Document bbs2gh migrations

We don't need to do this right now, but will need to be done prior to a private beta.
Tasks

[ ] Document migrate-repo command (introduced with https://github.com/github/gh-gei/pull/582)

Dependencies

...

Documented ✅


Bug: Improper rending of Arial

Bug Description
The font Arial does not render properly. this occurs in UI elements, within documents and when viewing pdfs.
This only occurs with Sanctum theme applied and not with the default theme nor other custom themes.
To Reproduce
Set the font to be Arial
Could be through Settings > Interface > Font
Could be though style settings plugin.
Expected behavior
Render Arial normally.
Relevant Screenshot(s)
Sanctum with Arial Font:

Default theme with Arial Font:

Obsidian Version
1.5.8
Installer Version
1.4.13
Font Size
16
Which editor are you using?

[X] New Editor
[ ] Legacy Editor

In which mode(s) does the problem occur? (if applicable)

[ ] Reading View (Preview)
[ ] Editing View - Source Mode
[ ] Editing View - Live Preview

Which operating system?

[X] Windows
[ ] macOS
[ ] Linux
[ ] Android
[ ] iOS

Checklist

[X] I updated to the latest version of the theme (Settings → Appearance → Themes - Manage → Update).
[X] I made sure that the issue is related to this theme by checking that the problem does not occur with the default theme.
[X] If the bug occured after updating the theme, I read the last couple Releases to make sure the bug is not an intentional change.

Additional Context
No response

I've bludged a fix at least for viewing pdfs that use Arial by including a css snippet
.pdf-container {
    font-feature-settings: normal;
}