Receive-GitCommit Error

I am using v0.9.2 via nugget in PS 5.
When I call the Receive-GitCommit I am getting the following error.
Exception calling "Pull" with "2" argument(s): "Value cannot be null.
Parameter name: merger"
At \LibGit2\Functions\Receive-GitCommit.ps1:70 char:13

        $repo.Network.Pull($signature, $pullOptions)

        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
FullyQualifiedErrorId : ArgumentNullException

Where are you pulling from? Run
git config -l

I am pulling from a remote.
I am running a command like Receive-GitCommit -RepoRoot $SourceDir inside an script. The $SourceDir is set to a directory which is a git repository. I get the above error.
If I run
Set-Location -Path $SourceDir
git pull origin
The git command is able to pull from remote.

What is the URI of the remote you're pulling from? I need to see your Git configuration to try to reproduce the problem. I can't reproduce it.

Output from config below.. I just removed some info related to the URLs and recent repos from the config output..
$ git config -l
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
diff.astextplain.textconv=astextplain
rebase.autosquash=true
http.sslcainfo=C:/Program Files (x86)/Git/mingw32/ssl/certs/ca-bundle.crt
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
pack.packsizelimit=2g
credential.helper=manager
alias.last=log -1 HEAD
gui.recentrepo=
gui.recentrepo=
gui.recentrepo=
core.bare=false
core.repositoryformatversion=0
core.filemode=false
core.symlinks=false
core.ignorecase=true
core.logallrefupdates=true
remote.origin.url=http://
remote.origin.fetch=+refs/heads/:refs/remotes/origin/
branch.master.remote=origin
branch.master.merge=refs/heads/master
branch.feature/xxx.remote=origin

I am pulling from an internal git server and that I why I removed the origin url. I will try today with a public git repository.

I tried doing this with LibGit repository.. I updated to the latest version to see if I get anything different.
PS C:\Anand\Test\LibGit2.PowerShell> git config -l
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
diff.astextplain.textconv=astextplain
rebase.autosquash=true
core.symlinks=false
core.autocrlf=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
pack.packsizelimit=2g
help.format=html
http.sslcainfo=/ssl/certs/ca-bundle.crt
diff.astextplain.textconv=astextplain
rebase.autosquash=true
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
credential.helper=manager
alias.last=log -1 HEAD
gui.recentrepo=
gui.recentrepo=
gui.recentrepo=
user.name=Anand Mukundan
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
remote.origin.url=https://github.com/webmd-health-services/LibGit2.PowerShell.git
remote.origin.fetch=+refs/heads/:refs/remotes/origin/
branch.master.remote=origin
branch.master.merge=refs/heads/master
PS C:\Anand\Test\LibGit2.PowerShell> Receive-GitCommit
Exception calling "Pull" with "3" argument(s): "Value cannot be null.
Parameter name: merger"
At xxxx\LibGit2.PowerShell.0.10.1\LibGit2\Functions\Receive-GitCommit.ps1:69 c

        [LibGit2Sharp.Commands]::Pull($repo, $signature, $pullOpt ...

        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
FullyQualifiedErrorId : ArgumentNullException

I suspect this may have something to do with the network as I am behind a firewall. If I switch to a different network (not firewalled), then I get certificate error and not this error. But "git pull" does not seem to have a problem in both cases.
Is there some way to check what error/stacktrace that is being generated apart from the PS output?

Ok, I did take a look at libgit code and after debugging found that if email is not setup in git, libgit fails to build a default signature. The PS module calls this function when a before a receive and that returns an null object. So the Receive will fail with this error.


fix(ui/side_panel) biome linter broke drag end handler

  ✖ Avoid the delete operator which can impact performance.

    282 │   endDrag() {
  > 283 │     delete this.element.dataset.neuroglancerSidePanelDrag;
        │     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    284 │     this.dragSource = undefined;
    285 │   }

  ℹ Unsafe fix: Use an undefined assignment instead.

    281 281 │
    282 282 │     endDrag() {
    283     │ - ····delete·this.element.dataset.neuroglancerSidePanelDrag;
        283 │ + ····this.element.dataset.neuroglancerSidePanelDrag·=·undefined;
    284 284 │       this.dragSource = undefined;
    285 285 │     }

Using undefined causes the data attribute to remain as data-neuroglancer-side-panel-drag="undefined" which still triggers the [data-neuroglancer-side-panel-drag] css property which makes the neuroglancer-side-panel-drop-zone block pointer events.
I created an issue on biome https://github.com/biomejs/biome/issues/1765 We could disable noDelete for now or change the code to this.element.removeAttribute('data-neuroglancer-side-panel-drag');
Side note, I added a comment to my AnnotationLayerView PR that might have been unnoticed (in code comment thread) https://github.com/google/neuroglancer/pull/504#discussion_r1474836341

Thanks for catching this --- please just disable this lint in biome.json.  Given the large number of lint fixes I failed to adequately check them all.

Done


[Feature] Implement Apply Server Side

Is your feature request related to a problem? Please describe.
Not problem related
Describe the solution you'd like
Implement a method ApplyServerSide() or similar name, to allow execute the apply using service side. This is done in kubectl with the flag --server-side. This feature is new (beta) in K8s 1.16, more about it here: https://kubernetes.io/docs/reference/using-api/api-concepts/#server-side-apply
Describe alternatives you've considered
The current Apply*() methods
Proposal
Check the kubectl/pkg/cmd/apply/apply.go before implement it, it's in beta now so it may change. If Server Side is enabled it's similar to the other services: get the helper and use the method Patch() passing some options. It does not require to create the patcher.
Additional context
It's beta in v.1.16, wait until it's declared stable or implement it and make a note about its state.
References
None

Hey there,
this came up in a GitHub search for Server-Side Apply.
If you need any help with this or encounter problems while implementing, feel free to get in touch.
As far as i've read, you're using json so you shouldn't encounter big problems. We are also investigating how to add Server-Side Apply to client-go, but in general it already works through the patch method.
You can find us (wg-api-expression) on the Kubernetes Slack https://kubernetes.slack.com/archives/C0123CNN8F3.


⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 92 ms

Resolved: ClamAV performance has improved in 493fc00 after 1 hour, 7 minutes.


ARROW-12316: [C++] Prefer mimalloc on Apple

mimalloc gives better results than jemalloc on macro-benchmarks on macOS.

cc @jonkeane

That looks good to me, thanks

CI passed on fork (JNI failure appears unrelated): https://github.com/pitrou/arrow/runs/2335546323


How to disable all plugins?

I'm using codecov/codecov-action@v3:
https://github.com/MobileTeleSystems/onetl/blob/b549456be28a5323d018c0ce1e6b43af2712672d/.github/workflows/tests.yml#L364-L380
Tests are running in parallel CI jobs, then coverage reports are fetched from all of these jobs, combined to coverage.xml and uploaded to Codecov.
I'm using a dedicated script for generating coverage report, which passes a custom config to coverage script.
While upgrading to codecov/codecov-action@v4 I discovered that coverage was dropped from 94.12% to 92.62%:
https://github.com/MobileTeleSystems/onetl/pull/207
https://app.codecov.io/gh/MobileTeleSystems/onetl/commit/b549456be28a5323d018c0ce1e6b43af2712672d
https://app.codecov.io/gh/MobileTeleSystems/onetl/pull/207
See "Indirect changes" tab:
https://app.codecov.io/gh/MobileTeleSystems/onetl/pull/207/indirect-changes
https://app.codecov.io/gh/MobileTeleSystems/onetl/pull/207/blob/onetl/connection/__init__.py

Same file in develop branch:
https://app.codecov.io/gh/MobileTeleSystems/onetl/commit/b549456be28a5323d018c0ce1e6b43af2712672d/blob/onetl/connection/__init__.py

Such code blocks should be excluded from coverage report according to coverage config file:
https://github.com/MobileTeleSystems/onetl/blob/develop/tests/.coveragerc
[report]
exclude_lines =
    if TYPE_CHECKING:

But for some reason report was generated without passing this config file to coverage report cli.
By default it searches for .coveragerc file in the root of the repo, but I moved it to tests/.coveragerc, and thus config file location should be passed explicitly.
It looks like v4 started generating coverage report by its own.
v3:
https://github.com/MobileTeleSystems/onetl/actions/runs/7740125542/job/21104814561#step:10:43
v4:
https://github.com/MobileTeleSystems/onetl/actions/runs/7740378217/job/21105498820?pr=207#step:10:48
This is because codecov-cli 0.4.x implements plugin system, and pycoverage plugin now generates coverage report automatically:
https://github.com/codecov/codecov-cli/blob/v0.4.5/codecov_cli/plugins/pycoverage.py
And there is no way to pass here my custom tests/.coveragerc config to this plugin, to avoid generating wrong reports.
There is also no way to disable all plugins - I can just pass one or more plugins to disable, but cannot pass empty list, it just will be ignored by both Github Actions framework (field is optional) and codecov-action, as you can see:
https://github.com/MobileTeleSystems/onetl/commit/6ace443
https://github.com/MobileTeleSystems/onetl/actions/runs/7741257274/job/21108235658#step:10:2
How can I completely disable pycoverage plugin? There is no dedicated option for that, neither plugins documentation in codecov-cli.

The only way I can prevent covecov/codecov-action@v4 from automatic report generation is to pass plugin name which is not used in my project:
https://github.com/MobileTeleSystems/onetl/pull/207/commits/3ffbba4ce45c3f3ac62fadf8669d0a552494ecbd
Fortunately, if plugin cannot be applied, it is exited immediately. But I don't know if this behavior will be preserved or not


sched: Consolidate the cancellation notification logic

Summary
no real funcitonality change.
Impact
Testing

Cannot be merged due to conflict

Cannot be merged due to conflict

Rebase to the mainline, please try again.

Need PR merge first: https://github.com/apache/incubator-nuttx/pull/1240

@xiaoxiang781216 Could you please rebase again, this will also need #1242 to pass.

@xiaoxiang781216 Could you please rebase again, this will also need #1242 to pass.

Done.

The failing build is due to a missing prototype, #1243 fixes that.


Log says "add TV manually" even if it is already added?

Hello,
is it normal, that the logfile of homebridge says at every start, that one should add the TVs manually, altough they are already added working and can't be added twice??
Mar 16 18:26:51 Server homebridge[26699]: Preparing Advertiser for 'Schlafzimmer Fernseher-TV 8AC1' using bonjour-hap backend!
Mar 16 18:26:51 Server homebridge[26699]: Starting to advertise 'Schlafzimmer Fernseher-TV 8AC1' using bonjour-hap backend!
Mar 16 18:26:51 Server homebridge[26699]: [3/16/2021, 6:26:51 PM] Schlafzimmer Fernseher-TV 8AC1 is running on port 35403.
Mar 16 18:26:51 Server homebridge[26699]: [3/16/2021, 6:26:51 PM] Please add [Schlafzimmer Fernseher-TV 8AC1] manually in Home app. Setup Code: 031-45-154

Or is that normal and just impossible to hide that message?

Hi, Tv  are external accessories, that are retrieved from cache and are published by the plugin at each launch. I can easily change the message, but since there might be added to different home app not sure I can have knowledge it was already added. It is the same as the homebridge itself :)

