How to install flare-vm on Windows 7?

I got the following error when I try to install flare-vm. Would you please let me know how to install it?
PS C:\Users\IEUser\Desktop\flare-vm> .\install.ps1
[+] No custom profile is provided...
[+] Checking if script is running as administrator..
[+] Checking to make sure Operating System is compatible
	Microsoft Windows 7 Enterprise  supported
[+] Getting user credentials ...

Windows PowerShell Credential Request
Enter your credentials.
Password for user IEUser:

[+] Installing Boxstarter
Chocolatey is going to be downloaded and installed on your machine. If you do not have the .NET Framework Version 4 or greater, that will also be downloaded and installed.
Failed to install boxstarter. Trying again.
Chocolatey is going to be downloaded and installed on your machine. If you do not have the .NET Framework Version 4 or greater, that will also be downloaded and installed.
Failed to install boxstarter a second time.
Property 'RebootOk' cannot be found on this object; make sure it exists and is settable.
At C:\Users\IEUser\Desktop\flare-vm\install.ps1:291 char:15
+   $Boxstarter. <<<< RebootOk = $true # Allow reboots?
    + CategoryInfo          : InvalidOperation: (RebootOk:String) [], RuntimeException
    + FullyQualifiedErrorId : PropertyNotFound

Property 'NoPassword' cannot be found on this object; make sure it exists and is settable.
At C:\Users\IEUser\Desktop\flare-vm\install.ps1:293 char:13
+ $Boxstarter. <<<< NoPassword = $false # Is this a machine with no login password?
    + CategoryInfo          : InvalidOperation: (NoPassword:String) [], RuntimeException
    + FullyQualifiedErrorId : PropertyNotFound

Property 'AutoLogin' cannot be found on this object; make sure it exists and is settable.
At C:\Users\IEUser\Desktop\flare-vm\install.ps1:294 char:13
+ $Boxstarter. <<<< AutoLogin = $true # Save my password securely and auto-login after a reboot
    + CategoryInfo          : InvalidOperation: (AutoLogin:String) [], RuntimeException
    + FullyQualifiedErrorId : PropertyNotFound

