Feature: automatically applied border utility when adding a color utility border-gray-300

I often find myself having styling like this
 in my codebase. I'm getting a bit tired of adding the border utility first.
Can one of UnoCSS's presets automatically add the border utility when I only specify
?
A bit like how the transform utility works now.

Unocss({
    preset: [...],
    postprocess: (util) => {
        if (/^\.border-(.*)$/.test(util.selector)) {
        	util.entries.push(...[
            	['border-width', '1px'],
              	['border-style', 'solid']
            ])
        }
    },
})

Got it, but I rather have it in unocss's presets themselves, so I don't have to add this custom config in every project.

The reason is that it could have other combinations like border-b border-red which would only make the red border on the bottom.

The reason is that it could have other combinations like border-b border-red which would only make the red border on the bottom.

Ahh... I didn't think about that scenario 🤦🏻♂.
Is there a way already to specify what class should be generated first?
If so...
Possible Solution

Generate border color utility CSS before the border width / direction utilities
Change the border width / direction utilities their generated CSS to use a full 4 value border-width instead:

.border-lightgray {
  border-color: lightgray;
  border-style: solid;
  border-width: 1px;
}

.border-b {
  border-width: 0px 0px 1px 0px;
}

They are basically trade-offs, your solution will still not make border-t border-b border-red work - this is how Tailwind decided to, and we are just aligning with it. You could try to provide your own custom rule for your need.


About 'ProcessOptionsLinkParent'

Describe the bug
When the Supervisor-Actor's Spawan Child Actor Options.LinkParent is set to true,
if the Child Actor  exits before the Supervisor-Actor, the Supervisor will hang for about 30 seconds during Node.Stop.

please, provide an example that reproduces this behaviour.
PS your code looks so weird. can you pls share the source of your Actor?

please, provide an example that reproduces this behaviour.
PS your code looks so weird. can you pls share the source of your Actor?

I apologize that due to confidentiality regulations, I cannot show you too much code. The code looks strange because we have done a secondary encapsulation for Ergo 3.0. The encapsulation is a light one and does not change the original function behavior.
The general process we encountered for this issue is as follows:

Use application to start a supervisor and run a websocket management Actor inside it. This management Actor will start a meta for ServerListener.
When a new websocket connection is established, I use this manager's Actor to SpawnMeta and start a meta for sending and receiving.
At the same time, a standard sub-ProcessBehavior is launched to process the information received from the read-write meta and return. The start parameter LinkParent is set to true.
My manager monitors the above Actor and Meta.
From now on, problems arise.
When I disconnect the websocket or the sub-ProcessBehavior exits, it will notify the manager and then exit another one.
However, when I use Node.Stop, the supervisor cannot exit, and the entire process will end after about 1-2 minutes.

Thank you very much for your reply. I am not sure why this is happening; perhaps I made a mistake or used it improperly. I apologize for any trouble this may have caused you.

thank you for sharing details. but still, without seeing a code, it is difficult to understand and help you to solve this issue.
what was the reason of that encapsulation?
why dont you use WebSocket from https://github.com/ergo-services/meta? example can be found here https://github.com/ergo-services/examples (see websocket).

about 1-2 minutes

gen.Node.Stop() waits all process to be terminated. see https://docs.ergo.services/basics/node#node-shutdown
seems your process is stuck, because of socket is being in TIME_WAIT state until kernel close it forcibly.


unify command descriptions

Checklist

[ ] I've added an entry to CHANGELOG.md if necessary. You can comment this pull request with /changelog-entry [breaking-change|new-feature|bug-fix|chore] [message] and CHANGELOG.md will be updated automatically.

Why
We use a few different styles for command descriptions.
How
Unify command descriptions.
Test Plan
Run

echo "account\nbranch\nbuild\nchannel\ndevice\nproject\nsecret\nupdate\nwebhook" | xargs -I {} easd {} --help
easd --help
and verified all the command descriptions are written in the same style (except for the description for eas help but it'd require modifying @oclif/plugin-help .

/changelog-entry chore Unify EAS command descriptions style.


maxDate drawing issues

Please consider making a Pull Request if you are capable of doing so.
I'd love to, but it would take me a while, as I have other obligations for the next few weeks.
Library Version:
0.4.2
Affected Device(s):
Google Pixel (1) with Android 9.0
Huawei ALE-21 with Android 6.0
...probably others.
Describe the Bug:
I'm showing datepickers in a dialog, very similar to the material-dialogs datepicker option; here's the relevant parts:
fun MaterialDialog.datePicker(
        initialDate: LocalDate? = null,
        requireNonFutureDate: Boolean = false,
        onDateSet: ((LocalDate?) -> Unit)? = null,
        allowNoDate: Boolean = false
): MaterialDialog {
    customView(
            R.layout.dialog_datepicker,
            noVerticalPadding = true,
            dialogWrapContent = false
    )

    (initialDate ?: LocalDate.now()).let {
        datetimeDatePicker.setDate(
                it.year,
                it.monthValue - 1, // datepicker uses java calendar constants which are 0-based
                it.dayOfMonth
        )
    }
    if (requireNonFutureDate) {
        datetimeDatePicker.setMaxDate(Calendar.getInstance())
    }

   positiveButton(...)

   negativeButton(...)

   return this
}

Upon showing the dialog, I see

on both phones; I would have expected the "grey tube" to show immediately.
Upon clicking any date, I do see the "grey tube", but something's off with the drawing:

on the Huawei, and

on the Pixel.

(Sorry, I had the wrong third screenshot; updated the description now.)

The latest release should help.


UI Improvements with Reward Grouping

My only comments now after seeing the newest changes are:
Can the title bars of each badge be blue background and white type, like the original site? It would anchor each module nicely, and it would set off the titles from the list of wallet addressed below them. Would also just make the titles look a bit cooler and more anchored to the module, and it would allow for a rollover state consistent with the top nav.

Since Ulrike made some of the .pngs longer than others, can we describe the module with the longest .png (UX Champion) with the least amount of spacing between badge .png image and title below it? And, use that length of module as the standard length of all other modules. So, shorter .pngs in other modules would have more space between the .png and their title. See image below. Also, see that UX Champion has equal spacing around all edges, bottom, and sides, and top... to image. In other words, I think we can lose some of the space between title field and bottom edge of each module.

There is an issue with display wherein the modules are slightly different heights, and these heights are no longer dependent on height of .png image displayed in the module. See image...

Can the bottom edge of the blue label of each module be closer to the bottom edge of the module? This will save space.
Can the listed items below the blue label title be a white background to offset it from the blue label? We could handle this in the other issue about the accordian layer though, too.


Port forwarding for remote-ssh doesn't notice closed socket on server side

Type: Bug
Since the 1.82.0 update, using port forwards for remote SSH development has been extremely difficult for me, as the port forwarding system doesn't seem to notice when a socket is closed on the server side.
This leads to my client application running on the local side (generally Chrome) sending packets (e.g. GET requests) into the port forward (which shows up in netstat as ESTABLISHED still from chrome to Code, but those packets seem to be dropped into the bit bucket as the socket from the vscode-server to my application is closed (in TIME_WAIT) on the server (remote development machine). This causes HTTP requests to time out (very ... verry ......... sloooooooooowly) which severely hampers being able to get anything done.
VS Code version: Code 1.82.0 (8b617bd08fd9e3fc94d14adb8d358b56e3f72314, 2023-09-06T22:07:18.759Z)
OS version: Linux x64 6.2.0-32-generic
Modes:
Remote OS version: Linux x64 5.10.0-25-cloud-amd64

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz (8 x 900)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: disabled_softwarevulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
1, 1, 1

Memory (System)
31.18GB (22.54GB free)

Process Argv
--unity-launch --crash-reporter-id f628f52a-51ea-40c8-aedd-0af9d4a6bd9f

Screen Reader
no

VM
0%

DESKTOP_SESSION
ubuntu-xorg

XDG_CURRENT_DESKTOP
Unity

XDG_SESSION_DESKTOP
ubuntu-xorg

XDG_SESSION_TYPE
x11

Item
Value

Remote
SSH: gdm.mgabeler-lee

OS
Linux x64 5.10.0-25-cloud-amd64

CPUs
AMD EPYC 7B13 (16 x 2449)

Memory (System)
31.36GB (17.60GB free)

VM
0%

Extensions (26)

Extension
Author (truncated)
Version

Bookmarks
ale
13.4.1

vscode-peacock
joh
4.2.2

remote-ssh
ms-
0.106.1

remote-ssh-edit
ms-
0.86.0

remote-explorer
ms-
0.4.1

rewrap
stk
1.16.3

errorlens
use
3.13.0

github-markdown-preview
bie
0.3.0

markdown-checkbox
bie
0.4.0

markdown-emoji
bie
0.3.0

markdown-footnotes
bie
0.1.1

markdown-mermaid
bie
1.19.0

markdown-preview-github-styles
bie
2.0.2

markdown-yaml-preamble
bie
0.1.0

vscode-markdownlint
Dav
0.51.0

vscode-eslint
dba
2.4.2

EditorConfig
Edi
0.16.4

vscode-typescript-exportallmodules
eli
2.6.0

prettier-vscode
esb
10.1.0

terraform
has
2.27.2

bash-ide-vscode
mad
1.39.0

uuid-generator
net
0.0.5

vscode-commons
red
0.0.6

vscode-yaml
red
1.14.0

vscode-workspace-switcher
sad
1.15.3

code-spell-checker
str
3.0.0

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
vsccc:30803844
3biah626:30602489
89544117:30613380
2i9eh265:30646982
showlangstatbar:30737416
03d35959:30757346
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxptcf:30805731
pythonnoceb:30805159
asynctok:30821568
dsvsc013:30795093
dsvsc014:30804076
diffeditorv2:30821572
dsvsc015cf:30829746

Possible duplicate of https://github.com/microsoft/vscode/issues/192521

This does appear to duplicate the linked issue


Note that view values are in pixels in the Creator interface.

For all the places that you specify some value (form input or function documentation), lets note that the value is in pixels.

Most places I could find are done, in the dev branch.

This was merged into main, closing.


openshift.json clarify imageReference

Is this a request for help?:
YES
Is this an ISSUE or FEATURE REQUEST? (choose one):
ISSUE
What version of acs-engine?:
Version: v0.17.0

Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm)
Openshift
What happened:
deploy failed
What you expected to happen:
deploy succeed
How to reproduce it (as minimally and precisely as possible):
acs-engine deploy --subscription-id <REDACTED> --resource-group openshift --location eastus --api-model ./examples/openshift.json --force-overwrite

...
Error: resources.DeploymentsClient#CreateOrUpdate: Failure sending request: StatusCode=200 -- Original Error: Long running operation terminated with status 'Failed': Code="DeploymentFailed" Message="At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details."
ERRO[0090] {"status":"Failed","error":{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.","details":[{"code":"NotFound","message":"{\r\n  \"error\": {\r\n    \"code\": \"NotFound\",\r\n    \"message\": \"The Image '/subscriptions/<REDACTED>/resourceGroups/openshift-group/providers/Microsoft.Compute/images/master' cannot be found.\"\r\n  }\r\n}"},{"code":"NotFound","message":"{\r\n  \"error\": {\r\n    \"code\": \"NotFound\",\r\n    \"message\": \"The Image '/subscriptions/<REDACTED>/resourceGroups/openshift-group/providers/Microsoft.Compute/images/compute' cannot be found.\"\r\n  }\r\n}"},{"code":"NotFound","message":"{\r\n  \"error\": {\r\n    \"code\": \"NotFound\",\r\n    \"message\": \"The Image '/subscriptions/<REDACTED>/resourceGroups/openshift-group/providers/Microsoft.Compute/images/infra' cannot be found.\"\r\n  }\r\n}"}]}}

