refactor: move tls block to spec.client

This change allows for tls configuration on operator-managed grafana instances.
Fixes #1675

@diranged can you try this against your setup?

@theSuess I can test this if you want to push an image up...

@diranged sorry for the late reply, was out for a conference the last few days.
You can use ghcr.io/grafana/grafana-operator:pr-1690 to test this change. Be sure to also update the CRDs to use the version from this branch

@theSuess,
Sorry for my delay too! So its easy for me to test a custom image ... however, it's trickier to test the CRD because the CRDs are actively managed and pushed by ArgoCD and kept in sync that way. If your code passes tests, can we just get it released and try it out?

@theSuess the code seems to be fine as confirmed by e2e. My only suggestion would be to, probably, update the docs with TLS block proposal to say that it's now advised to use the top-level block.

Closing the loop here - this works!


⚠ Bofrost.es has degraded performance

In 21be085, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1505 ms

Resolved: Bofrost.es performance has improved in e604629 after 6 minutes.


Use Alloy's NPM Library instead of copying to runAlloy.js

Description
Use the Alloy NPM library in the launch extension.
Related Issue
https://jira.corp.adobe.com/browse/CORE-52501

Motivation and Context

This keeps us from having to manually copy the alloy code to the launch extension.
Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] All tests pass and I've made any necessary test changes.
[x] I've updated the schema in extension.json or no changes are necessary.

Woohoo! Are we good to merge @jonsnyder?

I'm releasing alloy 2.4.0-alpha.0 to NPM right now, and then I'll change the package.json reference here.


accounts-db: Benchmark cache evictions

The already existing concurrent_{read,scan}_write benchmarks are not sufficient for benchmarking the eviction and evaluating what kind of eviction policy performs the best, because they don't fill up the cache, so eviction never happens.
Add a new benchmark, which starts measuring the concurrent reads and writes on a full cache.

Profiles show that each thread spends 68-77% of time on futex, here is the example:

Latest benchmarks:
read_only_accounts_cache/read_only_accounts_cache_store/8
                        time:   [9.6618 µs 9.7206 µs 9.7829 µs]
Found 3 outliers among 100 measurements (3.00%)
  3 (3.00%) high mild
read_only_accounts_cache/read_only_accounts_cache_load/8
                        time:   [1.7160 µs 1.7298 µs 1.7432 µs]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high severe
read_only_accounts_cache/read_only_accounts_cache_store/16
                        time:   [19.521 µs 19.651 µs 19.780 µs]
Found 4 outliers among 100 measurements (4.00%)
  4 (4.00%) low mild
read_only_accounts_cache/read_only_accounts_cache_load/16
                        time:   [3.0862 µs 3.1438 µs 3.2007 µs]
Found 3 outliers among 100 measurements (3.00%)
  2 (2.00%) high mild
  1 (1.00%) high severe
read_only_accounts_cache/read_only_accounts_cache_store/32
                        time:   [35.129 µs 35.716 µs 36.329 µs]
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) low mild
read_only_accounts_cache/read_only_accounts_cache_load/32
                        time:   [7.8215 µs 8.0068 µs 8.2083 µs]
Found 7 outliers among 100 measurements (7.00%)
  1 (1.00%) low mild
  4 (4.00%) high mild
  2 (2.00%) high severe
read_only_accounts_cache/read_only_accounts_cache_store/64
                        time:   [70.611 µs 71.468 µs 72.411 µs]
Found 4 outliers among 100 measurements (4.00%)
  3 (3.00%) low mild
  1 (1.00%) high mild
read_only_accounts_cache/read_only_accounts_cache_load/64
                        time:   [34.912 µs 36.763 µs 38.506 µs]

read_only_accounts_cache_eviction/read_only_accounts_cache_eviction_load/8
                        time:   [1.6044 µs 1.6107 µs 1.6170 µs]
Found 7 outliers among 100 measurements (7.00%)
  3 (3.00%) low mild
  3 (3.00%) high mild
  1 (1.00%) high severe
read_only_accounts_cache_eviction/read_only_accounts_cache_eviction_store/8
                        time:   [25.420 µs 25.648 µs 25.847 µs]
Found 4 outliers among 100 measurements (4.00%)
  2 (2.00%) high mild
  2 (2.00%) high severe
read_only_accounts_cache_eviction/read_only_accounts_cache_eviction_load/16
                        time:   [3.9378 µs 4.0072 µs 4.0747 µs]
Found 3 outliers among 100 measurements (3.00%)
  1 (1.00%) low severe
  2 (2.00%) low mild
read_only_accounts_cache_eviction/read_only_accounts_cache_eviction_store/16
                        time:   [34.476 µs 35.084 µs 35.794 µs]
Found 9 outliers among 100 measurements (9.00%)
  1 (1.00%) low severe
  4 (4.00%) high mild
  4 (4.00%) high severe
read_only_accounts_cache_eviction/read_only_accounts_cache_eviction_load/32
                        time:   [10.018 µs 10.450 µs 10.875 µs]
Found 3 outliers among 100 measurements (3.00%)
  3 (3.00%) high mild
read_only_accounts_cache_eviction/read_only_accounts_cache_eviction_store/32
                        time:   [48.486 µs 49.846 µs 52.090 µs]
Found 4 outliers among 100 measurements (4.00%)
  1 (1.00%) high mild
  3 (3.00%) high severe
read_only_accounts_cache_eviction/read_only_accounts_cache_eviction_load/64
                        time:   [34.543 µs 35.536 µs 36.431 µs]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
read_only_accounts_cache_eviction/read_only_accounts_cache_eviction_store/64
                        time:   [94.288 µs 96.831 µs 100.89 µs]
Found 12 outliers among 100 measurements (12.00%)
  2 (2.00%) low severe
  1 (1.00%) low mild
  4 (4.00%) high mild
  5 (5.00%) high severe

Profile of the 64-thread case didn't change much, all threads still spend around 80% of time on futex


NeoVim integration

Would integrating Zed with NeoVim's plugin API be feasible without having to edit Zed's core too much? ACE's vi support is unfortunely a bit lacking, but using NeoVim a Zed instance set to use it as the editor backend would behave pretty much like Vim, while being much more flexible about plugins and the GUI.

Sorry for the double title editing, I couldn't make up my mind about wheter putting the question mark at the end or not to :P

Isn't this a plug-in API to extend neovim itself, rather than to use neovim as an editing component in another editor like Zed? Based on a quick look at the linked page I don't see how integration with Zed would really work. Do you have a more clear idea of this?

Yes, Zed would actually behave as a NeoVim plugin; however, a NVim plugin has a lot of freedom, and GUIs in fact can embed it. A NVim "plugin" can intercept and dispatch any vim events that it may want to handle - even custom ones, execute arbitrary vimscript code and generally it can modify the editor's state easilly. This means that Zed would still have complete control over its editor, and it would simply need to send events to NVim to notify it to write the file to disk, or open another file, etc.

So here's what I don't understand -- presumably this would run Neovim in some sort of headless mode, right? You woulnd't see the neovim UI, but use to interact with it? So basically every key press is then forwarded to the neovim process? Does Neovim have the ability to send back the current screen state? I don't see that anywhere.
Either way, this would be a pretty massive undertaking just to get better vim support :wink:

You can get each of neovim's buffers separately through the Api and then render it as you like. But yeah, if the core wasn't meant to support multiple backends, there would be alot to be rewritten...
I've posted this since someone mentioned easymotion support - that would be native through NeoVim - and because I think Zed could be a very nice, zero-distractions UI on top of Vim

Isn't vim pretty zero-distraction already?

Yes, but the problem is that it's interface is text-based. While it's
useful for SSH, the lack of a real GUI prevents the creation of some
plugins that require one (like the markdown preview inside the editor)
without resorting to external programs, while Zed+vim would allow it.
Il 27/feb/2015 16:26 "Zef Hemel"<EMAIL_ADDRESS>ha scritto:

Isn't vim pretty zero-distraction already?
—
Reply to this email directly or view it on GitHub
https://github.com/zedapp/zed/issues/511#issuecomment-76411530.


Add a tutorial for MovingAverage optimizer

We need a tutorial that shows how to use MovingAverage optimizer along with the custom callback for saving: AverageModelCheckpoint. Can alternatively use StochasticAverage.
Currently blocked by #926

Hey @Squadrick, I'm a beginner on this project that would love to help with your issue! Any tips on how to get started would be much appreciated

You can take a look at some of the other tutorials we have here. It includes the template (_template.ipynb) that we follow.
You can show a model being trained on MNIST or fashion MNIST with the MovingAverage optimizer and AverageModelCheckpoint callback.

Woking on the issue. MovingAverage works fine but AverageModelCheckpoint doesn't seem to be there, even with tfa-nightly.
https://colab.research.google.com/drive/1IxqfhbkpNN6P1guzdW7q5ZEdPoqi7sle
Is something wrong with this?

I have a MNIST model trained using the MovingAverage optimizer right now so progress is good! Looking at the tutorials for how to do a callback so I can hopefully add that in shortly.

Woking on the issue. MovingAverage works fine but AverageModelCheckpoint doesn't seem to be there, even with tfa-nightly.
https://colab.research.google.com/drive/1IxqfhbkpNN6P1guzdW7q5ZEdPoqi7sle
Is something wrong with this?

Interesting. It looks like TFA is installed by default on Colab now:
https://colab.research.google.com/drive/18wjcYoNfQi-yc-YFSZvq4pKePy164O29
The version is 0.6.0 which did not have any callbacks (only the stub). This makes it a bit tricky since you'll need to install tfa-nightly and restart the runtime.
@lamberta Do you know a contact for Colab who we could talk to about this. Currently the loaded version 0.6 is pretty out of date and it would be nice to know how we can update this.

Well ... cool it's there by default now :)
There's probably an internal version that Colab is using. @craigcitro on the Colab site.
@tomerk Is there a better way to regularly sync these?

Feel free to file a go/colab-bug on us internally with questions.

Well ... cool it's there by default now :)

@lamberta Yes this is great news that TFA is installed by default! :smile: Just want to see if we can help keep it up to date.
@craigcitro is https://github.com/googlecolab/colabtools/issues what you're referring to?

@seanpmorgan yep, that works.

The correct way to upgrade TFA on Colab:
!pip install -t /tensorflow-2.1.0/python3.6/ --upgrade tfa-nightly
There is no need to restart the runtime unless you've already imported TFA.


add route prefix to swagger UI

swagger is now on /api-docs/

@davidbirchwork after the latest commit, the Image Tile Service has a page like what I have attached below. There are two links above that does not change the page and that is pretty much it. Do we really need this page if this is a head-less service?


[feature] API docs theme

The DRF browsable API and DRF Yasg theme we ship for REST APIs are quite different from one another and also different from the main theme of OpenWISP.
It would be great if we could make the DRF browsable API and DRF Yasg theme more similar to the admin theme by recyling the same CSS, so that just adding the openwisp theme css would be enough to make these look more similar.
@niteshsinha17 do you think this is doable? We could do it at the end of GSoC if there's still time.

Nice idea. I will do some research on it and will handle this at the end.

I will try this


EL-1256: Results page - controlled eligible result

Jira ticket
What changed and why

Content changes & reordering of CTAs on the results page for controlled work checks returning an eligible result.
No change to the page, when a controlled eligible asylum result
Content changes behind feature flag

Guidance to review

