add kube context to argocd login cmd

Codecov Report

Merging #326 (16eef08) into main (f542797) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #326   +/-   ##
=======================================
  Coverage   60.44%   60.44%
=======================================
  Files          17       17
  Lines        3036     3036
=======================================
  Hits         1835     1835
  Misses       1101     1101
  Partials      100      100

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


Minimum-cost flow problem

https://arxiv.org/abs/1207.6381
Implement cycle-cancelling,  network simplex and cost scaling

cycle cancelling
ab9c021378f0a44523ace59cdc4780f72543184b
cost scaling
b16233fca80e3a84639516899ef1af538227dae9
network simplex not implemented


d3.medianIndex()

I suggest to also have a function d3.medianIndex(). E.g. it could return an array

with one element: the index of the corresponding element - in case the array.length is uneven
with two elements: the indices of the elements from which the mean was taken - in case the array.length is even

Related: #138; in both cases we're trying to get better access to the value we've located in the array.

I've tried to implement d3.quantileIndex in https://observablehq.com/d/c6c8a233930664d8 ;  in order to keep track of the indices, we need to create an array of indices, then call quickselect on that array with a comparator that looks up the values in the original array. It's a quite bit more difficult to track, and implies the reservation of more memory.
Another option is to seek the indices after determining the quantile, by running through the values to find the closest inferior and closest superior values (see the "Alternative" part of the notebook). This approach is leaner, and the added time is negligible.
In terms of API I'd rather always return an array of two indices—which may be identical for odd lengths.
Of course d3.medianIndex(values, valueof) would be d3.quantileIndex(values, 0.5, valueof)

Thanks Fil! Looks great to me, also agree on your suggestion for the cleaner API.


Output is not a standard VCF file

When using IGV to view the result VCF file from IndelMiner the indexing tool gives an error:
java -Xmx1500m  -jar igvtools.jar index indelminer.vcf
ERROR [2015-06-25 13:25:38,859]  [IgvTools.java:230] [main]  Your input file has a malformed header: We never saw the required CHROM header line (starting with one #) for the input VCF file

Any help is very welcome.

Thanks for reporting this issue. It is fixed in the latest update to the code.


Getting Invalid two-factor code.

Hi almatrass, I am keep getting the "Invalid two-factor code" when I click trade button. I provided the 2FA secret provided by Opskin when 2FA set up. This 2FA secret should be Bot side secret code (8 characters mixed with number and alphabet) right ?
Or am I doing something wrong ?

@RatexIndex Sorry, my bad. I confused between secret code and recovery code.
Thanks for your help.


remove Collaborations and the middleware maintaining it

Will this require an FE change?

The required FE changes are in https://github.com/Atypon-OpenSource/manuscripts-article-editor/pull/311


[spirv] Consolidate command-line option usage

MLIR allows one to declare pass (pipeline) options directly on the
pass (pipeline) class. While convenient, it can be problematic when
we need to organize the pass into a pipeline into some other bigger
pipeline. It ends up that we need to duplicate the same command-line
option three times: in the pass itself for testing with the pass
directly, in the pass pipeline in order to test via the pass pipeline,
and finally in the pass pipeline caller again for constructing the
pass pipeline.
This commit consolidates the above into one place where we define
a single copy of the command-line option and use helper functions
to read it wherever it's needed.
Fixes https://github.com/google/iree/issues/3640

I think eventually most of these options will be gone: vectorization should be default on and workgroup memory should be default on pending the target environment. I think what we have is an intermediate state here. I feel the benefits of trying to future improve to save a few characteristics in the cl invocation is arguable. Also trying to shoehorn these options into Pass specific options is quite unintuitive: it would be quite surprising for me at least that Pass (pipeline) A/B/C's option comes from another Pass D. WDYT?


Broken [Source] links in docs

📚 Documentation
Hello, I was browsing the docs, and out of curiosity, I wanted to check the source for LightningModule, and so I clicked on the [Source] link of the forward method. The link, however, sends to https://github.com/PyTorchLightning/PyTorch-Lightning/blob/pytorch_lightning/core/lightning/LightningModule.py, which is not right, as the repo name is "pytorch-lightning".
I am not familiar with Sphinx, but I checked the docs and the conf file, and I think that the reason can be found here:
https://github.com/PyTorchLightning/pytorch-lightning/blob/ee4eae884b137054e10f21a44f0d1d427405e310/docs/source/conf.py#L59-L71
Since github-repo is set to project, which is, indeed, PyTorch-Lightning, as in the broken link.
If someone more familiar with Sphinx can confirm this, I'd be glad to submit a PR to fix this.

@awaelchli mind have look? 🐰

@dedeswim so the reason you pointed out is not exactly why a wrong link is being generated for LightningModule.
https://github.com/PyTorchLightning/pytorch-lightning/blob/master/docs/source/conf.py#L347
The function linkcode_resolve generates the 'source' links in the doc and that is giving out the wrong link for LightningModule. If you see the link generated for say TrainResult class, it links to the master branch and the exact line number for the methods, which is not the case here.

btw, need to keep compatibility with tagged releases as well as with master...

Hi, thank you @ananyahjha93 for the explanation!
I indeed realized that the link should go to "pytorch_lightning/core/lightning.py", instead of "pytorch_lightning/core/lightning/LightningModule.py".
Interestingly, the 0.8.5 version of the docs redirects to the right link (the one above), whereas the "0.9.0", "latest" and "stable" versions (which are the same version, right?) don't work.

ok, then we may have the wrong path in docs, is it only this case or all docs have wrong links?

I tried with all the other classes under the "Python API" section of the bar on the right in the docs and it looks like this is the only one broken

ok, then it is nothing with linkcode_resolve but just wrong link in docs, mind send a PR fix
https://github.com/PyTorchLightning/pytorch-lightning/blob/4d98419bb84e06c06aaee0a86530e322e24f6d11/pytorch_lightning/core/lightning.py#L136

I'd be happy to, but I am not sure about how to fix this. Where is the path to the source defined? Isn't it generated by linkcode_resolve?

@Borda others are correct, LightningModule is the only one that seems broken.

it looks like this is because in the .rst docs we refer to the methods with autofunction instead of automethod. it seems to solve the link issue, but breaks formatting of docs, need to figure out how to  properly use it.

@Borda or @awaelchli is there a specific reason using linkcode extension?
if not, shall we use this extension https://www.sphinx-doc.org/en/master/usage/extensions/viewcode.html?
this creates _modules folder for source code and link to that folder. PyTorch is using this also.
It also solves this issue using automethod, autofunction won't work just like @awaelchli comment.
I discovered that PyTorch docs doesn't refer to source code for methods, so we need to add some css to the forked theme.
Here's the tried output:
It doesn't show self which is pretty normal I think, just like methods of other classes.

@ydcjeff nice, could you make a draft PR so we can try it out?

@awaelchli with viewcode extension?

so you say it's a two step fix.

viewcode, which solves the problem with linked source code, but we lose methods source code
add the custom css to the theme

if it can consistently link all classes, methods and functions, I think this is what we want.

Yes, pytorch sphinx theme doesn't include css for directly linking methods.
So, we need to add it. I think viewcode works with all modules, classes, methods and functions.
But i will try with all to make sure it works and i will draft a PR

just testing and sure if it is a better way as before it linked to GitHub source and you simply create a perm link...


Fix history bug and add bells in analysis.py

Pull Request
Description
Analysis.py results were inconsistent because run.history() was pulling 500 random steps instead of the whole history. Fixed that.
Bells and whistles:

Added epoch number to the legend label for easier assessment. May be redundant, happy to remove it

How Has This Been Tested?
Ran analysis.py several times for the same set of runs to make sure it gave consistent results; separately tested that run.lastHistoryStep was working as expected

[X] Yes

Checklist:

[X] My code follows OCF's coding style guidelines
[X] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[X] I have checked my code and corrected any misspellings

@peterdudfield turns out I made the change and never merged, mind taking a quick look when you have a minute?


speed calculator is created.

Related Issue
#5254
fix #[issue number that will be closed through this PR]
Describe the changes you've made
I have created the speed calculator if distance and time of an object is given.
Checklist:

[ ] My code follows the style guidelines of this project.
[ ] I have performed a self-review of my own code.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[ ] My changes generate no new warnings.

Screenshots

Original
Updated

original screenshot
updated screenshot

please review it and guide me for further changes. @sairish2001 @arpit456jain

Please explain it, I didn't get exactly what do.
On Mon, Jun 21, 2021, 14:36 Rajinderpal Singh @.***>
wrote:

@.**** requested changes on this pull request.
You need to add option for it, also under General Maths section.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/makesmatheasy/makesmatheasy/pull/5296#pullrequestreview-688196139,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARVI6WKCDMZFLZ7KMAC67ILTT36JTANCNFSM47BEVAFA
.

I am not able to find the general maths section
On Mon, Jun 21, 2021, 14:48 Jugesh Raghav @.***>
wrote:

Please explain it, I didn't get exactly what do.
On Mon, Jun 21, 2021, 14:36 Rajinderpal Singh @.***>
wrote:

@.**** requested changes on this pull request.
You need to add option for it, also under General Maths section.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/makesmatheasy/makesmatheasy/pull/5296#pullrequestreview-688196139,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARVI6WKCDMZFLZ7KMAC67ILTT36JTANCNFSM47BEVAFA
.

after trigonometry section  @jugeshraghav

In the code 😓
On Tue, Jun 22, 2021, 12:48 111arpit1 @.***> wrote:

[image: image]
https://user-images.githubusercontent.com/55352601/122880747-f6227180-d357-11eb-81a3-09193e53f935.png
after trigonometry section @jugeshraghav https://github.com/jugeshraghav
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/makesmatheasy/makesmatheasy/pull/5296#issuecomment-865663452,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARVI6WIPTPBRR6WKUS6CSODTUA2LTANCNFSM47BEVAFA
.

I have added the calculator in the general maths section . Please review the changes. @sairish2001  @arpit456jain

ok great @jugeshraghav we will merge your PR soon :)

Thank you so much😇
On Tue, Jun 22, 2021, 14:06 111arpit1 @.***> wrote:

ok great @jugeshraghav https://github.com/jugeshraghav we will merge
your PR soon :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/makesmatheasy/makesmatheasy/pull/5296#issuecomment-865735599,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARVI6WJWE5Q5QP5SQXHNF3DTUBDQRANCNFSM47BEVAFA
.

..


Revert "Migrate istio.io test for SDS to istioctl instead of helm template"

Reverts istio/istio#20035

@howardjohn: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

lint_istio
7c03240f64d03422004ac6946cdc341c6e6c6c5f
link
/test lint_istio

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.

/retest

@howardjohn: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

unit-tests_istio
7c03240f64d03422004ac6946cdc341c6e6c6c5f
link
/test unit-tests_istio

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.

/retest


QA the new Pre-Reading material

Describe the issue
We want the onboarding cloud journey to point to a dynamic set of pre-reading material content
Additional context

https://developer.gov.bc.ca/Cloud-Pathfinder-Onboarding-Journey/Evaluation
It's already live on cloud-pathfinder org

Definition of done

QA for content flow and English etc by Dana (proof-read)
QA for last details from PO after above QA

