ref: Layout via Flutter

There are several bugs and feature requests that require/would benefit from a refactor in how the widget layouts are calculated during the initial layout and when the screen size changes.
Instead of reading the available space and then manually calculating each child's size based on its ResizableSize type and its min/max constraints, I think it would be easier to move the layout responsibility to Flutter and then update the sizes after layout.
This is already partially implemented in an attempt to add the ResizableSize.shrink() type, but it remains unfinished because we can't easily support setting that size via the ResizableController - we have no idea of knowing what the actual minimum size of a given child Widget is in the controller (not the constraint, but the actual necessary rendered size); this must be accomplished by triggering a layout with Flutter and wrapping the child with UnconstrainedBox.
Issues that would benefit from this refactor include:

#59
#52
#62

Also worth linking #61

A pre-release version of this is available on pub.dev at https://pub.dev/packages/flutter_resizable_container/versions/4.0.0-beta.1


Smooth animations while data is loading

Overview

Sort FHIR queries in reverse chronological order by default so most recent data is loaded first
When merging new data into a layer, sort in reverse chronological order to avoid shuffling data points animation
In cardio app, update chart after smaller batches of points to smooth out animations while loading data
Use quicker default animations so everything feels a bit snappier.

How it was tested

Ran cardio and showcase apps and watched the data load.

Checklist

[x] The title contains a short meaningful summary
[x] I have added a link to this PR in the Jira issue
[x] I have described how this was tested
[ ] I have included screen shots for changes that affect the user interface
[ ] I have updated unit tests
[ ] I have run unit tests locally
[ ] I have updated documentation (including README)

https://user-images.githubusercontent.com/2105775/236589578-572096b2-ec82-4293-bf15-5d2ad4b8fe13.mp4


Basic implementation.

Will also require changes to the HighSeal CLI.

Created and added @theroyalwhee0/highseal-cli.


drivers: i2c: add i2c controller implementation using rp2040 pio

I2C controller that uses PIO on RP2040. Using this we can drive up to 8 I2C busses in addition to the two supported by the built-in i2c peripheral.
This driver is adapted from the pico sdk pio i2c example with some changes to fix issues identified over the years.

Resetting the input shift register before reading a byte. Sometimes the shift register might get out of sync.
Resetting the SM after handling a NAK, related to shift registers counters getting out of sync.
Waiting for possible clock stretching when writing the I2C STOP.

This is a blocking driver as I found versions interacting with the PIO via interrupts to perform much worse than simply waiting via k_yield.
The driver attempts to load the PIO code only once in order to allow multiple driver instances to run the same code.
It also uses the reg property as the SM, instead of relying on pico sdk to arbitrarily assign one, which seems to be the norm for other PIO-based drivers in the codebase. I'll put up a separate PR to do this on the main pio dts nodes and fix-up drivers if people think this is a good idea.

I have a followup which adds support for using a DMA channel to improve performance, which roughly doubles the performance. I'll put that up as a separate PR.
I have also tried implementing this driver using interrupts in two ways, both of which performs worse than this version.
I made sure to keep the interrupt code in memory using __ramfunc and ld relocations for library code, and it still ended up much slower.

sleep on a semaphore where the code would currently yield, and using an interrupt handler to unblock the thread when condition is met.
rtio api implementation that uses state machine framework and all code living in interrupts.

If interested I can dig them up and post them elsewhere.

I'm not at all familiar with the pio peripheral, so I've reassigned.


[Code health] Stop exposing Activity to managers

Any example @gino-m

ActivityStreams.kt?

I think we should evaluate all uses of withActivity and come up with a simpler approach. Passing the Activity through a Flow is likely to lead to memory leaks and race conditions.


Adding AWS S3 Bucket Image Uploader and Microsoft SQL Node Engine

Typescript definition for AWS S3 Bucket Image Uploader and Microsoft SQL Node Engine

Modified definitions

Added mssql and s3-uploader nodejs projects

@ColsaCorp thanks mate.


Background-Page Optional Changes

[ ] Remove optional tags #4
[ ] Create an enum for plusSlides function in index.html #4

Typically you want 1 issue to be for one task. I would split this up into 2 issue.

Remove optional takes from BackgroundPage
Create a +1, -1 enum for changing slides

You can rephrase as you like.


feat(backend): add name param for concatenate

Summary
add name parameter
Related Issues
PR Overview

[ ] This PR requires new unit tests [y/n] (make sure tests are included)
[ ] This PR requires to update the documentation [y/n] (make sure the docs are up-to-date)
[x] This PR is backwards compatible [y/n]
[x] This PR changes the current API [y/n] (all API changes need to be approved by fchollet)

Thanks for the PR. I believe that we have named scopes to do just that. Can you check?

Thanks for the PR!
In general, our backend ops don't have a name argument, because they are made of multiple underlying TF ops. To be consistent, we don't use name even if there is only a single TF op.
We have name as an arg for things that clearly need a name: variable, placeholders, constant tensors.
The exception to that rule is identity and the map_fn set of functions. I believe that was a oversight on our part, not having names there would have been more consistent (no need to change it now though).


Colab Issue: Bilbox copies images to WebUI every time Comfy is restarted

Could you please add some kind of check to avoid loading the images every time comfy is restarted? This might be fast on local, but takes 2mins+ on Colab. Here's some sample code, I would have created a pull request but figure this might be a hack if you need some way to override the check if you update images ...
import shutil, os
import folder_paths
bx_path = os.path.dirname(file)
comfy_path = os.path.dirname(folder_paths.file)
dest_path = os.path.join(comfy_path, "web", "extensions")
destination = os.path.join(dest_path,"bilbox")
if not os.path.exists(destination):
shutil.copytree(os.path.join(bx_path,"web_to_copy"), destination)
else:
print(f"The destination path {destination} already exists.")

You are right, I did not think about colab usage. I was doing this on the begining but indeed, it was a pita when changing js code. Will do on a more stable version?

It seems that Comfyui is begining to develop an "extension" mechanism in which copy will not be need. For now it only works for javascripts afaik. Going in the good direction... A temporary solution could be disable the copy code and make a symlink...

Should be fixed now. Just remove the "bilbox" directory under web if you don't make a frash install...


Ability of Village Witch tower triggers too often

According to description of ability:

When the witch attacks, it has a 10% chance to deal %s spell damage to its target, increasing the witch's attackspeed by %s and decreasing the chance to trigger this spell by 10%

This means that each successive trigger should be less likely and more than chance of more than 3 triggers should be almost 0.

Closed by 7524a23c879e2ccaaf7193c8e966180e93e6fa4c and d103e84829c4506f9b10df75cfeab6d06a30a907


It don't run from a image named alpine when use docker.

I go build my app with go-sqlite3 in linux.but it don't run in alpine container.
backup.go:14:20: fatal error: stdlib.h: No such file or directory compilation terminated.

I don't know why is it.If I use ubuntu environment compiler can run in ubuntu?

Do you have installed gcc?

RUN apk add --update gcc g++

I'm passing the same problem
Did you solve it?

I'm solve it installing sqlite3 in my OS!

RUN apk add --update gcc musl-dev is enough

I go build my app with go-sqlite3 in alpine container.But it don't run in centos6.

/lib/ld-musl-x86_64.so.1: bad ELF interpreter: No such file or directory

@wmzy Yeah, that's because Alpine uses musl libc, whereas Centos uses glibc. If your program is linked against one sort of libc, it cannot run on a system that uses a different one. Not a problem with this package.


.tsx files doesn't have proper syntax highlighting

What did you expect to happen?
.tsx files to have proper syntax highlight the way it happens on .jsx.
What actually happened?
it doesn't.

Describe your attempts to resolve the issue
Tried many solutions i saw on reddit and other issues, like:
(use-package! typescript-mode
  :defer t
  :init
  ;; REVIEW Fix #2252. This is overwritten if the :lang web module is enabled.
  ;;        We associate TSX files with `web-mode' by default instead because
  ;;        `typescript-mode' does not officially support JSX/TSX. See
  ;;        https://github.com/emacs-typescript/typescript.el/issues/4
  (unless (featurep! :lang web)
    (add-to-list 'auto-mode-alist '("\\.tsx\\'" . typescript-mode)))
  :config
  (add-hook 'typescript-mode-hook #'rainbow-delimiters-mode)
  (setq-hook! 'typescript-mode-hook
    comment-line-break-function #'js2-line-break))

Steps to reproduce
Just open emacs and try to use a .tsx file.
System Information
https://pastebin.com/BjhjR95i

Yes, that did it. Thanks!
I would only suggest that in the default init.el it should have stated, in front of the web-mode, that it would highlight .tsx files. Thanks.

typescript-mode doesn't support tsx files. Doom uses web-mode to highlight them, it should work when you have enabled web and javascript in your init.el?

Only one more thing, is there any way to make things like treemacs, doom-modeline, dired show the proper react (or even a tsx) icon?


STM32F7 SDMMC fixes

Summary
This pull request mainly addresses an issue of the stm32_sdmmc lower half driver. The changes are best reviewed commit by commit.
It includes the actual fix:

For the case when the watchdog is triggering a timeout we did not correctly reset the d0 GPIO. This patch fixes that by adding a somewhat clunky flag to keep track of that state.

And two cleanup commits:

Unify the two identical header files: stm32f72xx73xx_sdmmc.h and stm32f74xx77xx_sdmmc.h
Removes bit STBITERRIE which is reserved according to the reference manual

Impact
Without this fix, the SD card can become inaccessible.
Testing
Manually tested using PX4 fmuv5x with cherry-picked commits.

Hi @julianoes nice to see you here, does it also apply to stm32h7 family? If so, please include it.

Hi @julianoes nice to see you here, does it also apply to stm32h7 family? If so, please include it.

Yes we will need it on F4, H7. There is a little tweak to eliminate the the excess bool that we need to do also. Then it will come out of draft.

@antmerlino FYI

Thanks for the review and merging @xiaoxiang781216!


Trend value is top predictor in Waterfall chart

Hello,
I would like to know what could be the meaning if  trend is top predictor in Waterfall chart

I get it now, thank you


snmp repair

somethings wrong with the snmp server, needs to be investigated
likely a config problem

nagois vmware image from
https://www.nagios.com/downloads/nagios-xi/

installed nagiosxi-5.3.2-64

problems with the net-snmp config. current nagios service detail

fmad20 nagios config file is in fmadio/fmadio_scripts/snmp/nagios_xi_services_fmad20.cfg

regression added
fmadio/fmadio20_regression@42e9cf4

released as FW: fmadio20_20161118_2212.bin


Added unofficial Nats plugin to plugins.md

Added plugin for Nats message queue (http://nats.io) to docs.

@byrnedo fancy. I see you copied most of the dokku core stuff. Anything that is missing from your plugins that is in the core ones? Would be cool to make it official (you can keep maintaining it of course!)

I have you in the license notice :)
Yeah I pretty much copied the redis plugin. I can check if anything's missing but I did remove the 'connect', 'import', 'export' and 'clone ? or was that copy' commands. Yeah I was thinking maybe you'd be interested in making it official? I'd be happy to maintain

I added you to the dokku org, please initiate the transfer of the project over and we'll get everything setup :)

done and thanks :)

Please go through and update the plugin settings etc. to match the other plugins :) Thanks for everything!

