update vulnerability reporting

This PR ...
If you are suggesting a fix for a currently exploitable issue, please disclose the issue to the prime-reportstream team directly outside of GitHub instead of filing a PR, so we may immediately patch the affected systems before a disclosure. See SECURITY.md/Reporting a Vulnerability for more information.
Test Steps:

Include steps to test these changes

Changes

Include a comprehensive list of changes in this PR
(For web UI changes) Include screenshots/video of changes

Checklist
Testing

[ ] Tested locally?
[ ] Ran ./prime test or ./gradlew testSmoke against local Docker ReportStream container?
[ ] (For Changes to /frontend-react/...) Ran npm run lint:write?
[ ] Added tests?

Process

[ ] Are there licensing issues with any new dependencies introduced?
[ ] Includes a summary of what a code reviewer should test/verify?
[ ] Updated the release notes?
[ ] Database changes are submitted as a separate PR?
[ ] DevOps team has been notified if PR requires ops support?

Fixes

#issue - List GitHub issues this PR fixes

To Be Done
Create GitHub issues to track the work remaining, if any

#issue

Specific Security-related subjects a reviewer should pay specific attention to

Does this PR introduce new endpoints?

new endpoint A
new endpoint B

Does this PR include changes in authentication and/or authorization of existing endpoints?
Does this change introduce new dependencies that need vetting?
Does this change require changes to our infrastructure?
Does logging contain sensitive data?
Does this PR include or remove any sensitive information itself?

If you answered 'yes' to any of the questions above, conduct a detailed Review that addresses at least:

What are the potential security threats and mitigations? Please list the STRIDE threats and how they are mitigated

Spoofing (faking authenticity)

Threat T, which could be achieved by A, is mitigated by M

Tampering (influence or sabotage the integrity of information, data, or system)
Repudiation (the ability to dispute the origin or originator of an action)
Information disclosure (data made available to entities who should not have it)
Denial of service (make a resource unavailable)
Elevation of Privilege (reduce restrictions that apply or gain privileges one should not have)

Have you ensured logging does not contain sensitive data?
Have you received any additional approvals needed for this change?

Pull reviewers stats
Stats for the last 30 days:

User
Total reviews
Median time to review
Total comments

MauriceReeves-usds
27
15h 7m
10

carlosfelix2
26
1h 24m
45

cwinters-usds
21
1h 38m
4

TomNUSDS
15
53m
12

kevinhaube
11
1h 2m
1

jbiskie
11
1h 5m
0

brick-green-agile6
11
1h 5m
0

jimduff-usds
10
3h 8m
2

whytheplatypus
8
1h 2m
9

JosiahSiegel
7
59m
4

sethdarragile6
6
47m
0

oslynn
5
16h 45m
1

sean-usds
5
1h 53m
1

rhood23699
4
1h 21m
0

jeremy-page
2
10h 53m
0

ahay-agile6
1
1d 23h 57m
0

RickHawesUSDS
1
4h 6m
0

jorg3lopez
1
9m
0

clediggins-usds
1
55m
0

victorialb-usds
1
2d 20h 38m
1

snesm
1
16m
0

jh765
1
2h 54m
0

Email additions require that recipient(s) of<EMAIL_ADDRESS>know how to disseminate vulnerability related messages.

@snesm this is still marked as Draft; is your work complete on this and ready for comment?


deploy-confidential-containers-default-policy missing step: create attestation provider

I'm trying to follow these steps to setup the coco kafka demo.
Under section 'Deploy a trusted application with kata-cc and attestation container' at step 5 the following command is executed:
export MAA_ENDPOINT="$(az attestation show --name "myattestationprovider" --resource-group "MyResourceGroup" --query 'attestUri' -o tsv | cut -c 9-)"
However, what "myattestationprovider" is and how to set it up isn't explained in the text.
I believe a link to this page is missing. That page explains how to setup the attestation provider.

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

ID: d05da5a4-d435-17e1-cc75-d088d377ec6f
Version Independent ID: a3a595ab-ed75-5392-3758-0f1c75d66dd0
Content: Deploy an AKS cluster with Confidential Containers (preview) - Azure Kubernetes Service
Content Source: articles/aks/deploy-confidential-containers-default-policy.md
Service: azure-kubernetes-service
GitHub Login: @schaffererin
Microsoft Alias: schaffererin

nvm I'm an idiot the link is already there
sorry was too hasty

@AndesVL
We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.


update 3rdparty github submodules to latest stable

Updated 3rdparty github submodules to latest stable.

Testing now.  CC: @VanDavv

This looks good to me on Mac.

Obsolete due to new build system. Closed.


[Feature] Configuration file of GLEAN for blind face image restoration

Need to resolve conflicts

@innerlee Can merge now. Thanks.


Add optional support for ALB logging

Adds variables so the Atlantis ALB will log to a specified S3 bucket using a specified prefix. By default, logging is disabled to be backwards compatible.

@antonbabenko Let me know if there's anything I can do to help get this merged in. We're currently running off our forked copy and I'd love to get back on the mainline. Thanks!

Thanks, Jeremy!
v1.17.0 has been released.


[WIP]Graphrepresentations

Adding multiple transformation functions to change the representation of a graph.
These are necessary for the inplace DFS and BFS algorithms to work.
Also it includes a Gilbertgraph G(n,p) generator, which generates graphs in
standard representation.

I have merged the changes with the implementation of the linear time, inplace DFS.


Install the agent for Azure AD DS warnings

I might just not be seeing it, but where/what are the warnings in the power shell window example for the steps of installing the AAD Connect Health App for AD DS?

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

ID: eb5cf254-9d8e-de7a-30e8-487b68205bc2
Version Independent ID: 28bc66e2-0de2-73e6-8cb8-243daab81628
Content: Install the Connect Health agents in Azure Active Directory
Content Source: articles/active-directory/hybrid/how-to-connect-health-agent-install.md
Service: active-directory
Sub-service: hybrid
GitHub Login: @billmath
Microsoft Alias: billmath

@rconiv
Thanks for your feedback! We will investigate and update as appropriate.

They should appear if you haven't met all of the prerequisites. What exactly were you looking for?

