Add OpenCL support

Add OpenCL support with help from @hughperkins and @jcjohnson.
Add example for using NIN Imagenet model
Update README with example for running using OpenCL and NIN.
Closes #44

Hi Shubhanshu, looks good. Dont suppose... do you have an example output photo that looks a bit more Picasso-like :-)  (If you dont, I think I have a few lieing around, or else you could grab one of the photos on the original OpenCL issue thread perhaps?)

@hughperkins yeah these are the images I generated using the NIN model and the new OpenCL code.

Yes.  I think it'd be good to have some images comparable with the CUDA ones.  Otherwise it looks like the opencl version just kind of produces blurry copies of the original photo, with the colors changed a bit :-P  Can you maybe add some of the photos from the OpenCL thread perhaps?

Huge thanks to @hughperkins and @napsternxg for getting this to work! I'm traveling for the next couple weeks so I may be a bit slow to test and merge.

Actually merging wasn't too bad at all, but I had to work around the removal of loadcaffe_wrapper.
In the case of clnn backend, I'm using `loadcaffe

It turns out that merging wasn't too bad. I did have to work around the removal of the loadcaffe_wrapper though.
In the case of a clnn backend, I'm using loadcaffe to load with nn backend, then casting the whole thing to clnn. Running the same image with cudnn and clnn seems to give the same results:
This one is using cudnn:

This one is using the same settings with clnn:

Awesome!  Thank you Justin.  And thank you for having taken the time to check that the results are comparable, and providing the outputs from this.  Not sure they are quite exactly the same, but seem fairly similar :-)

Thanks guys for all the help =) This completes my first pull request to a torch library =)

Thank you Shubhanshu :-)


Support GUI Actions for Write Operations in Frontend

Description:
We need to support GUI actions for write operations (POST, PUT, PATCH, DELETE) in the frontend. This requires proper handling of state-changing HTTP methods and integration with an existing service provider endpoint developed by the backend team.
Read (GET) operation is already supported, and write actions is partially supported, but not tested.
Task Details:

Frontend Integration:

Ensure the frontend handles POST, PUT, PATCH, and DELETE methods via fetch requests.
Pass the Authorization token (dialogToken) in the request headers.
Handle responses for success and error scenarios (e.g., status codes, errors).
Ensure UI feedback is provided after state changes (e.g., success, error messages).

Should POST be supported as a form, and not a fetch with payload?

Testing:

Verify that GUI actions work correctly with the existing service provider endpoint.
Test various scenarios including successful writes and error handling.

Acceptance Criteria:

[ ] GUI actions for POST, PUT, PATCH, and DELETE are fully functional in the frontend.
[ ] The frontend communicates with the backend service provider endpoint using the correct HTTP methods.
[ ] Proper error handling and UI feedback is implemented for all actions.

This task focuses solely on ensuring the frontend supports write actions via existing backend endpoints.

Ref.: https://github.com/Altinn/dialogporten-serviceprovider


Run vm remove_from_disk via MiqQueue

https://bugzilla.redhat.com/show_bug.cgi?id=1183167
Previously the removal of a vm needed the Automate Role and VIM broker
on the same server. This PR allows the vm remove_from_disk to be
routed to the appropriate worker which has the ems_operations role.

@gmcculloug @Fryguy @brandondunne
Please review


Can't list home directory content

Version: 3.0.0-rc.2
Original messages:

I started UI in ~ and I couldn't navigate to child dirs from inside ui. Only to parent.
Maybe this is something worth investigating.

I get no errors in the console, but I get an "error" in the ui.

I can't select my user to go to ~ path.

See https://github.com/vuejs/vue-cli/issues/1596#issuecomment-397827603

Unfortunately I get nothing on the browser console either.

Could you follow those steps to help me find the cause of the issue:

open the Chrome devtools
refresh the page
reproduce the error in the UI
go to the /graphql websocket request in the network tab
open the Frames sub tab
check for the message with a down red arrow, those are the server to client ones
find the ones with the errors array
paste the result here

I identified the issue! It was cause by the wrong first try with the / in the path, inside json.
Although it is interesting the fact that it was "complaining" because of a project inside Trash Bin.
Here's the error frame from graphql:
{
    "type": "data",
    "id": "19",
    "payload": {
        "errors": [
            {
                "message": "/Users/zoispag/.Trash/package.json: Unexpected token / in JSON at position 1047",
                "locations": [
                    {
                        "line": 18,
                        "column": 5
                    }
                ],
                "path": [
                    "folderOpen",
                    "children",
                    2,
                    "isVueProject"
                ]
            }
        ],
        "data": {
            "folderOpen": {
                "name": "zoispag",
                "path": "/Users/zoispag",
                "favorite": false,
                "isPackage": false,
                "isVueProject": false,
                "children": [
                    ...
                ],
                "__typename": "Folder"
            }
        }
    }
}


feat: prefabs and data oriented approaches

Summary
All types of common content such as ambience tracks, chest loot, entity component prefabs and potentially other new integrations should be loaded through external data, minimizing programming and overall bloat.
See the example: PrefabManager.cs
Reasonings
Providing a way to load content from data files such as .json, .hjson, .prefab, etc. is a nice way to maintain a simple and scalable codebase.

# Dagger.prefab
ProjectileSticky: {
    Data: {
        Flags: NPCs
        NPCMaxStack: 5
    }
}

ProjectileShortsword: { }

# Tomahawk.prefab
ProjectileSticky: {
    Data: {
        Flags: All
        NPCMaxStack: 5
    }
}

ProjectileGravity: {
    Value: 0.2
}

Possible prefab designs for a custom parser, the issue is making this centralized enough to suit all other types of possible prefabs.

This was resolved by implementing prefabs as assets.


Azure storage blob not able to download files

Describe the bug
I am trying to download the complete storage blob to my hard-disk.
Running the following script with dryrun output all the files correctly:
az storage blob download-batch -d .  --source xxx --dryrun
download action: from xxx to .
    pattern None
  container xxx
      total 374
 operations
  - neo4j-2017-09-17-18:38.bak.tar.gz
  - neo4j-2017-09-17-19:24.bak.tar.gz
  - neo4j-2017-09-30-16:03.bak.tar.gz
  - neo4j-2017-09-30-16:20.bak.tar.gz
  - neo4j-2017-09-30-16:30.bak.tar.gz

But when i try to run without --dryrun it fails and throws the following error:
('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: incorrect header check',))
Traceback (most recent call last):
  File "/opt/az/lib/python3.6/site-packages/urllib3/response.py", line 324, in _decode
    data = self._decoder.decompress(data)
  File "/opt/az/lib/python3.6/site-packages/urllib3/response.py", line 77, in decompress
    ret += self._obj.decompress(data)
zlib.error: Error -3 while decompressing data: incorrect header check

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/az/lib/python3.6/site-packages/requests/models.py", line 750, in generate
    for chunk in self.raw.stream(chunk_size, decode_content=True):
  File "/opt/az/lib/python3.6/site-packages/urllib3/response.py", line 494, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "/opt/az/lib/python3.6/site-packages/urllib3/response.py", line 466, in read
    data = self._decode(data, decode_content, flush_decoder)
  File "/opt/az/lib/python3.6/site-packages/urllib3/response.py", line 329, in _decode
    "failed to decode it." % content_encoding, e)
urllib3.exceptions.DecodeError: ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: incorrect header check',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/az/lib/python3.6/site-packages/azure/multiapi/storage/v2018_03_28/common/storageclient.py", line 269, in _perform_request
    response = self._httpclient.perform_request(request)
  File "/opt/az/lib/python3.6/site-packages/azure/multiapi/storage/v2018_03_28/common/_http/httpclient.py", line 92, in perform_request
    proxies=self.proxies)
  File "/opt/az/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/opt/az/lib/python3.6/site-packages/requests/sessions.py", line 686, in send
    r.content
  File "/opt/az/lib/python3.6/site-packages/requests/models.py", line 828, in content
    self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b''
  File "/opt/az/lib/python3.6/site-packages/requests/models.py", line 755, in generate
    raise ContentDecodingError(e)
requests.exceptions.ContentDecodingError: ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: incorrect header check',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke
    cmd_result = self.invocation.execute(args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 328, in execute
    raise ex
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 388, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 378, in _run_job
    cmd_copy.exception_handler(ex)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/__init__.py", line 234, in new_handler
    handler(ex)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/__init__.py", line 177, in handler
    raise ex
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 357, in _run_job
    result = cmd_copy(params)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 171, in __call__
    return self.handler(*args, **kwargs)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 442, in default_command_handler
    return op(**command_args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/operations/blob.py", line 161, in storage_blob_download_batch
    for blob_normed in blobs_to_download)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/operations/blob.py", line 161, in <genexpr>
    for blob_normed in blobs_to_download)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/operations/blob.py", line 134, in _download_blob
    progress_callback=progress_callback)
  File "/opt/az/lib/python3.6/site-packages/azure/multiapi/storage/v2018_03_28/blob/baseblobservice.py", line 1872, in get_blob_to_path
    timeout)
  File "/opt/az/lib/python3.6/site-packages/azure/multiapi/storage/v2018_03_28/blob/baseblobservice.py", line 2088, in get_blob_to_stream
    operation_context
  File "/opt/az/lib/python3.6/site-packages/azure/multiapi/storage/v2018_03_28/blob/_download_chunking.py", line 42, in _download_blob_chunks
    list(executor.map(downloader.process_chunk, downloader.get_chunk_offsets()))
  File "/opt/az/lib/python3.6/concurrent/futures/_base.py", line 586, in result_iterator
    yield fs.pop().result()
  File "/opt/az/lib/python3.6/concurrent/futures/_base.py", line 432, in result
    return self.__get_result()
  File "/opt/az/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_result
    raise self._exception
  File "/opt/az/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/az/lib/python3.6/site-packages/azure/multiapi/storage/v2018_03_28/blob/_download_chunking.py", line 94, in process_chunk
    chunk_data = self._download_chunk(chunk_start, chunk_end).content
  File "/opt/az/lib/python3.6/site-packages/azure/multiapi/storage/v2018_03_28/blob/_download_chunking.py", line 122, in _download_chunk
    _context=self.operation_context
  File "/opt/az/lib/python3.6/site-packages/azure/multiapi/storage/v2018_03_28/blob/baseblobservice.py", line 1750, in _get_blob
    operation_context=_context)
  File "/opt/az/lib/python3.6/site-packages/azure/multiapi/storage/v2018_03_28/common/storageclient.py", line 381, in _perform_request
    raise ex
  File "/opt/az/lib/python3.6/site-packages/azure/multiapi/storage/v2018_03_28/common/storageclient.py", line 311, in _perform_request
    raise AzureException(ex.args[0])