ok will do!

@byrnedo you may need to make a new PR to this repo to fix the links :)

yeah, I'll move it up into official plugins too.
:ok_hand:


Suggestions for configuration

Hi,
Extension works perfectly, thanks for you job, it's amazing!
Noticed that there is no way to change position (Like Openweather extension)

Also there is no way to completely hide track name, if set to 0 - there is still "|...|" on the panel

I was planning to add those features soon. They will be most likely in the next update which won't take long. Thanks for trying it out!

All of the options you requested were added in the latest realease. So I will close this now.


Improve sparse pull performance for gluon trainer

Description

introduce gpu priority queue for row sparse pull operations
add ignore_sparse option to kv.pull, which improves hybrid blocks with dense weight and sparse gradient

@leezu @rahul003
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[ ] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
[ ] Changes are complete (i.e. I finished coding on this PR)
[ ] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[ ] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[ ] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[ ] Feature1, tests, (and when applicable, API doc)
[ ] Feature2, tests, (and when applicable, API doc)

Comments

If this change is a backward incompatible change, why must this change be made.
Interesting edge cases to note here

@haojin2

@junrushao1994 pls help review engine code. Thanks!

The engine code looks good to me

how does the performance look? @eric-haibin-lin @leezu

@szha For dense weight with sparse grad, this PR avoids pulls sparse grad instead of dense weight. Reduces gpu2gpu copy time from 60ms to less than 1ms.

@piiswrong @rahul003 pls review again, thanks.


Pass userData to output data set in cross-validation or binaryToMaryOneVsAll

I wrote a new prtClass in which metadata is written out to DataSet.userData in the runAction() method.
However, when I call crossValidate() on that prtClass or use it as a base classifier in prtClassBinaryToMaryOneVsAll, the userData is not saved to the output.
I would like it such that userData was saved to the DataSet that comes out of either prtClass.crossValidate() or prtClassBinaryToMaryOneVsAll.runAction() Is this an easy internal PRT fix?

