Fix radiance for sky in GLES stereo rendering

This took me waaaaaaaaaaaaaaaaaaaaaaay too long to figure out.
In OpenGL everything is output upside down compared to Vulkan, that means that our culling order is reversed, see
	if (!flip_y) {
		// If we're rendering right-side up, then we need to change the winding order.
		glFrontFace(GL_CW);
	}

in RasterizerSceneGLES3::render_scene.
However, when we output to OpenXR (or webXR), the compositor expects us to deliver images with the same orientation and thus we change things up and render things "upside down", and only flip the image on output to screen. So we keep to the same culling order.
The problem then is that our sky radiance map update code runs after we do this optional flip. This logic renders a full screen triangle to perform a full screen effect. The order of the vertices of this triangle is defined on the assumption we are doing our flip.
In normal mode, we render our triangle and thus our radiance map is rendered.
In XR mode we cull our triangle and thus our radiance map remains black.
The simple answer is to disable culling as we don't care for culling in this case.
This PR cleans up a few related issues and code that assumes state is retained when it's not.
Fixes #84598

It's working fine now!

Master
This PR

Cherry-picked for 4.2.2.

Can't be cherry-picked for 4.1 because it depends on changes from https://github.com/godotengine/godot/pull/77496.


osinfo-db: 20181011 -> 20181101

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/osinfo-db/versions.
meta.description for osinfo-db is: '"Osinfo database of information about operating systems for virtualization provisioning tools"'.

Checks done (click to expand)

built on NixOS

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 20181101 with grep in /nix/store/hc3xjsz49zgmp9n91d6x73f0s8jw547h-osinfo-db-20181101

directory tree listing: https://gist.github.com/d1ef8aa2fd687c9af7fb5fcbb1618581

du listing: https://gist.github.com/e800e28e06a301ec0cd40914062f7c0d

Outpath report (click to expand)

Outpath difference report
12 total rebuild paths
4 package rebuilds
4 x86_64-linux rebuilds
4 i686-linux rebuilds
0 x86_64-darwin rebuilds
4 aarch64-linux rebuilds
First ten rebuilds by attrpath
gnome3.gnome-boxes
libosinfo
osinfo-db
virtmanager

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/hc3xjsz49zgmp9n91d6x73f0s8jw547h-osinfo-db-20181101 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
Or, build yourself:
nix-build -A osinfo-db https://github.com/r-ryantm/nixpkgs/archive/e7be6edb015bf44789bd876fcb26b17d49a82470.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/hc3xjsz49zgmp9n91d6x73f0s8jw547h-osinfo-db-20181101
ls -la /nix/store/hc3xjsz49zgmp9n91d6x73f0s8jw547h-osinfo-db-20181101/bin

cc @bjornfor for testing.

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: osinfo-db
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: osinfo-db
Partial log (click to expand)
copying path '/nix/store/3fwh9wjrirh3xjn02gq20c4z5md1h4r6-perl5.28.0-XML-Parser-2.44' from 'https://cache.nixos.org'...
copying path '/nix/store/4sar7jbvzs3ws1y094w29yz56i4j9ch8-intltool-0.51.0' from 'https://cache.nixos.org'...

trying https://releases.pagure.org/libosinfo/osinfo-db-20181101.tar.xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 78916  100 78916    0     0  89473      0 --:--:-- --:--:-- --:--:-- 89372
building '/nix/store/cl469mzvmca1pa112yv8sxl86ii9gcfn-osinfo-db-20181101.drv'...
installing
/nix/store/hc3xjsz49zgmp9n91d6x73f0s8jw547h-osinfo-db-20181101

Success on aarch64-linux (full log)
Attempted: osinfo-db
Partial log (click to expand)
building '/nix/store/y4s1vgaqkwj45s5vjh1rsz3a17khk5df-osinfo-db-20181101.tar.xz.drv'...
copying path '/nix/store/yn0g46bhwgplzink04yg0crmf4if1s05-intltool-0.51.0' from 'https://cache.nixos.org'...

trying https://releases.pagure.org/libosinfo/osinfo-db-20181101.tar.xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 78916  100 78916    0     0   152k      0 --:--:-- --:--:-- --:--:--  152k
building '/nix/store/gzmk49cm8qbwgkzxk1zc0bigmn3wkilg-osinfo-db-20181101.drv'...
installing
/nix/store/nqq0ba029q7m35fyx76xxlzzpff4a8hy-osinfo-db-20181101


是否开源数据生成代码

Thank you for your interest. We will be refactoring the code used to generate datasets, and the updated version will be available in 2-3 months.

The code for data construction is released today.


update checkpoints.zip download link

like stated in issue:
https://github.com/iPERDance/iPERCore/issues/90

@sexuelleflasche, Thanks for updating the links.  We have updated the links, and currently, we have released the iPERCore-0.2.0 with training codes, novel view synthesis, appearance transfer, and bullet-time effects.


new keyword provide for playwright mouse wheel

Is your feature request related to a problem? Please describe.
we have config page and it can use drag and drop to put element. but failed to wheel the cellphone config page to scroll.
when i physical operate, it just can be done by mouse wheel to scroll element.
Describe the solution you'd like
It should be have the mouse wheel keyword same as https://playwright.dev/docs/api/class-mouse#mouse-wheel
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context

To make sure that I understand you correctly, you would like to have a separate keyword which Playwright mouse wheel API from Playwright side?

@aaltat yes. exactly. thank you for update in the near future

Done in #2586


New version: mthom.ScryerProlog version 0.9.3

[X] Have you signed the Contributor License Agreement?
[X] Have you checked that there aren't other open pull requests for the same manifest update/change?

[ ] Have you tested your manifest locally with winget install --manifest <path>?
[X] Does your manifest conform to the 1.5 schema?

Microsoft Reviewers: Open in CodeFlow

With the dependency added, the package fails a Defender scan:

@wingetbot waivers Add Validation-Executable-Error


Implement dropped duties list

[x] Display duty location

[x] Disable alerts

[x] Create CSS

Resolves #58

Coverage decreased (-0.1%) to 78.75% when pulling b3b83f9ce1e6af863dddcf5124a78533834842c8 on dropped-duties-list into f5cb316cffbecd98b3f8847e1d4bec3b84d94d85 on master.

Also, could you write specs for this? 🙃


Light FormID whitelist

Do you think you could add whitelisting functionality for the light disabler? So, you could blacklist a plugin to disable all its lights, but whitelist certain FormIDs from it to keep them still enabled? Thank you!

That was quick! Thanks!


[Question] How to give a alarm when prometheus is down?

Hi! I have three question and need your suggestion.

How to give an alarm hen prometheus is down?
Does prometheus pull metrics concurrently if there are many jobs?

Yes, metrics are pulled concurrently, potentially thousands may happen in
parallel.
You would alert about a Prometheus server being down by having a designated
Prometheus server, which monitors your other Prometheus servers.
You would have two of these. So they in turn can monitor each other. We
call this "meta-monitoring".
On Tue, Aug 9, 2016 at 11:44 AM liuguoming<EMAIL_ADDRESS>wrote:

Hi! I have three question and need your suggestion.

How to give an alarm hen prometheus is down?
Does prometheus pull metrics concurrently if there are many jobs?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/prometheus/prometheus/issues/1879, or mute the thread
https://github.com/notifications/unsubscribe-auth/AEuA8qBfJHpob2bBEmUh-15CeV9zP1yUks5qeEvlgaJpZM4Jf5b-
.


The request could not be completed because:Unauthorized Access

I have updated the Xcode to 10.1. After updating this I got Unauthorized Access error in Fastlane. But I can able to upload the build successfully in testflight.
[10:06:24]: Unauthorized Access

+------+------------------------+-------------+
|              fastlane summary               |
+------+------------------------+-------------+
| Step | Action                 | Time (in s) |
+------+------------------------+-------------+
| 1    | default_platform       | 0           |
| 2    | increment_build_number | 8           |
| 3    | build_app              | 1057        |
| 💥   | upload_to_testflight   | 252         |
+------+------------------------+-------------+

[10:06:24]: fastlane finished with errors

**[!] The request could not be completed because:
	Unauthorized Access**

Can you please post the complete output you are getting, and the command you are running?
Please also include your fastlane env information. Thanks.
Note: Possibly related to #13903

I am using fastlane ios beta command to upload the app in testflight
+-------------------------------------------------------+------------------------------------------------------------+
| Summary for gym 2.101.1 |
+-------------------------------------------------------+------------------------------------------------------------+
| scheme | App |
| workspace | ./App.xcworkspace |
| destination | generic/platform=iOS |
| export_options.provisioningProfiles.bundleId | match AppStore bundleId  |
| output_name | App |
| build_path | /Library/Developer/Xcode/Archives/2018-12-17 |
| clean | false |
| output_directory | . |
| silent | false |
| skip_package_ipa | false |
| result_bundle | false |
| buildlog_path | ~/Library/Logs/gym |
| skip_profile_detection | false |
| xcode_path | /Applications/Xcode.app |
+-------------------------------------------------------+------------------------------------------------------------+

+-----------------------------------------------------------------------------------+----------------------+
| Generated Build Command |
+-----------------------------------------------------------------------------------+----------------------+
| Option | Value |
+-----------------------------------------------------------------------------------+----------------------+
| set -o pipefail && | |
| xcodebuild | |
| -workspace ./App.xcworkspace | |
| -scheme App | |
| -destination | generic/platform=iOS |
| -archivePath /Library/Developer/Xcode/Archives/2018-12-17/App\ | |
| 2018-12-17\ 12.15.14.xcarchive | |
| archive | |
| | tee /Library/Logs/gym/App | |
| | xcpretty | |
+-----------------------------------------------------------------------------------+----------------------+

Above unauthorized error is resolved. But I don't know the exact reason why it happens and what is the fix for this. Kindly let me know any thoughts about this

Impossible to answer as you didn't post the complete output you are getting or your fastlane env information.