Anything else we need to know:
Openshift deploy.md doesn't clarify which Images should be referenced by name.

/kind documentation

/kind backlog

I found an imageReference that @haroldwongms is using in the previous, pre acs-engine buildout of Openshift.  Looks like it is a RHEL 7 image. https://github.com/Microsoft/openshift-container-platform
I'll try it with acs-engine.
"imageReference": {
                        "publisher": "RedHat",
                        "offer": "RHEL",
                        "sku": "7-RAW",
                        "version": "latest"
                },
                "redHatTags": {
                        "app": "OpenShiftContainerPlatform",
                        "version": "3.9",
                        "platform": "Azure",
                        "provider": "9d2c71fc-96ba-4b4a-93b3-14def5bc96fc"
                },

This type of imageReference, which may be a Marketplace type, fails API model check in acs-engine.
[jupittma@jupittma acs-engine]$ acs-engine deploy --subscription-id <REDACTED> --resource-group openshift --location eastus --api-model ./examples/openshift.json --force-overwrite
INFO[0000] Error returned by LoadContainerService: Unknown JSON tag publisher
FATA[0000] error validating deployCmd: error parsing the api model: Unknown JSON tag publisher

/label orchestrator/openshift

@vap0rtranz issue is that current images are only available if you have the right subscription.
It is because this deployment is using golden images. It needs to be made clear in the documentation. For now, it is not yet fully publicly available. If you use your personal account for this, you will not see images even if you know the right reference.
Work in progress here :)

@mjudeikis oh my bad.
I'm going to close this b/c you'll will probably call out those images in the doc once this is live.


[ BUG ] Starter-Base build using "eas build" gets stuck after [RUN_GRADLEW] Done writing sourcemap output

Describe the bug
the starter base works fine on expo go but when building for android it stops at
[RUN_GRADLEW] Done writing bundle output
[RUN_GRADLEW] Done writing sourcemap output
To Reproduce
Steps to reproduce the behavior:

Clone starter-base
run "npm i"
run "eas build --local"
Choose Android

Additional context
I think the problem has something to do with importing global.css into _layout.tsx . the app build just fine if you remove that import but the consequence of that is losing all the styles

@Muhammad-The-Conqueror Might be this https://github.com/nativewind/nativewind/issues/1150

It appears to be the same issue. i tried downgrading nativewind to v4.1.10 then v4.1.7 then v4.1.0
but with no luck

I'm facing the same issue, initially I was using v4.0.1 and still ran into this

@fisher0fm3n I reverted back to "nativewind": "^4.1.10" then followed the instructions in the comment mentioned above.
the build completed successfully and there is no issue with the styling.
thanks everyone @mrzachnugent @fisher0fm3n.


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-k8s-28-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 3939

Questions ?
Please refer to the Backport tool documentation


Enable Students to View the Grades

User Story: As user you should be able to view the current grades for students


Getting data  as array from filtered table

Enhancement/feature description
I would like my users to be able to download the filtered data as a CSV file. How can I get the data from the filtered table as an array for download queuing?
Steps which explain the enhancement/feature

New function which returns array of elements from user filtered table

Current and suggested behavior
New Feature
Why would the enhancement be useful to most users
Surely this must be a requested feature already? This would allow data to be used in other parts of the page. Would also be useful for filtering points on a google map.
Screenshots and GIFs
None.
Additional context
Describe alternatives you've considered
Current implementation involves user filtering before table generation.
TableFilter Version: Unsure, latest
Browser and version: All
OS and version: All
Device: All

Never mind I found the API I wanted.
getFilteredData()


Switch to parrallel execution of SDK commands

Use subshell execution of the run-all-sdk-command make target.

I have added wait right after the loop, if one process fail we would get the error and a message.
Tested with make test-sdks it spawns two docker containers for go and node.
And tested errors scenario for instance if we add exit 1 to test.sh script. That would result in:
17 specs, 0 failures
Finished in 0.087 seconds
Failed to run SDK command
make: *** [run-all-sdk-command] Error 255

/cc @Kuqd any thoughts?

Updated cloudbuild-yaml also. Now if I run:
make -j 5 test
I would see 5 parallel running images as expected (docker ps --format "table {{.Image}}\t{{.Command}}"):
IMAGE                              COMMAND
agones-build-sdk-go:c168fcc53f     "/root/entrypoint.sh…"
agones-build-sdk-node:c168fcc53f   "/root/entrypoint.sh…"
agones-build:c168fcc53f            "bash -c /go/src/ago…"
agones-build:c168fcc53f            "go test -mod=vendor…"
agones-build:c168fcc53f            "bash -c /go/src/ago…"


Bootstrap/Scan/Watch ParentNode

Another patch for Turbo: streams are returned inside a template which you can't query into directly; you need to use their content property, which is a DocumentFragment. Fortunately the DOM TS bindings provide a suitable common base interface: ParentNode.
Changing to ParentNode required a few adjustments that ultimately yield more precise type checks.

BTW, I did a force push (sorry), so you'll probably want to do a reset against origin on your local machine.

I'll probably rename the variable for clarity.

Review again?


isContract will always return true

The extcodesize(address) will return 1 when called against an externally owned account.
I modified isContract() to return the value of length.
truffle(test)> InterfaceAssetVendor.at(InterfaceAssetVendor.address).isContract.call(InterfaceAssetVendor.address)
[ true, { [String: '7333'] s: 1, e: 3, c: [ 7333 ] } ]
truffle(test)> InterfaceAssetVendor.at(InterfaceAssetVendor.address).isContract.call('0x94a69c2543edbb1efef8b6994bc8d0d5b5ffa641')
[ true, { [String: '1'] s: 1, e: 0, c: [ 1 ] } ]

isContract will always return true

I don't understand what are you talking about.
isContract must return true if a given address is a contract and false if a given address is a wallet.
I wrote this small example:
 contract ReturnTest {
     bool public extCodeReturn=true;
     function isContractTest(address _addr) {
      uint length;
      assembly { length := extcodesize(_addr) }
        if(length>0) {
           extCodeReturn=true;
        }
        else { extCodeReturn=false; } } }
I deployed it here on Ropsten: 0x8102d6c0CAc954BE65E60Eae602713c0c6e66f5D
When I'm executing isContractTest with 0x8102d6c0CAc954BE65E60Eae602713c0c6e66f5D address, it makes extCodeReturn = true.
When I'm executing isContractTest with 0x00b6fa39793d0537c111df8f6968204f152b4515 (my Ropsten address) it makes extCodeReturn = false. It looks like everything is ok.

I'm so confused by how this could be happening.


docs readme is out of date

the instructions in docs/README.md still refers to git submodules, which we stopped using after the repo merge

also do we still need docs/Makefile? it only really executes one command, which we could just put in build_docs.py (or alternatively we could move all the sphinx-apidoc calls from build_docs to the makefile?)


add missing linker dependencies

This patch fixes missing symbols when linking with a modern toolchain. Newer linkers require specifying all dependencies and do not resolve symbols that are present in dependent libraries that are not explicitly named. Example error without patch:
...
[ 81%] Linking CXX executable vcf_lines_into_sqlite
/nix/store/p792j5f44l3f0xi7ai5jllwnxqwnka88-binutils-2.31.1/bin/ld: CMakeFiles/vcf_lines_into_sqlite.dir/vcf_lines_into_sqlite.cc.o: undefined reference to symbol 'sqlite3_config'
/nix/store/p792j5f44l3f0xi7ai5jllwnxqwnka88-binutils-2.31.1/bin/ld: /nix/store/l3m86gxh34cm0m1xlsvpmcmxfszsagsw-sqlite-3.33.0/lib/libsqlite3.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

The build failure looks like an unrelated error in homebrew.

Sweet, thanks for this. For my information, could you add some color to how "a modern toolchain" contrasts with the current CI which builds variously on ubuntu 16.04, 20.04, and macOS? (Plan is certainly to expand from there as needed.)
I would have thought CMake would propagate the libsqlite3.so.0 dependency from the genomicsqlite target in the top-level CMakeLists.txt, or at least that there would be a way to make it do so for this case. Not sure about pthread.
Is the capi_smoke_test executable under tests/ somehow not affected by the same issue?

I don't have macos so can't comment about that, but I checked ubuntu 20.04 and it seems to have the same versions of gcc/glib/etc that I'm using, so it's not a version thing. The smoke test compiled fine with this patch so no additional libraries were needed there:
[ 72%] Linking C executable capi_smoke_test
/nix/store/p792j5f44l3f0xi7ai5jllwnxqwnka88-binutils-2.31.1/bin/ld: CMakeFiles/capi_smoke_test.dir/capi_smoke_test.c.o: in function `main':
capi_smoke_test.c:(.text.startup+0x4d): warning: the use of `tempnam' is dangerous, better use `mkstemp'
[ 72%] Built target capi_smoke_test

This is making me suspect it's actually SQLiteCpp that's causing the issue; I'll investigate and get back to you.

No it can't be that, it's not a dynamic library.


Eldeman -> Edelman

Codecov Report

Merging #2 (a895fd5) into main (bfb3fd5) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #2   +/-   ##
=======================================
  Coverage   86.07%   86.07%
=======================================
  Files           1        1
  Lines         158      158
=======================================
  Hits          136      136
  Misses         22       22

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 bfb3fd5...a895fd5. Read the comment docs.

Thanks!


Fix for issue #5