Ok, when I know that this is the normal behavior, it's fine. Thx.


Scrollable headers/footers bahavior when filtering

5.x | Scrollable Headers and Footers

Cannot be filtered because they are not part of the main list, but added separately at the initialization phase (basically, implementing IFilterable will be useless).

What does this mean exactly? Will the headers/footers remain in the list after filtering or not? Is it possible to modify this behavior? I'm trying to apply a search filter to main items, but leave the scrollable header untouched. Unfortunately, the header always disappears when i use filterItems().
I tried overriding filterObject() with this:
override fun filterObject(item: GenericItem?, constraint: Serializable?) = if (isScrollableHeaderOrFooter(item)) true else super.filterObject(item, constraint)
but it doesn't seem to affect the behavior.
Is there any way around this?

@shymmq, I'm sorry but it is not possible for how it is designed. It is in more parts of the code.
It could be done in the future, but I have no plan/time for it now.


[config] use OsRng for generate-keypair binary

before same TEST_SEED was used
so generate-keypair used to generate same keypair on every run

@bors-libra r+

:pushpin: Commit d8fe609 has been approved by sunmilee

/cc @mimoo @gedigi

@bors-libra retry

@bors-libra ping

:sleepy: I'm awake I'm awake

:bulb: This pull request was already approved, no need to approve it again.

There's another pull request that is currently being tested, blocking this pull request: #1527

@bors-libra r+

:pushpin: Commit d8fe609 has been approved by opsguy

:hourglass: Testing commit d8fe609b3431052db0645361d04b3411cf650e5c with merge c0b738e5566211f57202b9bdf25f405c8e63ae58...

:sunny: Test successful - checks-circle_commit_workflow
Approved by: opsguy
Pushing c0b738e5566211f57202b9bdf25f405c8e63ae58 to master...


Display folder owner

In the drop down menu to select the destination folder of an automate, we have a raw list of folder names. But it might be hard to choose the correct one. For super users for example, they will see one inbox folder for every existing users, with no way to know which one belongs to who. Displaying the owner of each folder, eg "inbox (dani)" would help here

@dani, good point


Add ability to define return type for getValue

It is a simple idea, I might be completely wrong here, but think it would be nice if we could define the return type of getValue.
It would be even better if getValue could find out the return type based on the accessorKe or accessorFn but I do not believe that is possible. :/

I think it should infer the type from the TData and the corresponding accessorKey like in the previous version.

I think it should infer the type from the TData and the corresponding accessorKey like in the previous version.

I totally agree, I just wasn't sure if it is possible. If the previous version had that feature, I'll update this PR with a better implementation.

Closing in favor of #4109


WhisperClient throwing NullReferenceException when calling TranscribeAudio, and ArgumentException: boundary when calling TranscribeAudioAsync

Service
OpenAI
Describe the bug
I'm having the error below when trying to use the AudioClient whisper-1, as described in your readme.
Here's my code (used in Unity 2022.3 LTS):
OpenAIClient openAIClient = new OpenAIClient(new ApiKeyCredential("sk-proj-key"));
var assistantClient = openAIClient.GetAssistantClient();
var assistant = assistantClient.GetAssistant("asst_id").Value;
Debug.Log(assistant.Name);
AudioClient ttsClient = openAIClient.GetAudioClient("tts-1");
AudioClient whisperClient = openAIClient.GetAudioClient("whisper-1");

string audioFilePath = Path.Combine(Application.streamingAssetsPath, "test.mp3");
AudioTranscriptionOptions options = new()
{
    ResponseFormat = AudioTranscriptionFormat.Verbose,
    TimestampGranularities = AudioTimestampGranularities.Word | AudioTimestampGranularities.Segment,
};

And below is the stack trace of the error in AudioTranscription transcription = whisperClient.TranscribeAudio(audioFilePath, options);.

NullReferenceException: Object reference not set to an instance of an object
System.Net.Http.MultipartContent.Dispose (System.Boolean disposing) (at :0)
System.Net.Http.HttpContent.Dispose () (at :0)
OpenAI.MultipartFormDataBinaryContent.Dispose () (at <84f990b59862492894fc2b32532747bf>:0)
OpenAI.Audio.AudioClient.TranscribeAudio (System.IO.Stream audio, System.String audioFilename, OpenAI.Audio.AudioTranscriptionOptions options, System.Threading.CancellationToken cancellationToken) (at <84f990b59862492894fc2b32532747bf>:0)
OpenAI.Audio.AudioClient.TranscribeAudio (System.String audioFilePath, OpenAI.Audio.AudioTranscriptionOptions options) (at <84f990b59862492894fc2b32532747bf>:0)

I tried alternatively to do it using async, with the snippet below
var transcription = whisperClient.TranscribeAudioAsync(audioFilePath, options);
while (!transcription.IsFaulted && !transcription.IsCanceled && !transcription.IsCompleted && !transcription.IsCompletedSuccessfully)
{
    yield return new WaitForEndOfFrame();
}
Debug.Log(transcription.Status);
Debug.Log(transcription.Exception);
Debug.Log(transcription.Result);

The status comes up as Failed, and below is the stack trace of the error in Debug.Log(transcription.Result);

ArgumentException: boundary
System.Net.Http.MultipartContent..ctor (System.String subtype, System.String boundary) (at :0)
System.Net.Http.MultipartFormDataContent..ctor (System.String boundary) (at :0)
OpenAI.MultipartFormDataBinaryContent..ctor () (at <84f990b59862492894fc2b32532747bf>:0)
OpenAI.Audio.AudioTranscriptionOptions.ToMultipartContent (System.IO.Stream audio, System.String audioFilename) (at <84f990b59862492894fc2b32532747bf>:0)
OpenAI.Audio.AudioClient.TranscribeAudioAsync (System.IO.Stream audio, System.String audioFilename, OpenAI.Audio.AudioTranscriptionOptions options, System.Threading.CancellationToken cancellationToken) (at <84f990b59862492894fc2b32532747bf>:0)
OpenAI.Audio.AudioClient.TranscribeAudioAsync (System.String audioFilePath, OpenAI.Audio.AudioTranscriptionOptions options) (at <84f990b59862492894fc2b32532747bf>:0)
Rethrow as AggregateException: One or more errors occurred. (boundary)
System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) (at :0)
System.Threading.Tasks.Task1[TResult].GetResultCore (System.Boolean waitCompletionNotification) (at <b11ba2a8fbf24f219f7cc98532a11304>:0) System.Threading.Tasks.Task1[TResult].get_Result () (at :0)

Steps to reproduce