That isn’t what is shown on the image on the website.  It shows everything is successful.
Best Regards,
Jon Mercer
HelpDesk Support
Universal Language Service, Inc.
Phone:  1<PHONE_NUMBER> • Direct: 1<PHONE_NUMBER>
Email<EMAIL_ADDRESS>Address:  929 108th Ave NE, Suite 710, Bellevue, WA 98004
[Logo - Color, logo & name on Inv]http://www.universallanguageservice.com/
Over-the-Phonehttps://urldefense.proofpoint.com/v2/url?u=http-3A__universallanguageservice.com_services_over-2Dthe-2Dphone-2Dinterpretation_&d=DwMFAg&c=CO1ThuriqckIOSHVQ0MREA&r=iufB2MB82pXfSSOoYvfqR4lfTI2ZivYikDDJBAvUJ7w&m=ru1lSxAsm6NuqURnDCn08tlj1kOuPlyLAY30nz358gk&s=XmmBjcpSo1fnvKuGrwBLzBiF9up4ASWFXgtJ2ocHXjs&e= | Video Remotehttps://urldefense.proofpoint.com/v2/url?u=http-3A__universallanguageservice.com_services_video-2Dinterpretation_&d=DwMFAg&c=CO1ThuriqckIOSHVQ0MREA&r=iufB2MB82pXfSSOoYvfqR4lfTI2ZivYikDDJBAvUJ7w&m=ru1lSxAsm6NuqURnDCn08tlj1kOuPlyLAY30nz358gk&s=aGZGa3f5O7uhDjU1tKJPFHM3I6X_W1JWyE52A1tR79g&e= | In-Personhttps://urldefense.proofpoint.com/v2/url?u=http-3A__universallanguageservice.com_services_in-2Dperson-2Dinterpretation_&d=DwMFAg&c=CO1ThuriqckIOSHVQ0MREA&r=iufB2MB82pXfSSOoYvfqR4lfTI2ZivYikDDJBAvUJ7w&m=ru1lSxAsm6NuqURnDCn08tlj1kOuPlyLAY30nz358gk&s=1TptnKdPQCm-AshEFJN3O1z7TcGMTI84qSInlEomNkc&e= | Document Translationhttps://urldefense.proofpoint.com/v2/url?u=http-3A__universallanguageservice.com_services_written-2Dtranslation_&d=DwMFAg&c=CO1ThuriqckIOSHVQ0MREA&r=iufB2MB82pXfSSOoYvfqR4lfTI2ZivYikDDJBAvUJ7w&m=ru1lSxAsm6NuqURnDCn08tlj1kOuPlyLAY30nz358gk&s=ozqNpwid-4VhHi69dg6wkNTCv_Ol-7UMFuvv-CxSpnA&e= | 200+ Languageshttps://urldefense.proofpoint.com/v2/url?u=http-3A__universallanguageservice.com_customer-2Dsupport_languages_&d=DwMFAg&c=CO1ThuriqckIOSHVQ0MREA&r=iufB2MB82pXfSSOoYvfqR4lfTI2ZivYikDDJBAvUJ7w&m=ru1lSxAsm6NuqURnDCn08tlj1kOuPlyLAY30nz358gk&s=Logy8K314wklX_nS4jxeKFA9K8swoh0SNTcn1P7ePCI&e=
From: Marilee Turscak - MSFT @.>
Sent: Monday, August 23, 2021 4:17 PM
To: MicrosoftDocs/azure-docs @.>
Cc: Jon Mercer @.>; Mention @.>
Subject: Re: [MicrosoftDocs/azure-docs] Install the agent for Azure AD DS warnings (#80083)
CAUTION: This email originated from outside of UniversalLanguage. DO NOT click links or open attachments unless you recognize the sender (e.g. senders's domain) and know the content is safe. Please contact your direct supervisor/manager or UniversalLanguage IT Department, if you are unsure if it is safe to click on the link, or open the attachment.
They should appear if you haven't met all of the prerequisites. What exactly were you looking for?
[image]https://user-images.githubusercontent.com/13383753/130531323-484fe4bc-231a-457d-9dd1-62c581383470.png
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/80083#issuecomment-904198089, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARMBOT7DMEPRHAUPZSUJVATT6LJFZANCNFSM5CU7QHQA.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.


remove two workarounds on esmfold after releasing 1.11.0

What does this PR do?
This PR removed 2 workarounds on esmfold scripts. These 2 workarounds were introduced before 1.10 release due to accuracy issue.
I have verified that there is no accuracy issue on the generated pdb file after removing the 2 WAs.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Better panic handling

I'm not sure what the rust-y way to do this is but when I typo a timezone, this seems pretty nasty:
$ rizzy --zone not_a_tz
thread 'main' panicked at 'Could not parse timezone: not_a_tz, Error: 'not_a_tz' is not a valid timezone', src/main.rs:45:19
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Hi @mattgodbolt ,
I hacked together a solution with autocomplete. What do you think of the following output?
chris@christophs-air rizzy % cargo run -- -z America/Chi
    Finished dev [unoptimized + debuginfo] target(s) in 0.07s
     Running `target/debug/rizzy -z America/Chi`
Error:
   0: Unknown timezone 'America/Chi', did you mean: ["America/Chihuahua", "America/Chicago"]

Location:
   src/main.rs:103

Backtrace omitted.
Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

Demo draft is here, but would require for https://github.com/chronotope/chrono-tz/pull/95 to be merged (in some form or another).  #12
My PR (#12) only does the auto-suggestion and removes one panic!, but there's a few others that could be removed.

Thanks @siedentop !
I was wondering about maybe not panic-ing at all in these cases and handling it more user-friendlyly. This is a huge improvement of course, but as a user of a tool, I probably never want to see anything specific to the language a command-line tool was written in if I mistyped an option :-)
I love the autocomplete thing, and I guess I would imagine an ideal output is:
% cargo run -- -z America/Chi
    Finished dev [unoptimized + debuginfo] target(s) in 0.07s
     Running `target/debug/rizzy -z America/Chi`
Unknown timezone 'America/Chi', did you mean: ["America/Chihuahua", "America/Chicago"]
%

The rest is visual noise to the user (though handy if you are a developer). My sort of mental model is if you typed a bad command-line parameter to cat you get:
$ cat -f
cat: invalid option -- 'f'
Try 'cat --help' for more information.

and not something like
 cat -f
Error:
  0: invalid option -- 'f'

Location:
    src/cat.c:34

Backtrace omitted.
Run with DEBUG_.BINUTILS=1 environment variable to display it.
Run with DEBUG_BINUTILS=full to include source snippets.

(etc!)
I have this beef with plenty of Python tools that expose their innards to unsuspecting users if the user makes a mistake :)

Yes, totally!
The answer to that is to use eprintln!("Rizzy failed on: {}", error);.
I'll add a patch in a day or so.

I updated this. But the upstream library still has not had a response to my request to make the list of timezone names readable from the library.

It looks like the upstream library (chrono-tz) is willing to merge my patch.


Add enable_user_defined_functions option

Can one of the admins verify this patch?

cc @mohitsoni for review

Ping!

ok to test


Release v. Next

Add a +1 when you want a release.

Nothing in the way - @rsosag and @randikabanura - are you interested in co-maintaining this library and making releases? I'm no longer using it so only trying to help. @afeld @dks17 (current maintainers) any objections?

Nothing in the way - @rsosag and @randikabanura - are you interested in co-maintaining this library and making releases? I'm no longer using it so only trying to help. @afeld @dks17 (current maintainers) any objections?

@dblock, yes I'm interested 👍🏼

Nothing in the way - @rsosag and @randikabanura - are you interested in co-maintaining this library and making releases? I'm no longer using it so only trying to help. @afeld @dks17 (current maintainers) any objections?

@dblock, I am interested as well

I've invited you both here, accept at https://github.com/mongoid/mongoid-locker/invitations
Please email me your rubygems usernames to dblock at dblock dot org so I can add you to make a release!

I released 2.1.0.


FirebaseInAppMessagingSwift: explicitly import UIKit

Fixes the failure from https://github.com/firebase/firebase-ios-sdk/issues/8471#issuecomment-893449537.

I also noticed that UIKit framework is not declared as a dependency in FirebaseInAppMessaging.podspec and FirebaseInAppMessagingSwift. Do you know a reason for that?


v1.1.0

What's Changed

Added workflow to auto publish executable - Commit 6a2191e
Migrated from ts-loader to swc-loader - Commit 3535e84
Migrated from ts-jest to swc/jest - Commit 556b559

LGTM


Do not use inline-scripts in altair-static

Hi,
I'm not sure how you test altair-static and the middlewares but I guess that should work. I'm not sure how the koa middleware works, so I didn't touch it. Feel free to either merge this, or copy the code. If you want changes I can of course work them in as well.
Fixes
Having to allow inline scripts in CSP
Checks

[x] Ran npm run test-build

Changes proposed in this pull request:

Removes inline script from index.html to allow stricter Content-Security-Policies.

Hey @aeb-sia, thanks for this. This indeed looks like a better solution. I would suggest making the renderAltairOptions an optional functionality, and having the default work with inline scripts (perhaps with an extra config option to setInitialOptionsInline to true by default, then anyone can set it to false).
There could also be some other CSP/security-related changes that can be made, and enabled behind a useCSP config option (or something like that) as well, which would automatically set the setInitialOptionsInline to false and other security concerns as well.

I'd consider it a sane default to not inline the options. It does cost another request, but I assume the middleware is mainly relevant for hosting anyway. There you'd want to have CSP. During development the extra request matters even less.
Also I'm not sure about using two options for that. I can't think of a usecase where you'd only set one but not the other.
Do you want me to do the requested changes?

I'd consider it a sane default to not inline the options.

While I don't disagree with this, it would be a breaking change if this is merged. Consider a use case where I am using altair-static for a certain implementation and I expect the app to be rendered given the current structure, not knowing that I also need to provide a route for initial_options.js. It would cause a regression bug. Rather, the alternative should be a deprecation warning displayed if the setInitialOptionsInline option isn't set, informing the user that the option should always be set, since the default option would change in a future version.

Also I'm not sure about using two options for that. I can't think of a usecase where you'd only set one but not the other.

What I meant about the CSP options was; currently you highlighted the inline script as not recommended for CSP. Assuming there are other things that are not recommended security-wise, or could be made stricter, those would probably be identified at some point as well, and an option would be provided to enable or disable them (just like the setInitialOptionsInline for this one). It would make sense to have one option that is set, that would implicitly set those options, rather than having to set each of the options explicitly.
Similar to how you have a strict mode in programming languages like JavaScript, and how electron sets allowRunningInsecureContent and disables the same-origin policy when you set webSecurity to false
But that was just a thought, it still needs to be thought through and discussed further.

Done. I converted to a default false option because it's easier to implement and read


However, this package itself specifies a main module field that could not be resolved

In package.json
I have added :
"@stevenmasini/react-native-fast-image": "https://github.com/anchalarora/react-native-fast-image.git"
But In get following error
Error: While trying to resolve module @stevenmasini/react-native-fast-image from file /Users/ancarora/Documents/myrepo/packages/mobileapp/src/components/features/shopByProfile/PLP/TopMatchingProds.jsx, the package<EMAIL_ADDRESS>was successfully found. However, this package itself specifies a main module field that could not be resolved<EMAIL_ADDRESS>Indeed, none of these files exist:
Can anyone please help me to resolve this issue.

Into your package.json need to add "prepare": "npm run build", into scripts object.

Hi , try to delete node_modules folder and than run npm install.

@vasylnahuliak    I tried to do as you said, but I got an error

how to fix it?

@vasylnahuliak
in order for the build command to work, you need to write it. But what should I write in it?

in order for the build command to work, you need to write it. But what should I write in it?

You need to add this line into your fork (not in your project)

@vasylnahuliak
I realized that the problem is that the package is not assembled.
Here's what I decided to do:

I made a fork from the plugin I need
made changes to it
npm run build
How to upload the now assembled package to github so that it is installed from there as a normal package?  so that it doesn't need to be collected after cloning??     After all, after the rpm run build command, the guide does not see any files to download.   Why?   How to pour an already assembled package into the github?

4.

are this fix the bug ?

@Quintis1212    Yes, @vasylnahuliak  I suggested what should be done and it worked.  But in my case, this did not help because in order for everything to work, the module needs to be assembled BEFORE filling in github and not after...

Any solution to this? Having a similar issue using the fabric fork.

@tomgreco
the problem turned out to be something else.  I just had to choose another repository for pharma. Here's what I got
https://github.com/valery-lavrik/react-native-fast-image


Fix typos and improve consistency in expressions and patterns documentation

This pull request addresses minor typos and grammar improvements in the following documentation files:

expressions.md

Corrected "left hand side" to "left-hand side" for proper hyphenation.

patterns.md

Fixed the phrase "left hand sides of let statements" to "left-hand sides of let statements" to maintain consistency with hyphenation rules.

Summary of Changes

Minor typo fixes and grammar adjustments to ensure consistent usage of compound adjectives.
These changes aim to improve the clarity and professionalism of the documentation.

Commit Summary

expressions.md: Fixed "left hand side" → "left-hand side".
patterns.md: Fixed "left hand sides of let statements" → "left-hand sides of let statements".

Thanks, but I don't think these are needed.


Testing PR for Jenkins on HTTPS

retest this please

retest this please

retest this please

retest this please

retest this please


az vm: 'repair' is not in the 'az vm' command group

When executing this az vm repair command getting error as below
Executed command: az vm repair create -g TestAz -n TestVM
Error: az vm: 'repair' is not in the 'az vm' command group. See 'az vm --help'. If the command is from an extension, please make sure the corresponding extension is installed. To learn more about extensions, please visit https://docs.microsoft.com/en-us/cli/azure/azure-cli-extensions-overview
Can you add this command to the latest module/version to defaults?

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

ID: a0c5cd11-36e0-b233-4f0c-3d432a9925a1
Version Independent ID: 99b6e064-4f75-9cce-b6e0-0ad1943552b9
Content: az vm repair
Content Source: latest/docs-ref-autogen/ext/vm-repair/vm/repair.yml
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

hi @qwordy could you pls help to have a look?

Run this command.
az extension add -n vm-repair

Adding it to azure cli main repo depends on multiple factors including the usage data.
@fengzhou-msft Could you share your plan about this issue? A more helpful message? Install it automatically when invoking?

Yes, only after adding this extension we are able to run the az vm repair command.
This is most useful command while troubleshooting issues on VMs when there is need to create VMs and attaching disks
Installing command when invoked will be helpful if this is not added in module by default or adding the command "az extension add -n vm-repair" to the document https://docs.microsoft.com/en-us/cli/azure/ext/vm-repair/vm/repair?view=azure-cli-latest will helpful.

@fengzhou-msft , could you provide update?

@vamsivellanki we are developing a feature to dynamically install extensions for the command you run: https://github.com/Azure/azure-cli/pull/14478 ETA is to release on August 4th.

hi @vamsivellanki the dynamic extension installation feature is released already. here's the guideline of how to enable it: https://docs.microsoft.com/en-us/cli/azure/azure-cli-extensions-overview?view=azure-cli-latest#install-extensions-automatically. will close the issue for now. Feel free to create new issue if any other ask. thanks.


Fix egregiously silly XML typos

@bbqsrc : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@lastnameholiu : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Thanks for your contribution, I've merged your changes and they should be live soon.


Unable to build mxnet with OpenCV4 on Raspberry Pi 3B

I am trying to build mxnet with OpenCV 4. Additionally, I am trying to use the OpenCV 4 static library files.
On my Raspberry Pi, I have the appropriate OpenCV files in /usr/local/lib :
/usr/local/lib/cmake/opencv4
/usr/local/lib/cmake/opencv4/OpenCVConfig.cmake
/usr/local/lib/cmake/opencv4/OpenCVModules-release.cmake
/usr/local/lib/cmake/opencv4/OpenCVConfig-version.cmake
/usr/local/lib/cmake/opencv4/OpenCVModules.cmake
/usr/local/lib/libopencv_gapi.a
/usr/local/lib/libopencv_features2d.a
/usr/local/lib/libopencv_objdetect.a
/usr/local/lib/libopencv_photo.a
/usr/local/lib/libopencv_video.a
/usr/local/lib/libopencv_flann.a
/usr/local/lib/libopencv_calib3d.a
/usr/local/lib/libopencv_imgproc.a
/usr/local/lib/opencv4
/usr/local/lib/opencv4/3rdparty
/usr/local/lib/opencv4/3rdparty/libquirc.a
/usr/local/lib/opencv4/3rdparty/libade.a
/usr/local/lib/opencv4/3rdparty/liblibwebp.a
/usr/local/lib/opencv4/3rdparty/libtegra_hal.a
/usr/local/lib/opencv4/3rdparty/liblibprotobuf.a
/usr/local/lib/opencv4/3rdparty/libIlmImf.a
/usr/local/lib/libopencv_stitching.a
/usr/local/lib/libopencv_videoio.a
/usr/local/lib/libopencv_dnn.a
/usr/local/lib/libopencv_core.a
/usr/local/lib/libopencv_ml.a
/usr/local/lib/libopencv_highgui.a
/usr/local/lib/libopencv_imgcodecs.a

as well as the required include files in /usr/local/include/opencv4.
To built mxnet, I am using the following version of gcc: gcc (Raspbian 4.8.5-4) 4.8.5
I first run the following commands:
sudo apt-get -y install ninja-build \
liblapack* \
libblas* \
libopenblas* \
&& cd ~ \
&& git clone https://github.com/apache/incubator-mxnet.git --recursive \
&& cd incubator-mxnet

Note that I do not install libopencv* which is shown in the guide here as explicitly want to use opencv 4 (and the command libopencv* installs opencv 2).
Finally, I run the following command:
cd ~/incubator-mxnet \
&& mkdir -p build \
&& cd build \
&& cmake \
		-DUSE_CPP_PACKAGE=1 \
        -DUSE_SSE=OFF \
        -DUSE_CUDA=OFF \
        -DUSE_OPENCV=ON \
        -DUSE_OPENMP=ON \
        -DUSE_MKL_IF_AVAILABLE=OFF \
        -DUSE_SIGNAL_HANDLER=ON \
        -DCMAKE_BUILD_TYPE=Release \
        -GNinja .. \
&& ninja -j1

The cmake command outputs the following, indicating that opencv 4 was indeed found:
-- Found OpenCV: /usr/local (found version "4.0.0") found components:  core highgui imgproc imgcodecs
-- OpenCV 4.0.0 found (/usr/local/lib/cmake/opencv4)
--  OpenCV_LIBS=opencv_core;opencv_highgui;opencv_imgproc;opencv_imgcodecs

When building, I get the following error:
[252/296] Linking CXX executable im2rec
FAILED: im2rec
: && /usr/bin/c++   -Wall -Wno-unknown-pragmas -Wno-sign-compare -O3 -std=c++11 -fopenmp -std=c++0x -O3 -DNDEBUG   CMakeFiles/im2rec.dir/tools/im2rec.cc.o  -o im2rec  -rdynamic -Wl,--whole-archive libmxnet.a -Wl,--no-whole-archive -lopenblas -lrt /usr/local/lib/libopencv_core.a /usr/local/lib/libopencv_highgui.a /usr/local/lib/libopencv_imgproc.a /usr/local/lib/libopencv_imgcodecs.a -llapack /usr/local/lib/libopencv_core.a /usr/local/lib/libopencv_highgui.a /usr/local/lib/libopencv_imgproc.a /usr/local/lib/libopencv_imgcodecs.a 3rdparty/dmlc-core/libdmlc.a /usr/local/lib/libopencv_videoio.a /usr/local/lib/libopencv_imgcodecs.a /usr/local/lib/libopencv_imgproc.a /usr/local/lib/libopencv_core.a /usr/local/lib/opencv4/3rdparty/liblibwebp.a -ljpeg -lpng -ltiff -ljasper -ljpeg -lpng -ltiff -ljasper /usr/local/lib/opencv4/3rdparty/libIlmImf.a -lz -ldl -lm -lpthread /usr/local/lib/opencv4/3rdparty/libtegra_hal.a -lavcodec -lavformat -lavutil -lswscale -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lgthread-2.0 -lrt && :
CMakeFiles/im2rec.dir/tools/im2rec.cc.o: In function `main':
im2rec.cc:(.text.startup+0x1c0c): undefined reference to `cv::imencode(std::string const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)'
libmxnet.a(image_io.cc.o): In function `cv::Mat::Mat(int, int, int, void*, unsigned int) [clone .constprop.758]':
image_io.cc:(.text+0x104): undefined reference to `cv::error(int, std::string const&, char const*, char const*, int)'
libmxnet.a(iter_image_det_recordio.cc.o): In function `mxnet::io::ImageDetRecordIOParser<float>::ParseNext(std::vector<mxnet::io::InstVector<float>, std::allocator<mxnet::io::InstVector<float> > >*)::{lambda()#1}::operator()() const':
iter_image_det_recordio.cc:(.text._ZZN5mxnet2io22ImageDetRecordIOParserIfE9ParseNextEPSt6vectorINS0_10InstVectorIfEESaIS5_EEENKUlvE_clEv[_ZZN5mxnet2io22ImageDetRecordIOParserIfE9ParseNextEPSt6vectorINS0_10InstVectorIfEESaIS5_EEENKUlvE_clEv]+0x1254): undefined reference to `cv::error(int, std::string const&, char const*, char const*, int)'
libmxnet.a(iter_image_recordio.cc.o): In function `mxnet::io::ImageRecordIOParser<float>::ParseNext(std::vector<mxnet::io::InstVector<float>, std::allocator<mxnet::io::InstVector<float> > >*) [clone ._omp_fn.23]':
iter_image_recordio.cc:(.text+0x4b24): undefined reference to `cv::error(int, std::string const&, char const*, char const*, int)'
libmxnet.a(iter_image_recordio.cc.o): In function `mxnet::io::ImageRecordIOParser<unsigned char>::ParseNext(std::vector<mxnet::io::InstVector<unsigned char>, std::allocator<mxnet::io::InstVector<unsigned char> > >*) [clone ._omp_fn.20]':
iter_image_recordio.cc:(.text+0x5928): undefined reference to `cv::error(int, std::string const&, char const*, char const*, int)'
libmxnet.a(iter_image_recordio_2.cc.o): In function `mxnet::io::ImageRecordIOParser2<float>::ParseChunk(float*, float*, unsigned int, dmlc::InputSplit::Blob*)::{lambda()#1}::operator()() const':
iter_image_recordio_2.cc:(.text._ZZN5mxnet2io20ImageRecordIOParser2IfE10ParseChunkEPfS3_jPN4dmlc10InputSplit4BlobEENKUlvE_clEv[_ZZN5mxnet2io20ImageRecordIOParser2IfE10ParseChunkEPfS3_jPN4dmlc10InputSplit4BlobEENKUlvE_clEv]+0xc58): undefined reference to `cv::error(int, std::string const&, char const*, char const*, int)'
libmxnet.a(iter_image_recordio_2.cc.o):iter_image_recordio_2.cc:(.text._ZZN5mxnet2io20ImageRecordIOParser2IaE10ParseChunkEPaPfjPN4dmlc10InputSplit4BlobEENKUlvE_clEv[_ZZN5mxnet2io20ImageRecordIOParser2IaE10ParseChunkEPaPfjPN4dmlc10InputSplit4BlobEENKUlvE_clEv]+0xc58): more undefined references to `cv::error(int, std::string const&, char const*, char const*, int)' follow
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

My main reason for wanting to use opencv 4 when building mxnet is that in my project where I use mxnet I am using opencv 4. When using the mxnet lib which is built with opencv 2, I get a  Using GTK+ 2.x and GTK+ 3 in the same process is not supported error as it looks like the opencv2 used by mxnet is using gtk2 while opencv4 is using gtk3

@mxnet-label-bot add [question, build]

Hi @cyrusbehr some suggestions:
Can you show the output for pkg-config --libs opencv  ?  are you compiling in the PI?
Please build with ninja -v to see linking flags.
Try to locate cv::error symbol in one of the opencv libraries and see if you are linking with it.

Hi @larroy, yes I am compiling on the PI.
Here is teh result of pkg-config --libs opencv
/usr/lib/arm-linux-gnueabihf/libopencv_calib3d.so -lopencv_calib3d /usr/lib/arm-linux-gnueabihf/libopencv_contrib.so -lopencv_contrib /usr/lib/arm-linux-gnueabihf/libopencv_core.so -lopencv_core /usr/lib/arm-linux-gnueabihf/libopencv_features2d.so -lopencv_features2d /usr/lib/arm-linux-gnueabihf/libopencv_flann.so -lopencv_flann /usr/lib/arm-linux-gnueabihf/libopencv_gpu.so -lopencv_gpu /usr/lib/arm-linux-gnueabihf/libopencv_highgui.so -lopencv_highgui /usr/lib/arm-linux-gnueabihf/libopencv_imgproc.so -lopencv_imgproc /usr/lib/arm-linux-gnueabihf/libopencv_legacy.so -lopencv_legacy /usr/lib/arm-linux-gnueabihf/libopencv_ml.so -lopencv_ml /usr/lib/arm-linux-gnueabihf/libopencv_objdetect.so -lopencv_objdetect /usr/lib/arm-linux-gnueabihf/libopencv_ocl.so -lopencv_ocl /usr/lib/arm-linux-gnueabihf/libopencv_photo.so -lopencv_photo /usr/lib/arm-linux-gnueabihf/libopencv_stitching.so -lopencv_stitching /usr/lib/arm-linux-gnueabihf/libopencv_superres.so -lopencv_superres /usr/lib/arm-linux-gnueabihf/libopencv_ts.so -lopencv_ts /usr/lib/arm-linux-gnueabihf/libopencv_video.so -lopencv_video /usr/lib/arm-linux-gnueabihf/libopencv_videostab.so -lopencv_videostab

Try to locate cv::error symbol in one of the opencv libraries and see if you are linking with it.

Can you please elaborate more on how to do this?

with the verbose flag enabled:
[14/42] cd /home/pi/Cyrus/mxnet-static/incubator-mxnet/cpp-package/scripts && echo Running:\ OpWrapperGenerator.py && python OpWrapperGenerator.py /home/pi/Cyrus/mxnet-static/incubator-mxnet/build/libmxnet.so
FAILED: cpp-package/CMakeFiles/cpp_package_op_h ../cpp-package/include/mxnet-cpp/op.h cpp-package/MAIN_DEPENDENCY cpp-package/mxnet
cd /home/pi/Cyrus/mxnet-static/incubator-mxnet/cpp-package/scripts && echo Running:\ OpWrapperGenerator.py && python OpWrapperGenerator.py /home/pi/Cyrus/mxnet-static/incubator-mxnet/build/libmxnet.so
Running: OpWrapperGenerator.py
Traceback (most recent call last):
  File "OpWrapperGenerator.py", line 432, in <module>
    raise(e)
OSError: /home/pi/Cyrus/mxnet-static/incubator-mxnet/build/libmxnet.so: undefined symbol: _ZN2cv5errorEiRKSsPKcS3_i
[15/42] : && /usr/bin/c++   -Wall -Wno-unknown-pragmas -Wno-sign-compare -O3 -std=c++11 -fopenmp -std=c++0x -O3 -DNDEBUG   CMakeFiles/im2rec.dir/tools/im2rec.cc.o  -o im2rec  -rdynamic -Wl,--whole-archive libmxnet.a -Wl,--no-whole-archive -lopenblas -lrt /usr/local/lib/libopencv_core.a /usr/local/lib/libopencv_highgui.a /usr/local/lib/libopencv_imgproc.a /usr/local/lib/libopencv_imgcodecs.a -llapack /usr/local/lib/libopencv_core.a /usr/local/lib/libopencv_highgui.a /usr/local/lib/libopencv_imgproc.a /usr/local/lib/libopencv_imgcodecs.a 3rdparty/dmlc-core/libdmlc.a /usr/local/lib/libopencv_videoio.a /usr/local/lib/libopencv_imgcodecs.a /usr/local/lib/libopencv_imgproc.a /usr/local/lib/libopencv_core.a /usr/local/lib/opencv4/3rdparty/liblibwebp.a -ljpeg -lpng -ltiff -ljasper -ljpeg -lpng -ltiff -ljasper /usr/local/lib/opencv4/3rdparty/libIlmImf.a -lz -ldl -lm -lpthread /usr/local/lib/opencv4/3rdparty/libtegra_hal.a -lavcodec -lavformat -lavutil -lswscale -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lgthread-2.0 -lrt && :
FAILED: im2rec
: && /usr/bin/c++   -Wall -Wno-unknown-pragmas -Wno-sign-compare -O3 -std=c++11 -fopenmp -std=c++0x -O3 -DNDEBUG   CMakeFiles/im2rec.dir/tools/im2rec.cc.o  -o im2rec  -rdynamic -Wl,--whole-archive libmxnet.a -Wl,--no-whole-archive -lopenblas -lrt /usr/local/lib/libopencv_core.a /usr/local/lib/libopencv_highgui.a /usr/local/lib/libopencv_imgproc.a /usr/local/lib/libopencv_imgcodecs.a -llapack /usr/local/lib/libopencv_core.a /usr/local/lib/libopencv_highgui.a /usr/local/lib/libopencv_imgproc.a /usr/local/lib/libopencv_imgcodecs.a 3rdparty/dmlc-core/libdmlc.a /usr/local/lib/libopencv_videoio.a /usr/local/lib/libopencv_imgcodecs.a /usr/local/lib/libopencv_imgproc.a /usr/local/lib/libopencv_core.a /usr/local/lib/opencv4/3rdparty/liblibwebp.a -ljpeg -lpng -ltiff -ljasper -ljpeg -lpng -ltiff -ljasper /usr/local/lib/opencv4/3rdparty/libIlmImf.a -lz -ldl -lm -lpthread /usr/local/lib/opencv4/3rdparty/libtegra_hal.a -lavcodec -lavformat -lavutil -lswscale -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lgthread-2.0 -lrt && :
CMakeFiles/im2rec.dir/tools/im2rec.cc.o: In function `main':
im2rec.cc:(.text.startup+0x1c0c): undefined reference to `cv::imencode(std::string const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)'
libmxnet.a(image_io.cc.o): In function `cv::Mat::Mat(int, int, int, void*, unsigned int) [clone .constprop.758]':
image_io.cc:(.text+0x104): undefined reference to `cv::error(int, std::string const&, char const*, char const*, int)'
libmxnet.a(iter_image_det_recordio.cc.o): In function `mxnet::io::ImageDetRecordIOParser<float>::ParseNext(std::vector<mxnet::io::InstVector<float>, std::allocator<mxnet::io::InstVector<float> > >*)::{lambda()#1}::operator()() const':
iter_image_det_recordio.cc:(.text._ZZN5mxnet2io22ImageDetRecordIOParserIfE9ParseNextEPSt6vectorINS0_10InstVectorIfEESaIS5_EEENKUlvE_clEv[_ZZN5mxnet2io22ImageDetRecordIOParserIfE9ParseNextEPSt6vectorINS0_10InstVectorIfEESaIS5_EEENKUlvE_clEv]+0x1254): undefined reference to `cv::error(int, std::string const&, char const*, char const*, int)'
libmxnet.a(iter_image_recordio.cc.o): In function `mxnet::io::ImageRecordIOParser<float>::ParseNext(std::vector<mxnet::io::InstVector<float>, std::allocator<mxnet::io::InstVector<float> > >*) [clone ._omp_fn.23]':
iter_image_recordio.cc:(.text+0x4b24): undefined reference to `cv::error(int, std::string const&, char const*, char const*, int)'
libmxnet.a(iter_image_recordio.cc.o): In function `mxnet::io::ImageRecordIOParser<unsigned char>::ParseNext(std::vector<mxnet::io::InstVector<unsigned char>, std::allocator<mxnet::io::InstVector<unsigned char> > >*) [clone ._omp_fn.20]':
iter_image_recordio.cc:(.text+0x5928): undefined reference to `cv::error(int, std::string const&, char const*, char const*, int)'
libmxnet.a(iter_image_recordio_2.cc.o): In function `mxnet::io::ImageRecordIOParser2<float>::ParseChunk(float*, float*, unsigned int, dmlc::InputSplit::Blob*)::{lambda()#1}::operator()() const':
iter_image_recordio_2.cc:(.text._ZZN5mxnet2io20ImageRecordIOParser2IfE10ParseChunkEPfS3_jPN4dmlc10InputSplit4BlobEENKUlvE_clEv[_ZZN5mxnet2io20ImageRecordIOParser2IfE10ParseChunkEPfS3_jPN4dmlc10InputSplit4BlobEENKUlvE_clEv]+0xc58): undefined reference to `cv::error(int, std::string const&, char const*, char const*, int)'
libmxnet.a(iter_image_recordio_2.cc.o):iter_image_recordio_2.cc:(.text._ZZN5mxnet2io20ImageRecordIOParser2IaE10ParseChunkEPaPfjPN4dmlc10InputSplit4BlobEENKUlvE_clEv[_ZZN5mxnet2io20ImageRecordIOParser2IaE10ParseChunkEPaPfjPN4dmlc10InputSplit4BlobEENKUlvE_clEv]+0xc58): more undefined references to `cv::error(int, std::string const&, char const*, char const*, int)' follow
collect2: error: ld returned 1 exit status
[16/42] /usr/bin/c++   -DDMLC_USE_CXX11 -DDMLC_USE_CXX11=1 -DMSHADOW_INT64_TENSOR_SIZE=0 -DMSHADOW_IN_CXX11 -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_CUDA=0 -DMSHADOW_USE_F16C=0 -DMSHADOW_USE_MKL=0 -DMSHADOW_USE_SSE=0 -DMXNET_USE_BLAS_OPEN=1 -DMXNET_USE_LAPACK=1 -DMXNET_USE_NCCL=0 -DMXNET_USE_OPENCV=1 -DMXNET_USE_OPENMP=1 -DMXNET_USE_OPERATOR_TUNING=1 -DNDEBUG=1 -I../include -I../src -I../3rdparty/mshadow -I../3rdparty/nvidia_cub -I../3rdparty/tvm/nnvm/include -I../3rdparty/tvm/include -I../3rdparty/dmlc-core/include -I../3rdparty/dlpack/include -isystem /usr/local/include/opencv4 -isystem ../3rdparty/googletest/googletest/include -I../tests/cpp/include -isystem ../3rdparty/googletest/googletest -Wall -Wno-unknown-pragmas -Wno-sign-compare -O3 -std=c++11 -fopenmp -std=c++0x -O3 -DNDEBUG -fPIE -MD -MT tests/CMakeFiles/mxnet_unit_tests.dir/cpp/engine/threaded_engine_test.cc.o -MF tests/CMakeFiles/mxnet_unit_tests.dir/cpp/engine/threaded_engine_test.cc.o.d -o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/engine/threaded_engine_test.cc.o -c /home/pi/Cyrus/mxnet-static/incubator-mxnet/tests/cpp/engine/threaded_engine_test.cc
[17/42] /usr/bin/c++   -DDMLC_USE_CXX11 -DDMLC_USE_CXX11=1 -DMSHADOW_INT64_TENSOR_SIZE=0 -DMSHADOW_IN_CXX11 -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_CUDA=0 -DMSHADOW_USE_F16C=0 -DMSHADOW_USE_MKL=0 -DMSHADOW_USE_SSE=0 -DMXNET_USE_BLAS_OPEN=1 -DMXNET_USE_LAPACK=1 -DMXNET_USE_NCCL=0 -DMXNET_USE_OPENCV=1 -DMXNET_USE_OPENMP=1 -DMXNET_USE_OPERATOR_TUNING=1 -DNDEBUG=1 -I../include -I../src -I../3rdparty/mshadow -I../3rdparty/nvidia_cub -I../3rdparty/tvm/nnvm/include -I../3rdparty/tvm/include -I../3rdparty/dmlc-core/include -I../3rdparty/dlpack/include -isystem /usr/local/include/opencv4 -isystem ../3rdparty/googletest/googletest/include -I../tests/cpp/include -isystem ../3rdparty/googletest/googletest -Wall -Wno-unknown-pragmas -Wno-sign-compare -O3 -std=c++11 -fopenmp -std=c++0x -O3 -DNDEBUG -fPIE -MD -MT tests/CMakeFiles/mxnet_unit_tests.dir/cpp/operator/tune/operator_tune_test.cc.o -MF tests/CMakeFiles/mxnet_unit_tests.dir/cpp/operator/tune/operator_tune_test.cc.o.d -o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/operator/tune/operator_tune_test.cc.o -c /home/pi/Cyrus/mxnet-static/incubator-mxnet/tests/cpp/operator/tune/operator_tune_test.cc
[18/42] /usr/bin/c++   -DDMLC_USE_CXX11 -DDMLC_USE_CXX11=1 -DMSHADOW_INT64_TENSOR_SIZE=0 -DMSHADOW_IN_CXX11 -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_CUDA=0 -DMSHADOW_USE_F16C=0 -DMSHADOW_USE_MKL=0 -DMSHADOW_USE_SSE=0 -DMXNET_USE_BLAS_OPEN=1 -DMXNET_USE_LAPACK=1 -DMXNET_USE_NCCL=0 -DMXNET_USE_OPENCV=1 -DMXNET_USE_OPENMP=1 -DMXNET_USE_OPERATOR_TUNING=1 -DNDEBUG=1 -I../include -I../src -I../3rdparty/mshadow -I../3rdparty/nvidia_cub -I../3rdparty/tvm/nnvm/include -I../3rdparty/tvm/include -I../3rdparty/dmlc-core/include -I../3rdparty/dlpack/include -isystem /usr/local/include/opencv4 -isystem ../3rdparty/googletest/googletest/include -I../tests/cpp/include -isystem ../3rdparty/googletest/googletest -Wall -Wno-unknown-pragmas -Wno-sign-compare -O3 -std=c++11 -fopenmp -std=c++0x -O3 -DNDEBUG -fPIE -MD -MT tests/CMakeFiles/mxnet_unit_tests.dir/cpp/operator/activation_perf.cc.o -MF tests/CMakeFiles/mxnet_unit_tests.dir/cpp/operator/activation_perf.cc.o.d -o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/operator/activation_perf.cc.o -c /home/pi/Cyrus/mxnet-static/incubator-mxnet/tests/cpp/operator/activation_perf.cc
[19/42] /usr/bin/c++   -DDMLC_USE_CXX11 -DDMLC_USE_CXX11=1 -DMSHADOW_INT64_TENSOR_SIZE=0 -DMSHADOW_IN_CXX11 -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_CUDA=0 -DMSHADOW_USE_F16C=0 -DMSHADOW_USE_MKL=0 -DMSHADOW_USE_SSE=0 -DMXNET_USE_BLAS_OPEN=1 -DMXNET_USE_LAPACK=1 -DMXNET_USE_NCCL=0 -DMXNET_USE_OPENCV=1 -DMXNET_USE_OPENMP=1 -DMXNET_USE_OPERATOR_TUNING=1 -DNDEBUG=1 -I../include -I../src -I../3rdparty/mshadow -I../3rdparty/nvidia_cub -I../3rdparty/tvm/nnvm/include -I../3rdparty/tvm/include -I../3rdparty/dmlc-core/include -I../3rdparty/dlpack/include -isystem /usr/local/include/opencv4 -isystem ../3rdparty/googletest/googletest/include -I../tests/cpp/include -isystem ../3rdparty/googletest/googletest -Wall -Wno-unknown-pragmas -Wno-sign-compare -O3 -std=c++11 -fopenmp -std=c++0x -O3 -DNDEBUG -fPIE -MD -MT tests/CMakeFiles/mxnet_unit_tests.dir/cpp/operator/batchnorm_test.cc.o -MF tests/CMakeFiles/mxnet_unit_tests.dir/cpp/operator/batchnorm_test.cc.o.d -o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/operator/batchnorm_test.cc.o -c /home/pi/Cyrus/mxnet-static/incubator-mxnet/tests/cpp/operator/batchnorm_test.cc
ninja: build stopped: subcommand failed.

When I have this issue, usually I try to locate the library which has this symbol. You can use something like "nm" to list the library symbols with c++filt together or elfdump or similar. Once you have located which library has this symbol, you make sure you are linking with that. I assume that you are using the opencv headers of your new version and not older ones...
You can copy paste the linking command that fails and add required -l libraries until it links, then fix the build file.

You can also have a look at our docker files for cross compiling. I would suggest that you can contribute to them if you want, it also compiles much faster than on the PI...    check the ci/build.py  you can do ci/build.py -p arm[xxx]  to cross compile for the PI.

@larroy do the docker files built Mxnet with c++ support USE_CPP_PACKAGE? Or does it only support python right now?

I managed to solve the problem.
It seems that the version of OpenCV that mxnet was trying to use had been compiled with gcc-6.XXX while I was trying to compile mxnet with gcc-4.9 (as specified by the documentation).
Once I recompiled OpenCV with gcc-4.9, I was able to build mxnet successfully

@cyrusbehr Hi, I'm in a similar situation and did what you said but still ended up with errors, If you remember can you tell me how you did it exactly?

I succeed to compile mxnet with g++-7
g++-8 and above using too much memory.
Best

The gcc memory leak is tracked in https://github.com/apache/incubator-mxnet/issues/18501
It would be helpful to find a minimal reproducing example and report the bug upstream so that it can be fixed by the gcc developers. Further it'd be helpful to update the indexing_op file in MXNet to workaround the gcc memory leak.

dont remember but raspi4 with latest raspian and compile mxnet with gcc8 eventually gives error.. memory not enough . using too much memory


Actualize Oracle SQL generator and Oracle datatypes

Original oracle SQL generation and data types support was non-functional (see #196).
Here are fixes tested on Oracle 11g.
Supports:

quote identifiers with " if lower-case letters are present (such identifiers are treated as case-sensitive by Oracle)
fully upper-cased identifiers stay unquoted (and thus are treated as case-insensitive by Oracle)
generation of sequences for auto-incremented simple PK columns
generation of triggers which conditionally fill in PK columns from sequences if they are left NULL on insert
generation of commented block of DROP statements in the beginning - useful when re-creating DB schema
CREATE TABLE and COMMENT statements are laid out in padded columns - for better clarity
generation of dummy constraint names for unique indexes
generation of FK constraint names based on from- and to- table names concatenation (fitted into the limit of 30 chars per identifier that Oracle imposes)

Does not support:

several auto-incremented columns per one table (not tested, may not work as desired)
FKs on compound keys (seems there are several  nodes in the input DB schema XML per such FKs: one per every column of compound key - this is pretty hard to merge into single ALTER TABLE statement with XSLT v1.0)
auto-incremented columns feature of Oracle 12c

This is great, thanks!


Family View(Parental Control blocked)

Feature Request
System Information
Platform | Ubuntu 18.04.3 LTS
System Type | x86_64
Module | ADSModule
Loaded Plugins | FileManager, EmailSender, WebRequestPlugin, LocalFileBackupPlugin
Application Version | <IP_ADDRESS>
Release Stream | Release
Build Date | 15/01/2020 13:21
Issue
If you have Family View enabled then steamcmd will ask for it and block any downloads from happening if it isn't inputted.
[02:09:31] [steamcmdplugin:dane Debug] : Waiting for user info...OK [02:09:35] [steamcmdplugin:dane Debug] : userfriends.cpp (1159) : Assertion Failed: m_ePersonaStateDesired == k_EPersonaStateOffline [02:09:37] [steamcmdplugin:dane Debug] : ERROR! Failed to install app '233780' (Parental control blocked) [02:09:37] [steamcmdplugin:dane Debug] : CWorkThreadPool::~CWorkThreadPool: work processing queue not empty: 2 items discarded. [02:09:38] [steamcmdplugin:dane Warning] : 2020/01/25 02:09:38 socat[12293] E waitpid(): child 12294 exited with status 8 [02:09:38] [RunningTasksManager:dane Debug] : Task Updating... (Updating Arma 3) ended: Finished
disabling this feature in steam allows it to download the files once again and continues as normal otherwise it will fail and steamcmd with exit, see it more as a steamcmd issue but didn't know if posting it here would help
Reproduction
go in to steam - Settings - Family - mange family view, enable the features
download a server for an instance then watch the logs and it will get blocked from downloading

Going to 'wontfix' this - having to handle accounts that have parental controls enabled isn't something I think AMP should reasonably be expected to handle.


textarea cannot rendered correctly.

Hi,
I was faced that textarea cannot break line with capturing
hopes give some help
thanks!
Specifications:

html2canvas version tested with:1.0.0-rc.3
Browser & version:latest version
Operating system:win 10

Do you have an example?

Do you have an example?

Just an ordinary textarea that goes wrong.You Can try it.

MacOS 10.14
<EMAIL_ADDRESS>same behaviour as @HelenGiser's.

+1

I was able to reproduce this here
https://jsfiddle.net/a8st153g/
Text that would wrap is placed all on one line and becomes cut off
Using @HelenGiser example with line breaks, it places text all on the same line (as in the screenshot)

same problem.

Same problem

same problem in rc5

I have the same problem with rc5: The text is shown in one single line in the vertical middle of the text field.

Same problem with rc5: The text is shown in one single line in the vertical middle of the text field.

See pull request #2132

As long as this is not merged, a fixed version is available on npm as "@nidi/html2canvas": "1.0.0-rc.8"

As long as this is not merged, a fixed version is available on npm as "@nidi/html2canvas": "1.0.0-rc.8"

it works. thank you

Hello
I have the same issue and I'd like to use this rc8 version in a pure js project asap.
How can I make it?
Thank you for your help

As long as this is not merged, a fixed version is available on npm as "@nidi/html2canvas": "1.0.0-rc.8"

When textarea show muti lines, it will lost '\n', like:

AAAAAA\n
BBBB
finally, it show:

AAAAAAB
BBB

Please let me know how I can get rc8 version? I don't understand where to get - a fixed version is available on npm as "@nidi/html2canvas". I am working on an educational site that students are actually using for remote learning right now and I really need to get textarea working. Thanks for any help!

add "@nidi/html2canvas": "1.0.0-rc.8" to the dependencies in package.json.

I was able to find html2canvas 1.0.0-rc.7 at https://www.npmjs.com/package/@nidi/html2canvas but not rc.8... Am I missing something?

Hey @niklasvh , Any idea of merging #2132 request I see this is major PR for this repo as the existing functionality is broken somewhere and this patch is important  for libraries  which is dependent on this changes
Or  please provide ETA for this changes  to be released
thanks

I tried the rc.7 version today and was unable to save the file. Not sure why. Just got spinning wheel that never completed.

I see rc.8 on npmjs.com and I'm using it in my project, so it really is there :)
For the latest question: What exactly are you trying to do?

I searched npmjs.com for "@nidi/html2canvas": "1.0.0-rc.8" but it tells me 0 packages found so I guess I don't know how to find it...

@wsj195328 here's an example with newlines: http://jsfiddle.net/3knhoL1a/

@sstudebaker just search for @nidi/html2canvas on npmjs.com or add "@nidi/html2canvas": "1.0.0-rc.8" to package.json.

Here is my confusion - when I open the js file it says html2canvas 1.0.0-rc.7. so I guess I have the right one but it is not working for my script.
Save function is on this page: https://piclits.com/piclit/79/
If you create a piclit in freestyle mode and then save under Options (you would need to register) but newlines are not captured. I tried the newer js and it would not save - just kept spinning.
// ON SAVE CREATE IMAGE AND SAVE WORDS
$('.save').on(selectEvents, function() {
var button = $(this);
button.addClass('active');
        if (button.hasClass('active')) {
            disableFridge.addClass('active');
            focus_on_word_edit();
            html2canvas(document.querySelector(".fridge"), {
                onclone: function(document) {
                    document.querySelector(".fridge").style.borderRadius = "0px";
                }
            }).then(canvas => {
                var img = canvas.toDataURL('image/jpeg', 0.6);

                if ( piclitType === '2' ) {
                    var piclitWords = freestyleTextarea.val();
                } else if ( piclitType === '1' ) {
                    var piclitWords = [];
                    var wordCount = $('.fridge-word').length;
                    $('.fridge-word').each(function(){
                        var word = $(this);
                        var variants = [];
                        if ( word.find('.word-variants .variant-selector').length ) {
                            word.find('.word-variants .variant-selector').each(function() {
                                variants.push(
                                    $(this).find('span').text()
                                );
                            });
                        }
                        piclitWords.push({
                            current: word.find('.word-variants .variant-selector:first').find('span').text(),
                            part_of_speech: word.attr('data-partofspeech'),
                            variants: variants,
                            current_variant: word.attr('data-variant'),
                            capitalize: word.attr('data-capitalize'),
                            top: word.css('top'),
                            left: word.css('left')
                        });
                    });
                }

                var data = {
                    'action': 'save_piclit',
                    'img': img,
                    'post_type': ajax_object.post_type,
                    'post_id': ajax_object.post_id,
                    'piclit_type': piclitType,
                    'piclit_words': piclitWords,
                    'piclit_status': piclitStatus,
                    'piclit_id': piclitId
                };
                //console.log(data);
                $.post(ajax_object.ajax_url, data, function(response) {
                    window.location.href = response.data;
                    /*button.removeClass('active');
                    unfocus_edit_done();
                    disableFridge.removeClass('active');*/
                });
            });
        }
    });

The two attached files show the piclit in edit mode and then when saved.

You are right about the version.
I published a new one 1.0.0-rc.11 which should work.

Happy to report that it worked! THANK YOU! On Firefox, Safari and Chrome all latest versions. I am getting a shadow where I believe the text area ends? Maybe I just need to set height and width of the area.

As long as this is not merged, a fixed version is available on npm as "@nidi/html2canvas": "1.0.0-rc.8"

when will this version merge to niklasvh/html2canvas？

@nidi3 Thanks for your support !
I have problem with string not space in Japanese like this image. In color textarea, when input, content auto break line, but on render, it show wrong. I also install version<EMAIL_ADDRESS>but it still error.

replace textarea to container contenteditable!!!

As long as this is not merged, a fixed version is available on npm as "@nidi/html2canvas": "1.0.0-rc.8"

I did not get the fix. I added "@nidi/html2canvas": "1.0.0-rc.8" and "@nidi/html2canvas": "1.0.0-rc.11" in package.json file and run the command 'npm install' and 'npm run build'. Content of generated html2canvas.js exactly same as version 1.0.0-rc.7. Please suggest how to get version 1.0.0-rc.8 or higher.

replace textarea to container contenteditable!!!

Work like a charm! thanks @mamtou ~

replace textarea to container contenteditable!!!

Work like a charm! thanks @mamtou ~

Still not fixed?

is there any update on this issue?

replace textarea to container contenteditable!!!

this works but isn't ideal for virtual DOM libraries like react.
is there another workaround?

You are right about the version. I published a new one 1.0.0-rc.11 which should work.

this also didn't work for me.

Will this ever be merged into the main branch?

@aarenstade My workaround was to create a similarly styled div in its place:
html2Canvas(containerRef.current, {
  onClone: (clonedDocument) => {
    Array.from(clonedDocument.querySelectorAll('textarea')).forEach((textArea) => {
      const div = clonedDocument.createElement('div')
      div.innerText = textArea.value
      div.style.border = '1px solid #9b9b9b'
      div.style.padding = '0 10px'
      textArea.style.display = 'none'
      textArea.parentElement.append(div)
    })
  }
})

An added benefit to this approach is that it also avoids the issue of overflowing content getting cut off

After thinking about the same thing, I came to the following conclusion.
First, convert textarea to text and then capture.
And then convert it back to textarea. :)
html example

script example
function calldiagdesc()
{
var str = document.getElementById("diagdesc").value;
str = str.replace(/(?:\r\n|\r|\n)/g, '');
var val = str;
document.getElementById("diagdescz").innerHTML = " " + val;
}
$(".capture:image").on('click', function(e) {
var con1 = document.getElementById("diagdesc").value;
var str = document.getElementById("diagdesc").value;
str = str.replace(/(?:\r\n|\r|\n)/g, '');
document.getElementById("conclusion").innerHTML = " " + str;
var idval= document.getElementById("currentDate").value + ' ' + document.getElementById("idnumber").value;
html2canvas(e.target.parentElement).then(function(canvas) {
if (navigator.msSaveBlob) {
var blob = canvas.msToBlob();
return navigator.msSaveBlob(blob, 'capture.jpg');
} else {
var el = document.getElementById("target");
el.href = canvas.toDataURL("image/jpeg");
el.download = idval + ' Thyroid SONO result.jpg';
el.click();
}
document.getElementById("conclusion").innerHTML = '' + con1 + '';
});
});
example site
http://www.wishparts.com/thyroid.html

v1.4.1 textarea still not support.
So I recommend to switch to Your text.
I think  is better. No need to adjust height too.

still not support yet in v1.4.1 :<

@chawes13 this worked great!
Only changes I had to make were changing onClone to onclone and making the child a p instead of a div with absolute positioning & top: 0

Would be great to have this added. Curious if this issue might also be connected to:
https://github.com/niklasvh/html2canvas/issues/2166
https://github.com/niklasvh/html2canvas/issues/1595
@chawes13 It seems like you have found a great work around, as mentioned by @florton. Any chance you could comment on how to apply your approach to the first jsfiddle below? I hope that a similar approach may also work for Multi-select in the second js-fiddle below.
TextArea
https://jsfiddle.net/a8st153g/
Multi-select:
https://jsfiddle.net/Ldrq6zxk

@vnijs Here you go:
TextArea
https://jsfiddle.net/0vt7k6yo/2/
The multiselect is a bit different - I think there might be a bug in the cloning process (as pointed out in #2166). I guess you could hack it a bit with the following. I can't say I recommend it though 😅.
https://jsfiddle.net/6zcxdop8/

Thanks @chawes13! This was very helpful. The below seems to work for both #2008 and #2166. The only issue I haven't been able to figure out yet is how to keep the elements in the same order. See the example below where the "Data Filter" is added below the two other textAreas while it is listed first in the actual app. Do you perhaps know of a simple way to keep the elements in the same order?
Normal screenshot:

Screenshot from html2canvas:

function generate_screenshot() {
  html2canvas($("body")[0], {
    onclone: (clonedDocument) => {
      Array.from(clonedDocument.querySelectorAll('textarea')).forEach((textArea) => {
        if (textArea && textArea.value.length > 0) {
          const labelFor = textArea.getAttribute('id')
          const label = clonedDocument.querySelector(`label[for="${labelFor}"]`)
          const div = clonedDocument.createElement('div')
          div.innerText = textArea.value
          div.style.border = '1px solid #d3d3d3'
          div.style.padding = '10px 10px 10px 10px'
          div.style.width = '100%'
          div.style.borderRadius = "5px" // crashes screeshot generation
          div.style.boxSizing = 'border-box';
          div.style.margin = '0';
          div.style.backgroundColor = "white"
          textArea.style.display = 'none'
          textArea.parentElement.append(label, div)
        }
      })

      Array.from(clonedDocument.querySelectorAll('select[multiple]')).forEach((msel) => {
        const multiSelect = document.querySelector("#" + msel.getAttribute("id"));
        if (multiSelect && multiSelect.selectedOptions.length > 1) {
          const clonedMultiSelect = clonedDocument.querySelector("#" + msel.getAttribute("id"));
          const list = clonedDocument.createElement('ul')
          Array.from(multiSelect.selectedOptions).forEach((option) => {
            const item = clonedDocument.createElement('li')
            item.innerHTML = option.value
            item.style = "list-style: none; padding-left: 0.5em"
            item.style.width = '100%'
            list.appendChild(item)
          })
          list.style.border = '1px solid #d3d3d3'
          list.style.padding = '5px 5px 5px 5px'
          list.style.width = '100%'
          list.style.backgroundColor = 'white'
          list.style.borderRadius = "5px"
          clonedMultiSelect.style.display = 'none'
          clonedMultiSelect.parentElement.appendChild(list)
        }
      })
    }
  }).then(canvas => {
    var img = document.createElement("img");
    img.src = canvas.toDataURL("png");
    img.width = parseInt(canvas.style.width);
    img.height = parseInt(canvas.style.height);
    $("#screenshot_preview").empty();
    $("#screenshot_preview").append(img);
  });
}

@vnijs You could wrap each of your text area elements in a containing element or you could use the replaceChild method instead of setting style.display = "none". Here's an example of the latter: https://jsfiddle.net/3sj5w8n7/

Thank you people :D

Use div contenteditable instead of a textarea, works fine with html2canvas
https://stackoverflow.com/a/54566101

Please resolve this issue


Add profile page to show user information

shows username, first name, last name, email, last login and creation date of the current user.

Seems that there is an issue with the alignement
I would go for "created" instead of "create"

The details button, if alone and if we have only one page is maybe not mandatory


[dev_mvp] cannot publish data due to date issues

I successfully redacted data, saved it, loaded in the publishing tool.  When I try and publish, I get an invalid date issue.
It looks like a strange datetime_created value is being sent to the back end:
{"datetime_created":"Fri, 27 Mar 2020 04:32:12 GMT","organization_id":"a88309c2-26cd-4d2b-8923-af0779e423a3","safe_path":{"authority_name":"Fake Organization","concern_points":[{"latitude":12.34,"longitude":12.34,"time":123},{"latitude":12.34,"longitude":12.34,"time":456}],"info_website":"https://www.something.gov/path/to/info/website","publish_date_utc":1584924583},"user_id":"a88309c1-26cd-4d2b-8923-af0779e423a3"}
It looks a lot like hardcoded date above!

this one is caused by this issue on the backend
https://github.com/Path-Check/safeplaces-backend/issues/32

@krishnadurai
Looks like datetime_created being returned is static as well.  JYFI, I use publish_date in the UI so not a high priority fix

@mundanelunacy Path-Check/safeplaces-backend#34 will solve both of these issues.

@mundanelunacy The API documentation uses the variable name publish_date_utc.  Should the documentation be changed?

I've argued the "_utc" has some value to clarify that the times should not be server location dependent without need to reference the SPI spec.
One or the other end of this should change though (i.e. code or spec.).

@zmon
The spec was modified on dev_mvp.  and one of the changes was publish_date_utc →  publish_date
https://github.com/Path-Check/safeplaces-frontend/blob/dev_mvp/Safe-Places-Server.md
@altoplano
Correct.  Previous spec had _utc in the parameter name, but was passing a Unix timestamp integer.  Somewhat confusing, so we aligned to timestamp

@krishnadurai Thanks !
@AdamLeonSmith fix confirmed on staging

I'll agree that saying it is a unix timestamp does imply it is UTC but you have to go read the spec to know that. I might naively expect publish_date to be something like May 3, 2020 and not a timestamp at all (not that adding "_utc" changes it much ;-) )
Perhaps more consequencial: doesn't the name change in the dev_mvp spec means any points of interest published to the old spec will no longer be readable?


Windows 10 Mobile compatibility: it's really exists?

Hi! In Readme you wrote:
"Requires Windows 10 build 15063 or later"
Maybe I don't understand something, but literally in all commits in the source code I didn't see 10.0.15063.0. There is 10.0.16299. Although in AppManifest.xml in the compiled appx bundles ("internals"), the minimum OS version is specified correctly: MinVersion="10.0.15063.0"... What does it mean? Could you please provide at least a couple of photos of UniSky launched on your winphone?
Best,
mediaexplorer
Big Nokia Lumia phones fanboy

Please peep this gist https://gist.github.com/WamWooWam/e72e5137606f7c59ed657db6587cd5e8


Example of 'channels' only applies to insider-fast and insider-slow

Now that mdatp is available as 'prod' the example:

Defender for Endpoint on Linux can be deployed from one of the following channels (denoted below as [channel]): insiders-fast, insiders-slow, or prod. Each of these channels corresponds to a Linux software repository.

is not correct as written. The text only applies to switching between insider-fast and insider-slow.  If you want to use prod, the third choice is the ubuntu version name (not number).  This can be seen by installing mdatp from prod using the standard install of ms packages via apt-add-repository.  The resulting source.list for 'prod' only would be, for 20.04:
https://packages.microsoft.com/config/ubuntu/20.04/prod focal main
not (if substituting the string 'prod' for [channel] per the docs)
https://packages.microsoft.com/config/ubuntu/20.04/prod prod main
As indicated in the docs (which won't work).  As noted in the docs, 'prod' is already in the string

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

ID: c5b7c531-90a1-7f6b-4c1d-0a126cdea398
Version Independent ID: 5a10f1bb-6407-d706-0b79-bf448a8eda9d
Content: Deploy Microsoft Defender for Endpoint on Linux with Ansible
Content Source: microsoft-365/security/defender-endpoint/linux-install-with-ansible.md
Product: m365-security
Technology: mde
GitHub Login: @Dansimp
Microsoft Alias: dansimp

@Dansimp Please help us in resolving this issue. Thanks

To make it easier for you to submit feedback on articles on learn.microsoft.com, we're transitioning our feedback system from GitHub Issues to a new experience.
As part of the transition, this GitHub Issue will be moved to a private repository. We're moving Issues to another repository so we can continue working on Issues that were open at the time of the transition. When this Issue is moved, you'll no longer be able to access it.
If you want to provide additional information before this Issue is moved, please update this Issue before December 15th, 2023.
With the new experience, you no longer need to sign in to GitHub to enter and submit your feedback. Instead, you can choose directly on each article's page whether the article was helpful. Then you can then choose one or more reasons for your feedback and optionally provide additional context before you select Submit.
Here's what the new experience looks like.
Note: The new experience is being rolled out across learn.microsoft.com in phases. If you don't see the new experience on an article, please check back later.
First, select whether the article was helpful:

Then, choose at least one reason for your feedback and optionally provide additional details about your feedback:

Article was helpful
Article was unhelpful

Finally, select Submit and you're done!


Update RuboCop version of issue template when releasing

This PR updates RuboCop version of issue template when releasing.
The following is an example.
% rake cut_release:minor
Changed version from 0.59.2 to 0.60.0.

The difference added is as follows.
% git diff .github/ISSUE_TEMPLATE/bug_report.md
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md
b/.github/ISSUE_TEMPLATE/bug_report.md
index 1bd42396c..de3f7e5f7 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -35,5 +35,5 @@ Include the output of `rubocop -V` or `bundle exec
rubocop -V` if using Bundler.

 $ [bundle exec] rubocop -V
-0.59.2 (using Parser <IP_ADDRESS>, running on ruby 2.5.1 x86_64-linux)
+0.60.0 (using Parser <IP_ADDRESS>, running on ruby 2.5.1 x86_64-linux)

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[ ] Added tests.
[ ] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title
and description in grammatically correct, complete sentences.
[x] Run rake default. It executes all tests and RuboCop for itself, and generates the documentation.

Nice!


TypeError !CompObj is not a function

Getting the above error with the following code:
Excel = require('xlsjs')
try
   workbook = Excel.readFile(uploadPath)
   console.log(workbook)
catch e
   console.log(e)

Also when I try the official demo with the same file, the error pops up in the console.
The file is not corrupted and it happens with all files of the same type.
Any ideas?

Is the file that you're trying to process with SheetsJS open in MS Excel? If so, close the file in Excel and try again. I only get that error if it's already open in Excel and I try doing something to the same excel file in SheetsJS.

You don't say! I will definitely check that later, there is a good chance I had it open when running the process!

Probably should open a new request for an addition to the error message like "TypeError !CompObj is not a function. Is the file open by MS Excel"

Somehow TypeError !CompObj is not a function might also disappear if an Excel file is resaved by LibreOffice (File → Save a copy).
Here's a ZIP attachment containing Santek.xls (which causes such TypeError) and Santek_LO.xls (resaved from LibreOffice, does not cause any errors).
There's also a visible difference in size: Santek.xls is 5939 bytes while Santek_LO.xls is 17920 bytes.
That Santek.xls might serve as a sample for anyone willing to debug such TypeError's original cause.

@JanSchuermannPH @chaostheory @Mithgol thanks for the followup!
This is a pre-BIFF5 XLS file.  The error is coming because of a change in nodejs behavior :/
Long story short, in the actual parse_xlscfb function https://github.com/SheetJS/js-xlsx/blob/master/bits/81_xls.js#L630 the expected input data is either a CFB container or an augmented Buffer.  The code checks if the data is a buffer by searching for the find key:
https://github.com/SheetJS/js-xlsx/blob/master/bits/81_xls.js#L635
As it turns out, node later added Buffer.find:
$ for i in 0.8 0.10 0.12 4. 5. 6. 7.; do sudo n $i; echo $(node --version) $(node -pe 'new Buffer(3).find'); done
v0.8.28 undefined
v0.10.48 undefined
v0.12.18 undefined
v4.7.3 [Function: find]
v5.12.0 [Function: find]
v6.9.5 [Function: find]
v7.5.0 [Function: find]

So the first fix is to change how the data is tested.  There are probably more missing records that need to be supported, but thanks @Mithgol for providing a sample!

@SheetJSDev Would Buffer.isBuffer work on augmented Buffers?

@Mithgol That's one approach, but I'm leaning towards tweaking the CFB parser to add a unique field and check for that.

@chaostheory newer versions of excel are not capable of generating BIFF2-4 files.  They use a newer format (BIFF5 or BIFF8) which is why re-saving the file seems to fix the issue.
@JanSchuermannPH @Mithgol as part of this fix, we also added direct BIFF2 exports and filled some missing record types.  The updated write script generates an xls file compatible with Excel 2.0


startadvertisingwitheirdata from node-eddystone-beacon gives Command Disallowed on Linux

Moving over from https://github.com/don/node-eddystone-beacon/pull/25 as I would think this would be a bleno issue
Using node-eddystone-beacons's uid/with-tlm.js example which repeatedly calls startadvertisingwitheirdata seems to work in linux.. but gives an error back every time "Command Disallowed"
hcidump
Turns out its a pi only problem, my other (arm) linux(jessie) box doesnt throw errors

Seeing the dump, you can see why it works. Its only every 1 error every 5 calls that fails. And since its pi only maybe a resource issue? i tried to set the startadvertisingwitheirdata  (TICK_INTERVAL) from default 100ms to 1000ms and its still 1/5 seemingly consistently..

ive seen that issue too, what i found out to kind of solve temporarily, is to close app that uses bleno (and sometimes hci0 down.
mostly I've had to reboot bleno app to allow changes, hope this helps out a bit

Actually, think i posted wrong workaround... just had this issue
This is what works for me:
bleno.on('advertisingStart', function (error) {
    if(error){ console.log("Adv error",error); }
    if (!error) {
        bleno.setServices(services);
    }else{
        bleno.stopAdvertising();
        bleno.startAdvertising(advName, serviceUUIDS);
    }
});


@refersTo renaming causes conversion issue for custom query with @sql directive

How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v20.8.0
Amplify CLI Version
12.10.3
What operating system are you using?
WSL2
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
Followed this guide to manually create GraphQL api through CDK
https://docs.amplify.aws/javascript/build-a-backend/graphqlapi/connect-api-to-existing-database/
Describe the bug
I ran npx @aws-amplify/cli api generate-schema --engine-type postgres  command to auto-generate GraphQL schema in schema.sql.graphql
This generated below mentioned type
type DBrand
  @refersTo(name: "<Confidential>")
  @model
  @auth(rules: [{ allow: public }]) {
  brandId: ID!
    @refersTo(name: "brand_id")
    @default(value: "gen_random_uuid()")
    @primaryKey
  brandCode: String @refersTo(name: "brand_code")
  brandName: String! @refersTo(name: "brand_name")
  brandCategory: String @refersTo(name: "brand_category")
}

I added below mentioned custom query in the same file schema.sql.graphql
type Query {
  getDBrandByUsername(userName: String!): [DBrand]
    @sql(reference: "getBrandByUsername")
    @auth(rules: [{ allow: public }])
}

When I call the query using graphQl client in front-end, it throws the following error
"Cannot return null for non-nullable type: 'ID' within parent 'DBrand' (/getDBrandByUsername[0]/brandId)"

However, when I renamed the fields(removed @refersTo mapping) to original DB filed names, it works.
Here is the additional change I made to test this
Added a new type DBrand2
type DBrand2 @model @auth(rules: [{ allow: public }]) {
  brand_id: ID! @default(value: "gen_random_uuid()") @primaryKey
  brand_code: String
  brand_name: String!
  brand_category: String
}

Added duplicate of the original query but returning DBrand2 type instead
type Query {
  getDBrand2ByUsername(userName: String!): [DBrand2]
    @sql(reference: "getBrandByUsername")
    @auth(rules: [{ allow: public }])

  getDBrandByUsername(userName: String!): [DBrand]
    @sql(reference: "getBrandByUsername")
    @auth(rules: [{ allow: public }])
}

Expected behavior
Custom query results should be transformed to type generated by generate-schema command
Reproduction steps

Generate graphql schema using npx @aws-amplify/cli api generate-schema --engine-type postgres  command for table that doesn't follow camel case attribute names
Write a custom query that returns result of generated type(should have @refersTo with renamed attribute name)
Call the custom query from UI using graphQL client

Project Identifier
No response
Log output

# Put your logs below this line

Additional information
No response
Before submitting, please confirm:

[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

Another Bug:
Looks like double quotes in custom SQL query, can't be escaped.
Sample query for Postgres:
-- getAllBrands.sql
Select brand_id as "brandId", brand_name as "brandName" from <Confidential>;

type Query {
  getAllBrands(userName: String!): [DBrand]
    @sql(reference: "getAllBrands")
    @auth(rules: [{ allow: public }])
}

Calling this query from GraphQL client, throws the following error
Encountered \"brandId\" at velocity[line 4, column 53]
Was expecting one of:
    <RPAREN> ...
    <WHITESPACE> ...
    "-" ...
    "+" ...
    "*" ...
    "/" ...
    "%" ...
    <LOGICAL_AND> ...
    <LOGICAL_OR> ...
    <LOGICAL_LT> ...
    <LOGICAL_LE> ...
    <LOGICAL_GT> ...
    <LOGICAL_GE> ...
    <LOGICAL_EQUALS> ...
    <LOGICAL_NOT_EQUALS> ...


Migrate to OpenTofu

oh god do i really have to do the full PR request template for this rn

Yo, did we test doing a build on the stacks to confirm they still work?


repo: CLRF line endings imposed on JS files by git

git on Windows behaves as though core.autocrlf is set to true.
However, this causes an issue where the CLRF line endings conflicts with the JS linter rule, where LF line endings are expected.
While the .editorconfig rule helps in normalising the line endings, it does not properly resolve this issue, as different editors might apply the file in a different manner.

Resolved in #5


DocsArchive-<IP_ADDRESS>Auto archive content

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

Docs Build status updates of commit b8d6c53:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

docs/TOC.yml
:white_check_mark:Succeeded
View

docs/to-be-archive/level1/article3-1-1.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level1/article3-1-2.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level1/article3-1-3.yml
:white_check_mark:Succeeded
View

docs/to-be-archive/level2/article3-2-1.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level2/article3-2-2.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level2/article3-2-3.yml
:white_check_mark:Succeeded
View

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


TURN server examples don't work properly for me

Your environment.

Version: v3.0.3
Browser: Google Chrome Version 125.0.6422.141

What did you do?
Tried to run the tcp-alloc example with a tcp TURN server from examples. Everything was launched on my local machine.
Also tested example TURN servers with Trickle ICE and all of them were unreachable.
What did you expect?
Expected clients to connect and exchange a message successfully. This functionality seems basic, so I assumed that the TURN server from the examples is suitable for this case, or am I wrong? Also expected the server to be reachable on the internet.
What happened?
In the tcp-alloc example clients received each others addresses but failed to dial and didn't exchange messages.
Server:

Client 1:

Client 2:

I'm afraid there's a small misunderstanding here. There are lots of different combinations based on which particular transport protocol TURN clients connect to the server and which protocol the server uses to forward client traffic to the peer.
The typical setup is the TURN client reaching the TURN server over UDP, which forwards client traffic to the peer over UDP. The corresponding sample server is in examples/turn-server/simple and the client code is in examples/turn-client/udp. Here is a local test:
go run examples/turn-server/simple/main.go -public-ip <IP_ADDRESS> -users=user=pass&
go run examples/turn-client/udp/main.go -host=<IP_ADDRESS> -user=user=pass -ping
relayed-address=<IP_ADDRESS>:58687
35 bytes from from <IP_ADDRESS>:58687 time=1 ms
35 bytes from from <IP_ADDRESS>:58687 time=1 ms
...

Another popular setup is the TURN client reaching the server over TCP, which again forwards client traffic to the peer over UDP (not TCP!). The corresponding sample server is in examples/turn-server/tcp and the client code is in examples/turn-client/tcp (not tcp-alloc!):
go run examples/turn-server/tcp/main.go -public-ip <IP_ADDRESS> -users=user=pass&
go run examples/turn-client/tcp/main.go -host=<IP_ADDRESS> -user=user=pass -ping
2024/07/23 17:59:27 relayed-address=<IP_ADDRESS>:39994
2024/07/23 17:59:28 35 bytes from from <IP_ADDRESS>:39994 time=0 ms
2024/07/23 17:59:29 34 bytes from from <IP_ADDRESS>:39994 time=0 ms
...

Finally, a somewhat exotic (but fully standardized!) setup is the client connecting the TURN server over TCP, which in turn forwards to the peer over TCP. This is the tcp-alloc client that you tried. Unfortunately, the server side support for this feature is still pending, see https://github.com/pion/turn/pull/315, so you cannot quite test this setup with pion/turn yet.
Does this answer your question?

If the server works on localhost, it should work publicly too. If it doesn't then that's most probably due to a reason outside pion/turn, like a firewall blocking incoming TCP connections to port 3478 or your IP address not being publicly routable. Try the standard debugging tools, like traceroute, ping, netstat, I'm sure you'll find the reason soon.
As per whether pion/turn can provide a production-ready TURN server: it absolutely can. While feature-wise it's not as complete as, say, coturn, it's still running in production in countless deployments. But I'd recommend you not write a TURN server for yourself from scratch or use the example code, because that will not scale neither expose monitoring metrics, etc. Just run a TURN service packaged with your media server (e.g., likevit includes a TURN server out of the box) or use a dedicated TURN server distro like STUNner (disclaimer: I'm one of the lead STUNner devs).

Hopefully you got it working @neon3r! If you have any other questions always happy to help on here on Slack


Add archiving and analyzing logic for buildFor

Related to #573

Add isEnabled and isDisabled helpers to XcodeScheme.BuildFor.Value.
Add enableIfNotIDisabled() to XcodeScheme.BuildFor.Value.
Add logic to set analyzing for all targets.
Add logic to set archiving for all targets with running enabled.

Should this update the generator scheme?

Again, good catch. I rely on the fixture tests to yell at me. For some reason, they are not. I will try to look into this next week.

 No need to look into it, it will resolve itself with my next PR.

@brentleyjones Repost from Slack:

I am just looking at your post again. Did you want any target marked as running except tests to have archiving enabled? I implemented it as any marked as running.


Symfony 5: 502 Bad Gateway

I have some (fake) routes, like:
#[Route('/prova', name: 'prova', methods: ['GET'])]
public function prova(): Response
{
    return $this->json('SUCCESS', Response::HTTP_OK);
}

#[Route('/prova-post', name: 'prova-post', methods: ['POST'])]
public function prova(): Response
{
    return $this->json('SUCCESS', Response::HTTP_OK);
}

#[Route('/contacts/{id}', name: 'get-contact', methods: ['GET'])]
public function getContact(Contact $contact): Response
{
    return $this->json('SUCCESS', Response::HTTP_OK);
}

All these routes work correctly before installing this bundle.
After installing the bundle only get-contact endpoint works. The others return: 502 Bad Gateway
I've tried with the default nelmio_cors.yaml and also with the one provided by the readme file. Nothing has changed.
Any idea?
Symfony5.3, nginx 1.21, php8

Hmmm is it because of the nginx config? Try with apache instead? Or you might need to do something about the config, i guess?


Added an article on the img tag from the w3school website.

[x ] I have read freeCodeCamp's contribution guidelines.
[x ] My pull request has a descriptive title (not a vague title like Update index.md)
[x ] My pull request targets the master branch of freeCodeCamp.
[x ] None of my changes are plagiarized from another source without proper attribution.
[x ] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

@glamdring777 Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 📝


Make top_and_tail work for n logs

Right now only does 3. Should be easy.
Should maybe just be able to pass in a list of logs.
Calling it a bug.

I just submitted PR #19 for this. I hadn't seen this issue so rather than accepting a list it accepts any number of arrays as arguments. It would align better with numpy if it is changed to accept a single iterable argument like a list of arrays. If you prefer that I'll add a commit to do so.
Also I realise now that you have a develop branch -- should PRs be raised against that?


Support monorepos without synchronized versions

Currently this action only supports monorepos with synchronized versions. We will soon be using monorepos that don't use synchronized versions, so this will need to be updated to support that.

Just an update on this: Instead of having this action take a second input, we should read the value of versionSynchronizationStrategy from some sort of configuration object that is kept in the repo as described here: https://github.com/MetaMask/create-release-branch/blob/88ec7e222c8c8e3fa88534c0ebda331a117911db/docs/setup.md. @rickycodes and I are discussing in Slack whether this configuration object lives in package.json or in a separate file entirely, so until that's resolved we can work around it for now by continuing to have a second action input, and then tweak it in a later PR.

Another update: instead of using a version format of <year>.<month>.<day>-<release number> for the root package, we should use <yyyy><mm><dd>.<release number>.0, so that we don't create a prerelease version.

Here's the relevant part of the Notion doc which describes how this action fits into the larger workflow. This might be helpful to gain more context: https://www.notion.so/Core-Monorepo-Release-Automation-a65b28ab89a14c9d82dcf9fabc3eb1e1#aa00c0fc1e404448884f41c4998602e6


Insert new features from youtube videos

I implemented some options of youtube iframe... just neet put the option on call and the plugin will do all automatic

Hey, I'm accepting your request without testing it as I don't have the time to check it.
I can add you as a collaborator if you like so you don't have to wait for me to make changes. I no longer work in Angular


Set Unshaky in read-only mode

Is your feature request related to a problem? Please describe.
Now Apple has extended their keyboard repair program, I would like to know if and when unintentional keys are being hit or missed.
Describe the solution you'd like
A switch, where I can disable Unshaky's assistance, but keep the info Unshaky gathered. In an ideal situation, I would be able to get a log with which button had an unintentional key press and when that occurred, so I can troubleshoot and send that info over to the repair shop.
Describe alternatives you've considered
Keeping Unshaky enabled. Would have to check periodically and currently not able to see which keys are having problems.

Unshaky already provides troubleshooting information, labelling events as "DISMISSED" in the log, which is a symptom of defective keys. If you want to have an overview, click the "Dismissed X shaky key presses".

I get that, but the debug window isn't always open. It can troubleshoot just fine when trying live, but it doesn't build an history of occurrences.
f I would look into my use case, my keyboard is already replaced, and I would like to monitor if this happens again. The counter can't be reset at the moment and opening the debugging window for the next year isn't really an ideal solution for that.
Anyhow, might be an enhancement if you or anyone else have some downtime.

Oh kind of understood what you try to do.

but it doesn't build an history of occurrences.

Unshaky does have a counter for individual key, does it provide the info you need?

The counter can't be reset at the moment

There is a reset button in the aforementioned statistic window, which can be opened by clicking Unshaky's first menu item "Dismissed X shaky presses"

I never realised the "Dismissed X shaky presses" is clickable. Does what I currently need. Thanks for the info! You could keep this issue open if you want to, but my question/request is answered.

@jeffreytigch you are not the first one getting confused, I probably need to make some UI changes  see #84