Here is a fix for issue 5. When the ship is in hyper (transcendent) SolGame.myHero is null and replaced in the object manager by a StarPort.Transcendent instance. The loop in MapDrawer does not check for this so I added one.

Can one of the admins please verify this patch?

Hi @askneller and thanks for the patch! Would you by chance be able to squash some of the extra commits using Git Rebase? If you're not used to / comfortable with that then don't worry about it :-)
Will hope to test it out soon! Will let our bot at it for now
@GooeyHub: ok to test

Refer to this link for build results (access rights to CI server needed):
http://jenkins.terasology.org/job/DestinationSolPRs/21/
Hooray Jenkins reported success with all tests good!

Tests out perfectly. Thanks a lot @askneller ! Added you to the credits, hoping to see more code soon :-)

Hi and sorry for the late reply. Glad I could help. And sorry about the extra commits, I'll try rebasing in future as you said.


NPM Package Error Solution

When run npm i labkar-algorithms show this error;

This code tested it as locally. Like that;

I don't have swiftmade account password for npm publishing. So, @aozisik need to update npm package for using correctly. Thanks

v1.0.2 is published to npm @burakodabas


SwiftPM command plugin to ingest a Jar file into a SwiftPM target to wrap those Java classes

The SwiftPM build tool plugin Java2SwiftPlugin wraps up the specified set of Java classes so they can be used from Swift. It requires a configuration file containing the mapping from specific Java canonical class names to their Swift type names. However, we'd like to make it easier to get started by importing a Jar file into a Swift target, scanning the Jar file for any public classes and generating the Java2SwiftPlugin configuration file.
A SwiftPM command plugin would be a reasonable approach here. Essentially, it would take a SwiftPM target name and Jar file and update the package to wrap the public classes from that Jar file. It could be written as:
swift package import-java-jar MySwiftTarget MyJavaLib.jar

This command would produce two outputs:

A file Sources/MySwiftTarget/Java2Swift.config that includes the Jar file in the class path and lists the mappings for all of the public classes within that Jar file.
An updated Package.swift that contains a package dependency on swift-java and applies the Java2SwiftPlugin to the MySwiftTarget.

The goal should be that one can "ingest" a Java library with one command, then swift build to get access to that library from Swift.

Note: we likely want to converge all those tasks into the same plugin that has a bunch of sub-commands.
This plugin would likely be a command plugin named java or swift-java


 The name of the installed distribution contains space (e.g. "a b").
Try to invoke with this distribution by wsl.exe -d "a b". It reports Error: There is no distribution with the supplied name.
However I can switch the default distribution to "a b" using wslconfig.exe /s "a b".
This problem does not exist in 17134.

What's wrong / what should be happening instead:

wsl.exe -d "a b" should launch the distribution "a b".

For WSL launch issues, please collect detailed logs: lxcore_etl.zip

Distribution names cannot have spaces in them, their name must match the below regular expression:
^[a-zA-Z0-9._-]+$
What is the output of wslconfig.exe /list

Distributions names cannot contain spaces.  Could you include in your trace the registration of the distribution via LXRunOffline?

I'm confused as well, since the first sentence is self-explanatory and the ask for a trace (whatever trace) wouldn't shed any new light. The call is going to be "WslRegisterDistribution("foo bar", "foobar.tgz")". If that scenario isn't allowed yet WslRegisterDistribution() returns S_OK regardless, then that's a bug (although, not a particularly serious bug that requires any critical attention). If if it isn't allowed, it doesn't need a repro. It's a bog straightforward by-design tag. There isn't any question here that the distribution name contains a space.

@therealkenc I generally agree with you. But LxRunOffline doesn't use WslRegisterDistribution at all (though some of the previous versions do). It simply writes extract the tar file creates appropriate registry keys.

doesn't use WslRegisterDistribution

Yes I assumed; I was giving benefit of the doubt for the case where the API was being used. You can't stop people using admin privileges from corrupting their registry directly as is the case here. That much was supposed to be implied (because obvious: I can make my MS Office stop working too if I corrupt the registry).


route to correct shard ?

Example, I was thinking of also adding:

method getting cluster state
keep track of hash-->shard-->host linking
when route is specified, route directly to correct node(with failover to replicas)
3.1. route directly to leader for create,update,delete
prefer_leader=True will always contact leader of shard first and then replicas.
prefer_leader=False will contact leader last
prefer_leader=None will random.choice(replicas)
when multiple route are added "tenant1,tenant2,tenant3", pick random replica to contact

Makes sense ?
The whole point is to contact minimum amount of nodes necessary, reducing network hops/traffic, lowering cpu.

I am not sure if this actually make any difference in performance from the client side. Do you see a performance difference? I run a 230k searches per day search cluster and haven't noticed anything.
One case where this would be interesting though is with indexing. Indexing can be directed at a single node, multiple nodes (secondary hit if primary one fails), multiple nodes in parallel (like indexing into a DR site without CDCR). You can implement it if you really want to, but I doubt you would get any performance benefit from the query side.
Additionally, there is a new collections and zookeeper module that can pull configs and some information like the clusterstate for you.

One major item on my todo list is SolrResponse, that module is very old and is a total mess. Unfortunately I still haven't gotten around to it.

It's just an extra overhead (on client doing shard-selection or on solr passing requests around) and will matter depending on your qps + latency requirements.
Example running 1K+ queries/second in < 100ms.
My problem with indexing is that it's hard to guarantee stuff from the client-side(where was it accepted), but many people use that to migrate between indexes/type-of-databases/datacenters/whatevers. I meant only routing, while you meant distributed-writes, which is a different thing.

Sounds like a good use case; go for it if you want to.
On a side note; I like to have nginx between Solr and the app. Nginx provides some nice routing capabilities, lets me redirect all search queries to a different cluster entirely and has built in cache which is helpful if it is set up on the app server. Not sure if this will fit your use case, but wanted to throw it out there.

2 issues with that for me:

I try to keep/maintain as few different pieces/type-of-software as possible. Ex: I use uwsgi with http-enabled and don't use nginx for the app.
Nginx still doesn't have a type of distributed caching backend as far as I know. So you have x nginx machines to proxy (either 1 in each app-server, 1 in each solr-server, or separate ones), each would have it's own local cache. And nginx still would have ~random load balancing (~just like calling that shuffle_hosts() before making a request).

Smart client ~is the way to go. Look at ~most nosql: cassandra,hbase,mongodb. Will matter a lot less when you do distributed-search though, since you'll hit ~all shards.


Add max line len option

Add max line len option
When i open a file with a really longer line, my nvim freezes when trying to hightlight the TODO

Makes sense. I'll set a default len to something like 200. Thank you!


Feat/add twinbuilder example

Add a new RC Circuit example for Twin Builder
Add a new Voltage Source Component for Twin Builder

@sushobhit-gupt
In each folder containing an example we have a Readme.txt file presenting the purpose of those examples. Maybe you can add it.
Otherwise, it looks good to me and very nice example.

@sushobhit-gupt @MaxJPRey  I agree, we need the readme.txt in the folder. This will be used in the header of the examples in online documentation. You can take as reference one of the other readme files.

Please add the Readme.txt. Then it looks great to me.

@maxcapodi78 @MaxJPRey I have added the new readme from Twin Builder and merged the changes from @MaxJPRey .
Please take a look when you get a chance.


Request: Sort Tasks By Priority

Thanks so much for this extension, I'm finding it really useful.
Is there a way to use the plugin that sorts tasks by their priority? At the moment it seems the default for me is alphabetical.
Thanks

Currently the sorting is dependent on how the tasks are ordered in the Todoist app.
But I can try to add a setting which will override that and do priority based sorting

Currently the sorting is dependent on how the tasks are ordered in the Todoist app.
But I can try to add a setting which will override that and do priority based sorting

@callumgwtaylor This feature is now available in v0.5.2.
I have added a setting code.todoist.sortBy to be able to choose how the Todoist tasks should be sorted in the task views.
Thanks a lot for your feedback and patience

Thanks!


fix(healthcheck): Parse arguments properly for httpheaders

fixes #279
requires https://github.com/deis/controller-sdk-go/pull/110

the ... in the docstring means that you can supply this argument multiple times, so the usage should be --header=X_DEIS_IS:awesome --header=X_MY_APP_IS_ALSO:awesome. Does that not work?

From docopt's README:

... (ellipsis) one or more elements. To specify that arbitrary number of repeating elements could be accepted, use ellipsis (...), e.g. my_program.py FILE ... means one or more FILE-s are accepted. If you want to accept zero or more elements, use brackets, e.g.: my_program.py [FILE ...]. Ellipsis works as a unary operator on the expression to the left.

If your usage patterns allows to match same-named option with argument or positional argument several times, the matched arguments will be collected into a list:

Usage: my_program.py <file> <file> --path=<path>...

I.e. invoked with my_program.py file1 file2 --path=./here --path=./there the returned dict will contain args['<file>'] == ['file1', 'file2'] and args['--path'] == ['./here', './there'].

no they aren't working for the options but are working for the arguments.

Any way we can fix this upstream in docopt.go instead and rev the version here? @mboersma is the core maintainer so I'm sure we could sneak him a cookie or something to motivate him ;)

Love to see a PR patch for docopt-go! :+1:

Current coverage is 72.77% (diff: 100%)

Merging #280 into master will increase coverage by 0.27%

@@             master       #280   diff @@
==========================================
  Files            59         59
  Lines          4073       4073
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           2953       2964    +11
+ Misses          795        784    -11
  Partials        325        325

Powered by Codecov. Last update eb21ef2...2b7700d

i don't think we can have more than one arguments with ellipses(...) because the values are separated by space which means it can't differentiate mapping between the values and the args if there are more

Sounds good. This LGTM with the controller-sdk bump with the fix as well. 👍


Web Scraping Documentation and Llama-Index Integration

Issue Reference: Resolves #42
Changes:

Added functionality to scrape documentation from the given website, including sublinks.
Stored scraped content in Llama-Index Document objects with metadata (URLs).
Compiled the documents into a full Llama-Index for indexing.
Created a Colab notebook with sample usage to demonstrate the scraper in action.

Challenges:

Overcame issues with deprecated functions in libraries like GPTSimpleVectorIndex.
Ensured all relative URLs were correctly resolved using urljoin.
Managed to implement a recursive scraper to handle multiple pages linked from the main documentation.

Please review the changes and let me know if further adjustments are needed.

Hi, @AsH1605  Thanks for the contribution. I was little busy I am reviewing your code.
Can you please test your implementation on Keras documentation?
Show your implementation on note-book that you have added in PR.