spec/system/feedback_spec.rb lines 40-41 have a comment about an expectation of a test, which I could not get to work. Would be great to get views on this, about how to resolve.
Have removed redundant :household_section_flag from 2 tests
Have rebased against EL-1257

Checklist
Before you ask people to review this PR:

Tests and rubocop should be passing
Branch is generally up to date with main Github - definitely no conflicts
No unnecessary whitespace changes. These make diffs harder to read and conflicts more likely.
PR description says what changed and why, with a link to the JIRA story.
Diff has been checked for unexpected changes being included.
Commit messages say why the change was made.

@MazOneTwoOne because this branches off EL-1257 but is pointing at main, it's currently showing all changes from both tickets. If you Edit the PR (top right) to change the base to the EL-1257 branch, hopefully we'll be able to see just your changes without mine here.


Use start and pause instead of toggle as service commands for vacuum

The vacuum service does not support the toggle command so the Vacuum button click does not do anything.
This error is recorded in the console log:
2.QL3D25OP.js:1 Uncaught (in promise) {code: 'not_found', message: 'Service vacuum.toggle not found.', translation_key: 'service_not_found', translation_placeholders: {…}, translation_domain: 'homeassistant'}
Instead of toggle, this PR proposes to use the start and pause commands, which are supported for vacuums:
https://www.home-assistant.io/integrations/vacuum/

Thanks! I added it here instead https://github.com/matt8707/ha-fusion/blob/af0457eb46f1d1f1e1b7bc567ac33c3a188621f8/src/lib/Utils.ts#L102-L104


New foreignKey element doesn't support onUpdate/onDelete attributes

Apparently I forgot that ON UPDATE/DELETE was a thing.
Add onUpdate and onDelete attributes to foreignKey elements, and proper generation/extraction rules to handle it.

This is fixed by pull request #103


Article panel headers go grey once expanded (and stay that way)

Providing at-a-glance representation of which articles the reader has read before.
Would need to store the IDs of articles that have been read in a cookie, or some kind of browser storage.  Need to investigate what's the right way to handle it.

Should actually be quite easy to handle using web storage.
Just store an array of article ids which have been read (storing them as JSON), and load the list at page load.

Implementation is that articles invert colours rather than going grey.  I think this is neater, and will play nice if I do different colours for different article tags later on.


App won't build

After installing react-native-swipeout to my functioning app, I get the following error from React-Native:
"TransformError: /app/node_modules/react-native-swipeout/node_modules/react-native/Libraries/CustomComponents/Navigator/Navigation/NavigationContext.js: This transform does not support getter methods for ES6 classes. (line: 53, col: 2)."
Any idea how I can remedy this? Thanks!

@wheycool:  Everytime I come across this issue, removing the react-native dependency from the node_modules folder of this library does the trick.  I believe having react-native included in this library is now widely accepted as the culprit for these initialization problems where the version of React Native > v0.6.0

Thanks for the suggestion, @achang28.
Commenting out react-native's dependency from the package.json file that exists within the react-native-swipeout directory doesn't seem to do the trick – I get the same error. Am I missing something?

react-native should be a peerDependency.
@wheycool: You have to remove the react-native folder inside node_modules/react-native-swipeout/node_modules too.

I've been away on holiday, but I will check into this soon and report back.

I changed react-native to peerDependency per @oblador's advice, and closed the issue. If this issue persists, reopen the issue and I'll check it out.
Thanks for your patience everyone! :+1:


Change Schema error page Home link

On https://zudoku.dev/demo, the Go back home link does not link to the Zudoku homepage.

Which "Go back home" link?

@dan-lee At the bottom of the schema error page. As shown here:

Hmm, well, yeah, it tries to go back to the base path, which in most cases is just / 🤔 The demo is just a special instance of Zudoku that has no multiple pages. Could we just remove that link? Not sure if it really has a practical use case anyway

Sure, I think it's fine to remove it in this case @dan-lee


Question about beforeunload

Hi,
Is this possible to use with beforeunload message ?
Thanks

I don't think so.


Cannot add cluster to lens

Describe the bug
Cannot add cluster to lens
To Reproduce
click on Add cluster paste the config in the text screen and Add cluster button is not active
Click on the + select the config from the files and nothing happens.
Expected behavior
the newly added cluster to show up in the cluster lists
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):

Lens Version: 5.2.3-latest.20210921.1
OS: Macos BigSur 11.6 (20G165)
Installation method (e.g. snap or AppImage in Linux):
AppImage

Logs:
When you run the application executable from command line you will see some logging output. Please paste them here:
Nothing in the logs

Kubeconfig:
Quite often the problems are caused by malformed kubeconfig which the application tries to load. Please share your kubeconfig, remember to remove any secret and sensitive information.
apiVersion: v1
kind: Config
clusters:
  - name: rcc-dev
    cluster:
      server: https://1ejbwc.c1.bhs5.k8s.ovh.net
      certificate-authority-data: >-

      insecure-skip-tls-verify: false
users:
  - name: kubernetes-admin-rcc-dev
    user:
      client-certificate-data: >-

      client-key-data: >-

contexts: []
preferences: {}
current-context: kubernetes-admin@rcc-dev

Additional context
Add any other context about the problem here.

That is because you do not have any contexts declared so there are no clusters to add. I guess we could show an error if the contexts field is empty...


pull request for e2e test at 12/18/2016 09:56:18

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Chinese font not render properly in production environment on vercel

I'm generating pdf for chinese data.so data is in proper format and also works fine in local but not in production .
suggestion highly appreciated !!

Brother, did you encounter this error when you deployed on vercel?
Error: The input directory "/var/task/.next/server/bin" does not exist.
at u.executablePath (/var/task/.next/server/chunks/896.js:2:67422)

Hello, I have the same problem, how do you solve it

vercel have serverless. So kindly refer docs of aws lamda function.It is helpful.
use this code in your Project dir with name : font/fonts.config
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <dir>/var/task/fonts/</dir>
  <cachedir>/tmp/fonts-cache/</cachedir>
  <config></config>
</fontconfig>

Add require fonts in fonts folder.

Hi, I also met this problem, may I ask how the specific process is done

Hello, I have the same problem, how do you solve it

if you solve it?


Basic java app does not seem to be able to resolve its own hostname

I have tried running this up inside k8s with Java applications we have. They cannot resolve their own hostname into an ip. I have confirmed by having the Java app "cat" the /etc/hosts file is in the /etc/file, and it is there.
For some weird reason, many Java libraries (such as Jedis, Quartz, Mule, etc) get very upset if they can't determine what their hostname's ip is.
This isn't necessarily an "issue" - it may be by design, but I cannot find any reference to it, so I thought I should ask if it was intended.

Could you provide a stacktrace or some more info on what happens? I think k8s overrides/injects the etc/hosts file so I'm not sure what we'd have to do in the image to make this work.

@dlorenc do you have a way i can do that? k8s does normally add the pod name to the etc/hosts, but because there is no shell i can't get into the instance to see what has actually happened. The stack trace is just your usual "cannot resolve hostname".
If you have a suggestion on how  to get onto the filesystem to see what is going on (should i do that sideload busybox hack?) then i can add more info.

FWIW If you use :debug instead of :latest you should have busybox.

ok! i can do that!

i got onto the box and see this:
/ # cat /etc/hosts
Kubernetes-managed hosts file.
<IP_ADDRESS>	localhost
::1	localhost ip6-localhost ip6-loopback
fe00::0	ip6-localnet
fe00::0	ip6-mcastprefix
fe00::1	ip6-allnodes
fe00::2	ip6-allrouters
<IP_ADDRESS>	bizservices-all-3290099977-5szr5
/ # cat /etc/resolv.conf
nameserver <IP_ADDRESS>
search default.svc.cluster.local svc.cluster.local cluster.local
options ndots:5
/ # cat /etc/nsswitch.conf
cat: can't open '/etc/nsswitch.conf': No such file or directory
so the pod name is in the /etc/hosts as expected.
the stack trace is
java.net.UnknownHostException: bizservices-all-3290099977-5szr5: bizservices-all-3290099977-5szr5: Name or service not known
at java.net.InetAddress.getLocalHost(InetAddress.java:1505) ~[?:1.8.0_141]
at redis.clients.jedis.HostAndPort.getLocalHostQuietly(HostAndPort.java:105) ~[jedis-2.9.0.jar!/:?]
when run with: openjdk:8u151-jre-slim
cat /etc/resolv.conf
nameserver <IP_ADDRESS>
search default.svc.cluster.local svc.cluster.local cluster.local
options ndots:5
root@bizservices-all-3427948651-31q68:/# cat /etc/hosts
Kubernetes-managed hosts file.
<IP_ADDRESS>	localhost
::1	localhost ip6-localhost ip6-loopback
fe00::0	ip6-localnet
fe00::0	ip6-mcastprefix
fe00::1	ip6-allnodes
fe00::2	ip6-allrouters
<IP_ADDRESS>	bizservices-all-3427948651-31q68
root@bizservices-all-3427948651-31q68:/# cat /etc/nsswitch.conf
/etc/nsswitch.conf