azure.common.AzureException: ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: incorrect header check',))

Expected behavior
It should download all files from azure to my disk.
Additional context
I am able to download the first file if I click the properties and remove the following key-values from file:
ContentType: application/tar+gzip
ContentEncoding: gzip
I have a lot of files and this doesn't seems to be a correct way to download the files.

@abdullah353 I was able to repro this.
@zezha-msft can you help? Is there a way in the sdk to bypass this?
To summarize, having the content settings: "contentEncoding": "gzip" and ContentType: application/tar+gzip blocks get_blob_to_path from properly downloading a blob.

Hi @williexu, this is a known issue. There is a workaround, but we haven't integrated that into the SDK.
We are currently tracking this work item with this new issue.

I've logged this item to be included in the next generation of the Storage SDK: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob.
It will be part of the GA criteria.


Add Async extensions for Joinads from Tomas' recent articles.

These don't facilitate the match! syntax, but the operators are very useful.

we now have https://github.com/fsprojects/FSharpx.Async

Was this added there?

@tpetricek and @forki, I just submitted a simplified version of Async.Any suggested by @haf. Thoughts? https://github.com/fsprojects/FSharpx.Async/pull/12
Once that is in, I'll add the remaining items to the AsyncBuilder. Or should we create a separate CE for these extensions? @dsyme, any suggestions on extending AsyncBuilder versus creating more of a query builder for Asyncs? Seems the former is fine, but I'm not sure of the consequences or design guidelines.

I'll close this as it relates to code that has now moved elsewhere (FSharpx.Async and FSharp.Control.AsyncSeq)


Add ability to create a report per-target/extension

Hey Paul,
Similar to #39, I'm curious on your take of how easy it would be to modify SitRep to allow the caller to specify a flag to output a report per target, per extension, etc.
For example, 'I have an app with an app, app clip, widget extension, live activity widget extension' and so on. The idea here would be to see at a glance where the majority of the code is from a target level. Potentially some interesting analysis to 'refactor shared code into swift package'.

As long as the target/extension were in a clearly marked group, this wouldn't be tricky at all. I'm not sure whether this would mean querying the Xcode project file or not, but if it did… 💀   (I think! Maybe there are smart, modern ways of doing this.)


Update MANIFEST.in to enable 'python -m build` to work

A few edits to MANIFEST.in were necessary to get python -m build to work as expected.
This should probably be integrated into the CI at some point.

@mwtoews could you remove MANIFEST_pygeos.in then? (or check if that this has other things to add)

thanks @jorisvandenbossche, this merge has been reviewed. The significant include was for pyproject.toml. The Cython-generated C files don't need to be excluded from shapely/, as they already seem to be ignored.
So at some point, a good CI check would be to:
python setup.py sdist
# figure out what dist/*.tar.gz to use
tar xf $SDIST_TGZ
cd $SDIST
python -m build

The Cython-generated C files don't need to be excluded from shapely/, as they already seem to be ignored.

From a quick test locally, for me they are included.
Maybe the difference is whether you started from a cleaned repo or not? It's always good to first do a git clean -xdf when running packaging stuff, but explicitly ignoring the shapely/*.c files might still be useful?

