add option to specify filename

Fixes #53
Uses curl style argument parsing:
Options:
...
  -d  HTTP request body. If you start the data with the letter @, the rest should
      be a file name to read the data from.

bump

+1
this looks quite and quite convenient for use

Very useful. I rebased upstream with your commit in f04b4bc6b4f4f68c53be953bd2cbeee1005cb460

@missedone @rakyll Pull request has been re-based. Would you prefer to use -f as the flag instead of -d?

"@/Users/jbd/whatever" is a perfectly valid request body.
I'd prefer it to have its own flag.

Sure can do. What takes precedence, -d or -f?

The project has moved to https://github.com/rakyll/hey. Closing the PRs on this legacy repo.


Feature: MSE metrics inside/outside regional domain for stretched grid models using scalar functionality (KNMI)

Description of functionality
New metrics have been added for stretched grid models. The first group of metrics computes the weighted MSE (i) only inside the regional domain and (ii) only outside the regional domain. The former will allow for comparison of LAM and stretched grid models. Further, additional metrics have been added that compute the contributions of these components to the overall weighted MSE. This enables monitoring which of the two is the main driver of the training process, as it indicates whether we are mainly optimising the loss inside or outside the regional domain.
Configuration options
These features can be turned on or off in the configuration options by specifying the following validation metrics for stretched grid models in the training config. Using inside_lam: True and wmse_contribution: False creates metrics that can be used for comparison to LAM models. Using wmse_contribution: True leads to metrics that are useful for stretched grid model optimisation; these metrics can be used in conjunction with custom domain weighting to influence the training process.
training:
  validation_metrics:
    - _target_: anemoi.training.losses.limitedarea.WeightedMSELossLimitedArea
      scalars: ['limited_area_mask']
      inside_lam: True
      wmse_contribution: False
      ignore_nans: True
    - _target_: anemoi.training.losses.limitedarea.WeightedMSELossLimitedArea
      scalars: ['limited_area_mask']
      inside_lam: False
      wmse_contribution: False
      ignore_nans: True
    - _target_: anemoi.training.losses.limitedarea.WeightedMSELossLimitedArea
      scalars: ['limited_area_mask']
      inside_lam: True
      wmse_contribution: True
      ignore_nans: True
    - _target_: anemoi.training.losses.limitedarea.WeightedMSELossLimitedArea
      scalars: ['limited_area_mask']
      inside_lam: False
      wmse_contribution: True
      ignore_nans: True

Outputs
Plots of overall and per variable metrics are generated in MLFlow, for example ‘val_wmse_inside_lam/all/1’, ‘val_wmse_outside_lam/all/1', ‘val_wmse_inside_lam_contribution/all/1’, ‘val_wmse_outside_lam_contribution/all/1’, 'val_wmse_inside_lam/sfc_msl/1', etc.
Thanks to Sophie Buurman, @havardhhaugen , @Magnus-SI  and @HCookie  for their contributions to this PR, and various other staff at ECMWF for useful discussions and suggestions.

Can you add a changelog entry for this?

Tests seem to be failing,
   Left contains 1 more item:
  {'all': [0, 1, 2, 3, 4, 5, 6, 7]}

It should be easy to fix that.


[stable/auditbeat] updated auditbeat to 6.5.1

Signed-off-by: André Bauer<EMAIL_ADDRESS>
What this PR does / why we need it:

updated auditbeat to 6.5.1

Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

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

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md

/assign @viglesiasce

/assign @davidkarlsen

/assign @unguiculus

pretty please :-)

/ok-to-test
/assign
/lgtm


Consistency gap in conjunction with state-stored aggregates

Hello,
as already stated in the Axon forum there is a consistency gap in Axon in conjunction with state-based aggregates.
If an event is published successfully , but the command handler which emitted the event cannot persist its changes (because the database connection is broken or a database constraint is violated), the event is published, although the command has not been processed properly.
In the forum thread I recommended to use the outbox pattern. @abuijze answered that this has been discussed and discarded as it might be hard to implement in an inpropriate way.
Anyway, I open this issue in order to discuss how to deal with the consistency gap. Maybe we can find a solution which closes the gap and fits into the Axon framework quite well. I am keen to support you however and as good as I can.
If you do not target for a solution (as it doesn't fit to your project's aims), feel free to close this issue, otherwise I am happy about a lively discussion.
Kind regards
Oliver

Thanks for filing this issue @OLibutzki, I'll ensure we'll discuss this in our up coming meeting.

Thanks @smcvb, I'm keen to know the results.

Hi @smcvb,
any progress? The issue is still critical for us.
I recently played around with a local event store which represents an outbox. All the events which occur in a module are stored in a local event store (backed by an ACID transaction). A TrackingEventProcessor tracks this event store and propagtes he events to a global/shared event store.
public class LocalEventStoreListener {

	private static final Logger log = LoggerFactory.getLogger( LocalEventStoreListener.class );

	private final EventBus globalEventBus;

	public LocalEventStoreListener(EventBus globalEventBus) {
		this.globalEventBus = globalEventBus;
	}

	@EventHandler
	public void on(EventMessage<?> eventMessage) {
		log.info("Event handled: " + eventMessage);
		globalEventBus.publish(eventMessage);
	}
}

This works quite well, but things become complicated when it comes to event handlers. The primary EventStore is the local one which doe not contain the events emitted by other modules. Therefore one has to specify which event bus should be used. As I use Spring Boot I have configured something like this (Axon.eventBus is the bean name of the glocal event bus):
axon.eventhandling.processors[de.libutzki.axon.axonhierarchical.module1].mode=tracking
axon.eventhandling.processors[de.libutzki.axon.axonhierarchical.module1].source=Axon.eventBus

That's ok, but the granularity does not fit my needs as by default an event processor is created (and configured) for each package which contains an EventHandler. I would like to track the event's emitted by my context from the local event bus and the other events from the global event store (omitting the events which are emitted by module as I would handle them twice otherwise).
Currently I explore how Axon deals with processing groups, processors, handlers and their assignments. Honestly, that's not trivial. Maybe you can give me some hints where to look at and/or about the state of your internal discussion.

Without going into details on the issue, I feel obliged to state the following.
We have not been able to discuss this due to more pressing issue from our part which eat up our time.
If you'd want this situation you're dealing with to be picked up quicker, I'd suggest to contact AxonIQ directly. More direct contact with us through those channels will make it so this could be resolved quicker for you.

Ok, thanks for your quick reply. Axon is an open-source framework and it's natural that your objectives and priorities might differ from the ones of some users.
I will evaluate my idea/solution first and might contact you later on.
Keep up the good work!

I'm completely new to Axon but isn't there a similar consistency gap when projecting events to a view model which is persisted in an external database?
I'm just looking at the Axon quick start project and I was wondering how Axon can guarantee that the changes in the database and in the Axon event store are atomic when processing an event as is done e.g. here?

@omallo it is not atomic, but eventual consistent.
The emitting component published the event in the event store and the client side (the event listener) tracks the event store against certain events. It does so by using a cursor (TrackingToken) which indicates which events have already been processed.

@OLibutzki , thanks for your quick feedback.
I had seen that Axon maintains a TOKEN_ENTRY table in the same database in which the view models are persisted but hadn't realised that the token keeps track of the last consumed event since the token is very long and it only changes in a subtle way when new events are consumed.
Like that, it makes perfectly sense that Axon can maintain the required consistency since the token table and the view models are updated in the same transaction. Thanks again for your explanation.


Check operator /= "x" in use section

Overlooked this in the previous PR. In the SectionR case, if the operator is x then we must not use x as the substitution var.

Thanks!


rustc_version update