Example configuration of GNU Name Service Switch functionality.
If you have the glibc-doc-reference' and info' packages installed, try:
`info libc "Name Service Switch"' for information about this file.
passwd:         compat
group:          compat
shadow:         compat
gshadow:        files
hosts:          files dns
networks:       files
protocols:      db files
services:       db files
ethers:         db files
rpc:            db files
netgroup:       nis
(no failure to find)

sorry, formatting issues there.

Hello @rvowles
Nothing new about your issue ?
I think I ran into something similar (see #174)

Its still open - I presume they haven't attempted to fix it.

I got a good insight on my issue, see: https://github.com/GoogleCloudPlatform/distroless/issues/174#issuecomment-378137247
(The file /etc/nsswitch.conf is not in the distroless image)

This issue is blocking us from using this as the base image with Jib. aka https://github.com/GoogleContainerTools/jib

You should be able to use the :debug images to access them for troubleshooting issues. See https://github.com/GoogleContainerTools/distroless#debug-images for more info.

I'm using the image jimmidyson/configmap-reload which is included in the official helm chart repository for prometheus which is also causing this issue.
This container is used to detect configmap changes and reloads prometheus if it detects one. Because someone registered a VM in our cloud with the name localhost (for what ever reason) the requests are going to this VM instead to <IP_ADDRESS>.
This image is using gcr.io/distroless/base as base and uploads a golang binary. So it's not just a java issue.
Took hours to find this issue but we can clearly see that the DNS requests are hitting the external DNS instead of directly using <IP_ADDRESS> for localhost.
And still it's also a security issue because an external attack could redirect the traffic if this attacker can gain access to the DNS.

Is there any progress on this issue?

This is a duplicate of #174 and fixed by supplying /etc/resolv.conf . Make sure to use the latest images.

Sorry, /etc/nsswitch.conf, not /etc/resolv.conf.


⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 747 ms

Resolved: ClamAV performance has improved in bd4190d after 1 hour, 24 minutes.


Problems with dataset

Hi, I met some problems when I directly specify the path of --data_train or --data_test.
My codes is:
parser.add_argument('--data_train',default='./data/CELEBA_HQ',help='root directory for training data')
And I got errors:
RuntimeError: Found 0 files in subfolders of: ./data/CELEBA_HQ
Supported extensions are: .jpg,.jpeg,.png,.ppm,.bmp,.pgm,.tif,.tiff,.webp
Could you please tell me in detail how to organize the data? Thank you !

Hi, you need to have a structure like this: ./CELEBA_HQ/images/***

Thank you! I tried to organize the data, but met new problems:
I download all the pre-trained checkpoints and run test_stargan.py, when I set the --set_size as 4(default),I got this error:

When I set the --set_size as 3, I got this error:

Thank you! I tried to organize the data, but met new problems: I download all the pre-trained checkpoints and run test_stargan.py, when I set the --set_size as 4(default),I got this error:
When I set the --set_size as 3, I got this error:

Excuse me, have you solved this problem? Thanks for your contributions!


Access kinesis firehose using profile

Hello
I have configured kinesis plugin to access firehose, but can not find way to pass relevant profile.
Is there additional configuration to set specific user with wright access to the expected stream?
something similar to the following sample
output.firehose:
region: us-east-1
stream_name: my_stream
access_key_id: xxx
secret_access_key: xxx
I have also tried to set default was credentials, but got error
"NoCredentialProviders: no valid providers in chain"
Please advice

was able to export AWS credentials to environment


gherkin: Is there a problem with accepting a range of synonyms?

Background
I'm a bit new to cucumber, and I find it odd how that (in some respects) the project can be so incredibly flexible (such as to allow tests to be written in LOLCAT & pirate-speak), and in other respects seems a bit stringent on the use of acceptable keywords (even mention of deprecating & removing gherkin keywords).
In fact, looking at the table of languages, most localization tuples have only one acceptable keyword (though a few have many).
Details
In part, this is simply a question that I did not come across in the docs/videos/issues:

Is there an actual policy or consideration that seeks to (or pressures us to) use the fewest keywords per tuple?

Also, this pull request contains a few synonyms that I reason might allow for more flexible wording of English gherkin files.
Motivation and Context
I recognize that this change is not required, as having even one per keyword is adequate for functionality.
But in what I assume to be the common use case (that the gherkin feature files be visible and approvable by the non-technical business unit), sometimes it seems that the language becomes a bit tortured and unnatural trying to shoe-horn the originally-provided user stories into the minimal keyword set with minimal modification.
Other times, it seems that the design has been so pressured to use a single word (such as for "Background"), that it does not seem to adequately convey its purpose, and I wonder if a more verbose match (such as "Before each scenario") would be acceptable?
This could all be a bad assumption on my part, so I certainly won't be offended if this is closed with even a one-sentence semi-authoritative explanation.
How Has This Been Tested?
I have run the only modified file through "json_verify" to make sure I didn't screw up the syntax (like a missing comma or quote).
Types of changes
Approximately 15 entirely-redundant strings added to the "en" entry in gherkin-languages.json
No breakages are expected.
Checklist:

[ ] I've added tests for my code.
[x] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

Is there an actual policy or consideration that seeks to (or pressures us to) use the fewest keywords per tuple?

Yes. The goal is to have as few synonyms as possible in order to keep the language simple and consistent, while preserving the fluidity of the language. For that reason you'll find that most languages only have a single translation of each keyword.
French is one such exception, because of grammar rules related to gender and plural/singular forms.
The synonyms you're proposing would (IMO) cause more harm than good, as it becomes harder to remember what's a keyword and what is not.
I appreciate your contribution, but we won't be adding this.


Dependency-check v6.1.5: Fatal errors seen during analysis

Describe the bug
Run is failing during Dependency-check v6.1.5 cli run. Some errors could be seen during JAR analysis but its failing during Retire.js analysis.
Version of dependency-check used
6.1.5 & 6.0.3
Log file
[INFO]
Dependency-Check is an open source tool performing a best effort analysis of 3rd party dependencies; false positives and false negatives may exist in the analysis performed by the tool. Use of the tool and the reporting provided constitutes acceptance for use in an AS IS condition, and there are NO warranties, implied or otherwise, with regard to the analysis or its use. Any use of the tool and the reporting provided is at the userâ€™s risk. In no event shall the copyright holder or OWASP be held liable for any damages whatsoever arising out of or in connection with the use of this tool, the analysis performed, or the resulting report.
[INFO] Analysis Started
[INFO] Finished Archive Analyzer (30 seconds)
[INFO] Finished File Name Analyzer (0 seconds)
[Fatal Error] :42:21: Attribute name "w" associated with an element type "name2" must be followed by the ' = ' character.
[Fatal Error] :21:21: Attribute name "w" associated with an element type "name2" must be followed by the ' = ' character.
[Fatal Error] :61:21: Attribute name "w" associated with an element type "name2" must be followed by the ' = ' character.
[WARN] Unable to parse pom '/tmp/dctemp71998a05-c904-4643-b427-da72d87303b1/check5454381280976307431tmp/110/pom.xml'
[WARN] An error occurred while analyzing '/tmp/dctemp71998a05-c904-4643-b427-da72d87303b1/check8149501183144523036tmp/98/WEB-INF/lib/jakarta.annotation-api-1.3.5.jar'.
[Fatal Error] :46:21: Attribute name "w" associated with an element type "name2" must be followed by the ' = ' character.
[Fatal Error] :40:21: Attribute name "w" associated with an element type "name2" must be followed by the ' = ' character.
[WARN] Unable to parse pom '/tmp/dctemp71998a05-c904-4643-b427-da72d87303b1/check5454381280976307431tmp/121/pom.xml'
[WARN] An error occurred while analyzing '/tmp/dctemp71998a05-c904-4643-b427-da72d87303b1/check8149501183144523036tmp/98/WEB-INF/lib/osgi-resource-locator-1.0.3.jar'.
[Fatal Error] :65:21: Attribute name "w" associated with an element type "name2" must be followed by the ' = ' character.
[WARN] Unable to parse pom '/tmp/dctemp71998a05-c904-4643-b427-da72d87303b1/check5454381280976307431tmp/124/pom.xml'
[WARN] An error occurred while analyzing '/tmp/dctemp71998a05-c904-4643-b427-da72d87303b1/check8149501183144523036tmp/98/WEB-INF/lib/jakarta.ws.rs-api-2.1.6.jar'.
[Fatal Error] :42:21: Attribute name "w" associated with an element type "name2" must be followed by the ' = ' character.
[Fatal Error] :46:21: Attribute name "w" associated with an element type "name2" must be followed by the ' = ' character.
[Fatal Error] :21:21: Attribute name "w" associated with an element type "name2" must be followed by the ' = ' character.
[Fatal Error] :61:21: Attribute name "w" associated with an element type "name2" must be followed by the ' = ' character.
[WARN] Unable to parse pom '/tmp/dctemp71998a05-c904-4643-b427-da72d87303b1/check5454381280976307431tmp/153/pom.xml'
[WARN] An error occurred while analyzing '/tmp/dctemp71998a05-c904-4643-b427-da72d87303b1/check8149501183144523036tmp/142/WEB-INF/lib/jakarta.annotation-api-1.3.5.jar'.
[Fatal Error] :40:21: Attribute name "w" associated with an element type "name2" must be followed by the ' = ' character.
[WARN] Unable to parse pom '/tmp/dctemp71998a05-c904-4643-b427-da72d87303b1/check5454381280976307431tmp/159/pom.xml'
[WARN] An error occurred while analyzing '/tmp/dctemp71998a05-c904-4643-b427-da72d87303b1/check8149501183144523036tmp/142/WEB-INF/lib/osgi-resource-locator-1.0.3.jar'.
[Fatal Error] :65:21: Attribute name "w" associated with an element type "name2" must be followed by the ' = ' character.
[WARN] Unable to parse pom '/tmp/dctemp71998a05-c904-4643-b427-da72d87303b1/check5454381280976307431tmp/155/pom.xml'
[WARN] An error occurred while analyzing '/tmp/dctemp71998a05-c904-4643-b427-da72d87303b1/check8149501183144523036tmp/142/WEB-INF/lib/jakarta.ws.rs-api-2.1.6.jar'.
[INFO] Finished Jar Analyzer (1 seconds)
[ERROR] ----------------------------------------------------
[ERROR] .NET Assembly Analyzer could not be initialized and at least one 'exe' or 'dll' was scanned. The 'dotnet' executable could not be found on the path; either disable the Assembly Analyzer or add the path to dotnet core in the configuration.
[ERROR] ----------------------------------------------------
[INFO] Finished Dependency Merging Analyzer (0 seconds)
[INFO] Finished Version Filter Analyzer (0 seconds)
[INFO] Finished Hint Analyzer (0 seconds)
[INFO] Created CPE Index (2 seconds)
[INFO] Finished CPE Analyzer (4 seconds)
[INFO] Finished False Positive Analyzer (0 seconds)
[INFO] Finished NVD CVE Analyzer (0 seconds)
00:02  INFO: Vulnerability found: jquery below 3.5.0
00:02  INFO: Vulnerability found: jquery below 3.5.0
00:09  INFO: Vulnerability found: jquery below 3.4.0
00:09  INFO: Vulnerability found: jquery below 3.5.0
00:09  INFO: Vulnerability found: jquery below 3.5.0
00:10  INFO: Vulnerability found: jquery below 3.5.0
00:10  INFO: Vulnerability found: jquery below 3.5.0
00:12  INFO: Vulnerability found: jquery below 3.5.0
00:12  INFO: Vulnerability found: jquery below 3.5.0
00:14  INFO: Vulnerability found: knockout below 3.5.0-beta
00:19  INFO: Vulnerability found: jquery below 3.5.0
00:19  INFO: Vulnerability found: jquery below 3.5.0
[ERROR] Analysis task was cancelled.
[ERROR] One or more fatal errors occurred
Expected behavior
Analysis should be completed without failure.

Facing same issue

I'm unable to reproduce the issue. Do you have a sample project? Maybe the full log as suggested by the issue template?


upgrade ButterKnife to v8.1.0

just upgrade some library's version.

There are some conflicts, please resolve.
Thanks.


nss: 3.49.2 -> 3.51

Motivation for this change
Bump to latest NSS version for upcoming Firefox bump.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@vcunat It seems like there is no current "staging-next" branch going. You and @FRidh usually did that. Do you mind merging staging into staging-next and opening the usual PR?

I did that in the meantime.  Hydra's been running a new evaluation including nss for 20 mins now.

BTW, when I see in the build log that it names the object files according to your currently running kernel version...  I just hope they're reasonable and this won't cause trouble.


Update lets_write_a_test.md

When I tried using --test I got the following error:
OptionParser::AmbiguousOption: ambiguous option: --test
  /home/f5030161/.pdk/cache/ruby/2.4.0/gems/beaker-3.22.0/lib/beaker/options/command_line_parser.rb:290:in `parse'
  /home/f5030161/.pdk/cache/ruby/2.4.0/gems/beaker-3.22.0/lib/beaker/options/parser.rb:216:in `parse_args'
  /home/f5030161/.pdk/cache/ruby/2.4.0/gems/beaker-3.22.0/lib/beaker/cli.rb:23:in `parse_options'
  /home/f5030161/.pdk/cache/ruby/2.4.0/gems/beaker-3.22.0/bin/beaker:9:in `<top (required)>'
  /home/f5030161/.pdk/cache/ruby/2.4.0/bin/beaker:22:in `load'
  /home/f5030161/.pdk/cache/ruby/2.4.0/bin/beaker:22:in `<top (required)>'

After checking the beaker help files I changed this to --tests and it works.

Can one of the admins verify this patch?


Create hello_world.cpp

Submission

Your pull request needs further work because of the following reason(s):

Your PR looks like an ORPHAN (you deleted the fork). This cannot be automatically checked. Please close this PR and create a new one without removing the fork.

Once you have resolved the issues, comment on this request to be re-judged
This is an automated response, beep boop.
if you think there is a mistake, contact a maintainer

0041cc2c07f3f7eded4e08cd365cc9387637f133

This PR has been idle for more than 24 hours, and will now be closed. Feel free to re-open.
This is an automated response, beep boop.
if you think there is a mistake, contact a maintainer

0041cc2c07f3f7eded4e08cd365cc9387637f133


[PostgreSQL] DBeaver does not detect primary key/unique coumns in views based only on one table

Description
In PostgreSQL it is possible to import or edit data in a view as long as the view is only based on one table. I'm using this feature to let users import and correct data in views, allowing to present the data in different forms depending on the task.
Unfortunately, even I include the primary key column (here named "id") of the underlaying table (integer generated by a sequence) in the view, DBeaver is telling me, that "There is no physical unique key defined."

I can work around this by creating a virtual primary key, but letting every user doing this for every view is cumbersome and different choices of users might introduce problems.
Would it be possible to let DBeaver automatically use the primary key of the table as unique key in a view as long as the view is only based on one table?
DBeaver Version
Community Edition 24.1.4
Operating System
Windows 11
Database and driver
PostgreSQL 15.2
Driver: PostgreSQL JDBC Driver [42.2.20]
Steps to reproduce
No response
Additional context
No response

Thanks for your feature request!


HYAS Insight Connector Submission for Review

Please check the following conditions for your PR.

[x] apiDefinition.swagger.json is validated using paconn validate command.
[x] apiProperties.json has a valid brand color. Invalid brand colors are #007ee5 and #ffffff.

@Doug Elliott (Artech Consulting<EMAIL_ADDRESS>I have done it.
Regards,
Venkat Rambatla

From: Doug Elliott<EMAIL_ADDRESS>Sent: Saturday, September 5, 2020 3:59:33 AM
To: microsoft/PowerPlatformConnectors<EMAIL_ADDRESS>Cc: Venkat Rambatza<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [microsoft/PowerPlatformConnectors] HYAS Insight Connector Submission for Review (#436)
@RamboVhttps://github.com/RamboV Could you please sign the CLA? Thanks in advance!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/PowerPlatformConnectors/pull/436#issuecomment-687433405, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQN2RCMMMUZ7TWCEKBCFDULSEFS43ANCNFSM4QXWGRKQ.

@RamboV Great, thanks! The icon.png and settings.json files should be removed from the PR, but once that's done I can go ahead and approve.

@dougelliott, The icon.png, settings.json files have been removed from the PR.
Thanks.

@RamboV Thanks! Approving.


Redirection issue from "twindle.co" to "www.twindle.co"

Twindle website "twindle.co" not redirecting to "www.twindle.co"
Currently if you try to open twindle.co for first time in a browser it will not open.
You can type "www.twindle.co" to open the site.
And once you open the site using "www.twindle.co" then twindle.co also opens. Because your browser now knows where to go.
Hi @proful please use this link to redirect twindle.co to "www.twindle.co" so that both work even at first time.

Thank you @vijaya-bhaskar
I will try tomorrow.

done


Update cocoapods to manage the dependency

Update libwebp to v0.6.0
Fix import header fail (Fix #1887)
Use cocoapods to manage the libwebp and FLAnimatedImage

Please run pod install, and open SDWebImage.xcworkspace.
Now, The Demo,  Framework and Tests will work fine, except the watch framework.
The FLAnimatedImage's podspec said it support iOS only, not support watchos and other platform. So I can not install FLAnimatedImage in these targets.

I've just revisited this PR. Still waiting for an answer from @Whirlwind on this.
I don't think we can make this change. libwebp is not available via Carthage (I think - because it doesn't have and xcodeproj and a scheme in their repo). So if we remove the WebP submodule we  will loose Carthage WebP support.

Closing this one for now, we will reopen if there is an ongoing conversation.


Update readme according to current Vault version

I tried to make the application work with current vault version, with some debugging efforts I could make it work. Main reason is that examples provided are probably outdated, so here is my PR.

@caseycs Hey! Thanks a lot for trying it out and the doc fix.
Honestly saying, I'm not an expert Vault user.
So can I ask you about which Vault backend you used for the secret/ path?
The former mykv in the example was created by mounting - I think - the kv v1 backend.
vault secrets enable -path=mykv kv
vault write mykv/foo mykey=myvalue
vault read mykv/foo

So, perhaps, we'd better including the vault secrests enable -path=secrets <whatever backend you used in the example> in the very beginning of the guide?

There are two few things:

secret instead of mykv, with is enabled by default vault engine in dev environment. The fact that it's default makes me think that it's a good idea
missing /data part in the url - it's part of new api and without it the tool does not work at all, so for me it's a must to mention in the docs/readmez same as another response format, look at the jq path
vault host and port does not work while they are mentioned as described in current readme, env or default values is used instead, so provided examples are very confusing

Thanks!

missing /data part in the url - it's part of new api and without it the tool does not work at all

Ah, so would this one of changes in the v2 of the kv backend?

vault host and port does not work while they are mentioned as described in current readme, env or default value (localhost) is used instead, so provided examples are very confusing

Correct. ?address=http:/host:port or VAULT_ADDR should be used for that. The doc was outdated here!

secret instead of mykv, with is enabled by default vault engine in dev environment

Okay just confirmed that. Now trying to check if this is v1 or v2(I thought kv had two versions, but was it my misconception?
vault secrets list
Path          Type         Accessor              Description
----          ----         --------              -----------
cubbyhole/    cubbyhole    cubbyhole_b1d0ff84    per-token private secret storage
identity/     identity     identity_6d74ff2b     identity store
secret/       kv           kv_c5ad200d           key/value secret storage
sys/          system       system_6c76756c       system endpoints used for control, policy and debugging

This part I do not know, I'm also not a Vault expert
But at least changes I propose work out-of the box against current default vault setup in docker

@caseycs Understood. Regardless of the v1-or-v2 thing, this looks awesome! Thanks for your contribution ☺


Update LICENSE

The LICENSE should be updated:

[x] Change old license of Plattform Industrie 4.0 documents -from CC BY-ND 3.0 DE to CC BY-3.0 (see [here for more details](reative Commons CC BY-ND 3.0 DE))

[ ] Do we need the header with the copyright? This is stopping that GitHub automatic identifies the Open Source License used in this project

What is the status of this?

ongoing, still need to talk to some experts to ensure we are doing the right thing


More than one instance!

I have the fixed application on the taskbar. When I close the application, minimizing it to the tray, and click on the application icon in the Start Menu or the taskbar, instead of picking up the application open in the tray, it creates a new instance of the application, duplicating it. Some certainty of how to solve this?

This is a duplicate of issue #311

Resolved, please see https://github.com/Aluxian/Facebook-Messenger-Desktop/issues/458


SPInstallPrereqs: Doesn't work from network path

Details of the scenario you tried and the problem that is occurring
Trying to run DSC with the sources on a network path which is supposed to be supported (and used to work) doesn't work anymore.
Verbose logs showing the problem
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = ResourceTest,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer DEV-SP2019 with user sid S-1-5-21-2574351433-2186952018-4287395133-500.
VERBOSE: [DEV-SP2019]: LCM:  [ Start  Test     ]  [[SPInstallPrereqs]DirectResourceAccess]
VERBOSE: [DEV-SP2019]:                            [[SPInstallPrereqs]DirectResourceAccess] Testing installation status of SharePoint prerequisites
VERBOSE: [DEV-SP2019]:                            [[SPInstallPrereqs]DirectResourceAccess] Getting installation status of SharePoint prerequisites
VERBOSE: [DEV-SP2019]:                            [[SPInstallPrereqs]DirectResourceAccess] Check if InstallerPath folder exists
VERBOSE: [DEV-SP2019]:                            [[SPInstallPrereqs]DirectResourceAccess] Checking file status of \\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller.exe
VERBOSE: [DEV-SP2019]:                            [[SPInstallPrereqs]DirectResourceAccess] Checking status now
The parameter is incorrect
    + CategoryInfo          : NotSpecified: (:) [], CimException
    + FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.GetItemCommand
    + PSComputerName        : localhost

VERBOSE: [DEV-SP2019]:                            [[SPInstallPrereqs]DirectResourceAccess] File not blocked, continuing.
VERBOSE: [DEV-SP2019]:                            [[SPInstallPrereqs]DirectResourceAccess] Version: SharePoint 2019
VERBOSE: [DEV-SP2019]:                            [[SPInstallPrereqs]DirectResourceAccess] Getting installed windows features
VERBOSE: [DEV-SP2019]:                            [[SPInstallPrereqs]DirectResourceAccess] OS Version: Windows Server 2019
VERBOSE: [DEV-SP2019]:                            [[SPInstallPrereqs]DirectResourceAccess] The operation 'Get-WindowsFeature' started:
Web-Server,Web-WebServer,Web-Common-Http,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-Static-Content,Web-Health,Web-Http-Logging,Web-Log-Libraries,Web-Request-Monitor,Web-Http-Tracing,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression,W
eb-Security,Web-Filtering,Web-Basic-Auth,Web-Windows-Auth,Web-App-Dev,Web-Net-Ext,Web-Net-Ext45,Web-Asp-Net,Web-Asp-Net45,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Mgmt-Tools,Web-Mgmt-Console,NET-Framework-Features,NET-HTTP-Activation,NET-Non-HTTP-Activ,NET
-Framework-45-ASPNET,NET-WCF-Pipe-Activation45,Windows-Identity-Foundation,WAS,WAS-Process-Model,WAS-NET-Environment,WAS-Config-APIs,XPS-Viewer
VERBOSE: [DEV-SP2019]:                            [[SPInstallPrereqs]DirectResourceAccess] The operation 'Get-WindowsFeature' succeeded:
Web-Server,Web-WebServer,Web-Common-Http,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-Static-Content,Web-Health,Web-Http-Logging,Web-Log-Libraries,Web-Request-Monitor,Web-Http-Tracing,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression,W
eb-Security,Web-Filtering,Web-Basic-Auth,Web-Windows-Auth,Web-App-Dev,Web-Net-Ext,Web-Net-Ext45,Web-Asp-Net,Web-Asp-Net45,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Mgmt-Tools,Web-Mgmt-Console,NET-Framework-Features,NET-HTTP-Activation,NET-Non-HTTP-Activ,NET
-Framework-45-ASPNET,NET-WCF-Pipe-Activation45,Windows-Identity-Foundation,WAS,WAS-Process-Model,WAS-NET-Environment,WAS-Config-APIs,XPS-Viewer
VERBOSE: [DEV-SP2019]:                            [[SPInstallPrereqs]DirectResourceAccess] Checking windows packages from the registry
VERBOSE: [DEV-SP2019]:                            [[SPInstallPrereqs]DirectResourceAccess] Prerequisite AppFabric 1.1 for Windows Server was not found on this system
VERBOSE: [DEV-SP2019]:                            [[SPInstallPrereqs]DirectResourceAccess] Prerequisite Microsoft CCR and DSS Runtime 2008 R3 was not found on this system
VERBOSE: [DEV-SP2019]:                            [[SPInstallPrereqs]DirectResourceAccess] Prerequisite Microsoft Sync Framework Runtime v1.0 SP1 (x64) was not found on this system
VERBOSE: [DEV-SP2019]:                            [[SPInstallPrereqs]DirectResourceAccess] Prerequisite WCF Data Services 5.6.0 Runtime was not found on this system
VERBOSE: [DEV-SP2019]:                            [[SPInstallPrereqs]DirectResourceAccess] Prerequisite Active Directory Rights Management Services Client 2.1 was not found on this system
VERBOSE: [DEV-SP2019]:                            [[SPInstallPrereqs]DirectResourceAccess] Current Values: AppFabric=\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller\WindowsServerAppFabricSetup_x64.exe;
DotNet472=\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller\NDP472-KB4054530-x86-x64-AllOS-ENU.exe; DotNetFx=; Ensure=Absent; IDFX=; IDFX11=\\vmware-host\Shared
Folders\Share\SharePoint2019\PrerequisiteInstaller\MicrosoftIdentityExtensions-64.msi; InstallerPath=\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller.exe; IsSingleInstance=Yes; KB2671763=; KB3092423=\\vmware-host\Shared
Folders\Share\SharePoint2019\PrerequisiteInstaller\AppFabric-KB3092423-x64-ENU.exe; MSIPCClient=\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller\setup_msipc_x64.exe; MSVCRT11=\\vmware-host\Shared
Folders\Share\SharePoint2019\PrerequisiteInstaller\vcredist_x64.exe; MSVCRT14=; MSVCRT141=\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller\vc_redist.x64.exe; NETFX=; ODBC=; OnlineMode=False; PowerShell=;
SQLNCli=\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller\sqlncli.msi; SXSpath=\\vmware-host\Shared Folders\Share\WindowsServer2019\sources\sxs; Sync=\\vmware-host\Shared
Folders\Share\SharePoint2019\PrerequisiteInstaller\Synchronization.msi; WCFDataServices=; WCFDataServices56=\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller\WcfDataServices.exe
VERBOSE: [DEV-SP2019]:                            [[SPInstallPrereqs]DirectResourceAccess] Target Values: AppFabric=\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller\WindowsServerAppFabricSetup_x64.exe;
DotNet472=\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller\NDP472-KB4054530-x86-x64-AllOS-ENU.exe; Ensure=Present; IDFX11=\\vmware-host\Shared
Folders\Share\SharePoint2019\PrerequisiteInstaller\MicrosoftIdentityExtensions-64.msi; InstallerPath=\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller.exe; IsSingleInstance=Yes; KB3092423=\\vmware-host\Shared
Folders\Share\SharePoint2019\PrerequisiteInstaller\AppFabric-KB3092423-x64-ENU.exe; MSIPCClient=\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller\setup_msipc_x64.exe; MSVCRT11=\\vmware-host\Shared
Folders\Share\SharePoint2019\PrerequisiteInstaller\vcredist_x64.exe; MSVCRT141=\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller\vc_redist.x64.exe; OnlineMode=False; SQLNCli=\\vmware-host\Shared
Folders\Share\SharePoint2019\PrerequisiteInstaller\sqlncli.msi; SXSpath=\\vmware-host\Shared Folders\Share\WindowsServer2019\sources\sxs; Sync=\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller\Synchronization.msi; Verbose=True;
WCFDataServices56=\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller\WcfDataServices.exe
VERBOSE: [DEV-SP2019]: LCM:  [ End    Test     ]  [[SPInstallPrereqs]DirectResourceAccess] False in 0.6870 seconds.
The PowerShell DSC resource '[SPInstallPrereqs]DirectResourceAccess' with SourceInfo '' threw one or more non-terminating errors while running the Test-TargetResource functionality. These errors are logged to the ETW channel called
Microsoft-Windows-DSC/Operational. Refer to this channel for more details.
    + CategoryInfo          : InvalidOperation: (root/Microsoft/...gurationManager:String) [], CimException
    + FullyQualifiedErrorId : NonTerminatingErrorFromProvider
    + PSComputerName        : localhost

VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 1.124 seconds

Suggested solution to the issue
The problem stems from MSFT_SPInstallPrereqs.psm1:234. You can't Get-Item a network path. I suppose the CD-Drive check beginning in line 207 should also check for a network path and don't check the file status.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
Invoke-DscResource -Name SPInstallPrereqs -ModuleName SharePointDsc -Method Test -Property @{
  OnlineMode=$false;
  Ensure="Present";
  IsSingleInstance="Yes";
      InstallerPath        = "\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller.exe"
      SXSpath              = "\\vmware-host\Shared Folders\Share\WindowsServer2019\sources\sxs"
      SQLNCli              = "\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller\sqlncli.msi"
      Sync                 = "\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller\Synchronization.msi"
      AppFabric            = "\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller\WindowsServerAppFabricSetup_x64.exe"
      IDFX11               = "\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller\MicrosoftIdentityExtensions-64.msi"
      MSIPCClient          = "\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller\setup_msipc_x64.exe"
      WCFDataServices56    = "\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller\WcfDataServices.exe"
      MSVCRT11             = "\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller\vcredist_x64.exe"
      MSVCRT141            = "\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller\vc_redist.x64.exe"
      KB3092423            = "\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller\AppFabric-KB3092423-x64-ENU.exe"
      DotNet472            = "\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller\NDP472-KB4054530-x86-x64-AllOS-ENU.exe"
} -Verbose

The operating system the target node is running
OsName               : Microsoft Windows Server 2019 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture       : 64-bit
WindowsVersion       : 1809
WindowsBuildLabEx    : 17763.1.amd64fre.rs5_release.180914-1434
OsLanguage           : en-US
OsMuiLanguages       : {en-US}
Version of SharePoint that is used
SharePoint 2019
Version and build of PowerShell the target node is running
5.1.17763.592
Version of the DSC module that was used ('dev' if using current dev branch)
<IP_ADDRESS>

It is possible to use Get-Item on a UNC path, just tested it successfully on multiple machines.
What might be the cause:
Since you didn't specify the PSDscRunAsCredential, PowerShell runs the resource under the Local System account. This account does not have permissions to connect to other machines. Can you please check what happens if you add that parameter?
If this resolves the issue, we will have to implement a check to throw an exception when UNC paths are used without the PSDscRunAsCredential parameter.

In my resource config I am actually using PSDscRunAsCredential - just not in this test. I get the same error with and without PSDscRunAsCredential.
I investigated further and you're right, I get use Get-Item on an UNC path, what doesn't work is -Stream "Zone.Identifier" (as referenced in line 642) - this throws the error "The parameter is incorrect". Maybe this is due to VMWare not making streams available through it's network share, but either way we do need a different check here. I am able to install everything else from the same network share (e.g. SQL Server DSC).
PS C:\dsc> Get-Item -Path "\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller.exe"

    Directory: \\vmware-host\Shared Folders\Share\SharePoint2019

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----       25.09.2018     07:39        5988432 PrerequisiteInstaller.exe

PS C:\dsc> Get-Item -Path "\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller.exe" -Stream "Zone.Identifier"
Get-Item : The parameter is incorrect
At line:1 char:1
+ Get-Item -Path "\\vmware-host\Shared Folders\Share\SharePoint2019\Pre ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-Item], Win32Exception
    + FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.GetItemCommand

What kind of share are you using exactly? When I tested it, the Stream parameter worked fine on an UNC path, but I am using a Windows file share to another server in the environment.

FYI: The reason we implemented these checks is that else DSC will start the installation and if the file is blocked Windows will display a security message. But since DSC is not running interactively, you do not see this message and the installation seems to be stuck indefinitely. These checks will prevent that from happening.

I'm running within VMWare Workstation and leveraging shared folders. I suppose VMWare isn't using the same protocol you are using for your network shares. Apparently it doesn't support alternate data streams which is where this problem stems from. I wouldn't be surprised that we have this problem with multiple network share implementations that don't support alternate datastreams (maybe some linux based systems?). I also don't think we need this check whether the files are blocked via network shares?

Unfortunately we do: I have seen situations at customers where for example they downloaded the setup file from a network share, which added the Zone.Identifier stream. When they then tried to install SharePoint, the installation would hang on the invisible security message.

I think the solution would be to check for the type of file share (if this is possible, not sure though) and if this isn't supporting file stream, ignore the check since the file won't be blocked anyway.

@DennisGaida can you try the following:
try
{
    Get-Item -Path "\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller.exe"
}
catch
{
    Write-Output "Nope, doesn't work"
}

That does work (see above, same command). The problem really is Streams. I also tried out Sysinternals streams.exe and get the same error message:
PS C:\Users\Administrator> streams "\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller.exe"

streams v1.60 - Reveal NTFS alternate streams.
Copyright (C) 2005-2016 Mark Russinovich
Sysinternals - www.sysinternals.com

Error on \\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller.exe: The parameter is incorrect.

No files with streams found.

I can catch the error like so:
try  {
Get-Item -Path "\\vmware-host\Shared Folders\Share\SharePoint2019\PrerequisiteInstaller.exe" -Streams *
} catch {write-host "alternate data streams are crazy"}

Sorry, my mistake....forgot the Stream parameter :-)
Wanted to test the try/catch you also just tried. Good to know that would be a solution.

Just learned from a colleague that alternate data streams are a NTFS feature. So now I am wondering how VMware processes shared files.
Quick question: Where are the files you shared located? Could this be an FAT32 formatted (USB) drive?

Know that feeling, I am pretty curious as well :-) Also did some searching on the Internet, without any luck unfortunately.
No ESX expert, but I don't think ESX has the same issue. As far as I know ESX doesn't have the Shared Folders functionality, but is assigning virtual disks or direct link to physical disks to VM's.
For now, I suggest we implement the try/catch solution to resolve this issue.

Made some test runs with a Linux box. Tried SMB versions 1,2 and 3 up to 3.11 all provide alternate data streams - or at least don't break. File hosted on Linux box (EX4 formatted disk).
PS C:\> get-item "\\linuxbox\Jingle\Dennis.mp3" -Stream *

PSPath        : Microsoft.PowerShell.Core\FileSystem::\\linuxbox\Jingle\Dennis.mp3::$DATA
PSParentPath  : Microsoft.PowerShell.Core\FileSystem::\\linuxbox\Jingle
PSChildName   : Dennis.mp3::$DATA
PSProvider    : Microsoft.PowerShell.Core\FileSystem
PSIsContainer : False
FileName      : \\linuxbox\Jingle\Dennis.mp3
Stream        : :$DATA
Length        : 15872

So right now it seems like it's a VMWare Workstation Shared Folders only problem 😞 A try-catch is good nonetheless and it did work before (during TAP). If you don't have the time I could also dig in and create a pull request with the small required changes.

If you have the opportunity to implement and test this fix, that would be great! Just submit a PR when you are ready and I will review!


SNS Support, suggestions for paged request handling

This PR adds support for SNS Topics and Subscriptions
Please see "topic_arns" in sns_topic.rb for an example of paging AWS results to ensure arbitrary numbers of resources can be imported.

Coverage remained the same at 100.0% when pulling 7ba1108d98f8fa47bd723c231087c4cab78d32c9 on uberblah:sns into 918540bc85560a9f566f919eca7fa484af53326a on dtan4:master.

Coverage remained the same at 100.0% when pulling 19506c0d1eba54dd349dfc5e2d4a65e832f51158 on uberblah:sns into 918540bc85560a9f566f919eca7fa484af53326a on dtan4:master.

Let me know if these large block comments from Rubocop are really important, but for now I'm assuming they aren't a huge deal within tests, since tests for other resources have comparably-sized blocks

Coverage remained the same at 100.0% when pulling 4ddb5e08a23ebc580e236bb818e0c59fb8215289 on uberblah:sns into 918540bc85560a9f566f919eca7fa484af53326a on dtan4:master.

Coverage remained the same at 100.0% when pulling 479c05f457f37d5bed4011dee46fded23fae28d7 on uberblah:sns into 918540bc85560a9f566f919eca7fa484af53326a on dtan4:master.

Sorry for late review 🙇
SNS Topics snst works well, but SNS Topic Subscriptions snss does not.
One of our SNS Topic Subscription uses email protocol. However, Terraform does not support email protocol.
See: https://www.terraform.io/docs/providers/aws/r/sns_topic_subscription.html#protocols-supported
resource "aws_sns_topic_subscription" "xxx" {
  topic_arn                       = "arn:aws:sns:ap-northeast-1:xxx:dev"
  protocol                        = "email"
  endpoint                        =<EMAIL_ADDRESS>  raw_message_delivery            = "false"
}

$ terraform plan
1 error(s) occurred:

* aws_sns_topic_subscription.xxx: Unsupported protocol (email) for SNS Topic

I have a suggestion 💡 if a SNS subscription uses email or another unsupported protocol...

do not generate tfstate for the resource
generate tf for the resource as comment

Coverage remained the same at 100.0% when pulling 260db3d2ccec515efa9093451188017f9e2e7c4c on uberblah:sns into 918540bc85560a9f566f919eca7fa484af53326a on dtan4:master.

Coverage remained the same at 100.0% when pulling 1d7fd3de59f2d6053f2e551cbe1a1333c6e4899f on uberblah:sns into 918540bc85560a9f566f919eca7fa484af53326a on dtan4:master.

Coverage remained the same at 100.0% when pulling 30facaf228cbef67acfc3a0275cb64803e19147a on uberblah:sns into 918540bc85560a9f566f919eca7fa484af53326a on dtan4:master.

Coverage remained the same at 100.0% when pulling 30facaf228cbef67acfc3a0275cb64803e19147a on uberblah:sns into 918540bc85560a9f566f919eca7fa484af53326a on dtan4:master.

Coverage remained the same at 100.0% when pulling 23e1a32cf3d6bb429e6adaef423573529f6275e7 on uberblah:sns into 918540bc85560a9f566f919eca7fa484af53326a on dtan4:master.

I can't see what's going on in the SideCI tests, so I can't tell why that's failing but everything on my end appears to work properly... Let me know if this update helped. Should now produce no tfstate and commented tf. Thanks for the advice!

SideCI says the lines of method exceeds threshold... but it's not a important issue. You can ignore it.
(I'll remove this check asap...)
I checked the behavior again with the latest patch, and it suceeded!
LGTM 👍 Thanks ❗


Event Report Generation

Description
Admins need to be able to generate and download a report on a given event. This report should contain the event info as well as info about all characters who attended the event.

Possible Implementation
Take a look at the GM rating report implementation for inspiration.

Out of scope

Requirements / Restrictions
We might ebenefit from first getting a reference from the stakeholders of what they need in these reports.

Hey team! Please add your planning poker estimate with ZenHub @bcobo341 @JasonGadoury @m-triassi @RobertoNittolo


Build to cache

@awolfe76 Chhhhheck it out.
This updates the build process such that on yarn run build we'll get js and css with hashes included in filenames and included in the output html file. The css is included in a pretty roundabout, non-idiomatic webpack way, but this semi-hack requires less changes to our actual codebase and current build process.
Also, all node_modules are put into a separate bundle which will likely be invalidated less often that the one generated from the code in /src.
Still to come are the actual caching updates in nginx, but I wanted you to see how things were shaping up. Lemme know what you think and I'll look at some ideas for including this efficiently in all our projects.

There's also probably something to be said about making a vendor bundle that includes dependencies used everywhere, eg react, react-dom, etc. This breaks the compartmentalization of the apps, but does so for efficiency's sake. Worth considering.


Make entire hover region clickable for SaaS tiles

Fixes #140

Thanks @rhamilto updated, although maybe we should wait for #143

Closing in favor of #141


VSCODE_EXTENSIONS not wokring on macos

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version:  1.74.1
OS Version:  MacOS 13.1

Steps to Reproduce:

export VSCODE_EXTENSIONS="~/microsoft/vscode/extensions"

Expecting create .vscode folder in ~/microsoft/vscode/extensions"
but its ignored i have used this envirometn varable on windows and its works flawless

Can you please explain what is not working?

Like i want my extension to a location where i dont need to reload again if i reset like on my external drive

Not sure if I understand the problem. In other words, why do you think exporting VSCODE_EXTENSIONS is not working for you?

I think that problem with macos i have read some articles that on macos gui apps doesn't use terminal sets environmental variables i think thats the reason behind it although I got a workaround for it to create symbolic link of ~/.vscode to some other location

Great, closing this issue as you got it solved.


Support scanning infrastructure as code files with Trivy

Is your feature request related to a problem? Please describe.
Support Trivy: https://github.com/aquasecurity/trivy

This seems right up my alley, I'll review your wiki and see if this is doable.

Sorry for the extra comment, wrong account. This is up my alley - I'll review your wiki and guidelines before 100% committing but I would love to work on this.

Worth mentioning that tfsec is now tfsec/tfsec
There are lots more features being added and the check count is growing steadily

We can update this because tfsec developers are encouraging the migration to Trivy.

Useful pointers:

Container image: https://aquasecurity.github.io/trivy/v0.48/getting-started/installation/#use-container-image
Run against files and dirs: https://aquasecurity.github.io/trivy/v0.48/docs/target/filesystem/
Configuration file: https://aquasecurity.github.io/trivy/v0.48/docs/configuration/#configuration-file


Small typo in roadmap

Dimnes -> Dimens?

Hey @ozh-dev, thanks for reporting the typo!
It's updated (f8dd1e4e7a).

You are welcome 👍


Improving Rector Performance blog post

@TomasVotruba as agreed here is my blog post about Improving Rector Performance. Please take a look and let me know if there is anything that needs changing. Please also let me know once this is live. Thanks!!

It seems that it is just that the file preview cannot show this properly, hopefully it will show correctly once published

I just tested this by launching a local version of the site and everything seems to be displaying ok, so I hope everything is fine 😄

Looking into this :) don't worry about the file preview, I'll check it

I've just read it and the  post looks awesome. It explains the issue, the solution and benefits.
Nice and clear :clap:  :partying_face:


[BP-1.17][FLINK-31664][table]Add ARRAY_INTERSECT function

What is the purpose of the change
This is an implementation of ARRAY_INTERSECT function
Returns an array of the elements in the intersection of array1 and array2, without duplicates.
Brief change log
ARRAY_INTERSECT for Table API and SQL
Syntax:
ARRAY_INTERSECT(array1, array2)
Arguments:
array: An ARRAY to be handled.
Returns:
Returns an array of the elements in the intersection of array1 and array2, without duplicates.
Examples:
SELECT array_intersect(array(1, 2, 3), array(1, 3, 5));
[1,3]

Verifying this change
CollectionFunctionsITCase
see also:
spark https://spark.apache.org/docs/latest/api/sql/index.html#array_intersect
presto https://prestodb.io/docs/current/functions/array.html
Does this pull request potentially affect one of the following parts:

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

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

Closing this PR since we don't backport new features into existing releases


test failed: rspec ./spec/childprocess_spec.rb:115 # ChildProcess allows unicode characters in the environment

Building ruby-childprocess package on Debian unstable failed with below error.
RUBYLIB=/build/ruby-childprocess-1.0.0/debian/ruby-childprocess/usr/lib/ruby/vendor_ruby:. GEM_PATH=debian/ruby-childprocess/usr/share/rubygems-integration/2.3.0:/var/lib/gems/2.3.0:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.3.0:/usr/share/rubygems-integration/2.3.0:/usr/share/rubygems-integration/all ruby2.3 -S rake -f debian/ruby-tests.rake
/usr/bin/ruby2.3 /usr/bin/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation
[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's default settings.

ChildProcess::AbstractIO
  inherits the parent's IO streams

ChildProcess
  validates cleanly
  returns self when started
  raises ChildProcess::LaunchError if the process can't be started
  raises ArgumentError if given a non-string argument
  knows if the process crashed
  knows if the process didn't crash
  can wait for a process to finish
  ignores #wait if process already finished
  escalates if TERM is ignored
  accepts a timeout argument to #stop
  lets child process inherit the environment of the current process
  can override env vars only for the current process
  allows unicode characters in the environment (FAILED - 1)
  inherits the parent's env vars also when some are overridden
  can unset env vars
  does not see env vars unset in parent
  passes arguments to the child
  lets a detached child live on
  preserves Dir.pwd in the child
  can handle whitespace, special characters and quotes in arguments
  handles whitespace in the executable name
  times out when polling for exit
  can change working directory
  kills the full process tree
  releases the GIL while waiting for the process
  can check if a detached child is alive
  has a logger
  can change its logger
  OS detection
    on a BSD system
      correctly identifies BSD systems
  logger
    with the default logger
      logs at INFO level by default
      logs at DEBUG level by default if $DEBUG is on
      logs to stderr by default
    with a custom logger
      logs to configured logger
  #started?
    when not started
      should equal false
    when started
      should equal true
    when finished
      should equal true

ChildProcess
  can run even when $stdout is a StringIO
  can redirect stdout, stderr
  can redirect stdout only
  pumps all output
  can write to stdin if duplex = true
  can write to stdin interactively if duplex = true
  works with pipes
  can set close-on-exec when IO is inherited
  handles long output
  should not inherit stdout and stderr by default

ChildProcess
  .arch
    when os is *not* 'macosx'
      when host_cpu is 'i386'
        should eq "i386"
      when host_cpu is 'i486'
        should eq "i386"
      when host_cpu is 'i586'
        should eq "i386"
      when host_cpu is 'i686'
        should eq "i386"
      when host_cpu is 'amd64'
        should eq "x86_64"
      when host_cpu is 'x86_64'
        should eq "x86_64"
      when host_cpu is 'ppc'
        should eq "powerpc"
      when host_cpu is 'powerpc'
        should eq "powerpc"
      when host_cpu is 'unknown'
        should eq "unknown"
    when os is 'macosx'
      when host_cpu is 'i686'
        when Ruby is 64-bit
          when host_cpu is 'i686'
            should eq "x86_64"
        when Ruby is 32-bit
          when host_cpu is 'i686'
            should eq "i386"
      when host_cpu is 'amd64'
        should eq "x86_64"
      when host_cpu is 'x86_64'
        should eq "x86_64"
      when host_cpu is 'ppc'
        should eq "powerpc"
      when host_cpu is 'powerpc'
        should eq "powerpc"
      when host_cpu is 'unknown'
        should eq "unknown"

ChildProcess::Unix::Process
  handles ECHILD race condition where process dies between timeout and KILL
  handles ESRCH race condition where process dies between timeout and KILL
  behaves like a platform that provides the child's pid
    knows the child's pid

ChildProcess::Unix::IO
  raises an ArgumentError if given IO does not respond to :to_io
  raises a TypeError if #to_io does not return an IO

Failures:

  1) ChildProcess allows unicode characters in the environment
     Failure/Error: child_env = eval rewind_and_read(file)

     SyntaxError:
       (eval):1: invalid multibyte char (US-ASCII)
       (eval):1: invalid multibyte char (US-ASCII)
       (eval):1: syntax error, unexpected end-of-input, expecting =>
       ...EB_TARGET_ARCH"=>"amd64", "FO??"=>"ba\xC3\xB6r"}
       ...                               ^
     # ./spec/childprocess_spec.rb:124:in `eval'
     # ./spec/childprocess_spec.rb:124:in `block (3 levels) in <top (required)>'
     # ./spec/childprocess_spec.rb:116:in `block (2 levels) in <top (required)>'