Create a unity project
Import OpenAI.dll into Plugins folder
Import all dependencies from nuget.org into a subfolder Dependencies inside Plugins folder (
Create a monobehaviour script, add it to the camera on the scene hierarchy (create a camera if none is there)
Edit script adding relevant snippet inside Start() method, adding needed "using" statements
Save changes, and click "Play" button, and watch console for logs

Code snippets
No response
OS
Windows 10
.NET version
.NET Standard 2.1 / .NET Framework 4.8 (tried both)
Library version
2.0.0 latest

To replicate the issue:

Open an empty unity project using unity 2022.3 (LTS)
Click Assets > Import Package > Custom Package, and select the file from link below
In Project view, double click to open Scenes/TestChatGPT
In Hierarchy view, click "TestChatGPT" object, then in the Inspector view, double click the grayed out script "TestChatGPT" to open the script in visual studio (or whatever you have setup as IDE). Put your API key and Assistant ID, and save the file
Back in Unity, open the Console view, and click Play at the center top, the error will show in the console

https://drive.google.com/file/d/1aydM-ihuAA-bFYZaMpk3aKy3-PvcID2J/view?usp=sharing


Add lighthouse to readme

Once we're syncing to the public BSR, have the module in the README. Related to #78

https://github.com/bufbuild/modules/issues/78#issuecomment-1563448085


legend configuration

Hi,
Here is a chunk of code adopted from plot.rs.  .legend() is a method of plot and has only one parameter &mut self, Legend::new() can construct a default legend, but how to pass a legend with customized options to plot ?

The legend() function in Plot can only add a legend with default values.
For a more customized version, we need to use the Legend struct directly. See https://docs.rs/plotpy/latest/plotpy/struct.Legend.html


Openh264v1.7

I don't understand this PR clearly. Several commits should have been in master.

@themusicplace61 what does the comment mean?
@patttakid it looks to me that this PR is quite mixed up. If there is a change needed, pls submit another PR, thx.


skywalking疯狂刷线程池满  导致数据无法上报查看

Please answer these questions before submitting your issue.

Why do you submit this issue?
[ ] Question or discussion

Question
skywalking-oap-server.log 日志里疯狂刷这个,点进控制台里也看不到数据了  重启后正常 一段时间后又出现了??
org.apache.skywalking.oap.server.library.server.grpc.GRPCServer - 119 [grpc-nio-worker-ELG-3-1] WARN  [] - Grpc server thread pool is full, rejecting the task

Bug

Which version of SkyWalking, OS and JRE?
版本是8.1   jdk1.8
重启后正常 一段时间后又出现了??

English only. We have explained many times in previous issue.


I am trying to post a message to slack along with a  attachment i am getting error as The server responded with: {'ok': False, 'error': 'channel_not_found'}

I am trying to send an slack message along with attachment and I am getting below error
raceback (most recent call last):
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/flask/app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/flask/app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/flask/app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/flask/app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/functions_framework/init.py", line 174, in view_func
function(event)
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/functions_framework/init.py", line 70, in wrapper
return func(*args, **kwargs)
File "/workspace/main.py", line 49, in subscribe
slack_utils.send_slack_message(channel_id,[excel_filename])
File "/workspace/slack_utils.py", line 116, in send_slack_message
client.chat_postMessage(channel=channel_id, text=message)
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/slack_sdk/web/client.py", line 2564, in chat_postMessage
return self.api_call("chat.postMessage", json=kwargs)
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/slack_sdk/web/base_client.py", line 155, in api_call
return self._sync_send(api_url=api_url, req_args=req_args)
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/slack_sdk/web/base_client.py", line 186, in _sync_send
return self._urllib_api_call(
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/slack_sdk/web/base_client.py", line 317, in _urllib_api_call
).validate()
File "/layers/google.python.pip/pip/lib/python3.10/site-packages/slack_sdk/web/slack_response.py", line 199, in validate
raise e.SlackApiError(message=msg, response=self)
slack_sdk.errors.SlackApiError: The request to the Slack API failed. (url: https://www.slack.com/api/chat.postMessage)
The server responded with: {'ok': False, 'error': 'channel_not_found'}
I am sure that my channelid is correct and the same code was working uptill yesterday.
any help is appreciated.

Hi, @harinath3489!
Thanks for submitting this question.
Have you verified that your app's bot is invited to the channels you are attempting to post messages in?

Yes I have, it was all working fine till yesterday , today I made few changes ( different module) and tried running I am getting this error


Push latest mosn image to docker hub

Push lastest mosn image to docker hub after each successful build, so that sofa-mesh can use latest mosn image to deploy and run istio end to end.

Related #178

SOFAMesh does not need SOFAMosn image, instead it needs the executable file to be publicly available. I create #197 to better describe the needs.
But it is still reasonable to put the image to docker hub, since some people only use SOFAMosn as proxy.


Remove duplicate icons from listing in documentation

Used http://textmechanic.com/text-tools/basic-text-tools/remove-duplicate-lines/ to eliminate any duplicate lines.

Looks good, thanks!


[Website] Would be nice to have anchors on the main web page.

Like if we could do https://www.motoslave.net/sugarcube/2/#downloads or https://www.motoslave.net/sugarcube/2/#add-ons. Not a huge deal, but it would be convenient, since people seem to miss that official add-ons even exist or where to find them.

The major sections do have anchors, so https://www.motoslave.net/sugarcube/2/#downloads does actually work.
IIRC, the subsections do not, though they should.


internal/poll: panic: runtime error: slice bounds out of range [xx:30]

Go version
go1.22.2 darwin/arm64
Output of go env in your module/workspace:
Many different builders over years.

What did you do?
Syncthing gathers crash reports from users, when the binary panics or otherwise exits abnormally for some reason. There's a lot of very mysterious stuff in there, which we'll often attribute to system/hardware problems of some kind if it's not systematic. However, there is one thing that is systematic and has existed for years now (at least back to Go 1.19) with the same backtrace.
I'm posting this here not because I have an obvious smoking gun, but to see if it makes sense to anyone familiar with the internals in question...
What did you see happen?
Essentially, this:
panic: runtime error: slice bounds out of range [76:30]

goroutine 14953 [running]:
internal/poll.(*FD).Write(0x14000b1fd00, {0x140038405c0, 0x1e, 0x1e})
	internal/poll/fd_unix.go:380 +0x3ac
net.(*netFD).Write(0x14000b1fd00, {0x140038405c0?, 0x0?, 0x14001566168?})
	net/fd_posix.go:96 +0x28
net.(*conn).Write(0x140005c2f40, {0x140038405c0?, 0x0?, 0xc?})
	net/net.go:191 +0x34
crypto/tls.(*Conn).write(0x14000120388, {0x140038405c0?, 0x5?, 0x5?})
	crypto/tls/conn.go:945 +0x100
crypto/tls.(*Conn).writeRecordLocked(0x14000120388, 0x17, {0x14003febb90, 0x8, 0x8})
	crypto/tls/conn.go:1026 +0x504
crypto/tls.(*Conn).Write(0x14000120388, {0x14003febb90, 0x8, 0x8})
	crypto/tls/conn.go:1233 +0x34c
github.com/syncthing/syncthing/lib/connections.(*limitedWriter).Write(0x1400094bce8?, {0x14003febb90?, 0x140001343f0?, 0x1400094bdf8?})
	github.com/syncthing/syncthing/lib/connections/limiter.go:249 +0x98
github.com/syncthing/syncthing/lib/protocol.(*countingWriter).Write(0x14004d8ab10, {0x14003febb90?, 0x10599fde0?, 0x14000d95370?})
	github.com/syncthing/syncthing/lib/protocol/counting.go:46 +0x34
github.com/syncthing/syncthing/lib/protocol.(*rawConnection).writeMessage(0x14002fe58c0, {0x1052221c0, 0x10599fde0})
	github.com/syncthing/syncthing/lib/protocol/protocol.go:839 +0x550
github.com/syncthing/syncthing/lib/protocol.(*rawConnection).writerLoop(0x14002fe58c0)
	github.com/syncthing/syncthing/lib/protocol/protocol.go:774 +0x1a0
github.com/syncthing/syncthing/lib/protocol.(*rawConnection).Start.func3()
	github.com/syncthing/syncthing/lib/protocol/protocol.go:332 +0x24
created by github.com/syncthing/syncthing/lib/protocol.(*rawConnection).Start in goroutine 75
	github.com/syncthing/syncthing/lib/protocol/protocol.go:331 +0x184

Things I note here:

Thousands of separate users are reporting this crash
The end index of the slice is almost always 30, but not precisely always. The start index is always higher than 30.
It's all darwin all the time, but both amd64 and arm64. This has never been reported for other platforms, even though darwin is a small minority of users.

Examples of other indexes:

What did you expect to see?
The slice passed should be fine... Especially, since the slice with the impossible indexes is after TLS has done it's thing. My gut feeling is there are shenanigans in the TLS stack on Darwin...?

I see that the byte slice being written is allocated by a buffer pool.
https://github.com/syncthing/syncthing/blob/main/lib/protocol/bufferpool.go
Without digging super deep into this code, I suspect that it's not concurrent safe.
Does the race detector report anything?

This has been stress tested with the race detector quite extensively over the years, without anything popping up. Also as mentioned it never shows up on other platforms than darwin. And in a case the slice that gets written after passing through TLS should be somewhat different from the slice passed into TLS?

This is probably a dup of #61060. In particular, it feels like the system write is returning an invalid result (one longer than the amount we asked it to write).
If we could find a way to reproduce, we could figure out how to fix, which may involve fixing Darwin somehow.


overlapping labels

Im experiencing the following overlapping:

code snippet:
  const data1 = [
    {
      color: "#FFFFE0",
      dataPoint: "110k",
      frontColor: "#FFFFE0",
      label: "EAND",
      value: 3.985507246376811,
    },
    {
      color: "#FF6347",
      dataPoint: "70k",
      frontColor: "#FF6347",
      label: "FAB",
      value: 2.536231884057971,
    },
    {
      color: "lightgreen",
      dataPoint: "400k",
      frontColor: "lightgreen",
      label: "ADCB",
      value: 14.492753623188406,
    },
    {
      color: "rgb(255,165,0)",
      dataPoint: "330k",
      frontColor: "rgb(255,165,0)",
      label: "QHOLDING",
      value: 11.956521739130435,
    },
    {
      color: "rgb(234,134,453)",
      dataPoint: "2M",
      frontColor: "rgb(234,134,453)",
      label: "TAQA",
      value: 67.02898550724638,
    },
  ];
  const data2 = [
    {
      color: "#FFFFE0",
      dataPoint: "10k",
      dataPoint1: "110k AED",
      frontColor: "#FFFFE0",
      label: "EAND",
      value: 1.3888888888888888,
    },
    {
      color: "#FF6347",
      dataPoint: "10k",
      dataPoint1: "70k AED",
      frontColor: "#FF6347",
      label: "FAB",
      value: 1.3888888888888888,
    },
    {
      color: "lightgreen",
      dataPoint: "100k",
      dataPoint1: "400k AED",
      frontColor: "lightgreen",
      label: "ADCB",
      value: 13.88888888888889,
    },
    {
      color: "rgb(255,165,0)",
      dataPoint: "100k",
      dataPoint1: "330k AED",
      frontColor: "rgb(255,165,0)",
      label: "QHOLDING",
      value: 13.88888888888889,
    },
    {
      color: "rgb(234,134,453)",
      dataPoint: "500k",
      dataPoint1: "2M AED",
      frontColor: "rgb(234,134,453)",
      label: "TAQA",
      value: 69.44444444444444,
    },
  ];

          <PieChart
            extraRadius={s(100)}
            data={data}
            showExternalLabels
            externalLabelComponent={(item) => (
              <SvgText fontSize={ms(10)} fill={item?.color} fontWeight={"300"}>
                {/* {item?.dataPoint} */}
                {item?.dataPoint}/{item?.value.toFixed(0)}%
              </SvgText>
            )}
            labelLineConfig={{
              color: COLORS.white,
              labelComponentWidth: s(40),
              length: 4,
            }}

          />

Solved it using the following sort that keeps everything away from each other:
const wiggleSort = (arr) => {
// Sort the array based on the 'value' key in ascending order
arr.sort((a, b) => a.value - b.value);
// Create a new array to store the result
const result = new Array(arr.length);

// Fill even indices with objects having smaller values
let evenIndex = 0;
for (let i = 0; i < arr.length; i += 2) {
  result[i] = arr[evenIndex];
  evenIndex++;
}

// Fill odd indices with objects having larger values
let oddIndex = arr.length - 1;
for (let i = 1; i < arr.length; i += 2) {
  result[i] = arr[oddIndex];
  oddIndex--;
}

return result;

};

Good solution @Hadionly
I have also made a fix in the library, through which overlapping of external labels will be avoided. Usually the overlap was happening near the poles (top or bottom). So, now the library renders the external labels for sections near the poles directly above (or below) them instead of drawing a line towards left or right and then rendering the label.
This behaviour of automatically avoiding the overlapping of external labels can be disabled by setting the property avoidOverlappingOfLabels tofalse inside the labelLineConfig prop.
This is available from versions 1.4.31 onwards. Please use the latest version of the library.


"WrapServer" is undefine

"WrapServer" is undefine

Please try again, I modify some code in NetSession.h/cpp https://github.com/IronsDu/brynet/commit/a9c00a5159c82fa52805845e33340157cff103da


Fix edit button

@constantinpape could you try the preview and see if you can see the edit button and use it for updating items?

@oeway the preview doesn't work

Actually also happens on the main site now too:

Oops, sorry, it was from an update in the collection repo, fixed now: https://github.com/bioimage-io/collection-bioimage-io/pull/246


Not working on ESXi 7.0 (U1) Free License

We tried to migrate our old ESXi Standalone infrastucture with this tool.
At the readme is not stated which services, versions or licenses are required that the migration is working. Could you bring some clarification to this, would be nice.
When we try it, we always getting:
Error: ServerFaultCode: Current license or ESXi version prohibits execution of the requested operation.
We tried to migrate our old ESXi Standalone infrastucture with this tool.

From my point of view the API of the ESXi free is restricted and so it think this is the reason why it is not working.

I added a note on this in the README file.
https://github.com/vexxhost/migratekit/commit/786fa3f6e549cf40e6f08d39a609c6169c3a95a5


Updates Schnorr native and circuit verifier challenge with public key, removing salt

Motivation

Updates Schnorr native and circuit verifier challenge with public key, removing the salt.
Updates Schnorr native and circuit randomization scheme.
Adds CryptoRng to Signature scheme traits.

Approach
This implementation of Schnorr constructs a signature with a verifier_challenge defined as:
verifier_challenge := ToScalarField( H( prover_commitment || public_key || message_length || message ))

As part of this, the former salt has been removed. In addition, by introducing the public key to the hash, this requires rearchitecting signature randomization. Previously we employed randomization as follows:
[G] := {0, 1}*

private_key := {0, 1}*
[public_key] := private_key * [G]
message := "Hello World"
(prover_response, verifier_challenge) := Sign(private_key, message)

randomizer := {0, 1}*
[randomized_public_key] := randomizer * [public_key]
randomized_prover_response := prover_response - (verifier_challenge * randomizer)
randomized_verifier_challenge := verifier_challenge

However, with the public key in the preimage of the hash, we update the scheme to continue support for randomization  as follows (credits to @Pratyush):
[G] := {0, 1}*

private_key := {0, 1}*
[public_key] := private_key * [G]
message := "Hello World"
(prover_response, verifier_challenge) := Sign(private_key, message)

randomizer := {0, 1}*
randomized_private_key := private_key * randomizer
[randomized_public_key] := randomized_private_key * [G] == randomizer * [public_key]
(randomized_prover_response, randomized_verifier_challenge) := Sign(randomized_private_key, message)

Test Plan

Updates existing Schnorr tests to reflect the new convention.
Adds a new check that randomized_private_key * [G] == randomizer * [public_key]

I can confirm that the Schnorr native and circuit tests are passing on my local machine.

As this is an extension of the feat/hash_to_parameters branch with is still in draft, I am merging this branch in to prevent drift as higher-level changes are made using hash_to_curve on DPC components.


Indexes are shown in Simple View

System information:

Operating system (distribution) and version win10 x64
DBeaver version 7.1.2

Connection specification:

Database name and version SQLite

Describe the problem you're observing:
Indexes are shown when Simple view (or Custom view where Options Show only Tables and Views and Hide Folders options are checked) is enabled

Duplicate of #9164


End to end exhibitor lockdown

High-level description
Automated lock down of the exhibitor service via mutual TLS.
https://docs.mesosphere.com/1.13/security/ent/tls-ssl/exhibitor/

Adds the dcoscertstrap package which provides secure PKI bootstrap capabilities to the exhibitor service.
Orchestration for PKI initialization has been added to gen
start_exhibitor.py has been modified to generate end  entity private keys and submit CSRs to the transient bootstrap CA service.

Corresponding DC/OS tickets (required)

DCOS-56036 Update installer for automated exhibitor lock down
DCOS-56038 Add Exhibitor lock down automation to exhibitor systemd unit

Related tickets (optional)

DCOS-55992 Develop install time CA CLI and service

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[ ] Change log from the last version integrated (this should be a link to commits for easy verification and review): example
[ ] Included a test which will fail if code is reverted but test is not. If there is no test please explain.
[ ] Test Results: [link to CI job test results for component]
[ ] Code Coverage (if available): [link to code coverage report]

@mesosphere-mergebot bump-ee

@mesosphere-mergebot

@mesosphere-mergebot help

@mesosphere-mergebot sync

@mesosphere-mergebot bump-ee

@mesosphere-mergebot bump-ee

@mesosphere-mergebot label Ready For Review

@mesosphere-mergebot changelog-not-required This is covered in the downstream changelog

Applying the ship-it label manually and merging right away, this is highly unlikely to be in logical conflict with the changes to master from the last two days.

@mesosphere-mergebot label ship-it

@mesosphere-mergebot merge-it

Your pull request's branch is not based on the most recent version of master. Please rebase your changes against this repo's master branch.

I thought merge-it allows humans to be smarter than machines. Okay, I am not pulling off the completely manual merge now, so let's wait for a train to kick in.


Cart Image Alignment on Empty Cart in Enatega Multivendor Customer App

Description:
When the user empties the cart in the Enatega Multivendor Customer App, there is an issue with the alignment of the cart image. Currently, the image is displayed on the left side, but it should be centered for a more visually appealing and consistent user experience.
Steps to Reproduce:
Open the Enatega Multivendor Customer App.
Add items to the cart.
Navigate to the cart section.
Remove all items from the cart.
Expected Result:
The cart image should be displayed in the center of the screen when the cart is empty.
Actual Result:
The cart image is shown on the left side of the screen when the cart is empty.

Resolved!

waiting for publish


Update to latest from original repository

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.2 out of 3 committers have signed the CLA.:white_check_mark: spacesailor24:white_check_mark: GregTheGreek:x: cgeweckeYou have signed the CLA already but the status is still pending? Let us recheck it.


Timeseries Global Search

Working Filters for Timeseries Search

Added https://cognitedata.atlassian.net/browse/CONTEXT-439 to make sure i clean up AssetSearchComponent :D

[pr-server]
View this change on PR Server


Backstretch Linear Gradient

Looking to add a linear gradient to my backstretch slideshow images, haven't this done anywhere. I've seen it done on a single image like this:
body {
background-image: -webkit-linear-gradient(rgba(0,0,0, 0) 0%,rgba(0,0,0, 1) 100%), url(image_url);
background-image:  -moz-linear-gradient(rgba(0,0,0, 0) 0%,rgba(0,0,0, 1) 100%), url(image_url);
background-image:  -o-linear-gradient(rgba(0,0,0, 0) 0%,rgba(0,0,0, 1) 100%), url(img_url);
background-image:  -ms-linear-gradient(rgba(0,0,0, 0) 0%,rgba(0,0,0, 1) 100%), url(img_url);
background-image:  linear-gradient(rgba(0,0,0, 0) 0%,rgba(0,0,0, 1) 100%), url(img_url);
}
Just not sure how to do this for each one of my backstretch images, as it rolls through the slideshow. Any help would be great.

A reliable way would be to place a div with a z-index that is on top of the backstretch layer. Then you won't have to worry about vendor prefixes and rewriting part of the code to incorporate that.


Can you adjust the Logos for all vendor to appear in bottom row in the pipeline/orchestration box

Don't create an issue
If you see an error in the cards or missing ones, please don't create an issue here. Instead, edit landscape.yml (you can even do it via the GitHub web interface) and open a pull request. Then, review the preview staging server that's posted to your pull request and add a comment if your new or updated card looks correct and is ready to merge. Before going forward, please carefully review the sections of the Readme covering new entries, corrections, and logos: https://github.com/cncf/landscape/blob/master/README.md.

No. You can adjust the layout by increasing or decreasing the width of the box but the layout in the box is automated.

Closing, as this is not possible since it is automated by the code


[feat]  MVP

Description
This issue is for building the MVP for <rh-audio-player>.
All features
https://xd.adobe.com/view/6f46d2c1-deb2-4f6e-a8e3-7b92b06c2cad-3a15/
Feature requests/ranking from stakeholders
https://docs.google.com/spreadsheets/d/1quuxkd0LTVf7Qp6bXlwIKyIwiny8T-HUod0Qo9yXDDk/edit#gid=0
Acceptance Criteria

[ ] Design done
[ ] Development done

Image
No response
Link to design doc
https://xd.adobe.com/view/6f46d2c1-deb2-4f6e-a8e3-7b92b06c2cad-3a15/
Other resources
General discussion
https://docs.google.com/document/d/1xwMN4DueI6Ed0PQbXnQEL81j7bVE47mF8F3aDj_1Sys/edit#heading=h.l730don4kfct

Should this be rh-audio-player or pfe-audio-player? XD docs say pfe-audio-player.

Should this be rh-audio-player or pfe-audio-player? XD docs say pfe-audio-player.

Pattenfly.org does not have an audio player, it is my understanding that this is rhds only.


Add documentation tests

Summarised from here #452.

[ ] Move docs from https://github.com/zig-lang/www.ziglang.org to this repo
[ ] Make the docs a template that gets processed by a tool written in zig that looks for special "example" code blocks, also with metadata saying whether they should have a compile error, or succeed with tests, or whatever.
[ ] While we're at it, make the table of contents auto generated.
[ ] Run the doc generating tool along with the tests, and have it crash if example code has an unintended effect.

Instead of performing rudimentary text processing just yet, one thing I was thinking of was to run pandoc on the output and get all code blocks. We can tag code blocks with an attribute like test-should-compile test-should-fail and for each of the blocks run the test command and check the result of the compiler.
We can match the compilation output against test-output blocks that should come after any with the above attribute.
This is a pretty hacky approach and I was messing around with this using pandoc and jq and it seems doable pretty quickly. Alternatively, use something like https://github.com/hoedown/hoedown and build a zig program around this. A bit more work here though and I need to check how/if we can attach attributes to code blocks if following this.

I think if we didn't add any new dependencies I'd be up for this going into 0.1.0. If we want to make the build depend on more stuff let's push it to 0.2.0.

I think we should aim for doing this without dependencies, but still for the 0.2.0 since it isn't a hugely visible change from the user perspective.

Still for the 0.1.0 you mean? I'm ok with that.

I meant the 0.2.0, but I'll see where I get with this markdown parser and get back to you.

Alright I'm ok with either, you can make the call.

@tiehuis would you be terribly offended if I ignored the markdown pull request for now and made a tool in zig that did the above bullet points? I think it would be nice to only depend on zig once we have the compiler built.

Not at all, go ahead.
I've started a markdown parser here but it'll be a while before it gets to the state of parsing the entirety of that file anyway.


Fix ambiguous future symbol error in IB brokerage

Description

IB contracts used for subscriptions and future chain requests now include the Multiplier field, which is loaded from the symbol properties database.
The GetFuturesContractExchange() method was unused and has been removed

Related Issue
Closes #2924
Motivation and Context

Solves the ambiguity for IB future contracts with same ticker but different contract multipliers.
When loading future contracts for Futures.Metals.Silver (SI) (or subscribing to a single future contract) we will only request contracts with the 5000 multiplier (which is specified in the symbol properties database) instead of throwing the following exception:

ErrorCode: 200 - The contract description specified for SI is ambiguous; you must specify the multiplier or trading class.

Note: for now LEAN does not support future contracts with duplicate tickers but different multipliers in the SPDB,
so for the SI example above the 1000 multiplier contracts are not supported.
Requires Documentation Change
No.
How Has This Been Tested?

Live algorithm subscribing to the SI future

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] Refactor (non-breaking change which improves implementation)
[ ] Performance (non-breaking change which improves performance. Please add associated performance test and results)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Non-functional change (xml comments/documentation/etc)

Checklist:

[x] My code follows the code style of this project.
[x] I have read the CONTRIBUTING document.
[x] All new and existing tests passed.
[x] My branch follows the naming convention bug-<issue#>-<description> or feature-<issue#>-<description>

FYI - this is still an issue. I am getting the following error when requesting a SI futures contract:
Server Error: The contract description specified for SI is ambiguous; you must specify the multiplier or trading class.

Hey @carriere4! You are reproducing this issue in QC cloud? Please provide a simple algorithm/steps to reproduce the issue and reopen https://github.com/QuantConnect/Lean/issues/2924, we will look into it ASAP. Thanks!


multi-GPU training

how can I train the model sepformer in speechbrain/recipes/WHAMandWHAMR/separation with two gpus, I would be grateful if anyone show me the details, thanks! What code do I need to add and where exactly?

Hi @linshuijin123 , please take a look at the recipes here:
#659
#1082


Terminal tabs April plan

Plan item capturing terminal tabs work for April (https://github.com/microsoft/vscode/issues/10546)
Legend of annotations:

Mark
Description

:runner:
work in progress

:hand:
blocked task

:muscle:
stretch goal for this iteration

:large_blue_circle:
more investigation required to remove uncertainty

[x] Icons @Tyriar

[x] APIs

[x] Proposed ext API #120538
[x] Profile schema
[x] Terminal types contribution (js debug)
[x] ITerminalService/ITerminalInstance API for tasks

[x] Adopt in tasks

[x] :muscle: Should also show icons in select default profile/new with profile
[ ] :muscle: Color support: this could just be #rrggbb in the profile Deferred: https://github.com/microsoft/vscode/issues/121738
[x] Assets: Generic terminal (terminal), generic WSL, Ubuntu, Debian, task (tools), cmd, pwsh, tmux https://github.com/microsoft/vscode-codicons/issues/51

[ ] Terminal status https://github.com/microsoft/vscode/issues/120583 @Tyriar

[ ] Internal status tracking: name, severity, information (they need to be able to show the same information/actions as the info widget)
[x] Terminal instance API to set statuses

[ ] Issue to adopt in tasks

[x] Icon + status widget
[x] Assets: Running (play), failed (error), succeeded (check), bell, disconnected (debug-disconnect), warning, info

[x] Visual bell @Tyriar

[x] Add event to xterm.js https://github.com/xtermjs/xterm.js/issues/3014
[x] Hook up to icon status
[ ] Experiment with shake animation Decorations have minimal icon support

[ ] Split pane @meganrogge

[ ] Widget to hold tabs (list/tree widget?)

[x] :large_blue_circle: UX: How do splits show? Tree widget?
[x] Actions on terminals (split, rename, kill)
[x] Setting to move to side
[x] Double click in empty area to create new default terminal Tracked in https://github.com/microsoft/vscode/issues/121933
[x] Scrollable overflow
[ ] :muscle: Drag and drop
[x] Context menu

[x] :large_blue_circle: UX: Think through how this works when the panel is on the side Tracked in https://github.com/microsoft/vscode/issues/121572
[x] Responsive: Resizing should be able to hide titles

[x] New terminal with dropdown button

[x] Leverage the combined run button in editor?

[x] Dropdown

[x] :large_blue_circle: UX: Include split icon? This wouldn't work in native mac menus

[x] Default keybindings for navigating terminal tabs https://github.com/microsoft/vscode/issues/119653

Will this also enable us to draw a terminal into one "corner" of the editor area. Currently, it's only possible to choose between "left", "right" or "bottom" but every option covers 100% of the height/width of the editor area. It would be fantastic If one could draw the terminal into e.g., the bottom right corner, so you can have one editor opened with 100% height (left side) 1, editor open with 50% height (right-top), and the Terminal area with 50% height (right bottom).
Sorry if this feature request is misplaced here, or if it's already tracked elsewhere.

@BerriJ that's out of scope for this month's work, but we're planning on doing that later

Terminal icons have now been added to codicons via https://github.com/microsoft/vscode/commit/0e7d1610f3ffce066da209a57985e79abf0a0740:

@Tyriar  You can also add these split options also to the list down there?

This list is a bit out of date, will probably close this issue soon in favor of individual issues.

@Tyriar  Some problems in 633562d

@pixieaka I think the bottom one tracked in https://github.com/microsoft/vscode/issues/122161 already, created https://github.com/microsoft/vscode/issues/122187 for top. Thanks 🙂


Redundent '/v2/' GET made when pushing an image to v2 registry

Expected : only one call to /v2/ to determine if there is v2 support
Actual : two calls made to /v2/
See image....  using Charles Proxy ... pushing an ubuntu:latest image to a non-SSL v2 instance
Docker 1.5 daemon (/etc/default/docker):
export http_proxy="http://localhost:8888/"
DOCKER_OPTS="$DOCKER_OPTS --insecure-registry=host:port"
Docker 1.5 client:
docker push host:port/path_component1/path_component2

@bmangold This behavior is part of docker core. Please file this at https://github.com/docker/docker/issues.

Yup, makes sense. Will close and refile.


Nextflow highlighting

Feature Request
Desired behaviour
Follows #1041, #1131, and #1132
Try to find an existing highlight schema for Nextflow (nextflow.config and main.nf) to use for ACE probably based on Groovy syntax.

https://github.com/github/linguist/issues/4080

Partially implemented

Functional on staging with API 1.5.0-alpha.4, UI 2.2.0-alpha.3


Fixed BottomSheetScaffold empty composable arguments cause IndexOutOfBoundsException

Proposed Changes
After https://github.com/JetBrains/compose-multiplatform-core/commit/782309ea04a9712abcfa7e2b8ff8c6187d40a748 empty composable arguments of BottomSheetScaffold cause IndexOutOfBoundsException
Testing
Test: exception is no longer thrown
Issues Fixed
Fixes: https://github.com/JetBrains/compose-multiplatform/issues/3026

Oops. Already fixed in androidx with a little another way https://github.com/androidx/androidx/commit/524a9102fef1439b4c5a0d202da95b3a59034d40


Typo in Mapping expression

Missing required extra comma on mapping expression.
correct:  FormatDateTime([StatusHireDate], ,"yyyy-MM-ddzzz", "yyyyMMddHHmmss.fZ" )
incorrect:  FormatDateTime([StatusHireDate], "yyyy-MM-ddzzz", "yyyyMMddHHmmss.fZ" )

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

ID: 53987154-8f6c-1ddd-ec02-2b811ae74818
Version Independent ID: eaf44627-eddc-5aeb-7189-661d5dcb90fe
Content: How to synchronize attributes for Lifecycle workflows - Microsoft Entra ID Governance
Content Source: docs/id-governance/how-to-lifecycle-workflow-sync-attributes.md
Service: active-directory
Sub-service: compliance
GitHub Login: @OWinfreyATL
Microsoft Alias: owinfrey

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

@Cyraxwins
Thanks for reporting this! We have created a PR for this issue and the changes should go live soon.


[Backport] NETOBSERV-844 skip empty cert paths

backport of https://github.com/netobserv/network-observability-operator/pull/320/commits/61cb3da84a2ef5a00089a48fe22478dcd438680e

/ok-to-test

/label qe-approved

/approve


Use dio as default HttpClient

Is it possible to somehow create an HttpClient that wraps all dio functionalities and thus provides e.g. interceptors, retry logic, etc. for all users of HttpCiient automatically?
Some widgets in Flutter use an HttpClient client automatically (e.g. NetworkImage) and can't be told to use dio instead if I'm not mistaken.
It is possible to overwrite the default HttpClient globally with the following code:
class MyHttpOverrides extends HttpOverrides {
  @override
  HttpClient createHttpClient(SecurityContext context) {
    // Return a HttpClient that has all dio features, like
    // retries, interceptors, ...
    // ???
  }
}

void main(){
  HttpOverrides.global = MyHttpOverrides();
  runApp(App());
}

Is it possible to create such a wrapper HttpClient? This would allow dio to be a drop-in replacement for existing apps to add all kinds of functionality on top of already existing code.

You wolud need to implement HttpClient abstract class from SDK with your own implementation that uses Dio under the hood. Then just provide your HttpClient to the widget.
But IMHO this is bad idea. Put all your requests behind one "requester" class that handles all requests and retry/interception logic. You don't need to use NetworkImage, use plain image widget, get the image bytes with requester and use it in the image widget.  You can find example here
https://github.com/shaxxx/EnigmaWeb.Dart/blob/master/lib/src/web_requester.dart
Basically, EnigmaWeb is a Dart package that implements API calls on the client side. It's used inside Signalmeter2 app to call web server API. None of the widgets makes network calls without API.
There's even screenshot feature that loads image from server with progress, retry, etc..
https://github.com/shaxxx/Signalmeter2/blob/master/lib/src/ui/screenshot/screenshot_view.dart
Hope this helps.

This is still an issue

It's still an issue


Add explicit cast to char*

When I compile Lua as C++ (and therefore need to compile lfs as C++ as well), GCC says this:
luafilesystem/src/lfs.c:1068:28: error: invalid conversion from ‘void*’ to ‘char*’ [-fpermissive]
 1068 |     char *target2 = realloc(target, size);
      |                     ~~~~~~~^~~~~~~~~~~~~~
      |                            |
      |                            void*

To fix this, explicit cast to char* is needed. (lfs compiles as C++ and works well after this patch)
P.S. here is why I compile Lua as C++

oops, sorry, I was reviewing PRs top-to-bottom and I just merged another one which implements the same change! Thank you for the contribution, regardless!


inspect function

Return some information about the value e. g. mutability.
For def return ast as Starlark object tree. E. g. a.sky:
def foo():
    a = str(17)
    return a

def print_foo():
    print("mutability   = {}".format(inspect(foo).mutability))
    print("captured_env = {}".format(inspect(foo).custom.captured_env))
    print("locals       = {}".format(inspect(foo).custom.stmt.locals))
    print("stmts:")
    for stmt in inspect(foo).custom.stmt.suite:
        print(stmt)

print_foo()

cargo run -- ./a.sky:
mutability   = ImmutableMutability
captured_env = ./a.sky
locals       = struct(count=1, locals=struct(name_to_slot={"a": 0}, nested_scopes=[]))
stmts:
("assign", (("name", ("slot", (0, "a"))), ("call", (("name", ("global", "str")), [("int_literal", 17)], [], None, None))))
("return", (("name", ("slot", (0, "a"))),))

This function can be helpful to debug certain interpreter changes,
in particular, constant propagation from #220.

Address comments and rebase


Windows jumping left and right...

Microsoft PowerToys version
0.61.1
Running as admin

[ ] Yes

Area(s) with issue?
FancyZones
Steps to reproduce
Open many windows on multiple monitors on multiple virtual displays(V) in Win10.
For instance, here is what I have open on 3 displays(D):
V1: no windows
V2:

D1: 1440p ultrawide: 4 windows in columns
D2: 16:9 1080p: 2 windows in columns
D3: 16:9 1080p: Chrome YouTube in fullscreen mode
V3:
D1: 1440p ultrawide: 2 windows in columns
D2: 16:9 1080p: no windows
D3: 16:9 1080p: no windows
(In essence, a large number of windows open on multiple monitors and multiple virtual desktops)

Now try switching between virtual desktops with Ctrl+Win+arrowkey or using Win+arrowkey to move a window around. The bug appears very often and even more so when performing eather of these 2 actions quickly.
✔ Expected Behavior
Normal operation; windows staying in place when I use Ctrl+Win+arrowkey to jump between virtual desktops; 1 window moving around when I hold Win and press arrowkeys.
❌ Actual Behavior
When I jump between virtual desktops, especially if done quickly, windows start randomly leaving their places or even jumping to a different virtual desktop.
Similar problem if I hold Win and press arrowkeys: windows, other than the one I am trying to move, start to jump around.
When a window randomly moves it doesn't even move to a zone in the current chosen zone layout but just lands somewhere randomly: random spot, random monitor, random virtual desktop.
The fullscreen YT likes to leave its place especially often.
Other Software
No response

/reportbug

PowerToysReport_2022-08-15-18-45-05.zip

/dup https://github.com/microsoft/PowerToys/issues/19665


Branch calculatepaymentstests

Codecov Report

Merging #345 (6f35e8b) into master (d78638b) will increase coverage by 1.48%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master     #345      +/-   ##
============================================
+ Coverage     55.63%   57.12%   +1.48%
- Complexity      705      736      +31
============================================
  Files           139      140       +1
  Lines          3196     3195       -1
  Branches        420      417       -3
============================================
+ Hits           1778     1825      +47
+ Misses         1319     1276      -43
+ Partials         99       94       -5

Impacted Files
Coverage Δ

...u/awe/logic/commands/CalculatePaymentsCommand.java
95.23% <ø> (+12.56%)
:arrow_up:

...ain/java/seedu/awe/logic/commands/helper/Pair.java
100.00% <100.00%> (ø)

...main/java/seedu/awe/model/expense/ExpenseList.java
36.17% <0.00%> (+2.12%)
:arrow_up:

src/main/java/seedu/awe/model/ModelManager.java
85.71% <0.00%> (+8.16%)
:arrow_up:

src/main/java/seedu/awe/model/AddressBook.java
74.35% <0.00%> (+10.25%)
:arrow_up:

...seedu/awe/logic/commands/DeleteExpenseCommand.java
100.00% <0.00%> (+29.16%)
:arrow_up:

...u/awe/logic/parser/DeleteExpenseCommandParser.java
100.00% <0.00%> (+100.00%)
:arrow_up:

Continue to review full report at Codecov.

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


Add strong names for assemblies

If other projects referencing this product are strong names their build would fail is this is not a signed assembly

@Giorgi can you help me completing this PR and get packages published on nuget

@colombod Can you use StrongNamer until I get around to publishing a strong named version?

@colombod Can you use StrongNamer until I get around to publishing a strong named version?

I cannot do that in the CI, that will flag the build and is a governed pipeline, how long for a new package?


Formation of the response template CLA=80, INS=A6

Hi!
I'm looking into your source code, it's very good. However, there are cards that require instead of GET PROCESSING CLA=80, INS=A8.
Execute command CLA=80 INS=A6. How to generate a template for this command? This affects mobile payment applications.
Best regards, Ivan.

Thanks for the answer.

I came across the fact that the Russians have created a mobile payment application that answers AID A000000658101000, the MIR system.

I make a request 80 A8 00 00 XX 83 ...
And I get the answer 6D 00.

When I began to understand, I discovered the following algorithm:

standard queries
Select PPSE
Select AID
#unknown instruction
send 80 A6 00 00 1B A8 82 00 00 00 00 45 00 00 00 00 00 00 00 06 43 06 43 22 05 25 00 C5 78 83 32 22 00

I did not find a description in iso 7816 CLA=80 INS=A6

Maybe ISO 7816 refers to payment cards, but in this case we are considering a mobile payment application for android whose commands are extended by other ISOs? Have you heard about this?

Or did the Russians make their instruction 80 A6, which is not in ISO?

Regards, Ivan

Четверг, 26 мая 2022, 20:52 +05:00 от Julien Millau @.***>:

Hi,
Thanks for your feedback.
You can create or override an existing parser to change the Get processing command.
EmvTemplate parser = EmvTemplate.Builder() //
.setConfig(EmvTemplate.Config())
.build();
parser.addParsers(new CustomParser());
EmvCard card = parser.readEmvCard();
You custom parser can extends EmvParser and override getGetProcessingOptions with your custom implementation.
In with case and for which kind of cards you need to send a command 80 A6 ? (I don't find this case in the EMV Book documentation).
Regards,
—
Reply to this email directly,  view it on GitHub , or  unsubscribe .
You are receiving this because you authored the thread. Message ID:  <devnied/EMV-NFC-Paycard-Enrollment/issues/80/1138724655 @ github . com>

Ivan


Chinese Name can't load user page

if i use a chinese name to be my username,i could't open "xxx.com/users/名字".
How to fix it?

yes there is an issue with not just chineese but also arabic and other languages, i will add a quick patch right now

Hey, folks! Telescope has changed a lot in the past months, and there is a new React-based version, Telescope Nova (intro video). If you know Crater, it runs on the latest version.
The Legacy version is no longer supported. I'm closing this issue.
I invite you to check the new version, it's awesome!
Happy hacking! 🚀
Ps: by the way, don't hesitate to join the Slack to ask any question, you are welcome! 👍


Strange path with "Concurrent Technologies Corp, Nteligen LLC" in directory name

Might be pilot error, because this may not be a meaningful build-step at all,
But after cloning, I figured I'd compile and publish locally the scala-code part.
So I did 'sbt publishLocal', and got this stuff created in .ivy2/... with these non-apache-sounding names (with whitespace and punctuation in them - always a bad idea) in the directory structure.
[info] :: delivering :: Concurrent Technologies Corporation, Nteligen LLC#daffodil-debugger_2.12;65947b1e0bea83d43a2f3f5b8858de54cf82e863 :: 65947b1e0bea83d43a2f3f5b8858de54cf82e863 :: integration :: Wed Oct 13 12:22:50 EDT 2021
[info] 	delivering ivy file to /home/mbeckerle-unencrypted/daffodil-vscode/server/core/target/scala-2.12/ivy-65947b1e0bea83d43a2f3f5b8858de54cf82e863.xml
[info] 	published daffodil-debugger_2.12 to /home/mbeckerle/.ivy2/local/Concurrent Technologies Corporation, Nteligen LLC/daffodil-debugger_2.12/65947b1e0bea83d43a2f3f5b8858de54cf82e863/poms/daffodil-debugger_2.12.pom
[info] 	published daffodil-debugger_2.12 to /home/mbeckerle/.ivy2/local/Concurrent Technologies Corporation, Nteligen LLC/daffodil-debugger_2.12/65947b1e0bea83d43a2f3f5b8858de54cf82e863/jars/daffodil-debugger_2.12.jar
[info] 	published daffodil-debugger_2.12 to /home/mbeckerle/.ivy2/local/Concurrent Technologies Corporation, Nteligen LLC/daffodil-debugger_2.12/65947b1e0bea83d43a2f3f5b8858de54cf82e863/srcs/daffodil-debugger_2.12-sources.jar
[info] 	published daffodil-debugger_2.12 to /home/mbeckerle/.ivy2/local/Concurrent Technologies Corporation, Nteligen LLC/daffodil-debugger_2.12/65947b1e0bea83d43a2f3f5b8858de54cf82e863/docs/daffodil-debugger_2.12-javadoc.jar
[info] 	published ivy to /home/mbeckerle/.ivy2/local/Concurrent Technologies Corporation, Nteligen LLC/daffodil-debugger_2.12/65947b1e0bea83d43a2f3f5b8858de54cf82e863/ivys/ivy.xml

Looks like the build.sbt file lists Concurrent Technologies Corporation, Nteligen LL as the organization. That should be changed org.apache.daffodil.


Fixing "simple" linting issues

Using #31 this PR fixes various linting issues:
Amongst other things, these are ...

whitespace
unused imports
unused variables
if membeship not in
r-strings for templates
del unused arguments
missing/too many newlines

and disables a few selected messages on selected lines.

Wow, looks much cleaner now, thanks!


Publisher example not executable as is

Running the Publisher example, as it is, doesn't work, and I see no instructions regarding what needs to be done in order to prepare for execution.
I'm new to KDB, but I've tried to figure what's needed - like creating a table named "ask". So far I haven't succeeded.
Could you please add descriptions of prerequisites for the various examples?
Publisher, TickClient, TickSubscriber doesn't run as is, but AsycQuery, Console, Subscriber and SyncQuery does.

Hello,
We added instructions on how to run all samples. Just go to
https://github.com/exxeleron/qJava/tree/master/src/sample/java
the instructions should be displayed below.
Cheers,
Bartosz

Thank you!


Querying for all assets of a wallet takes a long time

When querying all the assets of a wallet at the end of an epoch, cardano-graphql takes surprisingly long to return the results. On the gimbalabs discord @rcmorano and Giovanni G have confirmed this is most likely due to the heaviness of the query in the background. One would expect that it would be possible to return this data a LOT faster, however, considering that it is possible to get the end-of-epoch lovelace value very quickly with this sql query https://gist.github.com/rcmorano/c9e062def2ff126569c796e89c2844c7#file-cdbs-functions-psql-L43
Does anyone have any suggestions on how it might be possible to speed up this query on cardano-graphql?
Here's the query I've been using to get the assets right now:
curl 'https://graphql-api.mainnet.dandelion.link/' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'DNT: 1' -H 'Origin: https://graphql-api.mainnet.dandelion.link' --data-binary '{"query":"# Write your query or mutation here\nquery paymentAddressSummary(\n  $addresses: [String!]!\n  $atBlock: Int\n) {\n  paymentAddresses (addresses: $addresses) {\n    summary (atBlock: $atBlock){\n      assetBalances {\n        asset {\n          assetId\n          description\n          name\n        }\n        quantity\n      }\n    }\n  }\n}","variables":{"addresses":"addr1q8kpng796nnx2xazx7mknm3w825q0sejz5vah96pyax6g6g7vjzglgwng69rqwsln09juux6pvz2e2y73tcjtzazfdvqug0aq3","atBlock":5758583}}' --compressed

For reference, the query in SDL
query paymentAddressSummary($addresses: [String!]!, $atBlock: Int) {
  paymentAddresses(addresses: $addresses) {
    summary(atBlock: $atBlock) {
      assetBalances {
        asset {
          assetId
          description
          name
        }
        quantity
      }
    }
  }
}

{
  "addresses": ["addr1q8kpng796nnx2xazx7mknm3w825q0sejz5vah96pyax6g6g7vjzglgwng69rqwsln09juux6pvz2e2y73tcjtzazfdvqug0aq3"],
  "atBlock": 5758583
}

The function that resolves this query is complex and then has to compute the values. You may see better performance by running the underlying queries depending on your use-case:
https://github.com/input-output-hk/cardano-graphql/blob/058873f7cfa6d5d287f859a58bf511b128da6494/packages/api-cardano-db-hasura/src/HasuraClient.ts#L263-L397

This is not querying all assets of a wallet, this simply queries all assets for a single address.

@rhyslbw I tried your SDL example in Hasura and got an error:
{   "errors": [     {       "extensions": {         "path": "$.selectionSet.paymentAddresses",         "code": "validation-failed"       },       "message": "field \"paymentAddresses\" not found in type: 'query_root'"     }   ] }
Any idea?


[KeyVault] az keyvault key import: support --kty for importing BYOK keys

Fix: https://github.com/Azure/azure-cli-pr/issues/121
All BYOK keys will be treated as RSA-HSM keys, this is incorrect.
az keyvault key import --hsm-name xx -n xxx --byok-string xxxxx

After the fix (exposed a new parameter --kty):
az keyvault key import --hsm-name xx -n xxx --byok-string xxxxx --kty RSA (default value)
az keyvault key import --hsm-name xx -n xxx --byok-string xxxxx --kty EC

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

[x] I adhere to the Error Handling Guidelines.

/azp run


Add command description support for the SHELL_CMD

Hello,
I would like to propose a change in the SHELL_CMD structure that allows a user to provide theirs own command description that may be used in the help command for example:

Proposed changes:

typedef struct shell_cmd {
    const CPU_CHAR *Name; ///< Ptr to cmd name.
    SHELL_CMD_FNCT Fnct;   ///< Ptr to cmd fnct.
    const CPU_CHAR *Descr; ///< Ptr to cmd description.
}

Outcome for the help command (implementation specific):

help: Print commands info
status: Print system status
reboot: Perform software reboot
bootloader: Switch into the bootloader application

Thank you for the suggestion.
We may decide to add this change at a later date.
However, for the time being we recommend placing the text in the help command itself.


Move PR and issue ID/number to beginning of window title

Description
The problem: The ID for PRs, issues, etc. comes after the title in the tab/window, so it often gets hidden behind the truncation ellipsis on hover or is not visible in the text shown in the tab. But that ID is quite useful, so I would like to see it first in the tab title instead.
Example
From a private company repo
PR title: Replace usage of `.at()` with equivalent index access
PR ID: #12937
Full window title: Replace usage of `.at()` with equivalent index access by greglockwood · Pull Request #12937 · [org]/[repo] (placeholders used instead of real org and repo names)
Suggested amended title: #12937: Replace usage of `.at()` with equivalent index access by greglockwood · Pull Request · [org]/[repo]
Screenshot of Chrome hovercard:

Use Case Examples

You are trying to mention another issue that you have open in a different tab. This enables you to see the ID in the visible tab text or at least the hovercard.
You are trying to use the GitHub CLI to checkout a PR that you have open in a different tab or where you have scrolled down past the header, etc etc. You need the ID to do so (gh pr checkout <id>), so having it visible would be useful.

Suggested state
I can see this one being polarising, so perhaps it would be best to have it disabled by default but able to be opted into. I am happy to discuss to see how others feel about this first before deciding, though.
Implementation Complexity
This one should be pretty easy to do as it should just be a regex replace of the current window.title value.
Example URLs
https://github.com/refined-github/refined-github/pull/7570
https://github.com/refined-github/refined-github/issues/7577

It makes sense to see how other issue trackers do things:

GitLab: ID after title (example)
Jira: ID before title (example)
YouTrack: ID after title (example)

So opinions can indeed vary.

I can see this one being polarising, so perhaps it would be best to have it disabled by default but able to be opted into.

We don't do that here.

I can see how this can be useful, but for many others the number might be less useful than the "title for humans" at a glance


[11.x] replace assertEquals('') with assertEmpty

In some test cases I replaced assertEquals('') to assertEmpty.

Why?


Generator selection

In my opinion, the preferredGenerators settings is pretty well hidden within the settings.json. I would find it quite useful if your tool would be able to check for the preferredGenerator setting when a cmake project shall be configured. But if this setting is not set it would be great to display a dropdown field similar to cmake gui (windows):

What is your opinion on this feature request @vector-of-bool ?

It's definitely a viable option, especially now that CMake Server provides a listing of available generators. I'll see about getting something like this in.


Compute effective child bounds based on parent border radius to prevent children from rendering over their parents

I finally fixed this issue with a render-based fix in the standard box model that constraints the rendering bounds of elements based on the border radiuses of their parents. The various parts of the fix are contained in the commits above and other commits around them.


Chinese Simplified language support on About page

Chinese Simplified language support on About page

@p-z-l we have a new feature for the newest version, can you help translate that part? Please checkout the latest develop brand and have a look at Localizable.string and MainStoryboard.

@p-z-l we have a new feature for the newest version, can you help translate that part? Please checkout the latest develop brand and have a look at Localizable.string and MainStoryboard.

I translated that part at https://github.com/dwarvesf/hidden/pull/134.  Maybe it can help you


feat(ios): allow for custom project dir in react-native-xcode script

Summary
The react-native-xcode script assumes the that node_modules folder are in the same location as the react native project. This adds the ability to declare CUSTOM_DIR in .xcode.env file to let react-native-xcode know where the react native project is located - required for monorepos
Issue
At the moment if a project is not using the default react native file structure then when trying to create a build or archive using Xcode it will fail, with the following error:

File /Users/itxch/Library/Developer/Xcode/DerivedData/app-evgjukoxhuupzzdglopjnhcntvpw/Build/Intermediates.noindex/ArchiveIntermediates/jungul/BuildProductsPath/Release-iphoneos/app.app/main.jsbundle does not exist. This must be a bug with React Native, please report it here: https://github.com/facebook/react-native/issues

Background
My project is a monorepo, using npm workspaces.
This is the relevant file structure

This file structure is incompatible with line 63 of react-native-xcode.sh
https://github.com/facebook/react-native/blob/c5a8425fada10b715f356731426db666975569c9/scripts/react-native-xcode.sh#L63
Note: $REACT_NATIVE_DIR is the react-native package directory inside node modules.
So by default this sets project root to be the parent folder of the node_modules folder. However in my case this is not correct, it should actually be:
PROJECT_ROOT=${PROJECT_ROOT:-"$REACT_NATIVE_DIR/../../app"}

Solution
Seeing as hardcoding the value would not work, the simplest solution is to set the directory via a variable
PROJECT_ROOT=${PROJECT_ROOT:-"$REACT_NATIVE_DIR/../../$CUSTOM_DIR"}

$CUSTOM_DIR can easily be set via .xcode.env file.
Changelog
[IOS] [Added] - allow for custom project dir in react-native-xcode script
Test Plan
After updating my .xcode.env file to include export CUSTOM_DIR=app, I can successfully create a build or an archive.
If the variable is not set it will be black, so it will not effect $PROJECT_ROOT

Hi @itxch,
I recently got something merged in regards to fixing our monorepo setup and it was resolved with this merge here: https://github.com/facebook/react-native/commit/4d7ddd445c5bbe443517d91e045b02d6bfb7213d
What I find interesting about this PR is the xcode.env change as that makes it so much easier for other contributors to figure out how to adapt the build system for a monorepo setup. So I do like that aspect of this PR.
When I see CUSTOM_DIR - it doesn't really have much meaning to me. It just says "CUSTOM" which doesn't really depict what that variable should represent. Is it the project root? node modules root? etc
When I see you are using that to just compound onto PROJECT_ROOT. Why not just use the overridable aspect of PROJECT_ROOT that you can now do? Was there a reason that did not work that led you to this?
Since I think the only change we might need here is just an easier documented source of why you would change PROJECT_ROOT (ie monorepos)

Thanks for the reply @iBotPeaches

What I find interesting about this PR is the xcode.env change as that makes it so much easier for other contributors to figure out how to adapt the build system for a monorepo setup. So I do like that aspect of this PR.

Thanks :) coming from the react web world, I love .env files (with good docs).

Why not just use the overridable aspect of PROJECT_ROOT that you can now do? Was there a reason that did not work that led you to this?

I didn't realise that :- meant only override if it does not exist. I will test, if it works - and I see no reason for it not to - I will update the PR, to just be a change to .xcode.env file describing why you would want to set the PROJECT_ROOT variable

Was able to easily set PROJECT_DIR in .xcode.env file
export PROJECT_ROOT="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )/../"
This sets it to the parent directory of the .xcode.env file.
Will update PR to just have some documentation around this - I'd say a comment in the .env file is good.
Thoughts @iBotPeaches

Thoughts @iBotPeaches

Sounds like a plan. Glad it worked out

Thank you so much for taking care of this. We would like to end up in a world where it's very easy to configure React Native and this PR goes in that direction! :D
I imported the PR to keep an eye on it, but I agree with the suggested changes. I'll wait to land it until those are carried out.

@cipolleschi
Updated the PR:
https://github.com/facebook/react-native/blob/7db8204b42348c441607371887942b2b8ffc2e14/packages/rn-tester/.xcode.env#L13-L16
To be honest line 16 could probably be uncommented, as its a good default I feel like. Whats your thoughts?

To be honest line 16 could probably be uncommented, as its a good default I feel like. Whats your thoughts?

Jumping on this as Riccardo is off for some days.
I would refrain from uncommenting this unless is needed for the infra to work correctly @itxch

Jumping on this as Riccardo is off for some days. I would refrain from uncommenting this unless is needed for the infra to work correctly @itxch

Sure, we can keep it commented - its only required for monorepos


calculator

Type of change

[x] Added new project
[x] Bug fix
[x] New features
[x] Enhanced documentation

Changes proposed in this pull request

Project name :

Short description :

Checklist

[x] The code is Python 3 compatible
[x] I have added relevant comments in my file to make code understandable
[x] I have added my project in a folder which includes all the necessary files

add folder

Hey @oboninja 👋
Similar kind of project already exist here -> https://github.com/Mrinank-Bhowmick/python-beginner-projects/blob/main/projects/Calendar/displayCalendar.py
try to make changes in that file and then make a new pr , and dont have to change anything in the README.md file as its automated by bot


Too many ways to entrypoints to prognostic run dev env

There are a lot of ways to get into the prognostic run dev environment and not all of them work.
#1427

See also #1802


replace os/fmt/crypto package.

proposal std package module has accept, so we can use replace directive to rewrite std package, and than many user module not need replace. would help much for development.

牛逼啊！重大啊！


[TIPS/ADVICE] How to combat overfitting in mmdetection framework?

Hey, authors - really really grateful for such a flexible framework!
in #6359 I had a doubt whether my model might be overfitting due to low confidence scores 🤔
Can you guys provide an exhaustive list of all the fixes one can take to combat overfitting in this framework, the tips and tricks to build a better detection model? I believe this can be very helpful to beginners 👍
Thanks again! 🤗

A tip which I found essential, so much that I never train a model without including it in the config file, is to include Albumentations transforms in the training pipeline. This requires a bit of work:

install albumentations with

pip install albumentations>=0.3.2 --no-binary imgaug,albumentations

see also https://mmdetection.readthedocs.io/en/latest/get_started.html#install-mmdetection.
2. learn about pipelines https://mmdetection.readthedocs.io/en/latest/get_started.html#install-mmdetection
3. define a list of albumentations transforms in your config file, e.g.
albu_train_transforms = [
    dict(
        type='ShiftScaleRotate',
        shift_limit=0.0625,
        scale_limit=0.0,
        rotate_limit=0,
        interpolation=1,
        p=0.5),
    dict(
        type='RandomBrightnessContrast',
        brightness_limit=[0.1, 0.3],
        contrast_limit=[0.1, 0.3],
        p=0.2),
    dict(
        type='OneOf',
        transforms=[
            dict(
                type='RGBShift',
                r_shift_limit=10,
                g_shift_limit=10,
                b_shift_limit=10,
                p=1.0),
            dict(
                type='HueSaturationValue',
                hue_shift_limit=20,
                sat_shift_limit=30,
                val_shift_limit=20,
                p=1.0)
        ],
        p=0.1),
    dict(type='JpegCompression', quality_lower=85, quality_upper=95, p=0.2),
    dict(type='ChannelShuffle', p=0.1),
    dict(
        type='OneOf',
        transforms=[
            dict(type='Blur', blur_limit=3, p=1.0),
            dict(type='MedianBlur', blur_limit=3, p=1.0)
        ],
        p=0.1),
]

call albu_train_transform in your training pipeline (not in the test pipeline), e.g.

train_pipeline = [
    dict(type='LoadImageFromFile'),
    dict(type='LoadAnnotations', with_bbox=True, with_mask=True),
    dict(type='Resize', img_scale=image_scale, keep_ratio=True),
    dict(type='Pad', size_divisor=32),
    dict(
        type='Albu',
        transforms=albu_train_transforms,
        bbox_params=dict(
            type='BboxParams',
            format='pascal_voc',
            label_fields=['gt_labels'],
            min_visibility=0.0,
            filter_lost_elements=True),
        keymap={
            'img': 'image',
            'gt_masks': 'masks',
            'gt_bboxes': 'bboxes'
        },
        update_pad_shape=False,
        skip_img_without_anno=True),
    dict(type='Normalize', **img_norm_cfg),
    dict(type='DefaultFormatBundle'),
    dict(
        type='Collect',
        keys=['img', 'gt_bboxes', 'gt_labels', 'gt_masks'],
        meta_keys=('filename', 'ori_shape', 'img_shape', 'img_norm_cfg',
                   'pad_shape', 'scale_factor'))
]

Note that even if you're training on a dataset of type COCODataset, for some reasons you still have to specify             format='pascal_voc' in the training pipeline, see https://github.com/open-mmlab/mmdetection/issues/6126#issuecomment-922228046
Hope this helps!

HI @AndreaPi would you still recommend this at MMDet 3.0 ? Or have the augmentations you used to use from albumentations now been implemented?

Hey, I got this error while using Alblumentation -
ValueError: Key img_info is not in available keys.

Hey @pedrozamboni might be an albumentations version error, I've hit that before, think the one you need is 1.13.8 if I remember rightly, but it's in another issue


Offline work leaves ydocs in unsynced state

Description
I'm using pycrdt-websocket in a Django application as a django channel consumer and y-websocket in a Vue application in the frontend as the client. The text editor used is Quill.
Up on connection from the client to the websocket I load the ydoc from the database in the overwritten method make_ydoc, then it gets synced (base behavior of the YjsConsumer).
Now I have following scenario:

User A connects to the websocket
User B connects to the websocket
User A has an internet outage and keeps on editing in the Quill editor.
User B keeps on editing (while being connected)
User A reconnects to the websocket
User A correctly gets their ydoc synced with the changes from User B
However, User B does not get the changes from User A
User A and B are left with different ydocs even though they share a room

Might the problem be that the sync command only syncs the ydoc in make_ydoc (loaded from the database) with the ydoc in the room and therefore doesn't have the changes from User A?
Is this intended behavior and if so is there some way in pycrdt-websocket to also force the ydoc in the room to get synced with the ydoc from the connecting user?

Might the problem be that the sync command only syncs the ydoc in make_ydoc (loaded from the database) with the ydoc in the room and therefore doesn't have the changes from User A?

Difficult to say without a reproducible example.

Is this intended behavior and if so is there some way in pycrdt-websocket to also force the ydoc in the room to get synced with the ydoc from the connecting user?

No it's not the intended behavior, all connected users should be in sync.

I can't reproduce it on the current state of our project. The documents correctly get synced now on reconnection.
Therefore, I assume it was an error on our end. Thanks for the fast reply!


feat: shows image if url return a image

fixes: #359
Below is a preview after the change:

Awesome !!
Thanks @Nikhil569 for taking care of this!

@helloanoop
If I understood these changes correctly new additional request is done to show image. But do we want to do 2 requests in case response content is image ? We have already image data in response body, so we should construct data URL for it and show image based on this data URL and not to do addiational call.
This two request approach is also not good because the second request to download and show image is always GET so it ignores configured request method, also another configuration of original request (like headers, proxy, ...) is ignored. What if endpoint is returning image only if I use Accept: image/png header and otherwise it returns json with some image metadata. In such case original request returns png but this second request in preview tab downloads json. Also what if image is dynamically returned based on time or based on request counts, I can retrieve one image in initial call and totally different image in second call. So we display something else as was the response in initial call.

@martinsefcik I agree with you. We should improve this to render the image that came back instead of making a new call. Reopening the ticket.

@helloanoop
Question is how to get raw response data from axios response? Is it even possible if axios resposeType request parameter is set to json (default value) and responseEncoding is utf8 (default value)? Because if response data are binary then data in axios response.data are a bit bigger and it does not correspond to the binary data retuned by endpoint. I think it is happening because of these two parameters and because some transformation to utf8 is happening there and the data are somehow incorrectly stored in response.data.  I think that axios instance used by Bruno should use responseType = stream or arraybuffer or something general and then it should be manually converted to json object only in cases when for example response content type is json otherwise response.data object should contain binary data without any transformation.
I see that @DivyMohan14 faced the same problem here in PR #528 and he had to change responseType to arraybuffer and I was also thinking how to implement feature which allows to save response data as file, but for example for PDF I was not able to achieve that when responseType and responseEncoding are set to default values and PDF was somehow malformed.


armhf support

Is armhf support in the works?
snap install microk8s --classic --beta says that it is only published for (amd64, arm64) (as opposed to (amd64) without --beta).
It looks like this snap can be built on armhf, if you search that word in this repo.

Hi @qm3ster ,
We are not currently working on armhf, but we might do in the future.
Now that we have arm64 in our release process, supporting additional architectures is straight forward. I guess we are looking for some incentives to do so.
If you (or anyone else) are willing to lend a hand here what is entailed:

make sure the k8s core binaries are available in the architecture we target (https://github.com/ubuntu/microk8s/blob/master/build-scripts/fetch-binaries.sh).
review the addons so that the images pulled are appropriate (https://github.com/ubuntu/microk8s/blob/master/build-scripts/fetch-binaries.sh). If no images are available we can either host an image build or just remove the addon during snap build as we do for istio, gpu etc (https://github.com/ubuntu/microk8s/blob/master/snapcraft.yaml#L178)

On our end we will enable the new architecture on the launchpad builders (https://kyrofa.com/posts/building-your-snap-on-device-there-s-a-better-way) and you will get on the edge channel a new build upon every commit. For pushing to beta/stable channels we will need to connect our ci to the respective hardware pool but that is internal.
Cheers!


Update Dashboard version

Important change

Fixes lately discovered XSS vulnerability

More info about changes can be found here.

/assign liggitt

/approve


datastore: Handle deferred entities

We shouldn't return an error if there are deferred entities on the results, we should return a known error for the corresponding keys.
See https://github.com/GoogleCloudPlatform/gcloud-golang/blob/master/datastore/datastore.go#L343

Duplicate of https://github.com/GoogleCloudPlatform/gcloud-golang/issues/97.


Bug when caching in internal array

Thanks to https://github.com/rskuipers for https://github.com/jgivoni/flysystem-cache-adapter/pull/3
New version: 3.0.4


Update Go deps

This fixes a few downstream minor security issues.

Doesn't feel like it's a straightforward change to move from Spring Boot 2 to 3.

Sorry about the conflict

Doesn't feel like it's a straightforward change to move from Spring Boot 2 to 3.

I removed the Java changes - just doing Go for now.

Sorry about the conflict

Not a problem - I moved the protos around a bit, esp talker.


Improve the name of a MemberExpression

Currently, the "name" of a member expression is based on its base type. However, we often do not know the base type, but we know the base name. It would therefore be better to base it on the base name instead, so a member expression of a.b (where a is of type MyClass; in C++) would also have the name a.b instead of MyClass::b.

We decided to keep this in the old format for now.


Error in install

This is the python3 in my linux
python3
Python 3.6.6 (default, Mar 29 2019, 00:03:27)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux
Type "help", "copyright", "credits" or "license" for more information.
And when I install the software:  python3 setup.py install
it occur:
$ python3 setup.py install
/usr/lib/python3.6/site-packages/setuptools/dist.py:398: UserWarning: Normalizing 'v1.1' to '1.1'
normalized_version,
running install
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/usr/local/lib/python3.6'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/local/lib/python3.6/site-packages/

This directory does not currently exist.  Please create it and try again, or
choose a different installation directory (using the -d or --install-dir
option).

Hi there,
perhaps you don't have permission to install there? Can you try installing in a virtualenv? Or perhaps in a conda env?
To be clear, I don't mean to install with conda directly, since that is currently not supported. But if you have conda installed, you can install RaGOO there manually. Like this:
~/anaconda3/bin/python setup.py install
Then, ragoo.py will be in ~/anaconda3/bin/

Thank you very much

在 2019年11月23日，下午10:39，Michael Alonge<EMAIL_ADDRESS>写道：
Hi there,
perhaps you don't have permission to install there? Can you try installing in a virtualenv? Or perhaps in a conda env?
To be clear, I don't mean to install with conda directly, since that is currently not supported. But if you have conda installed, you can install RaGOO there manually. Like this:
~/anaconda3/bin/python setup.py install
Then, ragoo.py will be in ~/anaconda3/bin/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/malonge/RaGOO/issues/38?email_source=notifications&email_token=ALZETBKPH5EXDDM34AUYRKDQVE6DBA5CNFSM4JQ2GDC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE7WNXI#issuecomment-557803229, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALZETBP473ZMIBFE6YWWSRTQVE6DBANCNFSM4JQ2GDCQ.

Hi,
I think I'm install ragoo correctly, but when I press:
python ragoo.py,   threes something wrong
raceback (most recent call last):
File "/data/pub/shehb/miniconda2/lib/python2.7/site-packages/numpy/core/init.py", line 40, in
from . import multiarray
File "/data/pub/shehb/miniconda2/lib/python2.7/site-packages/numpy/core/multiarray.py", line 13, in
from . import overrides
File "/data/pub/shehb/miniconda2/lib/python2.7/site-packages/numpy/core/overrides.py", line 6, in
from numpy.core._multiarray_umath import (
ImportError: dynamic module does not define init function (PyInit__multiarray_umath)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "ragoo.py", line 10, in
from ragoo_utilities.ReadCoverage import ReadCoverage
File "/data/pub/shehb/soft/RaGOO-master/ragoo_utilities/ReadCoverage.py", line 3, in
import numpy as np
File "/data/pub/shehb/miniconda2/lib/python2.7/site-packages/numpy/init.py", line 142, in
from . import core
File "/data/pub/shehb/miniconda2/lib/python2.7/site-packages/numpy/core/init.py", line 71, in
raise ImportError(msg)
ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the multiarray numpy extension module failed.  Most
likely you are trying to import a failed build of numpy.
Here is how to proceed:

If you're working with a numpy git repository, try git clean -xdf
(removes all files not under version control) and rebuild numpy.
If you are simply trying to use the numpy version that you have installed:
your installation is broken - please reinstall numpy.
If you have already reinstalled and that did not fix the problem, then:

Check that you are using the Python you expect (you're using /data/pub/shehb/miniconda2/envs/python3.4/bin/python),
and that you have no directories in your PATH or PYTHONPATH that can
interfere with the Python and numpy versions you're trying to use.

If (1) looks fine, you can open a new issue at
https://github.com/numpy/numpy/issues.  Please include details on:

how you installed Python
how you installed numpy
your operating system
whether or not you have multiple versions of Python installed
if you built from source, your compiler versions and ideally a build log

Note: this error has many possible causes, so please don't comment on
an existing issue about this - open a new one instead.

Original error was: dynamic module does not define init function (PyInit__multiarray_umath)

And I also install the python3.4 using condo
conda create -n python3.4 python=3.4
conda activate python3.4

Oh, I  solve it. Thank you