@AsH1605 please sign all your commits before creating a PR(you can watch a youtube tutorial), also you should have made your commits in the different branch not directly on the main.


Format README

An idea on how to simplify the README readability:

reduced heading usage in Installation
moved different linking steps (automatic, manual, iOS, Android, Windows) to toggled lists
split the iOS manual linking tutorial into a smaller steps
removed a section about using git tags as a package version in package.json. Not sure it's a good practice and there are use cases for the linear-gradient package for now (please correct me if I'm wrong)
renamed Updating the values for fun to Animated Gradient and moved to Examples
added Table of Contents at the top of the README

You can see how the README looks here
Related to: #360

Failed to beautifully rebase the branch, have no idea why 😞
Can we do a squash commit here?

@kulyk Yes, we can do a squash here - given the number of commits with only a single file modified, it sounds like the best thing to do anyway.
However, you'd need to resolve the conflict first. I've rebased and squashed it locally, and pushed a commit to my fork: https://github.com/friederbluemle/react-native-linear-gradient/commit/120f13414c5f6f105470e9335c573ce569b9f899
Feel free to use it, let me know if I can help with anything!

@friederbluemle hi, I've fixed the issues you mentioned. Please take a look at the PR again 🙏
Thank you for the review!

@friederbluemle fixed. Thank you!

Nicely done, thanks @kulyk :+1:


Added Bounce Event explanation

Added, preferrably in bold, explanation for the additional header "type" in bounce event posts that tells the customer if the bounce is a soft or hard, blocked or bounce.
Please note that Bounce events include both Bounces and Blocked events, these are differentiated by the added "type" header in the posted event. A blocked type would reference a soft bounce for that request. A bounce type would reference a hard bounce for that request.
Description of the change:
Reason for the change:
Link to original source:

Closes #

@Whatthefoxsays I think I made the change you needed

@hmbrown64 - sorry, I only just saw your comment on this. There's still some updates needed - we can walk you through them next week!


Unable to exclude spec files from the test

Hi,
I am trying to exclude some spec files from the test, but can't.
so that,
I have created a fresh 'ng new myapp' and
I tried all the ways by the options provided.

In karma.conf.js
I have added exclude option in karma.conf.js like following,
exclude:['app.component.spec*.*']

but this one, included the app.component.spec.ts and showed some test results.

In tsconfig.spec.json
I have tried exclude option but its also ends in vain.

Now, I would like to exclude bunch of specs but I am unable to do in all the ways even in the fresh project.
Can anybody help in this regard?
I am using Windows OS machine, and with the following versions:
Angular CLI: 1.6.3
Node: 6.10.0
OS: win32 x64
Angular: 4.4.6
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router, tsc-wrapped
@angular/cli: 1.6.3
@angular-devkit/build-optimizer: 0.0.36
@angular-devkit/core: 0.0.22
@angular-devkit/schematics: 0.0.42
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.3
@schematics/angular: 0.1.11
@schematics/schematics: 0.0.11
typescript: 2.3.4
webpack: 3.10.0
Can you please identify the root cause of the problem?

Changing karma.conf.js doesn't do anything really, and changing tsconfig.spec.json just says those files shouldn't be compiled which isn't what you want I think.
What really loads the specs files is src/test.ts are these lines:
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);

You can change the regex to exclude some tests, but this might be hard on complicated setups.
A simpler but more verbose way is to replace those lines to import only the tests you want:
// Run only this test
import './app/app.component.spec';

You can also exclude some tests by replacing it(...) with xit(...).

Definnitely we need something like:
"codeCoverageExclude" from angular.json
but not only for coverage but for test run exclude as well.

Changing karma.conf.js doesn't do anything really, and changing tsconfig.spec.json just says those files shouldn't be compiled which isn't what you want I think.
What really loads the specs files is src/test.ts are these lines:
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);

You can change the regex to exclude some tests, but this might be hard on complicated setups.
A simpler but more verbose way is to replace those lines to import only the tests you want:
// Run only this test
import './app/app.component.spec';

You can also exclude some tests by replacing it(...) with xit(...).

this is not working. My test file is empty but it is still loading the spec files. using karma webpack and there only is the test.ts as entry file. I don't understand from where it is loading the spec files

You able to change regex in src/test.ts file for exclude files with name
"*name*.*type*.exclude.spec.ts".
Change this line:
const context = require.context('./', true, /^((?!exclude).)*\.spec.ts$/);


General: Add missing details to course detail view

Checklist
General

[x] This is a small issue that I tested locally and was confirmed by another developer on a test server.
[x] Language: I followed the guidelines for inclusive, diversity-sensitive, and appreciative language.
[x] I chose a title conforming to the naming conventions for pull requests.

Client

[x] Important: I implemented the changes with a very good performance, prevented too many (unnecessary) REST calls and made sure the UI is responsive, even with large data.
[x] I followed the coding and design guidelines.
[x] Following the theming guidelines, I specified colors only in the theming variable files and checked that the changes look consistent in both the light and the dark theme.
[x] I documented the TypeScript code using JSDoc style.
[x] I added multiple screenshots/screencasts of my UI changes.
[x] I translated all newly inserted strings into English and German.

Motivation and Context
There have been some details missing in the course detail page. This PR adds this missing information.
Steps for Testing

Prerequisites:

1 Instructor
1 course

Log in to Artemis
Navigate to Course Detail View
Verify that all necessary details of the course are displayed

Review Progress

Performance Review

[ ] I (as a reviewer) confirm that the client changes (in particular related to REST calls and UI responsiveness) are implemented with a very good performance
[ ] I (as a reviewer) confirm that the server changes (in particular related to database calls) are implemented with a very good performance

Code Review

[x] Code Review 1
[ ] Code Review 2

Manual Tests

[ ] Test 1
[ ] Test 2

Test Coverage

Screenshots

Tested on ts2.
Worked as expected

Thank you for your feedback, I implemented it, please have another look at the changes.

I fixed the client build and since this PR does not include any server changes, I guess the falling tests are not connected to this PR.
Please have another look at the PR.


App's in the App service plan can be associated to the same subnet not with other subnets without moving to other ASP

[Current Documentation:
The feature supports only one virtual interface per worker. One virtual interface per worker means one regional virtual network integration per App Service plan. All the apps in the same App Service plan can use the same virtual network integration. If you need an app to connect to another virtual network, you need to create another App Service plan. The virtual interface used isn't a resource that customers have direct access to.
Can we have below change?
The feature supports only one virtual interface per worker. One virtual interface per worker means one regional virtual network integration per App Service plan. All the apps in the same App Service plan can use the same virtual network & Subnet integration. If you need an app to connect to another subnets in same virtual network or another virtual network, you need to create another App Service plan. The virtual interface used isn't a resource that customers have direct access to.
Reason : Customers thinks that they can integrate with different subnets on the same Vnet which is already integrated]

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

ID: 077513b8-750f-13f3-b973-36a7b53b8562
Version Independent ID: baf5fae6-c52e-b8ef-cd04-2b1b462643bb
Content: Integrate your app with an Azure virtual network - Azure App Service
Content Source: articles/app-service/overview-vnet-integration.md
Service: app-service
GitHub Login: @madsd
Microsoft Alias: madsd

Hi @Ravivarman13 , thanks for your feedback! We will work to improve the doc as necessary
cc: @madsd can you please take a look at it.

@Ravivarman13 thank you for the feedback. I made a change based on your feedback. The change should be out in the next 24 hours. Feel free to close this issue.

Documentation has been updated. #please-close


[wip] Do not do unshallow clone hombrew repo on CircleCI

Checklist

[x] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[x] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary.

Motivation and Context

While working on #17861, I realised that a bug was introduced in .circleci/config.yml in #17708 (see below).  The behaviour of homebrew seemed to be changed in Homebrew/brew#8883 so I suppose something was changed in cache compatibility around that as well🤔  A temporary solution made at https://github.com/fastlane/fastlane/pull/17708/commits/287b4f607c26df957a2b0b1470609d8c41b49fdd doesn't work for subsequent builds after all.
This is the error I mentioned.
#!/bin/bash --login -eo pipefail
mkdir -p ~/test-reports
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow
brew update
brew untap caskroom/versions || true
brew install shellcheck
bundle check --path .bundle || bundle install --jobs=4 --retry=3 --path .bundle
fatal: --unshallow on a complete repository does not make sense

Exited with code exit status 128
CircleCI received exit code 128

https://app.circleci.com/pipelines/github/fastlane/fastlane/1796/workflows/e077559c-1757-447c-a66f-0fc24413fb80/jobs/58879
Description

This PR simply bumped cache version for Homebrew and removed unnecessary workaround.
Testing Steps

See if CI passes in all conditions.

I will continue this on another day 🙇


About bounding box (minimal tight bbx?)

Thanks for the great work! This library is incredibly clean compared to mmpose.
I have a question about the definition of the bounding box. It doesn’t always appear to be the minimal bounding box like in YoloV8. Is there a specific interpretation or convention regarding the size of the bounding box? I would appreciate any clarification from the author.
I've attached two images as examples.

Hi @zehongs , as a convention, we will expand the minimal bbox (usually calculated via keypoints) with a factor 0.25 to ensure the whole instance is inside the bbox.