Finished in 3.47 seconds (files took 0.43715 seconds to load)
68 examples, 1 failure

Failed examples:

rspec ./spec/childprocess_spec.rb:115 # ChildProcess allows unicode characters in the environment

[Coveralls] Outside the Travis environment, not sending data.
/usr/bin/ruby2.3 /usr/bin/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
ERROR: Test "ruby2.3" failed. Exiting.

0.9.0 is fine, any ideas for it?

Hey @henrich, I'm really curious how you're hitting this issue. Our AppVeyor builds run the same tests, and are green for as of the latest HEAD at time of writing.
I'm curious what differs between your environment and our test environment is.
It does appear that the original PR that added that test had some comments around the use of Unicode in key values. I suppose in the worst case we could remove the non-ASCII character from the key name to work around this particular issue, but that doesn't seem satisfying considering the tests appear to work in CI.
FWIW, I can run that test locally without issue on macOS against Ruby 2.3 with no issue, which should exercise the same code path as Linux.
If there's any additional information you can provide, we'd greatly appreciate it!

While I've updated ruby-childprocess Debian package to newest one, I got this issue.
My environment is Debian unstable "sid" and code is at https://salsa.debian.org/ruby-team/ruby-childprocess
Reproducible step is

create Debian unstable env (maybe using docker is easy)
install developer tools via apt install packaging-dev
install dependency package
a. edit /etc/apt/sources.list and enable deb-src line and run "apt update; apt build-dep ruby-childprocess"
b. or just run "apt install debhelper gem2deb rake ruby-coveralls ruby-ffi  ruby-rspec yard"
git clone https://salsa.debian.org/ruby-team/ruby-childprocess.git
cd ruby-childprocess; gbp buildpackage --git-pristine-tar (exec "git-buildpackage" tool)