Working on the feedback today, will be sending @prabhukiran9999 initial edits by end of day 4/28 to make sure I'm on the right track with what he's looking for.

Blocked due to availability

Already shipped!


Deprecation notice

When running the script I get the following warning.
DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
I don't know enough about node or JavaScript to know what to change to. I really look forward to using this, so help would be much appreciated

hi do not worry, just ignore the warning. I will change it in later version.


Mono/C# project run failed due to assembly missing in Godot 3.2

Godot version:
3.2 (4f00a2c645b01a52c4602f0e37d47f0312d8a62b)
OS/device including version:
Windows 10
Visual Studio 2019
Mono 6.8
Issue description:
C#/Mono assembly doesn't load for game project when running game from editor.
Sample project added in attachement.
Sample debug log in Debug logs section at page bottom.
HINT: Project open in enditor is without any errors
HINT: ERROR IN EDITOR
E 0:00:00.794   CSharpScript::can_instance: Cannot instance script because the project assembly is not loaded. Script: 'res://Pos.cs'.
<Błąd C++>    Method failed. Returning: 0
<Źródło C++>  modules\mono\csharp_script.cpp:2896 @ CSharpScript::can_instance()

Steps to reproduce:

Create Mono project
Add script for C#
Attach c# script to node
Make scene with this node
Run project

Minimal reproduction project:
MonoTest__Godot.zip
Debug logs
Godot Engine v3.2.2.rc.mono.custom_build.4f00a2c64 - https://godotengine.org
OpenGL ES 3.0 Renderer: GeForce RTX 2080/PCIe/SSE2

Mono: Logfile is: C:\Users\user\AppData\Roaming/Godot/mono/mono_logs/2020_04_06 17.33.15 (14600).txt
Editing project: D:/pro/MonoTest__Godot (D:::pro::MonoTest__Godot)
Godot Engine v3.2.2.rc.mono.custom_build.4f00a2c64 - https://godotengine.org
Using GLES3 video driver
OpenGL ES 3.0 Renderer: GeForce RTX 2080/PCIe/SSE2
WASAPI: wFormatTag = 65534
WASAPI: nChannels = 6
WASAPI: nSamplesPerSec = 96000
WASAPI: nAvgBytesPerSec = 2304000
WASAPI: nBlockAlign = 24
WASAPI: wBitsPerSample = 32
WASAPI: cbSize = 22
WASAPI: detected 6 channels
WASAPI: audio buffer frames: 1954 calculated latency: 44ms

Mono: Initializing module...
Mono JIT compiler version 6.8.0 (Visual Studio built mono)
Mono: Logfile is: C:\Users\user\AppData\Roaming/Godot/mono/mono_logs/2020_04_06 17.33.18 (17380).txt
Mono: Runtime initialized
Mono: Loading assembly mscorlib...
Mono: Assembly mscorlib loaded from path: C:\Program Files\Mono\lib\/mono/4.5/mscorlib.dll
Mono: Loading scripts domain...
Mono: Creating domain 'GodotEngine.Domain.Scripts'...
Mono: INITIALIZED
Mono: Loading assembly GodotSharp...
Mono: Assembly GodotSharp loaded from path: res://.mono/assemblies/Debug/GodotSharp.dll
Mono: Loading assembly GodotSharpEditor...
Mono: Assembly GodotSharpEditor loaded from path: res://.mono/assemblies/Debug/GodotSharpEditor.dll
Mono: Loading assembly GodotTools...
Mono: Assembly GodotTools loaded from path: D:\apl\Godot32\bin/GodotSharp/Tools/GodotTools.dll
Mono: Loading assembly GodotTools.ProjectEditor...
Mono: Assembly GodotTools.ProjectEditor loaded from path: D:\apl\Godot32\bin/GodotSharp/Tools/GodotTools.ProjectEditor.dll
Mono: Loading assembly MonoTest...
Mono: Failed to load project assembly
CORE API HASH:<PHONE_NUMBER>0190187833
EDITOR API HASH:<PHONE_NUMBER>984561398
Loading resource: res://default_env.tres
Construct gdnative interface

Destruct gdnative interface

Loading resource: C:\Users/user/AppData/Roaming/Godot/editor_settings-3.tres
EditorSettings: Load OK!
Loaded builtin certs
EditorSettings: Save OK!
erasing C:\Users\user\AppData\Roaming/Godot/projects/MonoTest__Godot-45487c83696f8d470397cea922c4d143/filesystem_update4
Loading resource: res://World.tscn
Loading resource: res://Pos.tscn
Loading resource: res://Pos.cs
Loading resource: res://Pos.tscn
Unicode error: invalid skip
Running: "D:\apl\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe" "D:/pro/MonoTest__Godot/MonoTest.sln" /v:normal /t:Build "/p:Configuration=Debug" "/l:GodotTools.BuildLogger.GodotBuildLogger,D:\apl\Godot32\bin\GodotSharp\Tools\GodotTools.BuildLogger.dll;C:\Users\user\AppData\Roaming/Godot/mono/build_logs\4132ff618b78383feadc800ff89fc014_Debug" /p:GodotDefineConstants="GODOT_WINDOWS;GODOT_64;"
Running: D:\apl\Godot32\bin\godot.windows.opt.tools.64.mono.exe --path D:/pro/MonoTest__Godot --remote-debug <IP_ADDRESS>:6007 --allow_focus_steal_pid 17380 --position 768,420
Godot Engine v3.2.2.rc.mono.custom_build.4f00a2c64 - https://godotengine.org
Using GLES3 video driver
OpenGL ES 3.0 Renderer: GeForce RTX 2080/PCIe/SSE2
WASAPI: wFormatTag = 65534
WASAPI: nChannels = 6
WASAPI: nSamplesPerSec = 96000
WASAPI: nAvgBytesPerSec = 2304000
WASAPI: nBlockAlign = 24
WASAPI: wBitsPerSample = 32
WASAPI: cbSize = 22
WASAPI: detected 6 channels
WASAPI: audio buffer frames: 1954 calculated latency: 44ms

Mono: Initializing module...
Mono JIT compiler version 6.8.0 (Visual Studio built mono)
Mono: Logfile is: C:\Users\user\AppData\Roaming/Godot/mono/mono_logs/2020_04_06 17.34.16 (7908).txt
Mono: Runtime initialized
Mono: Loading assembly mscorlib...
Mono: Assembly mscorlib loaded from path: C:\Program Files\Mono\lib\/mono/4.5/mscorlib.dll
Mono: Loading scripts domain...
Mono: Creating domain 'GodotEngine.Domain.Scripts'...
Mono: INITIALIZED
Mono: Loading assembly GodotSharp...
Mono: Assembly GodotSharp loaded from path: res://.mono/assemblies/Debug/GodotSharp.dll
Mono: Loading assembly GodotSharpEditor...
Mono: Assembly GodotSharpEditor loaded from path: res://.mono/assemblies/Debug/GodotSharpEditor.dll
Mono: Loading assembly GodotTools...
Mono: Assembly GodotTools loaded from path: D:\apl\Godot32\bin/GodotSharp/Tools/GodotTools.dll
Mono: Loading assembly GodotTools.ProjectEditor...
Mono: Assembly GodotTools.ProjectEditor loaded from path: D:\apl\Godot32\bin/GodotSharp/Tools/GodotTools.ProjectEditor.dll
Mono: Loading assembly MonoTest...
Mono: Failed to load project assembly
CORE API HASH:<PHONE_NUMBER>0190187833
EDITOR API HASH:<PHONE_NUMBER>984561398
Loading resource: res://default_env.tres
Loaded builtin certs
Loading resource: res://World.tscn
Loading resource: res://Pos.tscn
Loading resource: res://Pos.cs
ERROR: Cannot instance script because the project assembly is not loaded. Script: 'res://Pos.cs'.
   At: modules\mono\csharp_script.cpp:2896
EditorSettings: Save OK!

@akien-mga I think this is because we need to cherry-pick #37145

Should be fixed by bda993dd79d0c3af18f299528c44cff0b01ca9ef.

*https://github.com/godotengine/godot/commit/bda993dd79d0c3af18f299528c44cff0b01ca9ef

Thanks.
It works now!


Traditional Chinese (zh_TW)

https://github.com/aee1027/YOURLS-zh_TW
zh_TW translation for YOURLS 1.7

Added! Thanks


Ability to Change Background Color.

Can you please add the ability to change the collection view background color to a user defined one, as well as the text color. I would very much appreciate it!

I will be thinking about how to join in the next version.


feature/pyproject

This PR adds support for pyproject.toml files into the safety CLI repo.

Summary by CodeRabbit

New Features

Enhanced dependency retrieval to support PYPROJECT_TOML files in addition to existing file types.

Style

Minor formatting adjustment to ensure a newline at the end of the file.

Somehow this PR got corrupted, I think because we didn't have the safety-schemas latest version mandated to 0.0.8 before. Cleaner to just move to another PR now https://github.com/pyupio/safety/pull/625


Can't get the upgrade to work

Did you try these troubleshooting steps?
Yes
Hardware/Software

iPhone: 11
iOS: ex:  14.0.1
Apple Watch: ex: Series 6 44mm
watchOS: ex: 7.0.1
Mac High Seria 10:13:6
App: ex: 5.0
Server: ex: 7.0

To Reproduce
Steps to reproduce the behavior:
Install new mac download
See local working but not recieving data
removing port reference from watch
no data gets sent between them
Expected behavior
Health data to appear in local
Additional context
Attempting to move to latest version as previous one no longer works due to upgrade required. This has stopped me doing a live stream.

The issue was my phone was connected to another internet... doh!


Translating to pt br

Translating dev-tools to PT-Br and fixing some grammar mistakes on the pages previously translated.

amazing thank you :)


build error because binaryDir removed after configure (with preset) step

Brief Issue Summary
The binaryDir configured in the preset (CMakePresets.json) was deleted by git clean -dfx or similar task and push button Build shows error message:
[main] Building folder: repo
[build] Starting build
[proc] Executing command: /usr/bin/cmake --build /home/andre/git/repo/build/default-x86_64
[build] Error: /home/andre/git/repo/build/default-x86_64 is not a directory
[build] Build finished with exit code 1

Expected:

Push Build
Configure is running automatically if binaryDir folder is not found
Build is started

OR

Push Build
Message [build] Error: /home/andre/git/repo/build/default-x86_64 is not a directory appears
Push Configure and select same preset
Configure is running with preset
Push Build
Build is started

Apparent Behavior:

Push Build
Error is shown, see above, [build] Error: /home/andre/git/repo/build/default-x86_64 is not a directory
Select the configure preset again
Configure is not executed (no output)
Select the build preset again
Push Build
Error is shown, see above, [build] Error: /home/andre/git/repo/build/default-x86_64 is not a directory

Platform and Versions

Operating System: WSL2 with Debian 11 Bullseye (VSCode running @ Windows 10 1909)
CMake Version: 3.21.2
VSCode Version: 1.60.0
CMake Tools Extension Version: 1.8.1
Compiler/Toolchain: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Thank you for reporting this issue. I can reproduce it on Windows, even without WSL2.

A fix for this issue is out for review.