Hey, thanks for the pull request! As noted in the others (#15 #16 #18), this version can't be updated yet, since the entire purpose of using rustc_version is to allow a minimum rustc version of 1.3, and the newer rustc_version requires higher.


[WFCORE-3474] Remove pointless subclass

https://issues.jboss.org/browse/WFCORE-3474

Core - Full Integration Build 6355 outcome was UNKNOWN using a merge of 3b2162b8cdbcfd0c6c819230499ead1765e86db0
Summary: Canceled (Error while applying patch; cannot find commit 5d740a0478032674f98fb055040940a3a1ab547d in the https://github.com/wildfly/wildfly-core.git repository, possible reason: refs/pull/3005/merge branch was updated and the commit selected for the ... Build time: 00:00:20

Full integration - Windows Build 4794 outcome was UNKNOWN using a merge of 3b2162b8cdbcfd0c6c819230499ead1765e86db0
Summary: Canceled (Error while applying patch; cannot find commit 5d740a0478032674f98fb055040940a3a1ab547d in the https://github.com/wildfly/wildfly-core.git repository, possible reason: refs/pull/3005/merge branch was updated and the commit selected for the ... Build time: 00:00:31


Nuxt won't start Cannot use 'in' operator to search for 'package' in pinia

So this error comes up only when i try to use nuxt devtools

Can you share a minimal reproduction? Thanks.

@therealokoro Hi there! I took a look at your latest repository on your Github profile, and I saw that you have the following in your config:
export default defineNuxtConfig({
  // ...
  imports: {
    dirs: ["stores"],
    presets: ["pinia"], //  <-- This is causing problem.
  },
  // ...
})

I checked the Nuxt configuration API and seems there is not such property for imports: https://nuxt.com/docs/api/configuration/nuxt-config#imports
If this is not required or used by anything, then removing it would solve the issue.

@robertlillipuu. That's weird. It isn't in the docs.

Take a look at the screenshot above. Note that the nuxt version as at the time of taking the screenshot here is v3.3.3.
You can see that the presets options is there and offers a few possible options you can choose from.

I did notice that it's the cause of the problem as mentioned by @robertlillipuu. Removing it fixes the issue.


use ‘INPUT’ and ‘OUTPUT’ constants

We should use these identifiers consistently rather than hard-code their values in some places.

good call, although if you extend the same reasoning you might end up turning all object keys into external constants, and while this serves some purposes it also makes the code more indirect

There are two reasonable approaches: to use 'input' and 'output' consistently, or to use INPUT and OUTPUT consistently. Prior to these changes we mixed the two approaches. This undermined an intended benefit of the indirection: greatly reducing the importance of the values to which INPUT and OUTPUT are bound. One could not change var INPUT = 'input'; to var INPUT = '@@input@@';, for example, because 'input' was hard-coded in many places.
Using constants for 'input', 'output', and 'default' but not for strings such as 'commentIndex' and 'indent' is defensible. This transposition would be detected, statically:
-          accum.state = DEFAULT;
+          accum.state = DEFUALT;

This transposition, on the other hand, would not even cause a test failure:
-          accum.state = 'default';
+          accum.state = 'defualt';

Thank you for prompting me to justify my decision, Francesco. :)

It's always a pleasure to chat a bit about good practices! :)


ci: extract changelog for GitHub release notes

Summary
This PR updates the release workflows.
GitHub Release notes are now generated from the changelog.
The script extract the first subsection that starts with a digit, e.g. ## 1.1.0. This allows to skip ## Unreleased.
The changelog should be updated before every release.
I also removed useless fetch-depth parameter that is set to 1 by default.
Test Plan
Next release.

Next release.

Isn't there another way to test it? Even locally, to show us what the script will generate

Isn't there another way to test it? Even locally, to show us what the script will generate

I tested the script locally. However, there is no way to easily test the workflow...

I improved the script by using the Unreleased section if a section for the released version is not found. This allows supporting nightly releases.

Isn't there another way to test it? Even locally, to show us what the script will generate

I tested the script locally. However, there is no way to easily test the workflow...


createPage() and url parsing on load now handle remote site syntax

Man, I had to take an embarrassing number of stabs at this to get it working in the general sense, but here it is.  The main thing it shows in relation to the node server, is that now that we can make remote requests, they aren't implemented at all, so that is moving up on my priority list.
This commit also updates the computed style.css to reflect other peoples good work in style.sass.

Thanks, sounds good.
I've read over it, and I see two possible courses of action.  I think I can shoehorn in the remote site information into what is already there, but my preference would be to remove hidden state from the history api code, and only pushState urls.  This would mean that back/forward wouldn't track which article is active, but playing with it so far that would probably be my preference anyway.
Any thoughts?  Either way, I'll take a shot at it after this gets merged with what you are working on.

this last commit is just what it says, work on /server/express/lib/server.coffee only.  It is the other half of implementing remote site links in node.


Allow Auto Snapping to Selected FancyZone

Description of the new feature / enhancement
It would be really useful to auto snap the new window to one of the created FancyZone, this would help manage windows better.
Scenario when this would be used?
During programming/IT Admin tasks there are many times you need to open multiple windows/terminals which messes up the FancyZone and the new window just floats around
Supporting information
No response

There is a setting (check box) to automatically move newly created windows to a zone. Is that what you mean?


Activate language track

I hope  this change is enough to activate the track.

Yepp. I'll update the submodule in x-api and deploy.

Thanks a lot. I can see the new language track on exercism.io
Yeeeeha

w00t :)


Crashes on Pop_OS/Ubuntu 20.04

(vessel:5805): Pango-ERROR **: 20:00:56.747: Harfbuzz version too old (1.4.2)
Trace/breakpoint trap (core dumped)

Same as https://github.com/netuoso/vessel/issues/6 so I will close this and allow discussion to continue on #6


How do you change the order of items on the portfolio page?

Did you ever find a solution to this problem?


Maven repository has outdated version 1.0 instead of 2.0

Current Maven repository has 1.0 version:
http://mvn.testinium.com/repository/public/com/testinium/deviceinformation/device-information/
while master branch has 2.0 in pom.xml

version has been updated.

Much appreciated!


Temporary disable wheel build.

Otherwise, the wheel that is created cannot be uploaded on PyPI.

Ok, so the source distribution upload works, but wheel does not.

ineed.

I guess we can resolve it with https://github.com/Probe-Particle/ppafm/issues/106. Do we have any idea why it does that?

It looks to me that the wheel name is something very specific, see here. The one produced by python -m build ... does not match the specification. But I need to look closer at the issue.


Centre the clock and add background colour

Respected sir I want to centre the position of the clock and add a background colour for clock website to lock more better. Sir please assign me this issue under hacktoberfest.

Respected sir(@jvm-coder ) please assign me this issue under hacktoberfest .

Sorry, the repository has been excluded from hacktoberfest.


I am unable to retrieve meta data

Hi,
I am trying to retrieve information about the video, how can I retrieve the following data for an offlien .m3u8 file:

Total Duration
Total file size
Current duration (when downloading)

Hello. Livestreamer is no longer being supported. Please take a look at its successor, Streamlink, available here: https://github.com/streamlink/streamlink


Create A Readme ( RockPaperScissor - Python )

Location of the Document
You have to create a Readme for RockPaperScissor
What needs to be added
Create and Add details about the game.

give me access for this issue

Assign this to me.

This issue has been resolved


Document Links in 'What's New in Active Directory Domain...'

Is there a reason for that the following links are pointing to the technet website link rather than the sub-topics within the document?

Privileged access management
Extending cloud capabilities to Windows 10 devices through Azure Active Directory Join
Connecting domain-joined devices to Azure AD for Windows 10 experiences
Enable Microsoft Passport for Work in your organization
Deprecation of File Replication Service (FRS) and Windows Server 2003 functional levels

It breaks the PDF document if downloaded; rather than going to the subtopic it opens a webpage.
If the links should be going to technet, perhaps they could be added to a More Information... section at the end of the document or after each section.
For example:

Privileged access management
Privileged Access Management
verbiage about PAM
For more information on PAM see:  Privileged Access Management for Active Directory Domain Services

This is excellent feedback - I'll share it with the writing team for this set of content. Thanks!

We've updated the links - thanks!


Adds lb/ub/lub_constrain specializations

Summary
This PR adds the specializations for lub_constrain for matrices and scalars with all their combinations of inputs. The branch I was working on to make lb/ub/lub constrain work for matvar was getting pretty big so I'm breaking it up into 3 seperate ones.
Tests
Tests were updated for matvar and to the calculations when computing the gradient of both lp and the input.
Side Effects
There's a few weirds I can't completely sort out.
@t4c1 Is make_holder able to deal with plain references? I was trying to use it for the functions that need to calculate lp like
template <typename T, typename L, require_all_eigen_t<T, L>* = nullptr,
          require_all_not_st_var<T, L>* = nullptr>
inline auto lb_constrain(T&& x, L&& lb) {
  return make_holder([](const auto& x, const auto& lb, auto& lp) {
    return x.binaryExpr(lb, [&lp](auto&& x, auto&& lb) {
       return lb_constrain(x, lb, lp);
    });
  }, std::forward<T>(x), std::forward<L>(lb), lp);
}

But I was getting seg faults when trying.
@andrjohns is it possible to use the apply meta stuff to have this work for std::vectors of containers? I couldn't figure out how to have it work whenever I have an x like std::vector<Eigen::MatrixXd> and an lb of double
Release notes
Replace this text with a short note on what will change if this pull request is merged in which case this will be included in the release notes.
Checklist

[x] Math issue #1805

[x] Copyright holder: Steve Bronder
The copyright holder is typically you or your assignee, such as a university or company. By submitting this pull request, the copyright holder is agreeing to the license the submitted work under the following licenses:
- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
- Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

[x] the basic tests are passing

unit tests pass (to run, use: ./runTests.py test/unit)
header checks pass, (make test-headers)
dependencies checks pass, (make test-math-dependencies)
docs build, (make doxygen)
code passes the built in C++ standards checks (make cpplint)

[x] the code is written in idiomatic C++ and changes are documented in the doxygen

[x] the new changes are tested

@t4c1 Is make_holder able to deal with plain references?
Yes, it should be. Do you even need holders for constrain/free functions? I think probably not.

I was trying to use it for the functions that need to calculate lp like

I don't like the expressions there since lp is an output in this code. Even if it weren't segfaulting, that would mean an accidental double eval of the expression would make a math bug rather than just a performance bug (updating lp twice).

I couldn't figure out how to have it work whenever I have an x like std::vectorEigen::MatrixXd and an lb of double

I thought x was always either a scalar or a matrix here.

@SteveBronder I made a comparison branch where I removed a lot of stuff: https://github.com/stan-dev/math/compare/feature/lb_constrain-matvar...feature/lb_constrain-matvar_shrunk
I deleted a bunch of stuff and I think this will work okay too. I don't think we need to use identity constrain in here.
I think we only need reverse mode specializations when both types are matrices, otherwise prim can handle the varmat autodiff.
Ofc. this would have more temporaries, but the implementation is way simpler. Can also go verbose for the performance -- it's just a metric ton of code.

idt those will work because we need to check each cell individually for infinity. Doing it the way you wrote it above you end up just checking if all of them are positive infinity and if not then do the constrain.

Doing it the way you wrote it above you end up just checking if all of them are positive infinity and if not then do the constrain.

The signatures are:
lb_constrain(real, real);
lb_constrain(vector, real);
lb_constrain(vector, vector);

(and then the ones for lp)
I'm pretty sure the code I wrote covers that. Is there a signature I'm missing here?

I think that could work but I already wrote out the complicated bits lol so I'd rather just use the specializations since they would be more efficient

Makes sense. Lemme revieeeeew

@rok-cesnovar hey sorry but can we do the reverse of the last constrain pr up in Stan? We just need to revert the changes to the lb/ub constrain checks

Actually @rok-cesnovar we are going to merge all the changes for the constraints into this PR with sub PRs then once all those are here we can revert the Stan PR

Coolio!

Alright I checked and updated the tests and code a bit. Can we ditch the std::vector versions of this? I know I asked yesterday but looking closer today it's just a ton of extra code. I mean, it's fine code, but there's a lot of it and there's not advantage over the compiler and it's missing prim tests (that I can add, but again, not a lot of value).

So I'm re-doing the IO for log_prob right now and it would be nice to for everything if I could just call *_constrain(). Like here
 template <typename Ret, bool Jacobian, typename LB, typename LP, typename... Sizes>
 auto read_lb_constrain(const LB& lb, LP& lp, Sizes... sizes) {
   if (Jacobian) {
     return stan::math::lb_constrain(this->read<Ret>(sizes...), lb, lp);
   } else {
     return stan::math::lb_constrain(this->read<Ret>(sizes...), lb);
   }
 }

If not then I have to have seperate methods for std vectors. Not a big deal but I have to deal with it somewhere so it would be nice to just deal with it here

Oh okay, so what I'm seeing is the compiler component kinda doesn't exist anymore and so we need the std::vector stuff here.

Yeah my goal is just to let the compiler as for stuff like
std::vector<std::vector<Eigen::Matrix<var, -1, -1>>> A = in__.read_lb(lb, lp, vec1_size, vec2_size, rows, cols);

Which should be more performant and make the compilers job a lot easier. But that does mean supporting these signatures somewhere and the Stan math level seems to make sense.

I put up #3012 in the Stan repo. @rok-cesnovar how should we do the double mere thing?

Okay this should be good to go @rok-cesnovar . It is failing in the upstream tests where we expect. The matching Stan pull is: https://github.com/stan-dev/stan/pull/3012

No sorry this is ready for merge I made a false alarm. I thought this was valid Stan code
parameters {
  real xx[N];
  real<lower=xx,upper=1> theta[N, N];
}

but it's not so we r good
10:49
--- Translating Stan model to C++ code ---
bin/stanc  --o=examples/bernoulli/bernoulli.hpp examples/bernoulli/bernoulli.stan
Semantic error in 'examples/bernoulli/bernoulli.stan', line 7, column 13 to column 15:
   -------------------------------------------------
     5:  parameters {
     6:    real xx[N];
     7:    real<lower=xx,upper=1> theta[N, N];
                      ^
     8:  }
     9:  model {
   -------------------------------------------------
Lower bound must be a scalar or of type array[,] real. Instead found type array[] real.make: *** [make/program:47: examples/bernoulli/bernoulli.hpp] Error 1


how do I calculate recover_id from signature

I want to get the pubkey recover id from signature, but I couldn't found any method to do it, anyone knowns how to do it ?
thanks advance
ref: https://github.com/starkbank/ecdsa-python/blob/209eab454f1e071c5893cc6cbdb8aaa0c1a85801/ellipticcurve/ecdsa.py#L23

I believe recovery id is a bitcoin / cryptocurrency specific (based on this source), in which case it is out of scope for this library. It seems that requires changing the sign interface from returning (int, int) to returning (Point, int) (in other words, making r a point rather than an integer) which I can fairly confidently say would be a breaking change and also not compliant with the most common / accepted ECDSA spec(s).


emitPacket sets retain = false, before emitting the event via on('publish')

I'm hooking up to the aedes.on('publish') event,
and retain is always false.
I found this to be a behaviour in this code:
https://github.com/mcollina/aedes/blob/ecdd0cc03247febc46edbf5d0dbbc527ce5477ec/aedes.js#L149
this.packet.retain = false
this.broker.mq.emit(this.packet, done)

Which seems peculiar since it changes the original state of the published message.
causing the emitted packets to always be retain = false,  while the original message
might be with retain set to true.
I've changed this behavior on my fork of Aedes by commenting
out the line, and changing the expected retain property in affected tests.
Since we are using the on('publish') for logging purposes, knowing the published packets
original retained state make sense.
At any rate I don't see a reasoning for this,
would love to learn what is behind this decision .. ?

@syberkitten the retain property needs to be false when delivering the message by the spec. We can probably fix this behavior by setting packet.retain = false when a packet is received by an Aedes instance.
Would you like to attempt this fix?

@mcollina Are you referring to this spec guideline?:
http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html
When sending a PUBLISH Packet to a Client the Server MUST set the RETAIN flag to 1 if a message is sent as a result of a new subscription being made by a Client [MQTT-3.3.1-8]. It MUST set the RETAIN flag to 0 when a PUBLISH Packet is sent to a Client because it matches an established subscription regardless of how the flag was set in the message it received [MQTT-3.3.1-9].

It becomes clearer that the distinction is such:

if client A publishes a retained = 1 message while client B is connected, B should get this message as retained = false, because it got it directly.
if client A publishes a retained = 1 message while client B is offline, when B re-connects
the message should be received as retained = 1.

This distinction allows knowing if the other side is actually - online or not,
or in mqtt terms, if the message was waiting on the the topic (retained)
or transmitted directly.
If we are clear on this it would be easier to go further ....

Therefore If the broker .emit('publish') is used only for external layers (logging / api etc)
then it makes sense to leave the retained flag as it was passed by the publishing client.
On the other hand, if the broker .emit('publish') is used internally, we have a problem
as the architecture needs to support the above distinction (thus state of packet.retain changes)
when getting to the client if the client is connected. (retain is set to false)
Is it clear what m trying to get to?

Therefore If the broker .emit('publish') is used only for external layers (logging / api etc)
then it makes sense to leave the retained flag as it was passed by the publishing client.

This is the case.
We are currently supporting the behavior described in the paragraph you are referring to. The retained flag is added when sending retained messages.

@mcollina We could circumvent this issue by creating a new object and calling emitPacket and passing the original packet down to callPublished.  I believe I had suggested something similar before.

I think this issue can be closed, it was open in 2017. We can reopen if it's still an issue.

Fair enough. Closing this. @syberkitten feel free to reopen if it's still an issue.


Switch retrying messages to info

Do things like
Requested operation wasn't successful in first try. Retrying maximum 20 times with 2 seconds delay between attempts.

and
Requested operation was executed successfully in attempt 8 (maximum allowed 21)

really need to be logged on warning-level?
I would consider them at most info-level.
The first is actually quite common as closing needs ages at least on Sonatype nexus.
The second is a success message and thus not really something to be logged at warning-level and draw attention of the user, don't you think?

Looking at your request unfortunately:

Requested operation was executed successfully in attempt 8 (maximum allowed 21)

with remain at warn/lifecycle level due to #60, until the lower level support will be improved to suppress that particular error/warning 404 message (not in 0.21.0). The first one should be fixed in 0.21.0.

I don't understand, how #60 is related to the success message and why the success message needs to remain on warn/lifecycle level. #60 is about an error message, isn't it, not about the success message.
Also the succes message is on warn level, isn't it? It should at least be degraded to lifecycle level as a success shouldn't be a warning, but imho it should still be lowered to info and not pollute lifecycle logs.
Unless I misunderstood the relation to #60.

As mentioned in #60 the following output can be misleading:
$ gw releaseRepository
:releaseRepository
Requested operation wasn't successful in first try. Retrying maximum 20 times with 2 seconds delay between.
GET request failed. 404: Not Found, body: [errors:[[id:*, msg:No such repository: infosolidsoft-1066]]]

BUILD SUCCESSFUL

"failed" and "successful" next to each other. I would need to suppress all network errors (or moved it to info), add ugly if at the network layer to skip just that error in that particular case or rework the way the error message is propagated up. As I wanted to deliver 0.21.0 as quickly as possible especially for you ;)  I decide to postpone it to the bunch of changes.

Ah, I see, thanks. :-)