Fastlane Env
🚫 fastlane environment 🚫
Stack
|```

Key
Value

OS
10.14.2

Ruby
2.5.1

Bundler?
false

Git
git version 2.19.2

Installation Source
~/.rvm/gems/ruby-2.5.1/bin/fastlane

Host
Mac OS X 10.14.2 (18C54)

Ruby Lib Dir
~/.rvm/rubies/ruby-2.5.1/lib

OpenSSL Version
OpenSSL 1.1.0h  27 Mar 2018

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
~/Downloads/Xcode.app/Contents/Developer/

Xcode Version
10.1

fastlane gems

Gem
Version
Update-Status

fastlane
2.101.1
🚫 Update available

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

did_you_mean
1.2.0

executable-hooks
1.4.2

bundler-unload
1.0.2

rubygems-bundler
1.4.4

bundler
1.16.1

slack-notifier
2.3.2

rouge
2.0.7

xcpretty
0.2.8

terminal-notifier
1.8.0

terminal-table
1.8.0

plist
3.4.0

public_suffix
2.0.5

addressable
2.5.2

multipart-post
2.0.0

word_wrap
1.0.0

tty-spinner
0.8.0

babosa
1.0.2

colored
1.2

highline
1.7.10

commander-fastlane
4.4.6

excon
0.62.0

unf_ext
<IP_ADDRESS>

unf
0.1.4

domain_name
0.5.20180417

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

fastimage
2.1.3

gh_inspector
1.1.3

json
2.1.0

mini_magick
4.5.1

multi_json
1.13.1

multi_xml
0.6.0

rubyzip
1.2.1

security
0.1.3

xcpretty-travis-formatter
1.0.0

faraday_middleware
0.12.2

declarative
0.0.10

declarative-option
0.1.0

representable
3.0.4

httpclient
2.8.3

google-api-client
0.23.4

emoji_regex
0.1.1

nanaimo
0.2.6

colored2
3.1.2

claide
1.0.2

CFPropertyList
3.0.0

atomos
0.1.3

xcodeproj
1.5.9

unicode-display_width
1.4.0

tty-screen
0.6.5

tty-cursor
0.6.0

faraday
0.15.2

dotenv
2.5.0

naturally
2.2.0

simctl
1.6.5

uber
0.1.0

retriable
3.1.2

mime-types-data
3.2018.0812

mime-types
3.2.2

jwt
2.1.0

signet
0.8.1

os
1.0.0

memoist
0.16.0

googleauth
0.6.4

openssl
2.1.0

date
1.0.0

fileutils
1.0.2

ipaddr
1.2.0

| fastlane | 2.101.1 | 🚫 Update available |

You are using an old version of fastlane. You should update.

I got this same error with using pilot launched via a CI.

Below are my fastlane env details as this may still be an issue?
Also the build did actually successfully upload to testflight, but the changelog I passed in did not get transmitted.
✅ fastlane environment ✅
Stack

Key
Value

OS
10.14.3

Ruby
2.6.1

Bundler?
true

Git
git version 2.17.2 (Apple Git-113)

Installation Source
/usr/local/lib/ruby/gems/2.6.0/bin/fastlane

Host
Mac OS X 10.14.3 (18D42)

Ruby Lib Dir
/usr/local/Cellar/ruby/2.6.1/lib

OpenSSL Version
OpenSSL 1.0.2q  20 Nov 2018

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
10.1

System Locale

Variable
Value

LANG
en_GB.UTF-8
✅

LC_ALL

LANGUAGE

fastlane gems

Gem
Version
Update-Status

fastlane
2.116.1
✅ Up-To-Date

Loaded fastlane plugins:

Plugin
Version
Update-Status

fastlane-plugin-trainer
0.4.1
✅ Up-To-Date

Loaded gems

Gem
Version

did_you_mean
1.3.0

bundler
1.14.5

CFPropertyList
2.3.6

concurrent-ruby
1.1.4

i18n
0.9.5

minitest
5.11.3

thread_safe
0.3.6

tzinfo
1.2.5

activesupport
4.2.11

public_suffix
2.0.5

addressable
2.6.0

atomos
0.1.3

awesome_print
1.8.0

babosa
1.0.2

backports
3.11.4

builder
3.2.3

clipboard
1.3.3

cucumber-tag_expressions
1.1.1

gherkin
5.1.0

cucumber-core
3.2.1

cucumber-expressions
6.0.1

cucumber-wire
0.0.1

diff-lcs
1.3

multi_json
1.13.1

multi_test
0.1.2

cucumber
3.1.2

edn
1.1.1

geocoder
1.5.1

httpclient
2.8.3

json
1.8.6

command_runner_ng
0.1.4

thor
0.20.3

run_loop
2.7.1

slowhandcuke
0.0.3

calabash-cucumber
0.20.5

claide
1.0.2

fuzzy_match
2.0.4

nap
1.1.0

cocoapods-core
1.6.0

cocoapods-deintegrate
1.0.2

cocoapods-downloader
1.2.2

cocoapods-plugins
1.0.0

cocoapods-search
1.0.0

cocoapods-stats
1.1.0

netrc
0.11.0

cocoapods-trunk
1.3.1

cocoapods-try
1.1.0

colored2
3.1.2

escape
0.0.4

fourflusher
2.2.0

gh_inspector
1.1.3

molinillo
0.6.6

ruby-macho
1.3.1

nanaimo
0.2.6

xcodeproj
1.8.1

cocoapods
1.6.0

colored
1.2

highline
1.7.10

commander-fastlane
4.4.6

declarative
0.0.10

declarative-option
0.1.0

digest-crc
0.4.1

unf_ext
<IP_ADDRESS>

unf
0.1.4

domain_name
0.5.20180417

dotenv
2.6.0

emoji_regex
1.0.1

excon
0.62.0

multipart-post
2.0.0

faraday
0.15.4

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

faraday_middleware
0.13.1

fastimage
2.1.5

jwt
2.1.0

memoist
0.16.0

os
1.0.0

signet
0.11.0

googleauth
0.6.7

mime-types-data
3.2018.0812

mime-types
3.2.2

uber
0.1.0

representable
3.0.4

retriable
3.1.2

google-api-client
0.23.9

google-cloud-env
1.0.5

google-cloud-core
1.3.0

google-cloud-storage
1.16.0

mini_magick
4.5.1

multi_xml
0.6.0

plist
3.5.0

rubyzip
1.2.2

security
0.1.3

naturally
2.2.0

simctl
1.6.5

slack-notifier
2.3.2

terminal-notifier
1.8.0

unicode-display_width
1.4.1

terminal-table
1.8.0

tty-screen
0.6.5

tty-cursor
0.6.0

tty-spinner
0.9.0

word_wrap
1.0.0

rouge
2.0.7

xcpretty
0.3.0

xcpretty-travis-formatter
1.0.0

trainer
0.8.1

fastlane-plugin-trainer
0.4.1

generated on: 2019-02-28

Best create a new bug report issue @BeshBashBosh and include all the information it asks for. You can link to this closed issue for reference of cours.

@BeshBashBosh are you still facing that problem?

I started seeing this issue with upload_to_testflight

bump same,
just started out of the blue today

Please open new issues with all the information the issue template asks for - then we can take a look.
Quick thought: Do you have an apple_id parameter for upload_to_testflight maybe? If so, is it an Apple Login Email address or an Apple App ID? The second one would be correct.


img preview interprets exif orientation

First of all: I really like the plugin - it instantly worked in my project without (almost) any problems.
Just one thing:
If I enable filePreview and drop my images, the plugin interprets the orientation-attribute from the exif-data from the jpeg. This is especially a problem when pictures were taken by a smartphone camera with gyroscope (otherwise exif-orientation is always 1). So the base64-generated preview image has a different rotation than in common image-view-software.
Please note that I'm not very deep into image conversion stuff and everybody feel free to correct me if there is something wrong in my issue.

Plugin is not doing any image operations, but shows the preview after the
selection
On Sunday, March 20, 2016, Hagenzone<EMAIL_ADDRESS>wrote:

First of all: I really like the plugin - it instantly worked in my project
without (almost) any problems.
Just one thing:
If I enable filePreview and drop my images, the plugin interprets the
orientation-attribute from the exif-data from the jpeg. This is especially
a problem when pictures were taken by a smartphone camera with gyroscope
(otherwise exif-orientation is always 1). So the base64-generated preview
image has a different rotation than in common image-view-software.
Please note that I'm not very deep into image conversion stuff and
everybody feel free to correct me if there is something wrong in my issue.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/hayageek/jquery-upload-file/issues/96

I think that is exactly the problem. The readAsDataURL method that is being used interprets the exif orientation attribute of the jpeg.
I tested in chrome 49, firefox 45.0.1 and ie 11.
Here is a link to an example photo:


Multifunctional panel support

Hello there.
Is the multifunctional panel supported? Like a HDL-MP4S/TILE.48
Switch device type is not working with this panels.

As i understand i must set Single Channel Control as target for button and switch device type in HAAS config.
Device  is appeared at entities without error, but when i  toggle switch via HAAS UI nothing happens, SingleChannelControl packet not  sending to network according to  Setup Tool  sniffer  (when  i press  button physically all ok)


Set up TSLint rules

Presumably TSLint can be used to manage the code style rules like ESLint was previously. Currently while there is a compile step, there isn't a lint step for style.

https://github.com/palantir/tslint


Study about component library documentation best practices

Objective
Read about documentation examples related to component libraries to implement in Reactive-bulma

Description
Beyond implementation examples and documentation on code (something achivable with Typescript), a good idea is to review other libraries that have time beign implemented a good documentation, understand its strong points explaining its features, examples and contact (among other points), compare with reactive-bulma and improve its current documentations with the results obtained.

Tasks

[x] Research about Storybook configuration to add documentation
[ ] Research about Typescript comments to improve documentation
[x] Research on the provided bibliography in order to get ideas

Ticket relationships

Relationship
Involved tickets

Is related to
none

Is blocked by
none

It blocks
none

Bibliography

Style libraries (CSS/SASS/LESS only)

https://github.com/twbs/bootstrap
https://github.com/jgthms/bulma
https://github.com/tailwindlabs/tailwindcss

Component libraries (style libraries with implemented on a JS library or framework)

https://github.com/fomantic/Fomantic-UI
https://github.com/mui/material-ui
https://github.com/ant-design/ant-design

Articles:

https://medusajs.com/blog/how-we-improved-our-documentation/?utm_source=tldrnewsletter
https://dev.to/merlos/how-to-write-a-good-readme-bog
https://diataxis.fr/tutorials/

Other to review:

Shields about issues and tracking process

Have in mind certain [Shields

Have in mine Storybook arguments table documentation to create the needed explanation of each component's properties and methods

Have also in mind Typescript JSDoc Reference to improve details of function implementation.


Fix bug at array index context in errors

subject.params do
    group :children, type: Array do
       requires :name
       group :parents, type: Array do
          requires :name
       end
    end
end

if params is:
children: [
          { name: 'Job', parents: [{ name: 'Joy' }, {name: 'Bob'}] },
          { name: 'Jim', parents: [{}] }
]

expect raise 'children[1][parents][0][name] is missing'，got: "children[0][parents][0][name] is missing"

This is great, excellent job.
See my comments above, the most important ones are missing tests for what's now ValidatorService and a bang method confusion. Also please update CHANGELOG and squash commits.

Thank you for your comment and I will correct your errors pointed out. My have poor English, is working to improve，please bear with me.

@totothink You're doing awesome, your English is perfectly fine!

@totothink Did you mean to close this?


Implement FileReader.readAsArrayBuffer

Description
FileReader.readAsArrayBuffer is not implemented.
Reproducible Demo
https://github.com/facebook/react-native/blob/master/Libraries/Blob/FileReader.js#L83-L85
I plan on working towards implementing this if approved.

Hi! I need readAsArrayBuffer implementation too, is there any workaround to use this with expo? I'm using expo to avoid using a mac in the development process.
Thanks!

Hello,
I manage to make it work by using readAsDataURL:
FileReader.prototype.readAsArrayBuffer = function (blob) {
	if (this.readyState === this.LOADING) throw new Error("InvalidStateError");
	this._setReadyState(this.LOADING);
	this._result = null;
	this._error = null;
	const fr = new FileReader();
	fr.onloadend = () => {
		const content = atob(fr.result.substr("data:application/octet-stream;base64,".length));
		const buffer = new ArrayBuffer(content.length);
		const view = new Uint8Array(buffer);
		view.set(Array.from(content).map(c => c.charCodeAt(0)));
		this._result = buffer;
		this._setReadyState(this.DONE);
	};
	fr.readAsDataURL(blob);
}

// from: https://stackoverflow.com/questions/42829838/react-native-atob-btoa-not-working-without-remote-js-debugging
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
const atob = (input = '') => {
	let str = input.replace(/=+$/, '');
	let output = '';

	if (str.length % 4 == 1) {
		throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");
	}
	for (let bc = 0, bs = 0, buffer, i = 0;
		buffer = str.charAt(i++);

		~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,
			bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0
	) {
		buffer = chars.indexOf(buffer);
	}

	return output;
}

Is there a way to re-open this issue or do we have to create a new issues?


TRELLO-8Xm7DiDy: Update event emitter to the latest version

The event emitter should be able to use AWS credentials to connect to SQS.
Co-authored-by:
Aditya Pahuja<EMAIL_ADDRESS>Daniel Besbrode<EMAIL_ADDRESS>https://trello.com/c/8Xm7DiDy/29-deploy-current-mvp-components-in-joint-test-environment

@adityapahuja We're returning effectively a stub when the event emitter is disabled. We'd need to add quite a few if (eventEmitter.isEnabled)'s in order to cater for never calling the event emitter


bootstrap failed for Microsoft.CodeAnalysis

MSBuild batch path: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Tools\VsMSBuildCmd.bat"

** Visual Studio 2017 MSBuild Command Prompt
** Copyright (c) 2017 Microsoft Corporation

Compiling Sharpmake.Application/Sharpmake.Application.csproj in "Debug|AnyCPU"...
msbuild -t:build -restore "Sharpmake.Application/Sharpmake.Application.csproj" /nologo /verbosity:m /p:Configuration="Debug" /p:Platform="AnyCPU"
Restore completed in 35.7 ms for D:\Users\sharpmake-dev\Sharpmake.Application\Sharpmake.Application.csproj.
Restore completed in 38.62 ms for D:\Users\sharpmake-dev\Sharpmake\Sharpmake.csproj.
Restore completed in 38.46 ms for D:\Users\sharpmake-dev\Sharpmake.Platforms\Sharpmake.CommonPlatforms\Sharpmake.Comm
onPlatforms.csproj.
Restore completed in 38.13 ms for D:\Users\sharpmake-dev\Sharpmake.Generators\Sharpmake.Generators.csproj.
CSC : error CS8032: An instance of analyzer Microsoft.CodeAnalysis.Analyzers.MetaAnalyzers.EnableConcurrentExecutionAna
lyzer cannot be created from C:\Users\gyyin.nuget\packages\microsoft.codeanalysis.analyzers\3.0.0\analyzers\dotnet\cs
Microsoft.CodeAnalysis.Analyzers.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=<IP_ADDRESS>, Cultur
e=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.. [D:
\Users\sharpmake-dev\Sharpmake\Sharpmake.csproj]
CSC : error CS8032: An instance of analyzer Microsoft.CodeAnalysis.Analyzers.MetaAnalyzers.ClassIsNotDiagnosticAnalyzer
cannot be created from C:\Users\gyyin.nuget\packages\microsoft.codeanalysis.analyzers\3.0.0\analyzers\dotnet\cs\Micro
soft.CodeAnalysis.Analyzers.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=<IP_ADDRESS>, Culture=neu
tral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.. [D:\User
s\sharpmake-dev\Sharpmake\Sharpmake.csproj]
CSC : error CS8032: An instance of analyzer Microsoft.CodeAnalysis.Analyzers.MetaAnalyzers.DoNotUseCompilationGetSemant
icModelAnalyzer cannot be created from C:\Users\gyyin.nuget\packages\microsoft.codeanalysis.analyzers\3.0.0\analyzers
dotnet\cs\Microsoft.CodeAnalysis.Analyzers.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=3.0.0
.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file speci
fied.. [D:\Users\sharpmake-dev\Sharpmake\Sharpmake.csproj]
CSC : error CS8032: An instance of analyzer Microsoft.CodeAnalysis.Analyzers.MetaAnalyzers.ConfigureGeneratedCodeAnalys
isAnalyzer cannot be created from C:\Users\gyyin.nuget\packages\microsoft.codeanalysis.analyzers\3.0.0\analyzers\dotne
t\cs\Microsoft.CodeAnalysis.Analyzers.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=<IP_ADDRESS>, C
ulture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
. [D:\Users\sharpmake-dev\Sharpmake\Sharpmake.csproj]
CSC : error CS8032: An instance of analyzer Microsoft.CodeAnalysis.Analyzers.MetaAnalyzers.DiagnosticAnalyzerAttributeA
nalyzer cannot be created from C:\Users\gyyin.nuget\packages\microsoft.codeanalysis.analyzers\3.0.0\analyzers\dotnet\c
s\Microsoft.CodeAnalysis.Analyzers.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=<IP_ADDRESS>, Cult
ure=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.. [
D:\Users\sharpmake-dev\Sharpmake\Sharpmake.csproj]
CSC : error CS8032: An instance of analyzer Microsoft.CodeAnalysis.Analyzers.MetaAnalyzers.DiagnosticDescriptorCreation
Analyzer cannot be created from C:\Users\gyyin.nuget\packages\microsoft.codeanalysis.analyzers\3.0.0\analyzers\dotnet
cs\Microsoft.CodeAnalysis.Analyzers.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=<IP_ADDRESS>, Cul
ture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified..
[D:\Users\sharpmake-dev\Sharpmake\Sharpmake.csproj]
CSC : error CS8032: An instance of analyzer Microsoft.CodeAnalysis.Analyzers.FixAnalyzers.FixerWithFixAllAnalyzer canno
t be created from C:\Users\gyyin.nuget\packages\microsoft.codeanalysis.analyzers\3.0.0\analyzers\dotnet\cs\Microsoft.C
odeAnalysis.Analyzers.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=<IP_ADDRESS>, Culture=neutral,
PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.. [D:\Users\shar
pmake-dev\Sharpmake\Sharpmake.csproj]
CSC : error CS8032: An instance of analyzer Microsoft.CodeAnalysis.Analyzers.InternalImplementationOnlyAnalyzer cannot
be created from C:\Users\gyyin.nuget\packages\microsoft.codeanalysis.analyzers\3.0.0\analyzers\dotnet\cs\Microsoft.Cod
eAnalysis.Analyzers.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=<IP_ADDRESS>, Culture=neutral, Pu
blicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.. [D:\Users\sharpm
ake-dev\Sharpmake\Sharpmake.csproj]
CSC : error CS8032: An instance of analyzer Microsoft.CodeAnalysis.Analyzers.MetaAnalyzers.CompareSymbolsCorrectlyAnaly
zer cannot be created from C:\Users\gyyin.nuget\packages\microsoft.codeanalysis.analyzers\3.0.0\analyzers\dotnet\cs\Mi
crosoft.CodeAnalysis.Analyzers.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=<IP_ADDRESS>, Culture=
neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.. [D:\U
sers\sharpmake-dev\Sharpmake\Sharpmake.csproj]
CSC : error CS8032: An instance of analyzer Microsoft.CodeAnalysis.CSharp.Analyzers.MetaAnalyzers.CSharpReportDiagnosti
cAnalyzer cannot be created from C:\Users\gyyin.nuget\packages\microsoft.codeanalysis.analyzers\3.0.0\analyzers\dotnet
\cs\Microsoft.CodeAnalysis.CSharp.Analyzers.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=3.0.
0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file spec
ified.. [D:\Users\sharpmake-dev\Sharpmake\Sharpmake.csproj]
CSC : error CS8032: An instance of analyzer Microsoft.CodeAnalysis.CSharp.Analyzers.MetaAnalyzers.CSharpDiagnosticAnaly
zerFieldsAnalyzer cannot be created from C:\Users\gyyin.nuget\packages\microsoft.codeanalysis.analyzers\3.0.0\analyzer
s\dotnet\cs\Microsoft.CodeAnalysis.CSharp.Analyzers.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Vers
ion=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the f
ile specified.. [D:\Users\sharpmake-dev\Sharpmake\Sharpmake.csproj]
CSC : error CS8032: An instance of analyzer Microsoft.CodeAnalysis.CSharp.Analyzers.MetaAnalyzers.CSharpRegisterActionA
nalyzer cannot be created from C:\Users\gyyin.nuget\packages\microsoft.codeanalysis.analyzers\3.0.0\analyzers\dotnet\c
s\Microsoft.CodeAnalysis.CSharp.Analyzers.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=3.0.0.
0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specif
ied.. [D:\Users\sharpmake-dev\Sharpmake\Sharpmake.csproj]
CSC : error CS8032: An instance of analyzer Microsoft.CodeAnalysis.CSharp.Analyzers.MetaAnalyzers.CSharpDiagnosticAnaly
zerApiUsageAnalyzer cannot be created from C:\Users\gyyin.nuget\packages\microsoft.codeanalysis.analyzers\3.0.0\analyz
ers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.Analyzers.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Ve
rsion=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the
file specified.. [D:\Users\sharpmake-dev\Sharpmake\Sharpmake.csproj]
CSC : error CS8032: An instance of analyzer Microsoft.CodeAnalysis.CSharp.Analyzers.CSharpImmutableObjectMethodAnalyzer
cannot be created from C:\Users\gyyin.nuget\packages\microsoft.codeanalysis.analyzers\3.0.0\analyzers\dotnet\cs\Micro
soft.CodeAnalysis.CSharp.Analyzers.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=<IP_ADDRESS>, Cult
ure=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.. [
D:\Users\sharpmake-dev\Sharpmake\Sharpmake.csproj]
CSC : error CS8032: An instance of analyzer Microsoft.CodeAnalysis.CSharp.Analyzers.CSharpUpgradeMSBuildWorkspaceAnalyz
er cannot be created from C:\Users\gyyin.nuget\packages\microsoft.codeanalysis.analyzers\3.0.0\analyzers\dotnet\cs\Mic
rosoft.CodeAnalysis.CSharp.Analyzers.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=<IP_ADDRESS>, Cu
lture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified..
[D:\Users\sharpmake-dev\Sharpmake\Sharpmake.csproj]
ERROR: Failed to compile Sharpmake.Application/Sharpmake.Application.csproj in "Debug|AnyCPU".
Bootstrap failed

Heya! Sharpmake requires vs2019 to build, could you try with that version?

Thanks a lot @belkiss

Np! Could you confirm that it solves the issue, and close this?
Thanks!

Closing this, feel free to reopen it if it occurs again with vs2019.


Return encoded extrinsics without padding

It should fix the ExtrinsicNotFound error during enclave registration.
With the padded version (post-padded with spaces 0x20) the extrinsic submission would succeed since the decoding goes through even with postpositioned (unused) bytes. However, the substrate-api-client wouldn't find the hash with the prolonged extrinsic that we pass in.
Related: https://github.com/scs/substrate-api-client/issues/624

I agree, sorry for being picky!


fetchIdToken() always returning 403 when used in Authorization header

I am trying to use the standard fetch client instead of the Gaxios client that the IdTokenClient class uses because it was giving me trouble whenever I used with multiple files in the FormData class.
Originally I had a very simple client running under my service account credentials and properly being authenticated with this code:
  const client = await auth.getIdTokenClient(url.origin);
  const res = await client.request({url + "/general/v0/general"});

now I am trying:
      const idTokenClient = await googleAuth.getIdTokenClient(url.origin)
      const idToken = await idTokenClient.idTokenProvider.fetchIdToken(
        url.origin
      )
      const response = await fetch(url.toString(), {
        method: "POST",
        headers: {
          Accept: "application/json",
          Authorization: `Bearer ${idToken}`
          // "X-Serverless-Authorization": `Bearer ${idToken}`
        },
        body: formData
      })

But I consistently get a 403. What am I doing wrong?

I'm not sure what the error was. I reapplied some IAM policies and restarting my service and things starting working


Terminal Support

Just now realizing that while the ANSI sequences work in VS terminal, they don't necessarily translate over to windows cmd terminal... (ran the compiled exe outside of IDE)
Need to see how to check for color support for other terminals and how to enable color on those terminals (first goal being windows cmd terminal).

Added platform specific defines for whether to use msvc's implementation or unix's implementation of isatty(). As far as I am currently aware, this actually solved the issue.


Question: Change the sidebar width

H, It may sound little foolish to ask this. I am customizing the layout, but I found the sidebar's width is always mysterious
width: 15.2542372881%;

And I can't find anywhere it is specified, it would be huge help if anyone can point where it is or how I can change the width of the sidebar.
Salute.

Found where to add: https://github.com/academicpages/academicpages.github.io/blob/25c30de2b4ce3e3f23559384699bb4b9865d6473/_sass/_sidebar.scss#L28


The capture loses information of the screen that I want to capture

I want to make a screenshot that has a leaflet map and I lose the map in the screenshot.

Any updates?

Any updates?

No. The fact that the map is not visible may be due to its size, but I'm not sure.

No, it is probably not due to its size. Make sure to use allowTaint: true and most likely also useCORS: true.
The other issue you might have is that you are creating the image before all map tiles are loaded.
Running the image generation code on the load event of your tileLayer might not work graet. For me that event fires to early and some Tiles are not fully loaded. If you run it on a Button that should work.
Also any svg elements on your Map may appear at different places. See #2960

Thanks for your message for  me I added {allowTaint: true, proxy: this.selectedFrame.frameimage,       useCORS: true} still I am getting error
Access to image at 'https://baseUrl.com/media/frame/frame.png' from origin 'http://localhost:8100' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
can you help?

This is probably then an Issue at your 'https://baseUrl.com/media/frame/frame.png' it requires CORS headers, as does your Request. Verify that whatever your Leaflet map is loading has CORS.
I am no expert on CORS, but as I understand it, all requests from a foreign Domain require those headers in request and response.
A Leaflet example Map should work just fine. I use the OpenStreetMap Tiles and have own Icons on the map without any Issue besides the above mentioned one.
  const target = document.querySelector(".leaflet-container");
  const controls = document.querySelector(".leaflet-control-container");
  html2canvas(target, {
    allowTaint: true,
    useCORS: true,
    logging: false,
    ignoreElements: (element) => controls.contains(element)
  })

This is what I use to get the Map without control elements.

I am using this in ionic 5 framework. Getting error on both ionic serve as well as on phone.

const target = document.querySelector(".leaflet-container");
  const controls = document.querySelector(".leaflet-control-container");
  html2canvas(target, {
    allowTaint: true,
    useCORS: true,
    logging: false,
    ignoreElements: (element) => controls.contains(element)
  })

This works! Thank you very much!

No, it is probably not due to its size. Make sure to use allowTaint: true and most likely also useCORS: true. The other issue you might have is that you are creating the image before all map tiles are loaded. Running the image generation code on the load event of your tileLayer might not work graet. For me that event fires to early and some Tiles are not fully loaded. If you run it on a Button that should work.
Also any svg elements on your Map may appear at different places. See #2960

This works! Thank you very much!

Also any svg elements on your Map may appear at different places. See #2960

This works! Thank you. This helps me load the map. Now the polylines are exported with another position (the white line):

That is the mentioned issue #2960 . I created it after having that exact problem. It is not mentioned in the issue that I ran into it with Leaflet. Because as the example there shows it is not an issue related to leaflet, but a issue with transform on svg elements.
Glad I could help.

When using a capacitor://localhost app to display a preview of https:// images, I converted them to data: via XMLHttpRequest before using html2canvas, as the workaround for an iOS origin error when capacitor:// attempts to read from the browser cache.

I have found this leaflet plugin that has solved the problem:
https://grinat.github.io/leaflet-simple-map-screenshoter/


Patching instructions may be wrong for specific modules

I'm not sure if this project looks after the relevant AWS docs page but I followed this page to do the specific module patch (for boto3):
https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-python-patching.html
Following "Example main.py – patch specific libraries" I wrote this:
from aws_xray_sdk.core import patch

libraries = ('boto3')
patch(libraries)

Which returned:
Exception: modules o, 3, t, b are currently not supported for patching

It seems to work if I put it in as:
libraries = (['boto3'])

So it may be worth changing the docs to show that if you are patching a single module it needs to be in [ ] brackets? I assume it thinks the firs tone is a list of chars, but the second is a single element list? (I'm new to Python - so that may be wrong!)

Thank you for the feedback. We will fix the doc as soon as possible. Sorry for any inconvenience.


Add option to start server without mocks

I you run multiple GRIPT based projects on the same machine you must provide 3 ports for the mock server (stubs, tls, admin) even though you may not use mocks - else you get port conflicts.
P.S. Docker could be a nice solution to get rid of all port conflicts ;-)

Probably as simple as adding this to server.gulp.js
gulp.task('server:nomocks', function () {
    var options = _.merge({}, defaults, gulp.config.server);
    connect.server(options);
});

wouldn't it be better to provide the command line option that would work with all tasks ? (including the default gulp, like for example:

gulp --nomocks
gulp server --nomocks

Yes - a command line option would be better.
What we have done right now is to add a task that will shift all port by a given command line offset - see doppler-run in our gulp directory. This allows us to run any number of servers at the same time - e.g., nice when you want to run different branches at the same time (of course checked out in different directories ;) )

released as 0.0.43, use --nomocks when running any task.


Add VerificationLevel value consts and a typedef for int

This time it'll work! :)

Even better:
const (
VerificationLevelNone   VerificationLevel = iota
VerificationLevelLow
VerificationLevelMedium
VerificationLevelHigh
)

Yeah that's what I ended up doing, the way I asked about won't even compile

Yay :)


Issue with generics model and return type

The reflection can't find proper generic model property.
public class ResultList<T> {
    private List<T> results;
    public List<T> getResults() {
        return results;
    }
    public void setResults(List<T> results) {
        this.results = results;
    }
}
class UserResultList extends ResultList<User> {
}

The reflection can find the ResultList results property, but it shows as an array of objects. To work around, I have to override the methods:
class OfferResultList extends ResultList<Offer> {
    @Override
    public List<Offer> getResults() {
        return super.getResults();
    }
    @Override
    public void setResults(List<Offer> results) {
        super.setResults(results);
    }
}

The issue also exists in the method return types. I looked at the code and seems it's not trivial to make a fix. All reflection functions are expecting a Class[_] rather than Type.

For now, there is the opportunity to override datatypes with the @ApiModelProperty annotation, like such:  https://github.com/swagger-api/swagger-core/blob/develop_2.0/modules/swagger-core/src/test/scala/1_3/models/ModelWithModelPropertyOverrides.java#L7-L18
public class ModelWithModelPropertyOverrides {
  @ApiModelProperty(dataType = "List[models.Children]")
  private String children;

  public String getChildren() {
    return children;
  }

  public void setChildren(String children) {
    this.children = children;
  }
}

where you override the datatype with whatever you like, which means generics can be expressed in any concrete class.

Partial solution, moving to M2 for more investigation and more use cases.

Will there be a general solution to this problem? I am exposing an API with a general "ResultList" implementation supporting paging:
public class ListResult<T> {
	public long size = 0;
	public long rangeFrom = 0;
	public long rangeSize = 0;
	public List<T> entries = Collections.emptyList();
}

And I should really have the T-type as part of my Swagger documentation.

It is technically impossible to support all forms of generics.  The general solution is to manually map generics to an interface or type if runtime reflection is not possible.  There will be guidelines for M2, which we're working on.

I found a "reasonable" way for my case to give the correct output to work in swagger ui, by subclassing the return type and overriding the generic parts. Note that my private class is not used in code, only as parameter for swagger and the @ApiOperation-annotation.
public class ListResult<T> {
	public long size = 0;
	public long rangeFrom = 0;
	public long rangeSize = 0;
	public List<T> entries = Collections.emptyList();
}

@Path("/records")
@Api(value = "/records", description = "")
public class RecordsResource {

    @GET
    @Path("inbox")
    @ApiOperation(value = "/inbox", response = RecordResultList.class)
    public Response inbox() {
      ListResult<Record> result = ListResult.create(records, RecordXTO::new);
      return Response.ok().entity(result).build();
    }
    private static class RecordResultList extends ListResult<Record> {
      public List<Record> entries;
    }
}

Hope this helps somebody else, for me this works as an OK workaround.

+1

It's impossible to pass generic type via the @ApiOperation.response, but we can get the right type from the return type. After the #1119 the definition below should provide the correct output:
@GET
@Path("inbox")
@ApiOperation(value = "/inbox")
public ListResult<Record> inbox() {
  return ListResult.create(records, Record::new);
}

@tomtit - that would work only if the method returns the type itself. The more common use case with JAX-RS is to return a Response that can also include the HTTP code and so on. That's actually the reason why the response was included in @ApiOperation.

In this case the response should be of type java.lang.reflect.Type but not Class.

And then how would it be represented?

Unfortunately there is no way to do this as JLS states:

It is a compile-time error if the return type of a method declared in an annotation type is any type other than one of the following: one of the primitive types, String, Class and any invocation of Class, an enum type (§8.9), an annotation type, or an array (§10) of one of the preceding types.

So, we need to use the workaround with a non-generic type (RecordResultList) or change method's return type from Response to generic type.

Not really up to us but up to the users, but sure, we're limited with our options.

Why is this issue closed?  Is there any new issue tracking this problem?   @ovstetun  's workaround is fine, but it may cause too many classes to be created.

@chenjianjx please see my comment https://github.com/swagger-api/swagger-core/issues/498#issuecomment-73732315

ok, thank you

@fehguy sure you can not support ALL POSSIBLE forms of generic, however you can easily support at least very common patterns which can make life better. Just simple e.g. Result<T, U> and than have possibility to specify for example return type as Result<String,Person>. This is supported by many languages and doesn't require too much changes in spec.

@tavoda @fehguy was talking about the limitations of Java with type erasure as the ability to read and retrieve the types. Changes to the spec have nothing to do with swagger-core. If you'd like to see changes there, please open a ticket on the spec itself.

Which limitations? Erasures are in generic type (e.g. List), in concrete type you can find it easily. This code produce:
Method getListOfStrings return java.util.List[java.lang.String]
Method getMapOfStringToSample return java.util.Map[java.lang.String, Sample]
public class Sample {
	public List<String> getListOfStrings() {return null;}
	public Map<String, Sample> getMapOfStringToSample() {return null;}

	public static void main(String[] args) {
		Method[] methods = Sample.class.getDeclaredMethods();
		for (Method m : methods) {
			Type returnType = m.getGenericReturnType();
			if (returnType instanceof ParameterizedType) {
				ParameterizedType pType = (ParameterizedType) returnType;
				StringBuilder params = new StringBuilder();
				String prefix = "";
				for (Type type : pType.getActualTypeArguments()) {
					params.append(prefix).append(type.getTypeName());
					prefix = ", ";
				}
				System.out.println("Method " + m.getName() + " return "
					+ pType.getRawType().getTypeName() + "[" + params + "]");
			}
		}
	}
}

If you feel things can be improved, you're more than welcome to submit PRs with changes.

@webron I'm still confused by spec. Maybe implementation is fine, I would like to have very simple Java return type like PagingResult:
class PagindResult<T> {
	int startRow, endRow, totalRows;
	T data;
}

And than AddressService.find method which return just PagingResult. What is correct way of specifying PagingResult in Swagger? Do I have to create specific type for each service?
I can investigate in Java all necessary types however I'm not able to write it in swagger. Is it really problem of core or spec?
Thanks for your help

You'd need to create a specific type for each service, yes. https://github.com/OAI/OpenAPI-Specification/issues/555 covers this as a feature request for the next version as there's no easy way to define wrappers for responses.

Thanks @webron, I will track that issue.

@tavoda actually it depends on the way you define your resource:
@Path("/")
public class AddressService {

    // Here you need a specific type
    @GET
    @Path("/foo")
    @ApiOperation(value = "/foo", response = PagingResultOfAddresses.class)
    public Response foo() {
        ...
    }

    // Swagger core will handle return type
    @GET
    @Path("/boo")
    @ApiOperation(value = "/boo")
    public PagingResult<Address> foo() {
        ...
    }
}

@tomtit nice to know, thanks

Hey, guys! Maybe it will be usefull. I had same issues with my Spring based application and I've used alternate type rules in the Swagger config:
@Bean     Docket api() {         return new Docket(DocumentationType.SWAGGER_2)                 .select()                 .apis(RequestHandlerSelectors.any())                 .paths(paths())                 .build()                 .apiInfo(apiInfo())                 .alternateTypeRules(                         newRule(typeResolver.resolve(DeferredResult.class,                                 typeResolver.resolve(ResponseEntity.class, WildcardType.class)),                                 typeResolver.resolve(WildcardType.class)))                 ;     }
This means: Swagger, if you will find DeferredResult<ResponseEntity> then use  as return type for generating JSON in SwaggerUI.
Here is a controller's method signature:
@ApiOperation(             value = "Authenticate a user",             notes = "..."     )     @RequestMapping(method = RequestMethod.POST)     public DeferredResult<ResponseEntity<BaseResponse<AccessTokenResponse>>> authAndGetDeviceInfo(@RequestBody AuthUserRequest authReques...
And now Swagger generates returned JSON description based on generic BaseResponse.
Have a nice day!

Hey, guys! Maybe it will be usefull for someone. I had same issues with my Spring based application and I've used alternate type rules in the Swagger config:
@Bean     Docket api() {         return new Docket(DocumentationType.SWAGGER_2)                 .select()                 .apis(RequestHandlerSelectors.any())                 .paths(paths())                 .build()                 .apiInfo(apiInfo())                 .alternateTypeRules(                         newRule(typeResolver.resolve(DeferredResult.class,                                 typeResolver.resolve(ResponseEntity.class, WildcardType.class)),                                 typeResolver.resolve(WildcardType.class)))                 ;     }
This means: Swagger, if you will find DeferredResult<ResponseEntity> then use  as return type for generating JSON in SwaggerUI.
Here is a controller's method signature:
@ApiOperation(             value = "Authenticate a user",             notes = "..."     )     @RequestMapping(method = RequestMethod.POST)     public DeferredResult<ResponseEntity<BaseResponse<AccessTokenResponse>>> authAndGetDeviceInfo(@RequestBody AuthUserRequest authReques...
And now Swagger generates returned JSON description based on generic BaseResponse.
Have a nice day!

@Marvel77 thank you for sharing

How is this solved?

It's problem of SPEC. This mean is not possible to specify real generic return type. Core is handling it fine as mentioned by @tomtit . It should be closed.


Compression?

Any plans to add compression middle-ware? Any specific reason it is not already here?

No reason.  Just didn’t think of it.  I’ll do it soon or accept a pull request

I'm adding it to my app eventually, I will try to find time to port and PR it once I do so.


filter and sort documents

how can I sort and filter documents like searching? Hope you support these features

Hello @huongtran84 👋 these functionalities are supported by Meilisearch. You can get started with our dedicated documentation here, and if you have any questions, please feel free to contact us again. Thank you 🙂

I mean this link https://docs.meilisearch.com/reference/api/documents.html#get-documents .any way I also have other way. it is search by empty keyword and filter ,sort

Hi @huongtran84, I'm not sure I understand what you're trying to perform with the filter and sorting features; perhaps you could elaborate so that I can better assist you.

@huongtran84 Do you still need help with this subject?

Closing due to inactivity, feel free to reopen if the issue persists!
Thanks for using Meilisearch! 🥇


Texts are rendered even when they or parents have alpha 0

Where text elements are rendered even when their parent container has an alpha value of 0. This slow down the main stage rendering.
Expected Behavior:
When the parent container's alpha value is set to 0, all of its child elements, including text, should not be rendered.
Actual Behavior:
Despite setting the alpha value of the parent container to 0, text elements within it are still rendered.

Do you have an example:
https://playground.solidjs.com/anonymous/554e0cbd-d435-4118-80e0-10e0e1898450
For me alpha 0 on a parent is hiding the text as well. LMK how to reproduce - Make sure you're updated to latest renderer + solid release

Take a look to the console -> pageDrawTime
the text triggers a pageDraw even if alpha is 0. This does't happen if you replace the text with a View image

Ah ok - so the text isn't visible then? But it's still taking render cycles?

I've tested the SDF renderer and this isn't happening - I think only the canvas renderer has this issue

I confirm, only canvas renderer has this issue


Don't swap error messages on change

By default Final Form was validates inputed data as the user types.  This update stores the previous error messages from the last submission and returns them onChange.  Waiting for the next submit to update the messages again.

Nice catch.  Adding the windowExists seems to fix the issue.


Standalone Swift - ERROR (EndpointNotFound): internalURL endpoint for compute service not found

The rpc_support role assumes Nova is installed, and tries registering a support keypair. In a Standalone Swift configuration, this will fail as there are no Nova endpoints to communicate with.
TASK: [rpc_support | Add rpc_support key to nova] *****************************
skipping: [163f7de7-infra1]
skipping: [163f7de7-object1]
skipping: [163f7de7-object3]
skipping: [163f7de7-infra1_keystone_container-23f8c901]
skipping: [163f7de7-infra1_swift_proxy_container-fa8061b9]
skipping: [163f7de7-object2]
skipping: [163f7de7-infra1_galera_container-22c355d4]
skipping: [163f7de7-infra1_memcached_container-469b23e0]
skipping: [163f7de7-infra1_rabbit_mq_container-bcf9683e]
<<IP_ADDRESS>> ESTABLISH CONNECTION FOR USER: root
skipping: [163f7de7-infra1_repo_container-e6a7a307]
<<IP_ADDRESS>> REMOTE_MODULE command . /root/openrc nova keypair-add --pub-key /root/.ssh/rpc_support.pub rpc_support #USE_SHELL
<<IP_ADDRESS>> EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/root/.ansible/cp/ansible-ssh-%h-%p-%r" -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-m
ic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=120 <IP_ADDRESS> /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python'
failed: [163f7de7-infra1_utility_container-4df0fd1f] => {"changed": true, "cmd": ". /root/openrc\n nova keypair-add --pub-key /root/.ssh/rpc_support.pub rpc_support", "delta": "0:00:00.631306", "end": "2015-07-06 21:06:09.953687", "rc": 1
, "start": "2015-07-06 21:06:09.322381", "warnings": []}
stderr: ERROR (EndpointNotFound): internalURL endpoint for compute service not found

In order to minimize impact on QE, I'm going to set this as blocked and push it to Kilo 11.1.0

Requires Kilo backport.

backport already submitted at https://github.com/rcbops/rpc-openstack/pull/233

When PR #418 is merged, this should be addressed.

this needs to be backported

#418 is the backport candidate...

does this need a juno backport?

@prometheanfire Standalone Swift was introduced in v11.0, so juno backport not required.

cool, would still appreciate a +1 on #440

@prometheanfire @byronmccollum Now that all these other PRs are merged, is this one addressed and able to be closed?

ya, I think so, but would like @byronmccollum to confirm

Yes resolved.


<IP_ADDRESS> assert only successful because of spelling error

The third act of the test 'an_error_flash_message_is_set_on_failure()'
let html_page = app.get_login_html().await;
assert!(!html_page.contains(r#"
Authentication failed
"#));

only succeeds because there is a period missing after failed.
If we replace the last part with
assert!(html_page.contains(r#"
Authentication failed.
"#));
it passes, and it becomes evident that "Authentication failed." is contained in the HTML.
Why his test passes is a mystery to me, since there is no message shown in the browser when reloading manually. It could be because the browser is refreshed before the cookie is dropped in the test, despite it having a lifetime of zero, but that's just my uneducated guess.
Repo with my code up to this point: https://github.com/FandangoMango/zero2prod

I have tried to reproduce the issue, but I wasn't able to - the test keeps passing on all branches of this repository, even after making sure that there is no trailing dot 🤔


Demonstrate arrays as a reference type

Lecture 2-18 demonstrates that arrays are a reference type. As a reference type even though the array might be defined as a const, its contents can still be altered. This is because as a reference type, arrays store a location in volatile memory in which data is to be temporarily stored.
When changes are introduced, the memory address for the data is not altered; only the data at that address is altered.
This code is ready to be merged into the master branch.

This branch will now be merged into the master branch.


Bump version for next release

Bump version for next release

Codecov Report

Merging #1127 into develop will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             develop    #1127   +/-   ##
==========================================
  Coverage      35.51%   35.51%
  Complexity       540      540
==========================================
  Files            103      103
  Lines           4590     4590
  Branches         708      708
==========================================
  Hits            1630     1630
  Misses          2814     2814
  Partials         146      146

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 5f14e61...6b64daa. Read the comment docs.


oic: Add implementation of an Ownership Tranfer Method: Just Works - v2

Changelog from v1:

minor reported issues fixed (memory leaks, logs, style, etc)
Add timeout to disable anonymous ECDH key if pairing hasn't completed.
Don't accept requests that are not related to pairing if anonymous ECDH key is enabled.
get_machine_id exported in platform as sol_platform_get_machine_id_bytes
Use buffer clear feature instead of calling sol_util_secure_clear_memory when possible.
Load default doxm if only pstat is loaded and vice-versa.

Problems not fixed so far:

TLS_NULL_WITH_NULL_NULL is still being used as Iotivity 1.0.1. Iotivity master is not using this cipher anymore. Working on a fix for that.
I didn't fixed comments about sol_socket_dtls_close because in a way it is related to the cipher problem.

Replaces #1493
Signed-off-by: Otavio Pontes<EMAIL_ADDRESS>

merging only commits with positive review.


Publishing to a disconnected peer is unhandled

What is wrong?
 WARNING  2019-12-13 05:05:29,089             Validator  Task <coroutine object Validator.handle_slot_tick at 0x7fd652a3c320> finished unexpectedly: KeyError(<libp2p.peer.id.ID (16Uiu2HAmJG8pt9jP3bfsFHsAVTsT9a6YRAEKRCNu8tjxnYghMArY)>)
   DEBUG  2019-12-13 05:05:29,089             Validator  Task failure traceback
Traceback (most recent call last):
  File "/home/ubuntu/trinity/p2p/service.py", line 158, in _run_task_wrapper
    await awaitable
  File "/home/ubuntu/trinity/p2p/service.py", line 179, in _run_daemon_task_wrapper
    await awaitable
  File "/home/ubuntu/trinity/trinity/components/eth2/beacon/validator.py", line 137, in handle_slot_tick
    await self.handle_first_tick(event.slot)
  File "/home/ubuntu/trinity/trinity/components/eth2/beacon/validator.py", line 225, in handle_first_tick
    head_block=head,
  File "/home/ubuntu/trinity/trinity/components/eth2/beacon/validator.py", line 268, in propose_block
    await self.p2p_node.broadcast_beacon_block(block)
  File "/home/ubuntu/trinity/trinity/protocol/bcc_libp2p/node.py", line 422, in broadcast_beacon_block
    await self._broadcast_data(PUBSUB_TOPIC_BEACON_BLOCK, ssz.encode(block))
  File "/home/ubuntu/trinity/trinity/protocol/bcc_libp2p/node.py", line 428, in _broadcast_data
    await self.pubsub.publish(topic, data)
  File "/home/ubuntu/.pyenv/versions/3.7.4/envs/trinity/lib/python3.7/site-packages/libp2p/pubsub/pubsub.py", line 451, in publish
    await self.push_msg(self.host.get_id(), msg)
  File "/home/ubuntu/.pyenv/versions/3.7.4/envs/trinity/lib/python3.7/site-packages/libp2p/pubsub/pubsub.py", line 525, in push_msg
    await self.router.publish(msg_forwarder, msg)
  File "/home/ubuntu/.pyenv/versions/3.7.4/envs/trinity/lib/python3.7/site-packages/libp2p/pubsub/gossipsub.py", line 187, in publish
    stream = self.pubsub.peers[peer_id]
KeyError: <libp2p.peer.id.ID (16Uiu2HAmJG8pt9jP3bfsFHsAVTsT9a6YRAEKRCNu8tjxnYghMArY)>

How can it be fixed
Fill this in if you know how to fix it.

Unable to reproduce again in a new version 😭


Pythonic changes (like whitespacing and PEP8)

I realize you aren't using these plugins any more. However, I came across the project near the top of the search results page and they may be useful for others. I haven't changed any logic, only made the code more Pythonic. The shebang thing is a legitimate fix though—no point using env and then just specifying a full path anyway.

Thanks a ton for the patch :)  This was one of the first Python scripts I ever wrote, so it definitely wasn't very "Python" in style.

Cool! I know how that goes. Takes a bit to learn the idioms in any language. Thanks for sharing your work.


mpi_write_hlp buffer overflow

Google oss-fuzz found a buffer overflow in mpi_write_hlp. This is most likely due to https://github.com/ARMmbed/mbedtls/commit/91af329a555de251d75f49d85ee59509f31d41a8#diff-c252711ea8b2703e393502bfe46bff62
The overflow occurs at library/bignum.c:553.
See: https://oss-fuzz.com/testcase-detail/5167698789531648

Hi @guidovranken,
thanks for your report! However, I'm lacking access to the page you linked. Could you please provide more details here? So far, I don't see how the loop in https://github.com/ARMmbed/mbedtls/commit/91af329a555de251d75f49d85ee59509f31d41a8#diff-c252711ea8b2703e393502bfe46bff62 would lead to an overflow.
Thanks!
Hanno

Hi Hanno,
your team should have access to the ClusterFuzz interface via<EMAIL_ADDRESS>see also: https://github.com/ARMmbed/mbedtls/issues/2038
It happens with the number is negative:
Compile mbed tls and the following file with address sanitizer (-fsanitize=address) to verify.
#include <mbedtls/bignum.h>
#include <stdlib.h>

static int bignum_from_string(const char* input, mbedtls_mpi** output)
{
    mbedtls_mpi* mpi = NULL;

    *output = NULL;

    if ( (mpi = malloc(sizeof(*mpi))) == NULL ) {
        goto error;
    }

    mbedtls_mpi_init(mpi);

    if ( mbedtls_mpi_read_string(mpi, 10, input) != 0 ) {
        goto error;
    }

    *output = mpi;
    return 0;

error:
    free(mpi);

    return -1;
}

static int string_from_bignum(mbedtls_mpi* mpi, char** output)
{
    size_t olen;
    int ret;

    *output = NULL;

    ret = mbedtls_mpi_write_string(mpi, 10, NULL, 0, &olen);
    if ( ret != MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL ) {
        goto error;
    }

    if ( (*output = malloc(olen)) == NULL ) {
        goto error;
    }

    if ( mbedtls_mpi_write_string(mpi, 10, *output, olen, &olen) != 0 ) {
        goto error;
    }

    return 0;
error:
    free(*output);
    *output = NULL;
    return -1;
}

int main(void)
{
    const char* instr = "-1";
    mbedtls_mpi* outmpi;
    char* outstr;
    if ( bignum_from_string(instr, &outmpi) == -1 ) {
        return 0;
    }
    if ( string_from_bignum(outmpi, &outstr) == 0 ) {
        free(outstr);
    }
    mbedtls_mpi_free(outmpi);
    return 0;
}

Hi @guidovranken,
thanks, that clarifies things. The bug is not in mpi_write_hlp(), it's in the caller mbedtls_mpi_write_string():
https://github.com/ARMmbed/mbedtls/blob/f352f75f6bd5734c8f671323dd6ab32472d5da34/library/bignum.c#L604-L605
This increases the output pointer but doesn't decrease buflen. Luckily, it only occurs for negative numbers, and for those it's questionable why they are supported in the first place...
I'll open a PR with the fix.
Thanks again for your report,
Hanno

ARM Internal Ref: IOTSSL-2760

When will you merge the fix?


Update README.md

Summary
I improved the readme.md file's readability in order to make the contributing guidelines clearer to contributors.

[X] I have conducted a self-review of my content based on the c:
[X] Spelling and Grammar: I have checked for spelling or grammatical mistakes.
[X] Clarity: I have done a final read-through and verified that my submission is well-organized and easy to understand.
[X] Correctness: The information I include is correct and all of my code executes successfully.

@simonpfish  I have updated the readme.md file. Please merge this pr.

Hi @AnkitaSikdar005, we appreciate your contribution; however, I think the current language is better. Thanks!


Version Number set to global

Version Number set to global now in
stack_revTinyIDE_35305.livecodescript

Whoops missed this ... for a long time.
This has now been hard coded, no global needed.


Add drop_example flag to the RunInference and Model Handler

Fixes: https://github.com/apache/beam/issues/21444
Added a flag drop_example. This can be passed to RunInference API to drop the example from the PredictionResult.
if drop_example is True, prediction_result.example would be None

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

Run Python 3.9 PostCommit

One more way to do this is to pass the flag through the ModelHandler. The reason why I added it in the RunInference because RunInference emits PredictionResult and I thought it would be the appropriate place to control how the output[prediction result] should look.

One more way to do this is to pass the flag through the ModelHandler. The reason why I added it in the RunInference because RunInference emits PredictionResult and I thought it would be the appropriate place to control how the output[prediction result] should look.

I agree

PTAL @yeandy @damccorm

If this gets merged before TensorRT, we'll need to remember to rebase that.

I'd vote we let that one merge first since it is the higher complexity change (and less easy for us to control). Its currently just blocked on Python PreCommit flakes I think

Run Python 3.8 PostCommit

stop reviewer notifications

That looks right to me, lets run the PostCommit as well though

Run Python 3.8 PostCommit

@AnandInguva looks like there's a linting violation. If that is fixed and we have a successful postcommit run I think this should be good to merge.

https://ci-beam.apache.org/job/beam_PostCommit_Python38_PR/603/console passes

Run Python PreCommit


Passing commandline arguments to an SBT script doesn't work in 0.13.1

Given an executable file called 'sbt-test.scala' which contains the code below, attempting to run using SBT 0.13.1 with the following args yields errors:
$ ./sbt-test.scala --arg=val
[error] Expected ID character
[error] Not a valid command: arg
[error] arg=val

$ ./sbt-test.scala  --flag --arg=val
[error] Not a valid command: flag
[error] flag

Running the same commands but with SBT 0.13.0 completes successfully and yields expected output without any errors
#!/bin/sh
SBT_0_13_0="/opt/tripadvisor/l/data/multilib/sbt/0.13.0/sbt-launch-0.13.0.jar"
SBT_0_13_1="/opt/tripadvisor/l/data/multilib/sbt/0.13.1/sbt-launch-0.13.1.jar"
SBT="$SBT_0_13_1"
exec java -Dsbt.main.class=sbt.ScriptMain -jar "$SBT" $0 "$@"
!#

/***
scalaVersion := "2.10.3"

libraryDependencies ++= Seq(
  "com.typesafe" % "config" % "1.0.0"
)
*/

import com.typesafe.config.{ConfigFactory, Config}

println(s"Args: ${args mkString ", "}")

val cfg = ConfigFactory.parseString(
  """
    |credentials {
    |  user = someone
    |  pass = s3cr3t
    |}
  """.stripMargin)

println(cfg getString "credentials.user")

This must've broke with the 0.13.1 feature:
"Early commands: any command prefixed with -- gets moved before other commands on startup and doesn’t force sbt into batch mode."
0.13.1 release notes

+1

Any updates to this?

Have you tried on 0.13.9?

Pb is still there with 0.13.9 all arguments starting with "--" are interpreted by sbt and not passed to the scala scripts as arguments. Other pattern are successfully passed

Seems like this would be a fix that someone out there in open-source land could reasonably tackle without having to learn tons about how sbt works? I assume that's why @jsuereth tagged it "community".
Maybe a bare -- option should terminate the special handling and signal that remaining flags would be passed to the script? I haven't though it through, but I've seen this in other command-line tools (e.g. grep).

+1 on what @SethTisue said.

Write a rather large script with some deps in it and experiencing same thing with sbt 0.13.9, switching to 0.13.0 and the script works perfectly fine.
+1

This will be fixed in sbt 1.0 via #2741

This is why I am never using sbt again.


alexa cant discover devices

hi im a newbie i just installed everything. and followed everything listed in wiki but still my alexa can not discover the device.
my log is like this
1 Jul 18:09:25 - [info] Starting flows 1 Jul 18:09:25 - [info] Started flows 1 Jul 18:09:25 - [info] [mqtt-broker:<IP_ADDRESS>] Connected to broker: mqtt://<IP_ADDRESS>:1883 1 Jul 18:09:55 - [info] Stopping flows 1 Jul 18:09:55 - [info] Alexa Local Hub closing done... 1 Jul 18:09:55 - [info] [mqtt-broker:<IP_ADDRESS>] Disconnected from broker: mqtt://<IP_ADDRESS>:1883 1 Jul 18:09:55 - [info] Stopped flows 1 Jul 18:09:55 - [info] Starting flows 1 Jul 18:09:55 - [info] Started flows 1 Jul 18:09:55 - [info] [mqtt-broker:<IP_ADDRESS>] Connected to broker: mqtt://<IP_ADDRESS>:1883

You probably didn't follow everything, check issues around here with the same topic you opened and you will loose less time find answer yourself.

ive done port forwarding ive checked that its running under docker as host, im sure all of them are in the same network
[info] Alexa Local Hub closing done...
is this normal?

Have a look on the next issue just closed

i didnt get what he meant by downstream sorry im a newbie. and im using alexa client on my phone do i need to get echo for it to work?

forget about complicated things, focus on simplest ones. He forgot to place devices on the flow and connect to the hub, you did that? The discovery on the hub is flagged? Hub is listening to the port 80? There is only one IP address on your device? Are Alexa and device placed under the same LAN? Doesn internet work too?
There are lot of newbies users which prefer to ask instead on answer themself such questions..

no ive done everything really before opening this issue.
3 Jul 15:40:45 - [info] Alexa Local Hub closing done...
3 Jul 15:40:45 - [info] [mqtt-broker:<IP_ADDRESS>] Disconnected from broker: mqtt://<IP_ADDRESS>:1883
3 Jul 15:40:45 - [info] Stopped flows
3 Jul 15:40:45 - [info] Starting flows
3 Jul 15:40:45 - [info] Started flows
3 Jul 15:40:45 - [info] [mqtt-broker:<IP_ADDRESS>] Connected to broker: mqtt://<IP_ADDRESS>:1883
is that alexa local hub closinf done happen to all?

keep reading and trying, you're gaining good experience :)
I'm sure you will succeed like all of us :)

it's a pity no one here writes the answer...

sudo iptables -t nat -L --line-numbers (if it doesn't say anything about 8083/your port, then it's clear that it doesn't work)
sudo iptables -I INPUT 1 -p tcp --dport 80 -j ACCEPT
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8083
For the Node-Red Adapter insert port 8083 at the "Amazon Echo Hub" node and click deploy in the upper right corner and it works or it finds the devices and it is green.
Another time sudo iptables -t nat -L --line-numbers (see if it says 8083, if it does then it should work)
Now the whole thing must be saved permanently if the device is restarted
sudo apt-get install iptables-persistent
sudo bash -c "iptables-save > /etc/iptables/rules"  | or service iptables save |  if the 1 does not work, in any case the problem is the saving

It does not work with most of them because it is not saved permanently and the port forwarding is gone again at the next restart. Therefore save the iptable or port forwarding at the end.

The solutions are around all closed issues in this repository. You need to read more I guess.
Have a look here: https://github.com/datech/node-red-contrib-amazon-echo/issues/5#issuecomment-456573898

it's a pity no one here writes the answer...
1. sudo iptables -t nat -L --line-numbers (if it doesn't say anything about 8083/your port, then it's clear that it doesn't work)

2. sudo iptables -I INPUT 1 -p tcp --dport 80 -j ACCEPT

3. sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8083

4. For the Node-Red Adapter insert port 8083 at the "Amazon Echo Hub" node and click deploy in the upper right corner and it works or it finds the devices and it is green.

5. Another time sudo iptables -t nat -L --line-numbers (see if it says 8083, if it does then it should work)
   Now the whole thing must be saved permanently if the device is restarted

6. sudo apt-get install iptables-persistent

7. sudo bash -c "iptables-save > /etc/iptables/rules"  | or service iptables save |  if the 1 does not work, in any case the problem is the saving

It does not work with most of them because it is not saved permanently and the port forwarding is gone again at the next restart. Therefore save the iptable or port forwarding at the end.

1. sudo iptables -t nat -L --line-numbers (wenn hier nichts von 8083/euren Port steht, dann ist es klar, dass es nicht geht)

2. sudo iptables -I INPUT 1 -p tcp --dport 80 -j ACCEPT

3. sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8083

4.

5.  Deshalb am Ende das iptable bzw. die Portweiterleitung speichern.

thank you so much , i couldnt find these detailed steps anywhere . really thank you

it's a pity no one here writes the answer...
1. sudo iptables -t nat -L --line-numbers (if it doesn't say anything about 8083/your port, then it's clear that it doesn't work)

2. sudo iptables -I INPUT 1 -p tcp --dport 80 -j ACCEPT

3. sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8083

4. For the Node-Red Adapter insert port 8083 at the "Amazon Echo Hub" node and click deploy in the upper right corner and it works or it finds the devices and it is green.

5. Another time sudo iptables -t nat -L --line-numbers (see if it says 8083, if it does then it should work)
   Now the whole thing must be saved permanently if the device is restarted

6. sudo apt-get install iptables-persistent

7. sudo bash -c "iptables-save > /etc/iptables/rules"  | or service iptables save |  if the 1 does not work, in any case the problem is the saving

It does not work with most of them because it is not saved permanently and the port forwarding is gone again at the next restart. Therefore save the iptable or port forwarding at the end.

1. sudo iptables -t nat -L --line-numbers (wenn hier nichts von 8083/euren Port steht, dann ist es klar, dass es nicht geht)

2. sudo iptables -I INPUT 1 -p tcp --dport 80 -j ACCEPT

3. sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8083

4.

5.  Deshalb am Ende das iptable bzw. die Portweiterleitung speichern.

That worked for me thanks.

I too am new to this.  The above advice seems logical, if I have a stand alone NodeRed server.  Mine is installed in Home Assistant with the pluggin and thus is probably running in its own container.  I have no clue how to get access to the shell of that container to do most of the above.  The install instructions seem to indicate I should not have to.
I found this looking for certainty in how I have configured the pluggin,   I think the instruction page could be a little clearer regarding the options necessary to at least make people sure they have done the configuration correctly before looking for help.
i.e.  Should Topic be blank?  What are the Process, Input options all about.  etc.
For now I'm off to hard boot my HA server as that often fixes issues like this with NR.


Fixes for false positives in unused-components rule

Renamed RuleSetExecution.SpecFileNam to SpecFilePath because it's actually set to the path, not just the filename

Recursively build reference maps in unused-components check

This relies on https://github.com/pb33f/libopenapi/pull/322 which is why the build is failing

https://github.com/pb33f/libopenapi/pull/322 was merged.

@daveshanley Can we get this merged so it doesn't get stale? :)


Update list of python versions

Man, our python versions are OLD now.
Update to make "latest" the default, and give 3.11, 3.10, 3.9 as options

Completed in #243


TypeScript Compatibility

I was wondering if there are plans to make the package compatible with TypeScript? If not in the project, then in DefinitelyTyped? I created the types in my project and if there's enough requirement, can raise a PR here or on DefinitelyTyped.

Personally, I don't have any intention of adding ts support this package. Happy to do so if you want to contribute ts types. I reckon just publish the types from this package. That is the most convenient way to consume them right?


Cooldown Bug Report

Originally posted by @Bradler26 in https://github.com/SmartlyDressedGames/Unturned-3.x-Community/issues/1704#issuecomment-629386600
My version fixed a bug where cooldowns were not working correctly. Rocketmod prioritised the highest cooldown for some reason and I believe it also ignored people with a 0s cooldown and rather gave them a cooldown with higher seconds (If they were in a group that had the same command with different cooldowns.
From scrolling through Dms he mentioned that this is how Rocketmod handled cooldowns so he made it prioritise the lowest cooldown instead
applyingPermissions.Where(p => p.Cooldown != 0).OrderByDescending(p => p.Cooldown).FirstOrDefault();

It is better if rocketmod handle it based on group priority


Better groups and new validation mechanic

Please check if the PR fulfills these requirements

[x] The commit message follows our guidelines
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
New group system and revamped validation system.

What is the current behavior? (You can also link to an open issue here)
#259

What is the new behavior (if this is a feature change)?
See #259

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
Change schema for groups

Other information:
This is still a WIP, I tried to modify the group first but faced many issue related to the current validation system.
So I went back and started to work on validation. Instead of using strongly bonded parent/child relationship, it now use an event bus. All event circulate on this event bus.
As of now, it is more of a POC than the final implementation.
I use the internal property "_uid" of vue objects and I don't think you can use more than one vue-form-generator by page (they will use the same event bus and no id is created, so validation one vfg will trigger all the validation) EDIT: fixed.
I'm going to tackle these issues first, then, implement groups. At this point, validation should be independent from structure and allow more flexible solutions.
@zoul0813  Please take a look if you have time and help me find unforeseen consequences.

Now instead of a global event bus for the whole component, a new one is created per instance and send down to children with props.
I have added a test with 2 instance of vfg on the same page and they are isolated from each other.

Groups are working. There is a lot of changes.
form-group is now form-element and form-group is a recursive component that allow for the flexibility enabled by this new system.
form-element should be seen as a wrapper of fields. It take care of label, help, buttons, hint and error display, as well as the field in itself. It also take care of fieldID and classes.
A group is a special type of field.
{
    type: "group",
    legend: "My new group",
    styleClasses: "nice-group",
    tag: "section",
    fields: [...]
}

In a way, schema is just the main group of your form.
Now you can do that without problem (taken from the new grouping dev example)
schema: {
    fields: [
        {
            type: "group",
            legend: "Contact Details",
            tag: "div",
            fields: [
                {
                    type: "input",
                    model: "name",
                    label: "Name",
                    fieldOptions: {
                        inputType: "text"
                    },
                    required: true,
                    validator: ["required"]
                },
                {
                    type: "group",
                    legend: "Subgroup",
                    styleClasses: "subgroup",
                    tag: "fieldset",
                    fields: [
                        {
                            type: "input",
                            model: "subname",
                            label: "Name",
                            fieldOptions: {
                                inputType: "text"
                            },
                            required: true,
                            validator: ["required"]
                        }
                    ]
                },
                {
                    type: "input",
                    model: "email",
                    label: "Email",
                    fieldOptions: {
                        inputType: "email"
                    }
                }
            ]
        },
        {
            type: "input",
            model: "single",
            label: "Single field (without group)",
            fieldOptions: {
                inputType: "text"
            },
            required: true,
            validator: ["string"]
        },
        {
            type: "group",
            legend: "Other Details",
            fields: [
                {
                    type: "input",
                    model: "others.more",
                    label: "More",
                    fieldOptions: {
                        inputType: "text"
                    }
                },
                {
                    type: "input",
                    model: "others.things",
                    label: "Things",
                    fieldOptions: {
                        inputType: "text"
                    }
                }
            ]
        }
    ]
}

Many things have been changed, I tried to stop using Lodash forEach and use ES6 forEach instead. Nothing against Lodash, but I think the native implementation is good enough.
Other time, I used Lodash isNil, isFunction, etc instead of manually checking.
I also changed the way the fieldUID are created. Before, I was using the internal vm._uid but now it use a mix of fieldID and Lodash uniqueID. For now this uid is use very loosely, but I think that having them could be useful for future needs.
Now for the caveats and limitations I was able to detect.
Group don't validate. Validation is using an event bus and is uncorrelated to structure. Events don't traverse the structure tree so group don't know the validation state of their children.
There is possible solution to find this information and maybe uid are also opening other way to do that. I will not fix it right now (will be explored in future patch/minor version).
Manual validation return a promise and is asynchronous. Since everything communication through the event bus (and by event), there is no way to fall back toward synchronous validation for the whole form.
It doesn't change the way single validator works as far as I know.
<vue-form-generator ... ref="form"><vue-form-generator>

/* Old way */
myManualValidation() {
    let errors = this.$refs.form.validate();
    if(errors.length > 0) {
        // Validation error
        console.warn("Error during validation", error);
    } else {
        // No validation errors
        // ...

    }
}
/* New way */
myManualValidation() {
    this.$refs.form.validate().then(
        () => {
            // No validation errors
            // ...
        },
        (error) => {
            // Validation error
            console.warn("Error during validation", error);
        }
    );
}

I'm going to work on the validation states now.
The idea is to implement a dirty variable to have a third validation state (untouched, error and valid).
I will have a lot of work toward tests and documentation. While working on that I noticed a lot of missing documentation or errors in it. This update will be jarring to many users since it will require them to change a lot of options. We cannot release something without an good documentation.
@vue-generators/vfg In the meantime, please challenge and test my PR.  Thank you all !

Coverage decreased (-1.5%) to 87.5% when pulling 7ff944346b7b6baf0637b90bc2608f68aa874fae on lionel-bijaoui:lb_better_groups into c0b65b53b9a98284815f6c9f2d63aaad79bd2f6a on vue-generators:v3.

I forgot to remove some big skip.
They are all about the new validation which is now a promise and not a synchronous validation.


Prevent resetting vote count on commit

Originally, I believed a change like this would allow someone to collect "yay" votes, then slip in a malicious change at the last minute and get approved.  But because a new commit pushes the voting window out again ~2 hours, there doesn't seem to be any "last minute."  :+1:

Alright thanks for the heads up on the new commit setting the voting window out 2 hours. But since #48 killed the server, doesn't that mean it went through?
Was there a 2 hour period where no one voted no? Did they think that it already had enough nay votes because the number of negative reactions looked overwhelmingly negative or did the PR slip through unnoticed during that 2 hour period.

@MINIMAN10000

Did they think that it already had enough nay votes because the number of negative reactions looked overwhelmingly negative

I believe that's what happened.  Take a look at the merge commit https://github.com/chaosbot/chaos/commit/9500e94fbb90a5589b92242ff28ef173836cc4e6.  It was only counting votes after the most recent change, and attention had mostly died down.

i honestly can't wait until this merges

I'm not voting either way on this, but it should be noted that something similar to #48 may happen again for similar reasons (mostly because Github sorts PRs by creation date by default). Somebody could post something cool or funny with WIP in the title, get a fair number of up votes, and change the PR to something malicious a day later after it's fallen farther down the list. Then it'll be up to the people who are both watching that thread (or the entire repo) and awake to draw enough attention to it to drown out the previous upvotes before the window closes.

I was too late. Oh, the humanity. Or is that irony because of the similarity of the situation to the theoretical attack I described?

I agree with you @reddraggone9.  I think this is one of those lesser evil situations.  Doesn't seem to be a clean way to not have some chance of merging malicious code in through deception

@reddraggone9 the way I saw it we either dealt with the fact that the voting numbers made people feel like they didn't need to vote it down which would result in passing the vote silently and what I have currently changed it to, we know the votes the PR. The only problem is what the PR could potentially change.
I would recommend to change the voting again. I have two recommendations

Look through the time on all votes. Only toss out the positive votes. Basically the opposite of how it was before this pull request.

This is part of the reason why I wanted this to be pulled, get_pr_comments since caused github to not send any comments before the requested time. I desire that we get all the votes from github and then parse them ourselves.

After a PR is passed instead of it immediately committing, chaosbot posts that the vote has passed and will enter a final voting period. People then vote on that chaos bot post which then finalizes the PR after the timer passes and it passes the second vote.


Visual Studio CPU usage spikes when working on a GetEditor() method for the Toolkit

This a crazy one!
I'm submitting this as an issue to help future visitors know they are not crazy, since I doubt JetBrains will ever have a chance to actually fix this and there isn't much that can be done on FullInspector's side.
Maybe this would be better suited to a wiki page.
I submitted a bug report to JetBrains, but, again, this is a pretty esoteric situation.

My workaround: use Rider to edit stuff related to the toolkit.
Rider flies even on a large solution and frequent reloads.

Issue description and investigation
I noticed that when creating editors using the toolkit, Visual Studio would use more and more CPU until it hanged. It eventually comes back to life, but can take a long time.
I tracked down the issue to double clicking anything inside a tkControlEditor GetEditor() method.
It seems related to the how partial classes are used in the toolkit. From what I could figure, ReSharper will make VisualStudio's analyzers repeatedly parse the code, which causes the high CPU usage.
Disabling the analyzers (with a ruleset file) didn't make any difference.
Once the GetEditor method grows a bit (over 50 lines or so), it'll be unbearable.
The issue is also present in DLL builds.
To discard any interference, I tested with the following (including combinations)
Visual Studio 2015, update1, update2, update3
Visual Studio 2017RC up to latest release as of 2016/12/26.
ReSharer 2016.1/2/3 up to EAP7.
Clean Windows install with clean VS (only ReSharper installed) and ReSharper installs (no plugins).
The issue will still occur even with ReSharper's solution analysis disabled.
It will not occur if we suspend ReSharper, but suspending it while the issue is happening will not make it stop.
Here's a gif of it going on. Double clicking literally anything inside a GetEditor method will trigger it the same.
The CPU usage will grow every time you select something, until it hangs.

Note: You'll notice I'm using C#6's nameof, but this is not related to the issue itself (tested on C#4 previously).

:(, Visual Studio 2017 works pretty well even without resharper. I doubt there is much that can be done on the FI side to fix this.

You bet.
Since I'm using Rider quite a bit (alongside with VS), I'm not feeling that much.
It is pretty bizarre, though!
If I had a bit more time, I would dig into it to try to understand just what could be happening behind the scenes.
I'll go ahead and close this issue. It'll still be around for people to search, but there isn't a lot that can be done about this.
Future travelers, here be dragons.


chore(deps): update module github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper to v1.23.0

This PR contains the following updates:

Package
Type
Update
Change

github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper
require
minor
v1.22.0 -> v1.23.0

Release Notes

terraform-ibm-modules/ibmcloud-terratest-wrapper (github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper)
v1.23.0
Compare Source
Features

added json comparison functions (#593) (1781c81)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

/run pipeline

:tada: This PR is included in version 2.10.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Clash of Clans crashing

On the latest version of Dopamine, iPhone 14 pro max on 16.4.1. Clash of clans crashes when opening the app. Anybody else having these issues?

Try installing the choicy tweak, on bigboss (http://apt.thebigboss.org/repofiles/cydia/dists/stable) repo. then  disabling tweak injection for clash of clans

choicy might work, also not a dopamine issue


Update ESPHome sample

[x] Set PIN20 to high
[x] Add preset commands as switch entity
[x] Add up/down/stop command as cover entity

[x] Make up/down continuous, with stop to stop movement

[ ] Add current height position to cover entity
[x] Add current height as sensor entity

Sometimes the desk height returns to 'unknown', which could be due to a reboot of the ESPHome device. I still have to figure out if this is due to a memory / power bug, or if there are other problems.

position feedback and control: #57


added media query for score page

Add media query for score page with screen of max width 500px.

Add media query for score page with screen of max width 500px.


IE 11 problem with generate pdf in new window

Hi,
I have problem with generate pdf in new window, i try use but not working Downloadify.

In IE 11 dowloadify doesnt need to be used.
Describe your problem pls

I have probem with printDoc.output("dataurlnewwindow"); in ie, pdf is not create. When i try use printDoc.save() all time i get object BufferArray.

I finde information about problem ie with pdf: https://msdn.microsoft.com/en-us/library/cc848897(v=vs.85).aspx

#697


skhd: switch to apple-sdk_11

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 352625

x86_64-darwin

:white_check_mark: 1 package built:

skhd

aarch64-darwin

:white_check_mark: 1 package built:

skhd

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 352625

x86_64-linux

aarch64-linux

x86_64-darwin

:white_check_mark: 1 package built:

skhd

aarch64-darwin

:white_check_mark: 1 package built:

skhd

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 352625

x86_64-linux

aarch64-linux

x86_64-darwin

:x: 1 package failed to build:

skhd

aarch64-darwin

:white_check_mark: 1 package built:

skhd

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 352625

x86_64-linux

aarch64-linux

x86_64-darwin

:white_check_mark: 1 package built:

skhd

aarch64-darwin

:white_check_mark: 1 package built:

skhd