Hi, thanks for the reply!
Actually, this is a minor quesetion: Do you have any comments on the bounding boxes I show in the examples? They are the outputs (xyxy-format) of the rtmdet (https://download.openmmlab.com/mmpose/v1/projects/rtmposev1/onnx_sdk/yolox_m_8xb8-300e_humanart-c2c7a14a.zip). It's clear that they have different bahavoirs, i.e. left=minimal tight, right=somewhat expanded.
I'm not sure if this comes from some algorithm in the onnx model, or this is related to bounding box annotation in the training data.

I'm sure there is no such kind of processing in onnx model. The expansion only happens during the input stage of pose estimation.(For mmpose, the bbox annotations will be expanded in the augmentation pipeline). So, if the bbox you show is directly from onnx model of detection, I think it is just a model performance issue. (TBH, I think even the right one is good enough in most circumstances.)

I see. Thank you!


[2.x] Add the ability to publish and use test stubs

Q
A

Bug fix?
no

New feature?
yes

Fixed tickets
0

Similar to https://github.com/pestphp/pest/pull/596 this PR aims to allow the following Pest Tests stubs to be published into a Laravel project and modified for each specific project's requirements:

Browser.php
Dataset.php
Feature.php
Unit.php

The adjusted logic generates an outcome similar to the Laravel's existing artisan stub:publish and artisan make:test commands.
To publish the Pest stubs, the new artisan pest:publish command can be used, the stubs will be published as:

pest.browser.stub
pest.dataset.stub
pest.feature.stub
pest.unit.stub

These will then be found in the stubs directory on the project root.
The command behaves similarly to artisan stub:publish and has the --existing and --force options available for use.
artisan pest:dataset and artisan pest:test will generate files from the published stubs if they are present, otherwise the ones from the phppest/pest package will be used.

I was just looking for this exact feature!


100k war audio, the conversion time takes 40-50s

Tested using a demo of React Native. It was found that the SDK on the iOS side, under tiny's model, the converted content is inaccurate, and with 100k war audio, the conversion time takes 40-50s.

I guess the problem is related to file format, currently whisper.cpp only allow 16khz mono channel. You can redirect to whisper.cpp, it also contains pure iOS examples, maybe there are already some issues that can help you.
Also, adding this kind of question in discussions is also welcome, if you provide enough information I can try to help.


Throw FileNotFoundException when connecting to a missing UDS path

Motivation:
Exception handling is nicer when a more specific Exception is thrown
Modification:
Add a static reference for ENOENT, and throw FNFE if it is returned
Result:
More precise exception handling

Cherry-picked into 4.1 (d8cb9ce09f5e591c244f2c3b04ea5bf054865ebb) and 4.0 (777b400fd6c6ef1f948c0f8da964565f804d5f22)


Progress handler always returns 0 on iOS

The progress handler gets called, but I only get the value 0.
Plugin version: 1.0.8
Capacitor version: 4.8.0
iOS Target: 13.0

The progress handler gets called, but I only get the value 0.
Plugin version: 1.0.8 Capacitor version: 4.8.0 iOS Target: 13.0

is it downloaded successfully?

Yes, downloading works, but each progress event only emits a zero.


Bio Processing Metrics - Needle to Freezer Time By Site

Please generate cumulative needle to freezer time pie charts for plasma and serum for each research collection site (Marshfield, HealthPartners, Uchicago, Sanford, and Henry Ford) using the most recent Connect Cumulative BSI Report.
Note: This metrics will be a single generation occurrence at this time.

Hi, Madhuri, I've checked the data in box, it is still the one saved on Oct. 24, 2022, which we had done the plot with already. Will you mean a new data coming next Monday?


reader will failed because the version is compacted

Describe the bug
reader will failed because can not aquire the data source of the right version:
W0320 10:22:42.038903 31688 olap_table.cpp:396] fail to generate shortest version path. [version='0-927' table='584857.41372972']
W0320 10:22:42.038920 31688 reader.cpp:493] fail to acquire data sources. [table_name='584857.41372972' version=0-927]
W0320 10:22:42.038930 31688 reader.cpp:311] fail to init reader when acquire data sources.[res=-214]
W0320 10:22:42.038939 31688 olap_scanner.cpp:121] fail to init reader.[res=-214]
compaction:
I0320 10:22:35.352181 31661 cumulative_compaction.cpp:480] succeed to do cumulative compaction. [table=584857.41372972; cumulative_version=2-928]

this problem will be solved by using the following mechanism(deferred delete mechanism):

add a delete flag field and delete_time field to the rowset
delete rowset will not be added unused rowsets queue. It will be reserved for a peroid(eg: 10 minutes, can be configured by config) so that the late reader with the old version will get the old version rowset.
Tablet will manage a extra deleted rowsets queue and will check the queue periodically to move the timeout rowsets in the deleted rowsets queue to the unused rowsets in StorageEngine.
One point to figure out is that make sure the rowset version can be obtained from version graph and can be aquired through tabblet's get_rowset api.

related problems should be considered:

the disk space
version graph
how long to spare
base rowset

https://github.com/apache/incubator-doris/pull/1400/ has fixed this issue.


initial mergejoin proc

