Generate maps of supported states, countries for shields

Similar to #179, this PR adds a Node script that generates choropleth maps of the United States and world that show which states’ and countries’ shields are supported by OpenStreetMap Americana. The SVG maps are placed in the documentation folder, making it convenient to link to the GitHub repository in conversations about shield support. See this PR’s rich diff for the current output. The maps are based on public domain base maps of U.S. states and world countries on Wikimedia Commons.

Some states (notably, Maine and all of southern New England) have plain black rectangles with a white background for shields.  I consider these to be officially supported by the default symbology.  How should we handle those cases?  Should we explicitly declare those as default rectangles in the shield def?

I think we should declare them somewhere. That would also allow our support for them to show up in taginfo. One idea I had for #118 is to describe standard shields by their shape and color directly in the definition, instead of calling out to any function, then resolve those descriptions later. We could detect descriptions that happen to match the default and avoid drawing anything special for them.

describe standard shields by their shape and color directly in the definition, instead of calling out to any function

This is a pretty straightforward refactor.  I initially hadn't done this because we don't have a current use case for marshalling and unmarshalling the shield style.

Looks good to me and seems to work.  What's the plan for doing something with these generated maps?  It isn't linked to any of the documentation files that I can see.

Before merging:

[ ] Come up with a stopgap solution for shields that should be white rectangles, in anticipation of #118
[ ] Embed the maps into a Markdown guide tracking the project’s progress on shields

Looks essentially correct and javascript previously tested. I'm not able to confirm that the  links deploy properly since that's done with github actions, so please check that the links are working after the merge.

The links in this PR are confined to files that are excluded from the package distribution. They’re only intended to appear here on GitHub. The rich diff of this PR is representative of what visitors to this repository will see.


License?

I'm not an expert on software licenses but this seems to be code from somewhere else?
https://github.com/vitorpamplona/amethyst/blob/683af698c664f5590224db5419ac3b0a88d7ba1e/amethyst/src/main/java/androidx/compose/material3/pullrefresh/PullRefresh.kt#L2C4-L2C13

Yep, I think Google already offers a pull to refresh now. Google had deprecated one of their libraries and copying the code was the official temporary answer. 😳

Should I look into whether we can remove that copy paste code?
Or just deleting the license text?


Errors Built with Visual Studio 2017

Hi I've tried to build the latest version with Visual Studio Enterprise 2017. The debug mode is OK, but I've found these issues in release mode.
Severity	Code	Description	Project	File	Line	Suppression State
Error	MSB6006	"cmd.exe" exited with code 9009.	genf77blas	C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets	171
Error	MSB6006	"cmd.exe" exited with code 9009.	gencblas	C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets	171

Please help me!

Can you produce full output leading to error and attach it? Line in your targets file does not relate to openblas.

Yes I put in the block of codes below. There are over 2k of lines, and I just put the last 50 with errors inside. I think the problem is related to Visual Studio. Everything was done successfully without any problem when I did it with MSYS.
9>------ Build started: Project: gencblas, Configuration: Release x64 ------
10>------ Build started: Project: genconfig, Configuration: Release x64 ------
11>------ Build started: Project: genf77blas, Configuration: Release x64 ------
12>------ Build started: Project: openblas_utest, Configuration: Release x64 ------
9>Building Custom Rule D:/DEVLibs/OpenBlas/v0220/custom/CMakeLists.txt
11>Building Custom Rule D:/DEVLibs/OpenBlas/v0220/custom/CMakeLists.txt
10>Building Custom Rule D:/DEVLibs/OpenBlas/v0220/custom/CMakeLists.txt
12>Building Custom Rule D:/DEVLibs/OpenBlas/v0220/custom/utest/CMakeLists.txt
11>CMake does not need to re-run because D:/DEVLibs/OpenBlas/v0220/custom/build/CMakeFiles/generate.stamp is up-to-date.
11>'awk' is not recognized as an internal or external command,
11>operable program or batch file.
11>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 9009.
11>Done building project "genf77blas.vcxproj" -- FAILED.
10>CMake does not need to re-run because D:/DEVLibs/OpenBlas/v0220/custom/build/CMakeFiles/generate.stamp is up-to-date.
10>Generating openblas_config.h
12>CMake does not need to re-run because D:/DEVLibs/OpenBlas/v0220/custom/build/utest/CMakeFiles/generate.stamp is up-to-date.
12>utest_main.c
12>d:\devlibs\openblas\v0220\custom\utest\ctest.h(331): warning C4312: 'type cast': conversion from 'unsigned int' to 'void *' of greater size
12>d:\devlibs\openblas\v0220\custom\utest\ctest.h(401): warning C4312: 'type cast': conversion from 'unsigned int' to 'ctest *' of greater size
12>d:\devlibs\openblas\v0220\custom\utest\ctest.h(749): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
12>C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\ucrt\stdio.h(1772): note: see declaration of 'sprintf'
12>test_amax.c
9>CMake does not need to re-run because D:/DEVLibs/OpenBlas/v0220/custom/build/CMakeFiles/generate.stamp is up-to-date.
9>'sed' is not recognized as an internal or external command,
9>operable program or batch file.
9>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 9009.
9>Done building project "gencblas.vcxproj" -- FAILED.
12>D:\DEVLibs\OpenBlas\v0220\custom\utest\test_amax.c(36): warning C4312: 'type cast': conversion from 'unsigned int' to 'void *' of greater size
12>D:\DEVLibs\OpenBlas\v0220\custom\utest\test_amax.c(42): warning C4305: '=': truncation from 'double' to 'float'
12>D:\DEVLibs\OpenBlas\v0220\custom\utest\test_amax.c(39): warning C4305: 'initializing': truncation from 'double' to 'float'
12>Generating Code...
12>openblas_utest.vcxproj -> D:\DEVLibs\OpenBlas\v0220\custom\build\utest\openblas_utest.exe
12>Done building project "openblas_utest.vcxproj".
13>------ Build started: Project: ALL_BUILD, Configuration: Release x64 ------
13>Building Custom Rule D:/DEVLibs/OpenBlas/v0220/custom/CMakeLists.txt
13>CMake does not need to re-run because D:/DEVLibs/OpenBlas/v0220/custom/build/CMakeFiles/generate.stamp is up-to-date.
14>------ Skipped Build: Project: INSTALL, Configuration: Release x64 ------
14>Project not selected to build for this solution configuration
========== Build: 10 succeeded, 2 failed, 0 up-to-date, 2 skipped ==========

You can get missing commands from MSYS (sed and awk are mentioned).
Maybe it is worth cleaning build directories after failed builds.

I see. What you mean is to add msys/bin to system environment variable, and then build it again. Right? Thank you so much for your help!

I faced the same problem as you when I compile there are two errors using MS visual studio 2017 ( windows 10 64 -bit )  I cannot remember exactly the error code but roughly

cmd.exe
LNK error  openblas.lib

When I checked my error log.
cmd.exe error is from the script trying to call 'perl' in the compilation scriot. I do not have perl on my machine. Therefore I download and install ActivePerl with set Path option ( choose during installation )
Then I restart visual studio again and rebuilt ALL_BUILD. Everything is fine now.
Hope this help


[Request?] --startup class on container element

I'm trying to conditionally style the controls on the startup slide and the _startUp is only applied on the slide content element.
If the container had a class like aws-sld--startup we could do something similar to the --first and --last classes where the left or right control isn't visible.
My current workaround was using the className prop on AwesomeSlider to make it work since I'm always using a startup slide.

Just set the infinite prop to false and it will not render the initial and final arrows. If you have any further issues just let me know :)


Unintended release?

Bug description
The latest portainer release says 1.24.2
Expected behavior
I would expect 2.1.1 to be the latest
Portainer Logs
N/A
Steps to reproduce the issue:
Might be an unexpected tag pushed to github of 1.24.2 13 days ago (from filing date) visible at https://github.com/portainer/portainer/tags
Technical details:
N/A
Additional context
Just did a fresh install of portainer and noticed "update available", but cannot get it to go away

Hi
1.24.2 is a security/UAC patch release for the 1.24.x Code base.
Latest release for Portainer is 2.1.1
For further details, please visit:
https://github.com/portainer/portainer/releases

interesting that a fresh install oulling latest doesn't reflect 2.1.1 - but not really wanting to dig into it further.

🤦  -ce got me - thanks for the clairification


Bug 1905573: [release 4.6] Add warning of the consequences of changing bound token issuer

NOTE This PR only updates a config CRD field's doc string. It is not a functional change, and therefore low risk to merge.

/refresh bugzilla

/bugzilla cc-qa

/bugzilla refresh

/bugzilla refresh

/bugzilla refresh


WIP: list user identity API

fixes #467

Current coverage is 65.79% (diff: 0.00%)

Merging #476 into master will decrease coverage by 0.08%

@@             master       #476   diff @@
==========================================
  Files            46         47     +1
  Lines          2248       2251     +3
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           1481       1481
- Misses          612        615     +3
  Partials        155        155

Powered by Codecov. Last update 42cdb0a...d123c3d

@baijum You can use this function which creates a service and puts user in the context.
https://github.com/almighty/almighty-core/blob/master/test/login.go#L25
and similar work is done here : (test user is used below)
https://github.com/almighty/almighty-core/blob/master/workitem_blackbox_test.go#L35

This endpoint should return jsonapi. Look at the work @kwk has started doing in linking; https://github.com/almighty/almighty-core/pull/421/files#diff-aa2cec7dc60fd15e23552b59d51fdbdc

[test]


[Question]

What are the the default log in credentials?
The documentation isn't that clear about it
It would be better if it's set as
Default username:.....
default password:.....
Thaanks

Just to make it clear I am unable to find where the randomly generated credentials are logged

Hi, Mango always logs to STDOUT. The exact log location depends on the way you started Mango. If you run the binary, the credentials will be logged to your console. If you run it in a docker container, you can check the container log.


Alert Description for Block User

What is the motivation for adding/enhancing this feature?
the description here should read:
"Block this user from logging into HotWax Commerce. Login can be re-enabled later by disabling this setting."

"Unblocking a user will allow them to login to the OMS again with their credentials."

@ymaheshwari1 added description for unblocking user


Failed to build diagrams-lib-1.4.3 on macOS

Output :
➜  IHaskell git:(master) stack install --fast
diagrams-lib     > configure
diagrams-lib     > Configuring diagrams-lib-1.4.3...
diagrams-lib     > build
diagrams-lib     > Preprocessing library for diagrams-lib-1.4.3..
diagrams-lib     > Building library for diagrams-lib-1.4.3..
diagrams-lib     > [ 1 of 73] Compiling Diagrams.Attributes
diagrams-lib     > [ 2 of 73] Compiling Diagrams.Attributes.Compile
diagrams-lib     > [ 3 of 73] Compiling Diagrams.CubicSpline.Internal
diagrams-lib     > [ 4 of 73] Compiling Diagrams.Names
diagrams-lib     > [ 5 of 73] Compiling Diagrams.Parametric
diagrams-lib     > [ 6 of 73] Compiling Diagrams.Parametric.Adjust
diagrams-lib     > <command line>: can't load framework: Cocoa (not found)