RAF: RAF Accelerates deep learning Frameworks

https://github.com/awslabs/raf

Can be used for partially trainable models


Update README.md

It seems like calling chai.should() is needed to make this example work.  For example in https://github.com/domenic/chai-as-promised/blob/master/test/support/node.js

There's no usage of the should API shown in that example. You should use chai.should() if you're interested in the should API, but if you're not (e.g. you want to use expect or assert), then there's no need. (This is part of Chai, not specific to Chai as Promised.)


Bug: on v2.1 , when using "-S --always-on-top", closing the app's window will not automatically turn-on the display

[ V] I have read the FAQ.
[ V] I have searched in existing issues.

Environment

OS: [e.g. Debian, Windows, macOS...]
Windows
scrcpy version: [e.g. 1.12.1]
scrcpy-win64-v2.1
installation method: [e.g. manual build, apt, snap, brew, Windows release...]
ZIP
device model:
Pixel 6
Android version: [e.g. 10]
13

Describe the bug

Connect to USB.
Run this :

C:\android\scrcpy\scrcpy-noconsole.vbs -S --always-on-top --stay-awake --no-audio

See that ScrCpy works fine, turning off the display of the device.
Close the window of ScrCpy . No need to disconnect from USB.

The bug is that The screen stays turned off.
A workaround is to turn it on, but then it gets turned on for a split second, and turns off, and I have to turn on again (and then it's fine).
Sadly I can't attach any logs, because the bug is after closing the window.
In the past, I had a different issue, that disconnecting from USB has let the screen stayed turned off, and sometimes I had to restart the device as it failed to turned on.

This has nothing to do with --always-on-top, it's just -S.
The reason is that either your cleanup process get killed (try with --show-touches, see https://github.com/Genymobile/scrcpy/issues/3309#issuecomment-1144812425), or because turn screen on does not work on your device (try Alt+Shift+o while scrcpy is still running).

@rom1v But it used to work fine (in this scenario).
You say that Google ruined it?
As for the 2 workarounds:

Adding --show-touches didn't help
Using  Alt+Shift+o turned it on for a split second and got turned off again. Closing the window eventually turned on the display after a few seconds.
Then, after starting ScrCpy again with the same command I wrote, it works fine : closing the window now turns on the screen.
I tried multiple times and it's somehow working fine again as in the past...

How could it be that now it works fine?
I'm very confused...

@rom1v Now the issue is back, and after the workaround it's gone again...
Please tell me what to do...

Just a reminder if you make a batch script, you can simply send adb commands.
Use start /wait scrcpy.exe, so it waits for it to close. Then
adb shell input keyevent KEYCODE_POWER
which will send a power button press to your device, when scrcpy closes (dont use --kill adb command, use taskkill -f adb.exe after). I know this isn't a perfect workaround, but its definitely good enough until its fixed. Plus it will always work!
PS: you can even use adb to launch and close programs\activities and make little batch shortcuts for example this will launch gridconnect:
adb shell am start -n com.arlec.gridconnect/com.smart.TuyaSplashActivity
and this will kill it
adb shell am force-stop com.arlec.gridconnect
all without touching your phone! Incredible how creative you can get with scrcpy now!

@TimmyP777 I just close the window of ScrCpy, whether from the taskbar or from the "X" button of the window...

I just meant that if you find that your phone comes back on for any reason after you close it, if you run it within a script you can send a (additional) power button press.
Btw have you considered a launch\close package\activity in the command line? Like --start <package name/activity>?
Another trick so that a non 16x9 phone can appear full screen on monitor (phone gets black bars temporarily) with proper proportions in a script is sending this before scrcpy session, after adb:
adb shell wm size 1080x1920 (resizes phone resolution to pc proportions)
Then after the scrcpy closes, but before adb does send
adb shell wm size 1080x2400 (or whatever your phone screen dimensions are)
Sorry not trying to pester. I just see so many amazing possibilities with your excellent software, and its FAR better than what Samsung offers with Microsoft Phone Link, which basically has an integrated app launcher with Samsung.
I was considering making such a front end; Pull and parse package lists into a client side launcher GUI, have options for "full screen on phone" and "full screen on pc." (No borders\borders etc) Ability to create client side shortcuts for phone apps on pc, without any hint your phone is being used, etc.
I cant thank you enough for this awesome software. I used Microsoft Phone Link with a Samsung to access my smart device program, I thought I lost that feature when I went Oneplus but this totally restores it!

@rom1v I wanted to see what happens when using Android Studio's mirroring functionality.
When closing either the tab of it or the IDE itself, the device gets turned on very quickly.
The issue doesn't exist there.
Please try to check it out...

@AndroidDeveloperLB Does Android Studio mirroring have a feature to turn the device screen off (similar to scrcpy -S / scrcpy --turn-screen-off)?

@rom1v Yes, in the IDE's settings:

Of course, ScrCpy has many more features and is more comfortable, and I prefer it.
:)

Using Alt+Shift+o turned it on for a split second and got turned off again.

This is not expected, it should turn on the physical display without turning it off (maybe your "turned off again" is just the normal Android screen off after a given delay, as usual, not the physical device off + the mirroring on)

@rom1v What should I do?
Do you want me to take a video of the issue?
If so, I prefer not to publish it here. Only private.

I just want to know if Alt+shift+o turns the physical display back on (as if you never passed --turn-screen-off.
Also, another question: in Android studio, when you enable the feature to turn the screen off, what happens if you unplug the device (instead of closing it properly)? Does it restore the screen on?

@rom1v Trying on the laptop of the office:
Initially Alt+shift+o worked as you said. After a few hours, I tried again, and it turned on the display after about 10 seconds.
After another try, it turned on the display for a split second, and turn it off. I've also noticed that even though the display is turned off, I can touch it and affect the device (I see on ScrCpy, as done on some devices). After about 10 seconds, the display got turned on.
So, the answer is: it's not consistent.
As for Android Studio, yes, the device display gets turned on right away when I disconnect the device from USB.
The build of the OS right now is:
TQ3A.230605.010

@rom1v I think it's adb/Pixel6 issue.
Reported here:
https://issuetracker.google.com/issues/288650352
You can also watch the video I've prepared there, to see some forms of the issue.


Managed classes needs to be a lib instead of a src

@jsuereth this fixes the rest of https://github.com/typesafehub/sbteclipse/issues/266 for me
My main question was if should define def managedClassDirectories(ref: Reference, state: State)(configuration: Configuration) or def managedClassDirectories(ref: Reference, state: State). I saw other settings being grabbed both ways and wasn't quite sure which I'd want here

LGTM


Use rustdoc comments as graphql desc?

I am looking to replace juniper with this library and I was looking through the docs and it looks like all the examples use proc macro attributes to add a description. Is it currently (or planned) possible to parse rustdoc comments for the graphql description?

I'm not sure rust's procedural macros support this, but I'll add them if possible. 😁

I have confirmed the possibility and I will add it tomorrow. It is a very good suggestion, thank you.😀

I am very excited. It is too annoying to repeat the description twice. It is very convenient to get the desc directly from rustdoc.

I have completed this feature and updated the example code of starwars.  😁
https://github.com/async-graphql/examples/tree/master/models/starwars

Please upgrade to version 1.11.0, which already contains this feature.😁

@sunli829 is it also possible to use the structs rustdocs? See the example below.
#[derive(Deserialize, Debug)]
/// A company is a legal entity representing an association of people, whether natural,
/// legal or a mixture of both, with a specific objective/goal.
pub struct Company {}

#[Object]
impl Company {
    /// Globally unique identifier of a company.
    pub async fn id(&self) -> &ID {
        todo!()
    }
    /// The company name.
    pub async fn name(&self) -> String {
        todo!()
    }
}

Docs are currently only generated if i add the rustdocs to impl Company, but that would make it necessary to duplicate the docs on the struct and on the impl, because docs on the impl are not shown in the IDE.
And another question, is it possible to add docs to a generated ...Connection and a ...Edge? And...is it possible to modify the docs of scalars that are delivered with async-graphql, for example, can i as a user of the crate modify the docs of DateTime?

I suppose for the first one we could add a derive macro Description or something that derives a trait
trait Description {
    fn description(&self) -> &'static str;
}

And we could either have #[Object(use_type_description)] where it uses that trait, or the other way around where no docs on the impl assumes that it implements Description, and you'd have to write #[Object(no_docs)] to disable that.
For the second one we could either:

Make it easier to make type wrappers
Provide a method on the schema which overrides type descriptions (e.g. Schema::build(q, m, s).override_description::<DateTime>("custom datetime docs"))
Use the inventory crate and provide a macro likeoverride_docs! {
    /// custom datetime docs
    DateTime
}

Hm...for the second one, i think i would like the macro override_docs! best, if it also changes the docs that pop up in the IDE.
The first one, the trait, i think that won't work with IDE docs. I would really like to not need to replicate the docs from the struct to the impl. To make it more clear, i will reuse but shorten the previous example:
With the following code, i get the docs shown by the IDE as a popup, see screenshot, but not in graphql.
#[derive(Deserialize, Debug)]
/// A company is a legal entity representing an association of people, whether natural,
/// legal or a mixture of both, with a specific objective/goal.
pub struct Company {}

#[Object]
impl Company {
    /// Globally unique identifier of a company.
    pub async fn id(&self) -> &ID {
        todo!()
    }
}

When i put the docs on the impl, then they are shown in graphql, but not in the IDE.
#[derive(Deserialize, Debug)]
pub struct Company {}

#[Object]
/// A company is a legal entity representing an association of people, whether natural,
/// legal or a mixture of both, with a specific objective/goal.
impl Company {
    /// Globally unique identifier of a company.
    pub async fn id(&self) -> &ID {
        todo!()
    }
}

Ideally, docs that are on the struct should be used for graphql too.

So what I meant for the first one is that you'd write:
#[derive(Deserialize, Debug, async_graphql::Description)]
/// A company is a legal entity representing an association of people, whether natural,
/// legal or a mixture of both, with a specific objective/goal.
pub struct Company {}

#[Object(use_type_description)]
impl Company {
    /// Globally unique identifier of a company.
    pub async fn id(&self) -> &ID {
        todo!()
    }
}

And in the expansion it would write:
description: Some(<Self as ::async_graphql::Description>::description()>),

if it also changes the docs that pop up in the IDE.

No, it won't - there is no way to change the actual Rustdoc attributes of another item. All that macro does is to add that doc string to a global list of doc strings for that type, so when you register the type in the schema it uses the global list of doc strings. I don't really like that solution because inventory is a bit of a hack.

Ah...i misunderstood you. I am not really deep into the howto's of macros, so maybe the my question is somewhat silly. Currently, the Object macro reads the rustdocs of wherever it is put on? Can a macro read the rustdocs of another struct or is it restricted to where it is placed?

No, it won't - there is no way to change the actual Rustdoc attributes of another item.
Then i think scalarwrapper is the way to go. If you can simply wrap the priovided DateTime, maybe like this

#[derive(ScalarWrapper)]
/// My super doc comment.
pub struct MyDateTime(DateTime);

then one would easily get both, the IDE popup when working with that struct and the GraphQL docs. Ideally, the macro should use the name of the inner type for the graphql type, or at least make renaming possible. Maybe even two different wrapper macros, for a specific purpose.
A ScalarDocsWrapper for just changing the docs, which then uses the name of the inner type for generation.
And a ScalarWrapper that allows renaming and also changing the docs. Dunno if that really makes sense. Just some thoughts.

Currently, the Object macro reads the rustdocs of wherever it is put on?

Yes

Can a macro read the rustdocs of another struct or is it restricted to where it is placed?

No, this is why we have to add another derive macro and use the trait to communicate between the two.
I don't really like the ScalarWrapper name, but I don't have any other suggestions. @sunli829, what do you think?.

I think this looks better. 😂
#[derive(Deserialize, Debug, async_graphql::Description)]
/// A company is a legal entity representing an association of people, whether natural,
/// legal or a mixture of both, with a specific objective/goal.
pub struct Company {}

#[Object(use_type_description)]
impl Company {
    /// Globally unique identifier of a company.
    pub async fn id(&self) -> &ID {
        todo!()
    }
}

@Koxiaet Thanks for clarifying!
@sunli829 The wrapper would be for overriding the docs of scalars that exist inside of async-graphql, like ID or DateTime.

@sunli829 The wrapper would be for overriding the docs of scalars that exist inside of async-graphql, like ID or DateTime.

Ah, this seems to be useful.

Let me think about this wapper, I first add the ʻuse_type_description` attribute.

Oh...i think we missed one, what about the generated ...Connection and a ...Edge types? Is it possible to add GraphQL docs to them?

While we are at it 😄 : I have been meaning to verify this as of v2.0.0, but last I checked, graphql docs were not generated for enum variants and custom scalars. Is that still true?


运行 cnpm start 报错

ERROR in /app/open-src/ui/ng-zorro-antd/src/components/dropdown/nz-dropdown.component.ts (196,26): Argument of type 'Observable<boolean | {}>' is not assignable to parameter of type 'Observable'.
Type 'boolean | {}' is not assignable to type 'boolean'.
Type '{}' is not assignable to type 'boolean'.
ERROR in /app/open-src/ui/ng-zorro-antd/src/components/dropdown/nz-dropdown-button.component.ts (95,26): Argument of type 'Subject<{}>' is not assignable to parameter of type 'Observable'.
Types of property 'subscribe' are incompatible.
Type '{ (): Subscription; (observer: PartialObserver<{}>): Subscription; (next?: (value: {}) => void, e...' is not assignable to type '{ (): Subscription; (observer: PartialObserver): Subscription; (next?: (value: boolean) ...'.
Types of parameters 'next' and 'next' are incompatible.
Types of parameters 'value' and 'value' are incompatible.
Type '{}' is not assignable to type 'boolean'.
webpack: Failed to compile.

it is not recommend to start source code by your self, you can use compiled file through https://www.npmjs.com/package/ng-zorro-antd


[fix] [broker] fix startNewSnapshot when lastDataMessagePublishedTimestamp not change.

Motivation
https://github.com/apache/pulsar/pull/16618 introduce a feature that we could skip creating a subscription replication snapshot if no messages have been published.
So it is reasonable that if lastDataMessagePublishedTimestamp not change, we should skip taking snapshot.
But it don't check for equality, and i don't get the explanation:
https://github.com/apache/pulsar/pull/16618#discussion_r980726208
Modifications
Add the check for equality.
Verifying this change

[x] Make sure that the change passes the CI checks.

(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

[ ] Dependencies (add or upgrade a dependency)
[ ] The public API
[ ] The schema
[ ] The default values of configurations
[ ] The threading model
[ ] The binary protocol
[ ] The REST endpoints
[ ] The admin CLI options
[ ] The metrics
[ ] Anything that affects deployment

Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository: https://github.com/thetumbled/pulsar/pull/47

Could you help to review this pr? @lhotari

@thetumbled I've been trying to get a review for PR #16651 for quite some time without response. It's slightly related. Can you please check it?

But it don't check for equality, and i don't get the explanation:
#16618 (comment)

I'll explain. In the current code in master branch, https://github.com/apache/pulsar/blob/a51bbdd1480b453d72891b3d68b4afd068ec374a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/ReplicatedSubscriptionsController.java#L209-L210 .
The condition topic.getLastDataMessagePublishedTimestamp() < lastCompletedSnapshotStartTime is comparing 2 different types of timestamps: the first one is the timestamp of publishing the last message. The other one is the completion of the snapshot starting time. Checking for equality isn't necessary since those timestamps won't be the same. Does this explanation clarify that?
The problem of duplicate snapshots is solved by #16651.

But it don't check for equality, and i don't get the explanation:
#16618 (comment)

I'll explain. In the current code in master branch,
https://github.com/apache/pulsar/blob/a51bbdd1480b453d72891b3d68b4afd068ec374a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/ReplicatedSubscriptionsController.java#L209-L210
.
The condition topic.getLastDataMessagePublishedTimestamp() < lastCompletedSnapshotStartTime is comparing 2 different types of timestamps: the first one is the timestamp of publishing the last message. The other one is the completion of the snapshot starting time. Checking for equality isn't necessary since those timestamps won't be the same. Does this explanation clarify that?
The problem of duplicate snapshots is solved by #16651.

I get it. thanks for explanation!

@thetumbled I've been trying to get a review for PR #16651 for quite some time without response. It's slightly related. Can you please check it?

I am not that familiar with ReplicatedSubscription implementation, but try to solve another problem related to it. https://github.com/apache/pulsar/pull/22452
Maybe you could refer for @merlimat


Reply to this email directly, view it on GitHub
https://github.com/trueadm/inferno/pull/466, or mute the thread
https://github.com/notifications/unsubscribe-auth/ASbEI_mt4GagohRD5Lo_Oc-Vtjqecuf0ks5q7hxvgaJpZM4Kqokz
.


Issues from PR #35

From PR #35

Are filenames in PB high clients string()?

https://github.com/basho/machi/pull/35/files#diff-84643a086b4e4b105b74001aa044e0ffR130
https://github.com/basho/machi/blob/master/test/machi_pb_high_client_test.erl#L67-L69

ETS tables owned by file proxy processes are not closed

read_args uses offset(), which likely reterns < 1024

Thank you for opening up. So...

I'm thinking of writing client-facing API with all semantics decided - where I want to clarify it too.
I'm working on ETS tables issue as well as adding tests on file_proxy restart
This is easy to address, will do


Profiler docstrings

Resolves #397

I took a first pass through the preview of the docs build (didn't look at any code changes).
While this is a good start, I think this PR could benefit from a second pass through it. All public modules will need __all__ to be defined along with a module-level docstring. In addition, it looks like there are still some incomplete docstrings and others that are misformatting. I think we should also think about what classes and/or modules are public vs what should be private and not part of the user-facing API.
Below are some specific comments:

[ ] For https://mosaicml-composer--473.com.readthedocs.build/en/473/api_reference/composer.profiler.html#module-composer.profiler:

[ ] The formatting under "profilers include" seems off -- specifically where line breaks are placed and how  subsequent lines for each bullet are indented.
[ ] Can you include an example of what the user needs to do to use the profiler? Probably an example with the trainer init?
[ ] Can we include a screenshot of the trace and a tutorial on how to visualize the trace?

[ ] Would it make sense to make the torch profiler, dataloader profiler, and system profiler modules private, and to not re-export the underlying callbacks? Since users are no longer constructing these classes directly, I don't think we need to expose the underlying implementation of the profiler in the docs (also fewer docstrings to write lol)
[ ] https://mosaicml-composer--473.com.readthedocs.build/en/473/api_reference/composer.profiler.event_handler.html#module-composer.profiler.event_handler

[ ] Missing a module level docstring.
[ ] In addition, the init docstring doesn't mention process_counter_event
[ ] References are not auto-linking

[ ] https://mosaicml-composer--473.com.readthedocs.build/en/473/api_reference/composer.profiler.json_trace.html#module-composer.profiler.json_trace could use an example on how to visualize the JSON format
[ ] https://mosaicml-composer--473.com.readthedocs.build/en/473/api_reference/composer.profiler.profiler_hparams.html#module-composer.profiler.profiler_hparams: Can you add a YAML example for the profiler hparams?


[Feature] support config for api.github.com

I want to config for the api.github.com , it's working for the user who can not access api.github.com.
Giscus is a great project and thanks for your work.

This app is a wrapper for the GitHub Discussions API, so this doesn't exist without the API, and there is no workaround

It happen on you create a comment .

https://github.com/giscus/giscus#how-it-works

Hi, I understand your request, but I don't think this is a good idea to be supported on the giscus.app service. With this feature, web developers can create their own proxy service and easily use (or misuse) the user's GitHub token. As the proxy isn't obvious to users, they might end up thinking the giscus app is responsible for any misuse of the token.
If you would like to have this option, feel free to self-host a fork and change the code so that it points to your proxy.

and easily use (or misuse) the user's GitHub token

You're absolutely wright.
@laymonage Thanks for your confim and i'm deploy myself giscus for this case.


chore: Improved error handling and refactor

Closes #2165 by improving error handling to display the JSON response message when available, and not allow the submission of malformed yamls while displaying the reason they are malformed.
Also brings this functionality to CronWorkflow and WorkflowTemplate submission, which previously did not have it.

Double checked everything works as intended.

Can you make sure that the workflow template one works? I'm pretty sure this is broken on master.

Yup, it was indeed broken. Fixed!


Use of 'strtok_r' fails in Windows

I come across this error when trying to compile on Windows. I have MSYS2 installed (I used the rust guide that is linked in the tutorial). It seems that 'strtok_r' is not supported by MSYS2.
error: linking with `gcc` failed: exit code: 1
note: "gcc" "-Wl,--enable-long-section-names" "-fno-use-linker-plugin" "-Wl,--nxcompat" "-static-libgcc" "-m64" "-L" "C:\\Program Files\\Rust stable 1.5\\bin\\rustlib\\x86_64-pc-windows-gnu\\lib" "C:\\Users\\User\\Documents\\eclipse\\workspace\\test\\target\\debug\\hello_world.0.o" "-o" "C:\\Users\\User\\Documents\\eclipse\\workspace\\test\\target\\debug\\hello_world.exe" "-Wl,--gc-sections" "-L" "C:\\Users\\User\\Documents\\eclipse\\workspace\\test\\target\\debug" "-L" "C:\\Users\\User\\Documents\\eclipse\\workspace\\test\\target\\debug\\deps" "-L" "C:\\Users\\User\\Documents\\eclipse\\workspace\\test\\target\\debug\\build\\curl-sys-c7834bee3e6a49e1\\out/lib" "-L" "C:/msys64/mingw64/lib" "-L" "C:\\Program Files\\Rust stable 1.5\\bin\\rustlib\\x86_64-pc-windows-gnu\\lib" "-L" "C:\\Users\\User\\Documents\\eclipse\\workspace\\test\\.rust\\bin\\x86_64-pc-windows-gnu" "-L" "C:\\Users\\User\\Documents\\eclipse\\workspace\\test\\bin\\x86_64-pc-windows-gnu" "-Wl,-Bstatic" "-Wl,-Bdynamic" "C:\\Users\\User\\Documents\\eclipse\\workspace\\test\\target\\debug\\deps\\libcurl-cc078f6df50d4b80.rlib" "C:\\Users\\User\\Documents\\eclipse\\workspace\\test\\target\\debug\\deps\\liburl-9145034d63069ffd.rlib" "C:\\Users\\User\\Documents\\eclipse\\workspace\\test\\target\\debug\\deps\\liblog-db195e915b7f1b50.rlib" "C:\\Users\\User\\Documents\\eclipse\\workspace\\test\\target\\debug\\deps\\libcurl_sys-c7834bee3e6a49e1.rlib" "C:\\Users\\User\\Documents\\eclipse\\workspace\\test\\target\\debug\\deps\\libuuid-82ee95c4f525f1f6.rlib" "C:\\Users\\User\\Documents\\eclipse\\workspace\\test\\target\\debug\\deps\\librustc_serialize-7ff5bfc027146194.rlib" "C:\\Users\\User\\Documents\\eclipse\\workspace\\test\\target\\debug\\deps\\libmatches-68291f81832fc22d.rlib" "C:\\Users\\User\\Documents\\eclipse\\workspace\\test\\target\\debug\\deps\\librand-204b49f864ff4762.rlib" "C:\\Users\\User\\Documents\\eclipse\\workspace\\test\\target\\debug\\deps\\libadvapi32-cfef7a1f30f1e5f6.rlib" "C:\\Users\\User\\Documents\\eclipse\\workspace\\test\\target\\debug\\deps\\libwinapi-d88a8c018c340227.rlib" "C:\\Users\\User\\Documents\\eclipse\\workspace\\test\\target\\debug\\deps\\liblibz_sys-521f51dd8fade4c2.rlib" "C:\\Users\\User\\Documents\\eclipse\\workspace\\test\\target\\debug\\deps\\liblibc-53b3109cf33a6ace.rlib" "C:\\Program Files\\Rust stable 1.5\\bin\\rustlib\\x86_64-pc-windows-gnu\\lib\\libstd-35c36e89.rlib" "C:\\Program Files\\Rust stable 1.5\\bin\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcollections-35c36e89.rlib" "C:\\Program Files\\Rust stable 1.5\\bin\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_unicode-35c36e89.rlib" "C:\\Program Files\\Rust stable 1.5\\bin\\rustlib\\x86_64-pc-windows-gnu\\lib\\librand-35c36e89.rlib" "C:\\Program Files\\Rust stable 1.5\\bin\\rustlib\\x86_64-pc-windows-gnu\\lib\\liballoc-35c36e89.rlib" "C:\\Program Files\\Rust stable 1.5\\bin\\rustlib\\x86_64-pc-windows-gnu\\lib\\liballoc_jemalloc-35c36e89.rlib" "C:\\Program Files\\Rust stable 1.5\\bin\\rustlib\\x86_64-pc-windows-gnu\\lib\\liblibc-35c36e89.rlib" "C:\\Program Files\\Rust stable 1.5\\bin\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcore-35c36e89.rlib" "-l" "ws2_32" "-l" "advapi32" "-l" "z" "-l" "ws2_32" "-l" "userenv" "-l" "advapi32" "-l" "compiler-rt"
note: C:\Users\User\Documents\eclipse\workspace\test\target\debug\deps\libcurl_sys-c7834bee3e6a49e1.rlib(libcurl_la-cookie.o):cookie.c:(.text$Curl_cookie_add+0xc5): undefined reference to `strtok_r'
C:\Users\User\Documents\eclipse\workspace\test\target\debug\deps\libcurl_sys-c7834bee3e6a49e1.rlib(libcurl_la-cookie.o):cookie.c:(.text$Curl_cookie_add+0x13a): undefined reference to `strtok_r'
ld: C:\Users\User\Documents\eclipse\workspace\test\target\debug\deps\libcurl_sys-c7834bee3e6a49e1.rlib(libcurl_la-cookie.o): bad reloc address 0x13a in section `.text$Curl_cookie_add'
ld: final link failed: Invalid operation

Could there be something I missed in my install?
I cannot find much about this error online except that this function is not on Windows.

The problem is that the gcc version bundled with Rust does not define strtok_r, and the MinGW version does. The solution is to change the installation of Rust to not install the bundled gcc. If you re-run the setup; choose "Change", click the drop down before "Linker and platform libraries" and choose "The entire feature will be unavailable", the compilation should work.

I tracked this down awhile ago and unfortunately the problem is:

libcurl is compiling with the system gcc and is detecting a newer feature, the strtok_r function.
When the compiler links the crate, it uses a bundled gcc version
This bundled gcc version uses its own libraries, which don't have the detected function.

Unfortunately the only fix here is to just delete the bundled linker that comes with Rust (or uncheck the box during the install).

@alexcrichton What is the equivalent to "unchecking the box during install" for installs with rustup?

@masaeedu unfortunately I don't know of a great way to do that. My personal way to work around this is to always install the MSVC host toolchain and then target pc-windows-gnu, that way these components aren't picked up

@alexcrichton I've also tried the MSVC toolchain, but this package seems to break with that as well, with the following error message:
Couldn't find libcurl from pkgconfig ("MSVC target detected. If you are using the MSVC ABI rust build, please use the GNU ABI build instead."), compiling it from source...

I'm trying to install https://github.com/killercup/cargo-edit, which depends on curl, using cargo install cargo-edit. If I use the GNU toolchain via rustup default stable-gnu, I get the strtok_r issue. If I use the MSVC toolchain via rustup default stable-msvc I get the message I pasted above. Any ideas on how to proceed are greatly appreciated.

@masaeedu that looks more like an informational message than an error maybe? Could you gist the full build log?

@alexcrichton Sure. Here you go: https://gist.github.com/masaeedu/475aa03570af8f548430f85652071530

Oh the actual build there is:
curl_setup.h(132): fatal error C1083: Cannot open include file: 'curl/curlbuild.h': No such file or directory

That's building an ancient version of curl-sys though (0.1.*) which has had tons of bug fixes since then. Unfortunately though it doesn't look like you control the version being used :(

I guess cargo-edit's depending on an old version of curl, which in turn pulls in an old version of curl-sys. I'll go file a bug there. Thanks.


[BUG]: Flow description of Create CoE Archival Doc Library in SP points to Crisis Communication App

Describe the bug
The Flow description of the flow Create CoE Archival Doc Library in SP points to the Crisis Communication App instead of CoE
Component (please tell us which flow or app you are experiencing issues with):

Solution: SharePoint setup
Version [July 16, 2020]
App or Flow [Flow: Create CoE Archival Doc Library in SP]

Screenshots

Thanks Rebekka. We'll update these with the next release.

This has been updated just now, thanks for the feedback!


Team Section in home page added

I have added the team section for the home page for both large and small screen devices and I have used Swiper.js to make it
Check to view the Component:- https://www.loom.com/share/60b9d00e6c9a4f9d8a3d433dc7ed000c

@Debajyoti14 Please check this PR

@RavindraP04 Still dep error is there

@Debajyoti14 Please Check, i guess now deployment errors are resolved


what is modeling_bert.py?

python3 ./metro/tools/end2end_inference_bodymesh.py --resume_checkpoint ./models/metro_release/metro_3dpw_state_dict.bin--image_file_or_path ./samples/human-body
Traceback (most recent call last):
File "./metro/tools/end2end_inference_bodymesh.py", line 20, in
from metro.modeling.bert import BertConfig, METRO
File "/media/khw/T7/3DHuman/MeshTransformer/metro/modeling/bert/init.py", line 3, in
from .modeling_bert import (BertConfig, BertModel,
File "/media/khw/T7/3DHuman/MeshTransformer/metro/modeling/bert/modeling_bert.py", line 1
../../../transformers/pytorch_transformers/modeling_bert.py
^
SyntaxError: invalid syntax
how can i fix it?
what should i do now?

We use a symbolic link to reference the official codes in Huggingface's transformer. Please have a check if you clone the repo. You could try running git clone --recursive https://github.com/microsoft/MeshTransformer.git and it should clone Huggingface's transformer submodule automatically. Thanks.

How did you solve the problem?


Investigate track health and status of the track

I've used Sarah Sharp's FOSS Heartbeat project to generate stats for each of the language track repositories, as well as the x-common repository.
The Exercism heartbeat data is published here: https://exercism.github.io/heartbeat/
When looking at the data, please disregard any activity from me (kytrinyx), as I would like to get the language tracks to a point where they are entirely maintained by the community.
Please take a look at the heartbeat data for this track, and answer the following questions:

To what degree is the track maintained?
Who (if anyone) is merging pull requests?
Who (if anyone) is reviewing pull requests?
Is there someone who is not merging pull requests, but who comments on issues and pull requests, has thoughtful feedback, and is generally helpful? If so, maybe we can invite them to be a maintainer on the track.

I've made up the following scale:

ORPHANED - Nobody (other than me) has merged anything in the past year.
ENDANGERED - Somewhere between ORPHANED and AT RISK.
AT RISK - Two people (other than me) are actively discussing issues and reviewing and merging pull requests.
MAINTAINED - Three or more people (other than me) are actively discussing issues and reviewing and merging pull requests.

It would also be useful to know if there a lot of activity on the track, or just the occasional issue or comment.
Please report the current status of the track, including your best guess on the above scale, back to the top-level issue in the discussions repository: https://github.com/exercism/discussions/issues/97

This track is orphaned.

@kytrinyx Could I ask what... qualifications would you be looking for in a maintainer?

@Dispader nothing particularly fancy. Here's the documentation that we have about maintaining language tracks: https://github.com/exercism/exercism.io/blob/master/docs/maintaining-a-track.md
If you want commit I would be delighted to add you as a maintainer to the track! Just say the word.


Text alignment on y-axis label only shown correctly for ALIGN_NORMAL

How to reproduce
Set the axis alignment in e.g. in one of the line chart examples to ALIGN_OPPOSITE
CartesianChartHost(
            chart =
                rememberCartesianChart(
                    rememberLineCartesianLayer(
                    ...
                    startAxis = rememberStartAxis(
                        label = rememberTextComponent(textAlignment = Layout.Alignment.ALIGN_OPPOSITE)
                    ),
                    bottomAxis = rememberBottomAxis(),
                ),
            model = model,
        )

Observed behavior
The axis label disappears instead of being right aligned
Expected behavior
Label is shown with the correct alignment. By now i didn't find a workaround to resolve this
Vico version(s)
Latest unstable version
Android version(s)
Android 14
Additional information
No response

Hello! Thanks for the report. We’ll look into it.

Vico 2.0.0 Alpha 20 resolves this. Cheers!

@patrickmichalik Any news on that? could you reproduce it?

Hello @ilahja89, textAlignment applies only when there are multiple lines of text with different lengths. Please open a feature request. As long as you have a monospace font (like in your screenshot), you can use a workaround to add a leading space before positive values.

It’s fixed in v1.15.0.


Machine controller blocks delete when named dsvolumes are attached

Describe the bug
As of https://github.com/vmware/cluster-api-provider-cloud-director/commit/cdd179b5021a052c94a701dbccc9b2fdfa68790a, the Machine controller blocks delete when named disks are attached to the VM. This prevents Machine delete in the following cases:
(a)  The Cluster is being deleted, and the Node corresponding to the Machine is not drained (by design).
(b)  The kubelet running on the Machine's corresponding VM is not responding, and therefore the CSI driver cannot unmount detach the disks from the VM.
(c)  The CSI driver is malfunctioning.
/cc @erkanerol
Reproduction steps

Create CAPVCD cluster.
Deploy VCD CSI.
Create StorageClass.
Create Pod that uses PVC.
Delete Machine corresponding to the Node where the Pod is scheduled.
...

Expected behavior
The Machine controller should allow delete when named disk volumes are attached to the corresponding VM.
This means that the Machine controller should detach the named disk volumes on delete. Right now, to unblock the delete, some other API client (e.g. the CSI driver, or a tenant admin) must detach the disks from the VM. Please note that the two actions are equivalent with respect to data durability in scenarios (b) and (c).
Although we could try to address scenario (a) by changing Cluster API, the change would be limited by the design of drain. Namely, drain does not evict any Pods managed by a DaemonSet. So, if such a Pod uses persistent storage, the named disk would not be detached from the VM. In any case, graceful termination is not a guarantee, and applications cannot expect it.
For comparison, the AWS, Azure, GCP, and vSphere infrastructure providers do not block Machine delete in this case.
Additional context
Original discussion: https://kubernetes.slack.com/archives/C04JFT7GDGR/p1681728672112079

Also for automated machine management it will be very helpful if the machine controller allows machine deletion when named disks are attached. This allows to (auto) recover from kubelet/CSI driver failures, or any other scenario where draining of the node is not possible.


Replace Barratry mines near cargo with kick mines.

Real funny map design.
No.
Media

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

:cl:

tweak: Replaced some lethal mines in Barratry maintenance.

spite pr closing

don't kickmines kick you from the server

funny

wtf sovl removal


ImportError: libkea.so.1.4.7: cannot open shared object file: No such file or directory

Latest master passed on Python 3 four days ago:
https://travis-ci.org/darribas/contextily/builds/407264253
It now fails on Python 3:
==================================== ERRORS ====================================
______________________ ERROR collecting tests/test_ctx.py ______________________
ImportError while importing test module '/home/travis/build/hugovk/contextily/tests/test_ctx.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_ctx.py:3: in <module>
    import contextily as ctx
contextily/__init__.py:6: in <module>
    from .place import Place, plot_map
contextily/place.py:6: in <module>
    from .tile import howmany, bounds2raster, bounds2img, _sm2ll, _calculate_zoom
contextily/tile.py:11: in <module>
    import rasterio as rio
miniconda/envs/TEST/lib/python3.5/site-packages/rasterio/__init__.py:23: in <module>
    from rasterio._base import gdal_version
E   ImportError: libkea.so.1.4.7: cannot open shared object file: No such file or directory
___________________ ERROR collecting tests/test_providers.py ___________________
ImportError while importing test module '/home/travis/build/hugovk/contextily/tests/test_providers.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_providers.py:1: in <module>
    import contextily as ctx
contextily/__init__.py:6: in <module>
    from .place import Place, plot_map
contextily/place.py:6: in <module>
    from .tile import howmany, bounds2raster, bounds2img, _sm2ll, _calculate_zoom
contextily/tile.py:11: in <module>
    import rasterio as rio
miniconda/envs/TEST/lib/python3.5/site-packages/rasterio/__init__.py:23: in <module>
    from rasterio._base import gdal_version
E   ImportError: libkea.so.1.4.7: cannot open shared object file: No such file or directory

https://travis-ci.org/hugovk/contextily/builds/408951523
This also affects PRs, such as #40. See also some extra info at https://github.com/darribas/contextily/pull/40#issuecomment-408434736.
Could this be a problem with a Conda update, similar to https://github.com/conda-forge/fiona-feedstock/issues/86?

Note that libgdal is not being installed from the forge? try explicitly installing it from the forge?

Both passing and failing builds both use libgdal-2.2.4.
I'm not familiar with Conda, how should it be explicitly installed from the forge?

This seems to be resolved as #43 passed correctly without any changes on the infrastructure side... Closing for now but, if resurfaces, we can reopen.


[SPARK-28556][SQL] QueryExecutionListener should also notify Error

What changes were proposed in this pull request?
Right now Error is not sent to QueryExecutionListener.onFailure. If there is any Error (such as AssertionError) when running a query, QueryExecutionListener.onFailure cannot be triggered.
This PR changes onFailure to accept a Throwable instead.
How was this patch tested?
Jenkins

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/testing-k8s-prb-make-spark-distribution-unified/13442/
Test PASSed.

Test build #108345 has started for PR 25292 at commit 82e1800.

Test build #108345 has finished for PR 25292 at commit 82e1800.

This patch fails to build.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

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

Test build #108348 has started for PR 25292 at commit 8fb2c5f.

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/testing-k8s-prb-make-spark-distribution-unified/13444/
Test PASSed.

Test build #108348 has finished for PR 25292 at commit 8fb2c5f.

This patch fails MiMa tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

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

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/testing-k8s-prb-make-spark-distribution-unified/13445/
Test PASSed.

Test build #108349 has started for PR 25292 at commit bdc2c26.

Test build #108349 has finished for PR 25292 at commit bdc2c26.

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/108349/
Test PASSed.

Merged to master.

For the following, cc @rxin since he is a release manager for 3.0.0. (Also, cc @gatorsmile ).

https://github.com/apache/spark/pull/25292#discussion_r391333486

Hi, @marmbrus .
This was discussed legitimately at that time here and on JIRA.
If you want to revert this, please make a new legitimate PR. We will review that carefully according to the community policy (AS-IS).

I don't see any discussion of alternatives to breaking the API here or on JIRA. I'm just asking that we discuss. I don't see anything "illegitimate" about that... We can open a JIRA after others have a chance to chime in.

I didn't think about wrapping the exception. Totally agree that this is actually a better solution. It can avoid breaking APIs , and in addition, the same fix can be applied to maintenance branches (such as branch-2.4). I will create a new JIRA ticket for this alternative solution.

Created https://issues.apache.org/jira/browse/SPARK-31144


ProtobufMessageSerializer can't serialize a class generated using a file .proto

Issue Report
When you try to Serialize a class generated using a .proto file the ProtobufMessageSerializer throw an Exception System.InvalidOperationException Type is not expected, and no contract can be inferred: ...
The Current Serializer appears to work only for .Net classes decorated with attributes DataContract , DataMember
Expected Behavior
Should be able to Serialize a class generated using a proto file.
A reference here: https://developers.google.com/protocol-buffers/docs/csharptutorial#parsing_and_serialization
Actual Behavior
When you try to Serialize a class generated using a .proto file the ProtobufMessageSerializer throws an Exception System.InvalidOperationException Type is not expected, and no contract can be inferred: ...
Steps to Reproduce the Issue

Design a simple Protobuf file (from the Protobuf documentation)

`message Person {
string name = 1;
int32 id = 2;  // Unique ID number for this person.
string email = 3;
enum PhoneType {
MOBILE = 0;
HOME = 1;
WORK = 2;
}
message PhoneNumber {
string number = 1;
PhoneType type = 2;
}
repeated PhoneNumber phones = 4;
google.protobuf.Timestamp last_updated = 5;
}
// Our address book file is just one of these.
message AddressBook {
repeated Person people = 1;
}`

Generate classes

protoc -I=$SRC_DIR --csharp_out=$DST_DIR $SRC_DIR/addressbook.proto

Create a test

`
Person msg = new Person
{
Id = 1234,
Name = "John Doe",
Email =<EMAIL_ADDRESS>Phones = { new Person.Types.PhoneNumber { Number = "555-4321", Type = Person.Types.PhoneType.Home } }
};
var serializer = new ProtobufMessageSerializer();
var byteArray1 = serializer.Serialize(msg ); // An Exception ara going to happen here
`

What I did to solve:
`
using Google.Protobuf;
using KafkaFlow.Serializer.ProtoBuf;
using System;
public class CustomProtobufMessageSerializer : ProtobufMessageSerializer
{
    public byte[] Serialize(object message)
    {
        if (message is IMessage)
        {
            IMessage protoMsg = (IMessage) message;
            return protoMsg.ToByteArray();
        }

        return base.Serialize(message);
    }

    public object Deserialize(byte[] data, Type type)
    {
        if(typeof(IMessage).IsAssignableFrom(type))
        {
            IMessage instance =(IMessage) Activator.CreateInstance(type);
            instance.MergeFrom(data);
            return instance;
        }

        return base.Deserialize(data, type);
    }
}

`

Hi Felipe, the profobuf serializer that we support is the commonly used protobuf-net. To use protofile with it you should use the protogen tool. You can use another serializer too, but you should create a custom serializer middleware.
Thanks ;)

Hi, sorry for necroposting but - why wasn't google library support merged back then? That library is defacto standard now, would it be worth revisiting?


[Draft] Proposal for fixing build.zig to work with unmodified cimgui.

Inspired by
https://github.com/floooh/sokol-zig-imgui-sample/blob/2597832beb515cf282189422d6fa4e84c8daa0b9/deps/cimgui/build.zig#L11-L15
...this makes dub build :imgui build without errors on my Mac. The resulting executable still doesn't run because it wants to load sokol as DLL, but I think/guess/hope that's unrelated:
build ➤ ./sokol-d_imgui
dyld[99581]: Library not loaded: @rpath/libsokol.dylib
  Referenced from: <57ED11C0-C30D-3C8C-A22E-53D217D831D7> /Users/floh/projects/sokol-d/build/sokol-d_imgui
  Reason: no LC_RPATH's found
[1]    99581 abort      ./sokol-d_imgui

Ooof, zig build -Dimgui is broken now though... see the PR CI...

What's zig version in your host?

...currently 0.14.0-dev.1511+54b668f8a, but let me try 0.13.0...

In my host (linux):
$ dub build :imgui
    Starting Performing "debug" build using ldc2 for x86_64.

But (rebuild, no clean):
$ zig build --summary all -Dimgui
getPath() was called on a GeneratedFile that wasn't built yet.
  source package path: /home/kassane/sokol-d
  Is there a missing Step dependency on step 'WriteFile '?
    The step was created by this stack trace:
name: 'WriteFile '. creation stack trace:
/home/kassane/zig-bootstrap/out/zig-mos-x86_64-linux-musl-baseline/lib/std/Build/Step/WriteFile.zig:70:26: 0x1472f2a in create (build)
        .step = Step.init(.{
                         ^
/home/kassane/zig-bootstrap/out/zig-mos-x86_64-linux-musl-baseline/lib/std/Build.zig:1058:37: 0x141a674 in addNamedWriteFiles (build)
    const wf = Step.WriteFile.create(b);
                                    ^
/home/kassane/sokol-d/build.zig:854:36: 0x1419beb in buildImgui (build)
    const wf = b.addNamedWriteFiles("cimgui");
                                   ^
/home/kassane/sokol-d/build.zig:191:38: 0x141c40f in buildLibSokol (build)
        const cimgui = try buildImgui(b, .{
                                     ^
/home/kassane/sokol-d/build.zig:222:40: 0x1425c54 in build (build)
    const lib_sokol = try buildLibSokol(b, .{
                                       ^
/home/kassane/zig-bootstrap/out/zig-mos-x86_64-linux-musl-baseline/lib/std/Build.zig:2155:44: 0x13feac4 in runBuild__anon_4851 (build)
        .error_union => try build_zig.build(b),
                                           ^
/home/kassane/zig-bootstrap/out/zig-mos-x86_64-linux-musl-baseline/lib/compiler/build_runner.zig:335:29: 0x13f99f9 in main (build)
        try builder.runBuild(root);
                            ^
/home/kassane/zig-bootstrap/out/zig-mos-x86_64-linux-musl-baseline/lib/std/start.zig:617:37: 0x13d5142 in posixCallMainAndExit (build)
            const result = root.main() catch |err| {
                                    ^
    Hope that helps. Proceeding to panic.
thread 21985 panic: misconfigured build script
/home/kassane/zig-bootstrap/out/zig-mos-x86_64-linux-musl-baseline/lib/std/Build.zig:2383:25: 0x14c2884 in getPath3 (build)
                        @panic("misconfigured build script");
                        ^
/home/kassane/zig-bootstrap/out/zig-mos-x86_64-linux-musl-baseline/lib/std/Build.zig:2354:27: 0x14704ab in getPath2 (build)
        const p = getPath3(lazy_path, src_builder, asking_step);
                          ^
/home/kassane/zig-bootstrap/out/zig-mos-x86_64-linux-musl-baseline/lib/std/Build.zig:2349:24: 0x1419864 in getPath (build)
        return getPath2(lazy_path, src_builder, null);
                       ^
/home/kassane/sokol-d/build.zig:434:41: 0x1420b7d in ldcBuildStep (build)
                include_dir.path.getPath(b)
                                        ^
/home/kassane/sokol-d/build.zig:255:41: 0x14262aa in build (build)
            const ldc = try ldcBuildStep(b, .{
                                        ^
/home/kassane/zig-bootstrap/out/zig-mos-x86_64-linux-musl-baseline/lib/std/Build.zig:2155:44: 0x13feac4 in runBuild__anon_4851 (build)
        .error_union => try build_zig.build(b),
                                           ^
/home/kassane/zig-bootstrap/out/zig-mos-x86_64-linux-musl-baseline/lib/compiler/build_runner.zig:335:29: 0x13f99f9 in main (build)
        try builder.runBuild(root);
                            ^
/home/kassane/zig-bootstrap/out/zig-mos-x86_64-linux-musl-baseline/lib/std/start.zig:617:37: 0x13d5142 in posixCallMainAndExit (build)
            const result = root.main() catch |err| {
                                    ^
/home/kassane/zig-bootstrap/out/zig-mos-x86_64-linux-musl-baseline/lib/std/start.zig:250:5: 0x13d4d1f in _start (build)
    asm volatile (switch (native_arch) {
    ^
???:?:?: 0x0 in ??? (???)
error: the following build command crashed:
/home/kassane/sokol-d/.zig-cache/o/c5449b067db55ce2b1e03be76a44c8a1/build /home/kassane/zig-bootstrap/out/zig-mos-x86_64-linux-musl-baseline/zig /home/kassane/zig-bootstrap/out/zig-mos-x86_64-linux-musl-baseline/lib /home/kassane/sokol-d /home/kassane/sokol-d/.zig-cache /home/kassane/.cache/zig --seed 0x60388260 -Z11dd7ae8b3482200 --summary all -Dimgui

In any case, maybe it's best to go back to the original idea of updating your cimgui fork to 1.91.1, and then change build.zig.zon to your fork again...

cimgui-forked update: https://github.com/kassane/sokol-d/commit/23c134c509f742ddda86f09a4f506cada48abede

Since the CI is green now again with your cimgui fork update I'll just close this PR.


[R-package] LightGBM OpenCL is broken

Currently, LightGBM R installation with GPU support is broken.
More information: https://github.com/Laurae2/lgbdl/issues/5
ping @jameslamb

@Laurae2 How do you foresee addressing this issue? I propose we use an environment variable to control:
a) copying in the boost submodule to the right place
b) setting the use_gpu flag
Does that make sense? I have correctly interpreted the resolution on that issue?

@jameslamb You need to modify the R install script (https://github.com/Microsoft/LightGBM/blob/master/build_r.R) to add something like this:
https://github.com/Laurae2/lgbdl/commit/b36919201ce1998de29e9a5f6de69459f03f5364
I could not manage to change your script to add something similar, there was always something wrong/missing due to the handling of trailing "/" + folder existence.


Tallow Candle from Terramisc

When you place a tallow candle it causes an internal server error and dupes the item. Reproduced the issue with another player.

Seems to be Server side.


Disable Clustering if the Map is zoomed all the way in

If the map is zoomed all the way in, some annotations are still clustered and are thereby inaccessible.
Clusters should only be shown if it is still possible to zoom in.

Which one of these features take precedence? Now I have both set: minUniqueLocationsForClustering as well as maxZoomLevelForClustering and I still always see cluster annotations.

If one or the other condition is true, clustering is disabled. Note that this only affects annotations that are in distinct locations. Annotations in the same location are still clustered.

What determines "same location"?

This is determined by comparing a geo hash of two locations. The implementation is here. It's basically making sure two locations are very close.


What is what?

Hi Chang,
I'd like to reuse this work on Zynq, but I'm struggling with what's here, I can see the HLS files (no Vivado project though) and some C/C++ files but I'm not sure which ones are Visual Studio and which ones are for the Zynq Processor... Do you have any notes about it?

Hi jc5706,
the files and directories except Win10TestApp&Win10TestAppRelease should be imported to vivado hls or xilinx SDSoC(SDx).
For HLS syntehsis, this project only supports convolutional layers.
The functions in lenet5/hw_layers/image_convolution.cpp, CONVOLUTION_LAYER_1 to CONVOLUTION_LAYER_3 are the top-level hardware functions in the HLS or SDSoC project.
Other functions in lenet5/hw_layers are not optimized for HLS synthesis because I didn't need them for my project... I used pooling layers and fc layers without synthesis and just run them on PS.
So if you want to synthesize these functions like pooling layers and fully connected layers, the extra work for optimization is needed.
Win10TestApp/Lenet5 Test is a Visual Studio Project and written in C#, so you don't need to import them to vivado project.
I hope that this work help your project :)

Thanks, I'll follow these directions


Fix empty test name when not specified in @Test

06ee812f9dbb2e780083c3909e1618e49431209e introduced a regression where TestResult#getTestName() is returning an empty string instead of null if there is a class level @Test annotation and testName is not specified. According to the Javadoc for that method:
If this result's related instance implements ITest or use @Test(testName=...),
returns its test name, otherwise returns null.

#922 addressed a similar issue with TestResult#getName(), but this fixes the root cause.

@skirkpatrick Looks good, thanks!
For future reference, try to remove import moving around and other stuff not related to the PR, since these things introduce noise (also, the indenting of the test doesn't appear correct but I can fix that later).

Thanks for merging!
Sorry about the formatting issues, definitely wasn't intentional.

Thank for the fix and tests :+1:


There is a typo in your prototxt file

MobileNetV2_deploy.prototxt
line63 :    name: "relu1_new"
line3196: name: "relu1_new"
Two layers are using the same name.

@gregary
thanks, I had fixed it and some details. I will share the trained model later.


[AzureMonitorExporter] Fix DuplicateKeyException when LogRecord contains EventId or EventName in both LogRecord and Attributes

Fixes #44653
If EventId and EventName are present in both LogRecord (LogRecord.EventId, LogRecord.EventName) and LogRecord.Attributes, EventId and EventName from LogRecord.Attributes are honored.

API change check
API changes are not detected in this pull request.

@rajkumar-rangaraj @TimothyMothra do we have an ETA for releasing this?

@vitor-baptista-vfx We're planning for a beta release the second week of July.


added the api_cert to config_builder.py

Checklist

[X] I have followed the Contributor Guidelines.
[X] I have added the relevant documentation.
[X] My branch is up-to-date with the Upstream master branch.

Changes proposed in this pull request
Your development environment

OS: Linux
OS Version: Ubuntu
Python Version: 3.x

Closing this PR #232 as I have added all the code for SSL under one PR #235


Bump rewrite to 8.12.0

Remove some custom Recipes with Rewrite code
Fix some test data to use available version
Add some TODOs and FIXMEs

lgtm. btw you should not PR from main branch.


⚠ Processors has degraded performance

In 6e12f69, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 71 ms

Resolved: Processors performance has improved in 20ea611.


What does YARD blow-up on this #extend call?

Here's the issue I made about it (to the wrong project though): https://github.com/blackwinter/brice/issues/5
Here's the file: https://github.com/blackwinter/ruby-nuggets/blob/master/lib/nuggets/env/set.rb

This is actually a fairly difficult problem to solve without YARD knowing anything about the source structure. The issue hear is that YARD thinks Nugget is a method, so it doesn't allow the extend call to work. The problem is that the source is parsed in such a way that the Nugget module is defined after the extend call is parsed. Ideally the author would define the Nugget module in the same file as the Nugget method, or before the extend call, somehow.
Note that it doesn't "blow up", it simply does not parse the extend call. Everything else is parsed fine.
We could ignore this sanity check, but that could lead to inconsistent results much later on, if Nugget is not eventually defined as a module. That situation would cause a complete failure of YARD to generate HTML, which is a worse situation than missing an extend.
I should add that this specific project has plenty of other YARD-related incompatibilities, and should probably not be parsed with YARD-- unfortunately YRI doesn't really know about this, so there's not much that can be done to stop such an error from being displayed. We could handle this situation explicitly and make the error nicer (a "warning" instead of "error"), but I think that's just an aesthetic issue at that point.

hi, author of the project in question here. as i stated in @trans' original report, i'm not familiar with yard (unfortunately, i might add). but i'd like to ask:

why doesn't yard know that Nuggets is a module? doesn't it follow requires?
what are the problems/incompatibilities yard has with ruby-nuggets? i ran it locally in the project directory and i didn't get any errors or warnings (which also means i couldn't reproduce the issue at hand, btw). [yard 0.7.4, ruby 1.9.3p6]

i'd definitely like to learn more about yard and, while probably not going to use it myself, how to enable others to use it on my projects.

Hi @blackwinter--

No, yard doesn't follow require's. This is generally a messy thing to do, because require() is LOADPATH dependent, and it's way too easy for YARD to get wrong rather than right. It also means you can potentially pull in code that you don't want documented just by requiring it (ie. if you require 'some/file_that_was_excluded_in_your_glob'), which will probably happen for the bulk of Ruby files excluded from globs.

Note that you can workaround the def Nuggets thing by simply defining the Nuggets module in your lib/nuggets.rb -- it's actually fairly rare that libs don't define modules in their lib/libname.rb files, so that's why this kind of a thing was not previously reported.

Not so much a "this breaks" compatibility problem so much as the method of documenting code is heavily RDoc oriented, so while it will generate HTML, it won't be very legible via YARD. The use of call-seqs, for instance, is not supported by YARD, which I noticed a lot of in the HTML. You can see documentation, but you probably won't want your users reading it in this format.

There are also places where you use --/++ to hide the preamble copyright headers and the comments end up in class/module docs, but YARD doesn't support --/++ either. This can be easily fixed by adding an extra newline. YARD stops tracking comments if there is more than one line of whitespace between the comment and declaration.

i see, thanks a lot for the tips! will keep that in mind for the future.
one last question: can you tell me how to reproduce the original error? so i can see when it's fixed.

I got the error when installing via rubygems, as it (wrongly imo) generates docs automatically.
In my .gemrc there is:
gem: --no-rdoc
Which turns off rdoc generation, but it's still generating yard docs. (Is that something yard does, btw?)

It's not generating docs, it's generating the yri db as it states in the output. yri is the equivalent of ri, so if you want no ri, you want --no-ri, not --no-rdoc.

Oh, that's right. Thanks.

I'm closing this since Nuggets doesn't seem to have parsing problems anymore. I'm not inclined to change anything here because at best we can just turn the error into a warning, which does nothing to actually resolve the root cause, and realistically that kind of error would crop up in many other places, so the fix wouldn't be 100% reliable anyway. I think the workaround here is to simply notify authors of these doc issues, because they are fairly easy to workaround in code (defining a module first) or via .yardopts (setting explicit parse order). PRs can even be submitted to these projects.


Re-ordered HPA specification to have memory as the first item in the …

What this PR does:
Re-ordered the spec.metrics list in HPA resources to put memory as the first resource in the list. This is because the HPA controller always reorders spec.metrics to have memory before CPU. This can cause issues in CI/CD tools such as Argo as it will show as permanently out of sync.
Which issue(s) this PR fixes:
Fixes #284
Checklist

CHANGELOG.md updated

Is there a reason u "resolved" my changes?

Is there a reason u "resolved" my changes?

Weird. It gave me an option to 'Commit suggestion'. Clicked it which resolved your changes but didn't actually seem to do anything.

Is there a reason u "resolved" my changes?

Weird. It gave me an option to 'Commit suggestion'. Clicked it which resolved your changes but didn't actually seem to do anything.

Weird indeed. Anyway I just did it for you :)


Provide Test messages for First Official DEMO

This ticket is for Marion / Leslyn.
We need the exact test messages we'll be using for demo day

[ ] Hep --> Test Messages can be found https://cdc.sharepoint.com/teams/CDC-Data-Exchange/Shared Documents/Forms/AllItems.aspx?csf=1&web=1&e=I4Tzgr&cid=f5e11cbe-2f3d-443b-83c0-a313d2b4871b&RootFolder=%2Fteams%2FCDC-Data-Exchange%2FShared Documents%2FPilot - HL7 (Lyme%2C Arbo%2C Hepatitis)%2FHepatitis%2FHepatitis v2.0 Test Messages&FolderCTID=0x012000C0F4C30B3730D44BBA06CCDA3983937A
[ ] Covid 19 ELR
[ ] PHLIP FLu -- > Test Messages can be found https://cdc.sharepoint.com/teams/CDC-Data-Exchange/Shared Documents/Forms/AllItems.aspx?xsdata=MDV8MDF8fGJmYTc0ZmYzNTZlYzRlNDZhNmE1MDhkYWZlMTIxNGQ0fDljZTcwODY5NjBkYjQ0ZmRhYmU4ZDI3NjcwNzdmYzhmfDB8MHw2MzgxMDE2NTA4Mzg2OTM1NDF8VW5rbm93bnxWR1ZoYlhOVFpXTjFjbWwwZVZObGNuWnBZMlY4ZXlKV0lqb2lNQzR3TGpBd01EQWlMQ0pRSWpvaVYybHVNeklpTENKQlRpSTZJazkwYUdWeUlpd2lWMVFpT2pFeGZRPT18MXxNVFkzTkRVMk9ESTRNelU1TWpzeE5qYzBOVFk0TWpnek5Ua3lPekU1T2pJek9ESXpNRGc0TFRsaU1URXRORFV4TXkxaE1XVXpMV1JoT0RZNU1ERm1ZekJsWlY4ME9UWTVPRGhsWWkwek9ERmlMVFEyWkRRdFltTXlOaTAzTXpneVpXVmlObUUyTjJWQWRXNXhMbWRpYkM1emNHRmpaWE09fGI4ODgzMzZhY2IyNDQ2ZjVhNmE1MDhkYWZlMTIxNGQ0fDAyZjY4MzAzYTE1YTQ4ZDk4ZjhlNGYwZWE2MzhhZjMz&sdata=TTBybGZ0QUNoSThac0ZRNXY0WTJ5emovV2FGNWtpNnVaaGsvSUxvK2dMOD0%3D&ovuser=9ce70869-60db-44fd-abe8-d2767077fc8f%2Cdza4%40cdc.gov&OR=Teams-HL&CT=1675359347529&clickparams=eyJBcHBOYW1lIjoiVGVhbXMtRGVza3RvcCIsIkFwcFZlcnNpb24iOiIyNy8yMzAxMDEwMDkxMyIsIkhhc0ZlZGVyYXRlZFVzZXIiOmZhbHNlfQ%3D%3D&id=%2Fteams%2FCDC-Data-Exchange%2FShared Documents%2FPilot - HL7 ELR (PHLIP)%2FTest Messages&viewid=4b24ff97-6305-41c4-b611-db7f0fc3209c

Currently (5/31/2023) we do not support Hep 2.0 nor PHILP... so I'll have to wait until we support those in order to validate those messages.


Handle integer type for k rows frame bound

Presto could use both integer and bigint columns for row frame bounds with a k preceding or following bound.
The old code expected only int64 column for frame bound. This caused issues like https://github.com/facebookincubator/velox/issues/5490

The TableWriteTest (unrelated to this PR) is broken.

@aditi-pandit CI is red. Would you rebase onto latest main to see if these errors clear?
CC: @xiaoxmeng

@aditi-pandit CI is red. Would you rebase onto latest main to see if these errors clear?
CC: @xiaoxmeng

Done.


[WIP] Fix documentation for bilinear upsampling

Description
Fixes https://github.com/apache/incubator-mxnet/issues/13078
Future work/alternate approaches:

Initialize weight in the backend, so that the user doesn't have to give weights as input.
Change backend to call contrib.BilinearResize2D

Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[ ] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
[ ] Changes are complete (i.e. I finished coding on this PR)
[ ] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[ ] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[ ] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[ ] Feature1, tests, (and when applicable, API doc)
[ ] Feature2, tests, (and when applicable, API doc)

Comments
Ref:
https://github.com/apache/incubator-mxnet/issues/9138
https://stackoverflow.com/questions/47897924/implementing-bilinear-interpolation-with-mxnet-ndarray-upsampling
https://github.com/apache/incubator-mxnet/issues/12970
https://github.com/apache/incubator-mxnet/pull/12983
https://github.com/apache/incubator-mxnet/issues/1412
https://discuss.mxnet.io/t/use-mx-nd-upsampling-with-bilinear-sample-type/2067/2

@mxnet-label-bot add [pr-work-in-progress, Operator]

@apeforest @anirudh2290 can you please help review?

@mxnet-label-bot update [Operator, pr-awaiting-review]

@apeforest @anirudhacharya Are you comments on the PR addressed now ? Can this PR be taken forward now ?

@anirudh2290 @apeforest Can you take another look at this PR?


Improved routing

Routing might be improved by adding optional regex-based pattern or datatype to the route declaration.
e.g.:
$baseUrl = 'http://myapp.loc:8080';
$router = new \bitExpert\Adroit\Router\RegexRouter($baseUrl);
$router->setRoutes([
        new Route('GET', [
                'route' => '/question/[:title]_[:id]',
                'params' => [
                        ':title' => ['type', 'string'],
                        ':id' => ['regex', '/[0-9]{1,}/']
                ]
        ], 'question')
]);

I would second that, like Silex did it with assert.

Instead of parameterizing we should implement a generic validation interface.
These Validators could also be used for replacing the former bF Validators for actions and so on. If there's no generic implementation (PSR-x), we could offer a package containing several validators.
$baseUrl = 'http://myapp.loc:8080';
$router = new \bitExpert\Adroit\Router\RegexRouter($baseUrl);
$router->setRoutes([
        new Route('GET', [
                'route' => '/question/[:title]_[:id]',
                'validators' => [
                        ':title' => new StringValidator(),
                        ':id' => [
                            new IntegerValidator(),
                            new MaxValueValidator(100)
                         ]
                ]
        ], 'question')
]);

I don't know if the route is implemented as immutable right now, but I would propose something like:
$router->setRoutes([
        new Route('/question/[:title]_[:id]')
            ->withMethod('GET')
            // ->withMethods(['GET', 'POST'])
            // ->withoutMethod('DELETE')
            // ->withoutMethods(['DELETE', 'OPTIONS'])
            ->withValidators('id', [
                new IntegerValidator(),
                new MaxValueValidator(100)
            ])
            //->withValidator('title', new TitleValidator())
            ->toAction('question')
]);

No need to over-engineer things. A simple regex matching routine should be enough. Sharing the domain object validation logic with url validation logic does not seem to make sense for me.

Well, it's not about overengineering but validating things. Since validation is always kind of same thing, no matter what the subjects are about in detail.


Support Amazon Simple Storage Service (AWS S3) metrics monitoring

[x] If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes #.
[x] Update the CHANGES log.

Related issue https://github.com/apache/skywalking/issues/9883
Screenshots

I think we should polish the dashboard a little.

Add 4 single values as the first line. 4xx, 5xx, Request Count, Request Latency
4xx, 5xx, Request latency, first byte, as line two
4 counts for all, get, put and delete as line three
Download and Uploaded at line four, one for half of the line, also open this new option

Update UI :


Allow For Easy Queue Binding

Currently when binding to a queue you MUST match the queue parameters exactly or it will not work at all. For example, if I have queue "a" that is durable and not auto-delete, the following code will never work:
var q = conn.queue('a');

q.subscribe(function(msg){
  console.log(msg);
});

But if I match what it really is:
var q = conn.queue('a', {durable:true, autoDelete:false});

q.subscribe(function(msg){
  console.log(msg);
});

It works.
I'd like to be able to just listen on a queue without knowing the explicit details of it. Or, if I get the options wrong it'd be nice to make a lot of noise rather than silently failing. :)
Thanks,
James

The philosophy of amqp is to always declare the stuff you will be using (configuration lives with the application). Nobody can decide for you, whether it is ok for your application to work with an existing queue with a different configuration.
The queue should emit an error 406 with PRECONDITION_FAILED, though. Take a look at test/test-queue-args.js for an example how to catch these. You are then free to ignore them, if You really want to.

Thanks... the event was what I should have been listening for.


set up xwayland hidpi scaling

secondhand issue: https://github.com/bnjmnt4n/system/issues/8

Looks like Ozone will be shipped in the future and everything else is moving towards full Wayland compatibility. Don't bother!


Week 2: Loops, logic, flow control

A like for like recreation of the week 2 content from Fortran, dropping the unnecessary stuff.

WIP https://github.com/arm61/ch40208/tree/week2

It is becoming apparent that lists and many array should come before loops