For both of these, it's not obvious what the desired result is. crossValidate() calls runAction() for each fold, but currently yields the userData produced for the first fold only. prtClassBinaryToMaryOneVsAll runs runAction() for each class, and discards the userData entirely. We think the best solution is to produce a struct vector where each element comes from one crossvalidation fold or from one of the binary classification runs. This was implemented in the latest commit 85b6087b2917014530096c4f65c78c15189f966a
Here's my example script. You'll need to add the attached class definition to your path. Change the extension to .m (apparently GitHub doesn't like m-files).
ds = prtDataGenUnimodal;
clsUserdata = prtClassAddUserdata;
keys = round(rand(ds.nObservations,1));
results = clsUserdata.crossValidate(ds,keys);
results.userData

%%
dsMulti = prtDataGenMary;
clsUserdata = prtClassAddUserdata;
multiCls = prtClassBinaryToMaryOneVsAll('baseClassifier',clsUserdata);
results = multiCls.rt(dsMulti);
results.userData

prtClassAddUserdata.txt

Thanks Patrick, this works fine for my purposes. Will this be merged into master at some point?

See #66 (@peterTorrione).
@cratto, does it make sense to use observationInfo instead of userData for your application?


Write service request status changes to event manager

Write service request status changes to event manager
Update the following services:

Cancel service request
Recall service request
Deprecated: Complete service request (Kafka consumer)

blocked by edenlabllc/ehealth.api#4219

What event type should be stored on cancel? on recall and complete? What properties should be stored?

all the events should be with the same type: StatusChangeEvent
we should send new value of status property to the event manager in similar structure as it has been done for other events.

@AlekzandrV , We also have autoexpiration process and "Process service request" web-service. They change service request status as well. Shouldn't they be included in the task?

@IrinaRevutska please test it

Nothing new in event manager


update local env setup docs

I tried using the vscode / github integration and it copied these commits from my other PR into this one though that was not intended

I tried using the vscode / github integration and it copied these commits from my other PR into this one though that was not intended

This is a good issue to know about!

Hi @britt-allen, Were you just testing out vscode/github or if there are changes that need to be merged into main ? Please let me know. I am just asking the question to get a better understanding of the context here

I was testing things out, this PR is closed as it is not relevant


build: require libdispatch on non-Darwin targets

libdispatch is already required for Foundation.  At this point
libdispatch is available on all the supported platforms.  We simply
enable SyntaxParserLib and SourceKit on all targets, allowing users to
disable them.  If enabled on non-Darwin platforms, the user must specify
SWIFT_PATH_TO_LIBDISPATCH_SOURCE to indicate where to find
libdispatch.  This is done implicitly by build-script, resulting in no
change for users.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

CC: @akyrtzi

@swift-ci please smoke test

Nice!


WIP to fixup CI

@nonara so adding the type definition file is interfering with instrumenting the library on CI :( This should be fixable with https://github.com/fishbar/jscoverage/pull/45 merged (at which point it will be possible to exclude *.ts files).
In the mean time, you could try to get this in the @types registry

@caitp Interesting! Nice work on the fixes. I recently moved from mocha, coveralls, rewire, & sinon over to Jest. I'm usually quite hesitant to change from a proven tool to a newer one, and I generally don't like Facebook.
With that said, Jest has not ceased to impress! Spies, mocks, coverage, TS integration, etc - all seamless and built-in. Overall, it's also just built very well. Many improvements. If you've not had a chance yet, you might enjoy it for a future project!


Fix config defaults

This PR fixes the configuration to overwrite the defaults via inventory config files.
Changes:

removed group_vars/all
using role defaults
updated Readme for single node installation
updated installation for single node

wrong repo


Question about api

Does this tool uses https://github.com/ping/instagram_private_api?
How many posts can i scrape before i get error 429 with this tool?
Thank you.

API rate limiting depends on Instagram servers, not something we can do on client side. three or four years there are almost no rate limiting and you never got 429 at that time. but now it is easy to get 429. it's not about the tools, it's about how Instagram sets API rate limiting.

I used two tools
https://github.com/dvingerh/PyInstaStories
and
instaloader
the first one i never get 429 error with multiple account and no delay in download requests
with instaloader i got 429 error just from downloading stories from multiple accounts. i have to set request delay when using instaloader to avoid 429 error. the only reason i use instaloader its because it supports post download. I think instaloader method is spamming unneeded request too much while the other tool dont.
Does your tool use api method from https://github.com/ping/instagram_private_api like PyInstaStories does?


SCM: Disable Preview   ：cannot find the command

VSCode Version: Code 1.14.0 (b8cd5b9556d8b70ea560d35b903422363f6c5c40, 2017-07-10T18:24:22.120Z)
OS Version: Darwin x64 16.6.0
Extensions: the listing length exceeds browsers' URL characters limit

Steps to Reproduce:

Reproduces without extensions: Yes/No

That command no longer exists. How do you trigger that?


xsshunter don't take screenshot of content in an Iframes

I'm trying to take a screenshot of a html pages with an iframe, but xsshunter is not taking the screenshot of the Iframe content.
EXAMPLE:
index.htm

demo_iframe.htm:

This page is displayed in an iframe

**Hey Same Problem here.
i am using a iframe with a Full Width and height in a simple html Page
Like


Syntax issue with saving a Custom Action

Describe the bug
Saving a custom action with a double forward slash in quotes (//) causes it to be stored in the CustomActions.json file with an error. This leads to issues when running Tabular Editor through the command line interface.
To Reproduce
Steps to reproduce the behavior:

Type the following into the Advanced Scripting window

string urlPrefix = "https://google.com/";
string x = "hello";

Save this as a Custom Action
See how this is saved in the CustomActions.json file (when seen in Notepad ++ part of the code shows in red as shown below).

Expected behavior
I believe something needs to be changed with the way Tabular Editor handles this syntax when saving a Custom Action.
Observed behavior
This also causes a strange error when running Tabular Editor from the command line. However it doesn't actually error out and fail (which is good). See the issue below.
https://github.com/m-kovalsky/ProcessingManager/issues/2
Application specifics

Tabular Editor version: 2.16.0

Took me a while to understand what's going on. Turns out your ProcessingManager.cs file contains zero-width space characters (unicode 8203). For example try to copy this code into a text editor.
Here, I'm using Programmer's Notepad with ANSI encoding, which turns the unicode 8203 char into a question mark:

Same thing happens when Tabular Editor is running the script pre-processing, which explains the weird "token recognition error at: '?'" output (in fact, you get this output when running the script interactively as well, just try to launch TabularEditor.exe from a command line, then copy paste your script and execute it with F5).
Anyway, since there is no real error (the script / custom action is still being executed, after all), I suggest that you update your script to get rid of the zero-width space characters. In the mean time, I'll see if I can somehow make the script pre-processor ignore zero-width space characters.

Wow that's so weird. Not sure how they even got there. Thanks for catching this! I'll update the code.

Pre-compiler in version 2.16.1 has been fixed, so it now properly ignores the zero-width blanks (same as the C# compiler used to actually compile the script).


feat(deployment) allow custom environment variables to be configured for the ingress-controller container

Introduced a the ingressController.customEnv section to allow custom env
variables to be defined for the ingress-controller like it is possible
for the proxy with the customEnv right now
populate $customIngressEnv dict and add it to the $completeEnv dict
Updated Readme

What this PR does / why we need it:
Which issue this PR fixes
fixes #562
Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[ ] PR is based off the current tip of the main branch.
[ ] Changes are documented under the "Unreleased" header in CHANGELOG.md
[ ] New or modified sections of values.yaml are documented in the README.md
[ ] Commits follow the Kong commit message guidelines

 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.Edmund Wagner 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.


feature: Decode option to require case-sensitive field name matches

Is your feature request related to a problem? Please describe.
I'm working on a project that serves and persists API resources in a JSON encoding. The existing JSON encoding is case-sensitive in matching JSON object keys to struct field names during decode. I would like to support CBOR as an alternative encoding with case-sensitive field matching.
Describe the solution you'd like
A new DecOption field that can disable fallback to case-insensitive field matching. The default would preserve the current behavior.
Additional context
It's particularly interesting when an input map has multiple case variations on a field tag. For example, if you're unmarshaling into:
struct {
  Foo string `json:"bar"`
}

The first matching key in the map wins.  You can catch this if unknown field errors are enabled, but the map key that appears in the error also depends on where it appears in the input.
I'm happy to open a PR myself if you think this is a feature you'd accept.

Hi @benluddy, thanks for opening this issue!  This sounds very useful, please feel free to open a PR. :+1:

Hey @benluddy, I can review your PR this weekend (probably Sunday) if it is available.
If you haven't started yet, I can try to implement this feature over the weekend and add it to next milestone for release.
Currently, this library matches Go's encoding/json package for case-insensitive field names, but I really like your suggestion!  Thanks for opening this issue with details needed to make it easy to accept your suggestion! :+1:

Thanks @fxamacker! I've just opened https://github.com/fxamacker/cbor/pull/433 for this.

Thanks again for opening this issue and PR!  I updated my last comment (above) to be more precise.
This is closed by #433! :tada:


File upload how to describe in annotations?

I'm trying to describe a file upload, where the request body is used for the upload of a mp4 video. I can only find examples for multipart upload, but this is not the way we handle uploads in our API.
What I'm looking for is to translate this to annotations @.
requestBody:
content:
video/mp4:
schema:
type: string
format: binary
Anyone an idea? https://swagger.io/docs/specification/describing-request-body/file-upload/

See https://github.com/go-swagger/go-swagger/issues/2105

I looked into this, I though it should work with specifying just an io.Reader as type, but I haven't found that code

Hi, is the issue have any updates?
Now my API also need to upload file, and I documented my struct as below:
// swagger:parameters putObject
type PutInput struct {
	// name
	// in: path
	// required
	Name  string        `auto_read:"name,path" json:"name" validate:"required"`
	// scene
	// in: query
	// required
	Scene string        `auto_read:"scene,query" json:"scene" validate:"required"`
	// content-length
	// in: header
	// required
	Size  int64         `auto_read:"Content-Length,header" json:"content-length" validate:"required"`
	// ttl
	// in: query
	// required
	TTL   int64         `auto_read:"ttl,query" json:"ttl"`
	// body
	// in: body
	// required
	Body  io.ReadCloser `auto_read:"@body"`
}

then generated spec is looks like below:
consumes:
    - application/json
definitions:
    Reader:
        description: |-
            Read reads up to len(p) bytes into p. It returns the number of bytes
            read (0 <= n <= len(p)) and any error encountered. Even if Read
            returns n < len(p), it may use all of p as scratch space during the call.
            If some data is available but not len(p) bytes, Read conventionally
            returns what is available instead of waiting for more.

            When Read encounters an error or end-of-file condition after
            successfully reading n > 0 bytes, it returns the number of
            bytes read. It may return the (non-nil) error from the same call
            or return the error (and n == 0) from a subsequent call.
            An instance of this general case is that a Reader returning
            a non-zero number of bytes at the end of the input stream may
            return either err == EOF or err == nil. The next Read should
            return 0, EOF.

            Callers should always process the n > 0 bytes returned before
            considering the error err. Doing so correctly handles I/O errors
            that happen after reading some bytes and also both of the
            allowed EOF behaviors.

            Implementations of Read are discouraged from returning a
            zero byte count with a nil error, except when len(p) == 0.
            Callers should treat a return of 0 and nil as indicating that
            nothing happened; in particular it does not indicate EOF.

            Implementations must not retain p.
        title: Reader is the interface that wraps the basic Read method.
        type: object
        x-go-package: io
host: localhost:6789
info:
    contact:
        email<EMAIL_ADDRESS>paths:
    /objects/{name}:
        put:
            consumes:
                - application/octet-stream
            description: xxx
            operationId: putObject
            parameters:
                - description: xxxx
                  in: path
                  name: name
                  required: true
                  type: string
                  x-go-name: Name
                - description: xxx
                  in: query
                  name: scene
                  type: string
                  x-go-name: Scene
                - description: xxxx
                  format: int64
                  in: header
                  name: content-length
                  type: integer
                  x-go-name: Size
                - description: xxxx
                  format: int64
                  in: query
                  name: ttl
                  type: integer
                  x-go-name: TTL
                - description: xxxxxxx
                  in: body
                  name: Body
                  schema:
                    $ref: '#/definitions/Reader'
            produces:
                - application/json
            schemes:
                - http
            summary: xxxxxxxx
produces:
    - application/json
schemes:
    - http
swagger: "2.0"

It looks like the go-swagger handle the io.ReadCloser as a object instead of binary.

any support for multipart form files?

@casualjim thansk, but how to update multiple files like map[string]bytes.Buffer., not specific form name

The same problem I solved with following hacks:
described spec
    post:
      consumes:
        - multipart/form-data
      parameters:
        - name: Content-Type
          in: header
          type: string
        - name: data
          in: body
          description: Files
          required: true
          schema:
            type: string
            format: binary

so I got the PostAttachmentsParams struct with Data io.ReadCloser
next I just parse itself with r := multipart.NewReader(params.Data, boundary)
but there is another problem with client code =) it breaks boundary in Content-Type header
Is there any solution for the case when the names of the file fields and the total number of files are not known in advance?


owners: add nezdolik as maintainer.

PTAL and provide any suggestions to update areas of expertise, thanks.


Remove Unused FIles for Tox and others

I think this is okay, not using Tox, not creating a dist.

Closes #20

Yeah, all good.  No dist.  Makefile is kinda cool, but I've never used one for python projects.


Player using the ruler tool will freeze GM and other players' clients

On Foundry V10 build 288, tested on both D&D 5e and PF2e systems.
Only 2 active modules are Enhanced Terrain Layer and Terrain Ruler. By having a player connected at the same time as the GM (and possibly other players), the player using the ruler will cause the GM's and other players' clients to crash (Oddly enough, the offending player's client continues to work). Due to the nature of the crashes I'm unable to provide any console information, and the bug will annoyingly refuse to happen sometimes, though I can still reproduce it semi-consistently.

Hi there. Thanks for the report! To have a chance to fix this bug I need more details about when this bug is happening. Is it possible for you to record a video that shows the interaction you're performing with Terrain Ruler to cause the freeze?

Hi there. Thanks for the report! To have a chance to fix this bug I need more details about when this bug is happening. Is it possible for you to record a video that shows the interaction you're performing with Terrain Ruler to cause the freeze?

It's a little late for me but I will record a video tomorrow. I will try to get both perspectives.
In the meantime, using just words, the interaction is selecting the ruler tool and measuring, at which point the GM client freezes before the player ruler even appears on the screen, meanwhile the player is unhindered and the console is silent.

What kinds of terrain are placed on the scene?

No terrain at all, just a fresh scene

Thanks. I was able to reproduce this on my machine and will now start digging into the root cause of this

This bug is caused by an upstream bug: https://github.com/foundryvtt/foundryvtt/issues/8370
However, it should be possible to update Terrain Ruler for the time being to be able to deal with this bug if it occurs, so that Foundry won't freeze but instead only an invalid measurement is being displayed.

Terrain Ruler v1.7.2 contains a workaround for the upstream bug that should prevent the freezes from happening.

This still seems to be happening intermittently. I poked around in devtools a bit after a freeze and it seems that at this point in the code ray.B was an object, but the contained x/y values were undefined (or it may have been NaN, I should've taken a screenshot...).

Update - I just managed to reproduce this freeze again - in this case, with ray.B = { x: 9, y: NaN }.

As mentioned, this is caused by a bug in Foundryvtt itself. It has been reported as https://github.com/foundryvtt/foundryvtt/issues/8370 , however they closed the issue, so it's unlikely this will ever get fixed

In the meantime, could the workaround be updated? The freezes are frustrating and I'd like to continue to use this module. I'm happy to put together a PR if it would help.


No module named 'utils.KittiColormap'

hi, I try to run  "visualize_compare.py",  but No module named 'utils.KittiColormap'.

I'm sorry my code cleanup caused some issues. Could you try to pull the new commit or delete that line?

I'm sorry my code cleanup caused some issues. Could you try to pull the new commit or delete that line?

Got it, thank you very much for your prompt answer.


docs($http): update YQL currency exchange API example

Closes #16130
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
docs update
What is the current behavior? (You can also link to an open issue here)
Currently, the example uses YQL to fetch currency exchange rates (#16130)
What is the new behavior (if this is a feature change)?
I have updated the example to a simpler solution that uses the Fixer.io API.
Does this PR introduce a breaking change?
No
Please check if the PR fulfills these requirements

[x] The commit message follows our guidelines: https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit-message-format
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

Other information:

You know what would be awesome (not necessarily in this PR)?
Adding some end-to-end tests for that example :grin:

@gkalpak I've fixed those issues, and agree that some end-to-end tests would be good. When I get a chance I'll create another PR 😄

@gkalpak thanks, hopefully it's good to go now!


When will the pyupio/safety:latest Docker image be updated to latest version?

Description
Safety 1.10.1 is now out, but it appears that the pyupio/safety:latest Docker image on Dockerhub is still 1.9.0:
$ docker run --rm pyupio/safety safety --version
Unable to find image 'pyupio/safety:latest' locally
latest: Pulling from pyupio/safety
6ec7b7d162b2: Pull complete
80ff6536d04b: Pull complete
0371261f6d81: Pull complete
51dcc7f0b98f: Pull complete
f7da8c5f5270: Pull complete
a3fa580b2b50: Pull complete
Digest: sha256:c0b61ce5be48a2189d706b6768042933a2d3d952747c08311348514df44ee623
Status: Downloaded newer image for pyupio/safety:latest
safety, version 1.9.0

When will the image on Dockerhub be updated with v1.10?

Hi @pzelnip,
Thank you for your patience and for bringing this to our attention.
We're pleased to inform you that the pyupio/safety:latest Docker image has been updated and now includes the latest version of Safety, which is 1.10.3.
If you encounter any issues or have further questions, please let us know.
Thank you for your continued support!
Best Regards,
The Safety Team


C++ Makefile template where?

Hi,
I really like your program and I am trying to customize it a little bit. Creating "C++Template" worked as expected. I am now wondering how I would go about creating a corresponding makefile template to compile with debug switch -DDEBUG.
Would it have to be "C++Makefile" in the same "/.vimcoder" folder? Can I look at your template somehow? Amending would be much easier than starting from scratch obviously.
Thank you,
Matthias

thank you so much; it worked :)


How to install?

Could someone provide the step-by-step commands to install ?
Cloning this archive and using the commands said in home page does not provide the complete application.

Hi. This package has not been updated for a long time, I guess this is why it does not work well. What version of Django do you use?
I need to upgrade it and change the name to make a pip release (this name is taken by a dead project on pypi). The templates are made with the obsolete Bootstrap 3, this will need a serious update as well. I would use help for the templates if anyone wishes to help.
I'll try to find the time for an upgrade as several people asked in issues

Hi and thanks for your reply.
django.VERSION
(2, 1, 3, 'final', 0)
I don't know much about the project cause i did not see it running but seems almost every django application need it as it is a starting point.
I thought that creating a virtualenv directory and running the pip command line should generate a complete application. So after that, just> manage.py runserver  and it is up!
I think if it provide this fast start for django projects it will reach millions of downloads.

I updated the module to work with Django 2 and removed some no longer needed dependencies by the way.
The templates are still the old Bootstrap 3 ones and there is work to do here to get decent default templates. Any help would be appreciated. I plan to make a templates set using Bulma css but not for Bootstrap 4 that I don't use. I'll make an option to be able to select templates sets so if anyone is interested in providing templates for any css framework they can be added. A css framework is useful because of components like progress bar, but it still can be made in vanilla css.
The module was renamed to be able to deliver a pip version once we will have good templates.

I would like i could help, but i am a beginner and i don't have time too.
I still don't understand django framework completely, but after your fixes, a pip commend would be sufficient to provide a complete installation and then > manage.py runserver.
I am asking this cause after downloading your project, there was no settings.py file to configure, so i could not proceed since all files needed wasn't there.

Ok, i understand... but...
Then install the module
Your command line did not mention userprofiles2: pip install django-allauth django-avatar
Shouldn't the command line include it like this:
pip install django-allauth django-avatar django-userprofiles2

It will but there is no pip release yet. After the pip line do git clone https://github.com/synw/django-userprofiles2.git and move the userprofiles2 folder to your Django project

Still can't get it up.
ModuleNotFoundError: No module named 'userprofiles'
Also, had to include the line in urls.py:
from django.conf.urls import include
Seems that somewhere in your code the name of the module is still "userprofiles"

Also i had to add 'django-userprofiles2' to settings, not 'userprofiles2'

I found that the error ModuleNotFoundError: No module named 'userprofiles' is related to the urls.py file
specially this line: path(r'^profile/', include('django-userprofiles2.urls')),
Note that i changed it to everything 'userprofiles2', 'userprofiles', and still get the same error

I updated the readme for the Django 2 urls syntax:
path('profile/', include('userprofiles2.urls')),

It does not resolve the problem

Paste the stack trace here so we can check what is the problem. The module is working for me

ModuleNotFoundError: No module named 'django-userprofiles2.urls'
That's the problem...
But i changed as i said to everything... 'userprofiles2.urls'  and 'userprofiles.urls'

Here are the commands executed and then the changes already told... If you did something after that commands please tell me.
mkdir UserProfiles2Env
virtualenv UserProfiles2Env/
source UserProfiles2Env/bin/activate
pip3 install django-allauth django-avatar
django-admin startproject UserProfiles2Source
git clone https://github.com/synw/django-userprofiles2.git
mv django-userprofiles2 UserProfiles2Source/

mv django-userprofiles2/userprofiles2 UserProfiles2Source/

OK. Thanks. I finally could get it UP!
But after upload a new avatar picture i get:
"POST /avatar/add/ HTTP/1.1" 302 0
[25/Nov/2018 15:37:48] "GET /avatar/change/ HTTP/1.1" 200 1257
Not Found: /avatar/change/avatars/myusername/resized/80/avatarpicture.jpg
[25/Nov/2018 15:37:48] "GET /avatar/change/avatars/myusername/resized/80/avatarpicture.jpg HTTP/1.1" 404 3118
Any idea?

Could you please open a new issue for this problem? I'll investigate this as soon as I'll have a bit of time


Replace from octal literals to hex to run under --strict-mode

Please merge this in. Having an open PR for months on end with no explanation why is a bit ridic

@joshball You're the man, thanks


[Feature] Retry failed tests automatically

It looks like there's no option to retry failed tests? That'd be helpful when 1 test runs in each VM (shard-duration: -1).

Thanks for reporting this. This is in our backlog. We will add support for retries for all use cases.

Test retry via a JUnit Rule seems to be the best approach. VM level retry is too slow due to the overhead of creating a VM.

Test retry via a JUnit Rule seems to be the best approach. VM level retry is too slow due to the overhead of creating a VM.

I agree that retrying failed tests using a JUnit Rule is probably the easiest solution, I would not exclude implementing a mechanism that retries failed tests in a single VM. Using just a Rule is not possible to reach a truly clear state and in some use-cases it's desirable to have so. Now, I'm not saying that everybody should use this feature, but still, in my opinion, it's a nice-to-have.

Using just a Rule is not possible to reach a truly clear state

With app reset & orchestrator a clear state is possible.
The issue with VM retry is it's slow and flaky. The chance for infrastructure failures increases.


Can't find webpack.config.js

Hello,
Thanks for making this!
I am currently trying to integrate bootstrap-vue (https://github.com/bootstrap-vue/bootstrap-vue) into my project but it requires that I use style-loader for loading the css but I can't find the config file to set this. As such, I keep getting this error You may need an appropriate loader to handle this file type.
From what I understand, I have to provide this style-loader as one of the loaders in weback.config but I don't know wehre to find it in this project.
can you help?
Thanks

Never mind figured it out. Turns out gulp generates a webpack.config object and uses it to work internally


Reorganize Developing.md sections (fix for #3263)

Merged Requirements and Setup Environment sections. Moved new section above Checkout Your Fork because they are prerequisites to it.

Changes
Reorganized sections of Developing.md to fix the two issues in #3263 so all information needed to setup the development environment and required installations is in one section in the doc. Moved it before the Checkout your Fork section, because that section relies on GOPATH already being configured.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:

[ ] Includes tests (if functionality changed/added)
[ ] Includes docs (if user facing)
[ ] Commit messages follow commit message best practices
[ ] Release notes block has been filled in or deleted (only if no user facing changes)

See the contribution guide for more details.
Double check this list of stuff that's easy to miss:

If you are adding a new binary/image to the cmd dir, please update
the release Task to build and release this image.

Reviewer Notes
If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.
Release Notes

/ok-to-test

/kind documentation

/kind doc

/kind documentation

hm looks like this is stuck again, opened https://github.com/tektoncd/plumbing/issues/581

/approve

Thanks for this! 😸
/meow

/lgtm


Error when using distlib==0.2.0

So I'm not sure where the bug is, but I ran into this bug when running caniusepython3:
kevin@myserver:~$ /usr/local/bin/caniusepython3 -r requirements.txt
Finding and checking dependencies ...
Traceback (most recent call last):
  File "/usr/local/bin/caniusepython3", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/caniusepython3/__main__.py", line 159, in main
    check(projects_from_cli(args))
  File "/usr/local/lib/python2.7/dist-packages/caniusepython3/__main__.py", line 145, in check
    blockers = dependencies.blocking_dependencies(projects, pypi.all_py3_projects())
  File "/usr/local/lib/python2.7/dist-packages/caniusepython3/dependencies.py", line 80, in blocking_dependencies
    dist = distlib.locators.locate(project)
  File "/usr/local/lib/python2.7/dist-packages/distlib/locators.py", line 361, in locate
    result.download_urls = versions.get('urls', {}).get(version, set())
AttributeError: 'dict' object has no attribute 'download_urls'

I fixed it by rolling back to distlib==0.1.9, though that gave me these errors
Finding and checking dependencies ...
[WARNING] recaptcha not found
[WARNING] django-recaptcha-field not found
[ERROR] Failed to get external data for https://www.red-dove.com/pypi/projects/E/email-reply-parser/project.json: HTTP Error 404: Not Found
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/distlib/util.py", line 744, in _get_external_data
    resp = urlopen(url)
  File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 406, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 444, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found

You need 17 projects to transition to Python 3.
Of those 17 projects, 15 have no direct dependencies blocking their transition:

  django-celery-transactions
  django-concurrent-server
  django-discover-jenkins
  django-include-strip-tag
  django-ipware
  django-storages
  docx
  hellosign-python-sdk
  oauth2
  pdfminer
  pykss
  reportlab
  lepl (which is blocking rfc6266)
  m2crypto (which is blocking tender_multipass)
  xlsxcessive

Not sure if this is a problem with distlib, my setup, or maybe freezing the required version of distlib in the requirements. Happy to report more as necessary. If it helps, I'm running python 2.7.3 in ubuntu 12.04

Tests all pass fine under distlib 0.2.0, so it isn't obvious what the problem is. Can you upload your requirements.txt file so I can more accurately reproduce your situation?

Sure. I'm not sure what the state of it is or if it's relevant, but when I tried this requirement file on caniusepython3.com, it also hung
django==1.7.4
# django-haystack 2.3.0 and up support django 1.7
django-haystack==2.3.1
pysolr==2.0.15
python-memcached==1.47
reportlab==2.5  # apt-get install python-dev libfreetype6-dev
PyPDF2==1.19  # used for watermarking
pdfminer==20131113  # used for text extraction because PyPDF2 is really bad ZAN-6127
pyenchant==1.6.5  # apt-get install enchant
lxml==3.2.1  # apt-get install libxml2-dev libxslt-dev
openpack==1.0  # For XlsXcessive
XlsXcessive==0.1.6  # external+unverified, use provided wheel or --allow-external XlsXcessive --allow-unverified XlsXcessive
httpagentparser==1.5.1
django-include-strip-tag==0.1.0
psycopg2==2.5.1  # apt-get install postgresql-9.1
pillow==2.5.3
tender-multipass==0.2.1  # apt-get install python-m2crypto, then link global M2Crypto to virtualenv
httplib2==0.8  # for oauth2
oauth2==1.5.211
xlrd==0.9.0
docx==0.2.0
pycountry==0.18
six==1.4.1
# below are required for django-celery
anyjson==0.3.3  # celery requirement
amqp==1.4.6  # celery requirement
billiard==<IP_ADDRESS>  # celery requirement
celery==3.1.17  # django-celery requirement
kombu==3.0.24  # django-celery requirement
python-dateutil==2.1  # django-celery requirement
PyTZ==2013b  # django-celery requirement
django-celery==3.1.15
recaptcha==1.0rc1
django-recaptcha-field==1.0b2
boto==2.13.3
django-storages==1.1.8
futures==2.1.3
django-pipeline==1.3.23
django-flashpolicies==1.5
sorl-thumbnail==11.12.1b
celery-haystack==0.8
django-appconf==0.6  # celery-haystack requirement
django-celery-transactions==0.1.3  # celery-haystack requirement
### Testing
### Jenkins
logilab-common==0.62.1  # django-jenkins requirement, may be deprecated
coverage==3.7.1  # django-discover-jenkins component
pylint==1.4.0  # django-discover-jenkins component
astroid==1.3.2  # pylint requirement
django-discover-jenkins==0.1.2
pep8==0.6.1
selenium==2.44.0
PyVirtualDisplay==0.1.2
EasyProcess==0.1.6  # PyVirtualDisplay requirement
Whoosh==2.5.6
django-mptt==0.6.1
lepl==5.1.3
rfc6266==0.0.4
html5lib==0.999
bleach==1.4
email-reply-parser==0.3.0
django-extensions==1.4.0  # used for debugging and UUIDField
shortuuid==0.4.2  # for ShortUUIDField in django-extensions
requests==2.4.1
hellosign-python-sdk==3.2
oauth2client==1.4.4
django-ipware==0.1.0

# Sphinx
Sphinx==1.3b1
Jinja2==2.7.3
Pygments==1.6
docutils==0.12
snowballstemmer==1.2.0
Babel==1.3
MarkupSafe==0.23

### Debugging
django-concurrent-server==0.1.4
django-debug-toolbar==1.2.1
sqlparse==0.1.11  # django-debug-toolbar requirement

### Styleguide
pykss==0.4
stripe==1.19.0

Distlib 0.2.0 has a bug where it doesn't like projects that only have preleases and yet you specify you don't want to carry about them (as caniusepython3 does). I have filed a bug for it at https://bitbucket.org/pypa/distlib/issue/59/ . If you comment out recaptcha==1.0rc1 and django-recaptcha-field==1.0b2 then you get a successful run:
You need 17 projects to transition to Python 3.
Of those 17 projects, 15 have no direct dependencies blocking their transition:

  django-celery-transactions
  django-concurrent-server
  django-discover-jenkins
  django-include-strip-tag
  django-ipware
  django-storages
  docx
  hellosign-python-sdk
  oauth2
  pdfminer
  pykss
  reportlab
  lepl (which is blocking rfc6266)
  m2crypto (which is blocking tender_multipass)
  xlsxcessive

I'm going to leave this issue open but I consider it solved since this is a distlib bug that only manifests itself if you specify a project who has never released a full version before. If this becomes an issue I will catch the AttributeError but I would rather not have to take such a drastic move.

Great, thanks so much for investigating here! I can easily work around it with this in mind, so I'm fine if you want to close it.

Other people have run into this, so it was fixed by @rawrgulmuffins in 81fe6b61057e43d16c3eba9853a5affa57eb5cfc


Maximum time exceeded in code analysis

Hi there,
I'm having problem when I have a list of files (37) and then I get the message:
Task 4: Maximum time exceeded in code analysis of: /burpsuite/11/
I'm using this burp rest api: burp-rest-api-2.0.1.jar
I would like to know how i can increase this time.

You can modify this value (max_time_per_item) in the projects JSON file
"scanner":{
        "static_code_analysis":{
            "max_time_per_item":120,
            "mode":"active_only"
}


fix: fix umd build

Before submitting a pull request, please make sure the following is done...

[x] Ensure the pull request title and commit message follow the Commit Specific in English.
[x] Fork the repo and create your branch from main.
[ ] If you've added code that should be tested, add tests!
[ ] If you've changed APIs, update the documentation.
[x] Ensure the test suite passes (npm test).
[x] Make sure your code lints (npm run lint) - we've done our best to make sure these rules match our internal linting guidelines.

Please do not delete the above content

What have you changed?
Add build external for ant-design-vue，fix umd build error.

Codecov Report

Merging #7 (ba49b4d) into main (3b8305c) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #7   +/-   ##
=======================================
  Coverage   75.00%   75.00%
=======================================
  Files           1        1
  Lines          16       16
  Branches        4        4
=======================================
  Hits           12       12
  Misses          4        4

Continue to review full report at Codecov.

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


Is there a way to know the exact BPE components each word is decomposed into?

For example, if the word "learning" is decomposed into "le", "arn", "ing", is it possible to know so?

do you mean subword implementation or bpe? because I am not aware of a bpe implementation at t2t. Normally, with bpe you would have a bpe-model that segregate words into wordpieces, so you can check by requesting bpe to break the word down, it could be 'learning' to.

There is a subword implementation in T2T, which is very similar to BPE. There is also a wrapper script text_encoder_build_subword.py, which can be used to train the subword vocabulary separately (either from a corpus or from a word vocabulary).
When training e.g. translate_ende_wmt32k, the subword vocabulary is stored in ~/t2t_data/vocab.ende.32768 and it is a plain text file and on line 4496 I can see 'learning_', which means that this word (followed by a space) is represented as one subword in this case. However, if "learning" was not followed by a space, but a comma, there is no such entry in the vocabulary, so I guess it will have to be divided as lear + ning + ,_ because the vocabulary contains the following relevant entries in this order: ,_ ing ni ng ar le rn ear lea in ea nin arn earn ning lear.
However, I am not aware of a simple way how to check this, i.e. to apply a trained subword vocab to a given string.
Related questions: How to know in T2T how many subwords are in my training data? And how to convert a number of training steps to a number of epochs (passes over the training data).

You can test this by encoding the string with your vocab file:
vocab = text_encoder.SubwordTextEncoder(vocab_filepath)
encodings = vocab.encode("learning")
print(encodings)

@twairball Thanks for a hint (I was sure it is possible, but I just have not tried it yet.)
Your code does not work as intended because _subtoken_ids_to_tokens concatenates all the subwords without any delimiter.
We need to use e.g.
from tensor2tensor.data_generators import text_encoder
vocab = text_encoder.SubwordTextEncoder(vocab_filepath)
print([vocab._subtoken_ids_to_tokens([x]) for x in vocab.encode("learnings")])

which prints [['lear'], ['ning'], ['s']].
So I think @anglil can close this issue. I have opened another issue #415 for the number of epochs.
BTW: my guess with "learnings" followed by a comma was wrong. The underscore does not mean a space:
>>> print([vocab._subtoken_ids_to_tokens([x]) for x in vocab.encode("learning,")])
[['learning'], [',']]
>>> print([vocab._subtoken_ids_to_tokens([x]) for x in vocab.encode("learning ,")])
[['learning'], [' ,']]

Closing as these answers seem sufficient. Thank you @twairball, @martinpopel, and @colmantse!

hi all, when i run the test code of t2t such as "python  /anaconda2/lib/python2.7/site-packages/tensor2tensor/data_generators/translate_test.py"
it report some errors like:
do you know the reason?
thanks a lot.
yuanhao:site-packages higgs$ python tensor2tensor/data_generators/translate_test.py
Traceback (most recent call last):
File "tensor2tensor/data_generators/translate_test.py", line 29, in
from tensor2tensor.data_generators import text_encoder
File "/anaconda2/lib/python2.7/site-packages/tensor2tensor/data_generators/text_encoder.py", line 36, in
from tensor2tensor.data_generators import tokenizer
File "/anaconda2/lib/python2.7/site-packages/tensor2tensor/data_generators/tokenizer.py", line 55, in
import tensorflow as tf
File "/anaconda2/lib/python2.7/site-packages/tensorflow/init.py", line 24, in
from tensorflow.python import *
File "/anaconda2/lib/python2.7/site-packages/tensorflow/python/init.py", line 63, in
from tensorflow.python.framework.framework_lib import *
File "/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/framework_lib.py", line 76, in
from tensorflow.python.framework.ops import Graph
File "/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 39, in
from tensorflow.python.framework import errors
File "/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/errors.py", line 22, in
from tensorflow.python.framework import errors_impl as _impl
File "/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/errors_impl.py", line 27, in
from tensorflow.python.util import compat
File "/anaconda2/lib/python2.7/site-packages/tensorflow/python/util/compat.py", line 43, in
from tensorflow.python.util.all_util import remove_undocumented
File "/anaconda2/lib/python2.7/site-packages/tensorflow/python/util/all_util.py", line 24, in
from tensorflow.python.util import tf_inspect as _tf_inspect
File "/anaconda2/lib/python2.7/site-packages/tensorflow/python/util/tf_inspect.py", line 20, in
import inspect as _inspect
File "/anaconda2/lib/python2.7/site-packages/tensor2tensor/data_generators/inspect.py", line 31, in
from tensor2tensor.data_generators import text_encoder
ImportError: cannot import name text_encoder


search: wrong set of focus in edit window.

I frequently experience two misbehaviors which I assume related:

opening the search box by crtl-F the focus does not! switch to that box,
and subsequent typing of the item to search goes somewhere else or 'nirvana'.

having the search box open, some text in it and wanting to change, cursor behind
the search text and tipping backspace:  the edit window jumps to a new finding of the shortened search, the focus switches to the edit window at that position marking the
search, and subsequent backspaces delete first that part, and then text left of that. Esp. annoying when you press and hold backspace in intention to clear the search box in total by auto-repeat.

Both not! clearly reproducible, mostly observed in a lengthy ( >300k ) document with some complexity ( includes, tables, images ... ) and the preview window open on a quite powerful machine but which is between 30 and 90 percent load by continuous re-rendering ( fans on! ).
Another special point is a key-repeat of 100 per second, but the problem also occurs a short tippings which don't trigger repeat.
Both mostly not happening in a fresh started AsciidocFX, but after some time and a 'switchpoint' nearly reproducible.
Observed in ver. 1.8.8 and 1.8.9, but in earlier times my documents where quite simplier.
Pls. be tolerant if 'me bad', e.g. not found an existing feature, that's always
an option but not intentional.

seems vanished with ver. 1.8.10, closing for the moment, thanks to whoever changed whatever ...   :-) :-) :-)


Feat/common error base enum rebased

Rebase of https://github.com/rusoto/rusoto/pull/1302 to address the merge conflict. Didn't want to force push to a shared branch. 😄

👍 looks great, integration tests pass. 🎉


Rework DfE Sign-in for Support and Publish authentication

Context
We're merging Publish into TTAPI. Some initial work is required in the TTAPI codebase before we start migrating over functionality.
A DfE Sign-in flow that accommodates both existing Support users and future Publish users needs to be in place. Each sign in should redirect the user to an appropriate default start page.
https://trello.com/c/oSOo6lNC
Changes proposed in this pull request

Add basic sign in flow for both Support and Publish
Treat / as the root for Publish, /support/providers as the root for Support

Guidance to review

Review of the diff is probably sufficient, given this is mostly plumbing at this stage
Can be tested locally by switching to DfE Sign-in auth mode

Checklist

[x] Make sure all information from the Trello card is in here
[x] Attach to Trello card
[x] Rebased master
[x] Cleaned commit history
[x] Tested by running locally

Minor clarification:

and the jsonapi_rails gem expects the updated_at column to be updated

Rather, the custom cache key we specify expects the updated_at column to be updated.


Implement support for router metadata

In additional to #4 support also routing metadata. They are less costly
/**
 * @Route("foobar", defaults={"_feature": "FOOBAR"})
 */

    public function onKernelController(FilterControllerEvent $event)
    {
        if (!$event->getRequest()->attributes->has('_feature')) {
            return;
        }

        $access = $event->getRequest()->attributes->get('_feature');

        // exit
    }

Done with release 1.0.4

fyi new features were added. so tagging it 1.1.x would match semantic versioning

You're absolutely right. After our conversation today I had not thought about the tag and just wanted to retrofit the lost features.


Allow updtr to skip certain dependencies?

There are certain projects where I prefer to use an older version of certain dependencies (Babel 5 related). Would it make sense to implement some kind of a mechanism to allow skipping these? A lazy way would be to do something like .updtrignore:
babel-eslint
babel-loader

It simply wouldn't touch these files when running. Of course the con is that you end up having one more dotfile at your project. A decent alternative would be to push this information to package.json and parse it from there.

As you said, an extra dotfile will just add another dotfile in your project, what could end in a huge list of dotfiles. Also i am not sure if it is a good idea to add this to the package.json.
What do you think about a -e or --exclude flag or something like this?
Example:
$ updtr --exclude babel-eslint,babel-loader

@matthaias -e or --exclude would work for me.

Since this project is something you'd likely use intentionally (in a non-automated fashion like GreenKeeper), I suggested:

A --interactive mode would be good. Each dep gets a prompt for [(U)pdate/(i)gnore].
– @ericclemmons

My projects have soooo many dependencies it'd be more of a chore to list them than to just let them all go through.
Although, I suppose with an --exclude option you'd want to put this into an npm run command.

What about an --interactive/-i flag that lets you choose things interactively with y/n/major/minor/patch as options? Similar to what @ericclemmons proposes but more flexible.
This would be very useful for a dependency like jQuery 1.x where I don’t want to update to 2.x versions but only to minor versions.
That way you can select individually which version for which module you want.
I’d see this as an additional option to --exclude.

What if the --interactive fiag generated a file based on the answers so
that it remembers them the next time you use it. Then you could just hit
return to go through them the next time you need to update. Just a thought.
On Thursday, 3 December 2015, Anselm Hannemann<EMAIL_ADDRESS>wrote:

What about an --interactive/-i flag that lets you choose things
interactively with y/n/major/minor/patch as options? Similar to what
@ericclemmons https://github.com/ericclemmons proposes but more
flexible.
This would be very useful for a dependency like jQuery 1.x where I don’t
want to update to 2.x versions but only to minor versions.
That way you can select individually which version for which module you
want.
I’d see this as an additional option to --exclude.
—
Reply to this email directly or view it on GitHub
https://github.com/peerigon/updtr/issues/9#issuecomment-161539864.

@bebraw That’d definitely be a cool thing. :)

This would be very useful for a dependency like jQuery 1.x where I don’t want to update to 2.x versions but only to minor versions.

For this you can use --wanted to update to specified version in your package.json.
I think i can add the --exclude-option first. Would this help you already? First start with --wanted and then exclude the modules you don't want to update to the latest?
The interactive mode is going to be a harder feature in the current architecture i think.

I think i can add the --exclude-option first. Would this help you already? First start with --wanted and then exclude the modules you don't want to update to the latest?

Of course it will. interactive mode can of course be added later as an improvement, no worries – we all have limited time resources :)

I added the option in the branch feature/possibility-to-exclude-modules. Can you test it please?
Example:
➜  updtr-test  npm i<EMAIL_ADDRESS>--save
<EMAIL_ADDRESS>node_modules/servus.js
➜  updtr-test  npm i<EMAIL_ADDRESS>--save
<EMAIL_ADDRESS>node_modules/xunit-file
➜  updtr-test  npm i<EMAIL_ADDRESS>--save
<EMAIL_ADDRESS>node_modules/erroz
➜  updtr-test  updtr --exclude servus.js,xunit-file
Found 1 outdated module

Starting to update your modules...
1/1 	 ● erroz 1.0.0 success

Finished

Published as v0.1.6

Imho an interactive mode would almost defeat the purpose of the module.
If you have to enter something for every dependency, it's almost like you'd bump the version manually in your package.json and run npm test afterwards.


Permission denied during image validation

When processing uploaded files on a freshly provisioned instance this error occurs:
[ERROR] 2015-10-23 14:43:19,134 poll Polling aborted due to exception
Traceback (most recent call last):
  File "/opt/app/apps/workers/management/commands/poll.py", line 21, in handle
    p.start_polling()
  File "/opt/app/apps/workers/process.py", line 67, in start_polling
    delete_message = self.handle_message(record)
  File "/opt/app/apps/workers/process.py", line 88, in handle_message
    return self.validate_image(record)
  File "/opt/app/apps/workers/process.py", line 117, in validate_image
    validator = ImageValidator(key, byte_range)
  File "/opt/app/apps/workers/image_validator.py", line 41, in __init__
    with open(self.random_filename, 'w') as tempfile:
IOError: [Errno 13] Permission denied: '/media/ephemeral0/484363f2-4e43-4943-945c-61
5a0031b2ed'

The workaround is to do sudo chmod 777 /media/ephemeral0/ on your app VM but we should investigate a better solution.

Note that this only occurs when running the polling command interactively.


[Spark-14933][SQL] Failed to create view out of a parquet or orc table

What changes were proposed in this pull request?
If a table is created as parquet or ORC table with hive syntaxt DDL, such as
create table t1 (c1 int, c2 string) stored as parquet
The following command will fail
create view v1 as select * from t1
The root cause is that when resolving the relation for the parquet table t1, HiveMetaStoreCatalog convert it to a LogicalRelation, but without a tableIdentifier attached to it. So when SQLBuilder is trying to create a SQLTable out of it, the LogicalRelation created earlier does not mach due to the lack of tableIdentifier. Thus, SQLBuilder.toSQL can not recognize this logical plan and issue exception.
The fix in this PR is to also give TableIdentifier to the LogicalRelation created for parquet or orc table in HiveMetaStoreCatalog
How was this patch tested?
testcases created and dev/run-tests is run.

@liancheng I hit this issue when I tied to create a testcase for the show create table PR. So I created a separate PR to address this issue. Please help take a look if I am on the right direction. Thanks!

Can one of the admins verify this patch?

@yhuai @liancheng @liancheng @hvanhovell Can any of you help taking a quick look at this change? Thank you very much!

ok to test

Test build #57791 has started for PR 12716 at commit 704a9eb.

Test build #57791 has finished for PR 12716 at commit 704a9eb.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/57791/
Test PASSed.

My major concern is about the test cases. The main changes looks good though. Thanks for working on this!

@liancheng Thanks for your input! I will add the create view testcase.

Test build #57896 has started for PR 12716 at commit e653db4.

Test build #57896 has finished for PR 12716 at commit e653db4.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/57896/
Test PASSed.

@liancheng I added the create view testcases..  If you see any other issues, please let me know. Thanks!
By the way I also tried create view on most recent master branch and still can recreate the error:
scala> spark.sql("create view v_parquet_1 as select * from t_parquet")
java.lang.UnsupportedOperationException: unsupported plan Relation[c1#16,c2#17] HadoopFiles

 at org.apache.spark.sql.catalyst.SQLBuilder.org$apache$spark$sql$catalyst$SQLBuilder$$toSQL(SQLBuilder.scala:191)
 at org.apache.spark.sql.catalyst.SQLBuilder.org$apache$spark$sql$catalyst$SQLBuilder$$toSQL(SQLBuilder.scala:149)
 at org.apache.spark.sql.catalyst.SQLBuilder.projectToSQL(SQLBuilder.scala:208)
 at org.apache.spark.sql.catalyst.SQLBuilder.org$apache$spark$sql$catalyst$SQLBuilder$$toSQL(SQLBuilder.scala:111)
 at org.apache.spark.sql.catalyst.SQLBuilder.org$apache$spark$sql$catalyst$SQLBuilder$$toSQL(SQLBuilder.scala:149)
 at org.apache.spark.sql.catalyst.SQLBuilder.projectToSQL(SQLBuilder.scala:208)
 at org.apache.spark.sql.catalyst.SQLBuilder.org$apache$spark$sql$catalyst$SQLBuilder$$toSQL(SQLBuilder.scala:111)
 at org.apache.spark.sql.catalyst.SQLBuilder.toSQL(SQLBuilder.scala:81)
 at org.apache.spark.sql.execution.command.CreateViewCommand.prepareTable(views.scala:158)
 at org.apache.spark.sql.execution.command.CreateViewCommand.run(views.scala:115)
 at org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult$lzycompute(commands.scala:62)
 at org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult(commands.scala:60)
 at org.apache.spark.sql.execution.command.ExecutedCommandExec.doExecute(commands.scala:74)
 at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:113)
 at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:113)
 at org.apache.spark.sql.execution.SparkPlan$$anonfun$executeQuery$1.apply(SparkPlan.scala:132)
 at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
 at org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:129)
 at org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:112)
 at org.apache.spark.sql.execution.QueryExecution.toRdd$lzycompute(QueryExecution.scala:85)
 at org.apache.spark.sql.execution.QueryExecution.toRdd(QueryExecution.scala:85)
 at org.apache.spark.sql.Dataset.<init>(Dataset.scala:186)
 at org.apache.spark.sql.Dataset.<init>(Dataset.scala:167)
 at org.apache.spark.sql.Dataset$.ofRows(Dataset.scala:62)
 at org.apache.spark.sql.SparkSession.sql(SparkSession.scala:551)