Parent proxies?

It would be helpful if goproxy allowed to set a parent proxy.

Sorry for opening this old thread, but I've tried the code you gave and it work,s but only for http. https request are never passed to Proxy function, so the return url.Parse("http://myproxy.com:8080") is never called.
Do you have an idea what could be wrong?


Simplify and split apart MakePod

Related to #1519
Today, the conversion between TaskRun to a Pod jumbled together (mostly) inside MakePod, which is responsible for lots of different things. This makes it hard to understand, hard to test in isolation, and hard to make fixes and improvements.
What MakePod does
(roughly in the ideal order)
Applies stepTemplate

FIX: This should ignore stepTemplate.command and .args if the step specifies .script
FIX: stepTemplate shouldn't apply to sidecars, only steps.

Convert Steps with script to Containers with command

This adds an init container, place-scripts, which writes the user's scripts to /builder/scripts
This adds a new volume, which needs to be mounted into all steps that use a script.
Done in #1616

Resolve image ENTRYPOINT from remote registry if the step doesnt' specify a command

This relies on k8schain
FIX: Also resolve the image's digest, to avoid a race between entrypoint resolving and container running
FIX: Cache tag -> digest lookup for each resolve, for speed
Done in #1616

Rewrite step command + args to inject our entrypoint binary

Adds an init container, place-tools, always.
Adds a volume, /builder/tools
Adds a downward API volume at /builder/downward
Entrypoint rewriting should happen after script conversion (today it happens before)
Done in #1616

Initialize credentials

Adds an init container, creds-init, if annotated creds are found in the service account's secrets
Adds /var/secrets/... for each secret
Requires /builder/home volume and (I think) HOME env var
Split out in https://github.com/tektoncd/pipeline/pull/1599

mkdir working dirs under /workspace

Adds an init container, working-dir-init, if any steps specify a relative workingDir
Split out in https://github.com/tektoncd/pipeline/pull/1596

Apply resource requests/limits

Find the maximum request per resource per step
Apply that request to step 0
Set all other steps' requests to 0, and limits to the max request.

Other minor operations