This work involves adding an initial cut at a mergejoin proc that uses the -P parallel input feature of #1616.
This join will not be anything fancy and simply will join sorted inputs from a left parent and a right parent.  It is up to the person writing the query to make sure the inputs are sorted by their join keys or the output is undefined.  In future versions of join, we can allow the user to omit the necessary sorts and have query planner insert the sorts where needed.
The nice thing about this initial approach is that it re-uses all our existing machinery (in particular, spillable sorts) so that we can scale to arbitrarily large joins in a single node deployment (of course, at reduced performance due to spilling but with SSDs it won't be too bad).
This simple merge join would look like this...
zq -P '( sort ip.resp_h ; sort ip_key ) | join ip.resp_h=ip_key | ...' logs.zng intel.zng

or using stdin...
zq -P '( sort ip.resp_h ; sort ip_key ) | join ip.resp_h=ip_key | ...'  - intel.zng

Looks like a duplicate of #1632.


import error

just failed using Anthropic sdk in an expo project and found this...
installed the package with
npm i anthropic-react-native
and in code
import Anthropic from "anthropic-react-native"; //error: Cannot find module 'anthropic-react-native' or its corresponding type declarations.ts(2307)

you should change your package.json to this
"main": "dist/index.js",
"types": "dist/index.d.ts",

I have the same problem

I ended up wrote my own piece of code using sse directly....
const url = "https://api.anthropic.com/v1";
type MyAnthropicEvents =
| "ping"
| "content_block_delta" //the actual generated text flow...
| "message_delta" //this has usage.output_tokens
| "message_start"//this has message.usage.input_tokens
| "message_stop"
| "error";
const es = new EventSource<MyAnthropicEvents>(`${url}/messages`, {
  headers: {
    "x-api-key": apiKey,
    "Content-Type": "application/json",
    "anthropic-version": "2023-06-01",
  },
  method: "POST",
  body,
  pollingInterval: 0,
});
es.addEventListener("open", () => {
  console.log(`sse open`);
});
es.addEventListener("message_start", (event) => {
  console.log(`message_start: event:-----getting context tokens-----------------`);
});
es.addEventListener("content_block_delta", (event) => {
  console.log(`content_block_delta:`);
  const json = JSON.parse(event.data!);
  console.log(json.delta.text);
});


Remove expanduser() and resolve, add py.typed

Fixed Issues

N/A

Summary of Changes

Path.expanduser and Path.resolve turn out to be very slow operations, and filecache was using them extensively. I have removed all uses for performance. Frankly no one should be including ~name in a path anyway.
Add py.typed marker and added to pyproject.toml for packaging.

Known Problems

None.

AI Code Review is in progress (usually takes <3 minutes unless it's a very large PR).

Changelist by Bito
This pull request implements the following key changes.

Key Change
Files Impacted

Feature Improvement - Performance Optimization in Path Handling

- file_cache.py - Removed expanduser() and resolve() calls for better performance and added FCPath type support

- file_cache_source.py - Removed expanduser() and resolve() calls from all path handling operations

Other Improvements - Type Checking Support

- pyproject.toml - Added py.typed marker for package type information

AI Code Review is in progress (usually takes <3 minutes unless it's a very large PR).


ARROW-9365: [Go] Added the rest of the implemented array builders to NewBuilder

This PR adds the rest of the implemented typed array builders to the NewBuilder function. I ran into needing this because NewStructBuilder internally calls NewBuilder.

@stuartcarnie @sbinet


Does Node.js have to have copy and paste authentication?

Javascript quickstarts are just click authentications while the node.js quickstart requires you to copy and paste. It's not too user friendly.
Has anyone found a work-around for this? The authentication paragraph of the guidelines weren't very clear for me so it'd be a huge help to see someone's sample code.
FYI I'm working with the calendar api quickstart.js
https://developers.google.com/google-apps/calendar/quickstart/nodejs

Thanks!

Can you be more specific as to what you're copying and pasting? How can this library change to improve your experience? If this is an issue with the Google Calendar API documentation, your best option to help them improve it is to send them feedback with the Send Feedback button at the top right of the page.

In the Node.js sample, there's nothing to click, as it is just a process running on a server.


Add hidden-char

Please add my hidden-char package. Thanks!

@rcook, do you know about http://hackage.haskell.org/package/echo ?

Merged thanks


Is UDP supposed to work?

Hi,
I am trying out the driver and I can't get it to work over UDP.
First, there is a hardcoded udp address in pfsdp_protocol.hpp.
Then at least parse_data() gets called but no scans are published...
TCP is working.

Hi, are you using R2000? UDP for R2000 is not tested yet. Is this a blocking issue for you?

And I see some time delay as you can see on the gif:  (the slow downs are from this gif recorder...)

btw: it may occurred to you that r2000 has a quite high noise in comparison to the microscan.
Do you have any suggestions for configuring the r2000 for localization tasks?

And I see some time delay as you can see on the gif: (the slow downs are from this gif recorder...)

To clarify, the delay is not observed because of the driver, right?

it may occurred to you that r2000 has a quite high noise in comparison to the microscan.

I have not tested SICK scanner you mentioned, so I cannot compare. Can you check if you get the same noise if you use the Windows software for Pepperl+Fuchs?

No, the delay is somewhere in the line from scanner to rviz.
I was just referring to the gif not displaying smoothly.
Something is buffering up, because after a restart of the driver the delay is gone but increases again as time is passing.
Yes, I have the same noise on Windows.

No, the delay is somewhere in the line from scanner to rviz.

This is most probably an issue with incorrect calculation of time_increment. Can you test https://github.com/PepperlFuchs/ROS_driver/commit/2f94e06e9a47030f625e6ea7f43e3b2e9a957d3b and let me know if this solves your issue?

It is most probably an issue with incorrect calculation of time_increment. Can you test it with https://github.com/PepperlFuchs/ROS_driver/commit/0ee0024829ff4d0f6d27864ec84e2badb4b6aeec?

Yes, that fixed it! Thanks for fast support.


fix markdown syntax

fix markdown syntax to better visualize the console commands

@froschdesign is correct; closing.


Raft failing

Issue
I'm trying to run a 3-node Orchestrator raft cluster, using sqlite. It works fine for a few days and then inexplicably fails. The logs/output of journalctl is not very helpful. Not really sure how to replicate except to just let it run for a few days and it will randomly die I guess.
Topology
e1u08vm021.dc1.corp.example.com:3306   [0s,ok,10.3.25-MariaDB-0ubuntu<IP_ADDRESS>-log,rw,MIXED,>>,P-GTID]
+ e1u10vm013.dc1.corp.example.com:3306 [0s,ok,10.3.25-MariaDB-0ubuntu<IP_ADDRESS>-log,rw,MIXED,>>,GTID,P-GTID]
+ e1u12vm015.dc1.corp.example.com:3306 [0s,ok,10.3.25-MariaDB-0ubuntu<IP_ADDRESS>-log,ro,MIXED,>>,GTID,P-GTID]

Config (sanitized)
{
  "Debug":            true,
  "EnableSyslog":     false,
  "BackendDB":        "sqlite",
  "SQLite3DataFile":  "/var/lib/orchestrator/orchestrator.db",
  "RaftEnabled":      true,
  "RaftDataDir":      "/var/lib/orchestrator",
  "RaftBind":         "<IP_ADDRESS>",
  "DefaultRaftPort":  10008,
  "RaftNodes": [
    "e1u08vm020.dc1.corp.example.com",
    "e1u10vm012.dc1.corp.example.com",
    "e1u12vm014.dc1.corp.example.com"
  ],
  "KVClusterMasterPrefix":              "mysql/master",
  "ConsulAddress":                      "<IP_ADDRESS>:8500",
  "ConsulKVStoreProvider":              "consul-txn",
  "ConsulCrossDataCenterDistribution":  true,
  "MySQLTopologyCredentialsConfigFile": "/etc/mysql/orchestrator-topology.cnf",
  "InstancePollSeconds":                5,
  "DiscoverByShowSlaveHosts":           true,
  "HostnameResolveMethod":              "default",
  "MySQLHostnameResolveMethod":         "@@hostname",
  "ReplicationLagQuery":                "select absolute_lag from meta.heartbeat_view",
  "DetectClusterAliasQuery":            "select concat(substring_index(substring_index(@@hostname,'.',3),'.',-1),'-',substring_index(substring_index(@@hostname,'.',2),'.',-1))",
  "DetectClusterDomainQuery":           "",
  "DataCenterPattern":                  ".*?[.](.*?)[.]corp[.]example.com",
  "PhysicalEnvironmentPattern":         "",
  "AutoPseudoGTID":                     true,
  "ServeAgentsHttp":                    true,
  "AgentsServerPort":                   ":3001",
  "AgentsUseSSL":                       true,
  "AgentsUseMutualTLS":                 true,
  "AgentSSLSkipVerify":                 false,
  "AgentSSLPrivateKeyFile":             "/etc/orchestrator/orchestrator.key",
  "AgentSSLCertFile":                   "/etc/orchestrator/orchestrator.crt",
  "AgentSSLCAFile":                     "/usr/local/share/ca-certificates/corp-ca.crt",
  "AgentSSLValidOUs":                   [],
  "UseSSL":                             true,
  "UseMutualTLS":                       false,
  "SSLSkipVerify":                      false,
  "SSLPrivateKeyFile":                  "/etc/orchestrator/orchestrator.key",
  "SSLCertFile":                        "/etc/orchestrator/orchestrator.crt",
  "SSLCAFile":                          "/usr/local/share/ca-certificates/corp-ca.crt",
  "SSLValidOUs":                        [],
  "URLPrefix":                          "",
  "StatusEndpoint":                     "/api/status",
  "StatusOUVerify":                     false,
  "RecoveryIgnoreHostnameFilters": [],
  "RecoverMasterClusterFilters": [
    "_master_pattern_"
  ],
  "RecoverIntermediateMasterClusterFilters": [
    "_intermediate_master_pattern_"
  ],
  "OnFailureDetectionProcesses": [
    "echo 'Detected {failureType} on {failureCluster}. Affected replicas: {countSlaves}' >> /tmp/recovery.log"
  ],
  "PreGracefulTakeoverProcesses": [
    "echo 'Planned takeover about to take place on {failureCluster}. Master will switch to read_only' >> /tmp/recovery.log"
  ],
  "PreFailoverProcesses": [
    "echo 'Will recover from {failureType} on {failureCluster}' >> /tmp/recovery.log"
  ],
  "PostFailoverProcesses": [
    "echo '(for all types) Recovered from {failureType} on {failureCluster}. Failed: {failedHost}:{failedPort}; Successor: {successorHost}:{successorPort}' >> /tmp/recovery.log"
  ],
  "PostUnsuccessfulFailoverProcesses": [],
  "PostMasterFailoverProcesses": [
    "echo 'Recovered from {failureType} on {failureCluster}. Failed: {failedHost}:{failedPort}; Promoted: {successorHost}:{successorPort}' >> /tmp/recovery.log"
  ],
  "PostIntermediateMasterFailoverProcesses": [
    "echo 'Recovered from {failureType} on {failureCluster}. Failed: {failedHost}:{failedPort}; Successor: {successorHost}:{successorPort}' >> /tmp/recovery.log"
  ],
  "PostGracefulTakeoverProcesses": [
    "echo 'Planned takeover complete' >> /tmp/recovery.log"
  ],
  "CoMasterRecoveryMustPromoteOtherCoMaster":   true,
  "DetachLostSlavesAfterMasterFailover":        true,
  "ApplyMySQLPromotionAfterMasterFailover":     true,
  "PreventCrossDataCenterMasterFailover":       false,
  "PreventCrossRegionMasterFailover":           false,
  "MasterFailoverDetachReplicaMasterHost":      false,
  "MasterFailoverLostInstancesDowntimeMinutes": 0,
  "PostponeReplicaRecoveryOnLagMinutes":        0
}

Systemd logs
(note that the line raft: Heartbeat timeout from "" reached is not sanitized - it is indeed an empty string in the log output)
Apr 13 03:38:12 e1u08vm020 orchestrator[12125]: 2021-04-13 03:38:12 DEBUG orchestrator/raft: applying command 5681: request-health-report
Apr 13 03:38:12 e1u08vm020 orchestrator[12125]: 2021-04-13 03:38:12 ERROR ReadTopologyInstance(e1u08vm021.<domain>:3306) show slave hosts: ReadTopologyIn>
Apr 13 03:38:12 e1u08vm020 orchestrator[12125]: [martini] Started GET /api/raft-follower-health-report/ae4dbb10/<IP_ADDRESS>/<IP_ADDRESS> for <IP_ADDRESS>:51636
Apr 13 03:38:12 e1u08vm020 orchestrator[12125]: [martini] Completed 200 OK in 1.692953ms
Apr 13 03:38:12 e1u08vm020 orchestrator[12125]: [martini] Started GET /api/raft-follower-health-report/ae4dbb10/<IP_ADDRESS>/<IP_ADDRESS> for <IP_ADDRESS>:35316
Apr 13 03:38:12 e1u08vm020 orchestrator[12125]: [martini] Completed 200 OK in 1.217536ms
Apr 13 03:38:12 e1u08vm020 orchestrator[12125]: [martini] Started GET /api/raft-follower-health-report/ae4dbb10/<IP_ADDRESS>/<IP_ADDRESS> for <IP_ADDRESS>:50068
Apr 13 03:38:12 e1u08vm020 orchestrator[12125]: [martini] Completed 200 OK in 1.423832ms
Apr 13 03:38:13 e1u08vm020 orchestrator[12125]: 2021-04-13 03:38:13 DEBUG outdated agents hosts: []
Apr 13 03:38:14 e1u08vm020 orchestrator[12125]: 2021-04-13 03:38:14 DEBUG outdated agents hosts: []
Apr 13 03:38:15 e1u08vm020 orchestrator[12125]: 2021-04-13 03:38:15 DEBUG outdated agents hosts: []
Apr 13 03:38:17 e1u08vm020 orchestrator[12125]: 2021-04-13 03:38:17 DEBUG raft leader is <IP_ADDRESS>:10008 (this host); state: Leader
Apr 13 03:38:20 e1u08vm020 orchestrator[12125]: 2021-04-13 03:38:20 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 13 03:38:20 e1u08vm020 orchestrator[12125]: 2021/04/13 03:38:20 [INFO] raft: Node at <IP_ADDRESS>:10008 [Follower] entering Follower state (Leader: "")
Apr 13 03:38:20 e1u08vm020 orchestrator[12125]: 2021/04/13 03:38:20 [INFO] raft: aborting pipeline replication to peer <IP_ADDRESS>:10008
Apr 13 03:38:20 e1u08vm020 orchestrator[12125]: 2021/04/13 03:38:20 [INFO] raft: aborting pipeline replication to peer <IP_ADDRESS>:10008
Apr 13 03:39:39 e1u08vm020 orchestrator[12125]: 2021-04-13 03:38:21 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 13 03:39:39 e1u08vm020 orchestrator[12125]: 2021/04/13 03:38:22 [WARN] raft: Heartbeat timeout from "" reached, but leadership suspended. Will not enter Candidate mode
Apr 13 03:39:39 e1u08vm020 orchestrator[12125]: 2021/04/13 03:38:22 [INFO] raft: Node at <IP_ADDRESS>:10008 [Follower] entering Follower state (Leader: "")
Apr 13 03:39:39 e1u08vm020 orchestrator[12125]: 2021-04-13 03:38:22 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 13 03:39:39 e1u08vm020 orchestrator[12125]: 2021-04-13 03:38:22 DEBUG raft leader is ; state: Follower
...
Apr 13 03:39:39 e1u08vm020 orchestrator[12125]: 2021/04/13 03:38:43 [WARN] raft: Heartbeat timeout from "" reached, but leadership suspended. Will not enter Candidate mode
Apr 13 03:39:39 e1u08vm020 orchestrator[12125]: 2021/04/13 03:38:43 [INFO] raft: Node at <IP_ADDRESS>:10008 [Follower] entering Follower state (Leader: "")
Apr 13 03:39:39 e1u08vm020 orchestrator[12125]: 2021-04-13 03:38:44 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 13 03:39:39 e1u08vm020 orchestrator[12125]: 2021-04-13 03:38:45 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 13 03:39:39 e1u08vm020 orchestrator[12125]: 2021-04-13 03:38:45 FATAL Node is unable to register health. Please check database connnectivity and/or time synchronisation.
Apr 13 03:39:39 e1u08vm020 systemd[1]: orchestrator.service: Main process exited, code=exited, status=1/FAILURE

I can edit the systemd service to use --debug --stack, but it may be a few days before it fails again, it doesn't seem that consistent yet

Some additional details:
Start and fail times (if that's relevant to anything)
Apr 10 01:01:21 e1u08vm020 systemd[1]: Started orchestrator: MySQL replication management and visualization.
Apr 10 02:09:59 e1u08vm020 orchestrator[9065]: 2021-04-10 02:09:01 FATAL Node is unable to register health. Please check database connnectivity and/or time synchronisation.
Apr 12 17:00:42 e1u08vm020 systemd[1]: Started orchestrator: MySQL replication management and visualization.
Apr 13 03:39:39 e1u08vm020 orchestrator[12125]: 2021-04-13 03:38:45 FATAL Node is unable to register health. Please check database connnectivity and/or time synchronisation.
Apr 14 17:29:59 e1u08vm020 systemd[1]: Started orchestrator: MySQL replication management and visualization.
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:05:06 FATAL Node is unable to register health. Please check database connnectivity and/or time synchronisation.

Logs
I ran all nodes with --debug --stack this time, but they didn't offer any new details
Apr 09 22:13:47 e1u08vm020 systemd[1]: Started orchestrator: MySQL replication management and visualization.
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 DEBUG Connected to orchestrator backend: sqlite on /var/lib/orchestrator/orchestrator.db
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 DEBUG Initializing orchestrator
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 INFO Connecting to backend :3306: maxConnections: 128, maxIdleConns: 32
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 INFO Starting agents listener
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 INFO Starting continuous agents poll
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 INFO Starting agent HTTPS listener
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 INFO verifyCert requested, client certificates will be verified
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 INFO Read in CA file: /usr/local/share/ca-certificates/corp-ca.crt
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 WARNING Didn't parse all of /etc/orchestrator/orchestrator.crt
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 INFO Starting Discovery
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 INFO Registering endpoints
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 INFO continuous discovery: setting up
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 DEBUG Setting up raft
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 DEBUG raft: advertise=<IP_ADDRESS>:10008
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 DEBUG raft: transport=&{connPool:map[] connPoolLock:{state:0 sema:0} consumeCh:0xc000081620 heartbeatFn:<n>
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 DEBUG raft: peers=[<IP_ADDRESS>:10008 <IP_ADDRESS>:10008 <IP_ADDRESS>:10008]
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 DEBUG raft: logStore=&{dataDir:/var/lib/orchestrator backend:<nil>}
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 INFO Starting HTTPS listener
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 INFO Read in CA file: /usr/local/share/ca-certificates/corp-ca.crt
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 WARNING Didn't parse all of /etc/orchestrator/orchestrator.crt
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 INFO raft: store initialized at /var/lib/orchestrator/raft_store.db
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 DEBUG Queue.startMonitoring(DEFAULT)
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 ERROR ForgetInstance(): instance e1u08vm021:3306 not found
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 DEBUG raft snapshot restore: discarded 1 keys
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 DEBUG raft snapshot restore: discovered 1 keys
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 DEBUG raft snapshot restore applied
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021/04/09 22:13:47 [INFO] raft: Restored from snapshot 31-1674-1618006052237
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 INFO new raft created
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 INFO Read in CA file: /usr/local/share/ca-certificates/corp-ca.crt
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:47 INFO continuous discovery: starting
Apr 09 22:13:47 e1u08vm020 orchestrator[1274]: 2021/04/09 22:13:47 [INFO] raft: Node at <IP_ADDRESS>:10008 [Follower] entering Follower state (Leader: "")
Apr 09 22:13:48 e1u08vm020 orchestrator[1274]: 2021/04/09 22:13:48 [DEBUG] raft-net: <IP_ADDRESS>:10008 accepted connection from: <IP_ADDRESS>:52868
Apr 09 22:13:48 e1u08vm020 orchestrator[1274]: 2021-04-09 22:13:48 DEBUG outdated agents hosts: []
...skipping...
Apr 14 18:04:33 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:33 DEBUG outdated agents hosts: []
Apr 14 18:04:34 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:34 DEBUG outdated agents hosts: []
Apr 14 18:04:34 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:34 DEBUG raft leader is <IP_ADDRESS>:10008 (this host); state: Leader
Apr 14 18:04:35 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:35 DEBUG outdated agents hosts: []
Apr 14 18:04:35 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:35 ERROR ReadTopologyInstance(e1u08vm021.dc1.corp.example.com:3306) show slave hosts: ReadTopologyIn>
Apr 14 18:04:36 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:36 DEBUG outdated agents hosts: []
Apr 14 18:04:39 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:39 DEBUG raft leader is <IP_ADDRESS>:10008 (this host); state: Leader
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:41 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:42 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:43 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:44 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:44 DEBUG raft leader is <IP_ADDRESS>:10008 (this host); state: Leader
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:45 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:46 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:47 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:48 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:49 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:49 DEBUG raft leader is <IP_ADDRESS>:10008 (this host); state: Leader
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:50 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:51 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:52 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:53 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:54 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:54 DEBUG raft leader is <IP_ADDRESS>:10008 (this host); state: Leader
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:55 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:56 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:57 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:58 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:59 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:04:59 DEBUG raft leader is <IP_ADDRESS>:10008 (this host); state: Leader
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:05:00 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:05:01 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:05:02 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:05:03 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:05:04 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:05:04 DEBUG raft leader is <IP_ADDRESS>:10008 (this host); state: Leader
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:05:05 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:05:06 ERROR Health test is failing for over 5 seconds. raft yielding
Apr 14 18:05:24 e1u08vm020 orchestrator[15012]: 2021-04-14 18:05:06 FATAL Node is unable to register health. Please check database connnectivity and/or time synchronisation.
Apr 14 18:05:40 e1u08vm020 systemd[1]: orchestrator.service: Main process exited, code=exited, status=1/FAILURE
Apr 14 18:05:40 e1u08vm020 systemd[1]: orchestrator.service: Failed with result 'exit-code'.

Raft is not failing, self-health-test is failing. As result, the node steps down from being the raft Leader.
The self health test is for orchestrator to write an entry in the backend database, SQLite in your case. I do not know what prevents it from doing so, but that's the lead you should follow.

@shlomi-noach Thank you for the reply. I feel like the output could be more explicit to make it clear what the issue is. And the blank string in raft: Heartbeat timeout from "" reached, but leadership suspended. doesn't help either. Anyway, your reply did give me a good lead. I've set the systemd service to restart on failure while I investigate this issue on my end, which seems to be a working stop-gap for the moment.

The specific message raft: Heartbeat timeout from "" reached, but leadership suspended comes from the underlying hashicorp/raft library. But I see what you mean, messages could be improved.


[REQUEST] Switch from integrated -> nvidia instead of integrated -> hybrid -> nvidia

Is your feature request related to a problem? Please describe.

Linux Mint's GPU switcher allows for switching from integrated to nvidia with a logout
Pop!OS GPU switcher allows for switching from integrated to nvidia with a reboot

With envycontrol, it is only possible to switch to nvidia while in hybrid.
Attempting to switch from integrated results in:
$ sudo envycontrol -s nvidia
Switching to nvidia mode
Enable ForceCompositionPipeline: False
Enable Coolbits: False
Successfully enabled nvidia-persistenced.service
ERROR: Could not find Nvidia GPU
Try switching to hybrid mode first!

Describe the solution you'd like
Being able to switch from integrated -> nvidia and back without switching to hybrid, rebooting, then switching to nvidia.
Describe alternatives you've considered
It's not a deal breaker so I can live with it if there is a technical blocker preventing this feature.

Duplicate of #79


bug: DaisyUI 5 doesn't override @tailwindcss/typography style of  element, leading to unreadable text.

What version of daisyUI are you using?
5.0.0-alpha.22
Which browsers are you seeing the problem on?
All browsers
Reproduction URL
https://play.tailwindcss.com/FqTUMQGoCx
Describe your issue
DaisyUI 5: https://play.tailwindcss.com/FqTUMQGoCx

DaisyUI 4: https://play.tailwindcss.com/qWVj5jI7uw

The text is now readable, but unlike DaisyUI 4, DaisyUI 5 doesn't override @tailwindcss/typography backticks (`this`) styles with DaisyUI's own style.


Communication between interface

Hi everyone,
I am trying to bring communication between second interface (eth1) of the pod using multus. But ping is not happening. I am new to kubernetes and multus. Need ur support in this..
My test.yaml file is:
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
name: eth1
spec:
config: '{
"type": "bridge",
"interface": "eth1",
"master": "eth0",
"ipam": {
"type": "host-local",
"subnet": "<IP_ADDRESS>/24",
"rangeStart": "<IP_ADDRESS>",
"rangeEnd": "<IP_ADDRESS>",
"routes": [
{ "dst": "<IP_ADDRESS>/0" },
{ "dst": "<IP_ADDRESS>/24", "gw": "<IP_ADDRESS>" }
],
"gateway": "<IP_ADDRESS>"
}
}'
apiVersion: v1
kind: Pod
metadata:
name: csr
annotations:
k8s.v1.cni.cncf.io/networks: '[
{ "name" : "eth1",
"interface": "eth1" }
]'
spec:
containers:

name: csr
image: csr_kgeneric:v0.16
command: ["python", "/root/Main.py" ,"trap : TERM INT; sleep infinity & wait"]

imagePullPolicy: Always

apiVersion: v1
kind: Pod
metadata:
name: ut
annotations:
k8s.v1.cni.cncf.io/networks: '[
{ "name" : "eth1",
"interface": "eth1" }
]'
spec:
containers:

name: ut
image: ut:v0.1
command: ["/root/loop.sh", "-d" ,"trap : TERM INT; sleep infinity & wait"]

imagePullPolicy: Always
Kindly let me know what mistake I m making. Why second interface is not pingable from other pod

@s1061123 : Any inputs/suggestions?

Your network attachment definition, eth1 is too big and it seems to be wrong config.
Could you please take a look into the following page (bridge cni README) and check the configuration parameters?
https://github.com/containernetworking/plugins/tree/master/plugins/main/bridge
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
name: eth1
spec:
config: '{
"type": "bridge",
"interface": "eth1",
"master": "eth0",
"ipam": {
"type": "host-local",
"subnet": "<IP_ADDRESS>/24",
"rangeStart": "<IP_ADDRESS>",
"rangeEnd": "<IP_ADDRESS>",
"routes": [
{ "dst": "<IP_ADDRESS>/0" },
{ "dst": "<IP_ADDRESS>/24", "gw": "<IP_ADDRESS>" }
],
"gateway": "<IP_ADDRESS>"
}
}'

From multus point of view, default route cannot be changed by ipam/routes. So as a first step, I recommend to make more simple config (e.g. macvlan/static ip/no route change) and try to add gradually.


Multiple wrapper parameters only renders last

Hi,
I have a problem with this WSDL http://dev.ugglapraktiken.se/api/flexpay/?wsdl.
The placeOrder-method multiple parameters and two of them are of the wrapper type. The problem is that inly the last wrapper type is rendered as a complex type in the WSDL. The function definition and markdown looks like this:
/**
     * Place an order
     *
     * @param string $apiUser
     * @param string $apiKey
     * @param wrapper $user @className=Customer
     * @param wrapper $purchase @className=Purchase
     * @return wrapper $purchaseResult @className=PurchaseResult
     */
    public function placeOrder($apiuser = null, $apikey = null, $user = null, $purchase = null) {
// Some code
    }

If I change the order of the wrapped parameters, the Customer-object is rendered instead.
The sever-code looks like this:
use WSDL\DocumentLiteralWrapper;
use WSDL\WSDLCreator;
use WSDL\XML\Styles\DocumentLiteralWrapped;

$wsdl = new WSDLCreator("FlexpayUggla", __URL__ . "/api/flexpay");
$wsdl->setBindingStyle(new DocumentLiteralWrapped());
$wsdl->setNamespace(__URL__);

if (isset($_GET["wsdl"])) {
    $wsdl->renderWSDL();
    exit;
}

//$wsdl->renderWSDLService();

$server = new SoapServer(__URL__ . "/api/flexpay?wsdl", array(
    "uri" => $wsdl->getNamespaceWithSanitizedClass(),
    "location" => $wsdl->getLocation(),
    "style" => SOAP_DOCUMENT,
    "use" => SOAP_LITERAL
));

$server->setClass(new DocumentLiteralWrapped(new FlexpayUggla()));
$server->handle();

Thank you in advance!

I see generated @className=Purchase but I don't see generated @className=Customer. It's in correct namespace?

I have no namespaces defined. The funny thing is that when i switch places of $user and $purchase, the other wrapper gets generated instead.

Really wired thing. Hard to say without classes. Could you provide all classes?

Here are the wrapper classes. They are defined after FlexpayUggla.
class Customer {
    /**
     * @type string
     */
    public $firstName;

    /**
     * @type string
     */
    public $lastName;

    /**
     * @type string
     */
    public $email;

    /**
     * @type string
     */
    public $phoneNumber;

    /**
     * @type string
     */
    public $identityNumber;

    /**
     * @type string
     */
    public $site;

    /**
     * @type string
     */
    public $ugglaId;
}

class Purchase {
    /**
     * @type string
     */
    public $bookingReference;

    /**
     * @type string
     */
    public $orderNumber;

    /**
     * @type int
     */
    public $quantity;
}

class PurchaseResult {
    /**
     * @type string
     */
    public $couponsMissing = 0;

    /**
     * @type string
     */
    public $couponsAvailable = 0;

    /**
     * @type string
     */
    public $bookingsPerformed = 0;

}

It's looks like a problem with the DocumentLiteralWrapped binding style. In the comming days I'll try to investigate and fix problem, of coure PR's are welcome.

Any news on this?

I have same problem with multiple wrappers.

Finally I fixed this bug, try to check out is OK, then I'll create release.

These changes correct the problem with multiple wrappers, for me.
Thank you Piotr.

Ok, thanks.


Add python3-dataclasses-json in rosdep/python.yaml

Please add the following dependency to the rosdep database.
Package name:
python3-dataclasses-json
Package Upstream Source:
https://github.com/lidatong/dataclasses-json
Purpose of using this:
This dependency is used for handling json conversion of dataclasses in python nodes.
Links to Distribution Packages
PyPI: https://pypi.org/project/dataclasses-json/

@clalancette

should I use pip in opensuse 15.2 and ubuntu focal ?

You can either do that, or set them to 'null' (as in https://github.com/ros/rosdistro/blob/e5aa984492c21934bce3c815a7faed33e16b7ed3/rosdep/python.yaml#L5900-L5910, for example).  Either will work.


C# CdmCorpusDefinition.SetEventCallback Should be an Event

As per .NET conventions and the Framework Design Guidelines, CdmCorpusDefinition.SetEventCallback should be exposed as an event rather than a callback object.
Any filtering on CdmStatusLevel can be done by the event handlers. (Plural because there may be multiple listeners to this event.)

Hi @Grauenwolf,
SetEventCallback was created as a callback to be consistent with the other languages that the SDK is implemented in. This change would be a breaking change and is not something that we are planning on taking on.

Doing it the right way is not a breaking change. You can add a real event and leave the improperly designed SetEventCallback as a obsolete method.
Trying to be "consistent" across completely different platforms just leads to a poor developer experience on all of them. The SDK should be consistent with each language/platform's conventions and design patterns.

Thanks for the feedback and suggestions, @Grauenwolf! But, there are specific requirements that we need to follow internally and hence will not be able to take this request into consideration.


Crashes when signing

Crashes when I click ok on my Ledger Nano S
Stays in 'signature' windows and can't cancel it
'Error report' window remains behind 'signature' window

It was exactly that. Thanks!


Appmap file watchers respect appmap_dir

Fixes #740

No offense, but this doesn’t actually fix any real work problem.


support "unknown" endRow and endColumn variables

From https://github.com/AntoineKMS (extracted from issue #1 )
I am not sure If I should post it here, but I have another very small issue with this library. It's about the endRow, endColumn variables.
Would it be possible to have a default value that would just take as many rows and columns as there are in the sheet ?
It is very good to be able to tweak those parameters for when we only want certains parts of the sheet, but I think it would be good to have an option/ a default parameter to just take the whole sheet.
Thank you.

I'll look at it. I think this is reasonably well supported in Apache POI for Excel but there is nothing like this for SODS (Libre/Open Office) so I'll have to do some manual probing for that which might be slow. Maybe a magical constant e.g. setting the endRow and endColumn to -1 or similar would be a decent way to support this.


TailwindCSS 2.x

Any chance this will be updated to support the newer versions of TailwindCSS? The peerDependency row in package.json is causing issues.

TailwindCSS 3.x is just around the corner and we still don't even have 2.x support in this package. Has it been abandoned?

No longer able to be installed the following Errors will tell why
npm i tailwindcss-plugins -D
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/tailwindcss
npm ERR!   dev<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/tailwindcss-plugins
npm ERR!   dev tailwindcss-plugins@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\rhoyl\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR!      C:\Users\rhoyl\AppData\Local\npm-cache_logs\2022-01-28T18_36_10_062Z-debug-0.log

Please update ASAP would like this better than the default;
and if posable make it where it can be used in Laravel 9x with php 8.1 or above.
Thanks for your time an effort.


Default value can be set only once

Hello,
Great component that separate UI and logic :)
But I'm experience issue with the defaultValue attribute : it can be set only once. After the first initialisation the preview does not change, so I force the component to recreate by setting key={defaultValue} which is bad for performance concern.
Is there a proper workaround or is this a bug ?
Regards

Hi @toto22450, the only one purpose of defaultValue is it is value for initial at first mounting, so it's not a bug.
Why do you need your defaultValue change? I think you should make defaultValue available before the component is rendered.

Hi @vutoan266, thanks for the answer

Why do you need your defaultValue change?

I have a single form that can be filled by different data object after rendering.

Why do you need your defaultValue change? I think you should make defaultValue available before the component is rendered.

That's true for the first object loading but not for the following ones

It would be great to rather have a prop "value" to change the image from the outside.

Early day I code this, my expectation is one-way data: the component is not receive "value" props, but the component will have its state to manage data, and export outside by onChange function. I do it be cause I want my component handle all logic add/update/delete images, if receiving value it is so hard to do this, and facing performance issue in each rendering.

Hi @vutoan266, thanks for the answer

Why do you need your defaultValue change?

I have a single form that can be filled by different data object after rendering.

Why do you need your defaultValue change? I think you should make defaultValue available before the component is rendered.

That's true for the first object loading but not for the following ones

I get your problem. In my case when I using this component, I will unmount form after finish editing session so it not happen your issue. Maybe this component is not good for your case.
Let me know if you have any ideas.

Ok thanks for your feedback, I will keep the workaround that I implemented !


[MINOR] Extend reusable instructions and bug fixes

This patch

extends reusable opcodes, which primarily improves multilevel (statementblock) cache hits,
removes most of the System.nanoTime calls from cache logic,
replaces operand names with placeholders in datagen lineage items,
(Note: this fix is temporarily commented due to a bug in parfor-lineage)
fixes a bug in lineage item creation for multilevel caching,
update grid search lineage test with a loss function.

This is a temporary PR -- opened to verify if tests are passing.


Changing the opacity of a G-element

Greetings, I have a small problem related to updating the opacity-attribute of a G-element. However, this is not done via regular elements. Instead, I'm using the react-native-svg-transformer to show my SVG.
Using:
"react": "16.8.3",
"react-native": "0.59.1"
"react-native-svg": "9.3.5"
"react-native-svg-transformer": "^0.12.1"
import Logo from './queue.svg';

....

render() {
    return(
    ...
    <Logo width="100%" height="100%">
    );
}

I'm not able to reveal what's inside the SVG-file due to NDA, however, I can give an example that looks like this:
<svg>
    <g id="overview">
        <g id="pos0">
          ...
        </g>
    </g>
</svg>

The question is: How do I change the opacity of the G-element with the id="pos0" in this example?
Thanks in advance.

Convert it to a react component using https://svgr.now.sh and set the value using the props.


backslash in side brackets of format string causes an issue.

On line 237 of serializer.py there is a blackslash inside the {} which is a problem on my python3.11.6 as shipped with Ubuntu 23.10.
Traceback (most recent call last):
  File "/home/jbollema/git/sparql-examples/formatQuery.py", line 2, in <module>
    from sparql.parser import sparql_parser
  File "/home/jbollema/git/sparql-examples/venv/lib/python3.11/site-packages/sparql/__init__.py", line 5, in <module>
    from sparql.serializer import SparqlSerializer
  File "/home/jbollema/git/sparql-examples/venv/lib/python3.11/site-packages/sparql/serializer.py", line 237
    self._result += f"\n{'\t' * self._indent}}}"
                                             ^

Hi @JervenBolleman, thanks for your issue.
Do you mind providing an example query containing a backslash that is causing the issue?
I tried with the following query and it worked fine for me. It contains a backslash inside the curly braces of the QuadsNotTriples production.
WITH <g>
INSERT {
    GRAPH <g> {
        <s> <p> "f\" .
    }
}
WHERE {}

The output is not perfect with the indentations, but I get without any errors:
WITH <g> INSERT {
GRAPH <g> {
		<s> <p> "f\" .
	}
}WHERE {

}

Hi @JervenBolleman, I just tested and it looks like there's an issue in Python 3.11. Using this package on Python 3.12 works fine.
We don't have any immediate plans to allow for support with 3.11. If you can pinpoint what the exact issue is, we'll be happy to fix it.

Hi @edmondchuc the logic in line 237 of serializer.py
elif child.value == "}":
     self._result += f"\n{'\t' * self._indent}}}"

should maybe be something like
elif child.value == "}":
     tabs= '\t' * self._indent
     self._result += "\n"
     self._result += tabs