cc @hvanhovell @yhuai @liancheng  All the comments are addressed. Please see if there is anything else. Thanks!

LGMT, merging to master and branch-2.0. Thanks for fixing this!

@liancheng Thank you!!

Hi, @xwu0226 and @liancheng .
There occurs build errors. I made a hotfix for this. Please merge that. #13053

I have merged #13053.

@dongjoon-hyun @yhuai Thanks for fixing it!!

In future, let's trigger another jenkins run for this kind of PRs :)

@yhuai Could you please add @xwu0226 into the whitelist? Thanks!


182203554 undo redo UI

Adds undo/redo to document toolbar.
Buttons have to be specified in the config to appear in the toolbar
Current behavior is when you click on the button, or use keys ctrl+z (ctrl+shift+z for redo, an alert appears.
You must click on a tile or a placeholder for key stroke to work.

@eireland If you merge master into this branch it should fix the build errors now.


Can't modify readOnly option

I created the knob inputs in the document.ready event (with readonly set at the default false value).
I want to set the readonly option to true for all the .knob objects when i click on a buttton.
The click event is well triggered and bind and I trigger the configure event of the knob as written just after, but i still can click and change the value of the input... is it my code, or just that i can't change the readonly value after the knob's creation ?
$('.knob').trigger('configure',{'readOnly': true});
Waiting for an answer,
Thanks for any help...

For others who are also looking at this issue,
if you update the _listen function to look like this, the scroll wheel and arrow keys will function as intended.
this._listen = function () {
            if (!this.o.readOnly) {
            this.$.removeAttr('readonly');
            this.$c.unbind('mousedown');
            this.$c.unbind('touchstart');
            this.$.unbind('keydown');
            this.$c.unbind("mousewheel DOMMouseScroll");
            this.$.unbind("mousewheel DOMMouseScroll");
                this.$.unbind('keyup');
                this.$c
                    .bind(
                        "mousedown",
                        function (e) {
                            e.preventDefault();
                            s._xy()._mouse(e);
                        }
                    )
                    .bind(
                        "touchstart",
                        function (e) {
                            e.preventDefault();
                            s._xy()._touch(e);
                        }
                    );

                this.listen();
            } else {
            this.$c.unbind('mousedown');
            this.$c.unbind('touchstart');
            this.$.unbind('keydown');
            this.$c.unbind("mousewheel DOMMouseScroll");
            this.$.unbind("mousewheel DOMMouseScroll");
                this.$.attr('readonly', 'readonly');
            }

            if (this.relative) {
                $(window).resize(function () {
                    s._carve().init();
                    s._draw();
                });
            }

            return this;
        };

with the last code provided it doesn't work :(
somebody can help ? Thanks


fix(impl): propagate Opentelemetry baggage and related kafka headers

Default usage of Quarkus Opentelemetry is specifying the default propagators as W3C trace and W3C baggage. The current TracingDecorator code is erasing the W3C baggage header which may be used by functional code.
Change has been done to propagate the Opentelemetry Baggage from the extracted Opentelemetry context (if any). The kafka headers even if erased will be restored from the "child" Opentelemetry context created.

@vietk Hello, not sure of the process, but can you review and merge ?

LGTM


[EPIC] Tiled Map Renderer

Description
I propose we use TiledSharp along with the ISpriteDrawer to render Tiled maps.
The Why
This will be handy because as of right now, we don't have a editor for Final Engine.
The How
Using TiledSharp will get the job done. I've implemented something similar in the past so I don't think it will be too difficult. The hardest part will be the requirements below.
Requirements

TMX Tiled Maps should be considered an engine resource (ie; implements IResource).
The resource likely will need to handle creating "Objects": they will contain component data.
We should also consider how tilesets are loaded; are they also resources? I think so.

Should it really be a resource? hmm...

Also, how can this be incorporated into an ECS system? Should a single tile be considered an entity with a SpriteComponent? Or should I create a TileMap component that contains all of the information to be rendered. Hmm...

Further thought has gone into this; I don't think this is a good idea to implement due to the fact that I haven't considered how importing Tiled maps will handle ECS components. What if a user creates their own component; they will have to modify the resource loader.
I think the best option for now is to close this as not planned.


Check arg length for response

Fix response was not correctly generated, and add check for correct arg length

Can you also move the
uint32_t led_color[3] = { 16, 0, 16 };  // Red, Green, Blue  (0-255)

from the global scope into the Rmtled class?
Consider the case where we have 2 or more instances of Rmtled on different pins, they will share the same global led_color, which is probably not what we want.

Indeed, done.


Terminate vcpkg when upgrading and it show that all softwares are up-to-date

I run vcpkg upgrade --no-dry-run and terminate it carelessly.
When I try to run vcpkg upgrade --no-dry-run, it shows that All installed packages are up-to-date with the local portfiles..
I use the latest version.
How to solve this problem?

@wby238, You can do as below steps:

git branch (check your current branch, if your branch is master, do the next step)
git pull
.\vcpkg.exe upgrade --no-dry-run

Please close this issue once your issue is resolved.


Add keyboard input support

Adding keyboard input support as described in #379 and #535. It allows for users to set either the KeyCode (e.g. 37 for left arrow, 39 for right arrow) or the Key (e.g. "ArrowRight" for right arrow).

@briankosw
Thanks for this PR. I opened https://github.com/brainhubeu/react-carousel/pull/579 instead because only for the main repo, it's possible to build a testing environment. It's according to the workflow.

Keyboard events added or not? how does it work?
Documentation is empty


Release gax-java v1.47.1

This pull request was generated using releasetool.
07-02-2019 09:51 PDT
Dependencies

Update google-auth-library to 0.16.2 (#751)

Release is at https://github.com/googleapis/gax-java/releases/tag/v1.47.1

The release build has started, the log can be viewed here. :sunflower:

:egg: You hatched a release! The release build finished successfully! :purple_heart:


Fails on start (VS 2022)

Will you provide more detail about when you see this error? Start of what? Is a solution loaded?

I see this error "on start" of extension - at the moment when i click "Udate Version Info..." item in VS 2022 Tools menu. All projects of my solution placed in a virtual folders

Thank you for that detail. So as I understand it, you have a solution and all top level elements in that solution are virtual folders under which you have your projects and files?

Yes, i have virtual folder as top-level item and other virtual folders in it, where my projects are placed


Align Hadoop version with that used in Spark 2.4.7 builds

But will it work with Spark 3.0.x?

Think the question is not about Spark 3.x, but Hadoop 3.3

Will do this separately -- close this draft.


What is the default admin account and password?

I am using SQLITE back end and ran manage.py migrate but I was not prompted to create an admin account.
What are the default credentials for the admin account?
If there aren't defaults how do I create an admin account?

You have to create a superuser account from console, for that you use the command python manage.py createsuperuser.


feat: support v2 backing image

ref: https://github.com/longhorn/longhorn/issues/6341

handle v2 backing image in backing-image-controller

prepareFirstV2Copy
deleteInvalidV2Copy
prepareV2Copy
syncV2StatusWithInstanceManager

deleteInvalidV2Copy

delete the copy if the disk is removed from the spec
if there is ready copy => delete the failed copies
if there is ready copy => delete the unknown copies and only if the lvol is also not found in the server (because it can rebuild the record if lvol is found)

webhook

don't support clone from v2 backing image
don't support export from v2 volume
don't support backup v2 backing image

upgrade path

add DataEngine to the spec and the status disk

Pass DataEngine to backing-image-data-source-pod, so it can convert the qcow2 to raw for preparing the v2 copy,
Add DataEngine to backing image api

@coderabbitai pause

@derekbit
Fixed the comments, thansk


MQTT Automations firing twice when MQTT discovery is enabled

Home Assistant release with the issue: 0.67.1
Last working Home Assistant release (if known): Unknown
Operating environment (Hass.io/Docker/Windows/etc.): Ubuntu 16.04 LTS
Clean install of OS in new VM, Hass installed and configured per this script: https://hastebin.com/umihamideq.sh
Component/platform: MQTT with Discovery enabled
Description of problem:
I'm working on tracking down a bug in my HASP project and I've narrowed it down to behavior I'm seeing in Hass where MQTT messages incoming under the homeassistant namespace trigger automations twice, but only if discovery is enabled.
I've deployed a clean installation of Hass 0.67.1 on a VM named hasstest running a new installation of Ubuntu 16.04.  I have added the following lines to the stock config (link to full configuration.yaml):
mqtt:
  discovery: true

I've then created two simple automations in automations.yaml as shown below:
- alias: TestAutomation1
  trigger:
  - platform: mqtt
    topic: 'homeassistant/test1'
    payload: 'trigger'
  action:
  - service: mqtt.publish
    data:
      topic: 'homeassistant'
      payload: 'TestAutomation1 response'

- alias: TestAutomation2
  trigger:
  - platform: mqtt
    topic: 'test2/test2'
    payload: 'trigger'
  action:
  - service: mqtt.publish
    data:
      topic: 'homeassistant'
      payload: 'TestAutomation2 response'

When I send the following command, I receive two responses: mosquitto_pub -t homeassistant/test1 -m trigger -h hasstest -V mqttv311
2018-04-22 09:22:10.906 homeassistant/test1 trigger
2018-04-22 09:22:10.947 homeassistant TestAutomation1 response
2018-04-22 09:22:10.984 homeassistant TestAutomation1 response

When I send the following command, I only receive one response: mosquitto_pub -t test2/test2 -m trigger -h hasstest -V mqttv311
2018-04-22 09:22:13.508 test2/test2 trigger
2018-04-22 09:22:13.548 homeassistant TestAutomation2 response

If I comment out discovery: true from configuration.yaml, the behavior reverts to what I would expect - one trigger == one action for both automations
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
configuration.yaml
mqtt:
  discovery: true

automations.yaml
- alias: TestAutomation1
  trigger:
  - platform: mqtt
    topic: 'homeassistant/test1'
    payload: 'trigger'
  action:
  - service: mqtt.publish
    data:
      topic: 'homeassistant'
      payload: 'TestAutomation1 response'

- alias: TestAutomation2
  trigger:
  - platform: mqtt
    topic: 'test2/test2'
    payload: 'trigger'
  action:
  - service: mqtt.publish
    data:
      topic: 'homeassistant'
      payload: 'TestAutomation2 response'

Traceback (if applicable):
Additional information: Forum post here.

This is expected with the MQTT specification. With MQTT discovery enabled, Home Assistant subscribes to <discovery_prefix>/# which by default is homeassistant/#. When you send a message to homeassistant it will match both your own subscription in the automation and the subscription by discovery:. The MQTT specification states:

When Clients make subscriptions with Topic Filters that include wildcards, it is possible for a Client’s subscriptions to overlap so that a published message might match multiple filters. In this case the Server MUST deliver the message to the Client respecting the maximum QoS of all the matching subscriptions [MQTT-3.3.5-1]. In addition, the Server MAY deliver further copies of the message, one for each additional matching subscription and respecting the subscription’s QoS in each case.

As there's no way for the MQTT client to know for which subscription a PUBLISH packet belongs, this is a limitation of MQTT and we can't fix it. I would recommend just using another topic other than homeassistant or setting a discovery_prefix:.

First, thanks for the clarification!  I think that at least tells me a bit about where I need to go with this.  As this is a project that several people are using, I'm reticent to change namespace but even more so to require using a non-standard discovery_prefix, it's either break everyone's configuration or break their configuration while also breaking their ability to use other things which expect the standard prefix.  You've given me a lot to chew on and I appreciate the insight and fast response time.

As a work-around you could do the following:
 - alias: TestAutomation1
  trigger:
  - platform: mqtt
    topic: 'homeassistant/#'
    payload: 'trigger'
  condition:
    condition: template
    value_template: '{{ trigger.topic == 'homeassistant/test1' }}'
  action:
  - service: mqtt.publish
    data:
      topic: 'homeassistant'
      payload: 'TestAutomation1 response'

I know it's ugly but it would not end up breaking a bunch of things.


Break all the things!

See #609

@oxyc - It looks like CentOS 7 isn't happy with all my changes to XHProf... I'm heading to dinner + DrupalCon Trivia Night, and I hate to ask—but if you get a chance, can you spin up an instance running CentOS and test, or even debug it quick via Travis? Otherwise I'll get into it tomorrow.

Installation works but some weird things going on

Warning: fopen(/var/tmp/xhprof/57354c733f599.xhprof_testing.xhprof): failed to open stream: No such file or directory in XHProfRuns_Default->save_run() (line 135 of /usr/share/php/xhprof_lib/utils/xhprof_runs.php).

Directory exists and is writable but PHP can't write to. Nor can I write to /var/tmp/ or /tmp/. Status report looks okay. Something obvious i'm missing?

Okay so whenever PHP is writing to /var/tmp it's actually writing to /var/tmp/systemd-private-5e8ae5a183394a28b271b174b64e2fe2-php-fpm.service-e5Ml8f/tmp/ where the xhprof directory doesn't exist. What RHEL madness is this? :D

@oxyc apparently it's a systemd thing... looking into it in the morning.

One way to get around this in Drupal VM is to configure the output_dir to just /var/tmp. XHProf UI filters for files ending with .xhprof anyway. https://github.com/phacility/xhprof/blob/0bbf2a2ac34f495e42aa852293fe0ed821659047/xhprof_lib/utils/xhprof_runs.php#L151

I already set up an instance for debugging locally but seems xhprof is just commented out in example.config.yml

@oxyc - I'm working on this at the DrupalCon sprints. I actually have some bandwidth today (Internet was iffy rest of the week), so I'm making some progress. Trying to get tests to pass before merging.

@oxyc - D'oh, diff doesn't show anymore :(


Add Jira sync support

This page has an older implementation: https://www.digitalsanctuary.com/general/jira-to-omnifocus-integration.html
https://developer.atlassian.com/server/jira/platform/rest-apis/

Closing for now as won't do


Add parameter 'replace' to annotation @ApiImplicitParam

To make it possible to completely redefine a normal query/body/path/header parameter by replacing an existing parameter (when creating swagger.json/yaml). Example:
@ApiImplicitParams({
        @ApiImplicitParam(name = "query", value = "A query in the form of JSON serialized Query.class",
                required = true, dataType = "Query", paramType = "query",
                example = "{\"max_decimals\":-1,\"page\":1,\"pageSize\":20,\"version\":false,\"store\":\"query-resource-test-store1\"}",
                replace = "query"
        )
})
public List<Map<String,Object>> queryGetV2(
        @ApiParam(value = "A Query object serialized as JSON.", name = "query", required = true, hidden = false)
        @QueryParam(value = "query")
        final Query query
) { }

Signed-off-by: Mikko Johannes Koivunalho<EMAIL_ADDRESS>

The example is a bit confusing. I imagine it replaces query as the parameter name and not the parameter type?
Also, this would be equivalent to creating the @ApiImplicitParam and setting the @QueryParam as hidden=true?

Yes, the example does that: replaces the parameter "query" with another definition (including datatype). The parameter type stays same (query, not body/header/etc.).
I think you are right. We get the same result by setting hidden=true. I had not considered that. I wonder if replace=* would be any clearer...

The suggested functionality can be achieved by other ways already implemented.


Find In Folder Should Override Search Exclude Glob If Folder Is a Subfolder Within A Glob

One of the globs to ignore search on (an rightly so) is **/node_modules.  However, I frequently poke around in the code within node_modules and like to search within a particular module to find where some code is. So, for example, I have a node_modules/faye and I'd like to find some code in that module.  I'll:

Click on the folder within the Explorer
Right click and Find in Folder
Enter some text to search for
Get no results

In this instance, it's really clear that I'd like to override the global setting to ignore **/node_modules since I'm explicitly asking to search within a folder.  My proposed solution is that if a folder in Find in Folder is one that is normally ignored, unignore searching within that folder in this particular case.

Sounds search specific thus forwarding to Rob and Jackson.


Engine roll caused regression to iOS stock_layout_iteration times

This PR: https://github.com/flutter/flutter/pull/9089
...which rolled the engine from: https://github.com/flutter/engine/commit/61fc1d6e31ab11752ec13385bd08447021790071
...to: https://github.com/flutter/engine/commit/bf698a1fe52e62d161c2aab351029670dc9b8651
...caused a substantial (1.7x) regression to the stock_layout_iteration benchmark on iOS.

This benchmark significantly improved in Dec with #25049.


unclear privleges definition

In the sentence "For a direct report, the manager has the Read, Write, Update, Append, AppendTo access to the report’s data. " please clarify what is the difference between "Write" and "Update" privileges. In the secuitiy roles there are no "Update" privileges.

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

ID: 4e2b746e-8a88-e3f9-9e55-592f2a186c44
Version Independent ID: 482a7ffd-5ed5-a475-f9ba-6578bb6e97ee
Content: Hierarchy security - Power Platform
Content Source: power-platform/admin/hierarchy-security.md
Service: power-platform
Sub-service: admin
GitHub Login: @paulliew
Microsoft Alias: paulliew

the Write and Update is the same privilege. Will remove 'Update' from the doc to match our published list of privileges

@piotrgardynski
Thanks for the feedback. We've updated the documentation.


Feature request: Persistent view

The UI state is currently lost if the A1111 page is refreshed. Add an option to persist the UI state and restore on load to avoid the need for the user to setup their view again.

It used to be possible to achieve this by clicking on this button, but there seems to be some issue recently and I haven't had the time to fix it

You can click here to implement this function.


Run-ALValidation not detecting localization errors

We ran Run-ALValidation against our latest release, and specifying the following countries: "US", "DE", "GB","MX","CA"
We got no errors, only "Run-ALValidation Success."
We then submitted the exact same .app file for AppSource validation, and it failed for every country except US:
Severity level: Error, Message: (Version, country-region) validation completed with failures: version 21.4, country-region MX
We are referred to our Azure Application Insights resource, which gives us all of the messages like the above, but no information as to the nature of the failure. Because the application is not yet actually running in Azure, we cannot find any more information about the errors.
We did notice that the AppSource validation seems to be using different platform/application versions than the ones used by Run-ALValidation (note the 21.4, above, for MX); we have no idea why.
Is there any way to get further information out of Run-ALValidation as to these localization issues, or are we missing something in our execution of that cmdlet?  Below is our script:
$validationResults = Run-AlValidation `
    -validateCurrent `
    -apps @( "C:\Users\dbaldwin\Downloads\CAI-Software-Precious-Metals-Solution-main-Apps-<IP_ADDRESS>\CAI Software_CAI Software Precious Metals Solution_<IP_ADDRESS>.app" ) `
    -countries @( "US","DE","GB","MX","CA" ) `
    -affixes @( "CAI" ) `
    -supportedCountries @( "US", "DE", "GB","MX","CA" ) `
    -containerName bcvalidation
$validationResults | Write-Host -ForegroundColor Red

You could also provide me with your app (and previous app) then I can try this myself.

Got it - send me a link (freddyk at microsoft dot com) where I can download the app file

This should work; you have access to the repo. Dropbox is not cooperating:
https://github.com/CAI-Software-Inc/CAI-Software-Precious-Metals-Solution/releases/download/21.9.115/CAI-Software-Precious-Metals-Solution-main-Apps-<IP_ADDRESS>.zip

Got it - but maybe you should delete it if you don't want to share it with the world.

Delete from where? Those are the artifacts from the release. I almost put the link here; that would have been shared with the world--but the email? Isn't that the point of using email? The world does not have access to that repository, do they?

You are right - I read dropbox and thought you sent a deep link.

When you specify -validatecurrent - you validate ONLY against current version.
If you remove -validateCurrent - then Run-AlValidation will validate against the same version(s) that online validation will use and you will see:
Compilation started for project 'CAI Software Precious Metals Solution' containing '426' files at '22:27:52.965'.

C:\ProgramData\BcContainerHelper\4c0af776-35f3-4a44-a677-ecbc334776c9\src\src\src\report\CAISOShipNotInvoiced.Report.al(273,41): error AL0132: 'Codeunit Se
gManagement' does not contain a definition for 'FindInteractionTemplateCode'

Compilation ended at '22:27:59.840'.

Meaning that your app.json specifies 21.0 as dependency when you actually need a later version (maybe 22.0)

Aha. The old shoot yourself in the foot trick. Okay, validateCurrent comes out.
So we thought that if the app.json specifed 21.0 for Application and Platform, that was a minimum, such that any later version would be okay. But it sounds like that is forcing validation against earlier versions?
If so, we will change that to 22.0.
We think these errors are localization errors--that version is not critical, but certain US elements are simply not available in the GB, DE versions, etc.

It is your minimum compatible version.
If you specify 21.0 - you specify that the app can be installed on 21.0 or later.
But your app has a dependency on a later BC version.

"But your app has a dependency on a later BC version."  -- And no doubt that dependency arises from the container(s) we are developing against--which are all version 22 and later. So downloaded symbols are all coming from there. I think I see the problem.
Does this explain why the MX version is being compiled by the AppSource validation against 21.4? Is that controlled by the manifest?

AppSource validation uses the application dependency - as people with 21.x could potentially install this app.

Okay. Got it. Won't apply for us; we will go ahead and update the manifest to match the application & platform that we are actually developing against.  That should be our minimum version. Thanks very much.

Exactly - application dependency should always be your actual BC application dependency.


Peer Dependency with react 0.14.2

I have react 0.14.2 installed.
react-dnd doesnt install because
<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.

For now i'm downgrading react to 0.14. What would be a long term fix for this?
Cheers!

Oh never mind, i was installed from another repo while looking at the package.json of the repo with react in it. haha :)