Set workingDir to /workspace if the user didn't specify
Set the container name to step-%s (step name), or to step-unnamed-%d (step index) if not specified

After these changes

We can more easily make entrypoint changes described in https://github.com/tektoncd/pipeline/issues/1569
Generate any volume names to avoid conflict
Rename /builder/ volumeMount paths to /tekton/

@ImJasonH I wasn't sure if what is listed is what MakePod does currently (and that should change somehow) or what it should do ?
/kind feature

This lists what MakePod does, in the ~ideal order. Before these changes things happened in jumbled order because it mostly happened in one huge wall of text. Afterwards I'd like to have one MakePod method that just calls N smaller isolated methods with clear goals and tests.

Today the stepTemplate is also applied to injected steps like those from PipelineResources.
I think that may be ok, but we should probably document it.

Yeah I think that's expected behavior -- at least, I think that was the behavior before I started reorganizing MakePod -- but I agree it should be better documented.

After https://github.com/tektoncd/pipeline/pull/1655 I think I'm comfortable declaring victory on this.
We might want to move PipelineResource interactions into MakePod as well (prepending/appending steps for resources, applying parameter replacements), but at least those are already fairly well isolated into their own methods with clear tests.

/reopen
There are still a few TODOs associated with this issue-- this came up during review of #4598.
It's not clear where mergeSteps should live; the TODO here would result in a circular import as this functionality is used in API validation which is a bit weird. @wlynch suggested moving into an internal package.


ANTIALIAS was removed in Pillow 10.0.0

We need to use Image.LANCZOS

closing this in favor of https://github.com/google-coral/pycoral/pull/130


新增rds示例和查看环境变量

 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.baiji 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.


Do you have a Designer?

I'm an aspiring Graphic Designer, and student in programming and Information Technology. I want to give back to the industry by participating in Open Source Projects.
I will create a logo and any other graphic that you might need, and most likely help with the coding when I'm skilled enough.
Thanks.

Hey Jervik, welcome to the amazing world of open-source! 🎉
We don't have a designer yet, so you are more than welcome to contribute. A logo makes the first impression to users, and so I'd be extremely happy to have a logo designed for Jarvis.
I'd be looking forward to your contributions, both in design as well as in code. 😄

@jervlapsley Let me know if you need any help!

@swapagarwal Alright Thanks! I just started the logo sketches because I have been busy over the weeks

Hey @jervlapsley, we have an ongoing issue pending, to add animations in coin and dice modules. Right now, it displays the outcome as an image. It'd be awesome to have a small animation to have an anticipation effect! See #152
Would you be willing to pick that up?

Closing in favor of #313


Can Calico add two veth pair to a pod, one veth for ingress traffic, another veth for egress traffic

Hi, I have two questions that could not be solved at present, does some one know about it?

Can Calico add two veth pair（veth1, veth2） to a pod, veth1 for ingress traffic, veth2 for egress traffic?

Can Calico have two physic interface to receive and transmit traffic seperately?

Thanks a lot!

Calico doesn't currently support doing that, although I know some folks have managed to make it work in the past with some extensions. What is your use case?

Calico doesn't currently support doing that, although I know some folks have managed to make it work in the past with some extensions. What is your use case?

It's more like some distribute application that contains forwarding functions like software router, just like sfc in the network

Closing due to lack of activity, but feel free to re-open if there is more context to the discussion.


Document allowAnyDistro

This adds a short section to the README explaining that System Manager is only supported on NixOS and Ubuntu and how to enable it on unsupported distros.

Yeah make sense!
Could you just fix the indentation in the nix code (indent with two spaces), and remove the unused module args?
This should be sufficient:
{
  system-manager.allowAnyDistro;
}

Thanks!

Fixed. I kept the config = ... since that follows the other example on the readme.

Great, thanks a lot!


use conventional commits

url

build: Changes that affect the build system or external dependencies (example scopes: grunt, dojo, npm)
ci: Changes to our CI configuration files and scripts (example scopes: Travis)
docs: Documentation only changes
feat: A new feature
fix: A bug fix
refactor: A code change that neither fixes a bug nor adds a feature
style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
test: Adding missing tests or correcting existing tests
BREAKING CHANGE:

SPEC

Commits MUST be prefixed with a type, which consists of a noun, feat, fix, etc., followed by a colon and a space.
The type feat MUST be used when a commit adds a new feature to your application or library.
The type fix MUST be used when a commit represents a bug fix for your application.
An optional scope MAY be provided after a type. A scope is a phrase describing a section of the codebase enclosed in parenthesis, e.g., fix(parser):
A description MUST immediately follow the type/scope prefix. The description is a short description of the code changes, e.g., fix: array parsing issue when multiple spaces were contained in string.
A longer commit body MAY be provided after the short description, providing additional contextual information about the code changes. The body MUST begin one blank line after the description.
A footer MAY be provided one blank line after the body (or after the description if body is missing). The footer SHOULD contain additional issue references about the code changes (such as the issues it fixes, e.g.,Fixes #13).
Breaking changes MUST be indicated at the very beginning of the footer or body section of a commit. A breaking change MUST consist of the uppercase text BREAKING CHANGE, followed by a colon and a space.
A description MUST be provided after the BREAKING CHANGE: , describing what has changed about the API, e.g., BREAKING CHANGE: environment variables now take precedence over config files.
The footer MUST only contain BREAKING CHANGE, external links, issue references, and other meta-information.
Types other than feat and fix MAY be used in your commit messages.

👍


[BUG] Does deepspeed MoE support dynamic network (with unused parameters)?

Describe the bug
My network is a dynamic network, which means that the network would produce unused parameters.
I add the deepspeed MoE to the Llama model. And the output hidden states will forward different modules according to the inputs. Here is the sample forward code.
def forward(self, input_embeds, labels, flag):
    hidden_states = self.moe_llama(input_embeds)

    if flag == 1:
        outputs = self.net1(hidden_states)
    else:
        outputs = self.net2(hidden_states)

    loss = compute_loss(outputs, labels)

The code can run on 1 gpu, but fail on multiple gpus.
When using multiple gpus, the training just got stuck without throwing any errors.
Could you please give me some instructions. Looking forward to your reply. Thank you!

try to add dummy grad result for unused part, solve the problem on my end

Great! Could you please provide an example on how to add dummy grad results? Thank you! @hanxiaotian

Great! Could you please provide an example on how to add dummy grad results? Thank you! @hanxiaotian

For your case, a simple and dirty fix would be something like:
def forward(self, input_embeds, labels, flag):
    hidden_states = self.moe_llama(input_embeds)

    outputs1 = self.net1(hidden_states)
    loss1 = compute_loss(outputs1, labels)
    outputs2 = self.net2(hidden_states)
    loss2 = compute_loss(outputs2, labels)

    if flag == 1:
        return loss1 + 0*loss2
    else:
        return 0*loss1 + loss2

Hope this could help you

I have tried in this way but it failled. Did you use deepspeed zero1 or zero2?

I have tried in this way but it failled. Did you use deepspeed zero1 or zero2?

I use zero3


Handle minio chunked

This handles five issues:

37 - Add disable multipart instructions for MinIO mc client.
46 - Implement chunk parsing when boost::beast::http::parser does not handle it.  This is specifically for MinIO clients which do not set the Transfer-Encoding header but sends a chunked body.  Added MinIO tests for put.
51 - Added HeadBucket functionality/tests.
67 - Close boto3 connections in tests.
69 - Double buffer on a put when the parser returns the need_buffer exception.  Also implement a maximum parse size.

Tests passed.

Will review over the holiday.

Please squash to taste if everything is passing.

Please squash to taste if everything is passing.

Done

em up.


WL-5361 Disable the wiki tool.

Let me expand on this, as far as I know the Wiki is not integrated with other tools so there's no dependencies between Wiki and other tools, it's safe to remove it from the build.


Added the 'Delete custom SharePoint site designs' sample script solvi…

Added the 'Delete custom SharePoint site designs' sample script solving #1138

Coverage remained the same at 100.0% when pulling d84c42edc9e32b7795a1793ded47ce38b62abcbd on waldekmastykarz:script-deletesitedesigns into eedf5b7246e0748950c71bbba7af8ed1aa8f3185 on pnp:dev.

Merged manually


This is so BROKEN

First, you took away the single line command to mount a disk.  WHY DID YOU DO THAT
Second, the new 5 line script you generate DOESN'T WORK

I can't believe this!

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

ID: 8d60d83f-0094-6c5e-e105-712c24bf1acc
Version Independent ID: 594af294-fd5d-a8c7-d456-6d753b7b62f8
Content: Use Azure Files with Linux
Content Source: articles/storage/files/storage-how-to-use-files-linux.md
Service: storage
Sub-service: files
GitHub Login: @roygara
Microsoft Alias: rogarana

@Cloudmersive, Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate

@Cloudmersive Hi,
FYI, the cmdlets in this article are using /mnt but they should not be, and we're currently working on an updated version of this article without /mnt as the mount point.
See here: https://github.com/MicrosoftDocs/azure-docs/issues/30890
1.) The single line command to mount a file share was not removed, it's still in the article, and it works provided you created your directory.
https://docs.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-linux#mount-the-azure-file-share-on-demand-with-mount
2.) The five line script for creating a persistent mount point also still works, it isn't persistent because as per the other issue it's mounting to the temporary disk. If you mount it somewhere other than the temp disk, it will then be persistent.
@YASWANTHM-MSFT FYI.

OK thanks but the product itself is broken because it took away the single line /mnt command from the UI.


fix: waitForSelector with visible:true causes timeout

This patch fixes an issue where waitForSelector with visible:true would cause a timeout should there be multiple elements matching the selector, but the ones higher up on the DOM are hidden.  It now returns the first visible element it finds.
fixes #4356