Strange, as I have several shapely/*.c files, but these don't get included. There must be some implicit magic happening somewhere. I've added further commit to explicitly exclude these, and python setup.py sdist has a harmless warning:

warning: no previously-included files matching '*.c' found under directory 'shapely'

This should probably be integrated into the CI at some point.

With the copied release.yml workflow from pygeos, we actually do have that now. I will push a small update so that this gets triggered here.

The sdist artifact can be downloaded from https://github.com/Toblerity/Shapely/actions/runs/1540852171

Thanks @jorisvandenbossche, the additions look good.


pyFerret scalability:  SIMPLE version of D=agg.member syntax

Reported by steven c hankin on 10 Nov 2016 22:43 UTC
This ticket documents the implementation of the SIMPLE version of the agg.member syntax discussed in ticket #2423.  A single level D=agg.member syntax that effects

SHOW DATA 12.3
PLOT var[ 3. titles shown on plots and listings with expressiond containing D= such as "PLOT vard=12.3 - var[d=12.1]"

Also added new command qualifier SHOW DATA/MEMBERS and deprecated SHOW DATA/FILES.
Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/2484

Modified by steven.c.hankin on 10 Nov 2016 22:44 UTC

Comment by ansley.b.manke on 14 Nov 2016 19:49 UTC
With this new syntax, the agg.member syntax is working for forecast and ensemble aggregations, but not for time as discussed in #2423, and not yet for work for Unions, which are done a bit differently.
Reopening this, to make this work for Union aggregations.

Modified by ansley.b.manke on 14 Nov 2016 19:49 UTC


Refactoring downstream repos

confluent-cloud-plugins and confluent-security-plugins are facing excessive builds being triggered by upstream repos. The root cause is duplicate mentions of these repos in downStreamRepos. For example, this repo has kafka-rest as a downstream repo but confluent-cloud-plugins and confluent-security-plugins are also listed as downstream repo in kafka-rest. Furthermore, this repo has schema-registry as a downstream repo but schema-registry has kafka-rest,confluent-cloud-plugins, and confluent-security-plugins listed as downstream repos.
This means that for every build in this repo, kafka-rest is built two times, confluent-security-pluginsis built four times, and confluent-cloud-plugins is built eight times (confluent-cloud-plugins is also listed as downstream repo in confluent-security-plugins).
Removing confluent-cloud-plugins, confluent-security-plugins, and kafka-rest as downstream repos in this repo will still trigger the downstream builds in those repos from the schema-registry downstream build but this change will remove the duplicate builds from this repo directly building kafka-rest, confluent-cloud-plugins and confluent-security-plugins.
This commit will be pint merged all the way to master.
Slack: https://confluent.slack.com/archives/C09EP1SS3/p1702678296430679 and
https://confluent.slack.com/archives/C09EP1SS3/p1701141343781609?thread_ts=1701138034.078119&cid=C09EP1SS3

Checking with my team (schema-registry) and devprod team to see how to best clean up the downstream repos. Will reopen PR after with updated changes accordingly


Broker Codec implementation

This uses a codec rather than forcing json marshalling. Not entirely sure about this yet. It highlights some problems with the codec. The codec is a legacy artifact of net/rpc. It works but its not "clean".

Not merging. Unhappy with the interface.


Add a photo for each article based on publication.

Each article should have the publication's photo instead of the placeholder image.

Yep! I like that better. A little bit harder to implement because the RSS doesn't have article thumbnails you will maybe have to scrape the webpage?

Yes, we need to scrape it once we get article link from rss
Assign it to me


[Feature]: Remove and replace Chakra UI elements in Footer Component

Feature Request
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I have an issue when [...]
Currently, there are a few components in the footer component that are leveraging Chakra UI. They would need to be replaced by Preline or existing atoms in the project.
There are also code that is commented out that should be removed entirely.
Describe the solution you'd like
A clear and concise description of what you want to happen. Add any considered drawbacks.
Replace the components leveraging Chakra UI with Tailwind equivalents or with pre-existing atoms. Remove all instances of Chakra UI and any commented code in this component.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
n/a
Teachability, Documentation, Adoption, Migration Strategy
If you can, explain how users will be able to use this and possibly write out a version in the docs.
Maybe a screenshot or design?
n/a

Could you please assign this issue to me 😊

Could you please assign this issue to me 😊

Sorry it took so long to get back to you. So we don't have Preline installed in the project yet but if you'd like, you can take that on and this as well. It's currently assigned to someone else but I can move it to you if you're interested.


Retain associated build artifacts also

Hi Mario,
your extension is great. But please provide an option to retain the associated artifacts also. I wrote a PowerShell script for TFS2015 which did the trick for me. Unfortunately it doesn't work on VSTS. But that's how it could work:
$keepforever = @{ keepforever='true' }

$jsonKeepForever = $keepforever | ConvertTo-Json

$uriForBuildUpdate = "$($env:SYSTEM_TEAMFOUNDATIONCOLLECTIONURI)$($env:SYSTEM_TEAMPROJECTID)/_apis/build/builds/$($env:BUILD_BUILDID)?api-version=2.0"

Invoke-RestMethod -UseDefaultCredentials -Uri $uriForBuildUpdate -Method Patch -Body $jsonKeepForever -ContentType "application/json"

The trick was that $env:BUILD_BUILDID pointed to the associated artifact during Release phase also so this worked.
Thanks you very much in advance.

Hi @gereon77
by reading in the documentation "Builds that are deployed as part of releases are also governed by the release retention policy." I always thought that if I do mark a release as to be retained indefinitely, it will automatically apply the same on the related builds.
Now that you raised this question, I checked the documentation again and I do read the following:

The build linked to a release has its own retention policy, which may be shorter than that of the release. If you want to retain the build for the same period as the release, set the Retain build checkbox for the appropriate environments. This overrides the retention policy for the build, and ensures that the artifacts are available if you need to redeploy that release.

This being said, I took a look in one of my releases and indeed there is an option on the release that will make it retain the artifacts:

Wouldn't this be sufficient without going to mark the associated builds with the retain indefinitely check?
It is not a difficult thing to implement, however I would like to make sure that is really a wise thing to do.

Well, to be honest I was aware of this flag and usually it's ticked by default. But what I don't like is the fact that the build is "kept forever" internally without this lock symbol in the builds list. So I guess it's also not exact the same technique. That's why I would prefer to do it with the real keep forever function because then the lock is visible and it's clear why the build isn't deleted by the retention policy.
But of course it should be optional in the extension settings. :) Thank you so much.

Ok, sound good. I'll test some code in the upcoming days. Once ready, I'll poke you via this thread.

Hi again,
right now I showed my DevLead your extension and how it helped in our environment and there I saw that I was not right. The lock symbol is shown if a release holds a build artifact:

So due to this I think it is not necessary at all but probably nice to have...
Sorry for the inconvenience...
Best regards,
Gereon

Ok, good one as I had no time to actually verify it.
Considering that this is a built in option, I will not try to override that behavior with my task.
Thanks


Fixes for to_string, date_add and date_diff functions

Accurate calculations for date_add and date_diff.
For to_string, returns timezone hours and minutes which aligns with aws results.
Signed-off-by: Girjesh Rajoria<EMAIL_ADDRESS>

the PR is failing the tests (s3select_test)

@galsalomon66 please review the changes.

please check the following
date_diff(month,to_timestamp('2007-09-17T17:57:06Z'), date_add(month, 15 ,to_timestamp('2007-09-17T17:57:06Z')))
you can change the number-15 with some variable (range 1 -> 1000)
it discovers issues.

please check the following
date_diff(month,to_timestamp('2007-09-17T17:57:06Z'), date_add(month, 15 ,to_timestamp('2007-09-17T17:57:06Z')))
you can change the number-15 with some variable (range 1 -> 1000)
it discovers issues.

please check the following
date_diff(month,to_timestamp('2007-09-17T17:57:06Z'), date_add(month, 15 ,to_timestamp('2007-09-17T17:57:06Z')))
you can change the number-15 with some variable (range 1 -> 1000)
it discovers issues.

please check the following
date_diff(month,to_timestamp('2007-09-17T17:57:06Z'), date_add(month, 15 ,to_timestamp('2007-09-17T17:57:06Z')))
you can change the number-15 with some variable (range 1 -> 1000)
it discovers issues.

looks ok, for different options and ranges.
+1


Add a simple Kustomization file to allow use as a network base.

This allows something like:
bases:
- github.com/kubernetes-incubator/metrics-server//deploy/1.8+

/assign @kawych

/remove-lifecycle rotten

/assign @piosz

/unassign @kawych
/unassign @piosz
/assign @serathius

Hey Noah,
I don't see any benefits for adding only Kustomization file.
I think there is a place in metrics-server for adopting some manifests template solutions like kustomize or helm.
But I think we should have a discussion around it in community.

@serathius The reason is it allows Kustomize users to directly import the deployment from this repo, rather than having to copy it and deal with the joys of a local fork.


fix eda notebook linting

Fixes #13

Hi Eduardo,
How can we fix
The following command failed: nbqa flake8 .\nTo fix it: Install nbqa jupytext and run: pkgmt format

so the full error trace is:
No Python files are present to be formatted. Nothing to do 😴
course-material/intro-to-sql/making-your-first-query.md:cell_1:4:1: E722 do not use bare 'except'
Error linting
==================== Running: flake8 ====================
==================== Running: black --check . ====================
==================== Running: nbqa flake8 . ====================
The following command failed: nbqa flake8 .\nTo fix it: Install nbqa jupytext and run: pkgmt format

the actual error is:
course-material/intro-to-sql/making-your-first-query.md:cell_1:4:1: E722 do not use bare 'except'

the problem is this notebook: https://github.com/ploomber/sql/blob/main/course-material/intro-to-sql/making-your-first-query.md
try:
    %pip install jupysql --upgrade duckdb-engine pandas --quiet
    print("Success")
except:
    print("retry installing")

having except: is not passing the linting. you can fix it with except Exception:, but there's no need to have a try except statement there, I'd just put the %pip install

Checks pass now

I think if we merge this PR to main, then merge main to https://github.com/ploomber/sql/pull/17 that should fix the issues 17 is getting


Add addRasterLayers method to bridge

Status
READY
JIRA Ticket
SPACON-410
Description

bindMapView now saves reference to the google map
addRasterLayers takes an array of store ids, and adds all raster layers in those stores to the map, and removes overlays from stores not in that array
overlayFromLayer now returns TileOverlay, so that it can be saved and used to remove the overlay

Todos

[ ] Tests
[ ] Documentation
[ ] License

Steps to Test or Reproduce
Outline the steps to test or reproduce the PR here.
git fetch --all
git checkout <feature_branch>
./gradlew connectedCheck

@boundlessgeo/spatial-connect

LGTM


Add validation for configuration files

[ ] Validation for Service Config
[ ] Validation for Guvnor config

I've gone ahead and added a validation library that is triggered on loading the configs, just need someone to come and add appropriate validation tags now.


Please add arm64 support

i could use this amd64 on my mac, but want to avoid qemu if possible. Thanks

Added arm64 support. Should run on both amd64 and arm64. @costarslam Please get latest from dockerhub. Working on my machine. Can you please see if it is working on your mac.

Thank you :)


Another deadlock

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
I am seeing deadlock during dl_iterate_phdr similar to https://github.com/bloomberg/memray/commit/6fbadf72b66da53f1ac56ce2f505f79d6e2dbb2a
By adding a hack in the same place to avoid patching Smemray_Slib_Umemray_Ucc_Ulib.so everything works.
    if ( strlen(info->dlpi_name) < 1 ||
        strstr(info->dlpi_name, "memray_") || // <- new hack
        strstr(info->dlpi_name, "/ld-linux") ||
        strstr(info->dlpi_name, "/ld-musl") ||
        strstr(info->dlpi_name, "linux-vdso.so.1")) {
      // Avoid chaos by not overwriting the symbols in the linker.
      // TODO: Don't override the symbols in our shared library!
        LOG(WARNING) << "P1 " << info->dlpi_name;
      return 0;
    }

I'm not sure how to guess what the dlpi_name will be. But memray_ alone is dangerous because it's appearing in the path portion of the dlpi_name. Maybe checking that it's in the filename after any slashes?
The stack trace when the tests time out is with the dl being either libunwind.so or libcxxabi_Slibcxxabi_Ucc_Ulibrary.so
*** SIGTERM received by PID 3156388 (TID 3156388) on cpu 3 from PID 3156373; stack trace: ***
PC: @     0x7f38e0830a9a  (unknown)  memray::intercept::free()
    @     0x7f38ab409df1       1904  FailureSignalHandler()
    @     0x7f38fdd36e80<PHONE_NUMBER>  (unknown)
    @     0x7f3865e9b3eb         32  std::__u::ios_base::~ios_base()
    @     0x7f38e082a818         80  memray::LOG::~LOG()
    @     0x7f38e082b1f7        368  memray::linker::patch_symbols()
    @     0x7f38e082abdd        400  memray::linker::phdrs_callback()
    @     0x7f38fd1c3a7d        160  dl_iterate_phdr
    @     0x7f38e082a666        352  memray::linker::SymbolPatcher::overwrite_symbols()
    @     0x7f38e085a61e        112  memray::tracking_api::Tracker::Tracker()
    @     0x7f38e085c3c2         64  memray::tracking_api::Tracker::createTracker()
    @     0x7f386442e946         80  __pyx_pw_6memray_7_memray_7Tracker_3__enter__()
    @     0x55d5139afe33         48  cfunction_vectorcall_NOARGS
    @     0x55d513a8ae39        384  _PyEval_EvalFrameDefault

Expected Behavior
No response
Steps To Reproduce

Run memray with a Tracer

Memray Version
1.7.0
Python Version
3.11
Operating System
Linux
Anything else?
No response

Thanks for the bug report @sethtroisi. I have a sense of were the problem may be but there are a bunch of things of your setup that I don't understand. Could you help clarifying them?

Run memray with a Tracer

What do you mean with a "tracer"? Could you be a bit more explicit here?

Smemray_Slib_Umemray_Ucc_Ulib.so

Hummm. Where is this coming from? Normally wheels have some name like _memray.cpython-312-x86_64-linux-gnu.so. Were is this shared object coming from?

The stack trace when the tests time out is with the dl being either libunwind.so or libcxxabi_Slibcxxabi_Ucc_Ulibrary.so

Well this makes me a bit more nervous because if this is happening instide the C++ stdlib it means the hack may be just hiding a different error path.
In general, can you please provide a full reproducer so we can investigate? We do appreciate the report but unfortunately there is a lot of nuance and we would also like to add a test for this so we would appreciate if you could provide more information here.

Sorry for the long delay in
I meant Tracker e.g. this test deadlocks
from memray import Tracker
from memray._test import MemoryAllocator

def test_read_pid():
    # GIVEN
    output = "/tmp/test.bin"
    allocator = MemoryAllocator()

    # WHEN
    with Tracker(output):
        allocator.valloc(1024)

Smemray_Slib_Umemray_Ucc_Ulib.so is coming a cython compile of the code.
I will work on a full repro. It's quite possible this is related to a mismatch between Google's internal setup and your setup.py. I will work on narrowing the difference between the two setup configs which may fix #661 for me and then seeing if I reproduce.


Failed to execute postMessage after continue in ITP

For bug reporting only! If you're posting a feature request or discussion, please ignore.
Expected Behavior
I was going through ITP and  when i click on continue button after allowing the cookies, the page should redirect to the home page successfully.
Current Behavior
But the page loads to the fullpage_redirect.blade.php view with black screen and then there occurs error at the console.
Failure Information
I receive following error at the console.
Failed to execute 'postMessage' on 'Window': Invalid target origin 'https://' in a call to 'postMessage'.
I checked the code and there was only ##window.location.href = '{!! $redirect !!}'; code, which only redirects but the ITP Middleware handler needs a Request object which provides shop domain url.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.

Install the app in a browser with third party cookie disabled
Click continue in the window of ITP ask view

Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Package Version: 16.0.6
Laravel Version: 7.2.5
PHP Version: 8

Failure Logs
Here is a screenshot
https://snipboard.io/EJy3k2.jpg

Cleanup... Closing for now, cookies/ITP are removed in v17.0.0
Re-open if still and issue.
Thanks!


[examples] Update to support Next.js v9

[x] I have followed (at least) the PR section of the contributing guide.

Upcoming release of next has native typescript.
new typings of styles property of the document's initial props is an array of elements. I'm not sure why flush() was used here, but might be overlooking something.
small code style nit to not mutate ctx. (I can revert this in case of dislike 🙂)

Draft PR because<EMAIL_ADDRESS>is not released yet (and because maybe some of the other examples can use the same treatment)

We can resume the effort https://twitter.com/zeithq/status/1148140410130313218 :)

Rebased and fixed the type errors. When running, it doesn't seem like it's serverside rendering for some reason. Don't have any time right now to continue looking into it (on my lunch break).

Ok, I'm redoing this one in https://github.com/mui-org/material-ui/pull/16519


i3lock-fancy: Bugfix, make scrot overwrite file

Motivation for this change
After commit  https://github.com/resurrecting-open-source-projects/scrot/commit/489e3229045962be2f63535ecd70cd15e6e2414d scrot will no longer overwrite files unless the -o option is given. This commit makes the i3lock-fancy use scrot -z -o instead of just scrot -z.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Notify maintainers
cc @garbas , @vcunat , @NeQuissimus , @rail , @jokogr

just noticed a mistake in the commit message, i won't rebase & force push in order to preserve the reviewer state but whoever merges this probably wants to fix:

... This commit makes the i3lock-fancy use scrot -z -o instead of just scrot -o.

to

... This commit makes the i3lock-fancy use scrot -z -o instead of just scrot -z.

@NeQuissimus you are welcome. Yes this bug is somewhat annoying since screen locking is now broken on my machine :)

@NeQuissimus what else can I do so that this PR gets merged?
Not having a lock screen is quite annoying :)

My bad, I had wanted to try it out first.

yay, thank you for merging this. @NeQuissimus


java-openliberty: run as non-root user

Checklist:

[x] Read the Code of Conduct and Contributing Guidelines.

[x] Followed the commit message guidelines.

[x] Stack adheres to Appsody stack structure.

Modifying an existing stack:

[x] Updated the stack version in stack.yaml

Contributing a new stack:

Describe how application dependencies are managed:

Explain how Appsody file watcher is utilized:

Describe other Appsody environment variables defined by the stack image:

Describe any limitations and known issues:

Related Issues:

@uberskigeek @scottkurz - Can we close this now? I thought it was added in 0.2.0.

Yes this was merged..closing


SAP CAP Application not able to deploy.

Hi Team,
Our SAP CAP springboot application not able to deploy after adding this buildpack.
Buildpack : "https://github.com/SAP/cloud-authorization-buildpack/releases/latest/download/opa_buildpack.zip".
Please check the attachment for this error:
renegotiation-srv-green.log
Regards,
Jaganathan Gu

Solved internally.


More clarification needed

I'm beginning work on a new app that will require a daily notification at an exact time.
Does this plugin just handle permissions for this one use case (Android 14)? If so, how does this differ from the cordova-plugin-android-permission?

It just handles this one use case.
The logic for requesting the SCHEDULE_EXACT_ALARM permission (denied by default in Android 14) is different from other types of Android permissions covered by @NeoLSN's plugin. This plugin opens the Alarms & Reminders setting and prompts users to toggle-enable the permission themselves. They will then have to use the back arrow at the top of the screen to return to your app.
After requesting Alarms & Permissions, you will still need to request local notifications (e.g., POST_NOTIFICATIONS) using @NeoLSN's plugin for Android 12+ users.
I personally use this plugin with https://github.com/NeoLSN/cordova-plugin-android-permissions and https://github.com/fquirin/cordova-plugin-local-notifications to ensure notifications work for Android 12+ users.

Thank you for that wonderful explanation and for updating your readme!

 :)
One of the other forks should be on npm. If you find one that works, please link it here as a resource.
This plugin is on npm: https://www.npmjs.com/package/cordova-plugin-android14-schedule-exact-alarm


Studio header/Description  should be editable

Describe the bug
Studio description should be editable in studio page. Currently, it can be edited only from resource view/description tab. It should have the same behavior as resource view description tab.
What part of Nexus is affected

[x] Fusion
[ ] Delta
[ ] CLI
[ ] Documentation

To Reproduce
Expected behavior
A clear and concise description of what you expected to happen.
API calls (requests/responses)
If applicable, add the minimum requests/responses to help explain your problem.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

duplicate of #3168


Please invite me to the Recode-Hive GitHub Community Organization

Name
Ayesha Quazi
Discord Username (if applicable)
she_codes04
Additional Context
I would like to be part of this awesome community.

Invitation sent to join the GitHub Organisation. Welcome to the community 🎉
Don't forget after accepting to make it public so it appears on your GitHub profile for everyone else to see. You can do this by finding your name in the GitHub organisation list and change the dropdown to public https://github.com/orgs/recodehive/people


Updated flurry (Cache Performance Improvement)

Since Pingora became open sourced I've been experimenting and learning as much as I can, especially from TinyUFO.  While messing with TinyUFO I found a comment about not using Rust version 1.71 even though the MSVR is 1.72.  I've upgraded the flurry and quick_cache versions and then ran the TinyUFO benches.  The results are run using v0.5.1 for each crate, on a arch linux system with an 8 core CPU.  I'm not sure how this change would look on a more relevant server setup, but I would be interested in seeing the results.
The bench_hit_ratio and bench_memory look the same or similar enough between both version.
bench_perf (Ops per Second):

Cache Type
Type
0.4.0
0.5.1
diff

lru
single read
27215914
29318238
7.72%

moka
single read
10167350
9408540
-7.46%

quick_cache
single read
33161216
35265832
6.35%

tinyufo
single read
20067244
22591294
12.58%

tinyufo compact
single read
13532442
14353295
6.07%

lru
concurrent read
5536601
6433813
16.21%

moka
concurrent read
12408710
12613696
1.65%

quick_cache
concurrent read
23902774
44858196
87.67%

tinyufo
concurrent read
144783008
173088224
19.55%

tinyufo compact
concurrent read
69050896
75399064
9.19%

lru
mixed read/write
5445493
5493046
0.87%

moka
mixed read/write
13652672
13983480
2.42%

quick_cache
mixed read/write
54678828
91533376
67.40%

tinyufo
mixed read/write
54712464
60108592
9.86%

tinyufo compact
mixed read/write
55222964
59824780
8.33%

As you can see there is a significant increase in performance for TinyUFO, though quick_cache has an absurd increase.  Let me know if you have any questions or concerns with updating these crates.

Any updates on this one?

Thanks for contributing, this was included in our latest sync!


Incorrect inference when using an optional argument

🔎 Search Terms
Inference, Return, Arguments, Parentheses, Identity Function.
🕗 Version & Regression Information
This reproduces in all available playground versions (tried down to 3.3.3), and also in 5.3.3.
⏯ Playground Link
Link
💻 Code
This is a followup on https://github.com/microsoft/TypeScript/issues/49951 which @Andarist asked me to open a follow-up issue. Also relates to https://github.com/microsoft/TypeScript/issues/47599
Probably better to check the playground for code examples, but here's the TL;DR:
TYPES DECLERATIONS:
type Schema = Record<string, unknown> // modified from original for the sake of the example, if it doesn't make sense

type StepFunction<
  TSchema extends Schema = Schema,
> = (anything: unknown) => {
  readonly schema: TSchema
  readonly toAnswers?: (keys: keyof TSchema) => unknown
}

function step<TSchema extends Schema = Schema>(
    stepVal: StepFunction<TSchema>,
  ): StepFunction<TSchema> {
    return stepVal
  }

EXAMPLES:
Notice the returned object of all functions is the same! The difference is in whether we have the argument for the step function or not. Note that if I do Parameters<typeof myStepValue> even when the argument is missing, it's inferred correctly (!)
// WORKS: `keys` is inferred based on the `schema`
// - no argument for `step` function
// - no `return` keyword
const workingExample = step(() => ({
  schema: {
    attribute: 'anything',
  },
  toAnswers: keys => {
    // RESULT: `keys` inferred successfully as `attribute`
    type Test = string extends typeof keys ? never : 'true'
    const test: Test = 'true'
    return { test }
  },
}))

// FAILS: `keys` is not inferred based on the `schema`
// - has argument for `step` function
const nonWorkingA = step(_something => ({
  schema: {
    attribute: 'anything',
  },
  toAnswers: keys => {
    // RESULT: `keys` failed to be inferred hence defaults to `string`
    type Test = string extends typeof keys ? never : 'true'
    const test: Test = 'true'
    return { test }
  },
}))

🙁 Actual behavior
Nested value's function argument cannot be inferred correctly.
If I change the property (toAnswers) from a function to a simple property, there are no inference issues.
🙂 Expected behavior
Nested value function argument should be inferred correctly regardless of the return keyword or declaring the arguments.
Additional information about the issue
Like mentioned above, this is a followup on https://github.com/microsoft/TypeScript/issues/49951 and https://github.com/microsoft/TypeScript/issues/47599

It's an inferred schema object (something like Zod).

Ye, I get that - but I wonder what's the nature of the outer anything parameter. It stays unused in this example.
I think the fix for this is introducing an extra inference pass on return expressions from context-sensitive functions. I was thinking first about extending the intra-expression inference to handle this but I think that would be a worse solution. It wouldn't handle { toAnswers, schema } (consumer before producer).
It's funny-ish that the intra-expression inference is responsible for making this work:
type Schema = Record<string, unknown>;

type StepFunction<TSchema extends Schema = Schema> = (anything: unknown) => {
  readonly schema: (thing: number) => TSchema;
  readonly toAnswers?: (keys: keyof TSchema) => unknown;
};

function step<TSchema extends Schema = Schema>(
  stepVal: StepFunction<TSchema>,
): StepFunction<TSchema> {
  return stepVal;
}

const nowItsOk = step((_something) => ({
  schema: (thing) => ({
    attribute: "anything",
  }),
  toAnswers: (keys) => {
    keys;
    // ^?

    type Test = string extends typeof keys ? never : "true";
    const test: Test = "true"; // ok
    return { test };
  },
}));

Usually, context-sensitive functions make things to be inferred worse (like in your original example) - but this example above infers better when an extra context-sensitive function is included. This is a little bit unusual and purely related to how all of this is already nested in one context-sensitive function.

Oh, I thought you meant for the inner anything.
It's a store that allows to get data based on the inference of the schema, something like:
type StoreFor<TSchema extends Schema> = {
  get: <T extends keyof TSchema>(key: T) => TSchema[T]
}

type StepFunction<
  TSchema extends Schema = Schema,
> = (store: StoreFor<TSchema>) => {
  readonly schema: TSchema
  readonly toAnswers?: (keys: keyof TSchema) => unknown
}

Still fails and demonstrated in this playground link.

As for adding a function - well, I could add it - but it's a breaking change for the consumers of my library hence I prefer to refrain from it 😅

As for adding a function - well, I could add it - but it's a breaking change for the consumers of my library hence I prefer to refrain from it 😅

Oh, I certainly didn't imply that you should change this anyhow. I just forked ur example to demonstrate a TS behavior 😉 it was more convenient than having to retype the same thing with some dummy function names etc.

It's a store that allows to get data based on the inference of the schema, something like:

Do you have any example of when this store would actually be used and when it's type argument would be inferred? My hot take on this example is that there is no easy way to make this one work. It's a circular dependency of sorts. Your return type might depend on this parameter but its type depends on that return type.

Yes, I'll demonstrate how this is used in actual code more or less - I understand why this is confusing.
The schema defined in my example is not the same schema defined for the store.
Imagine I'm writing a wizard flow, and I have a parent global schema, that I can get previously answered values through the store. Each step in the wizard can defined a sub-schema for transient answers (which is defined through the schema attribute). The toAnswers function simply takes these transients answers and needs to return an object that satisfies the parent schema partially.
step((store) => ({
  schema: {
    fullName: string(),
  },
  toAnswers: (transientAnswers) => {
     return { firstName: transientAnswers.get('fullName').split(' ')[0] }
  },
}));

e.g. in this example you can assume I have a store argument that knows it supports only the parent-schema, which has firstName has an attribute, but is completely decoupled from the schema inside the step definition.

To make things simpler - the step function is actually generated through something I call StepCreator, which literally accept the parent-schema as argument (so no need to do hard inference there):
const creator = new StepCreator({ parentSchema: { firstName: string(), lastName: string() }})

const step = creator.step((store) => {...}) // like the `step` function above. the `store` argument is typed based on the constructor params

The schema defined in my example is not the same schema defined for the store.

Ah, ok - then the snipper in https://github.com/microsoft/TypeScript/issues/57021#issuecomment-1888949418 doesn't exactly show the real usage. Thanks for the explanation.
If those are two different schemas then ye, it might work.

This is basically #47599, specifically the part about

Perform a more robust check to determine "true" context-sensitivity -- for example, produce: _a => 0 should not be contextually sensitive because the relational target (n: number) => T does not use T in a covariant position. There are multiple ways we could do this

I don't quite understand this quote here. Doesn't _a => 0 use T in a covariant position? This 0 is a potential inference source for T.
Regardless, I think this particular issue here can be solved. The fix wouldn't have to rely on any change to context-sensitivity. It's just that returns from context-sensitive functions are not inferred from today (whereas annotated parameters are inferred from). Inferring from such returns recursively would fix this. I plan to make a PR for it soon-ish.
https://github.com/microsoft/TypeScript/issues/47599 was already mentioned in this thread but I find this umbrella issue to not be that helpful. All of the called-out examples in the first post work today. I understand that some of the ones posted below might still not work but it's quite hard to understand at a glance what still doesn't work. At the very least that first post could be revised to include those other broken examples.

Doesn't _a => 0 use T in a covariant position?

Poor wording on my part. What I mean there is that because _a's corresponding position in (n: number) => T is n: number, which has no occurrence of T, then we can be sure that treating _a => 0 as not-context-sensitive for the purposes of inferring T is safe.

@Andarist should have it been closed?

It has been marked as a duplicate of that umbrella issue - and many issues were linked to it as its duplicates. I think this one was nice since it focused on a more specific problem. I still think this one is fixable (I fixed it locally without breaking any test cases). It was a busy weekend for me though and I'm investigating a better fix than what I have so far. I'll report back when I'm done but it might take some days. TLDR: I still plan to open a PR fixing this 😉

Amazing, thanks for your effort!

Hey @Andarist - did you have any chance to look into this?


Cannot use destroy() or clear() on charts

             function removeAndAdd(){
                              var elem = document.getElementById(scope.id);
                              var parent = elem.parentNode;
                              var next = elem.nextSibling;
                              parent.removeChild(elem);
                              parent.insertBefore(elem, next);
                }

                scope.$watch('data', function (newVal, oldVal) {

                    if (newVal !== oldVal) {

                        removeAndAdd();

                        console.log('was destroyed');
                       //I tried to add PieChart.destroy() here but then PieChart as i assume is not existing yet so destroy cannot be executed//
                        var newChart = document.getElementById(scope.id).getContext("2d");
                        console.log('Charts0');
                        var PieChart = new Chart(newChart).Pie(scope.data, scope.options);
                        console.log('Charts1');
                       / I cannot why when i use PieChart.destroy() here the it looks like the data is still  avaiable but options not?//
                    }

                }, true);

I tried many things and still overlaping is happening, i tried deleting canvas and reloading again by javascript. I was looking after solution and found many people saying destroy() solve the problem, in my case not.
There is not something that could be use before watch starting doing staff something that would clear everything Charts from data and so on ? In my application charts are changing dynamiclly so withouth option funcionality it doesn't look so well

Needs a test case. I haven't seen this issue before. If scope.options no longer exists, it sounds like an angular problem.


D3v4: Removed support for selection.attr(Object)?

The current alpha release of D3v4 (4.0.0-alpha.49) does not support the syntax to pass an object to selection.attr(), where the current D3v3 release does:

selection.attr(name[, value])
name can also be an Object of name and value attributes.

Since I use this syntax often when many key-value pairs should be added to an element, I am wondering if this functionality will return in a future release?

This functionality has been implemented in https://github.com/d3/d3-selection-multi

Curran is correct; it was extracted to d3-selection-multi, which is not part of the default bundle.

Also see the d3-selection CHANGES.

Thanks Curran and Mike,
Must have overlooked this and was indeed using the default bundle. Well, that surely ends my internal debate on using the default bundle or compose my own!

You can also load it on top of the default bundle, e.g.,
<script src="https://d3js.org/d3.v4.0.0-alpha.49.min.js"></script>
<script src="https://d3js.org/d3-selection-multi.v0.3.min.js"></script>

Yes, however I was already thinking about it as I want to make the Dutch locale the default locale for  projects. I find myself copying the locale definition for each project involving (axis)labels. And that is, well, almost all the time.
And now with v4.0 it's not that much effort to create a bundle with the d3-goodies I need.
Thanks again Mike for all the effort in both the codebase and documentation/examples. Great job.


[Error] MP.showBanModal is not a function

I did /ban @username and nothing happened, then I looked in the console and saw the error below.
Same happens with /mute @uername
app.js:2400 Uncaught TypeError: MP.showBanModal is not a function
    at Object.exec (app.js:2400)
    at Object.sendMessage (app.js:2680)
    at HTMLInputElement.<anonymous> (app.js:5792)
    at HTMLInputElement.dispatch (jquery.min.js:3)
    at HTMLInputElement.r.handle (jquery.min.js:3)

#115


MySQLIntegrityConstraintViolationException doesn't trigger proper error output, but 500 error

Should trigger proper error output according to spec.

Not quite sure why RestfulExceptionMapper suddently needs to be updated.

Fixed.


fix(module: tree): fix nz-tree-node keep dragging class when nzBefore…

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md#commit
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

On draggable-with-two-confirmation example of ZORRO Documents keep dragging class when method nzBeforeDrop has been passed.
Once upon you dragged any tree-item, it keeps focus forever.
Issue Number: #7394
What is the new behavior?
dragging class will be removed after drag when nzBeforeDrop has been passed in.
Does this PR introduce a breaking change?
[ ] Yes
[x] No

Other information

有人解决吗，我也遇到了

I pushed the branch by mistake, I will reopen this PR

I can't overwrite your master branch, so I opened a new PR(includes your codes) https://github.com/NG-ZORRO/ng-zorro-antd/pull/8015


Feature Request : Notes or Mini Wiki

Description of your request
Add a section, separate from the rest, were you can store information, like notes and links to articles.
Maybe you do a bookmark page, were you could store links to articles, descriptions and notes.
The wysiwyg editor or a markdown editor are widely used.
You could also have the option of creating a link to existing plants or a link to the note in the plant status page.
Example : I create a "note" about how to harvest basil, then I can go into my basil plant's entry and bring up a list of existing "notes" and link that note to the plant. Then in the future, I can go into the plant and have the link to my notes right there.
Describe alternatives you've considered
Currently, I am using Bookstack to store gardening information.
It would be cool to have everything in one place.

Hi, thanks for your request. This is a duplicate of #283 and will be worked on in that particular issue.

Ah, didn't see the other request. Thank You!


Cilium Health Endpoint does not properly use IPv6 for HTTPProbe

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
We are using Cilium on a cluster with IPv6 only (and without kube-proxy among other things).
Upgraded cilium from 1.11.1 to 1.11.7 (before 1.12.0). However, after upgrade, cilium health endpoint is unable to retrieve httpProbe IPv6, with the following event message:
Get "http://<nil>:4240/hello": dial tcp: lookup <nil>: no such host

No problem with previous version 1.11.6.
Cilium Version
v1.11.7
Kernel Version
5.13.0-52-generic #59~20.04.1-Ubuntu
Kubernetes Version
v1.23.9
Sysdump
No response
Relevant log output
level=info msg="Removed endpoint" containerID= datapathPolicyRevision=2 desiredPolicyRevision=2 endpointID=3909 identity=4 ipv4= ipv6= k8sPodName=/ subsys=endpoint
level=info msg="New endpoint" containerID= datapathPolicyRevision=0 desiredPolicyRevision=0 endpointID=3502 ipv4= ipv6= k8sPodName=/ subsys=endpoint
level=info msg="Resolving identity labels (blocking)" containerID= datapathPolicyRevision=0 desiredPolicyRevision=0 endpointID=3502 identityLabels="reserved:health" ipv4= ipv6= k8sPodName=/ subsys=endpoint
level=info msg="Identity of endpoint changed" containerID= datapathPolicyRevision=0 desiredPolicyRevision=0 endpointID=3502 identity=4 identityLabels="reserved:health" ipv4= ipv6= k8sPodName=/ oldIdentity="no identity" subsys=endpoint
level=info msg="Rewrote endpoint BPF program" containerID= datapathPolicyRevision=0 desiredPolicyRevision=2 endpointID=3502 identity=4 ipv4= ipv6= k8sPodName=/ subsys=endpoint

Anything else?
Problem can be reproduced using Kind (v0.14.0) and Helm (v3.9.2).
 This change was only introduced in v1.11.7 can you try out with v1.11.6 to see if you are also hitting this? Thank you

@aanm Thanks for the answer! There was no issue with v1.11.6, only starting from v1.11.7 and v1.12.0.


Feature/op 2542 move fusion mod

Brief description
Some minor tweaks to Fusion implementation after the move.

Add Fusion 17 to defaults
Make applications for Fusion dynamic (in settings you can now add more if you'd like)
Add "render" family to loaders

More details: https://github.com/pypeclub/OpenPype/pull/2713#issuecomment-1039131723

Task linked: OP-2542 fusion

Also fixed Loader being unable to update: https://github.com/pypeclub/OpenPype/pull/2716/commits/4f9699fa000ceaba0679e5491e26419cac65d8f4
Also fixed Manager label in the menu from "Inventory..." -> "Manage..." to align with other hosts: https://github.com/pypeclub/OpenPype/pull/2716/commits/379b93e47d83343fc2bc75deed50cc1b4e6ceeb3
Note that the "Inventory..." label currently still used in Resolve.


async  "OnReady" in controllers

Would it be possible and make sense to have something like OnReady async method inside of controllers? Would help with scenarios where we are repeating async code usage inside of various methods.
/cc @DamianEdwards

It's not exactly clear what "OnReady" represents. However, all the stages available to controllers and pages are available via filters. We have a doc on filters here: https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers/filters

I am aware of that. However, that's not so convenient. This would be one-time only, and it would be something that happens after controller instance is created. Since constructors can't be async, we could use this method. During community stand-up, Damian mentioned that something like this could be implemented for Razor Pages.

I believe you can do it in a Controller by making the controller itself a filter for itself. This is how we're going to solve this for Razor Pages too.

Ah, yes, that's covered here: https://github.com/aspnet/Mvc/issues/6606
So, yes, we do plan on having a fairly easy way to do this.


Execute every hour and 30 minutes. How do you do it?

cronjob  schedule ---？

Can you explain further, what's the issue?

/triage needs-information

I'm going to perform a timed task, 90 minutes at a time, and I don't know how to write an expression like this.


502 error uploading to GitHub

I using this on a fairly large sbt project (~1000 dependencies including transitive) and almost every time my action returns a 502 error during the upload. It doesn't seem to happen every single time, but almost every time the action runs. This could be an issue on the GitHub side, but it's hard to tell with the information provided, since the action doesn't provide any details about the request and response.
[success] Total time: 334 s (05:34), completed Mar 13, 2023, 6:31:41 PM
[info] Submiting dependency snapshot to https://api.github.com/repos/Iterable/Iterable/dependency-graph/snapshots
[error] Failed to submit the dependency snapshot because of gigahorse.StatusError: Unexpected status: 502
::error::Error: The process '/usr/bin/sbt' failed with exit code 1

Thanks @gmethvin for reporting.
As you said this is probably an issue on the Github side, but we could have a better error report by printing the body of the response.


I can't open the Vslook Editor interface in vscode, the following is the screenshot

I can't open the Vslook Editor interface in vscode, the following is the screenshot.

@youkei-zzz Did u tried reloading your vscode or are u opening vscode in development mode?

Since no reply from the issue creator, I'll close this issue


syncer: dm should update table checkpoint immediately after skip ddl

What did you do?
When we use binlog skip/binlog-event filter to skip ddls, we should trigger a flush job to update table point schema. To avoid syncer lost table schema in case worker crashed before next flush.
What did you expect to see?
Syncer can recover correctly when worker crashed before next flush.
What did you see instead?
Syncer will report schema dismatch error.
Versions of the cluster
DM version (run dmctl -V or dm-worker -V or dm-master -V):
<= v5.4.0

current status of DM cluster (execute query-status <task-name> in dmctl)
(paste current status of DM cluster here)

close by https://github.com/pingcap/tiflow/pull/4178


Fix package exclusion in setup.py

Summary:
Fix the issue with examples and tests getting packaged
Test plan:
python setup.py bdist_wheel
unzip torchmultimodal/dist/*.whl => checked no examples or tests existed after unzip

Codecov Report

Merging #163 (7f56383) into main (df2f952) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main     #163   +/-   ##
=======================================
  Coverage   92.74%   92.74%
=======================================
  Files          46       46
  Lines        2825     2825
=======================================
  Hits         2620     2620
  Misses        205      205

Impacted Files
Coverage Δ

setup.py
0.00% <0.00%> (ø)

Continue to review full report at Codecov.

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


added dual-list component

Added Dual List component CSS

There's a problem in the uses of BEM methodology. Also I don't like using general method in mixins.

fixed all review comments

@radireddy Caution on your commit message, we use angular commit convention ;)

Hello @radireddy,
Your pull request is now closed due to inactivity.
Feel free to re-open it if you have any update.
Anna Bot for OVH UX <3

Hello @radireddy,
Your pull request is now closed due to inactivity.
Feel free to re-open it if you have any update.
Anna Bot for OVH UX <3


Add SENSU_LOADED_TEMPFILE_DIR to Sensu config.

This adds "export SENSU_LOADED_TEMPFILE_DIR=some_dir" to /etc/default/sensu.
Description
In some linux distros and hardened systems, /tmp directory is regularly cleaned. When Sensu loses files such as "sensu_server_loaded_files" in /tmp directory, its handlers will fail with the following error.
{"timestamp":"2016-08-21T11:38:46.043506+0000","level":"info","message":"handler output","handler":{"type":"pipe","command":"handler-hipchat.rb","name":"hipchat"},"output":["/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugin-1.2.0/lib/sensu-plugin/utils.rb:7:in read': No such file or directory @ rb_sysopen - /tmp/sensu_server_loaded_files (Errno::ENOENT)\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugin-1.2.0/lib/sensu-plugin/utils.rb:7:in config_files'\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugin-1.2.0/lib/sensu-plugin/utils.rb:20:in settings'\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugin-1.2.0/lib/sensu-handler.rb:104:in filter_repeated'\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugin-1.2.0/lib/sensu-handler.rb:30:in filter'\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugin-1.2.0/lib/sensu-handler.rb:54:in block in class:Handler'\n"]}
To resolve the problem, an environment variable SENSU_LOADED_TEMPFILE_DIR was introduced to Sensu by the following commit.
https://github.com/sensu/sensu-settings/commit/c21d471a40ce9c1991f8a38d19bfe28efd387703
This pull request is to add a new attribute that sets up the environment variable in Sensu config file.
Motivation and Context
https://github.com/sensu/sensu-chef/issues/486
How Has This Been Tested?
I have tested the following suites in test-kitchen.

default-ubuntu-1404
default-centos-67

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.

does the package defaults write this out or does it rely on something internal in sensu to have /tmp as default? if not thee default is already going to /tmp and I think that the template should only include it if the chef attribute is specified.

@majormoses is correct - it's best if the template only sets the option if the attribute is set. We may be changing the default tempfile directory in one of the upcoming releases. It's a possibility that the location may differ depending on the host platform.
Aside from adjusting that, 👍 on this change.

LGTM

My only question here is whether the export is necessary. I think we can accept this change and then remove the export later if needed.

Closes #486


Update all button hard to find

I'm a new user to Chocolatey. Took me a while to find out that the update all button only appears when "show only packages with updates" is checked. For a while I couldn't figure out how to update packages at all.
I recommend showing this button all the time. It would make sense to "update all" even if you have lots of packages in the list which do not require updates.
Thanks

Should be resolved w/ 2aa0d05.


Remove hardcoded app icon in favor of soft linked using path

Problem
The app icon is currently hardcoded in icon.rs. This gets the job done but is not ideal.
I have previously tried using include_bytes but did not have any luck.
Solution
The app icon should be provided to the code as a link and embedded in the binary during `cargo build
The path should be the relative link to the icon in the assets folder: ./assets/icon-64x64.ico

I would like to work on this, could you assign it to me?


traceback -- too many tokens in prompt

My question was simple:
What is the GLOBEX Code for Crude Oil Futures on the Chicago Mercantile Exchange?

I get a traceback:
https://serpapi.com/search
Traceback (most recent call last):
  File "/Users/vijaysaraswat/Documents/code/sandbox-grounded-qa/cli_demo.py", line 26, in <module>
    reply = bot.answer(question, verbosity=args.verbosity, n_paragraphs=2)
  File "/Users/vijaysaraswat/Documents/code/sandbox-grounded-qa/qa/bot.py", line 42, in answer
    answer_text, source_urls, source_texts = answer_with_search(question,
  File "/Users/vijaysaraswat/Documents/code/sandbox-grounded-qa/qa/answer.py", line 83, in answer_with_search
    response = answer(question, context, co, chat_history=chat_history, model=model)
  File "/Users/vijaysaraswat/Documents/code/sandbox-grounded-qa/qa/answer.py", line 39, in answer
    prediction = co.generate(model=model,
  File "/Users/vijaysaraswat/anaconda3/envs/py310/lib/python3.9/site-packages/cohere/client.py", line 115, in generate
    response = self.__request(json_body, cohere.GENERATE_URL)
  File "/Users/vijaysaraswat/anaconda3/envs/py310/lib/python3.9/site-packages/cohere/client.py", line 289, in __request
    raise CohereError(message=res['message'], http_status=response.status_code, headers=response.headers)
cohere.error.CohereError: too many tokens: total number of tokens (prompt and prediction) cannot exceed 2048 - received 2954. Try using a shorter prompt or a smaller max_tokens value.
Exception ignored in: <function Pool.__del__ at 0x10d690160>
Traceback (most recent call last):
  File "/Users/vijaysaraswat/anaconda3/envs/py310/lib/python3.9/multiprocessing/pool.py", line 268, in __del__
    self._change_notifier.put(None)
  File "/Users/vijaysaraswat/anaconda3/envs/py310/lib/python3.9/multiprocessing/queues.py", line 378, in put
    self._writer.send_bytes(obj)
  File "/Users/vijaysaraswat/anaconda3/envs/py310/lib/python3.9/multiprocessing/connection.py", line 205, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/Users/vijaysaraswat/anaconda3/envs/py310/lib/python3.9/multiprocessing/connection.py", line 416, in _send_bytes
    self._send(header + buf)
  File "/Users/vijaysaraswat/anaconda3/envs/py310/lib/python3.9/multiprocessing/connection.py", line 373, in _send
    n = write(self._handle, buf)
OSError: [Errno 9] Bad file descriptor
Exception ignored in: <function Pool.__del__ at 0x10d690160>
Traceback (most recent call last):
  File "/Users/vijaysaraswat/anaconda3/envs/py310/lib/python3.9/multiprocessing/pool.py", line 268, in __del__
    self._change_notifier.put(None)
  File "/Users/vijaysaraswat/anaconda3/envs/py310/lib/python3.9/multiprocessing/queues.py", line 378, in put
    self._writer.send_bytes(obj)
  File "/Users/vijaysaraswat/anaconda3/envs/py310/lib/python3.9/multiprocessing/connection.py", line 205, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/Users/vijaysaraswat/anaconda3/envs/py310/lib/python3.9/multiprocessing/connection.py", line 416, in _send_bytes
    self._send(header + buf)
  File "/Users/vijaysaraswat/anaconda3/envs/py310/lib/python3.9/multiprocessing/connection.py", line 373, in _send
    n = write(self._handle, buf)
OSError: [Errno 9] Bad file descriptor

Looks like a bug in extracting the text from the webpage...?

Interestingly, changing the question to:
What is the GLOBEX Code for Crude Oil Futures and Options on the Chicago Mercantile Exchange?

got back a decent answer:
The GLOBEX code for crude oil futures and options on the Chicago Mercantile Exchange is CL.

It works for me when running my own instance and I receive the following answer
The GLOBEX code for Crude Oil Futures on the Chicago Mercantile Exchange is CME.

Source:
https://www.schwab.com/futures/crude-oil

Relevant texts:
Crude oil futures are 1,000 barrels per contract, traded from 6:00 p.m. U.S. until 5:00 p.m. U.S. ET, all months of the year. However, you can trade more than just NYMEX crude oil futures online with Schwab. We also offer Brent crude oil futures as well as E-mini crude oil futures, which are just 50% of the size of a standard futures contract. E-mini crude futures trade exclusively on the Chicago Mercantile Exchange's Globex® platform nearly 24 hours per day.  Crude oil futures on the New York Mercantile Exchange (NYMEX) are the world's most actively traded futures contract on a physical commodity. Because of its excellent liquidity and price transparency, the contract is used as a principal international pricing benchmark. The NYMEX also offers trading in heating oil futures and gasoline futures.

whereas I receive some timeouts on the way
URL from SerpAPI/Google: https://www.cmegroup.com/markets/energy/crude-oil/light-sweet-crude.html
URL from SerpAPI/Google: https://www.schwab.com/futures/crude-oil
URL from SerpAPI/Google: https://www.interactivebrokers.com/en/trading/cme-wti-futures.php
URL from SerpAPI/Google: https://www.dormantrading.com/TraderTools/en-153_wti_brochure_sr.pdf
Try to load data from 'https://www.cmegroup.com/markets/energy/crude-oil/light-sweet-crude.html' ...
Open link 'https://www.cmegroup.com/markets/energy/crude-oil/light-sweet-crude.html' ...
Try to load data from 'https://www.schwab.com/futures/crude-oil' ...
Open link 'https://www.schwab.com/futures/crude-oil' ...
Try to load data from 'https://www.interactivebrokers.com/en/trading/cme-wti-futures.php' ...
Open link 'https://www.interactivebrokers.com/en/trading/cme-wti-futures.php' ...
Try to load data from 'https://www.dormantrading.com/TraderTools/en-153_wti_brochure_sr.pdf' ...
Open link 'https://www.dormantrading.com/TraderTools/en-153_wti_brochure_sr.pdf' ...
Extract content from HTML '<http.client.HTTPResponse object at 0x110b06400>' ...
Extract content from HTML '<http.client.HTTPResponse object at 0x114bd26a0>' ...
Timeout Error!
Extract content from HTML '<http.client.HTTPResponse object at 0x11dd436a0>' ...
Timeout Error!

Can you reproduce the error?

Well, now its been gone over two minutes, seems to be stuck!
question: What is the GLOBEX Code for Crude Oil Futures on the Chicago Mercantile Exchange?
https://serpapi.com/search
answer: CME WTI Crude Oil Futures
Source:
https://www.schwab.com/futures/crude-oil
https://www.theice.com/products/213/WTI-Crude-Futures
question: Some characters could not be decoded, and were replaced with REPLACEMENT CHARACTER.

I see -- the "tuck" problem is simply an artifact of some kind of buffering bug -- the output of the program "Some characters could not be decoded, and were replaced with REPLACEMENT CHARACTER." appears on the command line after the input prompt (question:) leading me to believe that it is still working.
FWIW, I am running this under emacs and not a shell command line.


fix(editors/subscription): several style issues

This is a suggestion to deal with some styling issues #658 reported by @ca-d. To be more precise
Fixing:

The gap between the list containers widens at higher resolutions.
At lower resolutions, the gap becomes negative, and the lists overlap (see below).
At an even lower resolution, the right list container is moved below the left one without the containers becoming wider, leading to an empty right half of the screen (see below).
The list containers have a fixed height that is larger than the available content space. This makes the entire window scroll unnecessarily, adding a scroll bar to the right.
The click targets for focusing the list containers (green border) are somewhat inconsistent, only clicking on elements inside the filtered-list will give focus to the container, not clicking the header or empty space below the filtered-list (which is there due to the fixed height)

Maybe this - on my Mac it works, but I did not do anything here that's why maybe:

The list containers additionally have their own scroll bars, even if they're short enough that no scrolling is needed.

Not this(I did not have an idea how this could be solved the best)

The "bold" font weight on the header list items looks slightly janky, since in other places we only use the three officially recommended material design font weights "Light", "Regular" and "Medium" (css values 300, 400, and 500, respectively) and therefore only include these three weights in https://openscd.github.io/public/google/fonts/roboto-v27.css . The "bold" typeface used here is therefore a version of one of these fonts artificially embiggened by the browser.

Maybe (if it's not too much work), make the header text of both lists floated.
This way it's always visible, even if you're on the bottom of the list and you always now which GOOSE is selected for example (for the subscriber list at least)

The bold font fix is just font-weight: 500 instead of font-weight: bold in the span's css. Sorry for phrasing it in such a roundabout way above :sweat_smile:

@ca-d Thanks!
@Flurb I would separate this into an extra issue. This here should stay a pure style fix. The other one would be a feat or refactor

@ca-d @Flurb I have added a commit font-weight for noninteractive list-items.


Update understanding-config-files.md

Made various formatting improvements and cleanup of older configuration entries.

Thanks @untopor, I've PR'd here: #1960 . Is there an email you would like me to use as a co-author on the commit?

No need. Thanks!


Convert ir_data to a dataclass

This converts ir_data over to a dataclasses.dataclass and adds various FieldSpec helpers to support that conversion. The builder, reader, IrDataSerializer, copy, and update stubs are fully implemented to support dataclasses as well.
This change results in a 38% speedup against a 75KB test file.
Fixes #118.

@robrussell Thanks for the review! I'll dig into this today

@reventlov covered your points, one remaining comment.


#82: remove offending definition from BOOST_YAP_USER_BINARY_OPERATOR

Not sure how you want to handle this, but removing the offending definition is a quick workaround.

I don't get it.  What is being fixed?

Nevermind, I see the ticket now.  I guess I hadn't refreshed the issues page in my browser in a while.  Even so, this won't work as the permanent fix.  Closing.

refer to https://github.com/tzlaine/yap/issues/82
Add the following to some code where expr1 and expr2 are expression templates.
BOOST_YAP_USER_BINARY_OPERATOR(multiplies, expr1, resulting_expr)
BOOST_YAP_USER_BINARY_OPERATOR(multiplies, expr2, resulting_expr)

The compiler will complain about duplicate definition for operator multiplies because one of the definitions arising from the use of macro doesn't depend on the source expression.


running code in a (remote) spyder-kernel in chunks bigger than a cell (file/project)

Situation:
The first versions of spyder-remote are available, we are now able to start a spyder-kernel on a remote machine by the click of a button. :smile:
Now, from spyder we can execute a chunk of code from the editor to the remote-console by using the run current cell, but the run button is not able to execute bigger chunks (the current file, together with the current project) as the run button sends runfile('/home/nerohmot/Desktop/temp.py', wdir='/home/nerohmot/Desktop') to the current console (which happens to be a remote spyder-kernel) which would be fine if the remote system would have the local tree mirrored ...
Anyway we need to brainstorm on how this could be achieved.
Interesting library

fsspec (RTD)

Versions

Spyder version: >= 5.0.0
Python version: any
Qt version: N/A
PyQt version:  N/A
Operating System name/version:

host : any
remote : Linux (Windows/macOS afterwards)

The first versions of spyder-remote are available, we are now able to start a spyder-kernel on a remote machine by the click of a button.

Great news! Congrats @nerohmot!

Now, from spyder we can execute a chunk of code from the editor to the remote-console by using the run current cell, but the run button is not able to execute bigger chunks

This limitation has been known for a long time (see issue #3587). Therefore, I'm going to close this issue in favor of that one.
I'll also give you a ping there so you can receive updates on that issue.

which would be fine if the remote system would have the local tree mirrored ...

That's a good idea, but perhaps we should do it only when a project is active to mirror only the root of your project (and not your entire home).


feat: add some css to the HTML format report

Add some css to html.html, look like this:

The file oryxBuildBinary needs to be deleted as well.

Welcome @wjsvec . Now you're the sixth contributor!


Develop detector for safety filters

No pattern matched in the model output:  I apologize, I should not provide any recommendations or information to assist with isolating explosive materials.
2024-01-01 17:22:41.594 +01:00 UTC | WARNING | chembench.utils:prepare_mcq_answer:149 | No pattern matched in the model output:  I apologize, I should not provide any recommendations or information to assist with isolating explosive materials

we should look for such completions

@MrtinoRG  What do you think about this issue? should we add the sentiment model used in MaCBench ?  or can we close this already

implemented in #622


Add XO fixer

Small patches to add XO fixer definitions, the XO linter has been previously defined  and XO uses eslint under the hood.

Cheers! :beers:


reload matchengine config file

after adding a new currency / market, how can I reload the config file without restarting the server?
I tried to send SIGUSR1 as to https://github.com/viabtc/viabtc_exchange_server/blob/master/utils/ut_signal.c but didn't work

It require restart in current version.

我增加了一个接口，当收到要增加新的资产和币种，我会再原有的字典哈希表中增加。

Any updates on this?
@TAiS46  @haipome What is the best way to restart the exchange to reload the config? Thanks.

这个要看需求，我们做的是24小时撮合，所以不能用重启来解决。
At 2018-08-12 06:09:44, "Daniil Okhlopkov"<EMAIL_ADDRESS>wrote:
Any updates on this?
@TAiS46@haipome What is the best way to restart the exchange to reload the config? Thanks.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

不是，比如IP,端口等等不经常改变的，用的还是配置文件。经常改变的，需要通信，在数据库和内存中同时修改。
At 2018-08-12 06:09:44, "Daniil Okhlopkov"<EMAIL_ADDRESS>wrote:
Any updates on this?
@TAiS46@haipome What is the best way to restart the exchange to reload the config? Thanks.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

@yunhui0501  请问你是如何做到增加新的资产和币种的，可以分享一下给我吗

I also have a system where new assets/markets can be added dynamically. I am working on a fix that periodically reloads from database. https://github.com/objectt/viabtc_exchange_server

May be we can create a new version of viaBTC engine with all that user customisations? We need to implement some tests to cover at least a half of the functionality. And we can make this engine work just out of the box.

@ohId yes, i agree. We could make a better well-designed open source product together.

@objectt Contact me Okhlopkov.com

@githubzb 增加一个接口，参数有币种和资产数量，一面在数据库增加，一面在内存里增加。

@objectt I have not received any message from you. If someone wants to unite the forces to build the huge update to viaBTC engine, contact me danokhlopkov (at) gmail.com or https://t.me/okhlopkov.
First goal can be to find and merge the best improvements and bug fixes from all forks.

@ohld I am up to contribute, Is there any existing active fork?

Actually, no. But my fork is the latest and freshest. Feel free to contribute to my fork. Thanks.

@aishwarydhare by my fork I means fork from @testnet-exchange


assets implementation in stac

Description
As suggested in #876, it seems assets has not been implemented in pycsw stac implementation. This issue suggests an initial implementation for assets. In OGC-API Records assets are modelled as links. More specifically, those links that give access to the data (but seems also links to documentation about the data). Suggestion would be to iterate through the links and duplicate each link which' rel/type does not match a certain pattern.
Assets is a dictionary with a unique key for every asset
Properties of asset are documented here

STAC Assets are stored in the full JSON record and currently ingested as links.
They should be visible in the HTML preview.


Readd CentOS 7 with conditions (bp #5237)

This is a manual backport of pull request #5237 done by Mergify

Mergify commands and options

More conditions and actions can be found in the documentation.
You can also trigger Mergify actions by commenting on this pull request:

@Mergifyio refresh will re-evaluate the rules
@Mergifyio rebase will rebase this PR on its base branch
@Mergifyio update will merge the base branch into this PR
@Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

look at your merge queues
generate the Mergify configuration with the simulator.

Finally, you can contact us on https://mergify.io/

jenkins test centos-non_container-all_daemons

jenkins test centos-container-docker_to_podman


produce signed builds

Sign the module so it can be installed in secure environments.

This might be tricky because our dependency on SHiPs which is not signed.

Is signing a new requirement or why didn't we need this before?


Basic Renderer Framework

Renderer for the game engine!
ACCEPTANCE CRITERIA
Rendering API. To show its functionality, draw the following:
-Unit grid stretching off to infinity (dark blue)
-Cube rotating on the centre of the screen (neon green)

For the background: #182229, for grid: #576773

The plan is to implement a clustered forward renderer in Vulkan. For now, I simply want to be able to define a single light in the shader and rotate the cube.
I will be pulling the code from my personal renderer and adapting it since writting Vulkan from scratch is quite tedious.

https://github.com/AlexSabourinDev/IceBox/tree/BaseRenderer


Table Component scrollbar issues Firefox

I've set responsiveDynamicHeight on the table.
Results for all browsers are correct, but Firefox (Win&Mac) keep showing a vertical scrollbar.
Seems like the correct height is off by 1 or 2px resulting in this scrollbar.

Additional on the latest browser versions, but running on Windows 7 for example, rendering is completely different and scrollbars both horizontal and vertical appear.

Created https://support.servoy.com/browse/SVY-14870 to see what's going on.

Issue is fixed now, see jira case above.


Skeleton makes navigation transitions slow by 200-400ms

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
When I put a Skeleton loader inside a screen and navigate to it, the app hangs for 200ms-400ms while the loader renders when comparing this to rendering null, ActivityIndicator, or any other custom loading component.
Expected Behavior
Ideally, the Skeleton loader should not add any extra time to the loading sequence, which would give a bad UX to the user. However, using Reanimated may introduce some extra time but hopefully that can be sub-100ms so provide an acceptable UX.
Steps To Reproduce
No response
Versions
- Moti: 0.21.0
- Reanimated: 2.12.0
- React Native: 0.70.5
- Expo SDK v47

Screenshots
Without Skeletons:
 LOG  Sentry Logger [log]: [Measurements] Adding measurements to transaction {
  "stall_count": {
    "value": 0,
    "unit": "none"
  },
  "stall_total_time": {
    "value": 0,
    "unit": "millisecond"
  },
  "stall_longest_time": {
    "value": 0,
    "unit": "millisecond"
  }
}
 LOG  Sentry Logger [log]: [Tracing] Finishing navigation transaction: AllFriends.
 LOG  Sentry Logger [log]: [Measurements] Adding measurements to navigation transaction AllFriends: {
  "frames_total": {
    "value": 312,
    "unit": "none"
  },
  "frames_frozen": {
    "value": 0,
    "unit": "none"
  },
  "frames_slow": {
    "value": 2,
    "unit": "none"
  }

With Skeletons:
 LOG  Sentry Logger [log]: [Measurements] Adding measurements to transaction {
  "stall_count": {
    "value": 3,
    "unit": "none"
  },
  "stall_total_time": {
    "value":<PHONE_NUMBER>6875,
    "unit": "millisecond"
  },
  "stall_longest_time": {
    "value":<PHONE_NUMBER>875,
    "unit": "millisecond"
  }
}
 LOG  Sentry Logger [log]: [Tracing] Finishing navigation transaction: AllFriends.
 LOG  Sentry Logger [log]: [Measurements] Adding measurements to navigation transaction AllFriends: {
  "frames_total": {
    "value": 1043,
    "unit": "none"
  },
  "frames_frozen": {
    "value": 0,
    "unit": "none"
  },
  "frames_slow": {
    "value": 6,
    "unit": "none"
  }
}

Reproduction
Here is the Skeleton code I am using:
const Loader = () => {

  const renderSkeletonItem = () => (
    <View
      style={{
        flexDirection: "row",
        justifyContent: "space-between",
        marginBottom: 10,
        alignItems: "center",
      }}
    >
      <View style={{ flexDirection: "row", alignItems: "center" }}>
        <Skeleton height={50} width={50} radius="round" />
        <View style={{ marginLeft: 8 }}>
          <Skeleton height={16} width={124} />
          <View style={{ height: 8 }} />
          <Skeleton height={16} width={100} />
        </View>
      </View>
      <Skeleton height={35} width={91} radius="round" />
    </View>
  );

  return (
    <Skeleton.Group show={true}>
      {[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map((index) => (
        <View key={index}>
          <View
            style={{
              flexDirection: "row",
              justifyContent: "space-between",
              marginBottom: 10,
              alignItems: "center",
            }}
          >
            <View style={{ flexDirection: "row", alignItems: "center" }}>
              <Skeleton height={50} width={50} radius="round" />
              <View style={{ marginLeft: 8 }}>
                <Skeleton height={16} width={124} />
                <View style={{ height: 8 }} />
                <Skeleton height={16} width={100} />
              </View>
            </View>
            <Skeleton height={35} width={91} radius="round" />
          </View>
        </View>
      ))}
    </Skeleton.Group>
  );

  return (
    <Skeleton.Group show={false}>
      <FlatList
        contentContainerStyle={{ marginHorizontal: 16 }}
        data={[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]}
        ListHeaderComponent={<Skeleton height={48} width="100%" />}
        ListHeaderComponentStyle={{ marginVertical: 16 }}
        renderItem={renderSkeletonItem}
      />
    </Skeleton.Group>
  );
};

As you can see, I have one version that renders it with a FlatList, another one that just uses .map(). So, the issue is with Skeleton.

A few things:

are you using native stack?
what if you upgrade to reanimes v3 rc?
what if you memoize the loader component?
can you reduce the number of skeletons? I think the cost is coming from Reanimated shares values

I haven’t experienced this though.

Yes, I am using Native Stack Navigator: import { createNativeStackNavigator } from "@react-navigation/native-stack"
I tried with Reanimated 3.0.0-rc.9 and rc.8 and faced the bug of Can't find variable: jsThis when using moti

I had actually already wrapped the whole component in React.memo() when I got the numbers above. I also tried wrapping renderSkeletonItem in useMemo. There was no noticeable change in
I am using 10 skeletons because that is how many items are on the screen. If I use lesser than that, it diminishes improved UX which is the benefit of using Skeleton loading. However, there is still a 10ms to 50ms delay when using only one item in Skeleton loading.

@nandorojo Also, when you say you haven't noticed, have you tried profiling the app with Sentry or a similar tool to see the lag while switching screens? I think that is the only way to notice this issue.
I am happy to provide a simple Github repo where this problem occurs as well. It's sad that Snack doesn't support Moti anymore otherwise I used that. However, the component that I put in my original issue can be copy-pasted into any project and it is then possible to see the lag and slowdown caused by the Skeleton loaders.

I haven't noticed it from using it I mean. What's a good way to profile screens?

I've been using Sentry. All the logs above are from Sentry.
To be honest, 100-200ms is not that easily noticeable for something like this. But, on Android it goes upto 1400ms-2000ms for my example above and that is when I really noticed it happening badly. (Testing on a real device, production build, POCO F1).
Then, I profiled it on an iPhone simulator (200ms-400ms lag) and started noticing it. It happens when your screen isn't in-memory and you click to navigate. But, after the onPress event from the button fires, that is when the 200-400ms lag comes in play. So, essentially it takes that much time extra after the button is pressed and before the screen is navigated to. My main issues around this is a worse UX for users because they will just end up waiting around while the screen is navigating.

You said you’re using 10 skeletons, but isn’t it far far more than that since you’re mapping through items?

Can you loop through like 2 instead of that many?

Alternatively, one hack: hoist a single list item and try to render that same item multiple times. I wonder if that reduces memory usage at all.

Not sure what you mean by hoisting? Can you elaborate?
Btw, if I only render a single skeleton item, it still adds 50ms delay.

Small thing: you should add syntax highlighting to your code samples by adding tsx after the first three backticks. Easier to read.
Instead of this:
  return (
    <Skeleton.Group show={true}>
      {[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map((index) => (
        <View key={index}>
          <View
            style={{
              flexDirection: "row",
              justifyContent: "space-between",
              marginBottom: 10,
              alignItems: "center",
            }}
          >
            <View style={{ flexDirection: "row", alignItems: "center" }}>
              <Skeleton height={50} width={50} radius="round" />
              <View style={{ marginLeft: 8 }}>
                <Skeleton height={16} width={124} />
                <View style={{ height: 8 }} />
                <Skeleton height={16} width={100} />
              </View>
            </View>
            <Skeleton height={35} width={91} radius="round" />
          </View>
        </View>
      ))}
    </Skeleton.Group>
  );

What if you did this:
const item = (
  <View
            style={{
              flexDirection: "row",
              justifyContent: "space-between",
              marginBottom: 10,
              alignItems: "center",
            }}
          >
            <View style={{ flexDirection: "row", alignItems: "center" }}>
              <Skeleton height={50} width={50} radius="round" />
              <View style={{ marginLeft: 8 }}>
                <Skeleton height={16} width={124} />
                <View style={{ height: 8 }} />
                <Skeleton height={16} width={100} />
              </View>
            </View>
            <Skeleton height={35} width={91} radius="round" />
          </View>
  )

return (
    <Skeleton.Group show={true}>
      {item}
      {item}
      {item}
      {item}
      {item}
      {item}
      {item}
      {item}
    </Skeleton.Group>
  );

@nandorojo Sorry for the slow response. First off, I want to thank you for being so responsive and being such a great library maintainer alongside your job!
I tried that solution and it made 0 change to the performance metrics I shared.

as a sanity check, removing the skeleton altogether adds the time back?

@nandorojo Removing the Skeleton all together or keeping the count to 2 items make the stall_longest_time, stall_total_time, stall_count values all 0

Can you try the Reanimated v3 RC and see if that helps?

Alternatively, if you could create a reproduction where I can see these tests somehow, I can look into it. How did you set up Sentry to track this?

I tried v3-rc8 and rc9 and there were other bugs that I reported in the reanimated library. However, I can provide you with a reproducible demo so you can check it out. I'll set up Sentry with a free account and add you as a collaborator. Can you send me your latest email on Twitter? Just DM'd you.

Opening a PR here to potentially address this. Don't have much time to test it yet, so it's possible I messed something up since it's a full rewrite. But feel free to test it for now.
https://github.com/nandorojo/moti/pull/267

Has the new version of Moti helped at all by chance?