--  While building package diagrams-lib-1.4.3 using:
      /Users/yatchunglaw/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_<IP_ADDRESS>_ghc-8.8.4 --builddir=.stack-work/dist/x86_64-osx/Cabal-<IP_ADDRESS> build --ghc-options " -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1
Progress 1/6

Other info:
macOS 11.1
stack 2.3.3
ghc 8.8.4

It seems like this might be the issue:
diagrams-lib     > <command line>: can't load framework: Cocoa (not found)

It seems like this might be the issue:
diagrams-lib     > <command line>: can't load framework: Cocoa (not found)

It seems like this might be the issue:
diagrams-lib     > <command line>: can't load framework: Cocoa (not found)

Yes, but it looks strange. As I am able to load Cocoa in Swift without getting any error:
Welcome to Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1<IP_ADDRESS>).
Type :help for assistance.
  1> import Cocoa
  2>

It seems like this might be the issue:
diagrams-lib     > <command line>: can't load framework: Cocoa (not found)

Yes, but it looks strange. As I am able to load Cocoa in Swift without getting any error:
Welcome to Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1<IP_ADDRESS>).
Type :help for assistance.
  1> import Cocoa
  2>

That is strange! You can work around the issue by commenting out ihaskell-diagrams in your stack.yaml.

That is strange! You can work around the issue by commenting out ihaskell-diagrams in your stack.yaml.

OK, I will try. btw, will disabling diagrams affect any functionality of IHaskell?

OK, I will try. btw, will disabling diagrams affect any functionality of IHaskell?

No, IHaskell doesn't depend on diagrams but the ihaskell-diagrams plugin does.

No, IHaskell doesn't depend on diagrams but the ihaskell-diagrams plugin does.

OK, that works.
Thanks :D

OK, that works.
Thanks :D

I think maybe this error is due to macOS Big Sur as I've encountered the same error when installing other packages

I think maybe this error is due to macOS Big Sur as I've encountered the same error when installing other packages


Add RawApAccess trait, cleanup ApAccess trait

Exposing the DAPAccess trait directly can be problematic, since it bypasses the handling of the APBANKSEL field. The new RawApAccess exposes the same functionality, but handles the AP bank selection as well.
@Dirbaio Can you check if the nRF unlock still works with these changes?
There is also some further cleanup of the ApAccess traits.

Recover still works, yup!
However this breaks our internal tool, apparently because I'm attaching first to do a raw AP read, then reattach normally. If I just attach normally it works fine. This works fine in master. trace logs
let chip = opts.chip.clone().unwrap_or("nRF52840_xxAA".to_string());
let target = probe_rs::config::get_target_by_name(chip).unwrap();

let mut probe = open(opts)?;

probe.attach_to_unspecified()?;
let mut iface = probe.try_into_arm_interface().unwrap();
let port = 1;
const APPROTECTSTATUS: u8 = 12;
if iface.read_raw_ap_register(port, APPROTECTSTATUS)? == 0 {
    bail!("Target is locked with APPROTECT. You can erase it with `ak-flasher recover`.")
}
let probe = iface.close();

let sess = probe.attach(target)?;
// use sess normally to flash etc

Could you try this with a different probe? I wonder if the changes to the ST-Link code broke something.

True! it does work with jlink.


Connection fail

This is my log. What is the problem?
successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun broadlink-ac-mqtt (no readiness notification)
s6-rc: info: service legacy-services successfully started
Starting Monitor...
Authentication Failed to AC
init() should return None, not 'bool'
Stopping
Starting Monitor...
Authentication Failed to AC
init() should return None, not 'bool'
Stopping

Can you post your config?

service:
daemon_mode: true
update_interval: 10
self_discovery: false
bind_to_ip: false
mqtt:
host: core-mosquitto
port: 1883
client_id: ac_to_mqtt
user: mqtt-user
passwd: password
topic_prefix: /aircon
auto_discovery_topic: homeassistant
auto_discovery_topic_retain: false
discovery: false
devices:

ip: <IP_ADDRESS>
mac: ############
name: Aire salon
port: 80

Yes

Difference from yours to mine:
self_discovery: true
discovery: true

Although I don't think it will make any difference. I had many issues with this integration and I think one of them was similar to yours (don't remember if it was exactly the same). Maybe try to have your name written without any spaces and make sure that mac is written in small caps (if you have it in capital now). Again not sure if this is problem at all.
Idk to be honest - someone else will have to help you :)

If I set self_discovery and discovery to true I get other error:
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun broadlink-ac-mqtt (no readiness notification)
s6-rc: info: service legacy-services successfully started
Starting Monitor...
Stopping
something went wrong, no devices found
Starting Monitor...
Stopping
something went wrong, no devices found
Starting Monitor...
Stopping
something went wrong, no devices found
Starting Monitor...

I had this issue, and it was solved resetting the unit on AC Freedom.
Delete device from ACF
Then start the add process to send wifi config to AC, but dont continue to add the device to ACF
This solved it for me.

I had this issue, and it was solved resetting the unit on AC Freedom. Delete device from ACF Then start the add process to send wifi config to AC, but dont continue to add the device to ACF This solved it for me.

Yes but then  you can use AC Freedom too


Upload files without going through the GUI or cli

Is there a way to mount a volume on the docker pod without having to use the cli or the GUI?
I'm having trouble with HTTP 413 with those two so I'd just like to mount my external drive with all my files on it directly into the docker pod.
Thanks!

I am looking for this as well. We have thousands of images (svs) we want to import into cytomine. How can we do this without the webui.

Here's one more who looking for this..! We have thousands, too.


[FLINK-24210][serializer] Return the correct serialized length for wi…

…ndow-related serializer

What is the purpose of the change
This pull request return the correct serialized length for window-related serializer, rather than return 0.
Brief change log

Return the correct serialized length  for TimeWindow, GlobalWindow and CountWindow
Add unit test for TimeWindow.Serializer

Verifying this change
This change added tests and can be verified as follows:

Added unit test that validates that TimeWindow.Serializer can follow the standard serializer behavior

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): no
The serializers: yes
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented?

@ljz2051 Please take a look at the CI.
@flinkbot run azure

@flinkbot run azure

@flinkbot run azure

@flinkbot run azure


Airlock processor handles request approval

As an Airlock processor in TRE
I want to be able to be able to consume and operate on the approval event
So that requests approval are handled
Acceptance Criteria