line endings caused all sorts of issues with OFL.txt on macOSX.  closing and redoing this PR cause I need to edit my commits to include the correct emails, and rebasing fails because of damn line endings.


Implement the repository for Tiki Backend services with placeholder JSONs

Reason
Implement the repository that will talk with the TIKI SDK backend
Description
Use the https://github.com/tiki/apps/blob/api/rewards/rewards.yml api definition
Success Criteria

[ ] The repository is implemented with the required methods.
[ ] The methods returns placeholder JSONs that can be used as mocked API repsonses

Additional Information
No response

duplicate #73


Make it easy to integrate server components and templating libraries like Mustache for data

Could create a component that extends server components and adds a <data-placeholder name=""> component?
Would only work with inline content, not attributes, which is very limiting indeed.
Attributes are dangerous generally though with Mustache etc; lots of potential to encourage XSS vectors by rendering to unstructured string data and then interpreting that directly (as server components input). Want a HTML-understanding templating language really, but that doesn't seem to exist. Could add one? Allow mustache constructs in the HTML, and interpret them out? Feels a bit crazy here, risk of creep, but very useful, and in line with what larger frameworks do (e.g. {{ }} in Angular and Ember)
This is a clear strong need for the majority of use cases, needs to have a good out-of-the-box story in Server Components.


native: activity feed (middle tab)

WIP
Fixes TLON-1505

I'm going to unify both activity issues into a single PR since they'll need to be left open and continually rebased while we wait for activity agent to hit internal.


Support HDP 2.5

Support HDP <IP_ADDRESS> GA release.

Hi,
For HDP 2.5.0, there is a new version of HDP-UTILS,  <IP_ADDRESS>.
The file recipes/repo.rb has it hard code on line 88 to <IP_ADDRESS>.
See http://dev.hortonworks.com.s3.amazonaws.com/HDPDocuments/Ambari-Trunk/bk_Installing_HDP_AMB/content/hdp_25_repositories.html
Should this be made a separate attribute or should the HDP-UTILS version be programatically determined based on ['hadoop']['distribution_version']?

The utils aren't actually tied to the version. We just update them to the latest everywhere. I'll do that in another PR.


Update testimonial using swiper js

I want to work on this issue under JWOC.
kindly assign this to me.

Kindly add jwoc tag.

Kindly add jwoc tag.

I'll add it at the time of merging

Ok
On Sat, 25 Feb, 2023, 8:25 pm Rajkumar Bhatt, @.***>
wrote:

Kindly add jwoc tag.
I'll add it at the time of merging
—
Reply to this email directly, view it on GitHub
https://github.com/mrbhatt2348/iBlog/issues/83#issuecomment-1445136169,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2YSDDFXGJ6L2Y4WRNMIH3LWZIMNTANCNFSM6AAAAAAVDJ4BGY
.
You are receiving this because you were assigned.Message ID:
@.***>


Port WebResource keepAlive setting from 2.x to 1.x

This port will allow the Bot Framework SDK to better support customer bots with high traffic.
For some more context, the Bot Framework JS SDK currently makes heavy use of the @azure/ms-rest-js library. Due to requirements around backwards compatibility, we are tied to the 1.x branch (currently v1.8.15). In particular, we support customization of the underlying Axios HTTP client. In effect, this means that upgrading to the 2.x version of this library is currently not tenable.
In order to better support customers with high traffic bots running on Azure, we need to leverage HTTP keepalive as much as possible. The 2.x version of this library added a keepAlive setting to the WebResource class (though, to be fair, exposing an agent parameter directly might be even more friendly). This PR ports this functionality back to the 1.x branch and uses a shared pair of http/https agents so that HTTP connections can be shared across instances of the HTTP client (similar to the shared axios instance).
With this change, the Bot Framework SDK can support enabling keepAlive using a request policy:
import { HttpOperationResponse, RequestPolicy, ServiceClientOptions, WebResource } from '@azure/ms-rest-js';

const options: ServiceClientOptions = {};

const create = (nextPolicy: RequestPolicy): RequestPolicy => {
    const sendRequest = (httpRequest: WebResource): Promise<HttpOperationResponse> => {
        httpRequest.keepAlive = true;
        return nextPolicy.sendRequest(httpRequest);
    };

    return { sendRequest };
};

options.requestPolicyFactories = (factories) => [...factories, { create }];

Here is a sample issue on the Bot Framework SDK repo that illustrates that this is a pain point for current users.
I'm happy to put in more legwork here if this change seems reasonable.
Moreover, if supporting a ServiceClientOptions.agentSettings option seems reasonable I am happy to work on that on both the 2.x and 1.x branches. I think this could be a really useful feature because it would allow users of the library to have complete control over the HTTP(S) Agent used for outbound requests. In fact, I was 85% done writing that code on the 1.x branch before I realized I ought to mimic the behavior added to the 2.x release first.

This change would be incredibly impactful to improve the development experience of Bot Framework SDK developers!!!

Awesome, thanks for the quick review & merge @daviwil!

Strangely the CI automation is failing on 1.x branch, might be tomorrow before the update goes out if I have to fix anything.  I'll keep you posted here.

Sounds good, thanks.

This is great!  thanks @joshgummersall


Q about updates to ESLZ visio

@jtracey93, I noticed that you updated the ESLZ sample architecture visio on June 15 & added a number of new tabs, but I couldn't find any related documentation or changelog describing the purpose of these additional examples.
https://github.com/microsoft/CloudAdoptionFramework/commits/master/ready/enterprise-scale-architecture.vsdx
Could you provide any additional info or context? (the new examples look quite useful & I'm anxious to share with my customers, but was hoping to have some context.) Thanks!

Hey @larryclaman,
I did indeed as part of PR #63 👍
Originally it was to fix a typo in the ALZ/ESLZ diagrams, but I also added other diagrams that are used across the CAF & ESLZ repo to make them publicly available to everyone. For example, I included the diagrams from https://docs.microsoft.com/en-gb/azure/cloud-adoption-framework/ready/enterprise-scale/testing-approach & also https://github.com/Azure/Enterprise-Scale/blob/main/docs/media/es-hubspoke-nw.png from https://github.com/Azure/Enterprise-Scale/tree/main/docs/reference/adventureworks
Hope that answers your question 👍

thanks Jack!


Primary style not working for table cells.

Very often our company need Primary (Neutral) style additionally to Positive and Negative styles for table cells, but this is not available.
Here is this style for button: http://semantic-ui.com/elements/button.html#basic
But applying it for Table cells like Positive / Negative http://semantic-ui.com/collections/table.html#positive--negative - not working:
text
Please add primary style to table cells.

Hi @MurzNN, what color it’s supposed to be?

Color like Primary button, so something like this:
background-color: #EEF7FE;
color: #19639B;

This is very easy to implement and will be very useful for users!

up

See also https://github.com/Semantic-Org/Semantic-UI/issues/2279

All available colors are supported in table cells/rows since 2.7.0
https://fomantic-ui.com/collections/table.html#colored


ndr.de: Unable to download f4m manifest

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like this: [x])
Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.12.14. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

[X] I've verified and I assure that I'm running youtube-dl 2017.12.14

Before submitting an issue make sure you have:

[X] At least skimmed through the README, most notably the FAQ and BUGS sections
[X] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[X] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
$ youtube-dl https://www.ndr.de/fernsehen/Die-Geschichte-eines-Abends,abend156.html --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://www.ndr.de/fernsehen/Die-Geschichte-eines-Abends,abend156.html', u'--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.12.14
[debug] Python version 2.7.10 - Darwin-17.3.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.4, ffprobe 3.4, rtmpdump 2.3
[debug] Proxy map: {}
[ndr] Die-Geschichte-eines-Abends: Downloading webpage
[ndr:embed] abend156: Downloading JSON metadata
[ndr:embed] abend156: Downloading f4m manifest
ERROR: Unable to download f4m manifest: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 506, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2196, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

