change types undocumented, and can be simplified?

Hey, right now it looks like the EditorChangeType logic is undocumented, except for a mention of it in the EditorState.push doc.
I was also wondering while looking through it, might it be easier to instead create Change (or Modification) objects that have an associated type, and apply them directly with .push, as in:
const change = Modifier.setBlockType(content, range, 'my-block')
const newState = EditorState.applyChange(editorState, change)

Instead of the current API of:
const newContent = Modifier.setBlockType(content, range, 'my-block')
const newState = EditorState.push(editorState, newContent, 'change-block-type')

The downsides to the current one as I see them are:

The changeType doesn't have to be hardcoded in both operations.
The static .push method takes an instance, so why not make it an instance method.
push doesn't sound quite right. (I saw that the name was pending change in the doc.)

If the change was serialized, this seems useful for https://github.com/facebook/draft-js/issues/93 as well.
Edit: actually thinking about it more, I'm assuming that .push is static since it returns a new EditorState, and making it an instance might be confusing. Edited to reflect that.

Using it more, the current API feels very convoluted to work with, having to remember that Modifier takes a ContentState, while push takes an EditorState. (If transforms were to be applied to SelectionState as well later on, only taking ContentState would be a problem.)
Taking the concept further, it wouldn't be far off to be able to expose convenience methods for creating and applying transforms directly on EditorState to get things to a saner lever of terseness:
const newState = EditorState.transform.setBlockType(editorState, selection, 'my-block')

Thanks for opening this. I always enjoy a good API discussion. :)
The goal of the Modifier methods is to provide ContentState objects that the caller can then perform further operations on. This is independent of any modifications to the EditorState -- the end goal of a Modifier method output value is not always to push.
If a different type of object (i.e. Change) were returned instead, then this would not be possible unless the Change object contained the full ContentState. The caller could then extract it back out of the Change object in order to operate on it, I suppose, but I'm not sure that the benefit of encapsulating the EditorChangeType is worth the overhaul.

The changeType doesn't have to be hardcoded in both operations.

This value should only be used for EditorState.push -- where else do you see it?
I freely admit the documentation on EditorChangeType should be improved. :) There is a documentation issue open on it, and I need to get to it.

push doesn't sound quite right. (I saw that the name was pending change in the doc.)

Yeah, I had been thinking EditorState.pushContent or something similar, since push doesn't really mean anything on its own.

const transform = Transform.setBlockType(editorState, selection, 'my-block')
const newState = EditorState.applyTransform(editorState, transform)

Again, the goal of a Modifier method is not to provide any sort of changes to EditorState, but to provide a new ContentState based on a different ContentState, a SelectionState, and some parameters.
Could this be clarified by renaming some of the modules, perhaps? The name "Modifier" does not necessarily imply the above, so perhaps that is a point of confusion.

The goal of the Modifier methods is to provide ContentState objects that the caller can then perform further operations on. This is independent of any modifications to the EditorState -- the end goal of a Modifier method output value is not always to push.

Ah interesting, that makes sense. I think framing it in terms of transactions that can be applied to the editor is still useful (and required for implementing any sort of collaboration). In the Modifier case, it's already fairly close. Instead, "transforms" could be applied to either EditorState, ContentState or SelectionState. Something like:
const transform = new ContentTransform(range, options)
const newContentState = contentState.applyTransform(transform)