Hope this helps.

@henrich What shell are you using? gbp buildpackage --git-pristine-tar (exec "git-buildpackage" tool) doesn't appear to be a valid command, and I'm not familiar with the general pattern you're trying to accomplish so am unable to infer your intent. Thanks!


MAX32655 - I2C driver hangs forever

Hi,
I am working with a MAX32655 custom board with 2 I2C devices on the same bus (I2C1). The devices are ADXL343 and MAX31328. After experimenting with the I2C example, I noticed that sometimes the driver would just hang after running for a while.
When trying using the sync function MXC_I2C_MasterTransaction, it would not return. When trying to use the async function MXC_I2C_MasterTransactionAsync or MXC_I2C_MasterTransactionDMA, the interrupt would never come.
Using a logic analyzer, it seems to be a state machine issue with the I2C driver, as sometimes the STOP condition would never happen or the MAX32655 would not send an ACK.
As my board is based on the MAX32655FTHR, I tried to reproduce the issue with the 2 I2C components on the board (the Audio Codec and the PMIC). The main code below, when compiled for the Feather board, hangs. However, if you uncomment lines 124 and 149 (thus printing to the console), then it works.
I could not find a similar issue here with the I2C driver. Have you seen this problem before?
Thank you!
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include "mxc_device.h"
#include "mxc_delay.h"
#include "nvic_table.h"
#include "i2c.h"
#include "dma.h"
#include "rtc.h"
#include "wut.h"

