fix(router): add set-misc module to nginx build

The commit c7c895c fixes the affinityArg hashing issue by using the
set_random directive on the nginx configuration, but forgets to
include the module in which it is declared. This commit fixes this,
while also tries to make the build script a little cleaner and
include integrity checks for all downloads.
Closes #3964.
Replaces #4008.
Includes (and extends) verifications added by #3954.

Thanks for the contribution! Please ensure your commits follow our style guide. This code will be tested once a Deis maintainer reviews it.

Jenkins, add to whitelist.

It's weird, the checksums are failing when running the docker build… I just double-checked the hashes and they are all fine:
128b56873eedbd3f240dc0f88a8b260d791321db92f14ba2fc5c49fc5307e04d  /data/naxsi-0d53a64ed856e694fcb4038748c8cf6d5551a603.tar.gz
80b6425be14a005c8cb15115f3c775f4bc06bf798aa1affaee84ed9cf641ed78  /data/nginx-1.9.2.tar.gz
501f299abdb81b992a980bda182e5de5a4b2b3e275fbf72ee34dd7ae84c4b679  /data/ngx_devel_kit-0.2.19.tar.gz
8d280fc083420afb41dbe10df9a8ceec98f1d391bd2caa42ebae67d5bc9295d8  /data/set-misc-nginx-module-0.29.tar.gz

I'll investigate a little more.

Somehow I removed a whitespace from the checksum verification, when refactoring into a function.
It should be fixed now.

Code LGTM. Here's from the router build step:
...
nginx-1.9.2.tar.gz: OK
0d53a64ed856e694fcb4038748c8cf6d5551a603.tar.gz: OK
v0.2.19.tar.gz: OK
v0.29.tar.gz: OK
checking for OS
 + Linux 3.13.0-32-generic x86_64
...

Code LGTM


Settings UI: Add separator for sync setting

This PR fixes #91395

I made the change so I can get this in today - thanks for the PR!


Improve the sessions list view

https://www.figma.com/file/HUysJAhv6cK6p1Pc81Fxaa/Matrix-Authentication-Service-(MAS)?type=design&node-id=4344-10620&mode=design&t=fYw0aza1SK7JICbo-4

Some of this has been done in #2393


Rename common target

common is a potentially ...common... target name that might cause issues if including this project using something like CMake's FetchContent as in our use case. There may be a more elegant solution, but renaming the target to something more specific (gse_common) is a simple fix.

IMO, we should have just pulled those files into the gse/src directory. Those in common existed for historical reasons, as you know. No real need for a separate library here.

That was my original thought but I went for the smallest logical change just to unlock our FetchContent requirement


v1.0: setup release channels

We already have a few release channels:

master: rolling assumed stable.
next: tracks upstream/master, tests unstable new things
stable: each change merged into stable is extensively tested and peer-reviewed.

These rules are not yet enforced.

Planned channels:

stable: kernel 4.9.x, buildroot 2018.02-rc1 (stable release imminent)
next: kernel 4.14.x, buildroot next (latest releases of all components)
master: kernel 4.14.x, buildroot master


Add TGrid under TSTL in Libraries

I've migrated C++ STL (Standard Template Library) in TypeScript. However, I couldn't migrate thread and network modules from C++ to TypeScript for many years, because I had thought that there's no way to implement those modules following C++ standard.
At now, I've found an alternative solution and have implemented them as an extension pack. Can you accept such PR? I want to add the extension under TSTL in the Libraries section. Thanks for your long time maintenance and contribution.

https://github.com/samchon/tstl/issues/22

Wow! Thank you for your work!


speed up test suite

including the compression tests in #12 expanded the testing time to 15-30min because all Autobahn|Testsuite cases are run in the same module (sync with respect to each other)
this is ideal for testing the performance of Mint.WebSocket but not for testing for the sake of CI and correctness
I bet we can run multiple tests from the Autobahn|Testsuite at once and get a big speed up without compromising the correctness checks
benching should probably be done separately anyways

I see the following tracing the slowest tests:
Finished in 897.2 seconds (897.2s async, 0.00s sync)

Top 15 slowest (266.3s), 29.7% of total time:

12.3.15 23312.9ms
12.3.16 22387.9ms
12.3.18 22314.1ms
12.3.17 22304.4ms
12.3.10 21200.7ms
12.2.15 17937.3ms
12.2.17 17825.1ms
12.2.16 16873.2ms
12.2.10 16670.2ms
12.2.18 16615.8ms
12.5.15 14790.8ms
12.5.16 13867.7ms
12.5.17 13588.2ms
12.5.18 13365.1ms
12.5.10 13321.1ms

(this is edited for readability to omit test name and instead use case ID)

by entirely excluding the compression suite we can get down to ~1min (216 tests excluded)

I played around a bit with parallelizing the tests and the Autobahn|Testsuite got a little flaky on me
https://github.com/NFIBrokerage/mint_web_socket/commit/03cbd745c196ef69582bb700861e55cac88d54ac closes this by omitting stress tests of the compression instead. If one is interested in how Mint.WebSocket (or frankly :zlib) handles compression, they may include those tests themselves, but the stress tests aren't really useful for testing correctness :upside_down_face:

down to ~100s locally, could remove more tests cases but this seems fine for now

looks like ~3min on the CI servers


Scryfall data unavailable

Hi there! Great work and I highly appreciate it!
Unfortunately, when I try to upload DMU set, I cannot reach Scryfall data.

Is this because of embargo? Is it just me?
Also, is there anything I can do with that?
Win build 3.03

Could you click on the Default Settings button in the settings window and re-try the download?
Also, could you attach your debug.log file from the Debug folder?
Thanks.

Thank you for the quick response!
<09/15/2022 12:20:55>,https://www.17lands.com/card_ratings/data?expansion=DBL&format=QuickDraft&start_date=2019-1-1&end_date=2022-09-15&colors=BG
<09/15/2022 12:20:55>,retrieve_17lands_data Error: HTTP Error 503: Service Temporarily Unavailable
debug.log
Also, tons of errors
<09/15/2022 11:38:24>,__arena_log_check Error: [WinError 3]
And some
<09/15/2022 11:35:37>,Couldn't Collect Local Card Data
<09/15/2022 11:37:08>,_process_scryfall_data Error: 'image_uris'

Thanks for the log.
The tool searches the C,D,E,F drives for the Player.log file.
Example: C:\Users\bstaple1\AppData\LocalLow\Wizards Of The Coast\MTGA\Player.log
What drive letter are you using?

C, D and E

Can you identify the location of the Player.log file?
Is it in any of the <Drives C,D, or E>:\Users<Username>\AppData\LocalLow\Wizards Of The Coast\MTGA\Player.log folders?

C:\Users\N******v\AppData\LocalLow\Wizards Of The Coast\MTGA
It tries to search "N.***" user, while logs and everything is on "N ....V"

Works superb! 2 more questions: 1) is there a way to manually upload json into the Magic Draft? Like if I have json and wanna use it manually? 2) I uploaded 7 more sets for Quick and Premier draft today. Should I reupload them anyhow now? Or it will work fine?

I'm going to need more context to answer this question
That shouldn't be necessary. The sets that you've already downloaded should work.
No, there's no auto update for the set data. 17Lands only updates their data once a day sometime between 01:30 and 03:00 UTC.

Note: 17Lands will time out a download request, producing the HTTP Error 503: Service Temporarily Unavailable result, if you try to download too many sets within a short period of time. Try to only download at most 2 sets in a 15 minute period

Got it!


Highlight/visualise highway=footway and highway=pedestrian with bicycle=yes

Highlight/visualise highway=footway and highway=pedestrian with bicycle=yes
examples:

footway: https://www.openstreetmap.org/way/610286723
pedestrian: https://www.openstreetmap.org/way/444907277

and cycleway=share_busway as well

example: https://www.openstreetmap.org/way/151342072

How would you expect the shared bus lane to be visualized?


Setup.py long_description

Overview
Most Python packages directly include their repo's README as the long description for PyPI. I am concerned that our README is too long for this. Perhaps we should have a more concise version for PyPI?

Might be related to #39

Yes, I also think that the whole README is too much text.
Do you want to add to the long description actual code listings? Or do we only want to include the features list of the README as the long description?

For the long description I would suggest:
Turn Twitch chatter into Python events.

Features
    Pure Python: No extra dependencies. Just plain and simple Python.

    Event Based: Makes writing apps easy and straightforward.
    Context Manager: Further simplifies working with observers.

I've used an abbreviated version of our README.md. I tried using pypandoc to convert it dynamically, but without much luck. For the time I've just hard coded the description.


e.Handled = true does not suppress key actions

I'm following the example in vb.net to suppress ALL keys globally, it logs the keys as they are pressed, but they are still sent to the app (e.g. notepad), although I set e.handled=true. Here's the main code:
`
Imports System.ComponentModel
Imports Gma.System.MouseKeyHook
Public Class frmLockScreen
Private m_GlobalHook As IKeyboardMouseEvents
Public Sub Subscribe()
    '  Note: for the application hook, use the Hook.AppEvents() instead
    m_GlobalHook = Hook.GlobalEvents()
    AddHandler m_GlobalHook.KeyPress, AddressOf GlobalHookKeyPress
End Sub

Public Sub Unsubscribe()
    If Not IsNothing(m_GlobalHook) Then
        RemoveHandler m_GlobalHook.KeyPress, AddressOf GlobalHookKeyPress
        m_GlobalHook.Dispose()
    End If
End Sub

Public Sub GlobalHookKeyPress(ByVal sender As Object, ByVal e As KeyPressEventArgs)
    Debug.Print("KeyPress: " & vbTab & "{0}", e.KeyChar)
    e.Handled = True
End Sub

Private Sub frmLockScreen_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Subscribe()
End Sub

Private Sub frmLockScreen_Closing(sender As Object, e As CancelEventArgs) Handles Me.Closing
    Unsubscribe()
End Sub

End Class
`
Am I doing something wrong, or is this a bug?

Applications may still be responding to "KeyDown" and "KeyUp" events. If you want the keystrokes to be completely consumed, you need to subscribe to those events as well and run e.Handled = true.

Thank you, Essoperagma, that did the trick. Excellent!


rtsp from Camera-Hub-G2H not work

Hi! Please help me.
rtsp from Camera-Hub-G2H not work.
streams:
  Camera-Hub-G2H-030D:
  - homekit://<IP_ADDRESS>:45668?device_id=58:3D:62:DF:31:EC&device_public=&client_private=

Proxy HomeKit camera work perfect!

streams:
Camera-Hub-G2H-030D:

homekit://<IP_ADDRESS>:45668?device_id=58:3D:62:DF:31:EC&device_public=243c08789377eda10821424abb00b6164c8309654a9ad4a452045cbc056bf193&client_id=3145c257-da2b-2098-03d3-94eb9b721c06&client_private=625be436240b1aa4ff2608e8dedf6718765d587bd2c25d47d624b578d7c40e0d4fcd204e87e22e5f50ec8dcebe519d761ca1dcd683fec554494842f25e6d24d9
ffmpeg:aqara_g3#audio=aac#audio=opus