This would be the equivalent of the concept of Modifier as it currently stands (correct me if I'm wrong, might still be misunderstanding!). The same could be done with the selection:
const transform = new SelectionTransform(...)
const newSelectionState = selectionState.applyTransform(transform)

And at the top-level, the EditorState could know how to apply each type of transform, such that it figures them out and applies them to the proper child data object.
const contentTransform = new ContentTransform(...)
const selectionTransform = new SelectionTransform(...)
state = state.applyTransform(contentTransform)
state = state.applyTransform(selectionTransform)

So you could be lower level and mutate contentState multiple times in isolation, or stay higher level and just pass in top-level transforms into the editorState like you would when receiving collaborative changes from the server?

It seems like this discussion has converged, so I'm going to close the issue. Thanks for bringing this issue up!


Investigate on deployment of devfile registry in cluster

In order for a devfile registry to make available for tools to consume or use, the devfile registry needs to run inside a cluster. This item is to investigate to see how we can deploy the registry to a given cluster.
This item is part of Epic #82

[ ] Design doc for how the registry should be deployed on clusters
[ ] Implementation of the design doc
[ ] Consumption of the devfile packaging as described in https://github.com/devfile/api/issues/163

Moving to in progress...
I've updated this issue's description to include the required tasks for this item.

I've put up the design proposal for the Devfile Registry operator and custom resource in https://github.com/devfile/api/pull/210
I've also created a proof of concept devfile registry operator in https://github.com/johnmcollier/registry-operator

Design proposal was merged last week. It can now be found here: https://github.com/devfile/api/blob/master/docs/proposals/registry/registry-operator.md
I've put up a PR in the new registry-operator repo to merge in the Devfile Registry operator functionality: https://github.com/devfile/registry-operator/pull/2

Proxy server PR in https://github.com/devfile/registry-support/pull/11


copy&paste not working

In IntelliJ I can have multiple selections, copy them, e.g. move the cursors 3 lines down and then paste the different lines. Vim currently just pastes the last line that was selected X times.

I know don't know VimL and have yet to dig into this codebase at all, but as far as I can tell this is the best bet for tracking down the visual selections: http://stackoverflow.com/a/6271254/530060

This would be amazing to have indeed. By the way, this behaviour makes people impressed (in a good way, I recon): https://github.com/neovim/neovim/issues/211#issuecomment-36887312


docs: update the description of the lint command

Update the description of the lint command for when a project name is not provided.
Use diction equivalent to the description of the test command.

Notes

Closes #21619

Thanks for your contribution


REQ-MCT-002 - User management and roles

The MCT shall manage a list of users and their associated data, including roles, as defined by the application administrator

@Umang-Rajkarnikar please add updates to this issue, and break it down more if needed


[Merge] MONDO:0003436 lung oat cell carcinoma

Mondo term (ID and Label)
MONDO:0003436 lung oat cell carcinoma
Reason for deprecation
lung oat cell carcinoma is a syn for MONDO_0008433 'small cell lung carcinoma'
Term to be merged with
MONDO_0008433 'small cell lung carcinoma'

Hi!  We already have "small cell lung carcinoma" (preferred term by the NCI) and kept lung oat cell carcinoma. Thanks!


sanitycheck: Over-zealous checking for binary sections

Steps to reproduce:
./scripts/sanitycheck --no-clean --enable-slow --inline-logs -j2  -s tests/bluetooth/shell/bluetooth.shell -p qemu_cortex_m3

Output:
Building testcase defconfigs...
Filtering test cases...
1 tests selected, 121412 tests discarded due to filters
total complete:    1/   1  100%  failed:    0
FAILED: qemu_cortex_m3/tests/bluetooth/shell/bluetooth.shell has unrecognized binary sections: ['_settings_handlers_area']
0 of 1 tests passed with 0 warnings in 20 seconds

Tested with master 74dbd835c36a4e3cb.
This issue seems to affect only qemu_cortex_m3. Initially spotted via Linaro CI: https://ci.linaro.org/view/lite-iot-ci/job/zephyr-upstream/4070/PLATFORM=qemu_cortex_m3,ZEPHYR_TOOLCHAIN_VARIANT=zephyr,label=docker-xenial-amd64-13/console . The issue started within last 2 weeks (our CI was broken due to SDK 0.10.1 during this window, so it's hard to specify more exact date).

@galak: FYI

Setting priority as high, as this breaks (full) CI.

CC @Laczen , @jhedberg @Vudentz @nvlsianpu

@pfalcon, @aescolar, this was reported before by @andrewboie.
The problem is the "_bt_settings_area" has been replaced by "_settings_handlers_area". As I am not a user of sanitycheck (it just takes to long on my development computer) I have not been able to test if the following correction is OK:
In line 911 of scripts/sanitycheck to replace "_bt_settings_area" to "_settings_handlers_area".


{upkeepNeeded} = undefined after preforming checkUpKeep static call

Hope you are well

The const { upkeepNeeded } = await raffleContract.callStatic.checkUpkeep("0x") s resulting in an undefined upkeepNeeded const no matter what I do.

At this point, I have copy/pasted both the checkUpkeep and the test function but my const returned or upkeepNeeded is still undefined...

Bearing in mind other tests that interact with the contract as working fine, it's only when I try to call the checkupKeep function (for now)

Any suggestions on what I am doing? Thank you in advance

// UpKeep function on my Contract
    function checkUpkeep(
        bytes memory /* checkData */
    ) public view override returns (bool upkeepNeeded, bytes memory /* performData */) {
        bool isOpen = RaffleState.OPEN == s_raffleState;
        bool timePassed = ((block.timestamp - s_lastTimeStamp) > i_interval);
        bool hasPlayers = s_players.length > 0;
        bool hasBalance = address(this).balance > 0;
        upkeepNeeded = (timePassed && isOpen && hasBalance && hasPlayers);
        return (upkeepNeeded, "0x0"); // can we comment this out?

// Test for upkeep function
          describe("checkupkeep tests", async () => {
              it("returns false if enough time hasn't passed", async () => {
                  await raffleContract.enterRaffle({ value: raffleEntranceFee })
                  await network.provider.send("evm_increaseTime", [interval.toNumber() - 5]) // use a higher number here if this test fails
                  await network.provider.request({ method: "evm_mine", params: [] })
                  const { upkeepNeeded } = await raffleContract.callStatic.checkUpkeep("0x") // upkeepNeeded = (timePassed && isOpen && hasBalance && hasPlayers)
                  assert.equal(upkeepNeeded == false)
              })
          })
    }

Hmmm perhaps your contract isn't being deployed correctly. Could you clone this repo and see if you're still getting the error?

Hi Patrick,
It's strange because the {upkeepNeeded} is set to true when the checkUpkeep tests all pass. If they fail though rather than setting upkeepNeeded = false, it's undefined. When i realised i could pass the tests by using !upkeepNeeded I ended up moving on with the course. Thank you for responding Patrick


Deployment to AWS using AWS Copilot

AWS deployment using Copilot

AI Description

This PR introduces a new script that deploys Cohere's Toolkit to AWS using AWS Copilot. The script creates a new application, environment, and services in AWS Copilot, leveraging containerised DB services for the database. Users can adjust the deployment to use RDS if needed, following the AWS Copilot documentation.
The PR also includes Dockerfiles for various services, such as aws-api.Dockerfile, aws-db.Dockerfile, aws-fe.Dockerfile, aws-nginx.Dockerfile, and aws-terrarium.Dockerfile. These Dockerfiles define the base images, environment variables, and build instructions for each service.
Additionally, the PR adds manifest files for each service, specifying configuration details like the Docker build arguments, exposed ports, CPU and memory allocations, and environment variables.
The following changes are made:

A new script is added to deploy Cohere's Toolkit to AWS using AWS Copilot.
Dockerfiles are introduced for various services, including aws-api.Dockerfile, aws-db.Dockerfile, aws-fe.Dockerfile, aws-nginx.Dockerfile, and aws-terrarium.Dockerfile.
Manifest files are added for each service, providing configuration details.
The src/backend/alembic/env.py and src/backend/database_models/database.py files are updated to handle database connections when deployed to AWS ECS.

Codecov Report
Attention: Patch coverage is 83.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 79.92%. Comparing base (f90aae1) to head (0ebbe99).

Files with missing lines
Patch %
Lines

src/backend/alembic/env.py
85.71%
1 Missing :warning:

src/backend/database_models/database.py
80.00%
1 Missing :warning:

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #811   +/-   ##
=======================================
  Coverage   79.92%   79.92%
=======================================
  Files         242      242
  Lines       10305    10316   +11
=======================================
+ Hits         8236     8245    +9
- Misses       2069     2071    +2

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


A ping healthcheck for megamd

just brewing up. should be closed by tomorrow.
removed constant DOCKER, instead user "PROVIDER_DOCKER"
-added an url /ping which will display the status of megamd, megamgw, nilavu, and leveldb setting.

@megamsys/megam-dev  The hooks are updated so please refresh them.


yrncollo

What changes does this PR do?
Added my username

I have made a new pull request after making changes


support TDengine as a stand-alone database in driver list

Is your feature request related to a problem? Please describe.
TDengine is a new emerging time-series database. It already gathers a number of users around the world. TDengine supports SQL standards and generic JDBC drivers to access. DBeaver can be configured with a generic driver to access TDengine and works very well.
But the user still needs to configure the driver strings now. I would rise a request to beg the DBeaver team consider to adding TDengine as a stand-alone database with some default configuration strings to facilitate any user who wants to use DBeaver/TDengine simpler and more convenient.
Describe the solution you'd like
To list TDengine in a predefined time-series database list with pre-configured connection strings. Note TDengine supports both native and REST connections. The native connection uses a 6030 port and requires the user to install the client library. The REST connection uses a 6041 port and does not need the user to install the library. I would suggest DBeaver supports both of them. One can be TDengine and another one can be TDengine-REST.
Describe alternatives you've considered
Still, use a generic JDBC driver but not good for the user.
Additional context
TDengine can be installed by the command 'docker run -d -p 6030:6030 -p 6041:6041 tdengine/tdengine:latest'.
I am the contact person of the TDengine team. I will do my best to assist if needed.
Thanks,

Thank you for the idea.


[COLLAGE][ADRENO] Enable adreno texture and benchmark

Enable adreno texture in collage
Integrate implicit call of BYOC preprocessing module into collage tunning module
Enable benchmark script for adreno targets.

Benchmark results:
Networks | OpenCL texture | OpenCLML | Collage
resnet-50-float32 | 0.019188419 | 0.02085548 | 0.018910226
resnet-50-float16 | 0.01338978 | 0.01199576 | 0.011089206
densenet-121-float32 | 0.025430062 | 0.01798478 | 0.013212844
densenet-121-float16 | 0.012384599 | 0.01101491 | 0.008722716
mobilenet-float32 | 0.004093148 | 0.00367917 | 0.003189258
mobilenet-float16 | 0.00280268 | 0.00244494 | 0.002101514

@echuraev Can you please take a look and let me know your feedback.
@srkreddy1238


Rename WorldQueryData & WorldQueryFilter to QueryData & QueryFilter

Rename WorldQueryData & WorldQueryFilter to QueryData & QueryFilter
Fixes #10776
Solution
Traits WorldQueryData & WorldQueryFilter were renamed to QueryData and QueryFilter, respectively.

Changelog

Trait WorldQueryData has been renamed to QueryData. Derive macro's QueryData attribute world_query_data has been renamed to query_data.
Trait WorldQueryFilter has been renamed to QueryFilter. Derive macro's QueryFilter attribute world_query_filter has been renamed to query_filter.

Migration Guide
Note: if merged before 0.13 is released, this should instead modify the migration guide of #10776 with the updated names.
Rename WorldQueryData & WorldQueryFilter trait usages to QueryData & QueryFilter, respectively.
before:
#[derive(WorldQueryData)]
#[world_query_data(derive(Debug))]
struct EmptyQuery {
    empty: (),
}

#[derive(WorldQueryFilter)]
struct CustomQueryFilter<T: Component, P: Component> {
    _c: With<ComponentC>,
    _d: With<ComponentD>,
    _or: Or<(Added<ComponentC>, Changed<ComponentD>, Without<ComponentZ>)>,
    _generic_tuple: (With<T>, With<P>),
}

after:
#[derive(QueryData)]
#[query_data(derive(Debug))]
struct EmptyQuery {
    empty: (),
}

#[derive(QueryFilter)]
struct CustomQueryFilter<T: Component, P: Component> {
    _c: With<ComponentC>,
    _d: With<ComponentD>,
    _or: Or<(Added<ComponentC>, Changed<ComponentD>, Without<ComponentZ>)>,
    _generic_tuple: (With<T>, With<P>),
}

@ItsDoot @james-j-obrien review please :D

@taizu-jin great PR description <3 Thanks for tackling this.

So the "fix" https://github.com/bevyengine/bevy/pull/10779/commits/25b9d7d6aefa4a4d58d24ac6736c8d53a58904ef for missing_deref test was actually an opposite. Is there a reason why my test run had a different output there and I could fix that instead or I should've just ignored it because I didn't touch that part of the code?


Fix gdal drivers and options

Because of the COG/GeoTIFF mess in default drivers, options were not working properly. This PR cleans up and standardises drivers and options.
@kongdd check out this branch if you want to try it. I still need to write tests and I'm not sure it works in all cases, for GeoTiff it only seems to be using the BLOCKYSIZE. You can specify diver="COG" and it will use the "BLOCKSIZE" for both.
Closes #527

Codecov Report

Merging #528 (20a9659) into main (a0f6184) will increase coverage by 0.71%.
Report is 1 commits behind head on main.
The diff coverage is 92.30%.

:exclamation: Current head 20a9659 differs from pull request most recent head 84810c7. Consider uploading reports for the commit 84810c7 to get more accurate results

@@            Coverage Diff             @@
##             main     #528      +/-   ##
==========================================
+ Coverage   80.26%   80.98%   +0.71%
==========================================
  Files          49       50       +1
  Lines        4165     4406     +241
==========================================
+ Hits         3343     3568     +225
- Misses        822      838      +16

Files
Coverage Δ

ext/RastersArchGDALExt/gdal_source.jl
88.02% <92.30%> (-1.55%)
:arrow_down:

... and 11 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

"for GeoTiff it only seems to be using the BLOCKYSIZE"

Confirmed. BLOCKXSIZE indeed not work.
Do you u think whether it is a issue of GDAL.jl?
using ArchGDAL
const AG = ArchGDAL
using GDAL_jll

function gdal_info(f)
  run(`$(gdalinfo_path()) $f`)
  nothing
end

function write_tiff(f; shortname="GTiff", options=String[])
  w, h, b = 2000, 4000, 1
  dtype = Int32

  ArchGDAL.create(f; driver=ArchGDAL.getdriver(shortname), width=w, height=h, nbands=b, dtype, options) do dataset
  end
end

# BLOCKXSIZE: not work
blocksize=256
options = ["BLOCKXSIZE=$blocksize", "BLOCKYSIZE=$blocksize", "COMPRESS=DEFLATE"] # , "TILED=YES"

@show options
AG.validate(ArchGDAL.getdriver(shortname), options)

f = "a-02.tif"
write_tiff(f; options)
gdal_info(f)

options = ["BLOCKXSIZE=256", "BLOCKYSIZE=256", "COMPRESS=DEFLATE"]

Driver: GTiff/GeoTIFF
Files: a-02.tif
Size is 2000, 4000
Image Structure Metadata:
  COMPRESSION=DEFLATE
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0, 4000.0)
Upper Right ( 2000.0,    0.0)
Lower Right ( 2000.0, 4000.0)
Center      ( 1000.0, 2000.0)
Band 1 Block=2000x256 Type=Int32, ColorInterp=Gray

Yeah, it seems to not be on the Julia side at all:
https://gis.stackexchange.com/questions/255099/how-can-i-force-the-blocksize-when-using-gdal-rasterize
Seems you also need "TILED=YES" or it just does stipes the size of BLOCKYSIZE.
Gdal is just weird. It should know you mean its tiled if you pass BLOCKXSIZE.

Thank you.


[Gally]: master <- dev

Automatically created by Git-Ally

:tada: This PR is included in version 2.10.27 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


fix: detect chart file changes

Description
This pull request changes the following:

If any files under chart directory changed, should trigger helm test

Related Issues

Closes #866

:tada: This PR is included in version 0.27.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Fix some spelling and grammar issues

I fixed a handful of spelling and grammar issues in the README.
spelling and grammar issues in the README.

CLA is valid!

Thank you for submitting this pull request, however I do not see a valid CLA on file for you. Before we can merge this request please visit https://yahoocla.herokuapp.com/ and agree to the terms. Thanks! :smile:

you need sack some duck
it's very good for you and author with you


Revert "[ASCII-1628] Make the api component a go module (#26315)"

What does this PR do?

Reverts #26315 and #26680.
Motivation

#26315 broke the new-e2e-installer tests on several OSes (timeout while trying to stop the trace-agent service).
#26680 was a temporary fix for the above issue, marking the affected tests as flaky.
Additional Notes

n/a
Possible Drawbacks / Trade-offs

n/a
Describe how to test/QA your changes

n/a

Note: https://github.com/DataDog/datadog-agent/pull/26315 updated go.uber.org/fx to 1.22.0, this is likely the cause of the test failures.


can't preview the pipeline

Hi,
I'm trying this docker container, so far I am able to create the pipeline but when trying to preview it I get this error:

java.lang.RuntimeException: java.io.FileNotFoundException: /etc/sdc/email-password.txt (Permission denied)

Can you help me out?
I should mention that I ran the container using the following command:

$ docker run -p 18630:18630  -u $(id -u):$(id -g) -v $PWC:/data:rw  streamsets/datacollector dc

-u $(id -u)... because this docker issue: https://github.com/docker/docker/issues/3206

Starting docker with -u means the user isn't root, therefore you don't have access to modify/create files in  /etc.

This image actually runs as user "sdc" by default.
You'll want to modify the Dockerfile and build your own image if you want to change the ownership of SDC installed files.
If you're simply looking to persist your SDC_DATA directory I'd recommend using a data-only container as outlined in the README file.


elements with invalid class names beginning with "h-" are parsed as mf with empty type