#define I2C_FREQ 400000
#define I2C_TCXO_ADDR 0x68
#define I2C_ACCEL_ADDR 0x53
#define I2C_BYTES 8

#define I2C_PMIC_ADDR 0b0101000
#define I2C_CODEC_ADDR 0b0011000

static uint8_t txdata[I2C_BYTES];
static uint8_t rxdata[I2C_BYTES];
volatile int I2C_FLAG;

void I2C_Callback(mxc_i2c_req_t *req, int error)
{
    I2C_FLAG = error;
    if (error) {
        printf("Callback: Error code: %d\n", error);
        while(1);
    }
}

void I2C1_IRQHandler(void)
{
    MXC_I2C_AsyncHandler(MXC_I2C1);
}

int main(void)
{
    mxc_i2c_req_t reqMaster;
    printf("\n******** I2C MAX31328 Test ********\n");

    MXC_Delay(MXC_DELAY_SEC(1));

    NVIC_EnableIRQ(I2C1_IRQn);

    int error = 0;

    if (MXC_I2C_Init(MXC_I2C1, 1, 0) != E_NO_ERROR) {
        printf("[ERROR] Could not configure I2C master\n");
        return 1;
    }
    MXC_I2C_SetFrequency(MXC_I2C1, I2C_FREQ);

    for (int i = 0; i < 100; i++) {
        memset(txdata, 0, I2C_BYTES);
        memset(rxdata, 0, I2C_BYTES);
        txdata[0] = 0x00;

        reqMaster.i2c = MXC_I2C1;
        reqMaster.addr = I2C_PMIC_ADDR;
        reqMaster.tx_buf = txdata;
        reqMaster.tx_len = 1;
        reqMaster.rx_buf = rxdata;
        reqMaster.rx_len = 1;
        reqMaster.restart = 0;
        reqMaster.callback = I2C_Callback;
        I2C_FLAG = 1;

        if ((error = MXC_I2C_MasterTransactionAsync(&reqMaster)) != 0) {
            printf("Error writing: %d\n", error);
            return error;
        }
        while(I2C_FLAG);

        printf("[%02i] HardwareID: %02x\n", i, rxdata[0]);

        // ================================================================ //

        memset(txdata, 0, I2C_BYTES);
        memset(rxdata, 0, I2C_BYTES);
        txdata[0] = 0x01;

        reqMaster.i2c = MXC_I2C1;
        reqMaster.addr = I2C_PMIC_ADDR;
        reqMaster.tx_buf = txdata;
        reqMaster.tx_len = 1;
        reqMaster.rx_buf = rxdata;
        reqMaster.rx_len = 1;
        reqMaster.restart = 0;
        reqMaster.callback = I2C_Callback;
        I2C_FLAG = 1;

        if ((error = MXC_I2C_MasterTransactionAsync(&reqMaster)) != 0) {
            printf("Error writing: %d\n", error);
            return error;
        }
        while(I2C_FLAG);

        printf("[%02i] FirmwareID: %02x\n", i, rxdata[0]);

        // ================================================================ //

        memset(txdata, 0, I2C_BYTES);
        memset(rxdata, 0, I2C_BYTES);
        txdata[0] = 0x0F;

        reqMaster.i2c = MXC_I2C1;
        reqMaster.addr = I2C_PMIC_ADDR;
        reqMaster.tx_buf = txdata;
        reqMaster.tx_len = 1;
        reqMaster.rx_buf = rxdata;
        reqMaster.rx_len = 4;
        reqMaster.restart = 0;
        reqMaster.callback = I2C_Callback;
        I2C_FLAG = 1;

        if ((error = MXC_I2C_MasterTransactionAsync(&reqMaster)) != 0) {
            printf("Error writing: %d\n", error);
            return error;
        }
        while(I2C_FLAG);

        // printf("[%02i]\n", i); // UNCOMMENT THIS LINE

        // ================================================================ //

        memset(txdata, 0, I2C_BYTES);
        memset(rxdata, 0, I2C_BYTES);
        txdata[0] = 0x17;
        txdata[1] = 0x80;

        reqMaster.i2c = MXC_I2C1;
        reqMaster.addr = I2C_CODEC_ADDR;
        reqMaster.tx_buf = txdata;
        reqMaster.tx_len = 2;
        reqMaster.rx_buf = rxdata;
        reqMaster.rx_len = 0;
        reqMaster.restart = 0;
        reqMaster.callback = I2C_Callback;
        I2C_FLAG = 1;

        if ((error = MXC_I2C_MasterTransactionAsync(&reqMaster)) != 0) {
            printf("Error writing: %d\n", error);
            return error;
        }
        while(I2C_FLAG);

        // printf("[%02i]\n", i); // UNCOMMENT THIS LINE

        // ================================================================ //

        memset(txdata, 0, I2C_BYTES);
        memset(rxdata, 0, I2C_BYTES);
        txdata[0] = 0x00;

        reqMaster.i2c = MXC_I2C1;
        reqMaster.addr = I2C_CODEC_ADDR;
        reqMaster.tx_buf = txdata;
        reqMaster.tx_len = 1;
        reqMaster.rx_buf = rxdata;
        reqMaster.rx_len = 1;
        reqMaster.restart = 0;
        reqMaster.callback = I2C_Callback;
        I2C_FLAG = 1;

        if ((error = MXC_I2C_MasterTransactionAsync(&reqMaster)) != 0) {
            printf("Error writing: %d\n", error);
            return error;
        }
        while(I2C_FLAG);

        printf("[%02i] Status: %02x\n", i, rxdata[0]);
    }

    MXC_I2C_Shutdown(MXC_I2C1);

    return E_NO_ERROR;
}