Description of your issue, suggested solution and other information
A show streamable on ndr.de (or downloadable via vavideo.de) is not available via youtube-dl.
Problem happens on the show page (https://www.ndr.de/fernsehen/Die-Geschichte-eines-Abends,sendung712356.html) as with the show in the mediathek (https://www.ndr.de/fernsehen/Die-Geschichte-eines-Abends,abend156.html)

Yes, the extractor for ndr.de seems to be broken. The two internal extractor tests also fail ("Unable to extract embed URL").


Texture Bug/Feature?

Godot version
4.0.1.stable and 4.0
System information
Windows 10,  Intel(R)HD Graphics Family, <IP_ADDRESS>71,  GLES3
Issue description
The texture looks normal in editor but when
Running the project the texture is weird.
I tried experimenting in Settings but i can't find the solution. :(

Steps to reproduce
"The texture looks normal in editor but when
Running the project the texture is weird.
rotating the texture  has pixel rotation too

Minimal reproduction project
N/A

To speed up our work, please upload a minimal project that isolates and reproduces the issue. This is always the best way for us to fix it. We recommend attaching a ZIP file with the minimal project directly to the bug report, by drag and dropping the file in the GitHub edition field. This ensures the file can remain available for a long period of time. Only use third-party file hosts if your ZIP file isn't accepted by GitHub because it's too large.
We recommend always attaching a minimal reproduction project, even if the issue may seem simple to reproduce manually.

It's impossible to tell what's going on just from your description, we need settings, how you're using the texture, etc

This looks like uneven pixel scaling. See https://github.com/godotengine/godot-proposals/issues/1666.

@Calinou it appears the solution for this problem is just setting the stretch mode to canvas_item instead of viewport


starting periodic job immediately

I'd like to schedule a periodic job, which works fine using:
public static void scheduleJob() {
    int jobId = new JobRequest.Builder(WeatherFetchJob.TAG)
            .setPeriodic(TimeUnit.HOURS.toMillis(6), TimeUnit.HOURS.toMillis(1))
            .setRequiredNetworkType(JobRequest.NetworkType.CONNECTED)
            .setUpdateCurrent(true)
            .build()
            .schedule();
}

It seems as if this job will run first 6 hours after it is scheduled. But also I would like it to start it immediately once selected. My thought was something like
public static void scheduleJob() {
    int jobId = new JobRequest.Builder(WeatherFetchJob.TAG)
            .setPeriodic(TimeUnit.HOURS.toMillis(6), TimeUnit.HOURS.toMillis(1))
            .startnow
            .setRequiredNetworkType(JobRequest.NetworkType.CONNECTED)
            .setUpdateCurrent(true)
            .build()
            .schedule();
}

Would start it right away, then periodically run it every 6 hours but it appears startnow() and setperiodic() are contradictory. If I wanted to implement this functionality, would I need to make two separate jobs? One periodic and one immediate?

You don't need to implement another job. You can reuse the existing job, it's only necessary to reuse the same tag like you did.
You need to remove setUpdateCurrent(true) on both jobs, because that would cancel any other job with the same tag. In the end something like this should work.
public static void scheduleJobPeriodic() {
    int jobId = new JobRequest.Builder(WeatherFetchJob.TAG)
            .setPeriodic(TimeUnit.HOURS.toMillis(6), TimeUnit.HOURS.toMillis(1))
            .setRequiredNetworkType(JobRequest.NetworkType.CONNECTED)
            .build()
            .schedule();
}

public static void scheduleJobOnce() {
    int jobId = new JobRequest.Builder(WeatherFetchJob.TAG)
            .startNow()
            .setRequiredNetworkType(JobRequest.NetworkType.CONNECTED)
            .build()
            .schedule();
}

Thanks works great. Had to take out the setRequiredNetworkType(), but I believe that's expected for startNow().

Yes, I forgot about that.


Added some properties for text view in input bar

In my project I need design textView in input bar with borders, so I added two properties for textView's layer into ChattoAdditions. This is small improvement but it can be useful for more flexible control.

@NSEGeorge Thank you!


[Feature]: Support for "Bring Your Own" Author Certificate for Package Signing on NuGet.org

Related Problem
No response
The Elevator Pitch
Currently, NuGet.org enforces an "all or nothing" policy when it comes to package signing. This means that users must either sign all packages with a single certificate or none at all. However, there is no flexibility to allow authors to use their own valid signing certificates per package. This is restrictive for users who may wish to maintain different security policies across their packages or who have specific compliance requirements involving external certificates.
https://learn.microsoft.com/en-us/nuget/create-packages/sign-a-package#manage-signing-requirements-for-your-package-on-nugetorg
https://learn.microsoft.com/en-us/nuget/reference/signed-packages-reference
Introduce support for a "bring your own" valid author certificate policy where developers can sign individual packages with different certificates if required. This would allow more flexibility in managing security policies across multiple packages.
Additional Context and Details
No response

Kind of Scoped signing.


Encode blobs with gzip before send to TM1

The issue in the PAoC proxy has been resolved.
This can be merged.


Multiple init files

Installed App version 0.0.2 and after a while I've noticed that I have 3 init files for 2 different node ids, all of the size of 4.3GB.

For the actual node id, there is one init file in the folder I've chosen (Spacemesh/post/real_node_id)
For a different node id, there are 2 init files, one in the same folder as mentioned above (Spacemesh/post/other_node_id) and the other one under Spacemesh/other_node_id

As mentioned in other related bugs, we have yet to get to the bottom of these post setup issues. Regardless - please try to repro with 0.0.3 as POST related setup is one of the biggest change of this release over 0.0.2.

Need to try to repo with 0.0.4


TypeScript server not working on Ubuntu 16.04

VSCode Version: Code 1.7.2 (7ba55c5860b152d999dda59393ca3ebeb1b5c85f, 2016-11-21T22:14:18.217Z)
OS Version: Linux x64 4.4.0-47-generic
Extensions:

Extension
Author
Version

xml
DotJoshJohnson
1.6.0

java
redhat
0.0.6

Hi Microsoft!
I'm very happy with vscode in general - good work!
However, I'm unable to get embedded TypeScript server to work on Ubuntu 16.04 with Node.js. vscode was installed using the .deb file.
Steps to Reproduce:

Install node.js version 6.9.1 LTS
npm init
3: npm install express --save
4: Create .js file and import any core module (for instance 'express' or 'fs'.

Recieving the following error in output:
[Info  - 3:14:09 PM] Using tsserver from location: /usr/share/code/resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js
[Error - 3:14:22 PM] 'completions' request failed with error.
Error processing request. Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at getCompletionEntriesFromTypings (/usr/share/code/resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js:48215:79)
at getCompletionEntriesForNonRelativeModules (/usr/share/code/resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js:48094:17)
at getStringLiteralCompletionEntriesFromModuleNames (/usr/share/code/resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js:47985:31)
at getStringLiteralCompletionEntries (/usr/share/code/resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js:47889:28)
at Object.getCompletionsAtPosition (/usr/share/code/resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js:47773:24)
at IOSession.Session.getCompletions (/usr/share/code/resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js:54974:64)
at Session.handlers.ts.createMap._a.(anonymous function) (/usr/share/code/resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js:54219:61)
at IOSession.Session.executeCommand (/usr/share/code/resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js:55286:28)
at IOSession.Session.onMessage (/usr/share/code/resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js:55306:35)
at Interface. (/usr/share/code/resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js:56389:27)

I believe this issue was fixed on the TS side by https://github.com/Microsoft/TypeScript/commit/6ea5c227603efd14d379170af2efa5642219f8b7 which is not present in TS 2.0.10 . We should pick it up in ts 2.1.x  (I confirmed that it is already in 2.1.1).

So fixed in next release of VSCode then?

Yes, we are waiting on the release of TS 2.1.3. Adopting it is being traced by  #15535.


Error: Get BPE code in Chinese

It's the same as this:
https://github.com/facebookresearch/LASER/issues/41
Thanks

issue seems to be fixed


create "default" namespace by default

When running the system via docker-compose (e. g. https://github.com/temporalio/temporal/blob/master/docker/docker-compose.yml), the system starts up with default namespace already existing. However, this is not the case when deploying the system via helm chart.
Please add default namespace when deploying temporal via helm chart.
PS Thanks to Remy for reporting this!

Hey @markmark206 any update on this? Is there a good workaround when doing an automated deployment that doesn't require calling tctl by hand?

we've come to the conclusion that for our helm charts we should not create a default namespace by default because having a default namespace is only a convenience for development - which is why it's automatically created when running temporal via docker-compose.
additionally since namespaces cannot currently be deleted we would be adding something that is more likely to cause accidental problems in production environments but that has no way of being removed (as is still an issue with kubernetes default namespaces and one we'd like to avoid if we can).

I have a related question. Even if the default namespace is not created automatically, should the helm chart not have a way to configure some pre-created namespaces via the values ?

Any update or a workaround on this issue ?

agreed, even though this shouldn't be a the default behaviour there should be a parameter available on the helmchart to do it

Would you all accept a PR to fix this?

#420 opened to track this. PRs accepted.


Fix code scanning alert - Overly permissive regular expression range

Tracking issue for:

[ ] https://github.com/opea-project/GenAIExamples/security/code-scanning/12

Remove all deprecated folders.


Update RoiPoolingConv.py

Required for using model.save and load_model

Looks great, thanks for the PR!


use x-forwarded-host header value as hostname for redirect

I'm proxying requests to node from Apache, and the proxy points to localhost:8888. When a redirect happens, the browser was sent to localhost:8888 instead of the public-facing hostname. This pull request makes the redirect hostname attempt to use the value from the x-forwarded-host header, falling back to req.headers.host if x-forwarded-host isn't available.

Hi!
Thanks for the PR. I can see the value of it. I'm a bit concerned, though, that the header could be easily faked by a malicious outside party and redirect all traffic to an unforeseen host. I guess the workaround would be to add a new options flag such as trustHostHeader which would force the developer to ensure that they are aware that they have to manually set x-forwarded-host for every request.
Does that make sense and would you like to do that?
Cheers

which would force the developer to ensure that they are aware that they have to manually set x-forwarded-host for every request.

It would force the developer to accept that whatever value is in the header will be used. The proxying webserver layer is handling the header addition.
It's a fair point though. I'll add the config setting.

@florianheinemann done


Update dropbox to 16.3.27

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask’s name and version.

This is a beta build - the stable build is still 15.4.22.

This is a beta build - the stable build is still 15.4.22.

Yep. We should be following whatever is in the appcast, for this one. Thank you anyway @artdevjs, as always.


User is shown as signed in, even when Oauth login is revoked, cancelled

Fixed in the commit 4179b5cc600244902af7ad30d9d6efe150be6e77


🧑💻 :

:red_circle: Title : Adding pause button to ping pong game
:red_circle: Enhancement Aim :To add pause buttton to ping pong game  which makes user to pause the game in center
:red_circle: Changes :  Adding pause button
Screenshots 📷

✅ Details to Include When Taking the Issue:
Name : Dharmadhaashan P
Participant Role : GSSOC, Hacktoberfest , level 1

Happy Contributing! 🚀
Wishing you all the best on your open source journey. Enjoy! 😎

assign me this @iamrahulmahato


drivers: serial: nrfx_uarte: Fix misbehavior due to preemption

UART_RX_RDY event can be generated from UARTE interrupt or k_timer handler. When ENDRX event occurs then k_timer is stopped (it can be restarted if there is another buffer provided). However, if UARTE interrupt priority is higher than k_timer priority (RTC is used underneath) then k_timer handler may still be executed later. K_timer notifies new bytes based on RXDRDY HW event which is counter by the TIMER (using PPI). It may happen that RXDRDY event arrives due to byte received into RX FIFO but since there is not buffer provided it stays in that FIFO. Given all this, it was possible that RX_RDY event was reported from ENDRX UARTE event, timer was stopped but because UARTE interrupt had higher priority timer handler is executed after UARTE interrupt is handled. In timer handler TIMER counter reports more bytes and calls UART_RX_RDY event with null buffer and non-zero amount of bytes.
Fixed by generating UART_RX_RDY event only if RX buffer is not null.
Fixes #68538

@anangl could you take a look?


[ROCKETMQ-365] Add consume times stat and fix client log

What is the purpose of the change

We need to known post time stat since there is failure in consume.
updateConsumeOffsetToBroker log in client is large as log level is info.

Brief changelog

Add consume post time stat.
delete updateConsumeOffsetToBroker info log

Verifying this change
I think there is no need to add testcases for this PR.
Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Make sure there is a JIRA issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x] Format the pull request title like [ROCKETMQ-XXX] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[x] Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test  to make sure integration-test pass.
[x] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Coverage decreased (-0.07%) to 41.42% when pulling 78ea43c93dcd51e53b7cd2623a60a36d9beb4ebf on lindzh:fix_invalid_log into 5db240f39208374117342c5852b3a32061c8e6ef on apache:develop.

I will close the pr, if you happened to the same question, please let me know.


Refactor and reorganize

Splits covstats and indexcov into separate workflows (but keeps the combined versions)
Clearer variable names
Small improvements in command sections, since I've gotten slightly better at bash over the years
Output percent unmapped as wf out for covstats, which might be helpful for https://github.com/aofarrel/myco
Add support for changing the exclude patterns, which is necessary to support TB

Checker ran successfully as did covstats on Terra.
TODO: fix docker build

Tested and passes on Terra via checker workflow. Huzzah!


xdg-desktop-portal-shana: init at 0.3.9

Description of changes
Adding an xdg-desktop-portal implementation
Also adding myself as maintainer of the package
The package is in the AUR. I've taken the license and description from there.

Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

I think you have to rebase onto upstream master.

@ofborg build  xdg-desktop-portal-shana

LGTM! Thanks :)

Awesome! Thanks for your patience


Initial scroll is off when using scroll with tabs

Steps to Reproduce
When placing scroll views inside tabs the initial scroll is off on tabs. The offset grows by the tab number. See video:
https://www.youtube.com/watch?v=w2rQfbFdWAo
[✓] Flutter (on Mac OS X 10.12.4 16E195, locale en-US, channel master)
    • Flutter at /Users/vik/Projects/flutter
    • Framework revision 87c5b24e87 (16 hours ago), 2017-05-30 16:45:54 -0700
    • Engine revision 75c74dc463
    • Tools Dart version 1.24.0-dev.3.0

[✓] Android toolchain - develop for Android devices (Android SDK 25.0.2)
    • Android SDK at /Users/vik/Library/Android/sdk
    • Platform android-25, build-tools 25.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] iOS toolchain - develop for iOS devices (Xcode 8.3.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 8.3.2, Build version 8E2002
    • ios-deploy 1.9.1
    • CocoaPods version 1.2.0

[✓] Android Studio (version 2.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Gradle version 3.2
    • Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] IntelliJ IDEA Community Edition (version 2016.3.4)
    • Dart plugin version 163.13137
    • Flutter plugin version <IP_ADDRESS>

[✓] Connected devices
    • iPhone SE • B19052F4-91FF-48C7-85B4-26C1D2D1A148 • ios • iOS 10.3 (simulator)

Specifically @vlidholt means the scroll-offset changes.  All of the tabs are expected to be scrolled to the top (grey bar), but notice that they each are scrolled progressively more as he tabs through.
@HansMuller would know.

Thanks for the clarification, was a bit in a rush. :)

I wasn't able to reproduce the problem with the current version of  NewsVoice or with the tabs demo from Flutter Gallery (Android).  It's possible for NestedScrollViews to affect the scroll offset of their siblings, but you're not using NestedScrollView.
Does the bug manifest itself the same way on a device as the emulator?

It's the same on device and simulator. I can try to make a reduced test case.

I made a reduced test case here: https://github.com/vlidholt/flutter_bug_scroll
The bug happens when the tab bar is scrolled. Looks like the tab bar offset is used as an offset in the scroll list.

@HansMuller

Video of the issue
https://www.youtube.com/watch?v=qgqRbMi3IVo
Also, possibly related, the scroll offset of the tab you are going to is affected by the offset in the current tab. But it behaves differently if you are pressing the tabs at the top or if you are swiping. It's also different if the scrollview is animating while switching tabs. Preferably, the Scrollview should always respect the offset as passed by the ScrollController.

My guess is that each list is trying to save its position, but because they don't have distinct keys, they all end up using the same slot in the page storage. Does it resolve itself if you put a GlobalObjectKey(widget.pageNum) on the CustomScrollView?

@Hixie I tried to add the global key, but it makes no difference.

Thanks for the small test case; trying to get to the bottom of the problem now.

There seem to be two problems here. Not only does the tab bar end up storing its scrollOffset in the same PageStorage location as each view's CustomScrollView, but all of the CustomScrollView's end up hitting the exact same location. So in addition to the problem you reported, all of the CustomScrollView's end up scrolled to the same offset.
So to workaround the problem create the CustomScrollView's with their own key:
 new CustomScrollView(
        key: new ValueKey<int>(widget.pageNum),
        controller: scrollController,
        slivers ...
  )

To really fix the problem we'll ensure that TabBarView pages automatically end up with a unique key.

The root of this problem is the way we generate PageStorage identifiers, the per-route map keys used to store scroll offsets.
PageStorage is read and written as follows. The storage identifiers are based on the context value.
PageStorage.of(context).writeState(context, value);
var value = PageStorage.of(context).readState(context);

If the context's widget has a Global key, then that defines the storage identifier. Otherwise we use all of the ancestor's keys, up to - but not including - the next GlobalKey. Which is what happens in all cases in this example. All of the CustomScrollViews end up finding the RefreshIndicator's GlobalKey (I don't know why it has one), and since there are no intervening keys, they all end up with the same bucket. The TabBar's scrollable has also ends up with no identifier; it bumps into the Material's _InkFeatures global key. Not to put too fine a point on it, by the result is that all of the scroll offsets are saved and restored from the same map entry.
For ground truth see PageStorageBucket._computeStorageIdentifier(context).
Adding a ValueKey to to each CustomScrollView remedies the problem because the storage identifier algorithm finds it. Unfortunately this approach doesn't generalize, since adding value keys to farther up the tree, like above the RefreshIndicator, don't have any effect. In other words, the remedy only works if you happen to be creating the scroll view directly.