19:01:48.074 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -re -i aqara_g3 -map 0:a:0? -c:a:0 aac -map 0:a:0? -c:a:1 libopus -application:a:1 lowdelay -frame_duration 20 -min_comp 0 -vn -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
[in#0 @<PHONE_NUMBER>ce5280] Error opening input: No such file or directory
Error opening input file aqara_g3.
Error opening input files: No such file or directory
19:02:01.704 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -re -i aqara_g3 -map 0:a:0? -c:a:0 aac -map 0:a:0? -c:a:1 libopus -application:a:1 lowdelay -frame_duration 20 -min_comp 0 -vn -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
[in#0 @ 0000012afae7fa40] Error opening input: No such file or directory
Error opening input file aqara_g3.
Error opening input files: No such file or directory

Your config wrong. You don't have aqara_g3 stream

streams:
Camera-Hub-G2H-030D:

homekit://<IP_ADDRESS>:45668?device_id=58:3D:62:DF:31:EC&device_public=243c08789772eda10821424abb00b6164c8309654a9ad4a452045cbc056bf193&client_id=3145c257-da2b-2098-03d3-94eb9b721c06&client_private=625be436240b1aa4ff2604e9dedf6718765d587bd2c25d47d624b570d7c40e0d4fcd204e87e22e5f50ec8dcebe549d761ca1dcd683fec554494862f25e6d24d0
ffmpeg:Camera-Hub-G2H-030D#audio=aac#audio=opus

homekit:
Camera-Hub-G2H-030D:                   # same stream ID from streams list
pin: 12345678           # custom PIN, default: 19550224
name: Camera-Hub-G2H-030D     # custom camera name, default: generated from stream ID
device_id: Camera-Hub-G2H-030D1       # custom ID, default: generated from stream ID
device_private: Camera-Hub-G2H-030D
pairings:
- client_id=523685AC-4DF8-46F9-A08E-7FDD6937739A&client_public=e4cdab259eae67e679962c4b4d7a5205254d32e31acbaec832b9ad820c79652f&permissions=1
- client_id=5BA26AB6-D844-45AF-B907-2FA53D2E3646&client_public=84f7c9975d6da988f05c240ddc87a79539df18e4b9a20f8fb0d6f033317f786f&permissions=0

Apple home work good. But rtsp not work. VLC not work by link: rtsp://localhost:8554/Camera-Hub-G2H-030D

20:16:14.352 INF go2rtc version 1.8.4 linux/amd64
20:16:14.353 INF [rtsp] listen addr=:8554
20:16:14.353 INF [webrtc] listen addr=:8555
20:16:14.353 DBG [hass] can't import config: open .storage/core.config_entries: no such file or directory
20:16:14.353 INF [api] listen addr=:1984
20:16:20.886 DBG [rtsp] new consumer stream=Camera-Hub-G2H-030D
20:16:20.949 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_flags prefer_tcp -i rtsp://<IP_ADDRESS>:8554/Camera-Hub-G2H-030D?audio -map 0:a:0? -c:a:0 aac -map 0:a:0? -c:a:1 libopus -application:a:1 lowdelay -frame_duration 20 -min_comp 0 -vn -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
[rtsp @ 0x563651aa3c40] Unable to open RTSP for listening
rtsp://<IP_ADDRESS>:8554/Camera-Hub-G2H-030D?audio: Address already in use
20:16:21.035 DBG [streams] can't stop none producer
20:16:21.035 DBG [streams] start producer url=homekit://<IP_ADDRESS>:45668?device_id=58:3D:62:DF:31:EC&device_public=243c08789372eda10821424abb00b6164c8309654a9ad4a452045cbc056bf193&client_id=3145c257-da2b-2098-03d3-94eb9b721c06&client_private=626be436240b1aa4ff2604e8dedf6718765d587bd2c25d47d624b578d7c40e0d4fcd204e87e22e5f50ec8dcebe519d761ca1dcd683fec574494842f25e6d24d0
20:16:26.175 DBG [streams] retry=0 to url=homekit://<IP_ADDRESS>:45668?device_id=58:3D:62:DF:31:EC&device_public=243c08789372eda10821424abb00b6164c8309654a9ad4a452045cbc056bf193&client_id=3145c257-da2b-2098-03d3-94eb9b721c06&client_private=626be436240b1aa4ff2604e8dedf6718765d587bd2c25d47d624b578d7c40e0d4fcd204e87e22e5f50ec8dcebe519d761ca1dcd683fec574494842f25e6d24d0
20:16:31.423 DBG [streams] retry=0 to url=homekit://<IP_ADDRESS>:45668?device_id=58:3D:62:DF:31:EC&device_public=243c08789372eda10821424abb00b6164c8309654a9ad4a452045cbc056bf193&client_id=3145c257-da2b-2098-03d3-94eb9b721c06&client_private=626be436240b1aa4ff2604e8dedf6718765d587bd2c25d47d624b578d7c40e0d4fcd204e87e22e5f50ec8dcebe519d761ca1dcd683fec574494842f25e6d24d0
20:16:31.555 DBG [rtsp] handle=EOF
20:16:31.795 DBG [streams] stop producer url=homekit://<IP_ADDRESS>:45668?device_id=58:3D:62:DF:31:EC&device_public=243c08789372eda10821424abb00b6164c8309654a9ad4a452045cbc056bf193&client_id=3145c257-da2b-2098-03d3-94eb9b721c06&client_private=626be436240b1aa4ff2604e8dedf6718765d587bd2c25d47d624b578d7c40e0d4fcd204e87e22e5f50ec8dcebe519d761ca1dcd683fec574494842f25e6d24d0
20:16:31.795 DBG [streams] can't stop none producer
20:16:31.795 DBG [rtsp] disconnect stream=Camera-Hub-G2H-030D

Hi, I have the same camera and I'm facing this issue as well, but I've somewhat narrowed down the cause after some debugging.
In the videoToMedia() helper function, two CodecParams are reported for this camera, which are equivalent to H.264 Main Profile Level 3.1 and H.264 Main Profile Level 4.0 respectively (see print below).
core.Codec{Name:"H264", ClockRate:0x15f90, Channels:0x0, FmtpLine:"profile-level-id=4D001F", PayloadType:0x0}
core.Codec{Name:"H264", ClockRate:0x15f90, Channels:0x0, FmtpLine:"profile-level-id=4D0028", PayloadType:0x0}

The trackToVideo() helper subsequently uses the first available level, which is Level 3.1. However, that doesn't actually appear to work, and instead it is Level 4.0 that results in a successful stream.
One way to test this with the hardware is to temporarily change this line to hardcode camera.VideoCodecLevel40 instead:
https://github.com/AlexxIT/go2rtc/blob/7036d196be3c0dd475f9811ba8022c6b8b762a65/pkg/homekit/helpers.go#L98
Let me know if more details are required - at this point I'm not sure if the camera is wrongly reporting its support for Level 3.1.

@bebaton14 you have VERY old FFmpeg

@duncanleo I have tested G2H Pro. And haven't problem with default go2rtc behaviour. All works fine.

Thanks @duncanleo. You was right. Some bug in G2H firmware. Can't play stream with low level.
https://github.com/AlexxIT/go2rtc/releases/tag/v1.8.5

@AlexxIT thank you for fixing the issue!


Page Animations stuck on Chrome Canary 54.0.2787.0

In the latest Chrome Canary (Version 54.0.2787.0 canary (64-bit)) the page transition animations don´t work. (Can also be experienced on http://framework7.io/
It might be something that will get fixed in Chrome, but I guess it´s good to have a heads up...

See https://muut.com/framework7#!/framework7/questions:subnav-bar-material-design

Hi, thanks for reporting.
Are you refering to Desktop or Mobile Chrome?
Window or Mac?

Thanks! Ok, now it looks like it is everything ok in same stable branch versionThanks! Ok, now it looks like it is everything ok in same stable branch version


[SPARK-50647][INFRA] Add a daily build for PySpark with old dependencies

What changes were proposed in this pull request?
Add a daily build for PySpark with old dependencies
Why are the changes needed?
to guard the installation described in https://apache.github.io/spark/api/python/getting_started/install.html
Does this PR introduce any user-facing change?
no, infra-only
How was this patch tested?
PR build with
default: '{"PYSPARK_IMAGE_TO_TEST": "python-minimum", "PYTHON_TO_TEST": "python3.9"}'

Was this patch authored or co-authored using generative AI tooling?
no

pyarrow 10.0 fail both pyspark and pyspark connect
https://github.com/zhengruifeng/spark/actions/runs/12464102622/job/34787749014

pyarrow 11.0 failed pandas api on spark
https://github.com/zhengruifeng/spark/actions/runs/12466553986/job/34794456175

pyarrow 12 also fails PS
https://github.com/zhengruifeng/spark/actions/runs/12475279886/job/34818572182

pyarrow 13 also fails PS
https://github.com/zhengruifeng/spark/actions/runs/12475508159/job/34819092935

pyarrow 16 also fail PS
https://github.com/zhengruifeng/spark/actions/runs/12476053568/job/34820409194

Will send a separate PR to upgrade the minimum requirement of pyarrow to 11.0.0

thanks, merged to master


How to override the logic on the Basic create, retrieve, update and delete (CRUD) types and mutations

I will like to override the logic inside basic create mutation, much like in django restframework modelviewsets or serializers. What is the best way of doing this?

Upvote & Fund

We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.

Hi @sisocobacho ,
What exactly are you trying to override?
You can probably override the field to call your own function instead of the ones the current ones call for example. Or you can have a basic mutation and call the create/retrieve/update/delete functions for example.
If you want to give an example of a use case I can suggest something for you

Hello, Thanks for the suggestions. Basically what I am trying to do is insert business logic inside those mutation without having to rewrite a new one from 0 and make use. off the functionality that those mutations already have. For example doing something before or after saving the model in the create.

Yeah hooks are a great idea..

Hello everyone, are there any updates on the issue?
As an example use-case I would be interested in having something similar to:
@strawberry.type
class Mutation:
    @strawberry_django.mutation(description="Create my model.")
    def create_my_model(self, data: MyModelInput, info) -> MyModel:
        create_mutation = strawberry_django.mutations.create(MyModelInput)
        my_model = create_mutation(...)
        # additional logic goes here...

Since this issue only has 'documentation' label, I suppose this is already possible? If yes, would you please provide a simple code snippet on how to achieve it? Thank you in advance!

@arseniid yes, that should be possible. It is unfortunatly missing documentation, but in the meantime you can take a look at how DjangoCreateMutation works. Nut a quick example would be:
from strawberry_django.mutations import resolvers

@strawberry.type
class Mutation:
    @strawberry_django.mutation(description="Create my model.")
    def create_my_model(self, data: MyModelInputType, info: Info) -> MyModelType:
        input_data = resolvers.parse_input(info, vars(data))
        my_django_model = resolvers.create(
            info,
            MyModel,
            input_data,
        )
        # additional business logic goes here...

resolvers.parse_input and resolvers.create have some extra inputs that you might be interested. Also, the original code disables the DjangoOptimizerExtension while creating the model, which is optional and it is not a big deal if you don't do that.
The same goes for resolvers.update and resolvers.delete

@bellini666 thanks a lot for the quick response - works like a charm! I was missing the resolvers entry point here.


Flutter doctor wrongly suggests we have a plugin for WebStorm

Steps to Reproduce
Run flutter doctor. The output wrongly suggests that we have a plugin for WebStorm:
$ flutter doctor
...

[✓] IntelliJ IDEA Ultimate Edition (version 2016.2.5)
    • Dart plugin installed
    • Flutter plugin installed

[-] IntelliJ WebStorm (version 2016.2.4)
    • Dart plugin not installed; this adds Dart specific functionality.
    • Flutter plugin not installed; this adds Flutter specific functionality.
    • For information about managing plugins, see
      https://www.jetbrains.com/help/idea/2016.2/managing-plugins.html
...

Expected behavoir
We only support IntelliJ IDEA (Ultimate & CE), so only that should be printed in flutter doctor.

Fixed in https://github.com/flutter/flutter/commit/310b8053353f403b4a2cccd32bff56301a11ec65 ... or not?

Ah, yes, sorry my flutter was almost a week old :-)


Add Loading Animation on Booking Page After Search

🖥 Frontend Issue
Description
On the booking page, when a user initiates a search and presses Enter, there is no loading animation to indicate that the system is processing the request. This can cause confusion, as users may think the search isn’t working or that the page has frozen. A loading animation would improve the user experience by providing feedback during the search process.
Steps to Reproduce
1.Navigate to the booking page.
2.Enter search criteria (e.g., train name or number).
3.Press Enter to initiate the search.
4.Observe that there is no loading animation while the results are being fetched.
Expected behavior
After pressing Enter, a loading animation should appear to inform users that the search is in progress.
Actual behavior
No loading animation is shown, leading to a lack of feedback for users while waiting for search results.
Screenshots or Video

Are you participating in GSSoC?

[ x] Yes
[ ] No

please assign me this

@dhairyagothi assign me the issue!


controller jobs failing with cp: can't stat '/sbin/tini-static': No such file or directory

I have been using :latest from the image ghcr.io/buildkite/agent-stack-k8s/controller:latest and recently the jobs started failing with the following and not getting results:
kubectl -n buildkite logs buildkite-0192e235-5ef8-4375-951e-287b17b1da50-zl444 -c copy-agent

cp: can't stat '/sbin/tini-static': No such file or directory

Reverting to v0.16.1 based image seems to have fixed the issue.

tini-static was added to the agent image in the last release, and that should be the default image used by the controller. Have you configured a different agent image?

I'm closing this off since I haven't heard back from you, but if this is still happening with a newer agent image or with /sbin/tini-static installed in a custom image, please comment or open a new issue.


How to auto rename the file name of uploaded file or image?

How to auto rename the file name of uploaded file or image?
I mean when i upload an image or file, how to auto rename it?like slug, or use timestamp to file name

reasons

overwrites
add the date-time or other prefix to file name is good for manager. like slug
good for privacy protection, Because many files`s name is privacy

I think guys need this feature.Because many guys do not want to change local file name before upload.

This shouldn't happen by default, but should be possible through config, agreed.

I would like to add a 4th to the list. Recently I had an issue with a non-technical person uploading an image that had special characters (in my case the # sign) causing the static site to have an error during its' build. So:

Allows sanitizing uploaded file's name for technical reasons.

I think the fix for all these may need to be separate features though. 2-4 seem to work well with an automatic approach, but overwrites (no. 1) should probably have an option similar to delete in the media manager. Could be called reupload, but that might be too close to "upload" and be confusing to some.
You shouldn't be able to replace an image file just by uploading another of the same name as this could cause loss of data problems. So it should either follow a delete file -> upload new file pattern or have a special upload mode specifically for replacing.

@tech4him1 doesn't your slug sanitization work provide a solution for this?

4. Allows sanitizing uploaded file's name for technical reasons.

@tech4him1 doesn't your slug sanitization work provide a solution for this?

Sanitizing media filenames as well is part of https://github.com/netlify/netlify-cms/pull/1135.

Also @DomtronVox, uploading an image of the same name as an existing image currently triggers a prompt, it won't just overwrite.

It would be good if panel prompted the name before commit. As the config option.

Can we agree on the options ?
Suggestions:

OptionField
Value
Behaviour

rename

if option filename is not set, then same behaviou as of now

rename
prompt
prompts for a filename

filename
{{collection}}{{year}}-{{month}}{{filename}}
sets a prefix to the original filename

Same tag available as https://www.netlifycms.org/docs/configuration-options/#slug
In addition:

{{filename}}: original name of the file
{{collection}}: name of the collection
{{myField}}: name of a custom field in the collection

Templated default filenames makes sense, as well as prefixing and only allowing the user to add/edit a portion of the resulting filename (maybe). That's separate from the core issue of making the filename editable though. We should split this issue into two concerns:

Make filenames editable.
Provide "slug" features for media filenames.

Editable filenames is mostly a UI problem. The more complex issue of creating and enforcing slugs is larger than the problem at hand (#445).

I am not familiar with the codebase. Where should I look to allow renaming a file prior to upload in the UI?

Hi
Is this still something people want? I certainly would love to be able to rename my files/images before uploading them. If a maintainer could point me in the direction of the code for handling file uploads I would be happy to send a PR
Thanks

Hi @soneji, maybe we can do this as a part of https://github.com/netlify/netlify-cms/issues/4965?
The UI code for the media library is here https://github.com/netlify/netlify-cms/tree/master/packages/netlify-cms-core/src/components/MediaLibrary

:+1:
For another angle: I have clients that use an iPad to update content. It's awesome that they can select a photo from the iPhoto library on the device, however, iPhoto appears to export the image with a GUID file name. Being able to customize the file name at the time the file is uploaded would solve this issue. I mean, this is clearly iPhoto's fault... but since there's already a ticket open... :smile:


Allow trailing commas in array

Previously, allowTrailingCommas only allowed trailing commas in objects, and it would still return errors for JSON like [1, 2, ]. This was surprising to me as a user. Is there a reason for allowing trailing commas in objects but not arrays?
Also fixes the assertValidParse helper. It was not failing even when there were parse errors (because it only failed if there were parse errors AND the first parse error's code was "undefined"; I couldn't find a case where that would be true).

Makes sense, thanks @sqs !

Thanks for the quick merge! BTW we are shipping this in Sourcegraph Server for users and admins to edit config. It works great.


Backspace stops working on any EditText after using an scanner with RawKeyboardListener

Steps to Reproduce
Backspace stops working on any EditText after using an scanner with RawKeyboardListener  and scanning a string with a space followed with an uppercase letter.
Example of combination of strings that give the error: "1 A", "1 Z", "a A", "asd-2 P12".
Other examples that do not give the error: "1 a", "bas aA", "sa 2", "sa -".
When the backspace stops working, the onKey event is triggered, but the last letter from the TextEdit is never removed on any Text Edit, the only way to make it work again is to close and restart the app.
This error happens in the last beta channel 1.26.0-17.6.pre, the last dev channel 1.27.0-4.0.pre and in master channel.
This errors does NOT happen on the stable channel 1.22.6
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

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

class _MyHomePageState extends State<MyHomePage> {

  List<dynamic> characters = [];

  _submit() async {
    String scan = "";
    for (var msg in characters) {
      scan += msg;
    }

    textEditingController.text = scan;
  }

  handleKey(RawKeyEvent event) {
    if (event != null &&
        event.runtimeType.toString() == "RawKeyDownEvent" &&
        event.character != null &&
        event.character != "") {
      characters.add(event.character);
    }
    if (event.character == "\n") _submit();
  }

  TextEditingController textEditingController;

  @override
  void initState() {
    textEditingController = new TextEditingController();
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: RawKeyboardListener(
        focusNode: FocusNode(),
        onKey: handleKey,
        autofocus: true,
        child: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              TextField(
                controller: textEditingController,
              ),
            ],
          ),
        ),
      ),
    );
  }
}

Logs

Analyzing flutter_app...
No issues found! (ran in 9.6s)

[√] Flutter (Channel unknown, 1.26.0-17.6.pre, on Microsoft Windows [VersiÃ³n 10.0.18363.1379], locale ca-ES)
    • Flutter version 1.26.0-17.6.pre at C:\Users\Usuario\Desktop\Prova\flutter_edit_text\flutter_app\.fvm\flutter_sdk
    • Framework revision a29104a69b (8 days ago), 2021-02-16 09:26:56 -0800
    • Engine revision 21fa8bb99e
    • Dart version 2.12.0 (build 2.12.0-259.12.beta)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at C:\Users\Usuario\AppData\Local\Android\sdk
    • Platform android-30, build-tools 29.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] IntelliJ IDEA Community Edition (version 2020.2)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.2.3
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart

[√] VS Code (version 1.52.1)
    • VS Code at C:\Users\Usuario\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (2 available)
    • SM P550 (mobile) • e18aa98816fa02cd • android-arm    • Android 7.1.1 (API 25)
    • Edge (web)       • edge             • web-javascript • Microsoft Edge 88.0.705.68

! Doctor found issues in 1 category.

Hi @mmasdivins
Unable to reproduce it on Android 10 on the dev or master
https://user-images.githubusercontent.com/48603081/109000581-e9538100-76c9-11eb-8504-c709cabfdf55.mp4

flutter doctor -v
[✓] Flutter (Channel dev, 1.27.0-4.0.pre, on macOS 11.2.1 20D74 darwin-x64, locale en-GB)
    • Flutter version 1.27.0-4.0.pre at /Users/tahatesser/Code/flutter_dev
    • Framework revision f8cd24de95 (8 days ago), 2021-02-16 11:24:17 -0800
    • Engine revision 1d537824d6
    • Dart version 2.13.0 (build 2.13.0-30.0.dev)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.
[!] Xcode - develop for iOS and macOS
    • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.53.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.19.0
[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 11.2.1 20D74 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 88.0.4324.192
! Doctor found issues in 2 categories.

[✓] Flutter (Channel master, 1.27.0-5.0.pre.134, on macOS 11.2.1 20D74 darwin-x64, locale en-GB)
    • Flutter version 1.27.0-5.0.pre.134 at /Users/tahatesser/Code/flutter_master
    • Framework revision 354bd53f62 (5 hours ago), 2021-02-24 02:36:05 -0500
    • Engine revision<PHONE_NUMBER>
    • Dart version 2.13.0 (build 2.13.0-68.0.dev)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.
[!] Xcode - develop for iOS and macOS
    • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.53.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.19.0
[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 11.2.1 20D74 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 88.0.4324.192
! Doctor found issues in 2 categories.

Can you please provide device details? DId you try different devices?
Thank you

I did try with a Samsung SM P550 with Android 7.1.1 (API 25).
Now I did try with a Xiaomi Redmi Note 7 with  Android 10 (API 29) and it worked without any problem.
It might be the android version or maybe something with the Samsung devices, I will try to get some other devices to test it.

Hi @mmasdivins
I just borrowed Samsung Galaxy M30 (Android 10), no issues when running 1.26 (beta). I also tried on Android 7.1.1 emulator on a windows machine, no issues
Tried all the following combos
"1 A", "1 Z", "a A", "asd-2 P12". and then backspace

code sample

flutter doctor -v
[✓] Flutter (Channel beta, 1.26.0-17.8.pre, on macOS 11.2.2 20D80 darwin-x64, locale en-GB)
    • Flutter version 1.26.0-17.8.pre at /Users/tahatesser/Code/flutter_beta
    • Framework revision 044f2cf560 (2 days ago), 2021-02-24 13:02:05 -0800
    • Engine revision 042c82b02c
    • Dart version 2.12.0 (build 2.12.0-259.16.beta)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.
[!] Xcode - develop for iOS and macOS
    • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.53.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.19.0
[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 88.0.4324.192
! Doctor found issues in 2 categories.

Thank you

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


Compile assets in demo app test environment

This should improve the new setup workflow a bit as it stops cypress tests from relying on a specific test asset build.
We don't really care about different environments for the demo app so we can stand to have more parity between them. Allows the test environment to automatically compile assets if it needs to and bundles them in the same directory, no need for a separate packs-test directory.
Simplifies some of the documentation now there should be fewer gotchas.

@mec This is based on one of the changes you suggested last week. If you have time would you mind doing a fresh clone of the design system then from this branch try running ./bin/setup from the top-level and then ./bin/rails cypress:open from the demo app directory. Hoping this removes at least a bit of setup faff.

Meyric is off, given this is all working in CI and locally i'm going to merge this and see if we can do a sense check after the fact.

Sorry I missed this - looks good though 👍


Jens Piontkowski patch 1

Hello, I had problems installing mxnet for R under Ubuntu, due to missing dependancy in the devtools packages of R. Here is a fix.
Best regards, Jens

@thirdwing

Hi, @JensPiontkowski
This is something I assume everyone already knows. But it's better to add them into docs.
Can you combine them into one commit by following https://github.com/dmlc/mxnet/blob/master/doc/contribute.md#how-to-combine-multiple-commits-into-one ?

I think, it is a lot easier if you just copy the lines into the document.

Close for long time idle.


Installation fails with latest atom

The error I get is:
><EMAIL_ADDRESS>install /private/var/folders/gk/0k_8m9ts55b7vtygl4c5x39c0000gn/T/apm-install-dir-115112-91841-xeluzo/node_modules/rst-preview/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild

  CXX(target) Release/obj.target/runas/src/main.o

In file included from ../src/main.cc:1:
../../nan/nan.h:623:19: error: no type named 'ExternalAsciiStringResource' in 'v8::String'; did you mean 'ExternalStringResource'?
      v8::String::ExternalAsciiStringResource *resource) {
      ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
                  ExternalStringResource
/Users/alex_gaynor/.atom/.node-gyp/.node-gyp/0.21.0/deps/v8/include/v8.h:1936:19: note: 'ExternalStringResource' declared here
  class V8_EXPORT ExternalStringResource
                  ^
In file included from ../src/main.cc:1:
../../nan/nan.h:622:36: error: redefinition of 'NanNew'
  NAN_INLINE v8::Local<v8::String> NanNew(
                                   ^
../../nan/nan.h:617:36: note: previous definition is here
  NAN_INLINE v8::Local<v8::String> NanNew(
                                   ^
../../nan/nan.h:1993:12: error: no member named 'IsExternalAscii' in 'v8::String'; did you mean 'IsExternal'?
  if (str->IsExternalAscii()) {
           ^~~~~~~~~~~~~~~
           IsExternal
/Users/alex_gaynor/.atom/.node-gyp/.node-gyp/0.21.0/deps/v8/include/v8.h:1900:8: note: 'IsExternal' declared here
  bool IsExternal() const;
       ^
In file included from ../src/main.cc:1:
../../nan/nan.h:1994:23: error: no type named 'ExternalAsciiStringResource' in 'v8::String'; did you mean 'ExternalStringResource'?
    const v8::String::ExternalAsciiStringResource* ext;
          ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
                      ExternalStringResource
/Users/alex_gaynor/.atom/.node-gyp/.node-gyp/0.21.0/deps/v8/include/v8.h:1936:19: note: 'ExternalStringResource' declared here
  class V8_EXPORT ExternalStringResource
                  ^
In file included from ../src/main.cc:1:
../../nan/nan.h:1995:16: error: no member named 'GetExternalAsciiStringResource' in 'v8::String'; did you mean 'GetExternalOneByteStringResource'?
    ext = str->GetExternalAsciiStringResource();
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               GetExternalOneByteStringResource
/Users/alex_gaynor/.atom/.node-gyp/.node-gyp/0.21.0/deps/v8/include/v8.h:2003:40: note: 'GetExternalOneByteStringResource' declared here
  const ExternalOneByteStringResource* GetExternalOneByteStringResource() const;
                                       ^
In file included from ../src/main.cc:1:
../../nan/nan.h:1995:9: error: assigning to 'const v8::String::ExternalStringResource *' from incompatible type 'const v8::String::ExternalOneByteStringResource *'
    ext = str->GetExternalAsciiStringResource();
        ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:1996:11: error: assigning to 'const char *' from incompatible type 'const uint16_t *' (aka 'const unsigned short *')
    *data = ext->data();
          ^ ~~~~~~~~~~~
7 errors generated.
make: *** [Release/obj.target/runas/src/main.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Darwin 14.1.0
gyp ERR! command "node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/folders/gk/0k_8m9ts55b7vtygl4c5x39c0000gn/T/apm-install-dir-115112-91841-xeluzo/node_modules/rst-preview/node_modules/pathwatcher/node_modules/runas
gyp ERR! node -v v0.10.35
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Darwin 14.1.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Applications/Atom.app/Contents/Resources/app/apm/.apmrc" "--userconfig" "/Users/alex_gaynor/.atom/.apmrc" "install" "/private/var/folders/gk/0k_8m9ts55b7vtygl4c5x39c0000gn/T/d-115112-91841-10puehl/package.tgz" "--target=0.21.0" "--arch=x64"
npm ERR! node v0.10.35
npm ERR! npm  v2.3.0
npm ERR! code ELIFECYCLE

npm ERR<EMAIL_ADDRESS>install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the runas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls runas

Yep.  Same here

here too

same here

same here

:+1: same error

same here

Same here. Oyarzuns patch fixed the issue with pathwatcher for me (it compiles!)...still haven't got it to work properly yet (some compile header issues on my Windows box - pretty sure some mix up because I used to have io.js installed). Someone having luck applying oyarzuns solution?

No luck here, compiles but doesn't run.

+1
same issue

Same here.
Anyone care to fork and fix this project if it's not being actively developed?

+1

It's fixed! Thanks for your patience! Thank you to @oyarzun for stepping up with a PR!

Works great for me now.
Pandoc wasn't on the path, so maybe something in the readme on how to set this up would be cool.
I'm on OSX.
Pandoc was installed using brew install pandoc, which landed it into /usr/loca/bin/pandoc.
I chucked a symlink in to get it working but fixing the path would be a better solution if you want to do some instructions on the best way to do that in the readme.
Cheers.


[Script]: Minecraft in Python

Aim
Make Minecraft in Python.
Details
Minecraft is a voxel-based game. And what this truly implies is that every single block in Minecraft is a voxel.
We will be making this using a python.
Just basic game of Minecraft not the whole version.
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSoC'23 contributor
[X] I want to work on this issue

@avinashkranjan are you accepting for hacktoberfest?


For successful transaction of subscribe and unsubscribe, result parameter has extra parameters in Clio response.

"validated": true
for subscribe to accounts, accounts_proposed, order books, streams
"status": "success",     "validated": true
for unsubscribe to accounts, accounts_proposed, order books, streams

In general, extra fields are not a problem. However, it can't hurt to remove them, and accounts_proposed is not returning validated data, so "validated":true there is misleading

This validated flag is added globally for all RPCs that return a meaningful JSON object.
To remove it from only those methods means we need to add it to each method that should return this flag.
I'm not sure it's worth the effort. Let me know what you think @cjcobb23 .


Discussion for: Changes to the publish-iis tool

Discussion for https://github.com/aspnet/Announcements/issues/169

the tool needs now to distinguish portable apps from standalone apps to be able to write the web.config file correctly depending on the application type that is being published. This required adding a new, mandatory parameter --framework that tells the tool what framework the application was published for.

Could you clarify what you mean by "framework," in this context ... not the TFM, correct? Could you show one project.json that the tool will respect for a shared version of web.config and a project.json that will be respected for standalone web.config output?
I thought it was the presence of "type": "platform" on the Microsoft.NETCore.App package that determined if an app will publish shared vs. standalone. If that's the case, then why doesn't the tool look for that specification on the package rather than require a --framework switch? [Perhaps with the presence of an RID on the dotnet publish command or the RID of the runtimes if there is only one listed, since shared framework apps probably/likely won't have a runtimes section.]

The thing to pass as the --framework is the full target framework name (e.g. .NETCoreApp,Version=v1.0). In reality you almost never will have to pass anything manually since you will run the tool as a postpublish script and it will use the parameters passed by the publish command. You can see it here:
  "scripts": {
    "postpublish": "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%"
  },

This is true that whether the application is portable or stand alone is decided based on the existence of "type":  "platform" in the project.json but as any dependency it can be either general or framework specific. Currently you can build an app using either netcoreapp1.0 or netstandardapp1.5 monikers. Granted, netstandardapp1.5 is going away but if you are suggesting the I should hardcode netcoreapp1.0 then I don't think it is a good idea. 1.0 in netcoreapp tells me that there can be 1.1 in the future and can have different requirements or behavior. And there there is also net451+ which is always an .exe.

The postpublish script works fine and we.config is generated.
However i am hitting #137

if you are suggesting the I should hardcode netcoreapp1.0 then I don't think it is a good idea.

No, I was just confused and not taking into account the post-publish nature of the way it runs (apparently "postpublish" wasn't clear enough to me :smile: orf!). It makes sense now. Thanks for the clarification.

Working just fine.
However, i find the output structure weird...
Why has the approot / www structure been abandoned?

@LeandroPT
I believe approot has been abandoned.
Everything that was in approot is moved down one  level.
wwwroot still exists as a sub folder at the new level..
Rather than pointing your IIS web application to the approot you will need to point it to the new level (one down).
web.config has also moved down to allow for this
That's how its working for me.

I did all sort of experiences... Works anyway you want... that is the beauty of this thing

Latest tooling template shown on aspnet community standup missing --framework in project.json
"scripts": {
    "postpublish": "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%"
  },

When I didnt have the --framework option it didnt work for me

@mikes-gh - these changes went in last Friday - so after the standup.

I believe standup was live today. Scott using latest tooling drop just out.
Template here note no framework switch
https://github.com/aspnet/Templates/blob/dev/src/BaseTemplates/StarterWeb/project.json

Changes to templates were merged only today so they probably were not in the build they showed. (And looks like I missed the standup...)

I opened a feature request as a separate issue b/c I'm hoping that it gets some :heart: and could at least land on the backlog: https://github.com/aspnet/IISIntegration/issues/144

We are closing this issue because no further action is planned for this issue. If you still have any issues or questions, please log a new issue with any additional details that you have.


High connection latency

If you try to run aiohttp benchmark with concurrency=1, you'll get strange results:
Results for run_aiohttp
RPS: 15,        mean: 67.338 ms, standard deviation 56.935 ms    median 43.476 ms
Results for run_tornado
RPS: 820,       mean:  1.216 ms, standard deviation 0.395 ms     median 1.154 ms
Results for run_twisted
RPS: 610,       mean:  1.678 ms, standard deviation 0.638 ms     median 1.399 ms

I get similar results with wrk -c1: aiohttp has big connection latency.
Note: this issue is not related to asyncio itself (simple HTTP server implementation shows  ~ 1ms per request)

I used python3.5 to test this several times without any significant problem(python3 async.py -c 1).
Results for run_aiohttp
RPS: 675,	mean: 1.418 ms,	standard deviation 0.402 ms	median 1.419 ms
Results for run_tornado
RPS: 681,	mean: 1.410 ms,	standard deviation 0.290 ms	median 1.406 ms
Results for run_twisted
RPS: 906,	mean: 1.051 ms,	standard deviation 0.314 ms	median 0.999 ms
I think maybe this can be closed(?)

No, I still see the issue

Fixed by #680 #685


ChadBot - Port code from original Repo

Code in Chad's original repo needs to be copied into the PriorBots build. Do not delete or break original Chad repo.
Climber code should be removed, Chad lost his arms.
Code needs updating to new vendor/wpilib version used in this repo.
Chadbot should get his own folder tree:   src/main/java/frc/chadbot
Command should be cleaned up and reduced to driver/operator only stuff.  Leave the autos and climbing behind.

all code is copied over, some translations from old to new API need to be done, naming changes etc. I'm tired but got a bunch done tonight!.1!!!>!!

some new syntax fixes were implemented thanks @Pavani-Gutpa !!!!

We have a branch in the original 2022 repo that is working with all the 2024 tools.  Chad drives/shoots with it.  The intake wasn't lowering though, I suspect a pneumatics problem but didn't dive into it.

Perfect! Still gonna integrate it into the priorbots repo like we're doing for all the other robots. I'll take a look once I get a chance

figuring out what stuff needs library version vs robot version. I'm on a laptop so comparison is difficult, @dlaufen please look at dms because where is the sensors subsystem and wtf is subsystemConfig()


Wait for content in password file

Fixes #273 and edgex-go #2542
Signed-off-by: André Srinivasan<EMAIL_ADDRESS>

Please update redis-arm64.yml as well.

This PR is not complete. @lenny-intel will complete his testing and then I'll clean up the branch as well as incorporate the change into the ARM compose.

My testing is complete. Please move forward with cleanup.

Cleaned up.


SW 5.6.1 Editor not shown in backend

Actual behaviour
Template view, Editor not shown
Expected behaviour
Edit existing template

Environment
SW 5.6.1 prof. Ed. &  Com. Ed. , PHP 7.2.22  MariaDB 10.3.16, Browser Chrome
Steps to reproduce

First step  Settings > open template view
Second step choose template, you cannot edit them

Failed to load: https://www.domain.at/themes/Backend/ExtJs/backend/_resources/ace_editor/mode-htmlmixed.js

Maybe, you do not load the new editor comming with 5.6. ?
https://www.shopware.com/de/news/shopware-56-ist-da-das-sind-die-neuen-features/

Checklist

[ x] I have checked all issues and haven't found a similar report.
[x ] I am using the latest stable version of this plugin.

--
♥ ANY INCOMPLETE REPORT WILL BE CLOSED RIGHT AWAY ♥

Hi,
there is no file called mode-htmlmixed.js available in this directory ..so whats wrong with this call of the file ?
https://github.com/shopware/shopware/tree/5.6/themes/Backend/ExtJs/backend/_resources/ace_editor
anybody here to help with a solution or to fix this soon ?

Hi, anybody here, with the same problem ? Can somebody help please with a solution or a fix ?


retry on HTTPError exceptions need raise_for_status()?

We occasionally receive a http status 500 code (time out) from our influxdb instance, probably because of temporary peak load. Looking at the retry code in InfluxDBClient class I can see that you try to catch HTTPErrors (line 345):
https://github.com/influxdata/influxdb-python/blob/fc0235e2c07abf09eff4de7f6396a17aca1080f1/influxdb/client.py#L326-L353
According to the requests library documentation a raise_for_status() is needed for the exception to be caught:
https://requests.readthedocs.io/en/master/user/quickstart/#errors-and-exceptions
Or am I missing something?

@loopway thanks for the issue. I'm not sure that's needed tbh. this code prints exception using python 3.7.7 on my mac:
# import requests module
import requests

try:
  # ping an incorrect url
  response = requests.get('https://not a real url/')

  print(response)
except (requests.exceptions.ConnectionError,
             requests.exceptions.HTTPError,
             requests.exceptions.Timeout):
  print("exception")

@russorat in your example it gets printed because it's a 'ConnectionError', and not a 'HTTPError'. Please try this code which will connect to httpstat.us to return a http error code 500:
# import requests module
import requests

try:
  # get a http status code 500
  response = requests.get('https://httpstat.us/500')

  print(response)

  # comment this and exception will not be raised
  response.raise_for_status()
except (requests.exceptions.ConnectionError,
             requests.exceptions.HTTPError,
             requests.exceptions.Timeout):
  # will only be printed if raise_for_status() is called
  print("exception")

@loopway thanks for clarifying! We'd be happy to review a PR if you're interested!


HAN training is unstable

when i training your han model, i found the loss exploded and model collapsed! Have your met this？or can you give me some guidence?

Hi, @smiler96
I use the command provided by author(using pre-trained RCAN model) and meet the same problem.
So, you use pre-trained RCAN.pt? It seems that train the whole model from the scratch will be ok.
Have you solved this problem? the owner seems to give up this repo.

Hi, @smiler96
I use the command provided by author(using pre-trained RCAN model) and meet the same problem.
So, you use pre-trained RCAN.pt? It seems that train the whole model from the scratch will be ok.
Have you solved this problem? the owner seems to give up this repo.

No pretrained model used when I reimplemented HAN，you can find it in my github repo.
For this issue i solved it with global residual connection. I think you can try it.

thanks, but have you trained the HAN? how about its final result on benchmark?

@smiler96 HAN use residual connection as well, I want to know what's difference between your method and the model owner provided, because It looks the same except the location of Upsample.

thanks @smiler96 , but have you trained the HAN? how about its final result on benchmark? I merge HAN into EDSR-pytorch repo(because my GPU can't support cuda8) and the previous 20 epoch don't meet unstable problem.
HAN use long residual connection as well, I want to know what's difference between your method and the model owner provided, because It looks the same except for another long residual connection

I remember that the first several training epochs of the vanilla HAN were stable as the above fig showing. But I have not figured out the issue why the loss exploded.
The same HAN except the long residual connection is in my repo.
I have not calculated the PSNR values of each methods, sorry about that.

Ok, also thanks for your reply!

Hi, @smiler96
I use the command provided by author(using pre-trained RCAN model) and meet the same problem.
So, you use pre-trained RCAN.pt? It seems that train the whole model from the scratch will be ok.
Have you solved this problem? the owner seems to give up this repo.

No pretrained model used when I reimplemented HAN，you can find it in my github repo.
For this issue i solved it with global residual connection. I think you can try it.

Hi, @smiler96, I also meet the unstable in the train process. you speak a global residual connection can resolve it .  I want to know the difference between your repo and the model owner provided, i can not find the specific operation in your repo.

Hi, @smiler96
I use the command provided by author(using pre-trained RCAN model) and meet the same problem.
So, you use pre-trained RCAN.pt? It seems that train the whole model from the scratch will be ok.
Have you solved this problem? the owner seems to give up this repo.

No pretrained model used when I reimplemented HAN，you can find it in my github repo.
For this issue i solved it with global residual connection. I think you can try it.

Hi, @smiler96, I also meet the unstable in the train process. you speak a global residual connection can resolve it . I want to know the difference between your repo and the model owner provided, i can not find the specific operation in your repo.

global_res=True

global_res=True

OK，thanks for your reply.

I did not faced that issue .May be i have turned gradient clipping on in 'options.py' file that's why.

I did not faced that issue .May be i have turned gradient clipping on in 'options.py' file that's why.

Hi,how did you set the '--gclip' in the 'options.py'?

Hi, @smiler96 I use the command provided by author(using pre-trained RCAN model) and meet the same problem. So, you use pre-trained RCAN.pt? It seems that train the whole model from the scratch will be ok. Have you solved this problem? the owner seems to give up this repo.

Hi, I am finding pre-trained RCAN model. Could you do me a favour to tell me how find pre-trianed RCAN model(or just give me a link). Thank you.

Hi, @smiler96 I use the command provided by author(using pre-trained RCAN model) and meet the same problem. So, you use pre-trained RCAN.pt? It seems that train the whole model from the scratch will be ok. Have you solved this problem? the owner seems to give up this repo.

Hi, I am finding pre-trained RCAN model. Could you do me a favour to tell me how find pre-trianed RCAN model(or just give me a link). Thank you.

hi, you can refer to the repo https://github.com/smiler96/Image-Super-Resolution


v1.5.0 not compatible with production builds in webpack

The build of our product started failing because it pulled in v1.5.0 of oidc-client.
We've got our package.json set to "oidc-client": "^1.4.1", and it seemed to update it.  Clearly it isn't a compatible version (that's what the hat symbolises).
Not sure what has caused it - maybe the move to an optional dependency, but it looks as though the file isn't transpiled in the distributed code.
Here is the output of our logs:

2018-05-25T16:07:33.5570765Z ERROR in js/index-bundle.js from UglifyJs
2018-05-25T16:07:33.5570765Z Unexpected token: name (AccessTokenEvents) [./node_modules/oidc-client/src/AccessTokenEvents.js:9,0][js/index-bundle.js:73144,6]
2018-05-25T16:07:33.5570765Z
2018-05-25T16:07:33.5570765Z ERROR in js/silentRenew-bundle.js from UglifyJs
2018-05-25T16:07:33.5570765Z Unexpected token: name (AccessTokenEvents) [./node_modules/oidc-client/src/AccessTokenEvents.js:9,0][js/silentRenew-bundle.js:8263,6]

Bummer -- I had it out as beta for 2+ weeks looking for feedback.

Do you have a public repo that I look at to reproduce this issue?

Sorry bud. Didn't even notice the beta.
I can't share the exact code, but I'll try and reproduce an equivalent

@DanielSchaffer -- perhaps something about the change in how we export broke this? Any insight?

Related possibly: #562

It looks like from the error that their build is pulling in the ES Module (./node_modules/oidc-client/src/AccessTokenEvents.js) instead of the bundled version. I can't tell what else is going on, but I would think that if the bundler knows to use the moduleproperty frompackage.json`, it should be configured to transpile what it finds.
@PaulInglis, what build tool/bundler are you using, what ES level are you targeting, and are you using Babel?

Webpack 3 and transpiling from ES6
We use the direct import and don't target specific files.

Can you share your webpack config?

Production webpack.config
const webpack = require('webpack');
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');

const extractCSS = new ExtractTextPlugin('[name].fonts.css');
const extractSCSS = new ExtractTextPlugin('[name].styles.css');

const BUILD_DIR = path.resolve(__dirname, '../wwwroot');
const SRC_DIR = path.resolve(__dirname, '../src');

console.log('BUILD_DIR', BUILD_DIR);
console.log('SRC_DIR', SRC_DIR);

module.exports = (env = {}) => {
	return {
		entry: {
			index: [SRC_DIR + '/index.js'],
			silentRenew: [SRC_DIR + '/silent_renew/index.js'],
		},
		output: {
			path: BUILD_DIR,
			publicPath: '/',
			filename: 'js/[name]-bundle.js',
			chunkFilename: 'js/[name].[chunkhash].js',
		},
		// watch: true,
		devtool: env.prod ? 'source-map' : 'cheap-module-source-map',
		devServer: {
			contentBase: BUILD_DIR,
			port: 60002,
			historyApiFallback: true,
			compress: true,
			hot: true,
			open: true,
		},
		module: {
			rules: [
				{
					test: /\.(js|jsx)$/,
					exclude: /node_modules/,
					use: {
						loader: 'babel-loader',
						options: {
							cacheDirectory: true,
							presets: ['env', 'stage-0', 'react'],
						},
					},
				},
				/*
				{
					test: /\.js$/,
					exclude: /(node_modules|bower_components)/,
					enforce: 'pre',
					loader: 'eslint-loader',
				},
				*/
				{
					test: /\.html$/,
					loader: 'html-loader',
				},
				{
					test: /\.(scss)$/,
					use: ['css-hot-loader'].concat(extractSCSS.extract({
						fallback: 'style-loader',
						use: [
							{
								loader: 'css-loader',
								options: { include: '../img', alias: { '../img': '../public/img' } },
							},
							{
								loader: 'sass-loader',
							},
						],
					})),
				},
				{
					test: /\.css$/,
					use: extractCSS.extract({
						fallback: 'style-loader',
						use: 'css-loader',
					}),
				},
				{
					test: /\.(png|jpg|jpeg|gif|ico)$/,
					use: [
						{
							// loader: 'url-loader'
							loader: 'file-loader',
							options: {
								name: './img/[name].[hash].[ext]',
							},
						},
					],
				},
				{
					test: /\.(woff(2)?|ttf|eot|otf|svg)(\?v=\d+\.\d+\.\d+)?$/,
					loader: 'file-loader',
					options: {
						name: './fonts/[name].[hash].[ext]',
					},
				}],
		},
		resolve: {
			extensions: ['.js', '.jsx'],
			modules: [
				SRC_DIR,
				'node_modules',
			],
		},
		plugins: [
			new webpack.HotModuleReplacementPlugin(),
			// new webpack.optimize.UglifyJsPlugin({ sourceMap: true }),
			new webpack.NamedModulesPlugin(),
			extractCSS,
			extractSCSS,
			new webpack.DefinePlugin({
				'process.env.NODE_ENV': '"production"',
			}),
			new HtmlWebpackPlugin(
				{
					inject: true,
					template: './public/template.html',
				}
			),
			new HtmlWebpackPlugin({
				template: SRC_DIR + '/silent_renew/silent_renew.html',
				chunks: ['silentRenew'],
				filename: 'silent_renew.html',
			}),
			new CopyWebpackPlugin([
				{ from: './public/img', to: 'img' },
			],
			{ copyUnmodified: false }
			),
			new CopyWebpackPlugin([
				{ from: './public/favicon', to: 'img/favicon' },
			],
			{ copyUnmodified: false }
			),
			new CopyWebpackPlugin([
				{ from: './public/fonts', to: 'fonts' },
			],
			{ copyUnmodified: false }
			),
			new CopyWebpackPlugin([
				{ from: './public/locales', to: 'locales' },
			],
			{ copyUnmodified: false }
			),
		],
	}
};

package.json:
{
  "name": "my-admin-website",
  "version": "1.0.0",
  "description": "My Admin Website",
  "author": "My Team",
  "copyright": "Copyright 2017 Company",
  "license": "MIT",
  "private": true,
  "devDependencies": {
    "accounting": "^0.4.1",
    "babel-core": "^6.26.0",
    "babel-eslint": "^8.2.2",
    "babel-loader": "^7.1.3",
    "babel-plugin-transform-class-properties": "^6.24.1",
    "babel-plugin-transform-object-rest-spread": "^6.26.0",
    "babel-polyfill": "^6.26.0",
    "babel-preset-env": "^1.6.1",
    "babel-preset-react": "^6.24.1",
    "babel-preset-stage-0": "^6.24.1",
    "bootstrap": "^4.1.1",
    "bootstrap-sweetalert": "^1.0.1",
    "chart.js": "2.7.0",
    "classnames": "^2.2.5",
    "copy-webpack-plugin": "^4.4.2",
    "css-hot-loader": "^1.3.7",
    "css-loader": "^0.28.10",
    "deepmerge": "^2.0.1",
    "enzyme": "^3.3.0",
    "enzyme-adapter-react-16": "^1.1.1",
    "enzyme-to-json": "^3.3.3",
    "eslint": "^4.18.1",
    "eslint-config-airbnb": "^16.1.0",
    "eslint-config-standard": "^11.0.0",
    "eslint-loader": "^2.0.0",
    "eslint-plugin-import": "^2.9.0",
    "eslint-plugin-jsx-a11y": "^6.0.3",
    "eslint-plugin-node": "^6.0.1",
    "eslint-plugin-promise": "^3.6.0",
    "eslint-plugin-react": "^7.7.0",
    "eslint-plugin-standard": "^3.0.1",
    "extract-text-webpack-plugin": "^3.0.2",
    "faker": "^4.1.0",
    "famfamfam-flags": "^1.0.0",
    "file-loader": "^1.1.10",
    "font-awesome": "^4.7.0",
    "formik": "^0.11.11",
    "glyphicons": "^0.2.0",
    "history": "4.7.2",
    "html-loader": "^0.5.5",
    "html-webpack-plugin": "^2.30.1",
    "i18next": "^10.5.0",
    "i18next-browser-languagedetector": "^2.1.0",
    "i18next-locize-backend": "1.3.0",
    "i18next-react-postprocessor": "^1.0.3",
    "is-url-external": "^1.0.3",
    "jest-css-modules": "^1.1.0",
    "jest-trx-results-processor": "0.0.7",
    "json-server": "^0.12.1",
    "locize-editor": "^1.3.0",
    "lodash": "^4.17.4",
    "lodash.debounce": "^4.0.8",
    "lodash.isequal": "^4.5.0",
    "moment": "^2.20.1",
    "node-sass": "^4.7.2",
    "oidc-client": "^1.4.1",
    "path": "^0.12.7",
    "postcss-color-rebeccapurple": "^3.0.0",
    "postcss-loader": "^2.1.1",
    "promise-alert": "^0.1.1",
    "prop-types": "^15.6.1",
    "raw-loader": "^0.5.1",
    "rc-steps": "^3.1.1",
    "react": "^16.2.0",
    "react-autocomplete": "^1.7.2",
    "react-beautiful-dnd": "^7.1.3",
    "react-bootstrap-button-loader": "^1.0.8",
    "react-bootstrap-toggle": "^2.2.6",
    "react-chartjs-2": "2.7.0",
    "react-code-input": "^3.0.0",
    "react-code-splitting": "^1.2.1",
    "react-color": "^2.14.1",
    "react-css-modules": "4.7.1",
    "react-data-grid": "^3.0.10",
    "react-data-grid-addons": "^3.0.10",
    "react-dates": "^15.4.0",
    "react-dom": "^16.2.0",
    "react-favicon": "^0.0.9",
    "react-helmet": "^5.1.3",
    "react-i18next": "^7.3.0",
    "react-image-gallery": "^0.8.2",
    "react-joyride": "^1.10.1",
    "react-number-format": "^3.3.4",
    "react-maskedinput": "^4.0.0",
    "react-moment-proptypes": "^1.5.0",
    "react-paginate": "^4.4.3",
    "react-redux": "^4.4.5",
    "react-router": "^4.2.0",
    "react-router-bootstrap": "^0.24.2",
    "react-router-dom": "^4.2.2",
    "react-router-redux": "^5.0.0-alpha.6",
    "react-sc": "^0.2.1",
    "react-scripts": "^1.1.0",
    "react-sparklines": "^1.7.0",
    "react-tabtab": "^1.5.0",
    "react-tag-input": "^4.7.3",
    "react-test-renderer": "^16.2.0",
    "react-transition-group": "^2.3.0",
    "react-ultimate-pagination": "^1.2.0",
    "react-user-avatar": "^1.9.0",
    "react-widgets": "^4.1.1",
    "react-with-styles": "^2.3.0",
    "reactstrap": "^5.0.0",
    "recompose": "^0.26.0",
    "redux": "^3.7.2",
    "redux-form": "^7.2.1",
    "redux-logger": "^3.0.6",
    "redux-mock-store": "^1.5.1",
    "redux-oidc": "^3.0.0-beta.16",
    "redux-thunk": "^2.2.0",
    "rimraf": "^2.6.2",
    "rxjs": "^5.5.3",
    "sass-loader": "^6.0.6",
    "simple-line-icons": "^2.4.1",
    "source-list-map": "^2.0.0",
    "style-loader": "^0.19.0",
    "thenby": "^1.2.3",
    "uglify-js": "^3.1.4",
    "universal-cookie": "^2.1.2",
    "url-join": "^3.0.0",
    "url-loader": "^0.6.2",
    "webpack": "^3.10.0",
    "webpack-bundle-analyzer": "^2.11.1",
    "webpack-dev-server": "^2.11.1",
    "why-did-you-update": "^0.1.1",
    "yup": "^0.23.0"
  },
  "jest": {
    "collectCoverage": true,
    "coverageReporters": [
      "json",
      "html",
      "cobertura"
    ],
    "rootDir": "./",
    "roots": [
      "./__tests__",
      "./node_modules"
    ],
    "moduleFileExtensions": [
      "js",
      "jsx",
      "json"
    ],
    "moduleDirectories": [
      "./node_modules",
      "./src"
    ],
    "transformIgnorePatterns": [
      "/node_modules/reactstrap/*.js$"
    ],
    "moduleNameMapper": {
      "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__tests__/mocks/fileTransformer.js",
      "\\.(css)$": "<rootDir>/node_modules/jest-css-modules"
    },
    "setupTestFrameworkScriptFile": "<rootDir>/__tests__/mocks/localStorageMock.js",
    "snapshotSerializers": [
      "enzyme-to-json/serializer"
    ],
    "testResultsProcessor": "<rootDir>/__tests__/processors/jestTrxProcessor"
  },
  "scripts": {
    "dev": "webpack -d --progress --watch --profile --json > compilation-stats.json --env.dev --config ./webpack/webpack.config.dev.js",
    "start": "webpack-dev-server --progress --colors --inline --env.dev --config ./webpack/webpack.config.dev.js",
    "build": "webpack -p --progress --env.prod --config ./webpack/webpack.config.prod.js",
    "clean": "rimraf ./build",
    "test": "jest --testPathPattern=dummy.test.js",
    "refreshVSToken": "vsts-npm-auth -config .npmrc"
  },
  "engines": {
    "node": ">= 6.0.0",
    "npm": ">= 5.0.0"
  },
  "dependencies": {}
}

Similar problem here, when updating to version 1.5.0 it broke the build:
ERROR in common.dbf6d29d468b9c97af24.bundle.js from UglifyJs
Unexpected token: name (OidcClientSettings) [./node_modules/oidc-client/src/OidcClientSettings.js:16,0][common.dbf6d29d468b9c97af24.bundle.js:4602,6]

Same problem with UglifyJs as @basvis has mentioned

I resolved this error by manually installing latest version of UglifyJS plugin and setting ecma parameter to 6 in uglifyOptions

@xakep139 mind showing me what you did, or send a PR?

@brockallen, sure! I did the following:

run npm i -D uglifyjs-webpack-plugin or yarn add -D uglifyjs-webpack-plugin
in webpack.config.js replaced new webpack.optimize.UglifyJsPlugin() with

const UglifyJsPlugin = require('uglifyjs-webpack-plugin');

//...

plugins: [
  new UglifyJsPlugin({
    uglifyOptions: {
      ecma: 6,  // Default value is "5", so it cause errors
    }
  })
]

So then I'm still confused... I use webpack to build two versions of this library -- one in ~/lib and one in ~/dist, so if you're not using those then my use of webpack is unrelated to your error in your build using webpack -- I think. right?
So I guess what I'm confused about is what happened in how I'm building/packaging this that affected you?

Actually, I take it back -- "main" points to ~/lib/oidc-client.min.js. So if you're doing a require then that's what you're getting. So

Hey, sorry, I'm not ignoring the pings ... had a long weekend with the fam, about to start poking now.
The way I understand things, the module property is used by webpack and by default, prioritized ahead of main (see https://webpack.js.org/configuration/resolve/#resolve-mainfields), but I'd expect that it if it does use module, which is meant to be a pointer to an entrypoint for ES Modules, it'd be able to handle it correctly.
It seems like it's possible that this is not the case, or at least for Webpack <= 3 when using Uglify, which requires setting the ecma: 6 option in order for it to not choke on the ES modules. I'm not sure what the right call is here - it seems like the "technically correct" way would be to leave it, and leave it to the end user to correctly configure (or upgrade) their build tools, but that also seems like it's not ideal, especially given the number of issues reported.

After setting up the "fixed" repro, I'm going to take back by previous comment. It should be up to the end user to configure their build tool properly. If someone is running into this problem, it's likely they're not transpiling at all.

@brockallen it appears you are doing it correctly? JS devops are so confusing and change a million miles an hour... It appears package.json main points to ~/lib/oidc-client.min.js, which is the output of your build path... Which goes Gulp->Webpack->babel... If you add env preset preset to babelrc, it should transpile completely to ecma5. But that is probably overkill
However, other people using webpack, should be transpiling their code for the browsers they are targeting. IMO you shouldn't be depending too heavily on 3rd party package maintainers to that... In webpack 3, you should be transpiling your code before minification. The nice thing about webpack 4, is that it uses the newest uglifyjs, thus making minification not require transpilation.

@DanielSchaffer Ahh, that makes sense now about how webpack is resolving the dependency via the module property in the package.json.
I have noticed that after upgrading to version 1.5 of the oidc-client in an angular 6 project the tests fail to run when targeting PhantomJS.
They fail with the error SyntaxError: Unexpected token 'const’ in karma_webpack/vendor.js  and after inspecting this file it looks like webpack is pulling the ES6 code into the vendor bundle where it was pulling in lib/oidc-client.min.js prior to using v1.5.
If I change the module property in the oidc-client’s package.json to an es2015 property webpack seems to pick up the minified file again and everything works.
Ideally updating the webpack config to transpile the code when webpack is creating vendor.js would be the best solution, but in the case of angular cli they don’t directly expose webpack.config.js to the developer.
I guess the only way to get around it would be to ng eject the webpack config, but this isn’t always desirable.

So @DanielSchaffer, it was the addition of "module": "index.js", in project.json that is the culprit behind this. When I remove that from your repo, then it's working again. This simply means that importing this (for now) pulls in the transpiled version, and as is evident from this thread it was a breaking change. So for now I'm going to remove it to get people back up and running.
I'm happy to start a 2.0 version that changes how this is done, and make that the breaking change. How's that for a solution?

@PaulInglis and @larlew I pushed a "1.5.1-beta.1" with the change I mentioned above. Can you test it, please to see if you're back up and running?

@brockallen can you change the module to es2015 rather than removing it entirely? After seeing these problems come in, I'm still not entirely clear on what's expected to be in module, so I'm not sure that doing a 2.0 with a breaking change is the right way to go. Using es2015 seems like it'll still make the things I was trying work with happy without breaking it for anyone else.

@brockallen - compiles fine for me (didn't before).  Not done a thorough test yet (will do it tomorrow, when I have time), but I seemed to be able to hit the site with the cached token.

@DanielSchaffer wouldn't that also be a breaking change from what was in 1.4?

@brockallen I don't think so. The issue here is with how the various packaging tools resolve 3rd party libraries. I'm not familiar with how Rollup works, but for Webpack, it uses the resolve.mainFields property to determine which fields in the library's package.json file it uses to find the entry point for the library. By default resolve.mainFields is set to [ 'module', 'main' ]. If the target is set to 'web', then it defaults to [ 'browser', 'module', 'main' ]. That's why this change broke stuff for some people - if they weren't already set up to be transpiliing or using the latest Webpack, things choked on the ES2015 module because it was suddenly superceding the already transpiled file provided by main.
es2015 is not used by default, and when it is used, it's expected that it provides ES2015 modules, so it should not be a breaking change for anyone.

@hawkeng Lastest version (1.5.1-beta.1) works fine with create-react-app and you don't need to touch webpack.  This is due to the removal of the module key in package.json - so it now uses the main key that points to lib/oidc-client.min.js which is already an ES5 version.

1.5.1 pushed


Tests busted on ruby 2.2

I started hacking on https://github.com/twitter/secureheaders/pull/157 but I can't seem to get the rails4 integration test to pass.
It could be due to the sloppy and antiquated test setup, but it looks like something with the way bundler and ruby 2.2 interact doesn't like the way I'm running the tests.

dup of 155


Force TensorFlow to use CPU when generating model and golden values.

xfails will be updated once issues are filed for remaining failures.

@monorimet You can also add the tf part in shark_importer as well.

@monorimet You can also add the tf part in shark_importer as well.

I put it in tank/masked_lm_tf.py so that it would work for benchmarks as well. Should it go in importer as well?

@monorimet You can also add the tf part in shark_importer as well.

I put it in tank/masked_lm_tf.py so that it would work for benchmarks as well. Should it go in importer as well?

Oh! It's fine over there.


Leak of packets on dynamic blacklist expiry

When the entry expires from the dynamic blacklist we leak a bunch of packets as can be seen by this output
-- DDoS report --
Configured initial block period: 10 seconds
Configured maximum block period: 600 seconds
Rx: 359.53kpps / 2074663 packets / 232362020 bytes
Tx: 2.00pps / 138746 packets / 15539386 bytes / 0 packet drops
Mitigation <IP_ADDRESS>
Blacklist:
  <IP_ADDRESS> blocked for another -0.4 seconds
Mitigation <IP_ADDRESS>
Blacklist:

-- DDoS report --
Configured initial block period: 10 seconds
Configured maximum block period: 600 seconds
Rx: 360.30kpps / 2434946 packets / 272713688 bytes
Tx: 160.85kpps / 299593 packets / 33554236 bytes / 0 packet drops
Mitigation <IP_ADDRESS>
Blacklist:
  <IP_ADDRESS> blocked for another 14.4 seconds
Mitigation <IP_ADDRESS>
Blacklist:

-- DDoS report --
Configured initial block period: 10 seconds
Configured maximum block period: 600 seconds
Rx: 357.40kpps / 2792372 packets / 312745372 bytes
Tx: 1.00pps / 299594 packets / 33554334 bytes / 0 packet drops
Mitigation <IP_ADDRESS>
Blacklist:
  <IP_ADDRESS> blocked for another 13.4 seconds
Mitigation <IP_ADDRESS>
Blacklist:

The first report just happens before the periodic run that removes the entry from the dynamic blacklist, thus the negative time. At that point the number of output packets is 138746. In the second report we can see that the source has again been blacklisted but in the meantime we let through a lot of packets as the Tx counter is up to 299593. Third report just shows it's stable from that point on.
When an entry expires from dynamic blacklist it should still be blocked for another five seconds so we can count rate and make sure it's not over it's limits. This doesn't seem to be working correctly.

My bad, I ran with incorrect data. I used hping3 to generate the packets and per default it will cycle through source ports so it wouldn't match the rule (which was for src port 123) only every packet in 65k would match and thus the pps limits and everything was way off.
Now using:
hping3 -c 1000000 --udp --keep -s 123 -p 43825 -d 70 --flood <IP_ADDRESS>


clightning: 0.10.2 -> <IP_ADDRESS>

Description of changes

new upstream release: https://github.com/ElementsProject/lightning/releases/tag/v<IP_ADDRESS>

Things done

Built on platform(s)

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

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

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

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

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

[ ] Fits CONTRIBUTING.md.

cc @nixbitcoin @jonasnick @erikarvstedt

@GrahamcOfBorg build clightning


Invalid shift (141647077)

Hello OpenEXR team,
As part of our fuzzing efforts at Google, we have identified an issue affecting
OpenEXR (tested with revision * master e23fdf6e02dbd8157b1d468143a82f6632781dee).
To reproduce, we are attaching a Dockerfile which compiles the project with
LLVM, taking advantage of the sanitizers that it offers. More information about
how to use the attached Dockerfile can be found here:
https://docs.docker.com/engine/reference/builder/
Instructions:
unzip artifacts_141647077.zip
docker build --build-arg SANITIZER=undefined --tag=autofuzz-OpenEXR-141647077 autofuzz_141647077
docker run --entrypoint /fuzzing/repro.sh --cap-add=SYS_PTRACE -v $PWD/autofuzz_141647077/autofuzz_141647077:/tmp/poc autofuzz-OpenEXR-141647077 "exrenvmap" /tmp/poc
docker run --cap-add=SYS_PTRACE -v $PWD/autofuzz_141647077/autofuzz_141647077:/tmp/poc -it autofuzz-OpenEXR-141647077
Alternatively, and depending on the bug, you could use gcc, valgrind or other
instrumentation tools to aid in the investigation. The sanitizer error that we
encountered is here:
/fuzzing/openexr/OpenEXR/IlmImf/ImfXdr.h:679:9: runtime error: left shift of negative value -79
    #0 0x7fb3547ed74a in void Imf_2_4::Xdr::read<Imf_2_4::StreamIO, Imf_2_4::IStream>(Imf_2_4::IStream&, int&) /fuzzing/openexr/OpenEXR/IlmImf/ImfXdr.h:679:9
    #1 0x7fb3548ddb8f in Imf_2_4::(anonymous namespace)::readPixelData(Imf_2_4::InputStreamMutex*, Imf_2_4::ScanLineInputFile::Data*, int, char*&, int&) /fuzzing/openexr/OpenEXR/IlmImf/ImfScanLineInputFile.cpp:436:5
    #2 0x7fb3548dc7ff in Imf_2_4::(anonymous namespace)::newLineBufferTask(IlmThread_2_4::TaskGroup*, Imf_2_4::InputStreamMutex*, Imf_2_4::ScanLineInputFile::Data*, int, int, int, Imf_2_4::OptimizationMode) /fuzzing/openexr/OpenEXR/IlmImf/ImfScanLineInputFile.cpp:1044:14
    #3 0x7fb3548dba0d in Imf_2_4::ScanLineInputFile::readPixels(int, int) /fuzzing/openexr/OpenEXR/IlmImf/ImfScanLineInputFile.cpp:1679:44
    #4 0x429455 in (anonymous namespace)::readSingleImage(char const*, float, float, Imf_2_4::Envmap, bool, EnvmapImage&, Imf_2_4::Header&, Imf_2_4::RgbaChannels&) /fuzzing/openexr/OpenEXR/exrenvmap/readInputImage.cpp:118:8
    #5 0x42cd8b in main /fuzzing/openexr/OpenEXR/exrenvmap/main.cpp:471:9
    #6 0x7fb353c1409a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2409a)
    #7 0x4068d9 in _start (/fuzzing/openexr/build/bin/exrenvmap+0x4068d9)

SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /fuzzing/openexr/OpenEXR/IlmImf/ImfXdr.h:679:9 in

We will gladly work with you so you can successfully confirm and reproduce this
issue. Do let us know if you have any feedback surrounding the documentation.
Once you have reproduced the issue, we'd appreciate to learn your expected
timeline for an update to be released. With any fix, please attribute the report
to "Google Autofuzz project".
We are also pleased to inform you that your project is eligible for inclusion to
the OSS-Fuzz project, which can provide additional continuous fuzzing, and
encourage you to investigate integration options.
Don't hesitate to let us know if you have any questions!
Google AutoFuzz Team
artifacts_141647077.zip

I've reproduced this.
Left shift of negative values are technically undefined, though in this case compilers will generally work correctly, due to the bitmasking that is applied directly afterwards.
Also, there is an exhaustive test of Xdr in IlmImfTest, so any unexpected compiler behavior will be detected there. It's possible to modify Xdr.h so that errors are not reported by the 'undefined behavior' sanitizer. However, the undefined behavior sanitizer running on IlmImfTest reports various other issues across the codebase. None of the ones I examined appear to be problematic, and we already cover them in our test suite.
I'm not keen to consider reports from the undefined behavior sanitizer as critical errors, unless they can be shown to cause more serious problems such as security issues or memory leaks. I would be concerned that modifying the code to circumvent sanitizer report messages may introduce subtle bugs or hamper the library's performance with no practical benefit.

To add to what @peterhillman said, we're confident there is not a legitimate concern here, validated by the test suite, and we'd prefer not to complicate the code in order to simply remove the warning. Closing the issue for now. If you have a alternative resolution, we'd be happy to discuss it further.

If this is known to not be any kind of problem, one option to consider would be annotating the known safe functions with attributes to avoid sanitizer instrumentation:
https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#disabling-instrumentation-with-attribute-no-sanitize-undefined
That can prevent these shallow crashes from triggering, and allow fuzzing of code paths beyond them, but obviously it's up to you if you want to include those annotations or not.
Thanks for taking a look at this issue!


Update README.md

Fixed a typo and added a small description for getBarCodeUrl so it is easier for some people to implement.

Thanks!

No problem :) Thanks for the library! Simple and easy to use.


[DAT-3717] Add documentation for import call object parameter usage in Database Replication Module

Affects Marketplace Module Database Replication documentation

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


no builds for Fedora 29+

could you please add building of Fedora 29 and 30 packages?

file PR188


feat(fomrly-form): introduce FormBuilder service

Current coverage is 85.23% (diff: 57.52%)

Merging #235 into master will increase coverage by 0.10%

@@             master       #235   diff @@
==========================================
  Files            17         18     +1
  Lines           881        901    +20
  Methods         201        208     +7
  Messages          0          0
  Branches        275        280     +5
==========================================
+ Hits            750        768    +18
- Misses          131        133     +2
  Partials          0          0

Powered by Codecov. Last update 62c96d1...522c184


git-gui is not available on git version 2.5.4 (Apple Git-61)

On https://git-scm.com/downloads/guis report

Git comes with built-in GUI tools for committing (git-gui) and browsing (gitk), but there are several third-party tools for users looking for platform-specific experience.

which is unfortunately not true for my git version. Should we fix that?

what is your git version @clemens-tolboom ?
which OS are you running?
how did you install git?

The title says git version 2.5.4 (Apple Git-61) ;-)

Now I have git version 2.10.1 (Apple Git-78)

Hmph. I don't want to mislead users with our text. At the same time, git-gui does ship with the git source code. But you are using a binary packaging of git made by a third party (Apple) who chooses not to include the command.
I have no idea if there is a way to get git gui from Apple at all, or if the right answer is "install from source or from homebrew". But unlike the other GUI options, it is not really distributed separately as a third-party program.

@peff thanks for the information.
Installing through brew install git and starting a new terminal gives git gui
Guess we can close this apart maybe a mention regarding Apples build in version?

I started to add a comment to the page to that effect, but I think it snowballs quickly. Because binary packagers might not include the tools at all (which AFAIK is the case for Apple), or they might be in a separate package (e.g., apt-get install git-gui on Debian). Everything I wrote seemed to raise more questions than it answered.
I'm going to close this for now as not-a-bug, but if somebody wants to open a PR improving the instructions around alternate packages, feel free.


Non-rigid ICP implementation.

Hello, I notice that N-ICP is used for deformable registration in the paper. How can I find the N-ICP implementation? Thank you.

We will release our N-ICP implementation before the conference. This repo might also be helpful.

Looking forward to it. Thanks a lot.


⚠ Bofrost.lu has degraded performance

In 3d03fe2, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1671 ms

Resolved: Bofrost.lu performance has improved in a858af3 after 6 minutes.


btoa function does not work with Date.now() (Locale problem)

In my system function Date.now() returns
"Wed Aug 19 2015 10:58:26 GMT+0600 (RTZ 5 (зима))"
This string becomes part of variable data and I get error when btoa function is called,
"Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range."
This small fix allow to btoa work with unicode strings.

Reading https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now, I'm not sure how Date.now() can be an issue, since it should just be a number of milliseconds (i.e. a Number).
What kind of browser/platform are you seeing this issue on?
If Date.now() doesn't return a Number, that sounds like browser bug to me.

I'm sorry. I have studied in detail the code and found object which overrides default Data object. This bug is not in pdf.js


chore: upgrade dependencies, use nodejs 20

Change Summary

parcel-bundler is deprecated, now use parcel v2
PR Checklist

[x] I have read and signed the Contributor License Agreement.


CCE Cluster Autoscaler

Issue on page:        https://github.com/opentelekomcloud-docs/cloud-container-engine/blob/main/umn/source/add-ons/cce_cluster_autoscaler.rst

If a node has been configured as an affinity node for pods, no node will not be automatically added when pods cannot be scheduled.

This sentence is near impossible to parse with the triple negation. Could this possible be cleared up?

It's meant like no node parameter so it makes sense
"No node" affinity policy is set in the pod scheduling configuration. If a node has been configured as an affinity node for pods, "no node" will not be automatically added when pods cannot be scheduled
but you are correct, we need to find better wording, thank you for your notice.


Walking through table

Description

Walking through layers or something like that. Im just started climbing to bar and caught a bug. That status "trough tables" are not temporary, persists until something updates it (I was standing in the middle of the room, opening the video-recording program and at the beginning I walked through the table).
After that, station have anti-gravity event and me start climbing on the table. After animation jumping on table, I have time to go through several at once, not sure if this is a bug or feature.
Reproduction

climb on the table until bug happens
Screenshots

Additional context

my content.client wrote that

server sent it

maybe its helps *shrug

I have time to go through several at once, not sure if this is a bug or feature.

The player should start colliding again with tables as soon as they've stepped off.
The logs just indicate the computer was having difficulty running the game & server, but that shouldn't have caused that bug. I can't seem to reproduce it, and I'm not sure what caused it.
FIY if you're running stuff locally on your computer, it might be a good idea to set set the tick rate to 30 (usually used on servers) instead of 60 (default for local builds). You can do that by running sudo cvar net.tickrate 30 or updating the server toml. Should help a bit with the performance.