This sounds similar to the recently closed #1261
I am not sure that the fix merged in pull request #1263 fixed the issue. I have been meaning to reopen the issue, but I haven't had time to set up a reproducible test case.
I am still/also seeing infinite loops when calling MXC_I2C_RevA_MasterTransaction(), but it moved to a different while loop.
Before the fix in pull request #1263 I saw it hang here:
https://github.com/analogdevicesinc/msdk/blob/d2480e18f148a307b1e70ce16b07a4d674ff82b9/Libraries/PeriphDrivers/Source/I2C/i2c_reva.c#L997
After 1263 I now see it hang here:
https://github.com/analogdevicesinc/msdk/blob/d2480e18f148a307b1e70ce16b07a4d674ff82b9/Libraries/PeriphDrivers/Source/I2C/i2c_reva.c#L1001
The temporary hack my team has been doing is to replace line 997 in i2c_reva.c with this line:
while (!(i2c->intfl0 & MXC_F_I2C_REVA_INTFL0_STOP)) {}

This brings the behavior back to pre-commit 79c0d9a.
I am not sure if we're doing the perfect thing, but I just thought I'd mention that there is a closed issue describing the same thing, and I don't think the fix committed actually fixed it.

Thank you for the detailed response.
Yes, I saw the issue and the pull request, I thought this was going to solve it, but as you said, this moved to a different loop, so I don't think it solved the problem.
I will try the temporary hack on my side.


[error] impossible to get artifacts when data has not been loaded.