The term 'Set-BoxstarterConfig' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\IEUser\Desktop\flare-vm\install.ps1:295 char:21
+ Set-BoxstarterConfig <<<<  -NugetSources "https://www.myget.org/F/fireeye/api/v2;https://chocolatey.org/api/v2"
    + CategoryInfo          : ObjectNotFound: (Set-BoxstarterConfig:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

The term 'Disable-MicrosoftUpdate' is not recognized as the name of a cmdlet, function, script file, or operable progra
m. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\IEUser\Desktop\flare-vm\install.ps1:298 char:24
+ Disable-MicrosoftUpdate <<<<
    + CategoryInfo          : ObjectNotFound: (Disable-MicrosoftUpdate:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

The term 'choco' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spell
ing of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:6
+ choco <<<<  sources add -n=fireeye -s https://www.myget.org/F/fireeye/api/v2 --priority 1
    + CategoryInfo          : ObjectNotFound: (choco:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

The term 'choco' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spell
ing of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:6
+ choco <<<<  upgrade -y vcredist-all.flare
    + CategoryInfo          : ObjectNotFound: (choco:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

The term 'refreshenv' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:11
+ refreshenv <<<<
    + CategoryInfo          : ObjectNotFound: (refreshenv:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

[+] Performing normal installation...
The term 'choco' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spell
ing of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\IEUser\Desktop\flare-vm\install.ps1:346 char:8
+   choco <<<<  upgrade -y -f common.fireeye
    + CategoryInfo          : ObjectNotFound: (choco:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

The term 'Install-BoxStarterPackage' is not recognized as the name of a cmdlet, function, script file, or operable prog
ram. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\IEUser\Desktop\flare-vm\install.ps1:350 char:30
+     Install-BoxStarterPackage <<<<  -PackageName flarevm.installer.flare -Credential $cred
    + CategoryInfo          : ObjectNotFound: (Install-BoxStarterPackage:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

I have the same error here

You may want to try again with Powershell v3.
You can check your version of Powershell with the command $host.Version.  You are likely running v2.

_Chocolatey now requires PowerShell v3 (or higher) and .NET 4.0 (or higher) due to recent upgrades to TLS 1.2. Please ensure .NET 4+ and PowerShell v3+ are installed prior to attempting FLARE VM installation. Below are links to download .NET 4.5 and WMF 5.1 (PowerShell 5.1).
.NET 4.5 https://www.microsoft.com/en-us/download/details.aspx?id=30653
WMF 5.1 https://www.microsoft.com/en-us/download/details.aspx?id=54616_

Thankyou @applewaffle.
Please install .NET 4.5 and WMF 5.1 and let us know if you still have issues installing FLARE-VM


[SPARK-13728][SQL] Fix ORC PPD test so that pushed filters can be checked.

What changes were proposed in this pull request?
https://issues.apache.org/jira/browse/SPARK-13728
https://github.com/apache/spark/pull/11509 makes the output only single ORC file.
It was 10 files but this PR writes only single file. So, this could not skip stripes in ORC by the pushed down filters.
So, this PR simply repartitions data into 10 so that the test could pass.
How was this patch tested?
unittest and ./dev/run_tests for code style test.

cc @marmbrus

this this please

Test build #52708 has started for PR 11593 at commit 12f8e55.

LGTM, pending tests.  Thanks for tracking this down!

Test build #52708 has finished for PR 11593 at commit 12f8e55.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/52708/
Test PASSed.

Merging to master.


data: SurajPratap10

Fixes Issue

Changes proposed

Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[ ] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[ ] All new and existing tests passed.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers

won't it get MERGED?

By mistake I closed it, I wanted to ask that won't it get MERGED.

It will be merged only after it gets approval from maintainers

LGTM 🎉

Thanks

added "tags" section in the latest commit


UVI Request

--- UVI JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from v4.17 to before v5.4.126",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=388ca8be00370db132464e27f745b8a0add19fcb",
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e3ecd9c09fcc10cf6b2bc67e2990c397c40a8c26"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "388ca8be00370db132464e27f745b8a0add19fcb",
      "note": "introduced"
    },
    {
      "type": "commit",
      "value": "e3ecd9c09fcc10cf6b2bc67e2990c397c40a8c26",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "IB/mlx5: Fix initializing CQ fragments buffer\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.4.126 by commit e3ecd9c09fcc10cf6b2bc67e2990c397c40a8c26, it was introduced in version v4.17 by commit 388ca8be00370db132464e27f745b8a0add19fcb. For more details please see the references link."
}
--- UVI JSON ---

This issue has been assigned UVI-2021-1000904


Unable to interact with the matplotlib widget in Jupyter Lab notebook

I was running the Pixel Clustering notebook on my data and run into an issue at the step using Metacluster Visualization GUI. As the screen recording attached shows, I was unable to interact with the matplotlib that was generated. Please kindly help!
Here are some widget extension info:

https://user-images.githubusercontent.com/78202174/197043847-861e8d55-1413-4dfb-96c9-19d1cf082bf8.mov

Hi @nancyliy, can you try zooming out in your browser and recapturing the video so I can see the entire visualization? It's a bit hard to see what's going on right now, the lower bar identifying the SOM/meta clusters selected currently isn't displayed in the video.

https://user-images.githubusercontent.com/78202174/197298807-b4550ee2-c746-43d6-96ec-f5f2e2e8b2e2.mov
Hi Alex here you go the recaptured video for your kind troubleshooting. Thank you!

@nancyliy sometimes inputting multiple clicks in a short time frame (ex. 2 seconds) can cause strange reactions from the GUI; it does seem to select your clusters/metaclusters eventually after a click. How long do you usually have to wait for the selection to actually show up?

@nancyliy here's a video to demonstrate how the video works:
https://user-images.githubusercontent.com/31424707/197592865-bd516871-baa4-4608-adca-dd6558befe89.mov

@nancyliy how many SOM clusters did you specify? It seems like you have a lot, you may need to zoom out in your browser to see the New metacluster button.
With a lot of SOM metaclusters you may experience slower loading times using the GUI. I'll need to do some research into seeing if this can be sped up or if it's an inherent scalability problem with number of SOM clusters.


brew should error out when CLT is not there

macOS minor updates are systematically wiping out CLT installs since macOS 11. brew doctor will warn about it, but running other operations in brew will not, and will lead to weird results that are totally not user-friendly.
One example, running a simple brew upgrade will build GCC from source instead of just telling me “no“:
==> Upgrading 1 outdated package:
gcc 10.2.0_3 -> 10.2.0_4
==> Upgrading gcc 10.2.0_3 -> 10.2.0_4
Warning: Building gcc from source:
  The bottle needs the Xcode CLT to be installed.

I don't think that behaviour is “doing what's right for users”. I would suggest that we simply require CLT to be installed on macOS >= 11, and bail out when we find it is not.

I would add that this is causing endless trouble and confusion to users, as noted in discussions, on twitter, and here: https://github.com/Homebrew/brew/issues/10275#issuecomment-777716550

We do now require this on Apple Silicon, as of Homebrew 3.0.1 (https://github.com/Homebrew/brew/pull/10533), which should effectively fix #10275 (will have to wait for the next macOS update to see the benefits though).
I do see the annoyance of brew upgrade gcc on Intel though.

We have some people who want to just use the CLT as part of Xcode. Given the size of the install, though, I can see an argument for just enforcing this globally.
We could also consider tracking if we've ever seen the CLT installed and, if so, error out hard if you try to do anything and it's not there.

There's also the case that we do support (on Intel only) having no dev tools installed if only consuming bottles.

There's also the case that we do support (on Intel only now) having no dev tools installed if only consuming bottles.

Good point.

gcc is a bit of an exception that it mandates CLT. We could perhaps have a system to make such enforcements stronger rather than a "build from source" fallback.

Agreed. That's what I thought here: maybe this should just refuse to install rather than building from source? Same deal for all our other bottle requirements like this.

@Bo98 I think what we're both zeroing in on is essentially making HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK the default.

HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK does not cover this scenario, but yes that general idea is what I think we're looking at.

Opened a PR to tackle all this in https://github.com/Homebrew/brew/pull/10640


Expired creation requests nodes are not terminated

An assertion error to avoid duplicate writes lead to zombie nodes not being terminated. Below error seen in logs:2024-05-19 14:14:59,310 - cyclecloud - ERROR - Could not terminate expired requests
Traceback (most recent call last):
File "/var/tmp/symphony/hostfactory/conf/providers/azurecc/scripts/src/util.py", line 213, in _wrap
return func(*args, **kwargs)
File "/var/tmp/symphony/hostfactory/conf/providers/azurecc/scripts/src/cyclecloud_provider.py", line 854, in _create_status
return output_handler.handle(response)
File "/var/tmp/symphony/hostfactory/conf/providers/azurecc/scripts/src/cyclecloud_provider.py", line 1298, in handle
assert not self.written
AssertionError

Fixed in 1.0.12


Chrome cannot download files in headless mode

https://www.devexpress.com/Support/Center/Question/Details/T808683/while-executing-test-case-it-is-working-with-chrome-browser-and-while-failing-with
Todo

[x] update TestCafe in the example repo

Duplicate of https://github.com/DevExpress/testcafe/issues/3127


Arm

Hi @manu-silicon, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;

For the commit title, could you please follow our Contribution Guidelines? https://github.com/dotnet/coreclr/blob/master/Documentation/project-docs/contributing.md#commit-messages
Describe what it is in 50 or less characters and use present tense to do it.

Fixed, this was me pressing to quickly on the submit pull request before entering any messages so it only kept the branch name.

LGTM. Thanks!

I can compile some bit of the C# code but I'm hitting an issue with MSBuild on arm.

It may be easier to setup cross-compilation for arm instead of deal with these issue ... CoreCLR repo has some prior art that you can take a look at on how to do cross-compilation.

I've added support for cross compilation in PR#427. Unfortunately I'm getting the exact same error as building directly on arm. I'll open an issue in case I'm missing something obvious before starting debugging this further.


-O present in CFLAGS should have precedence over _FORTIFY_SOURCE

Task Description
We need to reconcile CFLAGS and _FORTIFY_SOURCE. Currently, it's impossible to build with -O0 because, if _FORTIFY_SOURCE is detected it automatically adds -O2 which ends up being the setting honoured by the compiler. We need to modify things such that, if CFLAGS is incompatible with _FORTIFY_SOURCE, then _FORTIFY_SOURCE will not be applied.

It's possible to set -O0 but only if you also turn off BUILD_TYPE_RELEASE and turn on BUILD_TYPE_DEBUG.


Hide the Now Playing widget when it's not in use

I'd love for the Now Playing widget to only show up when I'm actually playing something. When nothing is playing, it's just wasting valuable touch bar real estate.

This is a good option to have, but I love starting my music with the widget

Maybe an option to toggle between both solutions? 👀

Option to hide widget when nothing is playing was added in the latest release: 0.7.1


How to debug  debug Pybind11 wrapped CUDA code in DROID-SLAM

would it be possible to ask what tools that use to debug Pybind11-wrapped CUDA code in DROID-SLAM?
I have tried cout something in cuda code in DROID-SLAM but it doesn't show in the console so I want to ask how to debug CUDA codes which are called by the python script?

you need to call printf in the cuda function. It is very annoying because you need to build it every time you change the code.


Tweet k-dev Messages

We would like to be able to have message sent to kubernetes-dev mailing list to be imported as a PR for review and eventual approval.
In my opinion, this should be something fairly well formatted. The subject and link to the message might be all that's needed.
These tweets should not go out automatically (at least at first). We want a human to verify before being sent. It's also entirely possible there are things we might want to filter out from having a PR created too (stretch goal).

/sig contributor-experience

/assign

/remove-lifecycle stale

/reopen
I think we still want to do this. Right @kaslin?
@pnbrown Is the Zapier account able to help us here? We'd want to generate a Tweet using a mailing list; not sure if that's feasible without plugging in someone's user account.


fix: fixes the 'type' property of 'user' varaible

Description
Fixd the users variable to make type property optional as per documentation
issue: https://github.com/terraform-ibm-modules/terraform-ibm-icd-elasticsearch/issues/219
Release required?

[ ] No release
[ ] Patch release (x.x.X)
[x] Minor release (x.X.x)
[ ] Major release (X.x.x)

Release notes content
updated the users variable so that the type attribute is now optional
Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
/run pipeline

Checklist for reviewers

[ ] If relevant, a test for the change is included or updated with this PR.
[ ] If relevant, documentation for the change is included or updated with this PR.

For mergers

Use a conventional commit message to set the release level. Follow the guidelines.
Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
Use the Squash and merge option.

/run pipeline

/run pipeline

:tada: This issue has been resolved in version 2.11.5 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


WebHookSecurityFilter should use DefaultIdConfigurationKey in log when id is null or empty

https://github.com/aspnet/WebHooks/blob/a05a07c420e6316963f41d7bad3fc38e6b74464c/src/Microsoft.AspNetCore.WebHooks.Receivers/Filters/WebHookSecurityFilter.cs#L288-L292
This prints Could not find a valid configuration for the 'github' WebHook receiver, instance '' when the key is invalid.

Hello, do you mean that when the key is invalid should it return other message? I would be glad to fix that if you clarify requirements. Thx

@Marusyk no, the intent was to use the term "default id" or something along those lines when the key is the default value. Right now it prints empty quotes, which isn't what the user configures in the log.
Consider
[GitHubWebHook]
public IActionResult Blah() {..}

The log message you see in this case is Could not find a valid configuration for the 'github' WebHook receiver, instance ''. Having '' instance isn't very intuitive. A more appropriate message might be Could not find a valid configuration for the 'github' WebHook receiver, default instance.

Self-assigning this and two other bugs because we want them done in RC1.
@mkArtakMSFT please add cost: XS label in this repo. This issue and #247 fit in that bucket. Perhaps #245 too.

This issue was moved to aspnet/AspLabs#46


"'copysign' is not a member of 'std'"

When attempting to compile under WSL (using the 32blit.toolchain file), the following error is returned.
/home/username/32blit-beta/32blit/graphics/mode7.cpp: In function 'vec2 blit::world_to_screen(vec2, float, float, vec2, float, float, blit::rect)':
/home/username/32blit-beta/32blit/graphics/mode7.cpp:49:24: error: 'copysign' is not a member of 'std'
     float theta_sign = std::copysign(1.0f, theta);
                        ^
/home/username/32blit-beta/32blit/graphics/mode7.cpp:49:24: note: suggested alternative:
In file included from /home/username/32blit-beta/32blit/graphics/mode7.cpp:6:0:
/usr/include/newlib/math.h:266:15: note:   'copysign'
 extern double copysign _PARAMS((double, double));
               ^
32blit/CMakeFiles/BlitEngine.dir/build.make:374: recipe for target '32blit/CMakeFiles/BlitEngine.dir/graphics/mode7.cpp.obj' failed
make[2]: *** [32blit/CMakeFiles/BlitEngine.dir/graphics/mode7.cpp.obj] Error 1
CMakeFiles/Makefile2:85: recipe for target '32blit/CMakeFiles/BlitEngine.dir/all' failed
make[1]: *** [32blit/CMakeFiles/BlitEngine.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

I'm using an Ubuntu 16.04 based WSL and gcc/g++-9

What about arm-none-eabi-gcc version? Might be a little old. (Ubuntu 18.04 has 6.3.1, which works but with a pile of warnings.)

What about arm-none-eabi-gcc version? Might be a little old. (Ubuntu 18.04 has 6.3.1, which works but with a pile of warnings.)

You're right. That one is stuck on 4.9.3
Any idea how to upgrade it under Ubuntu? Any alternative package repository?

I installed a new toolchain manually.
Now I'm facing this, however:
/tmp/cciQsJ0d.s: Assembler messages:
/tmp/cciQsJ0d.s:30: Error: selected processor does not support `dsb 0xF' in ARM mode
/tmp/cciQsJ0d.s:37: Error: selected processor does not support `isb 0xF' in ARM mode
/tmp/cciQsJ0d.s:47: Error: selected processor does not support `dsb 0xF' in ARM mode
/tmp/cciQsJ0d.s:54: Error: selected processor does not support `isb 0xF' in ARM mode
/tmp/cciQsJ0d.s:66: Error: selected processor does not support `dsb 0xF' in ARM mode
/tmp/cciQsJ0d.s:73: Error: selected processor does not support `isb 0xF' in ARM mode
/tmp/cciQsJ0d.s:110: Error: selected processor does not support `dsb 0xF' in ARM mode
/tmp/cciQsJ0d.s:163: Error: selected processor does not support `dsb 0xF' in ARM mode
/tmp/cciQsJ0d.s:175: Error: selected processor does not support `dsb 0xF' in ARM mode
/tmp/cciQsJ0d.s:182: Error: selected processor does not support `isb 0xF' in ARM mode
32blit-stm32/CMakeFiles/BlitHalSTM32.dir/build.make:62: recipe for target '32blit-stm32/CMakeFiles/BlitHalSTM32.dir/Src/main.c.obj' failed
make[2]: *** [32blit-stm32/CMakeFiles/BlitHalSTM32.dir/Src/main.c.obj] Error 1
CMakeFiles/Makefile2:140: recipe for target '32blit-stm32/CMakeFiles/BlitHalSTM32.dir/all' failed
make[1]: *** [32blit-stm32/CMakeFiles/BlitHalSTM32.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

You should be able to upgrade WSL's Ubuntu to 18.04 with sudo do-release-upgrade.
Not sure what is up with your new toolchain, looks like the compiler is somehow generating the wrong code?

The default architecture for that toolchain is probably wrong.

Seems someone on the forum is seeing this in WSL as well!

arm-none-eabi-gcc -print-multi-lib

arm/v5te/softfp;@marm@march=armv5te+fp@mfloat-abi=softfp
arm/v5te/hard;@marm@march=armv5te+fp@mfloat-abi=hard
thumb/nofp;@mthumb@mfloat-abi=soft
thumb/v7/nofp;@mthumb@march=armv7@mfloat-abi=soft
thumb/v7+fp/softfp;@mthumb@march=armv7+fp@mfloat-abi=softfp
thumb/v7+fp/hard;@mthumb@march=armv7+fp@mfloat-abi=hard
thumb/v7-r+fp.sp/softfp;@mthumb@march=armv7-r+fp.sp@mfloat-abi=softfp
thumb/v7-r+fp.sp/hard;@mthumb@march=armv7-r+fp.sp@mfloat-abi=hard
thumb/v6-m/nofp;@mthumb@march=armv6s-m@mfloat-abi=soft
thumb/v7-m/nofp;@mthumb@march=armv7-m@mfloat-abi=soft
thumb/v7e-m/nofp;@mthumb@march=armv7e-m@mfloat-abi=soft
thumb/v7e-m+fp/softfp;@mthumb@march=armv7e-m+fp@mfloat-abi=softfp
thumb/v7e-m+fp/hard;@mthumb@march=armv7e-m+fp@mfloat-abi=hard
thumb/v7e-m+dp/softfp;@mthumb@march=armv7e-m+fp.dp@mfloat-abi=softfp
thumb/v7e-m+dp/hard;@mthumb@march=armv7e-m+fp.dp@mfloat-abi=hard
thumb/v8-m.base/nofp;@mthumb@march=armv8-m.base@mfloat-abi=soft
thumb/v8-m.main/nofp;@mthumb@march=armv8-m.main@mfloat-abi=soft
thumb/v8-m.main+fp/softfp;@mthumb@march=armv8-m.main+fp@mfloat-abi=softfp
thumb/v8-m.main+fp/hard;@mthumb@march=armv8-m.main+fp@mfloat-abi=hard
thumb/v8-m.main+dp/softfp;@mthumb@march=armv8-m.main+fp.dp@mfloat-abi=softfp
thumb/v8-m.main+dp/hard;@mthumb@march=armv8-m.main+fp.dp@mfloat-abi=hard

That looks fine to me.
Can you install this version and try it: https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2?revision=108bd959-44bd-4619-9c19-26187abf5225&la=en&hash=E788CE92E5DFD64B2A8C246BBA91A249CB8E2D2D

I already use that version. That's the one that throws compatibility errors.

ok, try 7-2018-q2-update on the same page.

ok, try 7-2018-q2-update on the same page.

Same issue

Weird, can you post on Discord exactly the steps you are taking to build?

I fixed it by installing a new WSL environment through lxrunoffline (quite handy for installing a new distro without trashing the old one).

Include cmath and you fix it :+1:


Issues

Expected behavior
Actual behavior
Information about the Issue
Steps to reproduce the behavior

...
...

No information provided or steps to replicate - Closing


dino: 0.3.0 -> 0.3.1

Description of changes
Bugfix update which enables update to libsoup3 too.
https://github.com/dino/dino/releases/tag/v0.3.1
Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 199738 run on x86_64-linux 1

1 package built:

dino


fix package.json exports field

can you make sure the top-level types field, does als get added to the exports field, like so once published to npm?
diff --git a/package.json b/package.json
index 4dd03e2c75620af7c15e464fb5ff5385ea314f25..9761af21f3aa240966b56c42a8d86a3902ef0e8c 100644
--- a/package.json
+++ b/package.json
@@ -4,6 +4,7 @@
   "author": "Neon",
   "description": "node-postgres via WebSockets from neon.tech",
   "exports": {
+    "types": "./index.d.ts",
     "require": "./index.js",
     "import": "./index.mjs"
   },

https://arethetypeswrong.github.io/ for more details and to validate.

Absolutely, I hadn't clocked that I'd failed to do this until now.

@jawj thanks for the fix, not sure if it is relevant, but according to typescript docs, types need to come as first property entry and it seems you added it last.

Good catch! Just fixed that too.


Feature request: allow long-running/threaded evaluations (currently 'interrupted')

Running a function which takes something longer than 2 seconds or so, instead of printing the evaluation result, the REPL just displays 'Interrupted'.
Tested using forkIO functions...maybe this only occurs in threaded executions (?)
Maybe some setting 'Allow long-running ...' or 'Wait maximum ms ...' could help, if it can not be detected automatically... ?

This would need some changes to architecture. I don't have much time right now, so if you want to try your hand at this, feel free.
Long story short, first there needs to be a way to manually kill long-running task. Second, we need to stream response messages, so that there is at least some indication of progress. This shouldn't be terribly complicated.

I can try take a look at it...
this is the 'source' of the issue, right ?
line 113 in ghci.coffee
@timeout = setTimeout (=>
  tkill @ghci.pid, 'SIGINT'
  @finished = true
  @timeout = null
  ), 1000

Yes. Basically, if a command is running for longer than 1 second, it's interrupted.  But I guess that manual interrupt option would work for this case well enough.

Done in 0.0.20


dsn_patch_11

dsn_levels

added new text in level_selector for more clear instructions

levels.txt

added new level and did some adjusting and testing

pull this first before you pull the newer version of levels.txt


Fix #2047 LRU cache key is undefined

this._host is undefined in GitRemoteResolver.prototype._fastClone
Before:
bower git:(bugfix/2047) mocha test/core/resolvers/gitRemoteResolver.js

  GitRemoteResolver
    .constructor
      ✓ should guess the name from the path (52ms)
    .resolve
      ✓ should checkout correctly if resolution is a branch (172ms)
      ✓ should checkout correctly if resolution is a tag (103ms)
      ✓ should checkout correctly if resolution is a commit (104ms)
      - should handle gracefully servers that do not support --depth=1
      - should report progress when it takes too long to clone
      shallow cloning
TypeError: LRU: key must be a string or number. Almost certainly a bug! undefined
    at typeCheckKey (/Users/yankun/bower/node_modules/lru-cache/lib/lru-cache.js:20:19)
    at LRUCache.get (/Users/yankun/bower/node_modules/lru-cache/lib/lru-cache.js:230:3)
    at /Users/yankun/bower/lib/core/resolvers/GitRemoteResolver.js:129:70
    at _fulfilled (/Users/yankun/bower/node_modules/q/q.js:834:54)
    at self.promiseDispatch.done (/Users/yankun/bower/node_modules/q/q.js:863:30)
    at Promise.promise.promiseDispatch (/Users/yankun/bower/node_modules/q/q.js:796:13)
    at /Users/yankun/bower/node_modules/q/q.js:857:14
    at runSingle (/Users/yankun/bower/node_modules/q/q.js:137:13)
    at flush (/Users/yankun/bower/node_modules/q/q.js:125:13)
    at doNTCallback0 (node.js:430:9)
    at process._tickCallback (node.js:359:13)
        ✓ should add --depth=1 when shallow cloning is supported
        ✓ should not add --depth=1 when shallow cloning is not supported
    #refs
      ✓ should resolve to the references of the remote repository
      ✓ should cache the results
    #_supportsShallowCloning
      ✓ should call ls-remote when using http protocol
      ✓ should call ls-remote when using https protocol
      ✓ should evaluate to false when the URL can not be parsed
      ✓ should evaluate to true when the smart content type is returned
      ✓ should cache hosts that support shallow cloning
      ✓ should cache hosts that support shallow cloning across multiple repos
      ✓ should run separate checks for separate hosts

After:
bower git:(bugfix/2047) mocha test/core/resolvers/gitRemoteResolver.js

  GitRemoteResolver
    .constructor
      ✓ should guess the name from the path (52ms)
    .resolve
      ✓ should checkout correctly if resolution is a branch (172ms)
      ✓ should checkout correctly if resolution is a tag (103ms)
      ✓ should checkout correctly if resolution is a commit (104ms)
      - should handle gracefully servers that do not support --depth=1
      - should report progress when it takes too long to clone
      shallow cloning
        ✓ should add --depth=1 when shallow cloning is supported
        ✓ should not add --depth=1 when shallow cloning is not supported
    #refs
      ✓ should resolve to the references of the remote repository
      ✓ should cache the results
    #_supportsShallowCloning
      ✓ should call ls-remote when using http protocol
      ✓ should call ls-remote when using https protocol
      ✓ should evaluate to false when the URL can not be parsed
      ✓ should evaluate to true when the smart content type is returned
      ✓ should cache hosts that support shallow cloning
      ✓ should cache hosts that support shallow cloning across multiple repos
      ✓ should run separate checks for separate hosts

Isn't #2040 the proper fix?

@sheerun sorry, I didn't check #2040 , it is better than this PR. I'll close this

@kunyan Are you on Discord chat?

@sheerun  I'm in UTC+8 and Discord didn't have Linux client, anything I can help ?


Implement an init

What?
Similar to other factory boy extensions, I'd expect to be able to simply construct the object and not have to call .build, like the basic usage example from the factory boy docs
Behavior I want
from pydantic import BaseModel
from pydantic_factories import ModelFactory

class Person(BaseModel):
    id: int
    name: str
    phone_number: str

class PersonFactory(ModelFactory):
    __model__ = Person

# rn I have to do PersonFactory.build()
print(PersonFactory())
#> id=6744 name='wqIOcAeNxRziXJlQEBqr' phone_number='lEJcvhasvbUJWRPvHMez'

Why do I care?
It'd be nice if I could change this in my packages that serialize using Pydantic and not change every downstream test to use .build

this library is not a factory boy extension.


[ENH]

Proposed new feature or change:
Calculate acceleration data for each car

Chiming in to say: I don't think this is possible/doable. F1 does not provide raw acceleration data, so the only way to have it would be to derive it using the GPS position and speed.
I myself have tried for quite some time to come up with a reliable method to calculate it, but there are some challenges with this approach:

The raw data is not granular enough for an accurate calculation based on position, both timing-wise (the update frequency is kind of low) and position-wise (the GPS resolution is only 10cm)
FastF1's job is to provide accurate and reliable data. While you could in theory approximate the acceleration, the values would not be precise, and most importantly they would not have come from an official data source but only estimated, which kind of defeats the point.

I'd be happy to hear if someone follows up with a somewhat reliable method of computing accelerations (if you want, I have a lateral and longitudinal G graph from last year, obtained directly from an F1 team, for comparison), but as far as I know, until we can get more precise input data, the acceleration will always be largely estimated.

I agree with @pesaventofilippo, that's an excellent summary of the problem.
While it may be possible to estimate the acceleration partially, this will be very unreliable and inaccurate most of the time. I'm not saying that it's impossible to draw conclusions from acceleration data that is calculated from existing data in FastF1. But such data needs to be handled very carefully and one needs to be very aware of the limitations of the specific method used to calculate the data. Overall, there seems to be no way to provide accurate acceleration data. Therefore, it does not make sense to add this feature to FastF1.

I'd be happy to hear if someone follows up with a somewhat reliable method of computing accelerations (if you want, I have a lateral and longitudinal G graph from last year, obtained directly from an F1 team, for comparison), but as far as I know, until we can get more precise input data, the acceleration will always be largely estimated.
if you can send me that G graph it could really help!
I want to try few things and see how close we can get.

@iskanderrr I'm not really sure if I can post it online, I'll ask the person where I got it from!


Tons of errors while looking in inspector

I have AdBlock extension in Chrome but I have this website (which is localhost) whitelisted.

Hi @mokumax, thanks for reporting this. We have heard reports that in some versions of AdBlock, there is a bug where these messages appear on pages involving iframes and Content Security Policies, which stripe.js requires. Unfortunately it seems to be an issue on their side and we are waiting for a fix.


fix image paint in flutter 2.x

This code allows it to be used both in flutter below version 2.x and in higher versions without breaking.

I'm going to close this but I think it is best I explain why.
The Flutter team has pretty much decided (as far as I know) to not preserve compatibility going forward. so 1.0 wont be compatible with 1.x, etc. Having said this, there will be way more backwards compatibility issues across a number of scenarios. Therefore I don't really want to build (and, more importantly, promise) code that works against a framework that is going to be constantly in flux.
So after consideration, the 2.x branch will just be incompatible with older versions of flutter and I think this is the right choice. For now, if you are using Flutter master, use 2.x. Otherwise, use the 1.x.


highlight calls to erlang modules as types

:wave: hello!
I'm integrating the new parser and highlight queries into the helix editor (see helix-editor/helix#830) and I noticed that a function call on an atom highlights differently than an alias (module). This PR adds a clause to the highlights to recognize that case and highlight the atom the same as an alias:

before | after
What do you think?

I am thinking they could be the same. It is already syntactically distinct so having them visually the same can help drive the point home they are all modules?

I think the consistency with makeup is pretty desirable. I'd be willing to try out a PR to makeup to align the behavior.
here are some more snippets from a real code-base for comparison...

before | after


Add ERC721 transfer CDE

Right now we have an ERC721 CDE, but it only keeps track of new NFT mints
For transfers, we're instead relying on the generic CDE using something like this
abiPath: "./abis/ERC721.json"
eventSignature: "Transfer(address,address,uint256)"
scheduledPrefix: tradeTransfer

A good example of wanting to use this is the card game template we wanted to update the state machine when an NFT got burned (transferred to the 0 address). You can see documentation for that here
But it seems reasonable to want to have built-in CDE option for this (and maybe for other stds like ERC20, or even maybe a CDE for just regular ETH send instead of having to use a generic CDE over the GenericPayment contract)
I am a little concerned that we might might end up creating too many CDEs that are just shims over a Ethereum log event though.
Additionally, it's kind of strange that the erc721 CDE does keep track of transfers (and not just mints) internally to power utility functions like getNftOwner. I feels like the separation of concerns is not super clear (and this applies to a lesser extent with the ERC20 CDEs)

To add to this, it would make sense to rename scheduledPrefix here to something like mintPrefix and then make it optional, just like we have burnScheduledPrefix optional


Document what types of Wifi packets are used for passive scanning?

The docs should mention what sort of Wifi packets are being used for passive scanning.
For example - is it only probe requests? (These are every 10 minutes, right?)
Or how about general wifi traffic?
We should also make some notes about how often we'd expect to see devices check-in etc.

Right, its general probe requests. That's a good thing to update.


Android - Start chat - Huge spacing between bottom button and offline indicator

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 9.0.67-1
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Issue reported by: Applause Internal Team
Action Performed:
Precondition:

Device navigation is buttons instead of swipe gestures.

Launch ND or hybrid.
Go offline.
Open FAB > Start chat.
Tap Add to group next to any user.
Note that there is huge spacing between Next button and offline indicator.
Go to #room.
Note that there is huge spacing between Create room button and offline indicator.

Expected Result:
There should not be huge spacing between bottom button and offline indicator.
Actual Result:
There is huge spacing between bottom button and offline indicator.
This issue is not reproducible if device navigation uses swipe gestures.
Workaround:
Unknown
Platforms:

[x] Android: Standalone
[x] Android: HybridApp
[ ] Android: mWeb Chrome
[ ] iOS: Standalone
[ ] iOS: HybridApp
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
https://github.com/user-attachments/assets/f1d76c8a-a479-4c67-a6b6-875caf87a5eb

View all open jobs on GitHub

discussing in the linked thread

PR is in main

@mountiny do you mind linking the PR?
Also, @chrispader, if you would like me to assign you on this GH issue, you'll need to leave a comment. If you don't need to be assigned, then no worries.

ah it was not linked correctly in the PR, here it is https://github.com/Expensify/App/pull/53250

@mountiny has it been fixed by changes from #53250?

Asked QA here

No payment required, but @kirillzyusko could you please complete the BZ checklist before we close the issue? Thanks!

We can close this issue as soon as @kirillzyusko completes the BZ checklist.


Support for multiple types of tests

Is there any likelihood of supporting multiple types of tests? I am working on an adapter for Go, which has tests, benchmarks, and examples. It would be nice to be able to support all of these.
Examples can be treated as tests without much issue, but support for benchmarks would be awesome.

Probably solvable by #94.


[WIP] Alternative graph stages implementation for consumer and producer

Hey!
Status
With this commit I want to discuss ideas of new API and new graph stage based consumer and producer.
Ideas
There are few ideas I want to discuss with this commit:

New shapes for consumer and producer
New implementation of graph stages
Kafka consumer loop problem
New API for consumer and producer setup

New shapes
Design
I implement minimal usable stages around KafkaConsumer and KafkaProducer. These stages work on API level of kafka client and expose objects from kafka client API. The idea here is to present very basic kafka client API in terms of streams.
Documentation is here - https://github.com/13h3r/reactive-kafka/blob/wip/api-ideas/docs/NewAPI.md
You can find usage example in DummyConsumer.scala.
This shape solves #51.
Stages implementation
Stages implemented in reusable way. They shares nothing and creates kafka consumer/producer during materialization phase. Created consumer/producer can be easy exposed. Solves #70.
Consumer event loop problem
I spent a lot of time trying to figure out why new consumer does not call commit callbacks. Here is some details - http://mail-archives.apache.org/mod_mbox/kafka-users/201602.mbox/browser
To solve this I implement some kind of event loop polling in consumer. Check poll method which represents one round of polling.
New API for kafka client setup
I am not a big fan of current API for kafka client setup. I want to separate two parts: client setup and stream stages.
My idea is to provide stages that give you possibility to work with client in stream manner. These stages require producer/consumer that already setup somehow. Yes it will be cool to have typesafe fancy API to setup kafka client, but it should be possible to use all stream stuff with plain kafka client.
That why all stages depends only on producer/consumer.

@kciesielski wrote:
Shutdown handler for the consumer stage. Is it going to be an output where you can handle onError() from the consumer stage? If you want, for example, reset the whole stream on consumer error, should this be coded here?
How about handling producer errors? Will they be propagated to Producer’s confirmation handler output?
Do we need the record2commit itermediary stage? Can’t we just pass the original record there?
Defining consumer properties is independent from defining flows. This means that you can, for example, define an auto-committing consumer but still have a commit input if you create the stage via Consumer.flow, right?

Shutdown handler for the consumer stage. Is it going to be an output where you can handle onError() from the consumer stage? If you want, for example, reset the whole stream on consumer error, should this be coded here?

Great, I've been spending a lot of time thinking about how to handle this to enable recovering and tracing of termination and failures of AKKA streams

What is consumer stage for you? Whole flow or flow between messages and commits? I am thinking about whole flow when working with errors. And at this level you can be notified about error through the handling of onError for confirmation out. After you get the notification about failure you decide how to react. Restart, shutdown, ignore - it is all up to you. You have the way to be notified.
Yes they should be propagated (sure we need to write test for all of this cases and I plan to do it)
I don't think so. My point here is to provide very basic API in terms of kafka client. With such design you are free to implement any behavior that depends only on kafka client. For example you can implement publishing in different topic through one publisher, or any custom partition assignment and so on. I don't want to restrict user level API and want to keep it on level of kafka API.
Yes it is possible. I am thinking how to enforce some constraints at this level, but have no ideas right now. Also it will work both with autocommit and manual commit through commit In. Last commit by time will win.

Thanks for the answers! :) Yes, consumer stage is whole flow. This looks really good, because error handling or manual stopping has been a painful thing to achieve in the previous API.


Update allcourses.json

added free cybersecurity course from cybrary

also add in readme

added

you should have updated it in this pr only


wrong qrcode size

let qr = QrCode::new(metadata).unwrap();
dbg!(qr.to_colors().len()); // 441

How it gets to 441 ? If the image is a square, it should be an even number.
I believe this is also affects the images as well:
qr.render::<Luma<u8>>().min_dimensions(200, 200).module_dimensions(0, 0).build();

Creates an image where the total number of pixels does not match dimensions and color type.
E.g: 200x200*3 = 120000, but I'm getting crazy things like 127321

If the image is a square, it should be an even number.

Huh.
441 = 21 x 21.
The .to_colors() method returns a vector of Color. The QR code here can be divided into 21x21 = 441 little squares each being either light (white) or dark (black). It has nothing to do with the image size

Creates an image where the total number of pixels does not match dimensions and color type.
 A Luma<u8> is a grayscale pixel so will only occupy 1 byte per pixel i.e. you don't need to multiply be 3. And 127321 is not a square number (127449 is, but no QR code can be this large).


added keyboard support

I've added keyboard support for users to open and close features with either space or enter.
Also added aria-button and aria-expanded to make it more accessible for AT users.

awesome. thank you.


Error handling

Error handling has changed a bit in #3. Ideally with or without tap-dev-tool, any syntax/build errors should be pretty-printed to the DevTools console. So, this error handling code should move into hihat and out of tap-dev-tool.

fixed in<EMAIL_ADDRESS>and<EMAIL_ADDRESS>


Bug report: Unable to use the certificateBase64Encoded for M365 login

Description
Tying to pass the certificateBase64Encoded instead of a certificate file. Using PowerShell.
I have grabbed latest version of M365 cli V3.3.0
Looking through the code, the login.ts file shows --certificateBase64Encoded as an option.
https://github.com/pnp/cli-microsoft365/blob/0dbd08d45ca95fcb755de52ed572ebc87c19ff3d/src/m365/commands/login.ts#L154
However, when I view the help file
m365 login --help
There are no option for the certificateBase64Encoded.
It's as if I'm not loading the latest version of M365 cli even though it's states it's the latest.

m365 login -h
login
Log in to Microsoft 365
Usage
sh
m365 login [options]
Options
-h, --help
: output usage information
-t, --authType [authType]
: The type of authentication to use. Allowed values certificate,deviceCode,password,identity. Default deviceCode
-u, --userName [userName]
: Name of the user to authenticate. Required when authType is set to password
-p, --password [password]
: Password for the user. Required when authType is set to password
-c, --certificateFile [certificateFile]
: Path to the file with certificate private key. Required when authType is set to certificate
--thumbprint [thumbprint]
: Certificate thumbprint. Required when authType is set to certificate
--query [query]
: JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
: Output type. json,text. Default text
--verbose
: Runs command with verbose logging
--debug
: Runs command with debug logging
Remarks
Using the login command you can log in to Microsoft 365.
By default, the login command uses device code OAuth flow to log in to Microsoft 365. Alternatively, you can authenticate using a user name and password or certificate, which are convenient for CI/CD scenarios, but which come with their own limitations. See the CLI for Microsoft 365 manual for more information.
When logging in to Microsoft 365, the login command stores in memory the access token and the refresh token. Both tokens are cleared from memory after exiting the CLI or by calling the logout (logout.md) command.
When logging in to Microsoft 365 using the user name and password, next to the access and refresh token, the CLI for Microsoft 365 will store the user credentials so that it can automatically re-authenticate if necessary. Similarly to the tokens, the credentials are removed by re-authenticating using the device code or by calling the logout (logout.md) command.
When logging in to Microsoft 365 using a certificate, the CLI for Microsoft 365 will store the contents of the certificate so that it can automatically re-authenticate if necessary. The contents of
the certificate are removed by re-authenticating using the device code or by calling the logout (logout.md) command.
To log in to Microsoft 365 using a certificate, you will typically create a custom Azure AD application. To use this application with the CLI for Microsoft 365, you will set the CLIMICROSOFT365_AADAPPID environment variable to the application's ID and the CLIMICROSOFT365_TENANT environment variable to the ID of the Azure AD tenant, where you created the Azure AD application.
Managed identity in Azure Cloud Shell is the identity of the user. It is neither system- nor user-assigned and it can't be configured. To log in to Microsoft 365 using managed identity in Azure Cloud Shell, set authType to identity and don't specify the userName option.
Examples
Log in to Microsoft 365 using the device code
sh
m365 login
Log in to Microsoft 365 using the device code in debug mode including detailed debug information in the console output
sh
m365 login --debug
Log in to Microsoft 365 using a user name and password
sh
m365 login --authType password --userName<EMAIL_ADDRESS>--password pass@word1
Log in to Microsoft 365 using a PEM certificate
sh
m365 login --authType certificate --certificateFile /Users/user/dev/localhost.pem --thumbprint 47C4885736C624E90491F32B98855AA8A7562AF1
Log in to Microsoft 365 using a personal information exchange (.pfx) file
sh
m365 login --authType certificate --certificateFile /Users/user/dev/localhost.pfx --thumbprint 47C4885736C624E90491F32B98855AA8A7562AF1 --password 'pass@word1'
Log in to Microsoft 365 using a system assigned managed identity. Applies to Azure resources with managed identity enabled,
such as Azure Virtual Machines, Azure App Service or Azure Functions
sh
m365 login --authType identity
Log in to Microsoft 365 using managed identity in Azure Cloud Shell. Uses the identity of the current user.
sh
m365 login --authType identity
Log in to Microsoft 365 using a user-assigned managed identity. Client id or principal id also known as object id value can be specified in the userName option. Applies to Azure resources with managed identity enabled, such as Azure Virtual Machines, Azure App Service or Azure Functions
sh
m365 login --authType identity --userName ac9fbed5-804c-4362-a369-21a4ec51109e

Steps to reproduce
View the help file of m365 Login doesn't give you the option.
m365 login --help
Also attempted of just calling the command.
m365 login --authType certificate --certificateBase64Encoded $certValue --thumbprint $certthumbprint
I have also uninstalled the npm package and reinstalled again. Still same problem.
Expected result
To be able to log in using CertificateBase64Encoded value, and should be able not use the thumbprint any more.
Actual result
Error: Invalid option: 'certificateBase64Encoded'
Environment
PowerShell/ Windows

This option is available in the latest beta, which you can install with npm i -g @pnp/cli-microsoft365@next. It will released as v3.4.0 in the first week of January '21.

Thank you for your quick answer, and yes I have now tested with the @next version without any problems.
I've just seen the "tag" on branches, I will make sure I'm looking at the right branch in future. I thought master was the latest released.
Slowly understanding and learning Node with your code. Awesome work.

Great to hear you got it to work. Is there anything that we could clarify in our docs to make this more explicit?

My experience when learning how to use M365 cli is to go directly to your documents to understand how the commands work. So today for example I went to https://pnp.github.io/cli-microsoft365/cmd/login/ to understand different ways you could log in. I would have thought that these instructions should show the currently released version, not the beta version.
I'm afraid I don't know enough of how https://pnp.github.io/cli-microsoft365/ ties to the github source code, but can it not point to the latest tagged version branch, and then repoint to the next tagged version branch on release?  Or is it possible to have a version switcher like the Beta and 1.0 graph API does?
https://docs.microsoft.com/en-us/graph/api/overview?view=graph-rest-1.0

Thanks for the feedback @pmatthews05 👍🏻
We can look at adding a version switch to our docs, we use MkDocs Material and that has this capability now, essentially this would version our docs creating a lockdown copy for every version we release.
https://squidfunk.github.io/mkdocs-material/setup/setting-up-versioning/

Lockdown version docs would also be good for people that cannot always update to the latest version. But need to extend an existing piece of code and need to check documentation.
Thanks.

Would you mind creating a new issue, so we can credit you with the feedback and discuss it further?
It's not quite a simple as upgrading MkDocs, we also have to think about our integration with MarkShell which we use to display the docs in the CLI --help command, certainly not impossible though.

Sure, I will raise a new issue first thing in the morning.

It's not quite a simple as upgrading MkDocs, we also have to think about our integration with MarkShell which we use to display the docs in the CLI --help command, certainly not impossible though.

I think this is the easy part. The docs shipped with the CLI package reflect exactly what's available to you in that particular version. It's the docs available on the web that are causing confusion because it's not clear that they reflect the @next version of the CLI.


Fixed-Size Tilemaps (reduce overhead on Mesh)

How about fixed size meshes as an option? This could end up working pretty well

Also fix sprites with this too


Dragging an item from react sortable tree to external element

Hi , is there any option to drag an item from react sortable tree to external element (like div) ? Should we add drop area in the div to accept the item, if it so please share the drop area method? or else is there any different approach?
Thanks!

Take a look at the "Drag out to remove" example in the Storybook:
https://fritz-c.github.io/react-sortable-tree/storybook/?selectedKind=Advanced&selectedStory=Drag out to remove&full=0&down=1&left=1&panelRight=0&downPanel=storybook%2Fnotes%2Fpanel
In this case I mostly ignore the drop result and throw it away, but you can use this as a base to create your own custom drop target.

I don't want to remove the node from the tree. I just want a copy of the node and do drag and drop function. Is there any approach for this ?
Thanks!

If you want to move a node to the external div without changing the appearance, you're probably going to want to use another instance of the SortableTree. See how to do so in the "Tree-to-tree dragging" example, found on the same page as the other example I linked above.
If you don't care about the appearance, and just want to create nodes of your own, you'll have to make a component that accepts dragSource-s from the tree. The setup for this will look similar to the example I linked above, but you'll have to write some code to handle the dropping, which will add and render nodes in whatever way you specify.

Thanks for your immediate response :)
As you said I am using another instance of the SortableTree.

The problem is when you see the first image there are node1 and node2 in the left tree. when you drag and drop the node2 from left tree to right tree the node2 disappears in left tree and visible in the right tree alone.
I want the node2 to be displayed in both the trees.
And also i am not getting the placeholder when there is no tree data. I passed the treeData as
this.state = {
treeData: ' ',
}
Thanks!!

Ok, that makes sense. I added a prop, shouldCopyOnOutsideDrop, to enable the copying behavior (#142). I updated the tree-to-tree example to demonstrate it.
As far as your placeholder issue, you should pass an empty array if you have no treeData. Let me know if that fixes it. If it doesn't, would you mind creating a new issue for that problem?

Thanks for your quick support :)
The placeholder issue is fixed now  :).

So if I'm following this correctly you should be able to copy drag  and drop in another div. My use case is making reusable library of things from a hierarchical tree.

So if I'm following this correctly you should be able to copy drag and drop in another div. My use case is making reusable library of things from a hierarchical tree.

Yes I found it works.


fix(jest-transform): ensure correct config is passed to preprocessors specified multiple times in transform

Fixes #13769.
Summary
Regarding the transform option of Jest configuration, it's not currently possible to use the same preprocessor with different configuration objects for different match patterns. This is because the latest entry in transform for a given preprocessor will always overwrite the configuration of earlier entries. See #13769 for more context.
Implementation
Instead of caching preprocessors and the corresponding configuration based solely on the preprocessor path, we can cache based on the match pattern + preprocessor path pair. While there are different ways of going about this, here I've updated transformCache to use a simple string concatenation of the file match pattern + preprocessor path for its keys. This ensures that the correct configuration can be identified.
Please let me know if you'd prefer an alternative means of solving this problem - I'm happy to adjust.
Test plan
I included a new unit test which validates this case. In addition to ensuring all current tests pass, please let me know if there's any other tests that would be useful to write.

ESLint caught something - you can run yarn lint-ts-files locally to see the error


⚠ Fortnite has degraded performance

In 7b018c5, Fortnite (https://fortnite.com) experienced degraded performance:

HTTP code: 200
Response time: 1653 ms

Resolved: Fortnite performance has improved in b784698.


Cfgtool

Adding a tool to create cfg

Codecov Report

Merging #466 into master will decrease coverage by 0.08%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #466      +/-   ##
==========================================
- Coverage   70.07%   69.98%   -0.09%
==========================================
  Files          42       42
  Lines       13706    13705       -1
==========================================
- Hits         9604     9591      -13
- Misses       4102     4114      +12

Impacted Files
Coverage Δ

tests/test_apk.py
96.55% <0%> (-2.3%)
:arrow_down:

androguard/core/bytecodes/mutf8.py
88.13% <0%> (-1.7%)
:arrow_down:

androguard/core/bytecodes/apk.py
69.53% <0%> (-0.32%)
:arrow_down:

androguard/decompiler/decompiler.py
28.6% <0%> (-0.24%)
:arrow_down:

androguard/core/bytecodes/axml.py
77.21% <0%> (-0.03%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d45d154...f9ca506. Read the comment docs.


add image pull secret for istio init chart.

Please provide a description for what this PR is for.
Merge https://github.com/istio/istio/pull/15472 to release-1.2
And to help us figure out who should review this PR, please
put an X in all the areas that this PR affects.
[ ] Configuration Infrastructure
[ ] Docs
[ X ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

@morvencao: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/e2e_pilotv2_auth_sds.sh
a710519a8c7a4058df5b1aa0d1424e170d19b83a
link
/test istio_auth_sds_e2e-release-1.2

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@morvencao: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/e2e_pilotv2_auth_sds.sh
a710519a8c7a4058df5b1aa0d1424e170d19b83a
link
/test istio_auth_sds_e2e-release-1.2

prow/e2e-simpleTests.sh
a710519a8c7a4058df5b1aa0d1424e170d19b83a
link
/test e2e-simpleTests-release-1.2

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@morvencao: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/e2e_pilotv2_auth_sds.sh
a710519a8c7a4058df5b1aa0d1424e170d19b83a
link
/test istio_auth_sds_e2e-release-1.2

prow/e2e-simpleTests.sh
a710519a8c7a4058df5b1aa0d1424e170d19b83a
link
/test e2e-simpleTests-release-1.2

prow/istio-pilot-e2e-envoyv2-v1alpha3.sh
a710519a8c7a4058df5b1aa0d1424e170d19b83a
link
/test istio-pilot-e2e-envoyv2-v1alpha3-release-1.2

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@morvencao: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/e2e_pilotv2_auth_sds.sh
a710519a8c7a4058df5b1aa0d1424e170d19b83a
link
/test istio_auth_sds_e2e-release-1.2

prow/e2e-simpleTests.sh
a710519a8c7a4058df5b1aa0d1424e170d19b83a
link
/test e2e-simpleTests-release-1.2

prow/istio-pilot-e2e-envoyv2-v1alpha3.sh
a710519a8c7a4058df5b1aa0d1424e170d19b83a
link
/test istio-pilot-e2e-envoyv2-v1alpha3-release-1.2

prow/istio-unit-tests.sh
a710519a8c7a4058df5b1aa0d1424e170d19b83a
link
/test istio-unit-tests-release-1.2

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@morvencao: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/e2e_pilotv2_auth_sds.sh
a710519a8c7a4058df5b1aa0d1424e170d19b83a
link
/test istio_auth_sds_e2e-release-1.2

prow/e2e-simpleTests.sh
a710519a8c7a4058df5b1aa0d1424e170d19b83a
link
/test e2e-simpleTests-release-1.2

prow/istio-pilot-e2e-envoyv2-v1alpha3.sh
a710519a8c7a4058df5b1aa0d1424e170d19b83a
link
/test istio-pilot-e2e-envoyv2-v1alpha3-release-1.2

prow/istio-unit-tests.sh
a710519a8c7a4058df5b1aa0d1424e170d19b83a
link
/test istio-unit-tests-release-1.2

prow/istio-pilot-multicluster-e2e.sh
a710519a8c7a4058df5b1aa0d1424e170d19b83a
link
/test istio-pilot-multicluster-e2e-release-1.2

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


chore: [One-click binding] Mongo db widget query generator

Description
This PR has the implementation to translate a config from one click binding calls to a mongoDB query config. Through this config we can build the correct action.
Fixes #21507
Type of change

New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Jest

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing

Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)

Checklist:
Dev activity

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Test plan has been approved by relevant developers
[ ] Test plan has been peer reviewed by QA
[ ] Cypress test cases have been added and approved by either SDET or manual QA
[ ] Organized project review call with relevant stakeholders after Round 1/2 of QA
[ ] Added Test Plan Approved label after reveiwing all Cypress test

/ok-to-test sha=054564b213ef2ee4ce55b5fb8a4b5cb9a06f6338

/ok-to-test sha=de978ab78aa324784c8752c032fc522a18a0ea29


Newly introduced getCrumb function ignores YF_QUERY_HOST  from yahoo-finance.setGlobalConfig

Bug Report
Describe the bug

The following new code by @gadicc ignores the host setting:
https://github.com/gadicc/node-yahoo-finance2/blob/2a2d9cce7cc450a015eb4c567a3c862e304631b9/src/lib/getCrumb.ts#L282
export default function getCrumb(
  fetch: (url: RequestInfo, init?: RequestInit) => Promise<Response>,
  fetchOptionsBase: RequestInit,
  url = "https://finance.yahoo.com/quote/AAPL",

Minimal Reproduction

yahoo-finance.setGlobalConfig({
  YF_QUERY_HOST: "localhost"
});

is ignored and blocks the CORS workaround.
Environment
Browser or Node: browser
Library version (e.g. 1.10.1):  2.4.4
Additional Context

Right you are, @AndriiNeverov, and thanks for the report.
Unfortunately this is not so easy to solve.  Although we can trivially fix the url used in the initial request, there are about 4-5 subsequent requests which all rely on redirects from Yahoo to specific addresses, unrelated to the query URL.
Can you give me a bit more background about the CORS workaround you're using?  What's on localhost:80 ?  Where is it running?


Added Traditional Chinese translation

Added Traditional Chinese translation

Hi @tsunglung

Any reason for providing the translation as unicode tags instead of just Chinese text? It would be better if the translation was readable to humans.
You need to to provide the select translation file as well (you can just copy the sensor file).

From Python document Python’s string type uses the Unicode Standard for representing characters, which lets Python programs work with all these different possible characters.
Also using
unicode saving is better for multiplatform  (Windows, MacOS, Ubuntu).
And HA core also uses unicode in translation files.
As attachment.
sensor.txt


There is a bug in the first block of code

where definitionId equals to 1, it should actually be $(System.DefinitionId)

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

ID: 46a129c0-8a1c-40c3-47e6-8d95fbce5f26
Version Independent ID: 8437e895-7164-8585-3b0d-adacd05e6851
Content: Using Tasks to Retain Runs in Azure Pipelines - Azure Pipelines
Content Source: docs/pipelines/build/run-retention.md
Product: devops
Technology: devops-cicd-build
GitHub Login: @moswald
Microsoft Alias: maoswald

See also MicrosoftDocs/azure-devops-docs/issues/11668


Reading gzip compressed parquet files

Hello!
How can I read a compressed parquet file ("filename.gz.parquet")?
I tried reading it straight and it's giving me an assertion error:
with open('part-0001.gz.parquet') as fo:
for r in parquet.DictReader(fo): print r
Traceback (most recent call last):
File , line 2, in
File "build/bdist.macosx-10.11-x86_64/egg/parquet/init.py", line 356, in DictReader
File "build/bdist.macosx-10.11-x86_64/egg/parquet/init.py", line 371, in reader
File "build/bdist.macosx-10.11-x86_64/egg/parquet/schema.py", line 12, in init
AssertionError
Thanks!
M

Would love to be able to do that as well!

In my simple testing, I'm able to read gzip compressed files. Do you have an example file, or a way to produce a file that fails? Thanks

Thanks Joe - sorry for the late reply.
I have tried a gz.parquet compressed file and worked fine with your lib - turns out the files I was trying to read has a modified header (probably forced) so the assertion error was caused by the mismatch ... working on a workaround.
Thanks again!
M

I have used the parquet folder for gz.parquet. Both in parquet.reader & parquet.DictReader , when I did not give explicit columns it collpaes wit an error message fromread_data_page in the definition_levels if.


Some operations are blocking and lock if using a global EC

Hi,
I would have loved to investigate more, especially I would have love to know exactly what is going on.
But I unfortunately don't have time right now, so let me explain and hopefully you might have a reasonable explaination:

If you try to call BSONCollection.insert using the global ExecutionContext, the operation never terminate.

From a wild guess, it feel like because something in ReactiveMongo is blocking... that is the only reason I see for this to happen (note that there is no problem by using an other EC), but I might be missing something.
I'm a bit surprised to see such issue with an async library, but to be clear I never had that issue when using read only commands.
Thanks for your help
Alois

I use the global EC with collection inserts all the time without any issue. Could you show more of the code you're using to make the assertion you do? You do realize that it returns a future which will be satisfied asynchronously, right?

@reid-spencer okay that's very good to hear!
I'll take time to have a minimal project reproducing the issue, now that you told me that I start to think the blocking is happening further down the stack, probably by something else than ReactiveMongo!
I'll keep you guys updated, thanks again.

I close it for now, I was not able to reproduce this morning.


fix

What type of PR is this?
/area simulator
/kind cleanup
/kind documentation

What this PR does / why we need it:
I missed very very small nit on #302
Which issue(s) this PR fixes:

Fixes
Special notes for your reviewer:
/label tide/merge-method-squash

/retitle Fix config version on extender docs


Blockchain info (feature request)

feature request: scrape blockchain.info on longpoll to determine block owner.
Ive done some testing and it appears 99% correct. AKA, plenty good for hopping, particularly for deepbit.
By contrast the current LP guessing and IRC system seem utterly broken (perhaps because blockexplorer is down?)
Blockchain info has an API:
http://blockchain.info/api
If I understand it correctly, "Inventory Data" even gives confidence of the block owner.

FYI, from what I understand (which is little,) blockchain is used via the lpworkbench plugin to search and verify blocks.
https://github.com/c00w/bitHopper/blob/master/plugins/lpworkbench/lpworkbench.html
line 74

Euh? That generates the HTML page.
Ill go through the code later, but Im not good enough to implement this properly anyway.
But since Im making feature requests; here is another one thats related.
Now that cgminer has an API that lets you switch pools, wouldnt it be more efficient to have bithopper act as a governor for cgminer pools?  I would think if nothing else, that would help reduce stales considerably and make the hole thing so much easier. Basically all youd have to do is scrape blockchain (and perhaps a few other sources as backup) and direct cgminer instances to the best pool.


chore: delete alert for grafana konflux-up

We have a generic check for absent konflux_up metrics so we don't need to maintain a specific alert for the grafana datasource konflux_up.

/lgtm
/approve


feat: config option to display the domain name instead of an ip address

Is your feature request related to a problem? Please describe.
It should be possible to display the domain name instead of an ip address in the discord embed.

wont be implemented as it's probably better to always display the ip address (and port) that the server advertises via the query port.


Use intptr_t instead of size_t  for handle types

Related: #1913
Handles are pointers. intptr_t should be used as a representative type.

[ ] cublas
[ ] cusolver  #2718
[ ] cusparse
[ ] cudnn

Would it be better to use intptr_t in #2709 as well?

Yes, but there may be a room for discussion on how to define these types: https://github.com/cupy/cupy/pull/2718#issuecomment-558891688

Should it be intptr_t or uintptr_t?

It shouldn't matter much, but I think intptr_t is more natural because Python int is a signed integer.


Add Binary Editor Feature

Hi
I am requesting that an option to open a file in the binary editor like in visual studio should be added into visual studio code
Thanks in Advance

found it's not possible to implement this feature using extension API

Could it not be implemented as a core feature then ?

Any ETA on this yet?

definitely needed feature. watching for it ..

There is at least a viewing extension now: https://marketplace.visualstudio.com/items?itemName=slevesque.vscode-hexdump

This is the key impediment to me implementing my work in VSCode. I would dearly love to move my focus from atom to VSCode.

@dave5 did you try https://marketplace.visualstudio.com/items?itemName=slevesque.vscode-hexdump ?

I looked at it. I didn't feel that it got me to where I wanted. I will revisit when I have some more bandwidth, but I was keen for the ability to write extensions that handled arbitrary file types. My processes get fairly complex and having to roll my own file parsing to get around this restriction is an added overhead.

Yes, I had a further play. The approach works ok if I am happy to explicitly point to the file from within the extension, but I want to click on the file and have VSCode hand off rendering transparently... see here.
The "else" at the bottom of vscode/src/vs/base/browser/ui/resourceviewer/resourceViewer.ts seems to preclude this as a possibility right now...

The simple fact that VSCode aborts opening a file because it doesn't recognize its format is a VSCode bug. This thread isn't requesting a feature missing from VSCode, it's describing a bug in VSCode. Only work-around I've found is to keep Notepad in my Send To menu, and the whole idea of VSCode is to offer a better alternative to Notepad, something it's thus far falling short of.

@af4jm Do you know where this check is in the source so i can take a look?

Look in: vscode/src/vs/base/browser/ui/resourceviewer/resourceViewer.ts

What is the status of this feature request? Will it be added to committed portion of the backlog? When?

It would be nice if we could at least get the filename and filepath of binary files that are open in the editor.
A use case would be opening an encrypted file using an extension.

Just give me something about the file stat infomation or anyother information. I think it is very nice.

Should VSCodeBot be added to this feature request for tracking purposes?

It really would be nice to get some official word on this. The extension is cool and all, but it's a viewer, not an editor (as requested) and I share the opinion that not opening binary files is a bug. This feature should not be served by an extension.

I think hexdump is good for "real" binary-files. But if you have "mixed"-files, like the screenshots from @Ethan-VisualVocal shows, it should be possible show all with line-feeds.
I personally have logfiles (max. 4MB), including Timestamp and transfered data from different interfaces, which can contain some binary-values.

See all I need is the file path to a binary file. That way I can decrypt the file before opening it into the editor.
To make things more interesting, some files can be opened that contain invalid data. For instance this is an image of the editor displaying a pdf file raw.

As a bootstrap to this feature you could put some plain file information about the binary file, as:
modified date, path, size, a button to open with OS editor, this simplier things that helps a lot.

Hexdump is a great extension but i think also this feature should be served from vscode not a extension.
And it would be create to have the option to open files directly in "hex-view" like the context menu entry from PSPad

If a user opens a binary file that my VSCode extension recognizes, I would like my VSCode extension to override the default view of "binary or unsupported text encoding" and show a custom view instead.

Any update on this? I'm finding myself in need a hex editor and I would prefer to use VS Code if it had a proper editor. Hex Dump is lacking for anything more than viewing the file.

Can you provide binary editing and highlighting? Can it be like Synalyze It?

Shame that there's only clumsy ways to operate with binary files. And why vscode still unable to edit hexadecimal files? Universal as said but no hexadecimal files support. Viewing is almost ok. Still need adequate hex editing.

i am not vscode developer but i use it pretty much for every type of
project. this binary editing feature request is being here for a long long
time. so i guess, its not just me, there are other people who would like to
be able to edit binary files by hex values.
if vscode depends on file extensions extensively to open and recognize
files, i would suggest to keep a track of supported file types (built-in
and by extensions) and fallback by default to some hex editing view if no
known file extension is found. of course users may want to switch file type
but thats already available there.
Best wishes -
Asif Mahmud Shimon
On Thu, Oct 3, 2019 at 1:19 AM Andrew<EMAIL_ADDRESS>wrote:

Shame that there's only clumsy ways to operate with binary files. And why
vscode still unable to edit hexadecimal files? Universal as said but no
hexadecimal files support. Viewing is almost ok. Still need adequate hex
editing.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/2582?email_source=notifications&email_token=ABLQLUVMNMJY3DR4JCNELUTQMTX5FA5CNFSM4B2AJKE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAF3WCY#issuecomment-537639691,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABLQLUUDFSMEVH7CNTUYDLLQMTX5FANCNFSM4B2AJKEQ
.

Could #82115 be a solution to this? I read the release notes for the latest version and one thing that stood out was that image preview was not an extension of its own. That surprised me, because I knew the API didn't issue onDocumentOpen events for non-text and non-PDF files, which was a major blocker for this functionality and others (like my idea for video previewer). The linked issue looks like it could allow one to associate (wildcard or at least some specific) binary extensions with a custom editor!
I would still like this to be a built-in VS Code feature as I believe editing experience is too core and there is a risk of delegating it to a 3rd party extension in that it might have a UI which doesn't feel native, support accessiblity, localization, keyboard shortcuts etc. the same way and stay behind on important developments to the core editing experience, but it's definitely better than nothing!

I'm attempting to implement this:
https://github.com/sportshead/vscode/tree/issue-2582-hex-editor
Feel free to try and help me!

It seems like this thread is conflating three entirely different use cases:

Ability to "on demand" allow extensions to decode on open, allow editing of the decoded content, and then re-encode on save.  This supports binary formats like Applescript's (scpt) files.  This functionality already exists for extensions in alternative editors like Atom.  It's also necessary for existing extensions (i.e. Applescript idleberg.applescript) which suffer from this limitation.

Ability to open files that VSCode believes to be binary, but are believed by users to be editable.  This could extend to pseudo text formats like RTF or PDF where it is possible to edit the files in a text editor to achieve desired results as long as the encoded headers of the file don't become mutated by VSCode.  Allowing this through extension override and insuring VSCode doesn't mutate any displayed control characters on open/save seems a reasonable approach and can be achieved in many text editors like notepad and textedit.

Ability to open purely binary codes to introspect or edit, such as being repeatedly suggested via Hex Dump extension.  While a great extension, it's entirely unrelated to use case #1 and #2 which seems to be the missing functionality that is actually being asked for in this thread.  And no doubt having those capabilities would allow for even more functional hex extensions in the future.

Just an observation.

I believe a lot of these cases will become possible with the release of 1.4.6 and the custom editor API which is currently in a proposed state. https://code.visualstudio.com/api/extension-guides/custom-editors. This milestone does currently contain a hex editor implementation utilizing that API that I will be working on in the next couple of months. I welcome everyone's feedback to what they would like to see in a custom hex editor.

The hex editor extension adds support for both viewing and editing binary files
Give it a try. If there any features you think are missing, please open new issues against that extension


Routes: path outlines

Description
Adds a darker outline effect to route paths so they stand out more visibly from the map background.
Unfortunately, Mapbox-GL hasn't been thought for that: there is no way of applying a border or shadow to line items with style only and there is now way to apply an arbitrary JS function to dynamic values extracted with style expressions.
To get around these limitations, I had to draw each line twice:

a first one with a darker color (computed in advance using a dedicated library) and large width.
a second one on top of the first with the normal color and a smaller width.

This works and looks great but this involves some data duplication and doubles the drawing job for Mapbox-GL, which may impact performances. Maybe it's worth putting this feature behind a flag we can toggle conditionally…
What do you think?
Why
Improve the legibility of route paths on the map, especially for public transport lines which can have low contrast colors and for grayed out alternatives.
Screenshots

Before
After

Version
Lignes 14 et 7
Ligne 8

Actuelle. Épaisseur 7, noir 20%

Épaisseur 7, noir 33%

Épaisseur 7, noir 33%

Épaisseur 8, noir 20%

Épaisseur 8, noir 33%


How can I add custom property to telemtry?

Hi!
I have ASP .NET Core app, built on .NET 6.
Microsoft.ApplicationInsights.AspNetCore, version 2.20.0
Here is telemetry item which shows incoming http request:

I want to add some custom information to telemetry items. It would be great if I could choose which telemetry items should contain it, which shouldn't. But it would be nice even if I could add necessary information to all telemetry items without being able to choose specific telemetry items.
I thought I need to add something into Bag or into Tag of corresponding activity. I did that.
var activityFeature = context.Features.Get<IHttpActivityFeature>();
activityFeature?.Activity.AddBaggage("TenanId", tenantId);
activityFeature?.Activity.AddTag("TenantIdTag", tenantId);

As a result I don't see neither TenanId nor TenantIdTag in telemetry item.
I see TenanId set as property in the logs. But I want to see it in telemetry.
Is it possible to do that?

You have a couple of options:

Add an ITelemetryInitializer to the services collection in ConfigureServices to augment all telemetry items (not just requests, but dependencies, exceptions and traces).
Add middleware that gets the current RequestTelemetry from the HttpContext features (i.e. var requestTelemetry = context.Features.Get<RequestTelemetry>();). You can then add to the Properties bag on the RequestTelemetry.

@verdysh, yes you can use TelemetryInitializers with any application.
See also this doc: https://docs.microsoft.com/azure/azure-monitor/app/api-filtering-sampling

Thanks!


Microsoft.Subscriptions 2021-01-01-privatepreview

MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Changelog
Please ensure to add changelog with this PR by answering the following questions.

What's the purpose of the update?

[ ] new service onboarding
[x] new API version
[ ] update existing version for new feature
[ ] update existing version to fix swagger quality issue in s360
[ ] Other, please clarify

When you are targeting to deploy new service/feature to public regions? Please provide date, or month to public if date is not available yet.
Already deployed
When you expect to publish swagger? Please provide date, or month to public if date is not available yet.
By end of this month, As soon as, possible
If it's an update to existing version,  please select SDKs of specific language and CLIs that require refresh after swagger is published.

[x] SDK of .NET (need service team to ensure code readiness)
[x] SDK of Python
[ ] SDK of Java
[ ] SDK of Js
[ ] SDK of Go
[ ] PowerShell
[ ] CLI
[ ] Terraform
[ ] No, no need to refresh for updates in this PR

Contribution checklist:

[x] I commit to follow the Breaking Change Policy of "no breaking changes"
[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

[x] Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.

Adding new API(s)
Adding a new API version
[ ] Ensure to copy the existing version into new directory structure for first commit (including refactoring) and then push new changes including version updates in separate commits. This is required to review the changes efficiently.
Adding a new service

[ ] Please ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If there are following updates in the PR, ensure to request an approval from Breaking Change Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in stable version
[ ] Removing properties in stable version
[ ] Removing API version(s) in stable version
[x] Updating API in stable or public preview version with Breaking Change Validation errors
[ ] Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
Please follow the link to find more details on PR review process.

The swagger was mostly reviewed and updated in this PR - https://github.com/Azure/azure-rest-api-specs/pull/12551. However, we had to move it to a new version and make a few changes that this PR includes. Thanks!

The automatic checks failing are the following -
Swagger LintDiff with "RequiredReadOnlySystemData" for which we want an exception for now
The other failure is "Cross-Version Breaking Changes" which is expected

Closing this pull request as the intention of the authors is not clear.  It is not appropriate to check in a private preview api here, nor to name a version 'privatepreview'


feat(declarative) add the ability to use "$ref" references

This borrows from JSONschema and OpenAPI. Any value can now have a $ref entry, eg. json:
  "my_key": { "$ref": "#/components/some/value" }

A new top level entry components is introduced to hold reusable objects and values.
An additional commit fixes the Lua declarative input parsing and error handling.

First, the conceptual review:
I'm very much not a fan of this approach. It starts building a mini ad hoc programming language on top of the declarative config format. This is the kind of thing that is best left to configuration front-end tools, like Dhall, ytt and I'm sure there are others. Backreferences as implemented in this PR is only one of the various things that people do with configuration front-end tools: variable interpolation, conditionals and loops are others.
Then, the implementation review:
The code itself looks fine, but if this were to be added, then the _format_version number needs to be bumped and version compatibility checks need to be added to the code. Also, the top-level components entry is a breaking change because a custom plugin could have an entity with that name (metadata fields need a preceding _).
The Lua fix commit is welcome — I casually hit into that just now when looking at #5021. .lua is currently supported by db_import (modulo the brokenness you fixed) but not by DB-less (though we could revisit that decision: it was mostly a lack of a decision to include it at the time, not a decision to exclude it).

@Tieske Why is this needed in the first place though?
Can YAML's de-referencing not solve most (not all) of these duplication problems?


final specifier in derived classes

x86-64 gcc 12.2 with -O3
Without final specifier:
#include <iostream>

class Base
{
public:
    virtual ~Base() = default;
    virtual void f() const = 0;
};

class Derived : public Base
{
public:
    void f() const override { std::cout << "Derived\n"; }
};

void call_f(const Derived& d) {
    d.f();
}

.LC0:
        .string "Derived\n"
Derived::f() const:
        mov     edx, 8
        mov     esi, OFFSET FLAT:.LC0
        mov     edi, OFFSET FLAT:_ZSt4cout
        jmp     std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)
call_f(Derived const&):
        mov     rax, QWORD PTR [rdi]
        mov     rax, QWORD PTR [rax+16]
        cmp     rax, OFFSET FLAT:Derived::f() const
        jne     .L4
        mov     edx, 8
        mov     esi, OFFSET FLAT:.LC0
        mov     edi, OFFSET FLAT:_ZSt4cout
        jmp     std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)
.L4:
        jmp     rax
_GLOBAL__sub_I_call_f(Derived const&):
        sub     rsp, 8
        mov     edi, OFFSET FLAT:_ZStL8__ioinit
        call    std::ios_base::Init::Init() [complete object constructor]
        mov     edx, OFFSET FLAT:__dso_handle
        mov     esi, OFFSET FLAT:_ZStL8__ioinit
        mov     edi, OFFSET FLAT:_ZNSt8ios_base4InitD1Ev
        add     rsp, 8
        jmp     __cxa_atexit

With final specifier:
#include <iostream>

class Base
{
public:
    virtual ~Base() = default;
    virtual void f() const = 0;
};

class Derived final : public Base
{
public:
    void f() const override { std::cout << "Derived\n"; }
};

void call_f(const Derived& d) {
    d.f();
}

.LC0:
        .string "Derived\n"
call_f(Derived const&):
        mov     edx, 8
        mov     esi, OFFSET FLAT:.LC0
        mov     edi, OFFSET FLAT:_ZSt4cout
        jmp     std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)
_GLOBAL__sub_I_call_f(Derived const&):
        sub     rsp, 8
        mov     edi, OFFSET FLAT:_ZStL8__ioinit
        call    std::ios_base::Init::Init() [complete object constructor]
        mov     edx, OFFSET FLAT:__dso_handle
        mov     esi, OFFSET FLAT:_ZStL8__ioinit
        mov     edi, OFFSET FLAT:_ZNSt8ios_base4InitD1Ev
        add     rsp, 8
        jmp     __cxa_atexit

[+] In rare places performance boost
[+] More convinient interface
[+] Easy to add
if I do it, will you accept it?

What specific types do you think would benefit from being marked as final?

Beyond a technical perspective, you also need to consider this from an API design side.
While we do not recommend to derive from SFML classes and much rather promote composition instead, applying the final keyword turns this "recommendation" into a "restriction" - users simply cannot derive from SFML classes anymore.
Maybe we can find a set of classes, which we believe really shouldn't be extended any further, but I don't think we should apply it to every derived class.

Beyond a technical perspective, you also need to consider this from an API design side.
While we do not recommend to derive from SFML classes and much rather promote composition instead, applying the final keyword turns this "recommendation" into a "restriction" - users simply cannot derive from SFML classes anymore.
Maybe we can find a set of classes, which we believe really shouldn't be extended any further, but I don't think we should apply it to every derived class.

What can I do to help the development of SFML? I adore this library

What can I do to help the development of SFML? I adore this library

Review any open PRs in case you can find issues with them. Approve the ones you understand and know are good. The issues you've opened require making radical changes. I'd recommend looking for smaller changes to start with.


APIv2: Add missing methods + tests

@valentijnscholten, I hope using get_open_api3_json_schema is enough

Late merge broke new things (like https://github.com/DefectDojo/django-DefectDojo/pull/4711#issuecomment-869002126)
Fixed in #4721


Update app.py

@krishnapaparaju Your image is available in the registry: docker pull registry.devshift.net/fabric8-analytics/api-machine-stacks:SNAPSHOT-PR-11


Import nested library namespaces should import parent library

Environment data

Language Server version: 2021.7.2
OS and version: Linux
Python version (& distribution if applicable, e.g. Anaconda): Python 3.7

Repro

Open Python file and add "import os.path"
Type "os." to bring up autocompletion list

Expected behaviour
Autocompletion list should display both apis from os and os.path. Almost as though as there was both "import os" and "import os.path" statements.

Actual behaviour
Autocompletion list only displays apis from os.path and nothing from os.

Logs
N/A
Code Snippet / Additional information
import os.path
os.

Importing from os.path does not guarantee that all symbols in os are also imported. While it may happen to work at runtime, this is a fragile side effect of the Python import mechanism that you cannot rely upon. If you want to use symbols exported by os, you need to import it separately.

I don't think that's the case. When would python not load os in this case, for example? It's necessary because you must be able to write "os.path", which means "os" must work. This isn't a case where a side effect causes some other module to be present; if you import a submodule, the tree must all be available.

It depends on how the other symbol happens to be declared. If the symbol is a separate submodule, for example, it may not be referenced by the __init__.py of the parent module, and it won't be available.
If you want to use a symbol from a particular module, you import that module. You should never import another module (e.g. a submodule or a parent module) and assume that all of the symbols will be imported properly.


test-branch/execute-job/wrong-commit-sha-on-pr/db6c7e95-a7bd-45f6-808d-83060eae4504

PR for testing dea39a31fc9ae246fe1e74b0cfa2de88dcd6ce5a

/canonical/self-hosted-runners/run-workflows 931ad21dd9ace68aaa0a7d341e94de96ad93fa6b