[ ] Data artifact are no longer available in In-progress storage (which is handled by #1963  )
[ ] Data artifact are available in Approved storage
[ ] Step result event is sent by the airlock processor when the data copy is done
[ ] Data movement is logged for auditing purpose
[ ] Data Steward can no longer access the In-progress storage
[ ] A notification event with all the details sent to Event grid (to be consumed by #1964 )

Fixed by #2091


PointCloudTool support multi selection

:tada: This PR is included in version 1.0.0 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:


Bandcamp Wishlist and Following

Nice project,
I'm wondering if it could be possible to implement listening to followed artists new albums and wishlisted albums.
I have the opportunity to buy new albums for my collection about once a year, so it'd be nice to be able to save albums and artists to listen to.
If it's an easy implementation I could try to bend my python skills for it.

Wow.  I didn't even know bandcamp had a wishlist.  I feel dumb.
I've pushed a commit that adds support for browsing your wishlist (because the change was very easy, since it behaves almost identically to browsing your collection).   Later this week or this weekend I'll look into adding the following list (I've already added support in the bandcamp client portion of the code, but since the results are artists and not tracks/albums then I have to create some more code in the library provider to display the results, although you're more that welcome to do this if you're impatient).
Once that's added/tested that I'll create a new release.
I would love to implement adding the currently playing album to your wishlist, but because of mopidy's lack of a consistent front-end it's an ugly hack to do this.  I wish mopidy would just implement a thumbs up/thumbs down event that front-ends could trigger and that backends could handle however they needed to.
Thanks for the suggestions!

Thank you for this! I'll look into what I can potentially do.

Thanks!
The wishlist now shows up in Browse!

Hey all!
First of all, thanks so much again @impliedchaos for providing us with the plugin. Now that mopidy-spotify is at least momentarily down, it's great to have some alternatives.
Regarding the Wishlist feature and some related topics:
It's real nice having the Wishlist show up in Browse, since it's a handy way of interacting with that portion of your collection.
That being said, is there any way of adding sorting to the listed albums? For example, it would be neat-o having the most recently wishlisted albums first, since that's also the way I'm using the native Bandcamp web interface.
Looking at my other sources in Browse, it does seem like none of them allow for sorting.. The thing is, the music parsed by, for example, mopidy-spotify gets added to My albums, which then allows for further sorting. At the moment, the music from mopidy-bandcamp does not, neither the actual Collection nor the Wishlist.
I'm not very aware of the internal workings of these different end-points of mopidy, but merely thinking from a user perspective.
Would you have any wise thoughts on this @impliedchaos?


[NO-ISSUE] feat: add debian Dockerfile + update reqwest

Closing, included in https://github.com/meetsmore/nittei/pull/14


Feature/thuringa children day

refs #713

[X] Tests with a significant number of years to be tested for your calendar.
[X] Changelog amended with a mention describing your changes. Note Please do NOT change the version number here. It's the project maintainers' duty.

sorry, but the Queen's Elisabeth II death has forced me to make a hotfix release.
You may rebase this branch from the latest master after the 16.4.0 is published.
If you need some help, please tell me, I'd be glad to support you.

version 16.4.0 is published and available on PyPI:

https://github.com/workalendar/workalendar/releases/tag/16.4.0
https://pypi.org/project/workalendar/16.4.0/

could you please rebase from latest master? it has dropped compatibility with Python 3.6, and has added compatibility with Python 3.10 + 3.11.
If you need any help rebasing, please tell me.


Add correct issue to skipped traffic logging tests

Follow up of https://github.com/openstack-k8s-operators/ci-framework/pull/2440
Related-Issue: OSPRH-9203

/lgtm

/approve


Only accept trusted validators

Depends

#182

Problem
PR #182 adds support for adding and removing validators, but doesn't check if membership changes are trusted.
Solution
This PR builds on top of #182 and #184 to only accept trusted validators in Add_validators operation.

The commit / PR order needs to be different, otherwise if we need to revert this, it wouldn't be possible, and this is a critical change.

Understood. I dont' mind closing the other PRs and squash the main one into one commit.

@EduardoRFS Commits re-ordered

182 and this PR need to be merged together into one PR. Let me know whats to be done next

Superseded by https://github.com/marigold-dev/sidechain/pull/182


Fix for ipmi console execution failures.

HMI tests are broken due to expecation lists are changed.
Reverting back to correct expectation lists
IPMI_LPAR_EXPECT_PEXPECT_PROMPT_LIST = [r"[pexpect]#$", pexpect.TIMEOUT]
a. if command executed without failure we need to expect [pexpect]# .
b. if command fails we are waiting for 500s timeout to capture console log to see any kernel panic or system reboots
this is handled in run_lpar_cmd_on_ipmi_console of OpTestIPMI.py

This change is

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from the review on Reviewable.io


Creating a test go script shadows the actual custom module scripts

Due diligence

[x] I am familiar with the "Reporting issues" section of CONTRIBUTING.md
[x] I have searched the existing issues and haven't found one that matches what I'm reporting or requesting now.
[x] If this is a bug report, I have searched the Bash changelog for information that may explain or provide clues to the behavior I'm observing and reference it in the body of the report.

Framework, Bash, and operating system version information
_GO_CORE_VERSION:         v1.7.0
BASH_VERSION:             4.4.19(1)-release
OSTYPE:                   linux-gnu
_GO_PLATFORM_ID:          arch
_GO_PLATFORM_VERSION_ID:

Description
When creating a test go script using @go.create_test_go_script() and using run "$TEST_GO_SCRIPT", the paths are set so that the actual directory where the project's modules are is not taken into account when resolving the path to a module.
For example:
@test 'test' {
  @go.create_test_go_script '"$_GO_USE_MODULES" archive custom_module'
  run "$TEST_GO_SCRIPT"
  assert_success
}

will fail with an error like:
     `assert_success' failed
   expected success, but command failed
   STATUS: 70
   OUTPUT:
   ERROR: Module custom_module not found at:
     /.../scripts/vendor/go-script-bash/lib/internal/use:184 source
     /.../tmp/test rootdir/go:3 main

The reason is that the test go script is in a directory different to the actual project's go script. As a result the _GO_ROOTDIR=${0%/*} variable is set to the temporary test directory and the _GO_SCRIPTS_DIR is then resolved relative to that directory.
A way to avoid this error is to set the TEST_GO_ROOTDIR, TEST_GO_SCRIPTS_RELATIVE_DIR, etc mentioned in lib/testing/environment to custom values in a custom environment file so that effectively the TEST_* paths coincide with the actual _GO_* paths. But this defeats the purpose of the TEST_* variables (as I understand it) which is to create a sandbox directory where transient files will be written to and deleted without the fear of messing up the actual project.
Is my understanding of the above correct? Is this behavior by design or a limitation of the current design? In the latter case, there could be one more variable, TEST_REAL_GO_ROOTDIR that, if set, will set _GO_ROOTDIR in go-core.bash directly (as opposed to reading it from $0).
Edit: My use case is that my entry go script loads a number of modules regardless of the command. Then, a command might use a function that requires 4 modules. That could mean ~8 modules for a function to run correctly. It seems to me that copying or stubbing all 8 modules just to test one function is not the appropriate solution. But I might be wrong.

I ended up copying any needed file for a test to TEST_GO_ROOTDIR/.... I am leaving this open just in case @mbland has some insight to share.

Closing this as the design of the testing framework is indeed great and my solution is sufficient for my use case.


[SPONSOR] Update View Shipment page with the new information after the shipment has been confirmed as Received by SITE

Check that this is fully satisfied by #388


clickOnButton(String) working differently Debug vs Run in Android Studio

From<EMAIL_ADDRESS>on February 04, 2015 06:02:42
What steps will reproduce the problem? 1. Bring up dialog and enter data in edit text.
2. Solo.clickOnButton("Add")
3. Perform validation What is the expected output? What do you see instead? Data added to some data set. Fine in "debug" but performs validation before button click in "Run". There appears to be no button click at all in "Run". What version of the product are you using? On what operating system? Robotium 5.2.1 in Android Studio on Windows 7. Phone uses Android 4.0.3. Please provide any additional information below. Exactly the same methodology works fine on another test where the only difference is an autocompleteTextView for dialog entry instead of multiline EditText. Everything else is the same except for activity labels and actionbar icons.
Original issue: http://code.google.com/p/robotium/issues/detail?id=656

From<EMAIL_ADDRESS>on February 04, 2015 16:43:07
The problem is that in debug, the execution is so much slower and therefore the tests are more flaky.
Status: Invalid
Owner<EMAIL_ADDRESS>

From<EMAIL_ADDRESS>on February 04, 2015 23:46:47
Hi thanks for your reply. I put a 10 second sleep in front but still didn't
click. On another case, the wrong button was clicked.

From<EMAIL_ADDRESS>on February 05, 2015 08:49:20
I'm not sure what the issue could be. Robotium works by asking the View which coordinates it has and then it sends a pointer event there. It seems as if the View is giving incorrect information while being in debug mode..

From<EMAIL_ADDRESS>on February 05, 2015 09:45:50
In debug it's fine. In normal mode I get weird places where things are
clicked.


Nginx exited signal 6 with Utf8Error in Kong

Is there an existing issue for this?

[X] I have searched the existing issues

Kong version ($ kong version)
3.0.1
Current Behavior
When running internal security scans with Nessus we're seeing the following alert level logs being thrown from Nginx:
35#0: worker process 58 exited on signal 6 (core dumped)

When we drill down, we're also seeing the following in the Kong logs at the same time:
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 1, error_len: Some(1) }', src/ffi.rs:33:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: Rust panics must be rethrown

Expected Behavior
I expect Kong to handle the request without panicking
Steps To Reproduce
I've attached some of the access logs below for the requests that we're making to Kong, one of which we believe is the source of the panic.
Anything else?
kong-request-logs.csv

Thanks for you report, I think it is caused by atc-router, which is written by Rust.
atc-router has bumped to 1.0.2, and fixed an UTF-8 related bug (https://github.com/Kong/atc-router/releases/tag/1.0.2).
You can try kong 3.1.1(not released yet) to verify it again.

Thanks for the quick response, we looked through the changelog on the Kong project but missed the changes on atc-router. Upgrading to Kong 3.1.1 did the trick for us. Closing this out!


chore(deps): update dependency less to v3

This PR contains the following updates:

Package
Type
Update
Change

less (source)
devDependencies
major
2.7.3 -> 3.10.3

Release Notes

less/less.js
v3.10.3
Compare Source
v3.10.2
Compare Source
v3.10.1
Compare Source
v3.10.0
Compare Source
2019-08-03

Switched codebase to ES2015 w/ Rollup/Babel compilation
Added TS linter to ESLint (types yet to be added to functions / vars)
Ignore undefined content in generating source maps (#3360)

v3.9.0
Compare Source
2018-11-28

Added range([start=1], end, [step=1]) function to generate lists
Fixes #3325 #3313 #3328

v3.8.1
Compare Source
2018-08-07

Fixes for sourcemaps and color functions
Support for #RRGGBBAA color format
Allows conversion of colors to rgba() or hsla()
Pass-through output of unknown properties in color functions (allows var(--color) for example)

v3.8.0
Compare Source
2018-07-22

New feature: added rewrite urls to replace relative url option. Adds "local" option for modules

v3.7.1
Compare Source
2018-07-11

Fixes mistake in lessc (using console.warning instead of actual console.warn)
Adds lessc tests

v3.7.0
Compare Source
2018-07-11

New each() function! See docs
New math modes! Also see docs.
Bug fixes

v3.6.0
Compare Source
2018-07-10

Allows plain conditions in if(true, 1, 2) (vs. if((true), 1, 2))
Fixes svg-gradient() for Firefox
Adds more 3rd-party tests for fewer surprises when upgrading
Removes (broken) less-rhino implementation - use other Java ports

v3.5.3
Compare Source
2018-07-06

Reverts @media eval change
Other bug fixes

v3.5.2
Compare Source
v3.5.1
Compare Source
v3.5.0
Compare Source
2018-07-05

Feature: Namespaced Values / Maps e.g. color: @color[primary]
Fixes to calc()
Permissive parsing of custom properties and variables
Inline expressions now not evaluated in at-rules @media (min-width: @var) {} works, @media (min-width: @var + 1) {} will not
Allows unnamed lookups i.e. "functions" e.g. .mixin(@a, @b)[]
Lots of bug fixes

v3.0.4
Compare Source
2018-05-06

Update source-map to 0.6.x (#3180). Enforces node 6+ though.

v3.0.2
Compare Source
v3.0.1
Compare Source
v3.0.0
Compare Source
2018-02-10

Fix calc() function to not do math operations on compile
Rename Directive -> AtRule & Rule -> Declaration
Cross-platform @plugin loading! (Node & Browser)
Numerous changes / improvements to plugin architecture
Simplified API calls in plugins (less.atrule() vs new less.tree.AtRule())
Property accessors ($width to refer to width: 300px value)
Inline JavaScript disabled by default for security reasons (use @plugin)
Improvements in Less error reporting
Added feature: returning null / false from Less functions will remove that line
Simple boolean() and if() functions added
Bug fixes
Removal of unnecessary nodes from API (like IE's alpha())

Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Enabled.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.

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

Available now for Enterprise: Renovate Pro with real-time webhook handling and priority job queue.

@mperrotti do you have an idea why this fails?

It appears to be a webpack issue. It's a major release, so there must be some notes on breaking changes between 2 and 3

yeah, the issue seems to be with @import '~@dcos/ui-kit/dist/packages/design-tokens/build/less/_designTokens';
i thought you might have some immediately coming to mind.
thanks for having a look!
i'll dig into that tomorrow.

i failed updating less/less-loader within an hour. it seems like cnvs is putting serious trouble on us although it seems to use less 3.9.0 itself 🤔

Renovate Ignore Notification
As this PR has been closed unmerged, Renovate will ignore this upgrade and you will not receive PRs for any future 3.x releases. However, if you upgrade to 3.x manually then Renovate will then reenable updates for minor and patch updates automatically.
If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.


⚠ ClamAV has degraded performance

In fca422c, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 72 ms

Resolved: ClamAV performance has improved in d3db473.


Support asymmetric JWK

Uses the jose library to support signing JWTs with many algorithms including RSA.
The jwt-secret configuration parameter previously used to accept only an HMAC-SHA256 secret. Now it accepts any JSON Web Key (JWK). It's backward compatible in that if you provide a string it can't parse as JWK then it treats it as an HMAC-SHA secret.
To use PostgREST with asymmetric crypto you use the private key to sign the JWT, and put the public key inside the PostgREST config to verify the signature. I added a test case for a RS256 keypair. Note that the JWT spec requires the key size to be at least 2048 bits.
There is technically one breaking change: if you use a plain string secret this library requires it to be at least 32 characters long. Shorter secrets will cause the JWT validation to always fail. This length requirement is actually mandated by the JWT standard for proper security, but our previous Haskell library was lenient and didn't require it. So for people using PostgREST with a shorter secret, they would need to change the secret prior to upgrading.
Also note that jose supports validating with more than one key, so this PR paves the way for passing a json array in the jwt-secret parameter as desired in #505 .
Fixes #567

@eric-brechemier wondering if you can help me out -- the secrets used in your io-tests are too short for the new jose library. Could you send a pull request to lengthen them? I can then rebase on it.

So i am looking at the fact that the exp validation is done internally in the jwt lib
and it starts with this line
https://github.com/frasertweedale/hs-jose/blob/master/src/Crypto/JWT.hs#L437
The definition of the currentTime is actually ask from inside the MonadTime  which i think is this
https://hackage.haskell.org/package/monad-time-0.2/docs/src/Control-Monad-Time.html#currentTime
so in the end, what gets called is Data.Time.getCurrentTime
and the type of the function also tells us there is IO
https://github.com/begriffs/postgrest/blob/6fe32f1bdc5cd2c733bbe9f7bcd54aa359724dad/src/PostgREST/Auth.hs#L45
jwtClaims :: Maybe JWK -> BL.ByteString -> IO JWTAttempt
so what i am getting at is that or each JWT validation, each request, we are doing a syscall with Data.Time.getCurrentTime which is an expensive call.
Merging it this way big regression in speed.
It's too many monads for me to be comforatable with so i don't know where exactly this should/can be fixed, postgrest code, or JOSE but this (doing expensive sys calls on every request) does not work well in webserver settings

it also seems that every other validation function is making a call to currentTime and i don't think that is being cached somewhere, it will go all the way down to the OS.

I remember when we pulled the time check out so that it wouldn't get called on every request, but do you remember if checking the time adds significant delay?

it might seem small in human terms, but when you want high performance (thousands of rps) those things add up.  I specifically took that out after reading a blog post from warp describing this specific thing (doing get time + formatting it) as a reason for low performance and a thing they had to optimize.

@eric-brechemier wondering if you can help me out -- the secrets used in your io-tests are too short for the new jose library. Could you send a pull request to lengthen them? I can then rebase on it.

@begriffs sure, can you give me more details?

Oops, yeah. 😄
The secret strings need to be at least 32 bits, so some of the unicode ones are squeaking by, but most are too short. When the new JWT library tries to validate a token signed with a short string, it treats it as a validation failure.

@begriffs done in d824d81 in https://github.com/eGullGolf/postgrest/tree/issue919

@begriffs @ruslantalpa I'm also sad to see auto-update go.
It seems to me that jose already does the job of using a polymorphic monad so we can provide a custom instance instead of using IO.
Something like the wai-transformers package might make it easier.

@diogob interesting idea, do you have the time/desire to look into it and paste a code snippet of how it might work?

@begriffs I'd love to. I'll try to write something.

OK, as we discussed in the chat room, the getCurrentTime is probably not that much overhead, and we'll merge this as is.
The jose library is going to add a new validation function for us where we can pass in the time ourselves, so if the current way turns out to be too slow we can more easily fix it later.


Homepage should not be named marketing

Describe the bug
Currently we have name the homepage or index (marketing) , the name is not reflecting the page content, It should name home
To Reproduce
Steps to reproduce the behavior:

Go to code
Click on 'app' folder and check the '(marketing)'

Expected behavior
It should be home page or something that reflect the content of the page
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Hi can I work on this?

Hey @DivyanshVinayak23  could you please share the expected timeline?

Hey @DivyanshVinayak23 could you please share the expected timeline?

could you please further explain the issue? I am having a hard time understanding

Hey @DivyanshVinayak23 could you please share the expected timeline?

could you please further explain the issue? I am having a hard time understanding

Here are the steps and expected behaviour:
Steps to reproduce the behavior:

Go to code
Click on 'app' folder and check the '(marketing)'

Expected behavior

It should be home page or something that reflect the content of the page

This is a quick fix. So, over the weekend you can fix would be great, Thanks


pyhasattr segfault

I'm getting a segfault with PythonPlot.jl after a testsuite has finished, assuming that it's during finalizers
https://github.com/stevengj/PythonPlot.jl/pull/24
signal (11): Segmentation fault
in expression starting at none:0
_PyInterpreterState_GET at /usr/local/src/conda/python-3.11.0/Include/internal/pycore_pystate.h:116 [inlined]
get_dict_state at /usr/local/src/conda/python-3.11.0/Objects/dictobject.c:251 [inlined]
new_dict at /usr/local/src/conda/python-3.11.0/Objects/dictobject.c:722 [inlined]
PyDict_New at /usr/local/src/conda/python-3.11.0/Objects/dictobject.c:841
type_ready_set_dict at /usr/local/src/conda/python-3.11.0/Objects/typeobject.c:6143 [inlined]
type_ready at /usr/local/src/conda/python-3.11.0/Objects/typeobject.c:6462 [inlined]
PyType_Ready at /usr/local/src/conda/python-3.11.0/Objects/typeobject.c:6513
_PyObject_GenericGetAttrWithDict at /usr/local/src/conda/python-3.11.0/Objects/object.c:1266
PyObject_GenericGetAttr at /usr/local/src/conda/python-3.11.0/Objects/object.c:1367 [inlined]
module_getattro at /usr/local/src/conda/python-3.11.0/Objects/moduleobject.c:761
PyObject_GetAttr at /usr/local/src/conda/python-3.11.0/Objects/object.c:916
PyObject_GetAttr at /home/ubuntu/.julia/packages/PythonCall/dsECZ/src/cpython/pointers.jl:299 [inlined]
macro expansion at /home/ubuntu/.julia/packages/PythonCall/dsECZ/src/Py.jl:131 [inlined]
pyhasattr at /home/ubuntu/.julia/packages/PythonCall/dsECZ/src/abstract/object.jl:37
#9 at /home/ubuntu/.julia/packages/PythonPlot/ei8cR/src/pygui.jl:194
macro expansion at ./asyncevent.jl:281 [inlined]
#666 at ./task.jl:134
unknown function (ip: 0x7fac1b57080f)
_jl_invoke at /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/src/gf.c:2377 [inlined]
ijl_apply_generic at /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/src/gf.c:2559
jl_apply at /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/src/julia.h:1843 [inlined]
start_task at /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/src/task.c:931
Allocations: 860081766 (Pool: 859557939; Big: 523827); GC: 110

I noticed that pyhasattr is PyObject_GetAttr backed.
Perhaps it needs some more protection against whatever is causing this?

I don't see why this can be closed

Can you provide a MWE for this issue?

@IanButterworth I am running into a very similar segmentationfault, but have no clue at why it is there and how to prevent it. If you have some ideas or MWE, any help is highly appreciated
I am currently trying to use PythonCall for extending Pluto towards Python. While when I load my routines on the shell directly, evrything works nicely, but if they are called somewhere in the Pluto webserver to do parsing, I get a similar segmentation fault. I cannot minify it yet...

I wasn't able to reduce this. And the code it happened on was private. Sorry

I was able to reproduce this - it is an interaction between PythonCall, HTTP and having set Julia Threads
spawn a container like this
FROM julia:1.9-bookworm AS usersetup
ENV JULIA_NUM_THREADS=auto
CMD julia

and run the following MWE
import Pkg
Pkg.add(["HTTP", "PythonCall", "Sockets"])
using HTTP
using PythonCall
import Sockets

function default_404(req = nothing)
    HTTP.Response(404, "Not found!")
end

router = HTTP.Router(default_404)

@warn "pid = ..."
os = pyimport("os")
pid = os.getpid()
@warn "pid = $pid"

function get_pid(request::HTTP.Request)
    @warn "pid = ..."
    os = pyimport("os")
    pid = os.getpid()
    @warn "pid = $pid"
    return HTTP.Response(200, string(pid))
end
HTTP.register!(router, "GET", "/pid", get_pid)

port = UInt16(32132)
serversocket = Sockets.listen(port)
server = HTTP.listen!(port; stream=true, server=serversocket, verbose=-1) do http::HTTP.Stream
    request::HTTP.Request = http.message
    request.body = read(http)
    response_body = router(request)
    @show response_body
    request.response::HTTP.Response = response_body
    request.response.request = request

    try
        HTTP.setheader(http, "Content-Length" => string(length(request.response.body)))
        # https://github.com/fonsp/Pluto.jl/pull/722
        HTTP.setheader(http, "Referrer-Policy" => "same-origin")
        # https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#:~:text=is%202%20minutes.-,14.38%20Server
        HTTP.startwrite(http)
        write(http, request.response.body)
    catch e
        if isa(e, Base.IOError) || isa(e, ArgumentError)
            # @warn "Attempted to write to a closed stream at $(request.target)"
            @debug "that is fine error" exception=(e, catch_backtrace())
        else
            rethrow(e)
        end
    end
end

sleep(2)

HTTP.get("http://localhost:$port/pid")

you will see that while the outer call to os.getpid() works, the inner raises the segmentation fault.

PythonCall is not thread safe. Presumably HTTP is automatically threading your get_pid handler. See the linked article for advice.

Thank you for linking this known problem to this one. It was quite tough to debug this.
I think it could very helpful for others if a concrete example of the stacktrace is also included in the not-thread-safe-documentation. This helps identifying the problem even if threads are not obvious at first.
here my stacktrace version
[1] signal (11.1): Segmentation fault
in expression starting at REPL[18]:1
_PyInterpreterState_GET at /usr/local/src/conda/python-3.12.0/Include/internal/pycore_pystate.h:118 [inlined]
get_state at /usr/local/src/conda/python-3.12.0/Objects/obmalloc.c:866 [inlined]
_PyObject_Malloc at /usr/local/src/conda/python-3.12.0/Objects/obmalloc.c:1563 [inlined]
PyObject_Malloc at /usr/local/src/conda/python-3.12.0/Objects/obmalloc.c:801 [inlined]
PyUnicode_New at /usr/local/src/conda/python-3.12.0/Objects/unicodeobject.c:1208 [inlined]
unicode_decode_utf8 at /usr/local/src/conda/python-3.12.0/Objects/unicodeobject.c:4647
PyUnicode_DecodeUTF8 at /home/ssahm/.julia/packages/PythonCall/qTEA1/src/cpython/pointers.jl:299 [inlined]
pystr_fromUTF8 at /home/ssahm/.julia/packages/PythonCall/qTEA1/src/concrete/str.jl:1 [inlined]
pystr_fromUTF8 at /home/ssahm/.julia/packages/PythonCall/qTEA1/src/concrete/str.jl:2
pystr at /home/ssahm/.julia/packages/PythonCall/qTEA1/src/concrete/str.jl:10 [inlined]
Py at /home/ssahm/.julia/packages/PythonCall/qTEA1/src/Py.jl:138 [inlined]
macro expansion at /home/ssahm/.julia/packages/PythonCall/qTEA1/src/Py.jl:130 [inlined]
pyimport at /home/ssahm/.julia/packages/PythonCall/qTEA1/src/concrete/import.jl:11
get_pid at ./REPL[12]:3
unknown function (ip: 0x7fbfa41ed942)
_jl_invoke at /cache/build/default-amdci5-5/julialang/julia-release-1-dot-9/src/gf.c:2758 [inlined]
ijl_apply_generic at /cache/build/default-amdci5-5/julialang/julia-release-1-dot-9/src/gf.c:2940
Router at /home/ssahm/.julia/packages/HTTP/SN7VW/src/Handlers.jl:439
unknown function (ip: 0x7fbfa41ecae2)
_jl_invoke at /cache/build/default-amdci5-5/julialang/julia-release-1-dot-9/src/gf.c:2758 [inlined]
ijl_apply_generic at /cache/build/default-amdci5-5/julialang/julia-release-1-dot-9/src/gf.c:2940
#3 at ./REPL[16]:4
unknown function (ip: 0x7fbfa41e1cb2)
_jl_invoke at /cache/build/default-amdci5-5/julialang/julia-release-1-dot-9/src/gf.c:2758 [inlined]
ijl_apply_generic at /cache/build/default-amdci5-5/julialang/julia-release-1-dot-9/src/gf.c:2940
jl_apply at /cache/build/default-amdci5-5/julialang/julia-release-1-dot-9/src/julia.h:1880 [inlined]
jl_f__call_latest at /cache/build/default-amdci5-5/julialang/julia-release-1-dot-9/src/builtins.c:774
#invokelatest#2 at ./essentials.jl:819 [inlined]
invokelatest at ./essentials.jl:816 [inlined]
handle_connection at /home/ssahm/.julia/packages/HTTP/SN7VW/src/Servers.jl:450
macro expansion at /home/ssahm/.julia/packages/HTTP/SN7VW/src/Servers.jl:386 [inlined]
#16 at ./task.jl:514
unknown function (ip: 0x7fbfa41d7f6f)
_jl_invoke at /cache/build/default-amdci5-5/julialang/julia-release-1-dot-9/src/gf.c:2758 [inlined]
ijl_apply_generic at /cache/build/default-amdci5-5/julialang/julia-release-1-dot-9/src/gf.c:2940
jl_apply at /cache/build/default-amdci5-5/julialang/julia-release-1-dot-9/src/julia.h:1880 [inlined]
start_task at /cache/build/default-amdci5-5/julialang/julia-release-1-dot-9/src/task.c:1092
Allocations: 23329414 (Pool: 23311485; Big: 17929); GC: 35

Good idea.


Example for axios

With axios it's handy to "define requests" using a request object, for example like this:
import axios, { AxiosRequestConfig } from 'axios';

const request: AxiosRequestConfig = {
  baseURL: 'https://api.example.com',
  withCredentials: true,
  method: 'GET',
  url: '/search',
  params: {
    term: 'foobar',
  },
};

const response = await axios(request);
const data = response.data;

But from what I can gather, the key I can pass in to useSWR has to be a string? I can't find any of your included examples that uses anything other than a simple string either. In the readme, there's a short mention of using arrays, which can include both strings and objects, but it doesn't mention what the fetcher would actually look like, and it also says the key comparison is shallow, so with my request object above here, I assume that means a change in request.params.term would not be picked up?
Would it be possible for someone to add an example of how one can use useSWR with axios and a request object like this? Or is it perhaps not possible to do that?

When using an array as the key, SWR will pass those items as arguments to the fetcher function:
useSWR([A, B, C, ...], fetcher)
// calls fetcher(A, B, C, ...)

For your specific case, I'd do something like:
// global config because this part won't change
const getRequest: AxiosRequestConfig = {
  baseURL: 'https://api.example.com',
  withCredentials: true,
  method: 'GET'
};

function App () {
  // inside component
  const params = useMemo(() => ({ term }), [term])
  useSWR(
    ['/search', params],
    (url, params) => axios({ ...getRequest, url, params }).then(res => res.data)
  )
}

or simpler:
// global config because this part won't change
const getRequest: AxiosRequestConfig = {
  baseURL: 'https://api.example.com',
  withCredentials: true,
  method: 'GET'
};

const fetchTerm = (url, term) =>
  axios({ ...getRequest, url, params: { term } }).then(res => res.data)

function App () {
  // inside component
  useSWR(['/search', term], fetchTerm)
}

The major reason of shallow comparison is performance. So it will always render faster, and it will reuse the stale data if the same url + params pair has occurred before.
Thanks for the feedback! We will definitely improve the readme and create an example for axios.

@quietshu Thank you for a quick reply!
In your example you have pulled the params out of the request object, which I was hoping to avoid as it's super useful to have it all contained in one request object. I definitely get the need for performance, but for small objects like these, would a deep equality check really be much slower? Would it maybe be possible to add the option of switching to a deep equality check?

@Svish I see your point 👍 I think this might be helpful then:
// let url = '/search'
// let term = 'foobar'

useSWR([url, term], () => axios({
  baseURL: 'https://api.example.com',
  withCredentials: true,
  method: 'GET',
  url,
  params: { term }
}).then(res => res.data))

key is just an indicator of this specific request, you can totally ignore it from the fetcher params. Just make sure the request will always be associated with the key (if key changes, the request will change).

So, would something along the following work? 🤔
// useRequest.js
export default function useRequest(request, config) {
  const { data: response, error, isValidating, revalidate } = useSWR(
    JSON.stringify(request),
    () => axios(request),
    config
  );

  return {
    data: response && response.data,
    response,
    error,
    isValidating,
    revalidate,
  };
}

const { data } = useRequest({
  baseURL: 'https://api.example.com',
  withCredentials: true,
  method: 'GET',
  url: '/search',
  params: {
    term: 'foobar',
  },
});

It will work :)

@quietshu Quick question... does config have any effect on whether useSWR decides to revalidate? I.e. do I need to useMemo if the config might not be the same object every time (even though it has the same contents), or would that be unnecessary?

@Svish nope, config change doesn't trigger revalidation. The only exception is config.refreshInterval. If that changes, SWR will adjust the polling interval.

@Svish
Thank you for the example.
In case anyone interested, a typed version of this example:
import axios, { AxiosError, AxiosRequestConfig, AxiosResponse } from "axios"
import useSWR, { ConfigInterface } from "swr"

export const useSWRAxios = <Data extends {}>(
  request: Omit<AxiosRequestConfig, "baseURL" | "method" | "data">,
  config?: ConfigInterface,
) => {
  const requestModified: AxiosRequestConfig = {
    ...request,
    method: `GET`,
  }
  const configModified: ConfigInterface = {
    ...config,
    // global customizations
  }
  /**
   * Axios has a wrapper object around data => filter response
   */
  const { data: response, ...responseUseSWR } = useSWR<
    AxiosResponse<Data>,
    AxiosError
  >(
    JSON.stringify(requestModified),
    async () => reqBase(requestModified),
    configModified,
  )
  const { data, ...responseAxios } = response || {}
  return { ...responseUseSWR, ...responseAxios, data }
}

@o-alexandrov If you check out the pr i added for this, I also added one for typescript 😉
https://github.com/zeit/swr/blob/master/examples/axios-typescript/libs/useRequest.ts

As a noob end-user the useRequest axios example just works, awesome. I do have a feeling that some swr features like trigger no longer "just work". If confirmed, I could add a small disclaimer to the examples.

How do you folks handle updating the cache with this useRequest helper? Seems like an anti-pattern whenever there is already a good pattern that accepts any fetch implementation.

// useRequest.js
export default function useRequest(request, config) {
const { data: response, error, isValidating, revalidate } = useSWR(
JSON.stringify(request),
() => axios(request),
config
);
return {
data: response && response.data,
response,
error,
isValidating,
revalidate,
};
}
const { data } = useRequest({
baseURL: 'https://api.example.com',
withCredentials: true,
method: 'GET',
url: '/search',
params: {
term: 'foobar',
},
});
give ex for post method @Svish ,please help . I am struck


Adjusted xml2rfc compatibility path implementation

Requirements (to reiterate):

A valid XML response must be returned for any requested xml2rfc path
If possible (plan A), returned XML response must reflect a citation indexed from one of the canonical data sources, not its original xml2rfc contents
As a fallback (plan B), returned XML response must be the exact file under requested xml2rfc path

Adjusted legacy path implementation is as follows:

When handling an xml2rfc path, BibXML service will transform the path to citation document type & ID (the docid pair in Relaton data)
For example, a path like /public/rfc/bibxml9/reference.BCP.0004.xml should be converted to docid like { "type": "IETF", "id": "IETF BCP 4" }
Manual docid mapping will be used first, if defined for this path
In absence of manual mapping, automatic transformation will be attempted (fallible)
If either of the above fails, BibXML service will return pre-crawled XML file obtained from xml2rfc server

Just to clarify that there are 2 types of mappings:

A path pattern mapping where a legacy filename path maps to a new citation document ID. This works for file paths that have a strong path pattern consistency, i.e. RFCs and I-Ds.
A manual file path mapping (which is technically the singular case for 1), where the legacy file path is not based on a consistent underlying path pattern, and that we need to make a one-to-one mapping from legacy file path to document ID. e.g. this will be the case for the ieee, misc datasets

Just to clarify that there are 2 types of mappings:

To use precise terminology, there is a manual mapping, and there is an automated path=>docid transformation attempted in absence of the mapping.
If docid obtained as a result of that transformation does not yield an indexed citation, then we fall back to source contents.

And the most important thing is that the "legacy path mappings" should be considered configuration and changeable without needing code changes.

This depends on how we provide legacy path mappings. Originally I intended to provide a web GUI for that, but you mentioned some data analysis was being performed and I thought we might get a pre-made map as a result of that effort, in which case it’s probably not going to change.

New implementation uses fetcher functions, mapped to relevant bibxml directories in URL configuration.


jump step type

Enable a step that jumps to another step by id (today you can only do that with a prior condition)

Implemented this will perform pull request later :)


Implementing Navbar/Hiding Functionality for Members Page

One small thing I noticed: When you hover over a member, there isn't any indication that a user can click on the photo to go to the individual member page. I think it's best to add a visual change to the cursor when a user is over the member so that they know they can click on the photo and go to the individual member page.

I've been looking, but I can't find anything about being able to add that feature. Maybe we just write that the pictures are clickable in the grey box at the top of the page?

Nevermind, I was able to fix it!


Adding PopupMenuProxy class

This should fix #94 plus bring the PopupMenu creation in line with other
elements of the shelf builder.
This also reworks the builder to only build one PopupMenu instance
instead of recreating it for each menuItem.

@Zackaroni Can you test this as a fix against #94?
Its working for me against the example shelf, but want to see that you don't have a fun edge case that I missed.

It's working for me.  If there's an edge case, I don't have it.


possibly outdated commands in Tutorial 1

Hi,
I'm following the tutorials and happened to notice that the method Model.addJointAndBody (as used in tutorial 1.2, model.addJointAndBody(parent, jointModel, jointPlacement, bodyInertia, jointName, bodyName)) is not available any more
If I understand correctly, it has been substituted by Model.addJoint and Model.appendBodyToJoint.
Also it seems Model.nbody and Model.njoint have been replaced by Model.nbodies and Model.njoints respectively.
It could be useful to update the documentation.
I'm pasting here the code snippets I used, if you ever found them convenient for copying.
# Example of creation of a simple robot model with one single revolute joint rotating around axis X.
model = se3.Model.BuildEmptyModel()
name                          = "first"                             # Prefix of the name.
jointName,bodyName            = [name+"_joint",name+"_body"]        # Names of joint and body.
jointPlacement, bodyPlacement = se3.SE3.Random(),se3.SE3.Random()   # SE3 placement of the joint wrt chain init.
parent                        = 0                                   # Index of the parent (0 is the universe).
jointModel                    = se3.JointModelRX()                  # Type of the joint to be created.
bodyInertia                   = se3.Inertia.Random()                # Body mass/center of mass/inertia => useless for
                                                                    # this tutorial.

model.addJoint(parent,jointModel,jointPlacement,jointName)
model.appendBodyToJoint(model.getJointId(jointName), bodyInertia, bodyPlacement)
print('Model dimensions: {:d}, {:d}, {:d}'.format(model.nbodies,model.nq,model.njoints))

Finally the method XYZQUATToViewerConfiguration mentioned in tutorial 1.1 yields deprecation warnings of the type:
.../display.py:55: DeprecatedWarning: Call to deprecated function XYZQUATToViewerConfiguration. Now useless.
  XYZQUATToViewerConfiguration(se3ToXYZQUAT(M)) )

@miggia . I want to thank you for this issue.
Can you give the link of the tutorials that you are currently using?

Hi @jcarpenter,
I'm looking at the tutorial at https://stack-of-tasks.github.io/pinocchio/tutorials.html#Tutorial_1
As a side note, it took me a while to figure out that to instantiate se3.SE3 objects, Pinocchio expects "vertical" matrices (differently from what is pointed out in Tutorial 4 where the se3.SE3 object is created as cost.Mdes = se3.SE3( eye(3),np.matrix([0.2,0,0.1+t/100.]) )).
For example, se3.SE3( eye(3),np.matrix([0.0, 0.0, 0.0])) returns an error of the type:
ArgumentError: Python argument types in
    SE3.__init__(SE3, matrix, matrix)
did not match C++ signature:
    __init__(_object*, se3::SE3Tpl<double, 0> other)
    __init__(_object*, int trivial arg (should be 1))
    __init__(_object*, Eigen::Matrix<double, 3, 3, 0, 3, 3> Rotation, Eigen::Matrix<double, 3, 1, 0, 3, 1> translation)
    __init__(_object*)
    __init__(_object*)

while se3.SE3( eye(3),np.matrix([0.0, 0.0, 0.0]).T) works OK.
Maybe I'm doing something wrong, but if that's not the case it might be useful to provide an example in the tutorial.

@nim65s integrated the new tutorials ("labs") in the documentation of the current master. It is published at the following address:
http://projects.laas.fr/gepetto/doc/stack-of-tasks/pinocchio/master/
We should remove the link to the old version of the tutorial, that are referred in the github.io of pinocchio. @nim65s , would you have the time to do so?

Hi,
Thanks for the report :)
The links in https://stack-of-tasks.github.io/pinocchio/ for the tutorial and the documentation have been updated respectively in b03e1c0551e56dc0c76f5300b29b13ff1badb9ea & 95fc4f15121f45f32c72a535f9c258c7052ab490

Thank you for the feedback.
I'll start looking at the new tutorials.
Best regards.


Nav-bar dropdowns don't close when clicked

I'm building a single-page web app, and the nav-bars have begun exhibiting an annoying behaviour as of Foundation 5.4.6. They no longer close when clicked on. In a multi-page app, this isn't a problem -- but in a single-page app it means that the menu just hangs around until you actively click off of it. This can be seen by clicking on the first example menu at http://foundation.zurb.com/docs/components/topbar.html, provided that the top of the page (which it links to) is still within the field of view.

I am having the same issue, not sure why this ticket was closed #5551 is a different issue all together....  The hacks I have found do not seem to be working properly for me.


Filter by multiple templates

Great field plugin. Thanks!
Is it possible to filter by multiple categories?
This does not work (for me):
...
fields:
	mysubpagelist:
		label: My Subpagelist
		type:  subpagelist

		flip:  true
		filter:
			visible: true
			template:
				- mytemplate
				- myothertemplate
...

Thanks for your suggestion. Unfortunately this is not possible at the moment, but I will put it on my to-do-list ;-)

Hi Dennis,
could you please check out the develop branch!? I added your suggestion and it would be great if somebody would test it before I merge it into the master branch.
Thanks, Flo.


Build a tool using OpenRPC

Build a tool using OpenRPC
Prize amount
500 USD paid in Ethereum Classic (ETC)
Challenge Description
The OpenRPC Specification defines a standard, programming language-agnostic interface description for JSON-RPC 2.0 APIs. In other words, OpenRPC is an alternative to OpenAPI or gRPC. However, OpenRPC is completely focused around JSON-RPC APIs.
Motivation
This is an open-ended challenge. Build a tool that utilizes OpenRPC.
Some tools that are currently using OpenRPC

https://inspector.open-rpc.org/
https://playground.open-rpc.org/
Many more tools at https://github.com/open-rpc/

Acceptance Criteria

Should enable developers to do something.
Should encourage OpenRPC

Submission Requirements

Work on your fork of this repository, then make a pull request to submit your project.
Include documentation explaining your project with usage examples. Consider at least a good readme. Of course, anything that presents your project is a plus (github pages site, video demos, etc...)
Do not delete Pristine template files such as BUILDING.md, CONTRIBUTING.md
, CONVENTIONAL_COMMITS.md, LICENSE.md, etc..

Submission Deadline
The deadline for submissions is May 20.
Judging Criteria
The submission will be awarded upon valid and highest quality submission.
Winner Announcement Date
The submissions will be reviewed by May 22. Winner announcements and price payouts will occur before May 30.

Bounty owner: Stev
Contact: @stev#0710 on ETC Labs Discord
Discord invite: https://discord.gg/F9nrQm7

I plan to implement a language server for OpenRPC and I have started a Work In Progress PR #2. @stevanlohja Can I start work on this?

Someone wants to connect this issue for enable P2p_codes for funding it's of part of a GiftChain.


rustup does not work on MIPS fedora 24

http://i.imgur.com/uMzgxk2.png
Native curl binary works just fine. It uses NSS instead of OpenSSL though.

@nagisa looks the same as #1051 - there's a PR with a fix linked there

Yp.


(GH-1549) Add private "metadata" to plans

This adds a private parameter to plan "metadata" that tells Bolt
content consumers to not display the plan. For YAML plans the parameter
is a top-level private key that takes a boolean value. For Puppet
plans the parameter is a puppet strings tag @private which accepts the
strings 'true' and 'false'. The bolt plan convert command knows how to
translate the private key from YAML plans to Puppet plans.
Plans that have the private parameter set to true will not be shown in
bolt plan show or Get-BoltPlan lists. Plan details can be shown with
bolt plan show <plan> or Get-BoltPlan -Name if the plan name is
given. Private plans can still be run with Bolt.
Bolt will error if private is defined but has an invalid value.
This also adds caching for plan private metadata whenever
modules are downloaded or a generate-types command is run. If PAL is
running without a project, caching is not enabled. Caching works by
saving the plan details hash that's used for bolt plan show <plan> to
.plan_cache.json in the Bolt project. The cache is updated whenever a
generate-types command is run, when individual "local plans" are updated
if they have been modified since they were cached, or when the user
removes the cache file. The cache stores the modified time of the
local plan when it's cached, and checking it against the current
modified time of the plan when it's going to be listed. A plan is
considered local if it's in the project's plans/ directory, or in a
module in the modules/ directory of a project. All other plans are
considered downloaded, and can only be refreshed by re-downloading the
plan or removing the cache file. Only the private metadata is cached,
no other data is saved.
Closes #1549
!feature

Hide private plans from 'bolt plan show' (#1549)
Users can now set the top-level private key in YAML plans, or the
@private puppet string.

@private puppet string

Setting plans to private

[ ] Hides a Puppet plan with @private true
[ ] Does not hide a Puppet plan with @private false
[ ] Does not hide a Puppet plan with @private <non-Boolean>
[ ] Does not hide a Puppet plan by default
[ ] Hides a YAML plan with private: true
[ ] Does not hide a YAML plan with private: false
[ ] Does not hide a YAML plan with private: <non-Boolean>
[ ] Does not hide a YAML plan by default

Showing and running plans

[ ] Hides private Puppet plans in bolt plan show
[ ] Hides private YAML plans in bolt plan show
[ ] Does not hide private Puppet plans in bolt plan show <plan>
[ ] Does not hide private YAML plans in bolt plan show <plan>
[ ] Does not hide public Puppet plans
[ ] Does not hide public YAML plans
[ ] Runs private Puppet plans with bolt plan run <plan>
[ ] Runs private YAML plans with bolt plan run <plan>
[ ] Runs inner private Puppet plans
[ ] Runs inner private YAML plans

Converting a YAML plan to a Puppet plan

[ ] Converts a YAML plan with private: true to a Puppet plan with @private true
[ ] Converts a YAML plan with private: false to a Puppet plan with @private false
[ ] Does not add @private tag when private is not set
[ ] Does not convert a YAML plan with private: <non-Boolean>

Caching metadata

[ ] Creates cache when installing modules
[ ] Updates cache when installing modules
[ ] Creates cache when generating types
[ ] Updates cache when generating types
[ ] Updates cache when modifying a plan

Setting plans to private

[ ] Hides a Puppet plan with @private true
[ ] Does not hide a Puppet plan with @private false
[ ] Does not hide a Puppet plan with @private <non-Boolean>
[ ] Does not hide a Puppet plan by default
[ ] Hides a YAML plan with private: true
[ ] Does not hide a YAML plan with private: false
[ ] Does not hide a YAML plan with private: <non-Boolean>
[ ] Does not hide a YAML plan by default

Showing and running plans

[ ] Hides private Puppet plans in bolt plan show
[ ] Hides private YAML plans in bolt plan show
[ ] Does not hide private Puppet plans in bolt plan show <plan>
[ ] Does not hide private YAML plans in bolt plan show <plan>
[ ] Does not hide public Puppet plans
[ ] Does not hide public YAML plans
[ ] Runs private Puppet plans with bolt plan run <plan>
[ ] Runs private YAML plans with bolt plan run <plan>
[ ] Runs inner private Puppet plans
[ ] Runs inner private YAML plans

Converting a YAML plan to a Puppet plan

[ ] Converts a YAML plan with private: true to a Puppet plan with @private true
[ ] Converts a YAML plan with private: false to a Puppet plan with @private false
[ ] Does not add @private tag when private is not set
[ ] Does not convert a YAML plan with private: <non-Boolean>

Caching metadata

[ ] Creates cache when installing modules
[ ] Updates cache when installing modules
[ ] Creates cache when generating types
[ ] Updates cache when generating types
[ ] Updates cache when modifying a plan

@puppetlabs/skeletor any concerns, or good to merge on y'alls end?

@puppetlabs/skeletor any concerns, or good to merge on y'alls end?


Fix wrong allocated vector length in RowSlice for DMat

The RowSlice implementation for DMat allocates and returns a DVec of length self.nrows independent of the size of the slice.
These changes resolve the bug and add test cases for the DMat implementations of RowSlice and ColSlice.

Thanks!


support passing in html_context

html_context
A dictionary of values to pass into the template engine’s context for all pages. Single values can also be put in this dictionary using the -A command-line option of sphinx-build.

New in version 0.5.

nvm got a workaround

What was the workaround?

05:48에 "sixinli"<EMAIL_ADDRESS>작성:

nvm got a workaround
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/trustin/sphinx-gradle-plugin/issues/4#issuecomment-341237642,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAKnXjbSugcBm-WcBzTlESipusZfmxSXks5syNkcgaJpZM4QOwJh
.


Feature: Add Bows

I would like if you could cover Bows with this mod also.

Bows are coming. There are loads of issues I would like to fix before I can add bows though, so development of this feature probably won't start anytime soon.

Current plan is tools -> weapons -> bows -> Armor.
I am currently working on weapons

Nice!


[tokenizer] Adds batch support for TextEmbeddingTranslator

Description
Brief description of what this PR is about

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

Codecov Report
Base: 72.08% // Head: 74.38% // Increases project coverage by +2.29% :tada:

Coverage data is based on head (9089e7e) compared to base (bb5073f).
Patch coverage: 75.03% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2310      +/-   ##
============================================
+ Coverage     72.08%   74.38%   +2.29%
- Complexity     5126     6694    +1568
============================================
  Files           473      657     +184
  Lines         21970    29105    +7135
  Branches       2351     3012     +661
============================================
+ Hits          15838    21649    +5811
- Misses         4925     5988    +1063
- Partials       1207     1468     +261

Impacted Files
Coverage Δ

api/src/main/java/ai/djl/modality/cv/Image.java
69.23% <ø> (-4.11%)
:arrow_down:

...rc/main/java/ai/djl/modality/cv/MultiBoxPrior.java
76.00% <ø> (ø)

...rc/main/java/ai/djl/modality/cv/output/Joints.java
71.42% <ø> (ø)

.../main/java/ai/djl/modality/cv/output/Landmark.java
100.00% <ø> (ø)

...main/java/ai/djl/modality/cv/output/Rectangle.java
72.41% <0.00%> (ø)

...i/djl/modality/cv/translator/BigGANTranslator.java
21.42% <0.00%> (-5.24%)
:arrow_down:

.../modality/cv/translator/ImageFeatureExtractor.java
0.00% <0.00%> (ø)

.../ai/djl/modality/cv/translator/YoloTranslator.java
27.77% <0.00%> (+18.95%)
:arrow_up:

...ain/java/ai/djl/modality/cv/util/NDImageUtils.java
67.10% <0.00%> (+7.89%)
:arrow_up:

api/src/main/java/ai/djl/modality/nlp/Decoder.java
63.63% <ø> (ø)

... and 600 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


[feature] refresh access token

A way to refresh and getting a new access token would be handy!
Just a promisify call with new token would be enough :)

I don't have authentication server but also want to refresh token. but you are checking serverClientID before sending forceCodeForRefreshToken true value.

@ernest95 https://developers.google.com/android/reference/com/google/android/gms/auth/api/signin/GoogleSignInOptions.Builder#requestServerAuthCode(java.lang.String, boolean)
According to doc, serverClientID is required.

You can use the signInSilently method to get refreshed accessToken when previous is expiring.
I made a PR of it: https://github.com/joonhocho/react-native-google-sign-in/pull/13

@stami @petergerdes Merged PR.


print: skip keys which were removed during iteration

I'm consuming bpftrace maps with another program by printing them to stdout every 1s (interval:s:1). I just ran into the following issue:
In int BPFtrace::print_map(IMap &map, uint32_t top, uint32_t div) there is an iteration over all keys with bpf_get_next_key, and a few lines below they key is accessed with bpf_lookup_elem. In case the key is removed during bpf_get_next_key and bpf_lookup_elem by the eBPF program, bpftrace aborts with
Error looking up elem: -1
terminate called after throwing an instance of 'std::runtime_error'
  what():  Could not print map with ident "@qtime", err=-1

I'd suggest to ignore key not found errors here, and just continue the iteration.
Thoughts?
Looking at the man page of bpf_lookup_elem, it can return only 0 for success or -1 for key not found. I left the error handling code intact, in case the API returns another error code for a new type of error at some point.

Makes sense. I'd say just remove the old error handling entirely so people don't get confused about what it's for in the future.

Ok, I removed the old error handling now.

 I'm going to blame it on jetlag :P
I'm working entirely from the web interface this week so can't fix it myself unfortunately.

haha, no problem ;)
I pushed the old version now again (and put { on the next line to be consistent with the coding style)


Set display: inline-block for .label class

Overrides bootstrap style, fixes #3972
This goes for option 1 mentioned in that issue but to be honest, it doesn't make that much of a difference in height.

Not sure why the build failed after force pushing a commit message edit - https://travis-ci.org/prometheus/prometheus/builds/392795022 passed fine.

Do you have before/after screenshot to compare?

Fixed by https://github.com/prometheus/prometheus/pull/5226.


English translation of Japanese documents

The following materials do not have English translations.

app-developer\670_Engine_Script.md
app-developer\671_Engine_Script_Samples.md

Please translate it into English.

app-developer\670_Engine_Script.md
Is not used,
instead of
app-developer\Personium-Engine.md
Is used.
app-developer/Personium-Engine.md
When
/app-developer/671_Engine_Script_Samples.html
English translation is closed at # 137 because it is already corresponded.


option to output to a stream instead of a file

can just do pipeline.pipe(outputStream(bundle)) instead of pipeline.pipe(fs.createWriteStream(outputName(bundle))).
one thing to consider is the mapping of entry point IDs to publically accessible URLs, maybe will have to generate the dynamic bundle names up front again so the mapping can be added into the main bundle in time. may have to remove the async outname option, which can be used to generate hash-based filenames for dynamic bundles, but i think that's probably ok and it was clumsy to use anyway.

replaced opts.outname with a sync-only opts.filename option.
opts.output can be a stream and defaults to one that writes a file to the output directory specified in opts.dir.


Conduit Facades let light through

(issue for 1.12 as requested)
Issue Description:
Conduit Facades let light through
https://github.com/SleepyTrousers/EnderIO/issues/3868

EnderIO: 5.0.22
EnderCore: 0.5.20
Minecraft: 1.12.2
Forge: 2641

Has there been any progress on this? This is still an issue in recent versions of EnderIO.

Then Please stop closing pending issues.

See the above mentioned issue. This was tested and could not be reproduced. If you can give the specific details of which type of facade was used, painted with which block and can accurately reproduce this multiple times, the feel free to re-open

Same problem here dude, they like store light from surrounding blocks and emit it when the blocks are no longer powered, can give a copy of my world, record a video, etc etc.


use builtin @min

@min is more concise.

@min is more concise.

Maybe. But then it's very difficult to understand what the function does. That's why we don't change that.


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-source-version-target/pull/18 is merged into live branch.
Auto archive content to https://github.com/VSC-Service-Account/docs-archive-test-source-version-target.git

Docs Build status updates of commit 94caa74:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

versioningArchiveSourceFolder/TOC.yml
:white_check_mark:Succeeded
View (sql-server-2014 || azuresqldb-current || azuresqldb-mi-current || azure-sqldw-latest || >= aps-pdw-2016 || >= sql-server-2016 || >= sql-server-linux-2017 || sql-server-previousversions || sqlallproducts-allversions)

versioningArchiveSourceFolder/docfx.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Update dependency System.Diagnostics.EventLog to RTM version

note: squash preferred (for better commit message)


something wrong when i try to use 1.5MW enample

Dear @jjonkman
I downloaded the latest case of 1.5MW, but the following problems occurred during operation. I feel that the latest version has a bug problem. I hope to get your guidance!

Best regards,

Dear @clun1,
Which version of OpenFAST and which version of the r-test are you using?
OpenFAST v4 (including the r-test) was released yesterday, so, perhaps you are using an older version of OpenFAST and the newer version of the r-test, whose input file format is incompatible.
Best regards,

Dear @jjonkman
Thank you for your reply. The version was downloaded from the official website half an hour ago. Both modules have been downloaded, and I am sure they are the latest version
Best regards,

Dear @clun1,
Can you clarify what you downloaded and if you compiled OpenFAST yourself?
If you downloaded the newest release of the r-test from https://github.com/OpenFAST/r-test/releases, this would be for OpenFAST v4.
Precompiled binary executables for Windows of OpenFAST v4 should be uploaded soon.  If you've downloaded the newest precompiled binary executables for Windows from https://github.com/OpenFAST/openfast/releases, you are using OpenFAST v3.5.5, which requires input files with a different format.
Best regards,


[BUG] [Star tree] Nodes with -1 as dimension value gets overriden with star node

Describe the bug
Documents which has dimensions as '-1' , results in getting overriden with star nodes as star nodes are assigned '-1' when constructing star tree.
[-1,1]
[1,1]
[1,1]

Map<Long, InMemoryTreeNode> children = constructNonStarNodes(startDocId, endDocId, childDimensionId);
children.put((long) ALL, constructStarNode(startDocId, endDocId, childDimensionId));

ALL here is '-1'

Related component
Indexing:Performance
To Reproduce
Add documents with -1 as dimensions when creating star tree
Expected behavior
Documents with -1, null and any values in Long range should work with star tree
Additional Details
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):

OS: [e.g. iOS]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Lets get rid of
    public static final int ALL = -1;

in TreeNode. That would ensure we have a good rewrite.
Having a starChild separately should help

Fixed as part of https://github.com/opensearch-project/OpenSearch/pull/14809


Support saving game state

Dump snapshot of whole emulator to JSON and restore. See https://github.com/bfirsh/jsnes/issues/16 for existing issue and https://github.com/bfirsh/jsnes/pull/42 for existing implementation. Not to be confused with #17 which is built-in save game support.
Simplest implementation of this is to just restore previously saved game, but it could potentially keep several save games too.

is save state has been implemented?

Some interesting discussion of graphics glitches (perhaps broken serialisation?) here: https://github.com/bfirsh/jsnes/issues/16

The load state graphic glitch is not an issue with the web UI project but rather the nes.fromJSON method itself. I fixed it in that repo:
https://github.com/bfirsh/jsnes/pull/397


wireshark unable to use mysql protocol to analyze the data packet between client and ARANA

What would you like to be added:
Why is this needed:

Menu -> Analyze -> Decode As...

thank you


Version 1.3.1 continues to have massive performance issues.

I made a comment before I realized the previous issue was marked as closed.  I tried using version 1.3.1 of the library, however my server load goes up by a factor of 20 or more if I just include the init method.  At this point the library is no longer usable in a production environment.  I'm happy to provide any other details if it will help track down the performance issues.

Thanks @nandgate7400, we will get right on this.

Related issue:
https://github.com/rollbar/rollbar-php/issues/209
I have profiled our application with blackfire on 0.18.2 and 1.3.1
On 1.3.1 the error handler callback (set_error_handler('Rollbar\Rollbar::errorHandler');) is called ~160 times accounting for ~1 second of CPU time
On 0.18.2 the error handler callback (set_error_handler('Rollbar::report_php_error');) is not called
The php.ini and reporting level was the same in both cases and both libraries were tested on the same machine (one after the other)
I am happy to share our blackfire results (not publically) and have emailed support with a link to this issue.

Well that's something, let me see if I can figure that out.

I am fairly new to benchmarking with blackfire, I am not 100% sure that it list all calls or just those which have significant impact; if the latter 0.18.2 has no significant impact

set_error_handler should only ever get called upon the first call to init. What is the denominator of that 160 times, i.e. is this a trace with 160 requests or something and init gets called once per request?

Sorry I meant the callback method name passed into set_error_handler is called ~160 times on 1.3.1 vs 0 on 0.18.2 (or as I said it maybe that it has no significantly measurable performance impact)

The exact number is probably irrelevant, our error reporting level was the same when testing each version

Here is a benchmark of the two libraries, specifically how they handle undefined indexes.
https://github.com/Lidbetter/rollbar-benchmark
A simple fix maybe to use the current error level as the second arg when setting up the error handler (or have it definable in the config)

I just merged #258 into master with some clear performance gains by not doing work that we are going to end up throwing away due to a level setting. These are my results from your benchmark:
Rollbar Version: 0.18.2
undefinedIndex: 0.050498008728027
errorTriggered: 0.058753967285156
reportException: 1.7256979942322

Rollbar Version: latest (>= 1.3.1)
undefinedIndex: 0.030882835388184
errorTriggered: 0.037142992019653
reportException: 4.9899649620056

So the first two are better, but we still have 2x worse perf for a real exception being reported.

Progress!
I know our legacy app emits notices (lots 😞 ); these changes should allow us to deploy on a small number of our servers (probably sometime next week) and measure the real world impact of exception reporting.
Thanks.

@rokob @ArturMoczulski Is there anything further that needs to be done in terms of making this more performant, or can this be closed?

I think we can close this issue for now. I will open another one later for a general performance overview. We could spend some more time analyzing performance of the SDK in the future. I will open a new issue when I get to this.


Ticket8210 add ioc lndyisw

IOC created for LYNDY ISwitch device

@LowriJenkins . right now we don't have any simulator for the SNMP. I am trying to implement a simulator for SNMP (Freddie has pointed to a library). Once it is found to be working, I intend to update the IOC framework with the test cases for this new IOC

Ok. Then may be we should move it out of review for the time being and see whether the simulator can be implemented.

for your tests here, is there any additional setup beyond the normal nessecary of just running run_tests.bat after having made the nessecary files (and in this case the genie python changes)?

No. I think you should be able to run the tests after the IOC has been made in the usual manner.


Remove getQueryParams()

In version 13 there was no getQueryParams(). getQuery returns the object.
https://github.com/rackt/react-router/blob/0.13.x/doc/06 Mixins/State.md

Thanks!


Optical tracking is fooled by laser pointer

With recent versions of the software, activating the laser pointer in hybrid or optical tracking modes results in detection of the laser beam as a false target. I don't remember this being as big of a problem with the prior computer vision algorithm that used the SimpleBlobDetector. This is a major annoyance because it becomes nearly impossible to use the laser pointer to see where the mount is pointed relative to the target.
Some ideas for how to fix this:

Try to filter out the laser pointer based on color/wavelength. This could be a physical notch filter for 532 nm or a software filter. My main concern with this approach is that applying a filter would result in a loss in sensitivity.
Place an upper bound on the target area in the computer vision algorithm. I suspect the laser pointer is a diffuse target from the guidescope's perspective. Currently there is no upper bound on the target size that is allowed.
Make further adjustments to how the threshold is set. If this approach is taken ensure that sensitivity is not impaired when the laser is disabled.
The laser pointer on/off state is now controlled by software, thus software could use this knowledge to only apply some of these techniques when the laser is on.

Webcam frames from recent observing sessions where the laser pointer was active from time to time should be available for testing.

This is far less important now because with near full alignment and tracking automation I don't need to rely on the laser pointer much at all; in fact I rarely install it for satellite tracking. The main use-case these days would be to help people watching to see where the telescope is pointed, but this isn't important enough to prioritize.


extend for other provider

is the any plan to add mysql , oracle ??
also need to order by (select 1) for row number is there any ??

There is an Oracle branch and it will bs completed fairly soon. Will look into MySQL and select 1 as well.


Link service resources of bundled service correctly

This fixes an issue with the provisioning of bundled services that was introduced in https://github.com/ManageIQ/manageiq/pull/16799/files#diff-9257fff45a7d1258305c9a6b7d15e322R198, a pr which changed service_template.rb to use the block form of create. The issue with this is that when we get to the "add_resource" call the child service isn't saved yet and does not have an ID which causes the service resource to be saved with a resource_type but without a resource_id.
It was originally https://github.com/ManageIQ/manageiq/pull/18250 but that got closed because master and hammer both have the service retire task logic implemented as part of retirement as a request.

@miq-bot add_label bug
@miq-bot assign @gmcculloug
@miq-bot add_reviewer @tinaafitz
@miq-bot add_label hammer/yes
@miq-bot add_label blocker

@miq-bot add_label fine/yes
@miq-bot add_label gaprindashvili/yes

Fine backport details:
$ git log -1
commit 0e8b4a6be576fd687dadab110db31856b1a5f78d
Author: Greg McCullough<EMAIL_ADDRESS>Date:   Thu Nov 29 18:48:45 2018 -0500

    Merge pull request #18251 from d-m-u/fixing_service_bundle_resource_linking

    Link service resources of bundled service correctly

    (cherry picked from commit 4cdafdbf809ecf69b80b210abfcd5c7f28629259)

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1660601


options limit within ManageRelatedRecords

Description
Found the inability to set an options limit on the attach action that was a part of a ManageRelatedRecords class, since the Select is defined in the function, unable to add options limit to the Select::make() directly
Functional changes

[X] Code style has been fixed by running the composer cs command.
[X] Changes have been tested to not break existing functionality.
[X] Documentation is up-to-date.

Hi, apologies but we are no longer accepting new features for v3 as per #13744. Also, please check out our contributing guide which talks about proposing the feature before submitting the PR, to ensure you aren't spending time building something that we won't merge.
In this case, we won't merge in v4 either as its already possible - ->recordSelect(fn (Select $select) => $component->optionsLimit(100))


npm-installed dependencies are not available during tests

As an example:
npm install --save-dev ember-browserify
npm install --save-dev moment

From app/router.js
import moment from 'npm:moment';

works just fine, but in any test module (e.g. tests/adapters/application.js), the same line provokes an error:
Uncaught Error: Could not find module npm:moment

Environment:

ember-cli: 0.1.5
ember: 1.8.1

Tests using ember-cli-mocha.

Thanks for reporting this.
I think fixing this may require changes in ember-cli proper, because I'm not seeing a hook that will let me postprocess the tests tree.

Depends on this: https://github.com/ember-cli/ember-cli/pull/2939
Once that's merged ember-browserify 0.5.0 should fix this.

I originally released this in 0.5.0 but hid it behind an environment variable in 0.6.0 because I don't want to break anybody who upgrades prematurely before ember-cli releases.

Thanks for being so quick with this!

I was about to enable this by default now that the ember-cli change shipped, but I found a bug.
This browserifies the app and test trees separately, which results in two copies of any module that's used in both. If you expected them to share state, you can have nasty bugs.
Working on a fix.

I haven't had a chance to fix this yet. The functionality is deployed and available for people who want it, but you need to turn it on by setting the environment variable BROWSERIFY_TESTS=true. The only caveat is the bug I mentioned above -- you get two independent copies of any module that you import from both app and tests.

What work needs to happen for this to land without the BROWSERIFY_TESTS flag? This has bitten us a few times and it's potentially a blocking issue for our build environment.
Thanks!

To do this correctly we'd need to crawl both the app and vendor trees to gather dependencies and then call browserify only once, so that we don't get duplicate modules. Instead of running browserify separately for each tree.

:+1: for this. Browserify is the way forward, importing its modules is so nice but need it in tests.

this module is brilliant, i'm also very much hoping to be able to use this in my tests

@ef4: can I throw a PR at you to move BROWSERIFY_TESTS=true to a flag in environment.js?

@ef4 pinging on this. We really would like first-class browserify support for Ember, and w/out this issue resolved we are having messy hacks to get our tests to work.

The ember-cli folks are working on a big internal refactor that will make ember-browserify-like functionality first-class.

@ef4 is there an issue I can follow on ember-cli for this?

https://github.com/ember-cli/ember-cli/issues/4211

Thanks for the workaround @xkb & @ef4.
I'm still running into issues unfortunately :( I've confirmed that L28 is getting executed.
I get the following error when trying to import sinon-chai for ember-mocha.
Error: Could not find module `npm:sinon-chai` imported from `my-project/tests/unit/controllers/delete-activity-test`

via
import sinonChai from "npm:sinon-chai";

As a temporary solution I'm importing the package indirectly through a dummy file in the app tree:
app/helpers/my-cool-npm-package.js
import myCoolNpmPackage from 'npm:my-cool-npm-package';
export default myCoolNpmPackage;

tests/unit/models/product.js
import myCoolNpmPackage from 'hello-world/helpers/my-cool-npm-package'

Works fine.

@jonnedeprez does this mean that my-cool-npm-package is bundled into production builds? I have an npm-dependency that I need to use only in my tests.

@oliverwilkie You can manually exclude the package from production builds
// config/environment.js
module.exports = function(environment) {
  var ENV = {
    environment: environment,
    baseURL: '/',
    locationType: 'auto',

    // ...

    browserify: {
      // your browserify options if you have any
      ignores: [ ]
    },
  };

  if (environment === 'production') {
    ENV.browserify.ignores.push('my-cool-npm-package');
  }

  return ENV;
};

@stefanpenner curious as to why you closed this issue? Is there a linked issue that resolves this?

Yeah, as far as I know there is still a legit unresolved issue here. Trying to use ember-browserify from the tests tree is likely to troll people. The TESTS flag described above is not a full solution, just a different bad behavior that is preferable for some use cases.

@stefanpenner please reopen until issue actually fixed?

any updates on this?