http://microformats.org/wiki/microformats-2-parsing says:

The "*" for root (and property) class names consists only of lowercase a-z and '-' characters.

when php-mf2 discovers a class beginning with h- that is not a valid name according to this specification, it still parses the element as if it were a microformat root, but does set "type": [], which I assume will crash quite a few consuming applications that expect type[0] to always exist.
I initially discovered it with this typo:

">
content

which parses as
{
    "items": [
        {
            "type": [],
            "properties": {
                "name": ["content" ],
                "url": [ "https://example.com"]
            }
        }
    ],

Other examples include class="h-👍", class="h-hentry_" or class="h-"

Good catch. Instead of filling in the type in these examples, I think it shouldn't parse anything, since they're not valid root class names. That character restriction was added to avoid parsing from mixed-case helper classes like h-SomeFormatting I was pretty sure that was working, but looks like I've introduced a regression somewhere.


Feature Request: Clicking the navbar logo navigates to home page

Describe the feature
Clicking on the website logo in the navbar should navigate the user to the home page.
Detailed Explanation:
When a user clicks on the logo in the navigation bar, they should be redirected to the home page of the website. This is a common UX pattern that improves navigation and user experience.
Benefits:
This feature will enhance user experience by providing a quick and intuitive way to return to the home page.
Add ScreenShots

As seen in the image, hovering over the main logo change the cursor to a pointer but has no functionality to bring the user to the home page on begin clicked.
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@Suchitra-Sahoo , please assign me this issue


K8s Jobs never complete with TSI

Kubernetes jobs require all the container to complete the job in order to get status Completed, however TSI sidecar runs continuously indefinitely. One solution is to run disable the sidecar, by only executing the init container PR #59 however, we should consider notifying the sidecar that container has ended, so it can exit as well.
From Kubernetes 1.18, if all normal containers have reached a terminal state (Succeeded for restartPolicy=OnFailure, or Succeeded/Failed for restartPolicy=Never), then all sidecar containers will be sent a SIGTERM.

Let's track this issue as well: https://github.com/kubernetes/kubernetes/issues/25908

A temporary fix is to use PRs #59 and #62 to populate the secret during the container init phase, and disable the sidecar execution (In Helm: ti-key-release-1.runSidecar=false). Once IKS supports 1.18, we can use the SIGTERM to notify the sidecar that container has ended.


VisualMicro could not compile

Strange, your code works with ArduinoIDE, but could not be linked with VisualMicro, giving the following errors:
`core.a(main.cpp.o)*: (.literal._Z8loopTaskPv+0x4): undefined reference to setup()
Error linking for board M5Stack-Core-ESP32
Debug build failed for project 'MAX30100'
core.a(main.cpp.o)*: (.literal._Z8loopTaskPv+0x8): undefined reference to loop()
core.a(main.cpp.o): In function loopTask(void)
main.cpp:20: undefined reference to setup()
main.cpp:23: undefined reference to loop()
collect2.exe*: error: ld returned 1 exit status`

I found the reason: names conflict does not resolving by Visual Micro.
Renaming MAX30100.ino into anything else solves the problem.


"Run selection/line in Python terminal" does not copy the code into the terminal from the start of the selection

From @dalyIsaac on August 12, 2017 0:45
Environment data
VS Code version:  1.15.0
Python Extension version:  0.7.0
Python Version:   3.6.1
OS and version:    Windows 10 (OS Build 16257.1) Pro
Actual behavior
After selecting an area of code and the option to "Run selection/line in Python terminal", code is copied into the terminal, but not from the start of the selection.

Repeatedly trying to "Run selection/line in Python terminal", after closing the terminal each time results in the code copied into the terminal starting at different points each time.

Expected  behavior
All the code is copied into the Python terminal
Steps to reproduce:

Select some code
Right click
Click "Run selection/line in Python terminal"

Logs
Output from Python output panel
N/A
Output from Console window (Help->Developer Tools menu)
N/A
Copied from original issue: DonJayamanne/pythonVSCode#1163

From @dalyIsaac on August 25, 2017 2:0
This only occurs when the integrated shell is set to Powershell. If it's set to cmd.exe, it doesn't occur


Should make-wrapper.sh reset the extraFlagsArray?

I noticed that make-wrapper.sh generates application wrappers that add extraFlagsArray flags to the invocation.
https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/setup-hooks/make-wrapper.sh#L75
Is this not a problem if extraFlagsArray gets set accidentally? Just wondering.

Does the link still point to the right place?

It moved to
https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/setup-hooks/make-wrapper.sh#L81
On Tue, Sep 8, 2015, 23:28 Profpatsch<EMAIL_ADDRESS>wrote:

Does the link still point to the right place?
—
Reply to this email directly or view it on GitHub
https://github.com/NixOS/nixpkgs/issues/2537#issuecomment-138707570.

--
Wout.
(typed on mobile, excuse terseness)

Yeah, that would lead to unexpected behavior. Perhaps mark the variable local and clear it? (So the same-named variable wouldn't be shadowed when passing through exec.) I don't know bash well enough to be certain.
BTW, I can't find any relevant usage of the variable, so maybe the feature isn't really useful anyway...

(triage) @wmertens Was this fixed in the meantime?

No, it's still there, and in fact it doesn't seem to be used in nixpkgs: https://github.com/NixOS/nixpkgs/search?utf8=✓&q=extraFlagsArray (verified with grep -r as well)
The only use of the same name is in builder.sh which initializes it itself doesn't use make-wrapper.sh, and in simutrans where it seems to be a copy/paste.
So I propose we simply remove it from make-wrapper and simutrans. @vcunat @Profpatsch thoughts?

I can't find a reference to it in nix and nixops either…

The reasoning behind it is that you can programmatically change argument flags by invoking other programs in the wrapper (which is quite sensible):
with import <nixpkgs> {};

stdenv.mkDerivation {
  name = "test";
  src = ./.;

  buildInputs = [ makeWrapper ];

  installPhase = ''
    mkdir -p $out/bin
    echo -e '#!/bin/sh \necho "hello world, it’s a me, $@"' > $out/bin/hello
    chmod +x $out/bin/hello
    wrapProgram $out/bin/hello --run 'echo "WRAPPED!"' \
                               --run 'extraFlagsArray+="Mario!"'
  '';
}

I tested it, making it local seems to work well and should decrease the likelyhood of an accidental bug:
@@ -1,6 +1,6 @@
 let lib = import ./default.nix;

-inherit (builtins) trace attrNamesToStr isAttrs isFunction isList isInt
+inherit (builtins) trace deepSeq attrNamesToStr isAttrs isFunction isList isInt
         isString isBool head substring attrNames;

 inherit (lib) all id mapAttrsFlatten elem;

@Profpatsch awesome, I did not expect that usage :) Definitely needs documentation, and in the mean time maybe a PR to make it a local and add a comment describing its purpose?
Let me know if you want me to do it instead.

Fixed in #19328


Refactor e2e for vSphere to use table driven tests:

Issue #, if available:
Description of changes:
This seeks to optimize for readability and less duplication of code. This doesn't give us an increase in the reliability of these tests. Also, this change seeks to teach about table driven testing.
Testing (if applicable):
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Looks like i have not taken into account how we allocate clusters for testing. Looks like we have tests as single functions so that we can parse them out for properly assigning clusters to tests in a serial way.
https://github.com/aws/eks-anywhere/blob/main/internal/test/e2e/list.go#L14

Looks like i have not taken into account how we allocate clusters for testing. Looks like we have tests as single functions so that we can parse them out for properly assigning clusters to tests in a serial way. It also allows us to specify tests to skip at runtime. This allows for non code changes to skip tests.
https://github.com/aws/eks-anywhere/blob/main/internal/test/e2e/list.go#L14

That’s right. I don’t think we can leverage table tests, that would force all the tests to run in a single EC2. We had the tests as individual ones as they can run in parallel in their own environments.

Let's think of other options though what we have now where we have to rely on keeping things in sync across versions and providers is less than ideal. Just to throw out something wild, what about just auto generating the test files from a known template so at least we could keep them in sync?

I like the wild idea, @jaxesn ! We should discuss more. I found that running or skipping table driven tests (which in pure Go are just sub-tests) is no different than what we currently do. See this link for sub-test running: https://go.dev/blog/subtests
I believe the only thing left to solve, that would allow for table driven tests to be used, is that the way we determine all tests is by using ./bin/e2e.test -test.list and this doesn't print out sub-tests. I'll keep investigating to see if i can find a solution.


EA updates

Updates for EA docs per Alex

Duplicate Calico Enterprise in Network section with Network Visibility, Federation, and Calico Enterprise User Console
Merge to latest and nightly

Deploy preview for calico ready!
Built with commit 3411580a1b222afe52449cdf01098a6fdafa7f71
https://deploy-preview-3216--calico.netlify.com


Hot reload with tailwind css is unstable and requires manual reloading

Specific Demand
I need a feature that will allow me to use hot reload with tailwind css without having to manually restart the dx serve --hot-reload command and the browser. This will improve my development experience and the quality of my video tutorials.
Implement Suggestion
I don’t know how to implement this feature, but maybe you can look into how tailwind css works with other frameworks that support hot reload, such as React or Vue. Maybe there is a way to integrate tailwind css with dioxus more seamlessly and efficiently.
https://github.com/DioxusLabs/dioxus/assets/9038676/19346ce4-abd7-4577-a477-573981d75cf9

Tailwind integration could be a plugin. The plugin system was started in https://github.com/DioxusLabs/cli/pull/124, but we now plan to use WIT + WASI to define plugins in Rust

hot reload doesn't. work at all for me. How did you get it to work
cannot find function `init` in crate `dioxus_hot_reload`
not found in `dioxus_hot_reload`rustc[Click for full compiler diagnostic](rust-analyzer-diagnostics-view:/diagnostic%20message%20%5B0%5D?0#file%3A%2F%2F%2Fhome%2Fdawkaka%2Fprojects%2Fapi-workflows%2Fsrc%2Fmain.rs)
lib.rs(53, 28): Actual error occurred here
main.rs(5, 1): consider importing one of these items: `use dioxus_logger::init;
`, `use env_logger::init;
`
failed to resolve: could not find `Config` in `dioxus_hot_reload`
could not find `Config` in `dioxus_hot_reload`rustc[Click for full compiler diagnostic](rust-analyzer-diagnostics-view:/diagnostic%20message%20%5B2%5D?2#file%3A%2F%2F%2Fhome%2Fdawkaka%2Fprojects%2Fapi-workflows%2Fsrc%2Fmain.rs)
lib.rs(53, 52): Actual error occurred here
main.rs(5, 1): consider importing this struct: `use dioxus_desktop::Config;

Closing this as a duplicate of https://github.com/DioxusLabs/dioxus/issues/1192


Embedding files in constant.py

In constant.py the embedding_matrix_filename variable calls for an embedding file which is not available in the data folder. From where shall I download this embedding file ?
embedding_matrix_filename = 'data/ckpts/embeddings_%s.h5'%embedding_dim

I know it's probably too late but you can create the embedding file by running the prepare_embeddings in prepare_data.py.


Is it possible to portablize Calcpad

For so convenient tool like Calcpad, if it could be portablized, then it shall gain more convenient use. Just imagine that you can store it in a USB disk.

Yes, it is easy to do. I will post it later today.

Hi!
I made a portable version and uploaded here:
https://calcpad.eu/download/calcpad-portable-en-x64.zip
Please, try if it works. Just download the fine and unzip it on a flash drive or a folder on your computer.

Great!I will test it as much as possible.
在 2024-04-18 23:55:13，"Ned Ganchovski" @.***> 写道：
Hi!
I made a portable version and uploaded here:
https://calcpad.eu/download/calcpad-portable-en-x64.zip
Please, try if it works. Just download the fine and unzip it on a flash drive or a folder on your computer.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Hi!
I made a portable version and uploaded it here: https://calcpad.eu/download/calcpad-portable-en-x64.zip
Please, try if it works. Just download the file and unzip it on a flash drive or a folder on your computer.

Hi,Ned.I tried the portable Calcpad and until now it works fine, except for that all the UI and help files are in Bulgraian.

Aha! OK. Sorry for that. Probably I forgot to switch the locale. I will rebuild and upload it again later today.

Thks so much. You know the portablization of Calcpad is that you don't have to link to net and download and install .Net runtime anymore. At the same time, the influence on calculation speed is neglectable.
在 2024-04-19 17:34:34，"Ned Ganchovski" @.***> 写道：
Aha! OK. Sorry for that. Probably I forgot to switch the locale. I will rebuild and upload it again later today.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Hi!
I fixed it and it is in English now. The link is the same:
https://calcpad.eu/download/calcpad-portable-en-x64.zip

Hi!
I fixed it and it is in English now. The link is the same: https://calcpad.eu/download/calcpad-portable-en-x64.zip

Thanks a lot.


using function with ng-repeat causing infinite digest cycle

I have the following plunkr.
https://plnkr.co/edit/Tt7sWW06GG08tdJu72Fg?p=preview
Just wanted to have a simple navar showing categories and sub-categories but the digest cycle and dirty checking is making it go to an infinite loop.
I am using a function with ng-repeat that in turn resolves a promise and returns an array object.
If one opens console, the errors of infinite digest cycle can be seen. The method attached to ng-repeat is stuck inside an infinite kind of loop and this distorts the display of data.
The sub-categories shown in the navbar are repeating and actually belong to the last category but somehow are being shown for each one of the  category.
The API for fetching sub-category and categories are two different ones and I dont have any flexibility to change them.
Any help will be appreciated! I am not returning a new object in every iteration, I am returning a reference of an object. How to possibly overcome such kind of situation? Is there something wrong with how  I am using ng-repeat. Should we not use ng-repeat with a function when it is nested?
The inner ng-repeat depends upon the outer ng-repeat data.
Note: Please expand the plunkr into a fuller window to see the menu on the left.

This sounds like a general support question. Please, use one of the appropriate support channels for these types of questions.
GitHub issues are reserved for bug reports and feature requests.
Thx!


Release package 2.0.1 contains file with wrong version header

I just loaded the release zip for 2.0.1 and the dist files have 2.0.0 in the comment at the top.
That is a little bit irritating

Fixed, sorry about that.


Some commands in Command::batch are ignored if they finish too fast

Issue
It seems like some commands in Command::batch are ignored if they finish too fast. The use case where I encountered this issue is that I have a progress bar that updates as batched commands finish, which worked fine until I added the ability to cancel the commands (making them return immediately based on an Arc<AtomicBool>), which caused the progress bar not to update all the way, like some of the commands were just ignored. It works if I add a sleep in the commands, though. I think/assume that update() is single-threaded, but just in case, I tried using AtomicU32 to store the progress bar value (and then converting it as f32 to pass to the component), but that didn't help.
Gist: https://gist.github.com/mtkennerly/b513e7fe89c735e5a5df672c503404d7
Demo (first without a sleep, then with a sleep of 1 millisecond):

Environment

OS: Windows 10
Rust: 1.44.1
Toolchain: stable-x86_64-pc-windows-msvc
Iced: Applies to both 0.1.1 and the latest master commit (dfeb3db003d724a1c980329dab9cbfae55b7f589). I recorded the above demo using master.

Thanks for the detailed report and the SSCCE! 🎉
I can reproduce the issue on Windows and I tracked it down to the winit::EventLoopProxy. Specifically, I have verified that all the commands do indeed finish and the messages are sent to winit here:
https://github.com/hecrj/iced/blob/dfeb3db003d724a1c980329dab9cbfae55b7f589/winit/src/proxy.rs#L45
However, the Windows implementation of EventLoopProxy in winit seems to be dropping some of them. If they are using a bounded buffer, I believe the API should expose additional errors. We will have to investigate further.
The issue does not seem to affect Linux with X11. The example works fine there.

We should check if the issue is still present in the latest winit release.

The issue is still present, unfortunately.
Updates from the gist (switched to Glow because of a separate issue that I'll probably open another ticket for):
diff --git a/Cargo.toml b/Cargo.toml
index 789f7be..2213325 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,5 +6,4 @@ authors = ["mtkennerly<EMAIL_ADDRESS> edition = "2018"

 [dependencies]
-# iced = "0.1.1"
-iced = { git = "https://github.com/hecrj/iced" }
+iced = { version = "0.4.2", default-features = false, features = ["glow"] }
diff --git a/src/main.rs b/src/main.rs
index ed98725..decf112 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -83,5 +83,5 @@ impl Application for App {
 }

 fn main() {
-    App::run(iced::Settings::default())
+    App::run(iced::Settings::default()).unwrap();
 }

Cargo.lock:
[[package]]
name = "winit"
version = "0.26.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9b43cc931d58b99461188607efd7acb2a093e65fc621f54cad78517a6063e73a"

Is this issue potentially related to issue #792?
I've had the same bug as the OP of that issue on macOS Monterey in two separate applications now: sometimes (> 10%) when the update function finishes too fast the screen doesn't refresh to reflect the new state. Moving the mouse the slightest bit, pressing any key, or receiving a new command forces a refresh showing that the state had in fact been updated in the previous step.
I've found two solutions to this so far.

If I ensure that all view-changing updates take at least 2ms by adding thread::sleep, the problem disappears. This is my currently preferred approach.
Switching to glow also fixes the problem. This is not helpful to me as the glow backend lacks a lot of the wgpu functionality (image, svg, etc.), but shows the issue is in the wgpu space.

This seems to work correctly now in Iced 0.13.1 🎉
Updated gist: https://gist.github.com/mtkennerly/3415f82894066fa02ea044cee4d802ef

https://github.com/user-attachments/assets/49631b4f-c66b-456d-a344-e675a28ca4aa


[UT] Fix unstable test BinlogReaderTest.test_read_full_columns

BinlogReaderTest.test_read_full_columns is unstable, and is disabled temporarily  in #25571. Now fix it, and enable the test.
The failure is
binlog_reader_test.cpp:295: Failure
Expected equality of these values:
  row_info.timestamp
    Which is:<PHONE_NUMBER>000000
  actual_tuple[6].get_int64()
    Which is:<PHONE_NUMBER>000000

It is just the problem of test implementation. The reason is that the creation time of the rowset will be set to the visible time in add_inc_rowset(), and the binlog timestamp actually use the creation time after rowset is visible, so should get the creation time after add_inc_rowset() to verify the correctness of binlog timestamp
What type of PR is this:

[ ] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[x] UT
[ ] Doc
[ ] Tool

Does this PR entail a change in behavior?

[ ] Yes, this PR will result in a change in behavior.
[ ] No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

[ ] Interface/UI changes: syntax, type conversion, expression evaluation, display information
[ ] Parameter changes: default values, similar parameters but with different default values
[ ] Policy changes: use new policy to replace old one, functionality automatically enabled
[ ] Feature removed
[ ] Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[x] 3.2
[x] 3.1
[ ] 3.0
[ ] 2.5

[FE Incremental Coverage Report]
:heart_eyes: pass : 0 / 0 (0%)

[BE Incremental Coverage Report]
:heart_eyes: pass : 0 / 0 (0%)

@Mergify backport branch-3.2

@Mergify backport branch-3.1


Detect partial failures (dependencies failing)

Alternative to https://github.com/ocurrent/opam-repo-ci/pull/155

cc @dbuenzli


EditText issue when typing in keyboard

Hi! i have an issue regarding on the bubble layout when i added edittext the keyboard will not showup i added a toggle keyboard it does show up but it wont type on the edit text.. please help.
thanks,
PS: i think the FLAG_NOT_FOCUSABLE is the reason for this.. is there a way to override your function buildLayoutParamsForBubble ?
thank you..

yes use FLAG_NOT_TOUCH_MODAL


.scan to search for a buffer

node-binary has a method .scan:
var b = binary()
    .scan('line', new Buffer('\r\n'))
    .tap(function (vars) {
        console.log(vars.line)
    });

I'll be happy to propose a PR to add this if @deoxxa thinks it's a good idea.

Here is a basic implementation:
function scan(name, search) {
    search = new Buffer(search, 'utf8');
    var result = Buffer();

    this.loop(function(end) {

        this.buffer('tmpSearch', 1)
        .tap(function() {
            var c = this.vars.tmpSearch;
            result = Buffer.concat([result, c]);

            var toSearch = result.slice(-search.length);

            if (toSearch.compare(search) === 0) {
                delete this.vars.tmpSearch;
                this.vars[name] = result.slice(0, -search.length);
                end();
            }
        })
    });
}


Rectangle tool shows only three handles and won't finish on click.

Hi, I ran into a problem with the rectangle tool. Didn't manage to get it working on fiddle but here's a zipped folder with all code involded.
Run testbug.html and the problem reproduces.
As far as I can tell the other tools work as expected.
testbug.zip
l

Sorry for the late replay ... I have fixed this with the PR #993.
This is happening because of your custom CRS

No worries, I am mainly using the polygon tool.
Happy to have been able to offer a chance to further improve this excellent tool.
cheers Rene
On Sunday, October 3, 2021, 10:00:43 PM GMT+2, Falke Design<EMAIL_ADDRESS>wrote:

Sorry for the late replay ... I have fixed this with the PR #993.
This is happening because of your custom CRS
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

Fixed with Release 2.11.3


fix(ttn tokens): Remove issuer from token claim

:tada: This PR is included in version 3.1.0-rc.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 3.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Add toggle to Range for allowing non finite numbers

Related to #88006

Loos generally good, will test further
Kd say it should add a separate option for NaN, and maybe control for what it means, possibly a "allow displaying invalid" while not allowing it to be input, but something to discuss

I would not be overly specific and add another option. No one has requested this, and the current variable exists sorely to fix regressions (internally).

This was discussed here https://github.com/godotengine/godot/issues/87664, with various of these points

I think we should discuss separating displaying values from inputting values, this is specifically for being able to display non-finite values, not for inputting them, so I think this reinforces this need especially
So my suggestion would be:

Control the input of infinities
Control the input of NaN
Control the display, this would involve having a new method for just setting the value in a custom way that isn't the one used by the value input from other sources, such as text input or sliders

Allowing both NaN and infinities feels unsafe for me, I'm not even sure I think we should even allow NaN as input, it's a value with minimal usefulness as an input, it's mainly useful as a diagnostic thing (well, useful is a strong word even then)

Do you mean we would split allow_non_finite into allow_infinite and allow_nan?
Something else we should discuss is should there be a warning whenever you set a variable to nan?
it is really buggy and like you said not useful outside of representing invalid math equations.

the gui becomes a bit buggy when you set the number to nan in the script editor, but I think that has something to do with nan not being able to be compared properly.

At minimum I'd say the part with allowing non-finites for input is out of place if not exposed

I'm not requesting changes as I think this is a matter of opinion, though I do think the hacky solution for the changes to set_allow_non_finite needs to be improved
But I'd say that if we're to add this level of control we need to use it, otherwise there's little point to add it without establishing it will be useful
And for adding this and exposing it (which I think is something we should do, to be clear) I'd say the following is needed:

Exposing these controls
Adding support for this for export ranges, with a allow_non_finite option to PROPERTY_HINT_RANGE, with relevant controls

There is a more pressing issue though that needs resolving for this, this breaks various Range types that aren't for input of this kind, like ScrollBar
If you use these changes and you call $MyScrollBar.set_value_no_signal(NAN) it will break and can't be scrolled any longer, which is not good

sorry it took so long to respond.
How are options added to PROPERTY_HINT_RANGE?
I will update the code to make it less hacky and expose the controls.

Check _parse_range_hint() and its usages.

work in progress commit to make sure this is the right way.
so now you set up the range using @export_range and allow_inf_input and allow_non_finite (allows nan/inf in the code editor). right now you need to use or_greater for inf but that is bug I am working on fixing.
Known issues:
setting min/max to inf breaks a lot of different things :(
inf requires "or_greater"

They were rebased, they're different from the other ones as they build on top of other ones

I think this looks quite good, I'd suggest exposing the setters/getters and add properties for them to make them useful in scripting, haven't tested but I think this is a good solution, will test some later and would be good to get some other feedback as well

Wouldn't exposing properties cause issues with nodes ProgressBar? as far as I understood the only uses for this is the debugger and gdscript variables.
also String::to_float() can't handle inf or -inf there is a pretty easy work around but adding support for inf might be worth considering.

I think everything is working properly.
Something to note if allow_inf_input or allow_non_finite ever need to be exposed the editor won't accept non finite numbers even if they are enabled. probably because the editor uses range and by default non finite numbers are disabled.

This PR would partially address https://github.com/godotengine/godot-proposals/issues/10068

Allowing both NaN and infinities feels unsafe for me, I'm not even sure I think we should even allow NaN as input, it's a value with minimal usefulness as an input, it's mainly useful as a diagnostic thing (well, useful is a strong word even then)

I personally disagree -- both infinities and NaN can be useful as special values for user scripts. There's no real way to have export fields with optional values other than maybe making a custom resource type for them (which would be extremely cumbersome to edit especially for simple fields like floats), so the only real alternative at the moment is to use special values of floats. The game I'm working on has a speedrunning system where every level has two ranks for times, a "gold" time which is shown, and a "perfect" time which isn't (as a sort of easter egg for players who find super-optimal routes through levels), but there are some levels that I don't want gold/perfect times for, and I currently use NaN for this purpose; https://github.com/godotengine/godot/pull/81076 made this much harder to do. In an ideal system, there should be no need to use NaN, but I think the current state of Godot makes it necessary sometimes.
In any case, it feels silly to have the designated Thing You Use To Edit Floats not let you enter certain float values (NaN; infinity; zero; 1/3; sqrt(2); anything that isn't a multiple of 0.001), especially for a tool made for software developers -- Godot shouldn't be making it harder for developers to do what they want, and a user probably knows what they're doing when they type NAN into a field.
(all of this is kind of a repeat of https://github.com/godotengine/godot-proposals/issues/10068, sorry if that's bad form or something)

There is definitely legitimate use cases for entering at least INF and -INF explicitly in user exported fields. And even NAN as well. These are one of the most important features of float, and having this broken though it used to work in the editor is really bad IMO. For example:

Fields like last_time as a float timestamp (seconds since Unix epoch) can have a -INF value meaning "never happened". Similarly a +INF value can mean "forever".
float values (specially if infinite is also valid) might want to use NAN as "null" to avoid Variant

If those inputs cause issues in the engine internals, then it should be fixed without disallowing it in user code. In fact, if it causes issues somewhere, it should be fixed in the setter of that place (so the fix works on programmatic inputs as well), not on the UI input field (which doesn't really solve the underlying issue).

float values (specially if infinite is also valid) might want to use NAN as "null" to avoid Variant

NAN is a very bad "null" value, because it comes with multiple caveats, like 2 NANs not being equal.

NAN is a very bad "null" value, because it comes with multiple caveats, like 2 NANs not being equal.

@KoBeWi SQL's NULL does the same. It all depends on intended purpose, maybe that's what you want.
If you're using NAN (or float in general) you're expected to know how it works, just like you should know +0.0 == -0.0 despite they not being identical (e.g. 1/z being different in each case). If anyone is going out of their way to use NAN as a sort of null, then it's their responsibility to know to use is_nan(), etc.


mention dynamicLinkDomain property

This will affect users who have added more than one URL prefix in their Firebase console.
Calling sendSignInLinkToEmail:actionCodeSettings:completion will result in an email being sent with a passwordless authentication URL.
If you don't specify the dynamicLinkDomain property of the ActionCodeSettings object passed to sendSignInLink, the URL you receive in the email may not point to the right domain, and so iOS will not detect it as a universal link.
In this part of the docs:
https://github.com/firebase/quickstart-ios/blob/3a8875720b55785d662bbd37b45ea4ce919cc9c4/authentication/AuthenticationExampleSwift/PasswordlessViewController.swift#L65-L71

That's mentioned in these docs here.

@morganchen12 I think you're missing the point.
The issue isn't that an explanation of the dynamicLinkDomain property is missing from the docs as a whole, the issue is that it's missing from the docs' discussion of sendSignInLinkToEmail:actionCodeSettings:completion (i.e. here)  where it'd be relevant.
So please consider reopening this issue.

It's in the document you linked, right above the first code sample.


Add loading indicator to contributor search

Purpose
Before, the user would see 'No results found' even if the search wasn't over. They should know that contributors are still being searched.
Changes
Add some extra logic to show 'Searching contributors...'
Had to stop it in the debugger to pull off a screenshot which is why it's dark:

Side effects
It occasionally will "flash" locally (where I have about 4 users to search through) but it's not too bad.
[OSF-5654]

Ideally, the loading indicator would only show after a few hundred milliseconds to avoid the "flash". This is fine as is for now, though. Thanks for the quick turnaround.


Instagram call checkpoint

Why is this happening? I don't like it. It needs to be fixed please

Same here! I dunno why this is happening!

How to fix:
1- desactive your Instagram account via browser or Instagram app.
2- Open your account via iGDM.
It works for me


Docs:Update config resources image

Type of change

Documentation

Description

Docs: Update config resources image
Checklist

[ ] Update/write design documentation in ./documentation/design
[ ] Write tests and make sure they pass
[x] Update documentation
[ ] Check RBAC rights for Kubernetes / OpenShift roles
[ ] Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally
[ ] Reference relevant issue(s) and close them after merging
[ ] Update CHANGELOG.md

Can one of the admins verify this patch?

The old image (enmasse-entities.svg) probably should be removed if it is not going to be used. Ulf, is this OK?


[BUG] Bad oauth token error after partially successful initial synch

Describe the bug
I linked my account and began synching. After the first couple of directories are synched, I get the following error.
2020-11-16 15:25:41 maestral.sync INFO: Downloading your Dropbox
2020-11-16 15:25:42 maestral.sync INFO: Creating folders...
2020-11-16 15:25:43 maestral.sync INFO: Downloading 65/67...
2020-11-16 15:25:44 maestral.client INFO: Indexing 117...
2020-11-16 15:25:44 maestral.sync INFO: Creating folders...
2020-11-16 15:25:46 maestral.sync INFO: Downloading 14/16...
2020-11-16 15:25:46 maestral.sync ERROR: Bad input to API call
Traceback (most recent call last):
  File "Contents/Resources/app_packages/maestral/client.py", line 177, in convert_api_errors
  File "Contents/Resources/app_packages/maestral/client.py", line 207, in wrapper
  File "Contents/Resources/app_packages/maestral/client.py", line 488, in download
  File "Contents/Resources/app_packages/dropbox/base.py", line 1275, in files_download
  File "Contents/Resources/app_packages/dropbox/dropbox.py", line 313, in request
  File "Contents/Resources/app_packages/dropbox/dropbox.py", line 463, in request_json_string_with_retry
  File "Contents/Resources/app_packages/dropbox/dropbox.py", line 571, in request_json_string
dropbox.exceptions.BadInputError: BadInputError('`REDACTED`', 'Error in call to API function "files/download": The given OAuth 2 access token is malformed.')

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "Contents/Resources/app_packages/maestral/sync.py", line 3834, in startup_worker
  File "Contents/Resources/app_packages/maestral/sync.py", line 2745, in get_remote_folder
  File "Contents/Resources/app_packages/maestral/sync.py", line 2985, in apply_remote_changes
  File "Contents/Resources/Python/lib/python3.8/concurrent/futures/_base.py", line 432, in result
  File "Contents/Resources/Python/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
  File "Contents/Resources/Python/lib/python3.8/concurrent/futures/thread.py", line 57, in run
  File "Contents/Resources/app_packages/maestral/sync.py", line 3283, in _create_local_entry
  File "Contents/Resources/app_packages/maestral/sync.py", line 3336, in _on_remote_file
  File "Contents/Resources/app_packages/maestral/client.py", line 207, in wrapper
  File "Contents/Resources/Python/lib/python3.8/contextlib.py", line 131, in __exit__
  File "Contents/Resources/app_packages/maestral/client.py", line 179, in convert_api_errors
maestral.errors.BadInputError: Bad input to API call. Error in call to API function "files/download": The given OAuth 2 access token is malformed.

To Reproduce
Install version 1.2.2
maestral link
Follow linking steps
maestral log clear
maestral start
Wait several seconds
maestral log show.
Expected behaviour
Either a successful synch, or a failure after 0 items indicating an actually bad token has been supplied.
System (please complete the following information):

Maestral version: 1.2.2 (.app build)
OS: macOS 10.15.7 (19H15)
Desktop environment: n/a
Qt version: n/a

Additional context
This issue first occurs in 1.2.2. I have successfully synched by downgrading to 1.2.1.
When run in gui mode, I also get an issue where I can't quit the GUI after this error occurrs; I suspect this may be an unrelated issue, though.
Also, the redacted token in the log is NOT the access token string provided by dropbox and entered in the link step; I assume that's expected and it is some encoded or session-specific token, but I felt I should mention it just in case.

Thanks for the report and apologies for the issue. I'm afraid this will be very hard to debug, especially since I cannot reproduce the the error myself.
How reproducible is this with v1.2.2? Does this happen every time you link a new account and perform the initial sync? And does the sync resume after force-quitting and restarting Maestral? Or does it just occur once?
The token which is used to authenticate is a short-lived token (valid for about 4h) which is generated from a long-lived refresh token (saved in Keychain) every time the daemon is started. When the short-lived token expires or Maestral is restarted the SDK should automatically generate a new one.
BTW, the value which you redacted in the traceback is just the request ID. But it's better to be safe than sorry!

I have 100% reproduction of this issue. Whenever I link my account w/ 1.2.2 and start the sync, it occurs. After quitting and restarting Maestral, the sync begins again and then fails again after roughly the same number of operations. (It doesn't seem to be entirely deterministic how many, though.)
Is there some verbosity option or the like I could use to gather more information about the issue for you?

You could increase the log level to debug with the CLI command maestral log level DEBUG but the resulting output will mostly inform you about which individual files are syncing and how conflict resolution is handled for them. This could help to identify how this error is triggered.
You can also run a couple of checks directly in bundled Python interpreter. Typing the following in Terminal should launch it:
/Applications/Maestral.app/Contents/MacOS/Maestral --run-python
Then you can check which authentication type is used as follows:
from maestral.main import Maestral
m = Maestral()
print(m.client.auth.token_access_type)
print(m.client.auth.refresh_token)
print(m.client.auth.access_token)

This should return a token_access_type of 'offline', an alphanumeric refresh_token and no access_token. If this is all ok, you can generate a short-lived access token with:
m.client.dbx.refresh_access_token()
print(m.client.dbx._oauth2_access_token)

The last command should print a token that starts with sl.*. If this looks good as well, the next step would be to manually try some API calls...

Following up on the last command, you can confirm the lifetime of the access token with:
print(m.client.dbx._oauth2_access_token_expiration)

Well, that figures. My 100% reproduction has vanished. 🤷 I can no longer provoke the issue.

Glad it worked out it, though I am still very confused about this. It may have been an issue on Dropbox's side.
Feel free to reopen if it occurs again.


[BUG] IllegalArgumentException while trying to upload a 0B file

Describe the bug
When we try to upload a 0B file we got the below exception
Exception or Stack Trace
Nov 23, 2023 8:30:53 AM com.hcl.wa.plugin.azurestorage.jobexecutor.AzureStorageJobExecutor Failed to upload from file
SEVERE: Size of the file must be greater than 0.
java.lang.IllegalArgumentException: Size of the file must be greater than 0.
    at com.azure.storage.file.datalake.DataLakeFileAsyncClient.lambda$uploadFromFile$13(DataLakeFileAsyncClient.java:498)

    at reactor.core.publisher.MonoUsing.subscribe(MonoUsing.java:85)

    at reactor.core.publisher.Mono.subscribe(Mono.java:4397)

    at reactor.core.publisher.Mono.block(Mono.java:1706)

    at com.azure.storage.common.implementation.StorageImplUtils.blockWithOptionalTimeout(StorageImplUtils.java:131)

    at com.azure.storage.file.datalake.DataLakeFileClient.uploadFromFile(DataLakeFileClient.java:292)

    at com.azure.storage.file.datalake.DataLakeFileClient.uploadFromFile(DataLakeFileClient.java:264)

    at com.hcl.wa.plugin.azurestorage.jobexecutor.AzureStorageAction.uploadFile(AzureStorageAction.java:626)

    at com.hcl.wa.plugin.azurestorage.jobexecutor.AzureStorageAction.runAction(AzureStorageAction.java:192)

    at com.ibm.scheduling.spi.jobexecutor.JobExecutorSupport.runPattern(JobExecutorSupport.java:1070)

    at com.hcl.wa.plugin.azurestorage.jobexecutor.AzureStorageJobExecutor.execute(AzureStorageJobExecutor.java:92)

    at com.ibm.scheduling.jobexecutor.JobExecutorManagerSupport.execute(JobExecutorManagerSupport.java:409)

    at com.ibm.scheduling.jobexecutor.JobExecutorManagerSupport.connectAndExecute(JobExecutorManagerSupport.java:173)

    at com.ibm.scheduling.agent.core.jobexecutor.LocalJobExecutorManager.executeJob(LocalJobExecutorManager.java:134)

    at com.ibm.scheduling.osgi.Framework.executeJob(Framework.java:105)

    Suppressed: java.lang.Exception: #block terminated with an error

            at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:99)

            at reactor.core.publisher.Mono.block(Mono.java:1707)

            ... 11 more

Nov 23, 2023 8:30:53 AM com.hcl.wa.plugin.azurestorage.jobexecutor.AzureStorageJobExecutor runAction
SEVERE: AWKADL005E The job execution failed. The error message is "Upload_Fail"
com.ibm.scheduling.spi.jobexecutor.JobExecutorFailedExecutionException: AWKADL005E The job execution failed. The error message is "Upload_Fail"
    at com.hcl.wa.plugin.azurestorage.jobexecutor.AzureStorageAction.uploadFile(AzureStorageAction.java:663)

    at com.hcl.wa.plugin.azurestorage.jobexecutor.AzureStorageAction.runAction(AzureStorageAction.java:192)

    at com.ibm.scheduling.spi.jobexecutor.JobExecutorSupport.runPattern(JobExecutorSupport.java:1070)

    at com.hcl.wa.plugin.azurestorage.jobexecutor.AzureStorageJobExecutor.execute(AzureStorageJobExecutor.java:92)

    at com.ibm.scheduling.jobexecutor.JobExecutorManagerSupport.execute(JobExecutorManagerSupport.java:409)

    at com.ibm.scheduling.jobexecutor.JobExecutorManagerSupport.connectAndExecute(JobExecutorManagerSupport.java:173)

    at com.ibm.scheduling.agent.core.jobexecutor.LocalJobExecutorManager.executeJob(LocalJobExecutorManager.java:134)

    at com.ibm.scheduling.osgi.Framework.executeJob(Framework.java:105)

To Reproduce
The following code snippet cause the issue, in particular the issue is caused by the fileClient.uploadFromFile method call
Code Snippet
DataLakeFileSystemClient dataLakeFileSystemClient2 = storageClient.getFileSystemClient(containerName+"/"+azLocation);
DataLakeFileClient fileClient = dataLakeFileSystemClient2.getFileClient(name);
fileClient.uploadFromFile(filePath,true);
Expected behavior
We expect to be able to upload a 0B file
Setup (please complete the following information):
OS: Windows
IDE: IntelliJ
Library/Libraries: azure-storage-file-datalake 12.11.0
Java version: 8

Thanks for filing this issue @Gianluca-HCL
@ibrandes, @ibrahimrabab this appears to still be the case in the latest version where an exception will be thrown if the file size is 0 bytes.
https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileAsyncClient.java#L872
We should change this to just create the file if the size is 0 bytes and perform no uploading.

Hi with which library level will this fix be available?


adds page-sidebar class for unstyled lists

Changes in this PR

Removes styling of lists for page sidebar

Screenshots of UI changes
Before

After

 Correct Page CSS

Could we go for an #id and @extend using the specific style we need. https://sass-lang.com/documentation/at-rules/extend We only have one sidebar per page and this would defer to the front-end lib.

@peterdavidhamilton thanks, this looks better now. Have done the same for the timestamp as well.


[Android] Unable to get cookie from the https://myapp.com/websocket

@hyperh
Has someone any idea why ?

@Mokto I tried commenting out the line https://github.com/inProgress-team/react-native-meteor/blob/master/src/Data.js#L7, since it's just for performance reasons and is optional in minimongo-cache anyways. I still get the cookie error. I wonder if it's something else that's causing this.

Running into this as well. I'll see if I can find anything...
looks like websockets may have broken in 0.26? https://github.com/facebook/react-native/issues/7871

possible related? https://github.com/facebook/react-native/blob/a16dad33a635fc4cb27c8d009578e1a2f4adb793/docs/Troubleshooting.md#module-that-uses-websocket-such-as-firebase-throws-an-exception

I'm thinking it's related to this PR somehow https://github.com/facebook/react-native/pull/6851
The code that was reverted seems to have made it into 0.26... might be a reason. Anyways it seems that WebSocketModule.java is where the issues are coming from.

Thanks for your research. I think you should ping react-native team on one of the issues regarding this.
Looking forward to seeing this fixed. Maybe 0.26.3 (just released few hours ago) will fix this ?

0.26.3 doesn't change anything but I did find a fix...
Change your server url from https://myapp.com/websocket or http://myapp.com/websocket
to wss://myapp.com/websocket or ws://myapp.com/websocket
Then it works! At least for me

@spencercarli this worked for me, thanks!

Thanks @spencercarli it works !!!
I just updated readme to help other people.


TestHuman can now assert that it was asked to decide between a set of actions

The TestHuman should be able to assert that it was asked
to decide between a predefined set of actions to test
that all necessary actions are given to the human
This fixes #19

@rultor merge pls

@rultor merge pls

@aliceice OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge pls

@aliceice Done! FYI, the full log is here (took me 3min)


Attribute 'value' was not found for environment variable 'admin_PowerAutomateEnvironmentVariable

I updated the CoE a few weeks ago and noticed this error on Core Component and Governance flows:
Flow client error returned with status code "BadRequest" and details "{"error":{"code":"XrmEnvironmentVariableAttributeNotFound","message":"Attribute 'value' was not found for environment variable 'admin_PowerAutomateEnvironmentVariable'."}}".
I should know this, but what is the admin_PowerAutomateEnvironmentVariable and where do I find this. I go to make.powerapps.com and see these variables.

Closed per comment above.


SEGV when converting multichannel data

This code causes SEGV(or invalid access in valgrind).
fn main() {
  let data = [1.0f32;2*4096];
  samplerate::convert(6, 3, 2, samplerate::ConverterType::SincBestQuality, &data).unwrap();
}

Valgrind output:
==3737251== Memcheck, a memory error detector
==3737251== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==3737251== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==3737251== Command: target/debug/samplerate
==3737251==
==3737251== Invalid read of size 8
==3737251==    at 0x4840737: memmove (vg_replace_strmem.c:1271)
==3737251==    by 0x1171D4: prepare_data (src_sinc.c:1193)
==3737251==    by 0x11467D: sinc_stereo_vari_process (src_sinc.c:529)
==3737251==    by 0x111FA6: src_process (samplerate.c:182)
==3737251==    by 0x112645: src_simple (samplerate.c:478)
==3737251==    by 0x10D89D: samplerate::convert (lib.rs:45)
==3737251==    by 0x10D34C: samplerate::main (main.rs:3)
==3737251==    by 0x10D59A: std::rt::lang_start::{{closure}} (rt.rs:67)
==3737251==    by 0x11E7D2: {{closure}} (rt.rs:52)
==3737251==    by 0x11E7D2: std::panicking::try::do_call (panicking.rs:303)
==3737251==    by 0x11FFB6: __rust_maybe_catch_panic (lib.rs:86)
==3737251==    by 0x11F168: try<i32,closure-0> (panicking.rs:281)
==3737251==    by 0x11F168: catch_unwind<closure-0,i32> (panic.rs:394)
==3737251==    by 0x11F168: std::rt::lang_start_internal (rt.rs:51)
==3737251==    by 0x10D576: std::rt::lang_start (rt.rs:67)
==3737251==  Address 0x1fff001000 is not stack'd, malloc'd or (recently) free'd
==3737251==
==3737251==
==3737251== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==3737251==  Access not within mapped region at address 0x1FFF001000
==3737251==    at 0x4840737: memmove (vg_replace_strmem.c:1271)
==3737251==    by 0x1171D4: prepare_data (src_sinc.c:1193)
==3737251==    by 0x11467D: sinc_stereo_vari_process (src_sinc.c:529)
==3737251==    by 0x111FA6: src_process (samplerate.c:182)
==3737251==    by 0x112645: src_simple (samplerate.c:478)
==3737251==    by 0x10D89D: samplerate::convert (lib.rs:45)
==3737251==    by 0x10D34C: samplerate::main (main.rs:3)
==3737251==    by 0x10D59A: std::rt::lang_start::{{closure}} (rt.rs:67)
==3737251==    by 0x11E7D2: {{closure}} (rt.rs:52)
==3737251==    by 0x11E7D2: std::panicking::try::do_call (panicking.rs:303)
==3737251==    by 0x11FFB6: __rust_maybe_catch_panic (lib.rs:86)
==3737251==    by 0x11F168: try<i32,closure-0> (panicking.rs:281)
==3737251==    by 0x11F168: catch_unwind<closure-0,i32> (panic.rs:394)
==3737251==    by 0x11F168: std::rt::lang_start_internal (rt.rs:51)
==3737251==    by 0x10D576: std::rt::lang_start (rt.rs:67)
==3737251==  If you believe this happened as a result of a stack
==3737251==  overflow in your program's main thread (unlikely but
==3737251==  possible), you can try to increase the size of the
==3737251==  main thread stack using the --main-stacksize= flag.
==3737251==  The main thread stack size used in this run was 8388608.
==3737251==
==3737251== HEAP SUMMARY:
==3737251==     in use at exit: 766,853 bytes in 8 blocks
==3737251==   total heap usage: 14 allocs, 6 frees, 768,745 bytes allocated
==3737251==
==3737251== LEAK SUMMARY:
==3737251==    definitely lost: 0 bytes in 0 blocks
==3737251==    indirectly lost: 0 bytes in 0 blocks
==3737251==      possibly lost: 0 bytes in 0 blocks
==3737251==    still reachable: 766,853 bytes in 8 blocks
==3737251==         suppressed: 0 bytes in 0 blocks
==3737251== Rerun with --leak-check=full to see details of leaked memory
==3737251==
==3737251== For lists of detected and suppressed errors, rerun with: -s
==3737251== ERROR SUMMARY: 2 errors from 1 contexts (suppressed: 0 from 0)
Segmentation Fault(Core dumped)

OS: Archlinux
libsamplerate: 0.1.9-3
rust-samplerate: 0.2.1
Rust toolchain: nightly-2020-03-09-x86_64

There, I Fixed It. PR is coming.

Thanks so much for your issue and contribution! It's merged and released. Thanks.


Feature/incremental predicates

resolves #435

Description
Check out core PR 5702
Checklist

[x] I have signed the CLA
[x] I have run this code in development and it appears to resolve the stated issue
[x] This PR includes tests, or tests are not required/relevant for this PR
[x] I have run changie new to create a changelog entry

same failures.


rocfft: actually fix hydra caching

Description of changes
This was tricky, but I can definitely confirm hydra will cache this since it turns out collecting garbage will show if the base derivation is still there or not, and if it is not then the new one (which should still exist) no longer depends on it.
Tracking: #197885

Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

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

3 packages built:

hipfft
python310Packages.torchWithRocm
rocfft


Request SVD file of RV32M1

Request to add SVD file of RV32M1

official Software, tools, documentation for Vegaboard platform

official VEGA Board downloads

unofficial SVD: https://github.com/rv32m1-rust/rv32m1_ri5cy-pac/blob/master/RV32M1_RI5CY.svd


Remove jsdom-compat file.

Depends on https://github.com/tmpvar/jsdom/pull/1190
All these things have been fixed in the corresponding upstream repos. We don't need the compat layer any longer.
I ran this on our FB tests and couldn't find any issues.

cc @domenic

See also: https://github.com/facebook/jest/pull/374#issuecomment-106691391

Update to jsdom 6.1.


Transactions in EURO and other currencies are not going through, only USD is working

Investigate if Rafiki or Rapyd or Testnet are only letting USD transactions to go through correctly.
We need to implement payments in multiple currencies as well.

Closed by #505.


/user/100/   match  l.Get("/user/:id"

http://localhost:3007/user/    404
http://localhost:3007/user/100    right
http://localhost:3007/user/100/   expect 404 but match  "/user/:id"

@tablecell Lars sets a series of sane defaults upon creation which includes redirecting upon a non-matching trailing slash.
If you use curl -v ... you should see the redirect request. This can be turned off if desired.


OpenCL version

hello,
are you planning to make an OpenCL version of your code?
it would be great to ensure crossplatform and a broader usage of your (terrific) library
if you're searching devs, lemme know!
all the best

We're not actively developing this codebase, so we don't have plans to add this. I think that unless there is some way to make thrust, or some drop-in replacement work with an OpenCL backend (some discussion on that here), it would likely require a lot of the simulation code to be rewritten.
I'm happy to answer questions about how the code works if someone is interested in doing this.

what about this?
https://github.com/ROCmSoftwarePlatform/rocThrust

That seems like it could work. It will depend on the HIP stuff playing nicely with Eigen, but if it does I don't recall any other NVIDIA-specific things besides thrust that would cause problems.
If someone with an AMD gpu can confirm that it builds and runs, I could probably add an option for it to the build system.


Passing wrong parameter to set function will produce wrong results

I'm not sure if it's a bug, but it's really strange
const data = Immutable.fromJS({data: 'data'})

const data2 = data.set(['data'], 'data2') // I know it's wrong, setIn should be here, but not throwing any error
console.log(data2.get('data')) // data(that's right)
console.log(data2.toJS().data) // data2(that's wrong)

version 3.8.1
reproduce in here

#1002 explains this
Immutable collections allow any sort of key, not just strings. Array keys are just fine!


Added introductory update on Trusted Types API

What's changed, or what was fixed?

added 'koto' contributor
wrote one article in updates

Fixes: -
Target Live Date: anytime.

[ ] This has been reviewed and approved by (NAME)
[X] I have run npm test locally and all tests pass.
There are some warnings, but they seem wrong and should be suppressed.
[ ] I have added the appropriate type-something label.
[x] I've staged the site and manually verified that my content displays correctly.

CC: @mathiasbynens

Pushed the updated text, thanks for the prompt review!

Adding the DO NOT MERGE label until @koto gives the go-ahead for this to go live.

Resubmitted in https://github.com/google/WebFundamentals/pull/7270. That one is GTG from our side, Mathias.


How to use thread

i want use this lib like terminal but use thread tell me this
src/main.rs:82:23: 82:36 error: the trait `core::marker::Send` is not implemented for the type `*mut libssh2_sys::LIBSSH2_CHANNEL` [E0277]
src/main.rs:82     let thread_join = thread::spawn(move || {
                                     ^~~~~~~~~~~~~

Thanks for the report! This is unfortunately because libssh2 itself isn't thread-safe. Channels can't be sent to other threads as the Session and all of its derivative objects must be used in the same thread.
To juggle a bunch of channels at once you'll need to use nonblocking I/O instead of blocking I/O unfortunately.

but i set nonblocking I/O, response error [-37] would block

Yeah unfortunately using nonblocking I/O will be a bit more cumbersome as the blocking needs to all be coordinated through elsewhere.


No Clients

Nice job, i just install and works nice.
I see the led screen don't show any clients anymore after the install, and at the admin panel also no clients connect.

Hey @roon2010,
I am glad the install worked fine for you.
If I understand correctly, you observe that the LED display and admin panel to not display any info about connected clients.
This proves that our patch erases all traces of them. (see section 3.2 of the Documentation
So, the issue you're describing seems to be in the "it's a feature" dimension :)
It should probably be possible to query the information from the process and display it.
However, this touches areas of the mudi code that we're not familiar with.
How important is it to you to have the information on the display?

Hello Linuzifer,
For me its not a problem.
I have seen that the LUCI panel there we can see the connected clients.
But i am oke with it like this.
Very nice job.


unify authn for xds and sds clients

Please provide a description of this PR:
To help us figure out who should review this PR, please put an X in all the areas that this PR affects.

[ ] Ambient
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

Please check any characteristics that apply to this pull request.

[ ] Does not have any user-facing changes. This may include CLI changes, API changes, behavior changes, performance improvements, etc.

@hzxuzhonghu: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-notes_istio
919da348a289226bb8efb77a11e38c9b61704ec6
link
true
/test release-notes

unit-tests-arm64_istio
919da348a289226bb8efb77a11e38c9b61704ec6
link
true
/test unit-tests-arm64

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

@hzxuzhonghu: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-notes_istio
919da348a289226bb8efb77a11e38c9b61704ec6
link
true
/test release-notes

unit-tests-arm64_istio
919da348a289226bb8efb77a11e38c9b61704ec6
link
true
/test unit-tests-arm64

unit-tests_istio
919da348a289226bb8efb77a11e38c9b61704ec6
link
true
/test unit-tests

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

@hzxuzhonghu: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests-arm64_istio
919da348a289226bb8efb77a11e38c9b61704ec6
link
true
/test unit-tests-arm64

unit-tests_istio
919da348a289226bb8efb77a11e38c9b61704ec6
link
true
/test unit-tests

release-notes_istio
3cf7df87def1362abe93cfedeeb253d04d5ec604
link
true
/test release-notes

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

@hzxuzhonghu: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests_istio
919da348a289226bb8efb77a11e38c9b61704ec6
link
true
/test unit-tests

release-notes_istio
3cf7df87def1362abe93cfedeeb253d04d5ec604
link
true
/test release-notes

unit-tests-arm64_istio
3cf7df87def1362abe93cfedeeb253d04d5ec604
link
true
/test unit-tests-arm64

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

@howardjohn ptaL


Parse & stringify gql when documentMode=string

documentMode=string is perfect for graphql-request, but it simply
inlines any referenced fragments. This means that fragments that
are included more than once in a single query for example, by being
included by another fragment in that query, as well as at the top level -
are thus duplicated in the query, and then fail when send to the server.
This PR parses and stringifies queries ahead of time such that
no duplicates occur.

@dotansimha What do you think?

@ardatan , I agree with you. Some plugins works with strings, and it’s not codegen’s responsibility to manage that.
But - what do you think should be done in order to improve that?
I think we need something like removeDuplicateFragments(…) when used with documentMode=string. We do need to remove duplicates, otherwise it’s not executable, and the duplication is created by the codegen - so we need to fix that
How do you suggest to do this otherwise?

Tracking here: https://github.com/prisma-labs/graphql-request/issues/176
When this will be supported, it will make it easier for this library.


Binding Lifecycle?

In Scaldi there was the very handy notion of a lifecycle, where one could define what should happen at the end of the life of a bound instance. Is there something equivalent in Kodein? If not, this would be a really useful addition.

Can you explain what you mean by the end of the life of a bound instance ?
Maybe a documentation link ?

Here is an example from the Scaldi documentation:

bind [Server] to new HttpServer initWith (.init()) destroyWith (.shutdown())

Basically, defining a destructor when a binding needs cleaned up in a specific way.


Implement auth token refresh

I'm not sure if this problem affects services other than Datastore. What I see is after 4 hrs (I think it is auth token ttl) after server start, I sometimes (not always) see 401 "Invalid Credentials" responses.  My theory is that it is because of race condition here: https://github.com/GoogleCloudPlatform/gcloud-ruby/blob/master/lib/gcloud/datastore/credentials.rb#L39
Probably check for expiration time should be more conservative, and consider token expired few seconds or minutes before actual date.
Other option is to retry request at library level.
At application level it is hard for me to decide if I should retry the request, normally 4XX requests should not be repeated.

Google's default expiration for OAuth access tokens are an hour. I think you may be right about a race condition where the token expires after a request is sent, but before the request is processed.

@timanovsky Have you had a chance to look at #641? I prefer this solution to retries. If merged, it will close this issue, although you can always re-open.

Me too. Looks good
Best regards,
Alexey Timanovsky.
On 28 April 2016 at 16:39, Chris Smith<EMAIL_ADDRESS>wrote:

@timanovsky https://github.com/timanovsky Have you had a chance to look
at #641 https://github.com/GoogleCloudPlatform/gcloud-ruby/pull/641? I
prefer this solution to retries. If merged, it will close this issue,
although you can always re-open.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/gcloud-ruby/issues/638#issuecomment-215425625


West US

Is West US missing from this or is that intentional (not supported)?

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

ID: cca70845-100f-2cfd-aba3-34b7fa4a5264
Version Independent ID: 475b26e5-9e23-f769-3bd5-cbc4a678dbf0
Content: What are Azure Availability Zones?
Content Source: articles/availability-zones/az-overview.md
Service: azure
GitHub Login: @cynthn
Microsoft Alias: cynthn

Thanks for the feedback! We are currently investigating and will update you shortly.

@sspage this is intentional. West US does not currently support Availability Zones. Once it does we will update the documentation.


Fixed bug in MarkdownCode

Fixed crash bug and false text displaying while parsing markdown raw text with MarkdownCode.
Reason for crash: the length of an unescapedString, which is the receiver of func unescapeUTF16(), may not  be devided by 4, thus the implementation in unescapeUTF16() may exceeds the index of  String.characters.
Reason for false text displaying: wrong order of each 4 characters in an unescaped string.
For example: hex string: ... abcd efgh wert ... ->(wrong order)-> ... cdef ghwe ...

Merged, thanks for the fix, hand't noticed that one myself.


Update Composer dependencies (2022-03-01-00-06)

Visual regression test passed!
View the visual regression test report


Users can share Profiles and Campaigns on social media

PT link
https://www.pivotaltracker.com/story/show/160369990
User story
As a system owner
In order to gain more traffic to my site
I would like my users to be able to share content on social media

Tasks

Add gem 'social-share-button'
Configure for twitter and Facebook
Add media share buttons to campaign and artist profiles (performer)

New Gems:
gem 'social-share-button'

Pull Request Test Coverage Report for Build 5

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 85.443%

Totals

Change from base Build 31:
0.0%

Covered Lines:
135

Relevant Lines:
158

💛  - Coveralls


fix custom repo url persistence and small typos in ui labels

This pr fixes the loading of a configured custom repo url in the ui. The custom repo url was persisted but not displayed correctly.
Also some small typos are corrected.

Sorry for the delay in replying! Things got busy for me and then I was flying from the USA to Australia. Would you still like this to be merged, @fsimmend?

i had some difficulties to set up our environments to test it together with a snapshotted dsl but now it seems fine and i will reopen it soon. I had to fix some awkyard git issues where the folder name was in wrong camelcase checked in. I had to do 2 commits to fix that as it is not possible to fix wrong case in one commit. You can expect the pr to be reopened this week.


LNAV and VNAV button

Its very cool if you can programming these two Buttons LNAV and VNA

V

Will try with simConnect but it seems that MSFS didn't map it : https://forum.simflight.com/topic/60147-lnav-vnav-keys/

Ok, it is not possible with SimConnect => need to develop a WASM module to gather LVAR and HVAR that are not exposed


How could I chain animation from different code block?

I need chain the animation from different code block while I have a var of chain. But it didn't work after the chain finished, how could I do it?
var animationChain:EAAnimationDelayed = UIView.animateAndChainWithDuration...

func someFunction() {

	self.animationChain.animateWithDuration...
}

func anotherFunction() {

	self.animationChain.animateWithDuration...
}

Not sure what exactly are you trying to do but here's how you create animation chains:
https://github.com/icanzilb/EasyAnimation#chain-animations

Thanks, I have read that, and that's the main reason for me to try.  The chain looks awesome.
I consider it as something like serial dispatch_queue, it will auto start queue job after the previous job done. I will chain animations dynamically from different places, I really need a chain like that.
If I chain them in the same place, it works. But while I am add animations to it after the previous chained animations finished, It will never start again. The chain looks dead and not reusable once finished.
If I miss used it, please let me know :)

I'm not sure if you could use the API in this way ... at least I never intended to have it working like that :) But I'll give it a try when I have a bit of time and see what happens

Thanks, happy to hear your plan, that would be awesome.


Parser: Support for backticks

This is most of the work needed to support backticks, aka literal identifier names:

ColIdent and TableIdent define their semantics by their APIs, and their members are unexported. Unfortunately, they still have to export String, without which we can't support the info pages. So, we still need to be vigilant about such implicit usage.
These vars have been propagated through the code to make sure that the restrictions and rules are enforced.
Backtick ids can now contain any character, and they can be in the query, vschema or schema. They will be matched and escaped correctly.
Bind vars for backtick ids will substitute non-compliant chars with _.
Additionally, the name comparison semantics for table or column references within a SQL statement were not following MySQL's behavior: table and keyspace names are case sensitive and column names are not. These rules are now consistently enforced, even if one used an a.B style reference.

There are a few stray places where backticks are used incorrectly. I'll make a separate PR to clean them up.

@ashudeep-sharma this may cause merge conflicts for the multi-value insert work. If they're hard to resolve, I can wait for you to submit and then merge your changes into my PR.

Addresses #2373, #2022

if i == 0 && isDigit(uint16(c)) {
buf.WriteByte('')
continue
} else if !isDigit(uint16(c)) {
buf.WriteByte('')
continue
}
is the same thing as:
if i == 0 || !isDigit(uint16(c)) {
buf.WriteByte('_')
continue
}
Draw a truth table.
On Mon, Dec 19, 2016 at 4:24 PM, sougou<EMAIL_ADDRESS>wrote:

@sougou commented on this pull request.
In go/vt/sqlparser/ast.go https://github.com/youtube/vitess/pull/2388:

}

}
buf.WriteByte('`')
+}

+func compliantName(in string) string {

var buf bytes.Buffer
for i, c := range in {

if i == 0 && isDigit(uint16(c)) {

	buf.WriteByte('_')

	continue

}

if !isLetter(uint16(c)) && !isDigit(uint16(c)) {

	buf.WriteByte('_')

	continue

}

It's not that simple. This would work:
if !isLetter(uint16(c)) {
if i == 0 && isDigit(uint16(c)) {
buf.WriteByte('')
continue
} else if !isDigit(uint16(c)) {
buf.WriteByte('')
continue
}
}
But it's less readable.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/youtube/vitess/pull/2388, or mute the thread
https://github.com/notifications/unsubscribe-auth/ALbWku0LwhJn7YqYnbYxEQmp1E_goXS6ks5rJyBPgaJpZM4LQf9F
.

You're right. I must have mistyped something the first time, because the tests were failing. I'll fix this on my next PR.


INGESTION RULES FOR KAFKA

Kafka play a significant role in streaming data system.
At present,the information center basically uses Kafka as the streaming hub.
So expect crate support kafka borker like mqtt
e.g.
CREATE INGEST RULE kafka_humidity_rule
ON kafka
WHERE topic like '%humidity%'
INTO kafka_humidity;
This feature is more important in the enterprise.
Thanks!

At the moment we do not have any plans to support additional streaming protocols, such as the Kafka Protocol.

We removed the INGEST rule functionality a while ago.
To get data from Kafka into CrateDB we're improving the SQL compatibility so that tools like kafka-connect-jdbc work.
You can find known issues for kafka-connect-jdbc here


docs: corrected "tweating" -> "tweaking"

PR Type
What kind of change does this PR introduce?

Documentation content changes
What is the current behavior?
n/a
What is the new behavior?
spelling improvements
PR Checklist
Please check if your PR fulfills the following requirements:

[ ] Tested code with current supported SDKs
[ ] Docs have been added/updated which fit documentation template. (for bug fixes / features)
[ ] Unit Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
[ ] Wasm UI Tests are not showing unexpected any differences
[x] Contains NO breaking changes
[ ] Updated the Release Notes
[ ] Associated with an issue (GitHub or internal)

Other information

Internal Issue (If applicable):

/azp run