Per discussion with @jsuereth opening a ticket for sbt project.
After switching from 0.12.4 to 0.13.8 of sbt we are getting the following error in the build:
[error] impossible to get artifacts when data has not been loaded. IvyNode = org.apache.httpcomponents#httpmime;4.2.3
[trace] Stack trace suppressed: run last playful2/*:update for the full output.
[error] (playful2/*:update) java.lang.IllegalStateException: impossible to get artifacts when data has not been loaded. IvyNode = org.apache.httpcomponents#httpmime;4.2.3

overrideDependencies did not work, the only workaround found was to explicitly include httpmime:4.2.3 in the list of dependencies. sbt issues a warning as the result, but at least the build goes through.
[warn] Multiple dependencies with the same organization/name but different versions. To avoid conflict, pick one version:
[warn] * org.apache.httpcomponents:httpmime:(4.2.3, 4.3.1)

It seem that similar issue was reported here:
https://github.com/sbt/sbt/issues/1598
And discussed here:
http://stackoverflow.com/questions/16614794/illegalstateexception-impossible-to-get-artifacts-when-data-has-not-been-loaded

I also had this issue. In my case I added a dependency on Hbase 0.98.0-hadoop2, and the error introduced was "java.lang.IllegalStateException: impossible to get artifacts when data has not been loaded. IvyNode = junit#junit;4.10". The above mentioned workaround of introducing Junit as an explicit dependency did not work.
I was able to get the dependency to resolve by adding an exclusion rule to the Hbase dependency that excluded Junit.

I can confirm this happens on 0.13.8 as well.

Does anyone have a reproducible build file I can use? It seems like it's related to transitive dependencies and manually added exclude introducing some kind of inconsistency.

I get the following error when I type sbt assembly:
[error] (sql/compile:compile) java.lang.AssertionError: assertion failed: List(object package$DebugNode, object package$DebugNode) [error] (hive/*:update) java.lang.IllegalStateException: impossible to get artifacts when data has not been loaded. IvyNode = org.scala-lang#scala-library;2.10.3 [error] Total time: 106 s, completed Feb 15, 2016 11:36:07 PM
I have Mac (OS El Capitan) with spark 1.6.0, java 1.8.0_73 and sbt 0.13.9
sbt.build file reads:
name := "sbt-pom-reader"
organization := "com.typesafe.sbt"
sbtPlugin := true
publishMavenStyle := false

libraryDependencies ++= Dependencies.pluginDependencies

git.baseVersion := "1.0"

versionWithGit

scriptedLaunchOpts <+= version apply { v => "-Dproject.version="+v }

initialCommands :=
  """| import com.typesafe.sbt.pom._
     | import sbt._
     | val localRepo = file(sys.props("user.home")) / ".m2" / "repository"
     | val pom = loadEffectivePom(localRepo, file("src/sbt-test/simple-pom/can-extract-basics/pom.xml"))
     |""".stripMargin

scriptedSettings

scriptedLaunchOpts <+= version apply { v => "-Dproject.version="+v }

publishTo <<= (version) { v =>
  def scalasbt(repo: String) = ("scalasbt " + repo, "http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-" + repo)
  val (name, repo) = if (v.endsWith("-SNAPSHOT")) scalasbt("snapshots") else scalasbt("releases")
  Some(Resolver.url(name, url(repo))(Resolver.ivyStylePatterns))
}

@minroh That's a build file for sbt-pom-reader 1.0. I'm a bit confused to why you're using that - https://github.com/sbt/sbt-pom-reader/blob/v1.0/build.sbt

@eed3si9n I know but that's the only type of build.sbt on my computer when I use find command. I installed it using brew install sbt inside my spark folder.

@minroh Do you have project/Build.scala in your spark folder?

@eed3si9n No, In my project folder inside spark folder, I have the following and the subfolders do not contain Build.scala either. Scala and Spark folders are in the same level on my computer, and which scala outputs /usr/local/bin/scala
MimaBuild.scala		build.properties	target
MimaExcludes.scala	plugins.sbt
SparkBuild.scala	project

@minroh I guess I should've said project/*.scala, since the exact name doesn't matter. So the reproduction step is git clone https://github.com/apache/spark and run assembly?

Yes. I downloaded spark from Apache Spark instead of gil clone and the version is the latest (1.6.0).

@minroh I was able to reproduce this issue for the hive subproject of Spark 1.6.0.
At least for this particular case, a workaround can be bumping up the sbt version to 0.13.9, by editing project/build.properties to sbt.version=0.13.9.

@eed3si9n OMG, your fix worked! I spent so many hours trying to fix it myself but could not figure out a way. Thank you so much @eed3si9n!

@Duhemm
diff --git a/src/java/org/apache/ivy/core/report/ResolveReport.java b/src/java/org/apache/ivy/core/report/ResolveReport.java
index 983f514..54479e5 100644
--- a/src/java/org/apache/ivy/core/report/ResolveReport.java
+++ b/src/java/org/apache/ivy/core/report/ResolveReport.java
@@ -232,7 +232,11 @@ public class ResolveReport {
         for (Iterator iter = dependencies.iterator(); iter.hasNext();) {
             IvyNode dependency = (IvyNode) iter.next();
             if (!dependency.isCompletelyEvicted() && !dependency.hasProblem()) {
-                artifacts.addAll(Arrays.asList(dependency.getSelectedArtifacts(artifactFilter)));
+                try {
+                    artifacts.addAll(Arrays.asList(dependency.getSelectedArtifacts(artifactFilter)));
+                } catch (Exception e) {
+                    e.printStackTrace();
+                }
             }

Why isn't the workaround by @eed3si9n the solution (i.e., there's no pull request to resolve this issue)? There should be no breaking changes between minor versions of sbt.

There seems to be a regression in 0.13.12 regarding to this bug. With our project, we don't get "impossible to get artifacts ..." with 0.13.11. But with 0.13.12, we do.

I also see a regression when combined with sbt-ensime, e.g. in our scripted tests

With sbt 0.13.13 issue still persists (though for me error happens only when importing project in Intellij IDEA, not when building from console). With 0.13.11 it works just fine.
And I have excludeAll applied to dependencies:
libraryDependencies ++= Seq(...).map(
  /* avoids dependency conflict: https://github.com/holdenk/spark-testing-base/issues/116*/
  _.excludeAll(ExclusionRule(organization = "javax.servlet"))
)

which is a necessary condition for reproducing the issue, the project imports OK if i comment it out.

Bumping the sbt version to 0.13.9 worked for me.


No endpoint found error when exporting to Pandoc for Juris-M only (Zotero is fine)

Support log ID: BUZPVPK7-euc
Expected behavior: Citations are properly exported from  both Juris-M and Zotero
Actual behavior:
I received the following bug, but for Juris-M only (Zotero works fine)
could not fetch Zotero items: No endpoint found
@shiraiReduplicationNominalizationTibetoBurman2014 not found
(The message appears regardless of what reference is selected, and I have verified the keys.)

Sorry this escaped my attention so long -- can you send a new log? Logs are only kept for a week.

Here's a new log: BAWGVZDK-euc

And where do you see this error/what are you doing that seems to evoke the error? There are no errors in your log other than that you are over your storage quota for the Zotero servers.

It's when running Pandoc with the lua filter; it's not an error with JurisM.

What are you using for yaml header/command line params?

Did you add client: jurism to the yaml header?
https://retorque.re/zotero-better-bibtex/exporting/pandoc/#from-markdown-to-zotero-live-citations

Yes, this is what it looks like (I coped from that page):
---
title: "(my title)"
author: Ryan Ka Yau Lai
output:
  word_document: default
  bookdown::word_document2: default
zotero:
  scannable-cite: false # only relevant when your compiling to scannable-cite .odt
  client: jurism # defaults to zotero
  author-in-text: false # when true, enabled fake author-name-only cites by replacing it with the text of the last names of the authors
  csl-style: apa # pre-fill the style
...

If you re-download https://retorque.re/zotero-better-bibtex/exporting/zotero.lua the problem should be fixed.


change the extension from png to jpg

So well work, at POO's class on University Coop of Colombia at 2023-03-16


Canvas background transparent?

Hello.
I'm using the resize canvas to obtain exact sizes witch i want.
$imgs->resizeCanvas(160,122, 'center',false,'ffffff');
I want to know if is possible instead of white background to have transparent?
image is png.

For furture reference and to help others,
This does NOT work:
$img->resizeCanvas(160, 160, 'center', false, array(0, 0, 0, 0));
Nor does this:
$img->resizeCanvas(160, 160, 'center', false, 'rgba(0, 0, 0, 0)');
The resulting images are ALL black backgrounds not transparent. I also noticed the Intervention image Docs mention just CSS HEX colors working, I think its purely RGB not RGBA... can someone help?
I have attached 2 originals and 2 images after intervention image.

My exact code is as follows:
// Request $request - Laravel request object
$file = $request->file('photo');
$image = Image::make($file);
$image->resize(1000, 1000, function ($constraint) {
    $constraint->aspectRatio();
});
$image->resizeCanvas(1000, 1000, 'center', false, 'rgba(0, 0, 0, 0)');
$imageStream = $image->stream();
Storage::disk('s3')->put($storage_path, $imageStream->__toString());

and I have also tried:
// Request $request - Laravel request object
$file = $request->file('photo');
$image = Image::make($file);
$image->resize(1000, 1000, function ($constraint) {
    $constraint->aspectRatio();
});
$image->resizeCanvas(1000, 1000, 'center', false, array(0, 0, 0, 0));
$imageStream = $image->stream();
Storage::disk('s3')->put($storage_path, $imageStream->__toString());

If someone could shed some light that would be great.
@closca did you ever end up having a solution or luck fixing this issue?
(Using intervention image 2.3.x on Laravel 5.2.x)

How do I check if an image background is pure white or red

@1988gadocansey you should post a new issue, or skim through
http://image.intervention.io/api/fill
and
#36
There isn't much support for editing photos, as intervention image is more of a Image manipulation library not a photo editing library.
You may want to checkout: http://phpimageworkshop.com/

@d4rkd0s did you manage to get around your issue?

bah - this will only work with PNGs, I was testing on JPGs...

@dhensby wasn't able to resolve it, just used functions to fit and crop, as well as frontend libraries to allow users to crop before uploading.

It looks like you were testing on JPGs too. If you want transparency you need to save as PNG


problem with the owner field if the one in the middle is deleted during create safe flow

Description
The same data is duplicated in the next field if the one owner in the middle is deleted. After that deleting the one field deletes both fields
Environment

Browser: Chrome
Wallet: MetaMask
Chain: Rinkeby
https://pr3661--safereact.review-safe.gnosisdev.com/app/open

Steps to reproduce

Go to create a new safe flow

add one owner under default one

add the 3rd owner ( the name should be either ens name or the owner from address book )

delete the 2nd owner in the list and click add another owner
Current result: the new line to add owner appears with prefield information ( the same as the last added owner)

delete one of the duplicated field
Current result: both field disappears

Expected result
Make sure that deleting one owner is not influence on the add owner fields
Screenshots
https://drive.google.com/file/d/18ke59O5u4_A0vGNg9cr6QoATu2FGtKDC/view?usp=sharing

Sometimes, it's not possible to delete the broken cell - the new empty line appears on delete broken one - https://drive.google.com/file/d/1JbqwwwpskqUkQ5FU28qKDdkdCbR2CEvw/view?usp=sharing

Duplicate of #3527.