I liked your offline suggestion of having PageStorage only use PageStorageKey<T>s (extends ValueKey<T>) to determine the storage identifier. Presumably the chain of such keys from the widget to the PageStorage itself, ignoring all other keys (and removing the GlobalKey stuff from the equation).

Here's a proposal for fixing the page storage identifier problem.
Widgets can save and restore state that outlives the widget itself using:
PageStorage.of(context).writeState(context, value);
var value = PageStorage.of(context).readState(context);

Scrollables (their ScrollPositions really) use this mechanism to save and restore their scroll offset.
Page storage is just a per ModalRoute Map. The read and write state methods create a "storage identifier" (a key for the PageStorage Map) based on the context parameter. This is where things get tricky.
The storage identifier needs to be stable across widget lifetimes. For example, for a PageView with three children, each of which contains a ListView, the storage identifiers for the ListViews must remain the same, as they're lazily created and recreated by the PageView. Currently the storage identifiers often are not stable and so scroll offsets are not restored correctly.
To remedy the problem we could introduce a kind of ValueKey - PageStorageKey - which would be used to create storage identifiers. A storage identifier would be the concatentation of all of the ancestor PageStorageKeys, from the context's widget to the application's root. To be useful the PageStorageKey's value would have to stable and unique. For example:
new TabBarView(
  children: myTabs.map((MyTab tab) {
    new MyScrollableTabView(
      key: new PageStorageKey<MyTab>(tab),
      tab: tab
    ),
  }),
)

On the down side, this approach leaves the problem of identifying widgets to the app developer. On the up side it makes it possible for developers to give widgets stable identities.

https://github.com/flutter/flutter/pull/10575 will revert this fix due to the performance impact.

https://github.com/flutter/flutter/pull/10590 restored the fix


Variable Explorer Window not working

Discovered this while trying to get it working on remote, but verified that it doesn't work locally either.
Repro:

Open Interactive Window
Type z = 42
Open Variable Explorer (CTRL+8) - nothing shows.

Other implications: View() command doesn't work either which is normally a workaround for a busted VE.
Screenshot:

Tried this with the latest master, I am able to see stuff in Variable Explorer
and View() works for me, both from VE and REPL

Make sure that you have the right frame selected in the VE dropdown (and note that it doesn't automatically select the topmost frame).

Probably same as #2729

Closing, please reopen if there is a repro.


Update index.d.ts

Following this issue, https://github.com/Sambego/storybook-state/issues/18 and more precisely this comment https://github.com/Sambego/storybook-state/issues/18#issuecomment-490910670.

Thanks for this pull-request, it is available in v1.3.5.


COE: Implement validate() on CoSimulationConfig

@lausdahl , is this still ongoing?

Yes still not done


needs updating to 0.12.3 from 0.12.3 ?

Sails version:0.12.3
Node version:4.4.5
NPM version:3.9.6
Operating system:windows 10 Home

Hi,
I'm running windows 10
Why do i get this error message?
C:\Users*******>npm install
npm WARN update-linked node_modules\sails needs updating to 0.12.3 from 0.12.3 but we can't, as it's a symlink
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture<EMAIL_ADDRESS>

Also have problems with live reload


zh-CN: translate tutorial/image/cnn.ipynb

Translate "tutorial/image/cnn.ipynb" into Simplified Chinese.

@Mr-Linus Format has been modified.

@duanw0916 @lamberta Please check the problem below.
This translated file is not shown in the official website, it should be shown on: https://tensorflow.google.cn/tutorials/images/cnn

Hi @Hedgeh09 ,
This one may not be running because it has a bad kernelspec name:
"kernelspec": {
      "display_name": "tf",
      "language": "python",
      "name": "tf"
    }

It should be:
    "kernelspec": {
      "display_name": "Python 3",
      "language": "python",
      "name": "python3"
    }

Can you try updating that? Thanks

Thanks for check back on this.
I updated nbfmt to handle bad kernelspec names. This notebook will be fixed in https://github.com/tensorflow/docs-l10n/pull/280/files#diff-9925f36c6d903ee096e826f648d688a9

Hi @Hedgeh09 ,
This one may not be running because it has a bad kernelspec name:
"kernelspec": {
      "display_name": "tf",
      "language": "python",
      "name": "tf"
    }

It should be:
    "kernelspec": {
      "display_name": "Python 3",
      "language": "python",
      "name": "python3"
    }

Can you try updating that? Thanks

Thanks for fixing those, I didn't get notification because that time was midnight in my area hhhhh.


use mos for generating some parts of the readme

These are just some improvements to the readme and a new dev dependency that generates some parts of the readme. The tool uses actually this package to generate the shields.
The example from the readme moved to a separate file and is tested by mos and inserted into the readme. This way the example will be always correct.
The shields in the readme are branch-specific. This is good because the travis shield won't be red if the build fails on some other branch

@zkochan Thanks for this but I'm not interested. After starting with my template I'm fine with editing everything myself.


new yahooweather version and fix update function

Description:
Update to yahooweather 0.7 to fix a bug with get_woeid with none internet connections. It also fix a bug in platform component if no update is doing
Bugfix for this message:
16-08-15 20:37:30 homeassistant.core: BusHandler:Exception doing job
Traceback (most recent call last):
  File "/opt/hass/lib/python3.4/site-packages/homeassistant/core.py", line 852, in job_handler
    func(*args)
  File "/opt/hass/lib/python3.4/site-packages/homeassistant/helpers/event.py", line 179, in pattern_time_change_listener
    action(now)
  File "/opt/hass/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 180, in _update_entity_states
    entity.update_ha_state(True)
  File "/opt/hass/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 154, in update_ha_state
    self.update()
  File "/opt/hass/lib/python3.4/site-packages/homeassistant/components/sensor/yweather.py", line 144, in update
    self._code = self._data.yahoo.Now["code"]
TypeError: 'NoneType' object is not subscriptabl

Checklist:
If code communicates with devices, web services, or a:

[x] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[x] New dependencies have been added to the REQUIREMENTS variable (example).
[x] New dependencies are only imported inside functions that use them (example).
[x] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.

I've missunderstand the trouttle function. Yes, I mean len :smile: but I need to commit on my deploay system to checkout on my test system...

Sorry for being so incremental in my comments, I should have noticed it right away.
To make local testing easy, run python3 setup.py develop and you can run `hass

Python learning session on morning :+1:  no problem, thanks for you comments. On my windows I've python 2.7 and python 3.4 and I need to learn how I can switch beetwen python version and the python 34 on windows have only python.exe and not python3.exe...

:smile: a reminder to me, trink more coffe befor I start my computer and try to use python


Strange size bug on the 3.1.2 -> 4.0.0 transition

There's some strange error when i transit from one of my tabs containing a pluto grid, to another that doesn't contain one. This only happens on 4.0.0.
On the first appearence of the table, everything is ok.
On the second, everything disappears(the three lines with content are visually empty):

Currently using flutter stable 3.0.2 on web.
Downgrading to 3.1.2 solved my problem.
Here's the log:
══╡ EXCEPTION CAUGHT BY SCHEDULER LIBRARY ╞═════════════════════════════════════════════════════════
The following assertion was thrown during a scheduler callback:
Assertion failed:
file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/visibility_detector-0.3.3/lib/src/visibility_detector.dart:203:10
..\…\src\visibility_detector.dart:203
size.width >= 0
is not true
When the exception was thrown, this was the stack:
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 251:49  throw_
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 29:3    assertFailed
packages/visibility_detector/src/visibility_detector.dart 203:24                                                           _area
packages/visibility_detector/src/visibility_detector.dart 155:25                                                           get visibleFraction
packages/pluto_grid/src/ui/pluto_base_column.dart 53:34                                                                    <fn>
packages/visibility_detector/src/visibility_detector_layer.dart 263:24                                                     [_fireCallback]
packages/visibility_detector/src/visibility_detector_layer.dart 234:12                                                     _processCallbacks
packages/visibility_detector/src/visibility_detector_layer.dart 171:11                                                     <fn>
packages/flutter/src/scheduler/binding.dart 1146:15                                                                        [_invokeFrameCallback]
packages/flutter/src/scheduler/binding.dart 1091:9                                                                         handleDrawFrame
packages/flutter/src/scheduler/binding.dart 997:5                                                                          [_handleDrawFrame]
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/platform_dispatcher.dart 1090:13           invoke
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/platform_dispatcher.dart 160:5             invokeOnDrawFrame
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/initialization.dart 194:45                 <fn>

comparing pluto_base_column.dart from 3.1.2 with 4.0.0:
3.1.2:
class PlutoBaseColumn extends PlutoStatefulWidget {
  @override
  final PlutoGridStateManager stateManager;

  final PlutoColumn column;

  final double? columnTitleHeight;

  PlutoBaseColumn({
    required this.stateManager,
    required this.column,
    this.columnTitleHeight,
  }) : super(key: column.key);

  @override
  _PlutoBaseColumnState createState() => _PlutoBaseColumnState();
}

abstract class _PlutoBaseColumnStateWithChange
    extends PlutoStateWithChange<PlutoBaseColumn> {
  bool? _showColumnFilter;

  @override
  void onChange() {
    resetState((update) {
      _showColumnFilter = update<bool?>(
        _showColumnFilter,
        widget.stateManager.showColumnFilter,
      );
    });
  }
}

class _PlutoBaseColumnState extends _PlutoBaseColumnStateWithChange {
  @override
  void initState() {
    super.initState();
    _showColumnFilter = widget.stateManager.showColumnFilter;
  }

  @override
  Widget build(BuildContext context) {
    return Stack(
      fit: StackFit.expand,
      children: [
        Positioned(
          top: 0,
          left: 0,
          right: 0,
          bottom:
              _showColumnFilter! ? widget.stateManager.columnFilterHeight : 0,
          child: PlutoColumnTitle(
            stateManager: widget.stateManager,
            column: widget.column,
            height:
                widget.columnTitleHeight ?? widget.stateManager.columnHeight,
          ),
        ),
        if (_showColumnFilter!)
          Positioned(
            bottom: 0,
            right: 0,
            left: 0,
            child: PlutoColumnFilter(
              stateManager: widget.stateManager,
              column: widget.column,
            ),
          ),
      ],
    );
  }
}

4.0.0:
class PlutoBaseColumn extends PlutoStatefulWidget {
  @override
  final PlutoGridStateManager stateManager;

  final PlutoColumn column;

  final double? columnTitleHeight;

  PlutoBaseColumn({
    required this.stateManager,
    required this.column,
    this.columnTitleHeight,
  }) : super(key: column.key);

  @override
  PlutoBaseColumnState createState() => PlutoBaseColumnState();
}

abstract class _PlutoBaseColumnStateWithChange
    extends PlutoStateWithChange<PlutoBaseColumn> {
  bool? _showColumnFilter;

  @override
  void onChange(event) {
    resetState((update) {
      _showColumnFilter = update<bool?>(
        _showColumnFilter,
        widget.stateManager.showColumnFilter,
      );
    });
  }
}

class PlutoBaseColumnState extends _PlutoBaseColumnStateWithChange {
  @override
  void initState() {
    super.initState();

    VisibilityDetectorController.instance.updateInterval = Duration.zero;

    _showColumnFilter = widget.stateManager.showColumnFilter;
  }

  @override
  Widget build(BuildContext context) {
    return VisibilityDetector(
      key: widget.column.key,
      onVisibilityChanged: (info) {
        final bool visible = info.visibleFraction * 100 > 0;

        if (visible != widget.column.visible) {
          widget.column.visible = visible;

          widget.stateManager.notifyStreamListeners(
            PlutoVisibilityColumnStreamNotifierEvent(),
          );
        }
      },
      child: Stack(
        fit: StackFit.expand,
        children: [
          Positioned(
            top: 0,
            left: 0,
            right: 0,
            bottom:
                _showColumnFilter! ? widget.stateManager.columnFilterHeight : 0,
            child: PlutoColumnTitle(
              stateManager: widget.stateManager,
              column: widget.column,
              height:
                  widget.columnTitleHeight ?? widget.stateManager.columnHeight,
            ),
          ),
          if (_showColumnFilter!)
            Positioned(
              bottom: 0,
              right: 0,
              left: 0,
              child: PlutoColumnFilter(
                stateManager: widget.stateManager,
                column: widget.column,
              ),
            ),
        ],
      ),
    );
  }
}

@Macacoazul01
VisibilityDetector will be removed in the next version.
Development of an already removed version is over, but it's not yet released due to lack of testing.
I would appreciate it if you could give me the steps to reproduce it so I can test if the same problem occurs in the newer version that has been removed.

crash_sample.zip
@bosskmk

@Macacoazul01
Published 4.0.1 to the pub.
Thanks for reporting.

Gonna test tomorrow!
Tks @bosskmk


Adds extra information following Q&A and does general tidy up

As per the title, from yesterday.

:boom: :star: