Dependency on fractal-server & fractal-tasks-core

Should the main repo have dependencies on fractal-server & fractal-tasks-core?
I see the convenience for just installing one repo for tests. But if people should use this to just install the client, they don't also need to install the server & the core tasks locally.
At least when I run poetry install on the current main of fractal, fractal-server & fractal-tasks-core are also installed, as far as I can tell the latest releases from pypi.

In this (fractal) repo, the fractal-server package is only required within the [tool.poetry.group.dev.dependencies] poetry group. This means it can be readily skipped by using
poetry install --without dev

which only installs the package with its dependencies (and not its "development" dependencies).
This way one can have any version of fractal-server installed, and installing fractal won't change that.

the client should not depend on server nor tasks.
For testing purposes, it dev-depends on fractal-server (without tasks).
It could be added as extra, but I wold rather not, as it would create a circular dependency (server depends on client via common). We could avoid this by introducing a separate fractal-common package, which sounds a bit like overkill for just a few schemas.
closing


management

shall we claan workspace，deparate frontend and backend which means creating a specific backend folder and updates the res

Do you mean that frontend or backend may be not put in the same directory "/src" ?

Do you mean that frontend or backend may be not put in the same directory "/src" ?
i wannna the construct like this
carrotHole/
├── frontend/
│   ├── index.html
│   ├── css/
│   ├── js/
├── backend/
│   ├── app.class
│   ├── routes/
│   ├── models/
├── README.md


aws.s3.Bucket doesn't behave the same way than aws_s3_bucket terraform resource

What happened?
Hello!
In our setup we are using the aws provider to create a bucket on a Ceph environment, this is achieved with using the endpoints option.
When using the aws.s3.Bucket resource it is not working correctly. We are getting errors on the website configuration as this is not available in Ceph.
  aws:s3:Bucket (test-bucket):
    error: 1 error occurred:
    	* creating urn:pulumi:dev::test::aws:s3/bucket:Bucket::test-bucket: 1 error occurred:
    	* error getting S3 Bucket website configuration: MethodNotAllowed:
    	status code: 405, request id: tx0000000000000007ff406-00659ed8f9-66559-apac, host id:

This is explained in detail in this terraform-provider-aws issue: https://github.com/hashicorp/terraform-provider-aws/issues/14645
As part of this issue, a MR was created to allow Ceph and other application to use the provider: https://github.com/hashicorp/terraform-provider-aws/pull/23278
This was achieved by ignoring specific errors on specific options.
This error cannot be reproduced when using aws.s3.bucketV2 (see Example).
Is that the expected behaviour from these 2 different resources?
As stated in this blog post, it seems that the BucketV2 should be the one we use. Could I help by contributing some documentation update to try and avoid this issue?
Thanks!
Example
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const cephProvider = new aws.Provider("ceph", {
    accessKey: pulumi.secret("ACCESS_KEY"),
    secretKey: pulumi.secret("SECRET_KEY"),
    skipCredentialsValidation: true,
    skipMetadataApiCheck: true,
    skipRegionValidation: true,
    skipRequestingAccountId: true,
    region: "us-east-1",
    s3UsePathStyle: true,
    insecure: true,
    endpoints: [
      {s3: pulumi.secret("<SOME_CEPH_IP>"),}
    ],
  })

const bucket = new aws.s3.Bucket("test-bucket", {}, { provider: cephProvider });

Using this with a Ceph endpoint will cause this error:
  aws:s3:Bucket (test-bucket):
    error: 1 error occurred:
    	* creating urn:pulumi:dev::test::aws:s3/bucket:Bucket::test-bucket: 1 error occurred:
    	* error getting S3 Bucket website configuration: MethodNotAllowed:
    	status code: 405, request id: tx0000000000000007ff406-00659ed8f9-66559-apac, host id:

With this error, the bucket is created correctly, but pulumi is not able to refresh:
Previewing refresh (dev):
     Type                     Name         Plan        Info
     pulumi:pulumi:Stack      test-dev                 1 error
 ~   ├─ aws:s3:Bucket         test-bucket  refresh     1 error
     └─ pulumi:providers:aws  ceph

Diagnostics:
  pulumi:pulumi:Stack (test-dev):
    error: preview failed

  aws:s3:Bucket (test-bucket):
    error: Preview failed: refreshing urn:pulumi:dev::test::aws:s3/bucket:Bucket::test-bucket: 1 error occurred:
    	* error getting S3 Bucket website configuration: MethodNotAllowed:
    	status code: 405, request id: tx0000000000000007ffe40-00659edb3d-66559-apac, host id:

Using the same configuration than above, but replacing aws.s3.Bucket by aws.s3.BucketV2, it works:
...

const bucket = new aws.s3.BucketV2("test-bucket", {}, { provider: cephProvider });

Refresh now works:
Previewing refresh (dev):
     Type                     Name         Plan
     pulumi:pulumi:Stack      test-dev
     ├─ pulumi:providers:aws  ceph
     └─ aws:s3:BucketV2       test-bucket

Resources:
    3 unchanged

Refreshing (dev):
     Type                     Name         Status
     pulumi:pulumi:Stack      test-dev
     ├─ pulumi:providers:aws  ceph
     └─ aws:s3:BucketV2       test-bucket

Resources:
    3 unchanged

Duration: 1s

Output of pulumi about
CLI
Version      3.100.0
Go Version   go1.21.5
Go Compiler  gc

Plugins
NAME    VERSION
aws     6.18.0
awsx    2.4.0
docker  4.5.0
docker  3.6.1
nodejs  unknown

Host
OS       darwin
Version  14.2.1
Arch     arm64

This project is written in nodejs: executable='/Users/pdagenais/.asdf/shims/node' version='v18.17.0'

Current Stack: dev

Found no resources associated with dev

Found no pending operations associated with dev

Backend
Name           mbp
URL            file://~
User           pdagenais
Organizations
Token type     personal

Dependencies:
NAME            VERSION
@pulumi/aws     6.18.0
@pulumi/awsx    2.4.0
@pulumi/pulumi  3.100.0
@types/node     18.19.6

Pulumi locates its logs in /var/folders/9l/nw87v1wj1rbct1f86lvm91_r0000gn/T/ by default

Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Hey @iwahbe !
I just opened #3277 to update the docs!
Maybe just so I understand how the whole process works, I saw that most of the documentation is also part of the direct code equivalent, for example: https://github.com/pulumi/pulumi-aws/blob/b3675bdf87e4dbd1536b6b88dd23881f2e8aaba7/sdk/nodejs/s3/bucket.ts#L16
Are these updated by the patches and then it what it shows online? I am just trying to understand here so I can help in the future.
Thank you very much!

After we update the patch, we run a generate step (make tfgen) that applies the patch and inserts the correct documentation into the provider schema (provider/cmd/pulumi-resource-aws/schema.json). This is what is used to generate online docs. We run another generate step (make build_sdks) to put the generated schema into each SDK.


New package: MetaanalysisJulia v1.0.0-DEV

Registering package: MetaanalysisJulia
Repository: https://github.com/arinbasu/Metaanalysisjulia.jl
Created by: @arinbasu
Version: v1.0.0-DEV
Commit: 0832e485464e4c69ff29ba19ab4b053d85f4e7b4
Git reference: main
Description: Meta analysis in base Julia! Give it a go!
Release notes:

This is the initial 1.0.0-dev version

Please make sure to add a README and documentation before you register

Superseded by https://github.com/JuliaRegistries/General/pull/88110


conda package not found

My CI is telling me that:
$ conda install xtl -c QuantStack
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
  - xtl

Current channels:
  - https://conda.anaconda.org/QuantStack/linux-64
  - https://conda.anaconda.org/QuantStack/noarch
  - https://repo.anaconda.com/pkgs/main/linux-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/linux-64
  - https://repo.anaconda.com/pkgs/r/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
    https://anaconda.org
and use the search bar at the top of the page.
The command "conda install xtl -c QuantStack" failed and exited with 1 during .
Your build has been stopped.

The package is available on the conda-forge channel, the QuantStack channel should not be used anymore for any package.

Thanks!


Update sigstore_rekor.proto

Remove timestamp from checkpoint docs.
A followup from our meeting. Timestamp is no longer included in the checkpoint. The spec says other optional data can follow but the top 3 values must be included.

LGTM -- might need to re-generate to propagate the comment to each codebase 🙂


[FOLLOWUP] Change Kyuubi Spark deploy mode to cluster

By default, hive.support.concurrency is true and DummyTxnManager requires a ZooKeeper quorum.

how about adding configurations to make ZooKeeperHiveLockManager work? I suppose it does not have deadlock issue like the DBTxManager?

Sounds reasonable


Expose Location Header in CORS

Description
Cwlviewer should add Access-Control-Expose-Headers: Location.
When doing a POST to add a new workflow, if the response status is a 202, the Location header indicates the url to check the queue status. Because the above header is not in the response, the browser cannot see the location of the queue, and thus cannot check the queue status.
This relates to #186 and ga4gh/dockstore#1058.

I am working on a fix for this -- putting the comment here because I belatedly realized I don't have permissions to assign myself the ticket.


ARROW-5892 : [C++][Gandiva] Support function aliases

Access precompiled functions with different names.

Codecov Report

Merging #4835 into master will increase coverage by 1.65%.
The diff coverage is 99.29%.

@@            Coverage Diff             @@
##           master    #4835      +/-   ##
==========================================
+ Coverage   87.43%   89.08%   +1.65%
==========================================
  Files         997      720     -277
  Lines      139841   100216   -39625
  Branches     1418        0    -1418
==========================================
- Hits       122273    89282   -32991
+ Misses      17206    10934    -6272
+ Partials      362        0     -362

Impacted Files
Coverage Δ

cpp/src/gandiva/expression_registry.h
100% <ø> (ø)
:arrow_up:

cpp/src/gandiva/function_registry_common.h
100% <ø> (ø)
:arrow_up:

cpp/src/gandiva/function_registry_string.cc
100% <100%> (ø)
:arrow_up:

cpp/src/gandiva/expression_registry.cc
90.59% <100%> (+1.07%)
:arrow_up:

cpp/src/gandiva/function_registry_datetime.cc
100% <100%> (ø)
:arrow_up:

cpp/src/gandiva/function_registry_test.cc
100% <100%> (ø)
:arrow_up:

cpp/src/gandiva/function_registry.cc
100% <100%> (ø)
:arrow_up:

cpp/src/gandiva/native_function.h
100% <100%> (ø)
:arrow_up:

cpp/src/gandiva/function_registry_math_ops.cc
100% <100%> (ø)
:arrow_up:

cpp/src/gandiva/function_registry_arithmetic.cc
100% <100%> (ø)
:arrow_up:

... and 282 more

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 167bad1...727bbd0. Read the comment docs.

I'll push a commit for GLib related part to this branch in a few days.


Add Newegg Website

Summary
Currently, our system does not have the ability to automate a checkout procedure for NewEgg. NewEgg may require an account login in order to complete a successful checkout.
PS4 Bundle Link
MVP Features

In Stock Monitor functionality
Account Login functionality if necessary
Add To Cart functionality
Enter Billing/Shipping Details
Enter CC Details following current proper encryption protocol
Complete the checkout procedure

Additional Information
Currently, we should research more about if the account login is necessary for NewEgg regarding this product. There may be additional bot mitigation to account for within this site as well.

I would like to note that newegg bundles do have a different URL scheme from individual items. If this could support both bundles and individual items it'd be great!


k3s auto-updating, even when it shouldn't

More important for air-gapped installation.  Passing k3os.environment.INSTALL_K3S_SKIP_DOWNLOAD=true as boot parameter is properly rewriting /etc/environment, but not being
passed prolery to ccapply set.  Pull request 187 in k3os should have addressed, but
that env is not being followed (or not applied at that step...)
MIGHT be related to also passing  "k3os.mode=live", but that only is a theory.

Not based on k3os anymore, closing


Item movers

Closes #6823
https://user-images.githubusercontent.com/14003886/111331579-b4f43480-8679-11eb-9af0-e4dabacc4923.mp4
Implementation issues:

[ ] Most of items are non-movable, since movability of any item has to be determined manually. Common ones are movable though
[x] Cursor should move with the item

changelog feature add "Move item up/down" commands (LSP extension)

Demo with improved cursor movement and ArgList mover
https://user-images.githubusercontent.com/14003886/111752374-4a700e00-889e-11eb-92c7-7eab4d76144f.mp4
Adding similar movers should be trivial

bors r+
This actually is very reasonable, sorry for not getting to review this earlier, this could have landed in today's release.

What was the rationale for this being a custom message instead of code action?

What was the rationale for this being a custom message instead of code action?

Is it possible to provide a direction in which we are moving an item via code action?

Have one action for up and one for down?

I don't think code action UI is right here: code actions should be available in narrow scope, while this is an always available thing. In IntelliJ, item movers are also a separate thing with dedicated shortcuts.
Using code-actions API for this might be interesting (ie, the editor still doesn't show these in code action list, and binds them to dedicated shortcuts, but internally it issues code action requests), but I am not entirely sure if that would be a good move. Sticking to LSP's "one request for one UI concern" rule of thumb is more compatible with potential future extensions (multible cursors, left-right movers, etc).


Version 2.3.5+4 is crashing on iOS

On 2.3.5+4, iPhone crashes after the login is successful. There is no problem as long as the openim.login method is blocked

hi, upgrade SDK to v3.

Hi, let me close this issue first.


"Downloads" list show someone else's claim if you deleted the local file

Bug
I have been wondering for months why I frequently see claims that I have not encountered before in my Downloads list and can't seem to remove it.  I've figured out the recipe to reproduce and the method to erase it from the list.
To Reproduce

Publish something anonymously to an address that has already been taken.  Examples are test2 and apple-s-very-bad-week.
After the claim has been confirmed, open it so that it will be listed in Downloads (assuming you have "Save to downloads" enabled)
Close Desktop.
Delete the local file that you uploaded from.
Open Desktop. Now, other people's version of test2 will appear in my Downloads.  If I open the claim, there is no "trash" button to delete it, even after downloading it.

To delete it from your list, go to Publishes and download your own file.  Now, the Downloads list will be correct.
Expected Behavior
If the file is gone from disk, remove it from Downloads instead of randomly picking someone else's claim with the same adddress.
System Configuration
App 0.46.2
Daemon (lbrynet) 0.76.0
Platform Linux (Linux-5.3.0-51-generic-x86_64-with-LinuxMint-19.3-tricia)

Thanks for the repo. I think this is a similar issue to https://github.com/lbryio/lbry-desktop/issues/3767 . Will close that one.

Is it possible to remove the problematic entries some other way as a walk around?

You can clear out all downloads by quitting the app (ctrl-q) and then removing the lbrynet.sqlite file from the lbrynet folder: lbry.com/faq/lbry-directories


Exception: cannot create im

Hello, and thank you for contributing this tool to the PZ community!
Issue: I've tried to render the map twice and gotten the same failure towards the end of the process each time, copied below. Any help troubleshooting is very much appreciated! Can provide more info upon request.
Steps taken:

Downloaded and installed Python, checked box to add to PATH
Downloaded and extracted pzmap2dzi zip
Ran install_requirements.bat
Configured conf.yaml to reflect my pz_root and desired output_path
Ran run.bat
Encountered similar error as pasted below
Ran run.bat a second time
Encountered the error pasted below

OS: Windows 11 Pro (22H2)
CPU: Ryzen 7 7800X3D
GPU: RTX 4090
MEM: 32 GB DDR5 6000 Mhz
Output Location: 4.0 TB M.2 SSD, ~3.3 TB free space before render
Python Version: 3.10.6
job:[(21, 609, 152, [[1, 0, 0, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0, 0, 0]])] error, Exception:
job:[(22, 1634, 313, None)] error, Exception: cannot create im
Traceback (most recent call last): cache: 2472.00 MB
  File "C:\Users\tcd\OneDrive\Desktop\pzmap2dzi-main\pzmap2dzi\mptask.py", line 53, in _run
    result = self.worker.on_job(arg)
  File "C:\Users\tcd\OneDrive\Desktop\pzmap2dzi-main\pzmap2dzi\scheduling.py", line 297, in on_job
    self.dzi.render_tile(ic, self.render, x, y, layer)
  File "C:\Users\tcd\OneDrive\Desktop\pzmap2dzi-main\pzmap2dzi\pzdzi.py", line 378, in render_tile
    render.square(im_getter, ox, oy, sx, sy, layer)
  File "C:\Users\tcd\OneDrive\Desktop\pzmap2dzi-main\pzmap2dzi\render_impl\base.py", line 58, in square
    tex.render(im_getter.get(), ox, oy)
  File "C:\Users\tcd\OneDrive\Desktop\pzmap2dzi-main\pzmap2dzi\scheduling.py", line 220, in get
    raise Exception('cannot create im')
Exception: cannot create im
worker[2] error[cannot create im]6 cache: 2472.00 MB
Traceback (most recent call last):
  File "C:\Users\tcd\OneDrive\Desktop\pzmap2dzi-main\pzmap2dzi\mptask.py", line 53, in _run
    result = self.worker.on_job(arg)
  File "C:\Users\tcd\OneDrive\Desktop\pzmap2dzi-main\pzmap2dzi\scheduling.py", line 306, in on_job
    self.dzi.merge_tile(ic, level, x, y, layer, cached)
  File "C:\Users\tcd\OneDrive\Desktop\pzmap2dzi-main\pzmap2dzi\pzdzi.py", line 243, in merge_tile
    tile = Image.new('RGBA', (self.tile_size*2, self.tile_size*2))
  File "C:\Users\tcd\AppData\Local\Programs\Python\Python310\lib\site-packages\PIL\Image.py", line 2939, in new
    return im._new(core.fill(mode, size, color))
MemoryError
job: 1360820/1371044 worker: 0/16 cache: 2184.00 MB
time used 2:08:38.117907
cache max used: 3016.00 MB
Render stopped by hotkey.
All done

Finally, here are the two lines of conf.yaml that I touched (I did not change the mod_root to reflect my actual workshop path since the readme specifies "if you want to render a mod map" and I do not have any mod maps -- could this have caused the issue?):
pz_root: |- # project zomboid game folder
    C:\Games\Steam\steamapps\common\ProjectZomboid

output_path: |- # render output folder
    D:\Zomboid Map

You can try to turn off shared memory acceleration by setting enable_cache to false in conf.yaml, and see if that can help.

That resolved it! Thank you very much for the help and the tool :)


Fix auto scrolling in Chrome

In recent Chrome versions, taking the offset/position of a 0-width and 0-height span element always returns 0. This PR changes the style of the marker lastinput so it has a nonzero offset/position.
This addresses https://github.com/curiousdannii/parchment/issues/50#issuecomment-533946039.
NB: for convenience, I also included in this PR a commit with a recent build of parchment.

I tried to apply this patch to what I've got over at https://github.com/Quuxplusone/Advent/tree/gh-pages , but it seems to make my problems on Chrome even worse! Bear in mind I'm using a version of Parchment (and the corresponding Inform7-generated index.html) from 2016 and I'm probably doing something wrong. However:
Pre-patch (https://github.com/Quuxplusone/Advent/commit/36e2e28965aafffc1c245f8f95b3c0eb58d75849), the symptom on Chrome is that the gameport doesn't autoscroll; it gets a scroll bar and you have to manually scroll down after every input.
Post-patch (https://github.com/Quuxplusone/Advent/commit/9e081bf9d49b2ae764673688920b262d915440a9), the symptom on both Chrome and Firefox seemed to be that the gameport doesn't autoscroll and doesn't get a scrollbar! It just overflows off the bottom of the page and there's no way to see what's going on down there because you can't scroll. But then I backed my change out and reapplied it and refreshed the page, and then I couldn't reproduce that new symptom; it just went back to the old pre-patch symptom.
 Maybe I'm doing something else wrong? Could I ask you to clone my repo and see if you can get it to work in Chrome?

I think you also need this change:
https://github.com/curiousdannii/parchment/pull/61/files#diff-e4a4476dbe1d400e7155a903822b966eL456

Awesome! I confirm that scrolling in Chrome (both on my MacBook and on my Android phone) now look much better, after applying both of those patches.

Thanks!


fix(#4): preventing popup from spawning multiple times

Changes made

[x] Added control flags popups_opened and popup_should_open to the BinaryLifecycle class.
[x] Added q and <esc> to close popup in an easier way.
[x] Added set nomodifiable to popup's buffer to prevent editing.
[x] Added state notifications when is logging out or using a tier.

Fixes #4
Demo of the changes
https://github.com/supermaven-inc/supermaven-nvim/assets/71392160/6b3cd438-f587-4199-a601-d57285cf8600

The plugin isn't really intended to be used without being activated, it's not clear why one can't run :SupermavenUse[Pro/Free] to silence the popup.


[React] useHover floating element unexpectedly appears after the reference element is removed from the DOM

Describe the bug
useHover floating element unexpectedly appears after the reference element is removed from the DOM.
To Reproduce
https://stackblitz.com/edit/stackblitz-starters-ynswwy
Steps to reproduce the behavior:

Go to linked StackBlitz
Enter text into input element
Observe a new X reference element has appeared to the right of the input element
Click the X reference element before the hover timeout completes
Observe a floating element (tooltip) appears unexpectedly

Expected behavior
I expect removing the reference element from the DOM to prevent the floating element to appear.
Alternatively, I expect the useHover hook to return an Api which allows you to clear the timeout yourself (which is preferable to me...)
Context:

OS: Manjaro Linux
Browser: Chromium
Version: 115.0.5790.98

Additional context
The only workaround is a onOpenChange function which checks if the element still exists.

The only workaround is a onOpenChange function which checks if the element still exists.

useDismiss referencePress: true option is another workaround


feat(react-hooks): extend credential providers with format data

Signed-off-by: Akiff Manji<EMAIL_ADDRESS>

Codecov Report

Merging #146 (f08e9f7) into main (d60a5f9) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #146   +/-   ##
=======================================
  Coverage   87.07%   87.07%
=======================================
  Files          45       45
  Lines         681      681
  Branches       84       84
=======================================
  Hits          593      593
  Misses         88       88

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

I think this PR is probably quite out of sync with what's in AFJ today.
IMHO if you have working code that expands on this and it's not adding unnecessary work for you I'd say maybe we go with that instead.
Let me know. I'd be happy to review once it's ready.

Opened #231 that supersedes this.


Error with Unifi 5.5.8

I'm getting the following error after upgrading the controller to 5.5.8
[ERROR] failed collecting device metric Desc{fqName: "unifi_devices", help: "Total number of devices", constLabels: {}, variableLabels: [site]}: json: cannot unmarshal number 3.733721026E9 into Go value of type int64

Hi, I am AFK for a couple of weeks, but if I had to guess, the controller started returning a floating point value for something that may have previously been an integer.
The fix would need to happen in package unifi, and then the vendored copy would need to be updated here. PRs welcome of course.

Hello,
Can you update your vendor directory please ? Your FIX in package unifi fix this issue.
Thanks !


Support for Teletype Documents

If an HTML document is opened that is being viewed through teletype it doesn't draw anything.n It would be great if this feature worked.

I have also encountered this issue.


Tooltip colorbox supports configurable borderWidth, borderRadius, and dash effect

Updates
Enables styling of the tooltip color box via borderWidth, borderDash, borderDashOffset, and borderRadius properties.

Testing Done

Manual testing of new features
Automated tests added for tooltip

Resolves #6654

Size Change: +651 B (0%)
Total Size: 239 kB

Filename
Size
Change

dist/chart.esm.js
68.7 kB
+90 B (0%)

dist/chart.js
87.3 kB
+239 B (0%)

dist/chart.min.js
62.1 kB
+150 B (0%)

dist/chunks/helpers.segment.js
19.6 kB
+155 B (+1%)

dist/helpers.esm.js
1.16 kB
+17 B (+1%)


Replace expensive node json calls by jq

Since I'm having CPU load issues on my pi0, I went to check for some expensive calls that could be optimized away. I found this call:
https://github.com/openaps/oref0/blob/acb0150021e7bf284b6741a9510076a13f690747/bin/oref0-ns-loop.sh#L94-L97
node /usr/local/bin/json --help takes 14 seconds on my rasp, so I gladly replaced it with a jq call. It's quite inexpensive and I did some testing to make sure it outputs the exact same string.
The only caveat is that it assumes that the time in cgm/ns-glucose.json is formatted like
"%Y-%M-%DT%H:%M:%S.000Z"

which I believe is safe.
Here is some output (with -100 instead of -10):

with node json (14s user, 30s system):

CLICK ME

pi@pancreas:~/myopenaps $ cat cgm/ns-glucose.json | node /usr/local/bin/json -c "minAgo=(new Date()-new Date(this.dateString))/60/1000; return minAgo < 100 && minAgo > -5 && this.glucose > 38"
time [
  {
    "_id": "1577798746303128152c1fbb",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T13:25:46.000Z",
    "dateString": "2019-12-31T13:25:46.000Z",
    "rssi": 100,
    "direction": "Flat",
    "sgv": 96,
    "date":<PHONE_NUMBER>196,
    "unfiltered": 105412,
    "filtered": 105412,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 96
  },
  {
    "_id": "157779844630559233724d87",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T13:20:46.000Z",
    "dateString": "2019-12-31T13:20:46.000Z",
    "rssi": 100,
    "direction": "Flat",
    "sgv": 100,
    "date":<PHONE_NUMBER>195,
    "unfiltered": 109647,
    "filtered": 109647,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 100
  },
  {
    "_id": "1577798146394e2f22f3eb02",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T13:15:46.000Z",
    "dateString": "2019-12-31T13:15:46.000Z",
    "rssi": 100,
    "direction": "FortyFiveDown",
    "sgv": 105,
    "date":<PHONE_NUMBER>293,
    "unfiltered": 113882,
    "filtered": 113882,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 105
  },
  {
    "_id": "1577797846461eb0dff039b8",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T13:10:46.000Z",
    "dateString": "2019-12-31T13:10:46.000Z",
    "rssi": 100,
    "direction": "FortyFiveDown",
    "sgv": 113,
    "date":<PHONE_NUMBER>332,
    "unfiltered": 122588,
    "filtered": 122588,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 113
  },
  {
    "_id": "157779754634003dfe489491",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T13:05:46.000Z",
    "dateString": "2019-12-31T13:05:46.000Z",
    "rssi": 100,
    "direction": "SingleDown",
    "sgv": 122,
    "date":<PHONE_NUMBER>290,
    "unfiltered": 131529,
    "filtered": 131529,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 122
  },
  {
    "_id": "15777972469264b0b85f4d7b",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T13:00:46.000Z",
    "dateString": "2019-12-31T13:00:46.000Z",
    "rssi": 100,
    "direction": "FortyFiveDown",
    "sgv": 137,
    "date":<PHONE_NUMBER>875,
    "unfiltered": 146000,
    "filtered": 146000,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 137
  },
  {
    "_id": "15777969464366d445275b35",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T12:55:46.000Z",
    "dateString": "2019-12-31T12:55:46.000Z",
    "rssi": 100,
    "direction": "SingleDown",
    "sgv": 146,
    "date":<PHONE_NUMBER>393,
    "unfiltered": 154824,
    "filtered": 154824,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 146
  },
  {
    "_id": "15777966464232dd46a17692",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T12:50:46.000Z",
    "dateString": "2019-12-31T12:50:46.000Z",
    "rssi": 100,
    "direction": "SingleDown",
    "sgv": 158,
    "date":<PHONE_NUMBER>386,
    "unfiltered": 166706,
    "filtered": 166706,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 158
  },
  {
    "_id": "15777963465338f23c5e0d94",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T12:45:46.000Z",
    "dateString": "2019-12-31T12:45:46.000Z",
    "rssi": 100,
    "direction": "SingleDown",
    "sgv": 169,
    "date":<PHONE_NUMBER>489,
    "unfiltered": 178118,
    "filtered": 178118,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 169
  },
  {
    "_id": "15777960466311f9ac776c6b",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T12:40:46.000Z",
    "dateString": "2019-12-31T12:40:46.000Z",
    "rssi": 100,
    "direction": "SingleDown",
    "sgv": 179,
    "date":<PHONE_NUMBER>586,
    "unfiltered": 188235,
    "filtered": 188235,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 179
  },
  {
    "_id": "157779574653386f5c1617cf",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T12:35:46.000Z",
    "dateString": "2019-12-31T12:35:46.000Z",
    "rssi": 100,
    "direction": "SingleDown",
    "sgv": 194,
    "date":<PHONE_NUMBER>486,
    "unfiltered": 202706,
    "filtered": 202706,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 194
  },
  {
    "_id": "1577795446528bf01ca9a605",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T12:30:46.000Z",
    "dateString": "2019-12-31T12:30:46.000Z",
    "rssi": 100,
    "direction": "DoubleDown",
    "sgv": 205,
    "date":<PHONE_NUMBER>484,
    "unfiltered": 214353,
    "filtered": 214353,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 205
  },
  {
    "_id": "1577795146524be53887f15f",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T12:25:46.000Z",
    "dateString": "2019-12-31T12:25:46.000Z",
    "rssi": 100,
    "direction": "DoubleDown",
    "sgv": 224,
    "date":<PHONE_NUMBER>486,
    "unfiltered": 233412,
    "filtered": 233412,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 224
  }
]

with jq (0.1s user, 0.38s system):

CLICK ME

pi@pancreas:~/myopenaps $ time jq \
>         --arg AT_LATEST   "`date -u +'%Y-%m-%dT%H:%M:%S.000Z' --date '5 minutes'`"\
>         --arg AT_EARLIEST "`date -u +'%Y-%m-%dT%H:%M:%S.000Z' --date '-100 minutes'`"\
>         '[.[] | (select (.dateString >= $AT_EARLIEST)) | (select (.dateString <= $AT_LATEST)) | (select (.glucose > 38))]' cgm/ns-glucose.json
[
  {
    "_id": "1577798746303128152c1fbb",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T13:25:46.000Z",
    "dateString": "2019-12-31T13:25:46.000Z",
    "rssi": 100,
    "direction": "Flat",
    "sgv": 96,
    "date":<PHONE_NUMBER>196,
    "unfiltered": 105412,
    "filtered": 105412,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 96
  },
  {
    "_id": "157779844630559233724d87",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T13:20:46.000Z",
    "dateString": "2019-12-31T13:20:46.000Z",
    "rssi": 100,
    "direction": "Flat",
    "sgv": 100,
    "date":<PHONE_NUMBER>195,
    "unfiltered": 109647,
    "filtered": 109647,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 100
  },
  {
    "_id": "1577798146394e2f22f3eb02",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T13:15:46.000Z",
    "dateString": "2019-12-31T13:15:46.000Z",
    "rssi": 100,
    "direction": "FortyFiveDown",
    "sgv": 105,
    "date":<PHONE_NUMBER>293,
    "unfiltered": 113882,
    "filtered": 113882,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 105
  },
  {
    "_id": "1577797846461eb0dff039b8",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T13:10:46.000Z",
    "dateString": "2019-12-31T13:10:46.000Z",
    "rssi": 100,
    "direction": "FortyFiveDown",
    "sgv": 113,
    "date":<PHONE_NUMBER>332,
    "unfiltered": 122588,
    "filtered": 122588,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 113
  },
  {
    "_id": "157779754634003dfe489491",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T13:05:46.000Z",
    "dateString": "2019-12-31T13:05:46.000Z",
    "rssi": 100,
    "direction": "SingleDown",
    "sgv": 122,
    "date":<PHONE_NUMBER>290,
    "unfiltered": 131529,
    "filtered": 131529,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 122
  },
  {
    "_id": "15777972469264b0b85f4d7b",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T13:00:46.000Z",
    "dateString": "2019-12-31T13:00:46.000Z",
    "rssi": 100,
    "direction": "FortyFiveDown",
    "sgv": 137,
    "date":<PHONE_NUMBER>875,
    "unfiltered": 146000,
    "filtered": 146000,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 137
  },
  {
    "_id": "15777969464366d445275b35",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T12:55:46.000Z",
    "dateString": "2019-12-31T12:55:46.000Z",
    "rssi": 100,
    "direction": "SingleDown",
    "sgv": 146,
    "date":<PHONE_NUMBER>393,
    "unfiltered": 154824,
    "filtered": 154824,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 146
  },
  {
    "_id": "15777966464232dd46a17692",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T12:50:46.000Z",
    "dateString": "2019-12-31T12:50:46.000Z",
    "rssi": 100,
    "direction": "SingleDown",
    "sgv": 158,
    "date":<PHONE_NUMBER>386,
    "unfiltered": 166706,
    "filtered": 166706,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 158
  },
  {
    "_id": "15777963465338f23c5e0d94",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T12:45:46.000Z",
    "dateString": "2019-12-31T12:45:46.000Z",
    "rssi": 100,
    "direction": "SingleDown",
    "sgv": 169,
    "date":<PHONE_NUMBER>489,
    "unfiltered": 178118,
    "filtered": 178118,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 169
  },
  {
    "_id": "15777960466311f9ac776c6b",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T12:40:46.000Z",
    "dateString": "2019-12-31T12:40:46.000Z",
    "rssi": 100,
    "direction": "SingleDown",
    "sgv": 179,
    "date":<PHONE_NUMBER>586,
    "unfiltered": 188235,
    "filtered": 188235,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 179
  },
  {
    "_id": "157779574653386f5c1617cf",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T12:35:46.000Z",
    "dateString": "2019-12-31T12:35:46.000Z",
    "rssi": 100,
    "direction": "SingleDown",
    "sgv": 194,
    "date":<PHONE_NUMBER>486,
    "unfiltered": 202706,
    "filtered": 202706,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 194
  },
  {
    "_id": "1577795446528bf01ca9a605",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T12:30:46.000Z",
    "dateString": "2019-12-31T12:30:46.000Z",
    "rssi": 100,
    "direction": "DoubleDown",
    "sgv": 205,
    "date":<PHONE_NUMBER>484,
    "unfiltered": 214353,
    "filtered": 214353,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 205
  },
  {
    "_id": "1577795146524be53887f15f",
    "noise": 1,
    "device": "MIAOMIAO",
    "sysTime": "2019-12-31T12:25:46.000Z",
    "dateString": "2019-12-31T12:25:46.000Z",
    "rssi": 100,
    "direction": "DoubleDown",
    "sgv": 224,
    "date":<PHONE_NUMBER>486,
    "unfiltered": 233412,
    "filtered": 233412,
    "type": "sgv",
    "utcOffset": 0,
    "glucose": 224
  }
]

real	0m0.386s
user	0m0.117s
sys	0m0.057s

Note: I wanted to use jq's strptime and strftime (https://stackoverflow.com/a/49263320/3660320) but it is not necessary since the dates are formatted in ISO 8601 (https://github.com/stedolan/jq/issues/1056#issuecomment-170714705)
TODO: I did not test this in a real loop.

I now realize that since minAgo seems to be an integer (?) in return minAgo < 10 && minAgo > -5, the strictly equivalent semantics would be to use
        --arg AT_LATEST   "`date -u +'%Y-%m-%dT%H:%M:%S.000Z' --date '4 minutes'`"\
        --arg AT_EARLIEST "`date -u +'%Y-%m-%dT%H:%M:%S.000Z' --date '-9 minutes'`"\

instead. I imagine this is not very important

I am not familiar with monitor-xdrip.sh, but this patch could also be used here:
https://github.com/openaps/oref0/blob/acb0150021e7bf284b6741a9510076a13f690747/bin/monitor-xdrip.sh#L14

Patched the other location + another call that could be replaced identically by jq, saving a lot of time:
pi@pancreas:~/myopenaps $ time json -f upload/latest-treatments.json -a created_at eventType
time jq -r '.[] |.created_at + " " + .eventType' upload/latest-treatments.json
2019-12-31T15:48:28+02:00 Temp Basal
2019-12-31T15:32:57+02:00 Temp Basal
2019-12-31T15:15:30+02:00 Temp Basal
2019-12-31T14:05:56+02:00 Temp Basal
2019-12-31T13:49:31+02:00 Correction Bolus

real	0m44.844s
user	0m15.323s
sys	0m0.401s
pi@pancreas:~/myopenaps $ time jq -r '.[] |.created_at + " " + .eventType' upload/latest-treatments.json
2019-12-31T15:48:28+02:00 Temp Basal
2019-12-31T15:32:57+02:00 Temp Basal
2019-12-31T15:15:30+02:00 Temp Basal
2019-12-31T14:05:56+02:00 Temp Basal
2019-12-31T13:49:31+02:00 Correction Bolus

real	0m0.161s
user	0m0.039s
sys	0m0.012s

Note that it is probably still overkill for what it does.
There is one last call in oref0-monitor-cgm.sh:
grepr "json -f"
oref0-monitor-cgm.sh:16:    && json -f monitor/glucose-raw-merge.json -a sgv raw dateString | head -n 4

but I do not use a g4 so I cannot possibly test that one.

This will break the date handling in OpenAPS further from how it works now, by assuming a specific date format for Nightscout CGM data. Nightscout only guarantees the CGM and treatment dates comply with ISO 8601 and can be both normalised to UTC or use the local time zoned format, with or without millisecond precision. You might see this code work depending on the data sources you have for the data in Nightscout, but this will not work for all data sources. Please do not add more code that doesn't use a real date parser - I can see how making the system more performant is good, but this shouldn't make OpenAPS less compatible with external data sources.

The only caveat is that it assumes that the time in cgm/ns-glucose.json is formatted like
"%Y-%M-%DT%H:%M:%S.000Z"

which I believe is safe.

@sulkaharo so this assumption was wrong. It seems the parsing job falls back on OpenAPS :(

Nightscout only guarantees the CGM and treatment dates comply with ISO 8601 and can be both normalised to UTC or use the local time zoned format, with or without millisecond precision.

This is a bit of information I was looking for.  I see two issues with this implementation:

I assume the date starts with the %Y-%M-%DT%H:%M:%S format
I assumed no timezone (ends with Z)

I imagine there is no way to cover what Nightscout could update with jq, and it needs a really smart parser. Would you see it reasonable to try with jq first, then to fallback on node json?
Performance is a big concern to me, the pi0 spends all its time at 1000Mhz and loop times aren't ideal.

Ok, so thinking about this, what we could do is have the code that loads the treatments from Nightscout translate the dates to whatever format Openaps wants to use internally and then have the scripts that need to be as performant as possible to use that format. This will probably slow down the data load from Nightscout, but would allow the rest of the code to trust the date formats. For this, what’s the ideal internal format? We could probably speed things up even more by using something like Javascript’s milliseconds from 1980 ( Date.now() ) which would be inherently compatible with what the oref JavaScript code does as well

@sulkaharo Sounds like a good way to go about it to me. If there is a need for retro-compatibility (which surely there is?), what about an additional timestamp field that gives this "Javascript’s milliseconds from 1980", besides the raw time format that we now store? This way, OpenAPS and other scripts could check whether this field is present, and do easy computations, or fallback on interpreting the raw data.
Unless you see a way to go about it that does not need backwards compatibility.

If we go with global solution to https://github.com/openaps/oref0/issues/1348 than no need to contine here. On the other hand, if we don't than do it, by all means...

@tzachi-dar 100% agree

I believe this is probably unnecessary given https://github.com/openaps/oref0/pull/1411 , since the root cause of json being slow is addressed there.

If no objections, I'll close this as fixed by #1411, and we can follow up with #1370 if it's still needed.


Slice of struct as query params for cypher

I am trying to execute a cypher query with params as slice of struct.
I see the slice of struct not getting parsed correctly, as a result the query is not behaving as expected.
Please find below more details:
Sample Query
WITH {Nodes} as nodes
UNWIND nodes as node
...
...

Scenario1
Struct:
type Node struct {
	ID int64   `json:"id"`
	X  float64 `json:"x"`
	Y  float64 `json:"y"`
}

The parameter being passed is a slice of Node, []Node{}.
When i enabled debug mode for the driver, I am getting following:
{Nodes: [null, null, null, null]}
Issue: Slice of struct not getting parsed
Scenario2
Struct:
type Node struct {
	ID interface{}   `json:"id"`
	X  interface{} `json:"x"`
	Y  interface{} `json:"y"`
}

Issue: Slice of struct not getting parsed
The parameter being passed is a slice of Node, []Node{}.
When i enabled debug mode for the driver, I am getting following:
{Nodes: [null, null, null, null]}
Scenario3
Struct:
type Node interface{}

The parameter being passed is a slice of Node, []Node{}.
When i enabled debug mode for the driver, I am getting following:
{Nodes: [{id: 1.429700E+04, x: -7.545518E+00, y: -1.147595E+01}, {id: 1.431900E+04, x: 1.613901E+01, y: -1.043397E+01}, {id: 1.430600E+04, x: 7.367213E+00, y: 1.157960E+01}, {y: 1.033033E+01, id: 1.429300E+04, x: -1.596071E+01}]}

Issue id value is getting converted to float even if it is integer.
I am unmarshalling the request payload directly into Node struct and the request payload is always sending id as int, x as float and y as float.
A sample request is as follows:
[{"id":14297,"x":-7.545517921447754,"y":-11.475950241088867},{"id":14319,"x":16.139013290405273,"y":-10.43397331237793},{"id":14306,"x":7.367213249206543,"y":11.579595565795898},{"id":14293,"x":-15.960708618164062,"y":10.330327987670898}]

Could you help me resolve this?

Hi @vikashvverma,
Sending user defined types as query parameters is not supported. The supported types are listed at https://github.com/neo4j/neo4j-go-driver#value-types, https://github.com/neo4j/neo4j-go-driver#spatial-types---point and https://github.com/neo4j/neo4j-go-driver#temporal-types---date-and-time. Of those types listed, you cannot send neo4j.Node, neo4j.Relationship and neo4j.Path values as query parameters.
You can however convert your struct values into map[string]interface{} instances and send them as such.
I'm closing the issue, please feel free to re-open if the suggestion above doesn't work for you.
Thanks.

Right,
I used []map[string]interface{} and it worked.
Thanks


Question:  Can I use Translation outside react component ?

Hello,
I come from a big CRA project and I start to migrate it to Next.js. For translation i previously use https://www.npmjs.com/package/@lingui/react.
I find this library very interesting with the tree-shaking and all the feature i want except one I need to achieve the migration to next.js
Basically with the current project, I had specific case where I used the translate on Epic (Epic come from https://redux-observable.js.org/ if you didn't know) in a redux store.
So, Can I use the translation on a redux store (in an Epic in my case), outside a React component ?

The t function uses the React context to know the available language and namespaces to use during the translation. Then, you can use the t function outside components as long as you pass the function:
import useTranslation from 'next-translate/useTranslation'

function MyComponent() {
  const { t } = useTranslation()

  return getItems({ t }).map(item =>
{item}
)
}

// using translations outside components
function getItems({ t }) {
   return Array.from({ length: 100 }).map((_, index) => t(`mynamespace:key_number_${index}`))
}

Ok, I see your point. I think i need to rework some part to integrate it like this.
Thanks, have a good day

You are welcome. Any other doubt or incident do not hesitate to report it! Thank you very much.

@JbPons I have made a PR adding getT, with this you can use translations out of React, in places like getStaticProps, API routes, etc. https://github.com/vinissimus/next-translate/pull/383

@JbPons I pre-released the change under 1.0.0-canary.8. I would appreciate it if you could try it out on your project and give me feedback that everything is working well for you 😊
If you wonder how to migrate to version 1.0, here is a guide:

https://github.com/vinissimus/next-translate/blob/1.0.0-canary.8/docs/migration-guide-1.0.0.md

Any doubt, tell me. Thank you very much for reporting it 🙏 I guess that version 1.0 will be released soon.

Oh thanks for this. I hesitated to test the 1.0.0 because I need to translate some content from the  _app.js file. And I see the #44 issue mentionning that the 1.0.0 solve this issue. Currently, I work hard on the migration to next.js. Since my project is pretty big ( around 400 react component), it's take time. But, I will test the 1.0.0 by the end of the week. Thanks for your hard work

The t function uses the React context to know the available language and namespaces to use during the translation. Then, you can use the t function outside components as long as you pass the t function:
import useTranslation from 'next-translate/useTranslation'

function MyComponent() {
  const { t } = useTranslation()

  return getItems({ t }).map(item =>
{item}
)
}

// using translations outside components
function getItems({ t }) {
   return Array.from({ length: 100 }).map((_, index) => t(`mynamespace:key_number_${index}`))
}

Anyway, if you want to save translations inside a store, I would like to suggest that the translations are better not to be part of the state of the application

Thank you so much. It works, the key is to pass the context out, but the details may be different in different projects. I use lingui.js and it also works really well.


QuickFix for ValueNotContainedMutabilityLiteralConstantValuesDiffer

Still very WIP, but this should update a [<Literal>] val in a signature file to be in sync with the impl.
https://github.com/JetBrains/resharper-fsharp/assets/3221269/a925cd87-871c-4c4f-853a-7cc02a0eb1ce

Instead of disabling the QuickFix for UoM constants, we could also check if they are valid in the sig file.
I tried that in the last commit. There's still work to do if the UoM type itself needs an update, too.
Let me know, if you're interested in supporting them or if I should revert.

Because of https://github.com/dotnet/fsharp/issues/15843 we can't update the return type for UoM Literals but otherwise I think the UoM support in this CodeFix is okay now.


Test CameraActivity in a Separate Process

While having multiple processes is generally an anathema for Android, CameraActivity is one of the better candidates for this. The heap usage of the camera will not affect the rest of the app this way.
This should be able to be set via the manifest merger process. Test this (perhaps have the playground go this route) and see how it behaves. Document the results if successful.

Tested, seems fine, demo-playground/ change to use this pushed, added to docs.


[wallet-ext] Fix incorrect SDK types and optimize requests

Description
This reduces one multiGetTransactionBlocks call by just fetching the data in queryTransactionBlocks. Also fixes a small type bug, and removes the recent transactions fetch from the coin details page as the data is currently unused.
Test Plan
Tested locally.

Current dependencies on/for this PR:

main

PR #10780   👈

This comment was auto-generated by Graphite.


Older versions on modrinth

Currently the version for 1.19.3 is the oldest version on modrinth - files for 1.19.2 and earlier are only on curseforge. Would it be possible to add them to modrinth too (especially the fabric 1.19.2 version)?

I have just uploaded an older version (1.1.1) to modrinth that should support 1.18 - 1.19.2 versions.
Hope this helps.


[MB-5275] Fixed updateMTOPostCounselingInfo command in prime-api-client

Description
Fixed the updateMTOPostCounselingInformation command in prime-api-client
Setup
Run the command against devlocal and staging if possible.
prime-api-client update-mto-post-counseling-information --filename body-update-mto.json
File should contain the following
{
  "moveTaskOrderID": <uuid>,
  "ifMatch": <etag>,
  "body" :
  {
    "moveTaskOrderID": <uuid>,
    "ppmType": "FULL",
    "ppmEstimatedWeight": 4748,
  }
}

References

 MB-5275 prime-api-client should hit updateMTOPostCounselingInformation endpoint

Messages

:book:
:link: MB-5275

  Generated by :no_entry_sign: dangerJS against a5302bd50628d78d37b591d78d07ec21c6084255


missing group="tLN" for sampleIDs 9 and 34

The metadata from the workspace file currently shows
       <Group name="tLN" >
         <Criteria>
           <Criterion keyword="TUBE NAME"  function="Contains"  value="tln" />
         </Criteria>
         <ManuallyIncludedSamples>
           <SampleRef sampleID="11" />
         </ManuallyIncludedSamples>
         <SampleRefs>
           <SampleRef sampleID="33" />
           <SampleRef sampleID="25" />
           <SampleRef sampleID="11" />
         </SampleRefs>
         <Keywords/>
       </Group>

I'm starting to understand these bugs now.. missing groups result in the bug https://github.com/gszep/FlowWorkspace.jl/issues/7


nixos/systemd: allow str in systemd.services..path

Turns out, #75510 was too restrictive.
We also need to allow str here, as some modules set this to
"/run/wrappers" to bring /run/wrappers/bin into $PATH of a unit.
Things done
Ran the ipfs tests (an example of it), and the systemd test.

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

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

[x] 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 nixpkgs-review --run "nixpkgs-review wip"
[ ] 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)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Well, looks like that didn't work. One more time.
@ofborg test ipfs


Improve the Title of window name

Hello,
Thank you for your great extension. I've installed it and it runs smoothly. However, I've realized that the title of the window name was not friendly.

Do you have any ideas to show it more intuitively? Thank you

Hi!
I didn’t mull over it much. That’s exactly the window title if I recall
correctly, so one could query not just by app name but anything else there
is in the window title. That’s useful when you have more than one browser,
for example.
What would you consider be more friendly?
Em ter., 16 de ago. de 2022 às 22:21, leviethung2103 <
@.***> escreveu:

Hello,
Thank you for your great extension. I've installed it and it runs
smoothly. However, I've realized that the title of the window name was not
friendly.
[image: image]
https://user-images.githubusercontent.com/16741872/185013663-edd03283-cfab-4f2c-bab7-f80308fd6ace.png
Do you have any ideas to show it more intuitively? Thank you
—
Reply to this email directly, view it on GitHub
https://github.com/trepichio/ulauncher-window-switcher/issues/1, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACW6NUP73AMV7GMPW3USLADVZQ5BDANCNFSM56XYG6HQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

--
João Eduardo Átala Trepíchio
+55 12 99775-5480 / @.***
LinkedIn: http://br.linkedin.com/in/trepichio (English)
http://br.linkedin.com/in/trepichio/pt (BR-Portugues)


dual supervision for sparse/dense images

why need dual supervision for sparse/dense images
In loss fuctuin dual supervision for sparse/dense images
loss_ce_sp = (raw_ce_loss * weights * div_mask)[sp_idx].sum() / ((weights * div_mask)[sp_idx].sum() + eps)
loss_ce_ds = (raw_ce_loss * weights * div_mask)[ds_idx].sum() / ((weights * div_mask)[ds_idx].sum() + eps)
thanks

As explained in the paper (Page 6), we use dual supervision to prevent the loss from being diluted by samples with few people, because such samples yield small training losses.

thanks


Check that SYST.set_reload's argument is valid

The SYST.set_reload takes a number of cycles as an argument. Even though the type of this argument is an u32, only values that fit on 24 bits are valid. The code does document this caveat, however in practice there is no check being enforced.
As a result, it's very easy to pass a value that's too large and that will silently overflow, leading to a hard-to-diagnose incorrect behavior.
Would it make sense to add an assertion about the argument there?

The discussion about handling out-of-range inputs has been happening in the WG meetings and https://github.com/rust-embedded/riscv/issues/212
Cortex-M should adopt whatever comes out of that for a similar experience across architectures as @romancardenas suggested.


Added support for plugins

This adds support for plugins using the [plugin_name:arg] syntax.
test/index.js shows a basic "youtube" plugin.

Hi there,
There were lots of good comments here, highlighting use cases that weren't taken into account by my code, and suggesting alternative mechanisms for extending Markdown.
I myself believe this might be out of scope for a Markdown processor after all, and more in line with what's expected of a templating engine —I'm now using Pug as my document format, which is extensible and allows inline Markdown too.
I'm closing this pull request, as it's old and has failed to get consensus.


Change JSON Dictionary shape

Currently, the phrases key has an object for its value. On that object, each key is a phrase object that has a definitions and examples keys.
phrases should change from an object to an array of objects.
The updated shape is already represented in the MongoDB database, but it makes sense to keep the JSON up-to-date
Before
{
    "phrases": {
            "(agụū) -gụ": {
                "definitions": [
                    "be hungry"
                ],
                "examples": []
            }
        }
}

After
{
    "phrases": [
            {
                "phrase": "(agụū) -gụ",
                "definitions": [
                    "be hungry"
                ],
                "examples": []
            }
        ]
}

This ticket is now outdated since there's no longer a phrases object.


Drop Badger and Redis support

It was recently discovered that our node with BadgerDB backend has some problems with mainnet processing:
2021-08-13T10:58:11.957+0300    WARN    blockQueue: failed adding block into the blockchain     {"error": "onPersist failed: VM has failed: at instruction 0 (SYSCALL): failed to invoke syscall<PHONE_NUMBER>: voters count not found", "blockHeight": 4304, "nextIndex": 4305}

And I'm not sure what's the problem. Updating to some newer version doesn't help (see #2084 also). The backend itself hasn't changed in a long time, so I'm also not sure when it broke. But it looks like no one is using it, otherwise we'd know it earlier.
At the same time:

recent optimizations make the node perform nice with LevelDB and BoltDB, Badger always gave some 5-10% more, but this advantage is probably less than that now
I'm not sure what's going on with v3 and in general with versioning there

So if there are no known justified use cases for it and we're not sure how long it's gonna take to fix it we can just drop it as well which is what proposed here. If anyone has any objections, please tell us (or better yet just fix the damn thing).
There is a similar proposal for Redis that we also currently have in our codebase. I've not seen it being used for a long time and I'm not sure it works at all. There is #2088 for it also.
This issue will stay there for at least one release and then if there is nothing new we'll drop both DBs in some subsequent one.

Side note: dropping these DBs makes the node binary 2MB smaller.


Add implicit dependency download support

This pull request contains the following changes:

Rename dg.lib.download_manager package to dg.lib.dependency_manager
Rename DownloadManager class to DependencyManager (not detected by Git, manual comparison required)
Rename AbstractDownloadManagerPlugIn class to AbstractDependencyManagerPlugIn (not detected by Git, manual comparison required)
Move logic to obtain the path of the binary provided by a dependency from the DataGateConfigurationManager class to the DependencyManager class
Add support for implicitly downloading a dependency if the binary provided by a dependency is called but does not exist (dg/lib/dependency_manager/dependency_manager.py) (Fixes https://github.ibm.com/Everest/nimbus-planning/issues/176)

Eirini (@eirinikalogeiton) reviewed this pull request as part of her review of pull request 98.


cleans up migration commands

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.05%) to 85.404%

Totals

Change from base Build<PHONE_NUMBER>:
0.05%

Covered Lines:
1299

Relevant Lines:
1521

💛  - Coveralls

Nice!


refactor the gateway controller

What
the gateway controller is overly complex

break out status handling
break out deletion handling
break out gateway params handling

This issue is stale because it has been open for 60 days with no activity.

This issue was closed because it has been inactive for 30 days since being marked as stale.


How to create an empty secret in Key Vault

Describe the documentation you'd like to see
Sometimes you would like to create an empty secret in Azure Key Vault, just so you would be able to optimize your ARM/Bicep files to support multiple authentication types.
However, creating such an empty secret is not allowed from within the Azure Portal, nor does the PowerShell command ConvertTo-SecureString support this.
Luckily, there is in fact quite an easy workaround to this issue by using PowerShell:
# Create a new SecureString-object, which does not have any value by default
$emptySecret = (new-object System.Security.SecureString)

# Create the new secret in Key Vault
Set-AzKeyVaultSecret -VaultName $keyVaultName -Name $secretName -SecretValue $emptySecret

Additional context
PowerShell-script for this can also be found here:
https://github.com/mbraekman/Powershell/blob/master/Azure/Create KeyVault Secret - Empty Secret.ps1

Closed by PR #49


Make sure "Total in ..." is the last thing printed to console

With hugo serve and file watching enabled, Hugo indicates a build run has started with the message "Change detected, rebuilding site.".
Hugo does not appear to print an equally consistent message to indicate it is no longer building the site.
On successful builds, the last line is usually something like "Total in # ms".
However, error messages may be printed after this line.

The motivation for this is to write a problemMatcher for a Visual Studio Code Task.
VSCode Tasks support a long-running, background task. The problemMatcher parses the stdout of the executed command, and uses regular expressions to collect information about errors.
VSCode must know when a build run is started, and when it ends. After a build run, it populates the UI with error information.
endsPattern is a regular expression that matches whichever line is printed at the end of a build run.
I don't know of one that works in a general case.
My current working attempt is:
{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "preview (hugo server)",
            "type": "process",
            "command": "hugo",
            "args": [
                "serve",
                "--bind", "<IP_ADDRESS>",
                "--port", "1313",
                "--source", "${workspaceFolder}"
            ],
            "detail": "Generate a live preview of the website",
            "echoCommand": true,
            "isBackground": true,
            "isBuildCommand": true,
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "presentation": {
                "clear": false,
                "focus": false,
                "panel": "shared",
                "showReuseMessage": false,
            },
            "runOptions": {
                "instanceLimit": 1,
                "runOn": "folderOpen",
            },
            "suppressTaskName": true,
            "problemMatcher": {
                "owner": "external",
                "applyTo": "allDocuments",
                "fileLocation": "absolute",
                "background": {
                    "activeOnStart": true,
                    "beginsPattern": "Change detected",
                    "endsPattern": "Build finished",
                },
                "pattern": {
                    "kind": "location",
                    "regexp": "^\\s*?([A-Z]+)\\s+[\\d/]+\\s+[\\d:]+\\s(.*?\"((.*):(\\d+):(\\d+))\".*)$",
                    "severity": 1,
                    "file": 4,
                    "line": 5,
                    "column": 6,
                    "message": 2,
                }
            }
        }
    ]
}

If I understand you correctly, your main problem with the current situation is that we print errors after the "Total in ..."; if we fix that (as in: make sure the "Total in" is the last thing printed, then the current text would work?

Yes, that would work.
If a different message would work better, that would be awesome. I understand that Total in ... may not make sense in every situation. For example, template errors.
As long as the message is:

[x] deterministic
[x] always present

that would satisfy this proposal.

Total in ... may not make sense in every situation

Yea, well, nothing is perfect -- and we had that message, like, forever, so I bet there are existing tooling out there that relies on that message.

I appreciate your realism.
From a cursory search, people are relying on Total in ....
It may have been obvious, but to be complete, the last requirement would be:

[x] deterministic
[x] always present

[x] printed exactly once

I had a quick look at that part of the code, and I think we use the term "Rebuilt in ..." when a config file changes (which triggers a full rebuild).
So, to summarize this task:

Change the text to always say "Total in ..." (pull out into a function)
Refactor the code so that any error gets printed first

Hi!
Could I be assigned to this issue?

@PavloGl I have already started to work on this issue do you want to chime in?

@meehawk no problem, I'll find another one

I had a quick look at that part of the code, and I think we use the term "Rebuilt in ..." when a config file changes (which triggers a full rebuild).
So, to summarize this task:

Change the text to always say "Total in ..." (pull out into a function)
Refactor the code so that any error gets printed first

@bep the method c.timeTrack which causes the log to be output is prefixed by a defer so it should be logged at the end of the rebuildSites method after all the errors have been logged in. Do we still need to handle 2 in that case ?

@meehawk yeah, #2 is still needed because the actual handling of the errors (printing them out) happens outside of the rebuildSites function
Currently, the output is

Change detected, rebuilding site.
2021-06-12 03:11:14.190 +0000
Source changed "/path/to/file.md": WRITE
Total in 2 ms
ERROR 2021/06/12 03:11:14 Rebuild failed:
ERROR 2021/06/12 03:11:14 "/path/to/file.md:30:1": failed to extract shortcode: template for shortcode "asdf" not found

Where the preferred result would be

2021-06-12 03:11:14.190 +0000
Source changed "/path/to/file.md": WRITE
ERROR 2021/06/12 03:11:14 Rebuild failed:
ERROR 2021/06/12 03:11:14 "/path/to/file.md:30:1": failed to extract shortcode: template for shortcode "asdf" not found
Total in 2 ms

I'll make a PR to make sure the time is always printed after the errors have been printed

@mawillcockson This is the Hugo VS Code tasks file I ended up with. It isn't perfect, but it gets all the errors even if it sometimes randomly removes errors that are still present. (feel free to make a PR if you make it better)


Typos are not handled correctly by semantic search

Typos are not handled correctly and break semantic search and keyword search.  Spelling alignment incorrectly produces insufficient results on the UI.

Example!


Apply style properties to the poi icon

JS part of this pull request. See main BlueMap repo for a full description

Closing this since it is now possible to add this using custom styles and css-classes for POI-markers :)


"New Post" button needs to be prominent, and not under a sub menu

Engagement starts with "New Post" and the "Create Post" button.
It MUST be braindead simple to get to this form from any view.

I actually have to search for the button to post

If the menu on the left is collapsed, figure out which one is "News Feed"
Click "News Feed" from the left menu
Scan past 2 sub-menu items to find "New Post"
Click "New Post"

After getting people to get the software running, this has to be the most critical change to facilitate engagement
No mater where I go on twitter.com or the Twitter app, there's always a prominent blue button


Confusion

what does it mean to "Label them with their energies"??

calculate the enrgy and display it on your plot


Add credits and about panels to main menu

Adds an auto scrolling view of the game credits based on merged versions of the three dependent credits files (needs details of third party code/licences).
Adds an initial "about" panel indicating that the game was made by community members and where to find sources/forums (needs buttons for launching those locations in a web browser)

This feels small scope and safe to merge. Slap me on the wrists if it introduces problems :D


Disable pwm output

fix for Spikes in PWM Output when writing zero duty cycle

Smooth PWM output(when sweeping frequency)

-digitalWrite() on ANALOG_OUT

Pull Request Test Coverage Report for Build 67

0 of 4 (0.0%)  changed or added relevant lines in 1 file are covered.
11 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.2%) to 36.889%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/index.js
0
4
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/my.js
11
19.82%

Totals

Change from base Build 63:
-0.2%

Covered Lines:
332

Relevant Lines:
900

💛  - Coveralls

Pull Request Test Coverage Report for Build 67

0 of 4 (0.0%) changed or added relevant lines in 1 file are covered.
11 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.2%) to 36.889%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/index.js
0
4
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/my.js
11
19.82%

Totals

Change from base Build 63:
-0.2%

Covered Lines:
332

Relevant Lines:
900

💛  - Coveralls

Pull Request Test Coverage Report for Build 67

0 of 4 (0.0%)  changed or added relevant lines in 1 file are covered.
11 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.2%) to 36.889%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/index.js
0
4
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/my.js
11
19.82%

Totals

Change from base Build 63:
-0.2%

Covered Lines:
332

Relevant Lines:
900

💛  - Coveralls


Revert "New package: NL2sol_jll v2.2.0+0"

Reverts JuliaRegistries/General#14111
We can't actually distribute this package.  I'll also take down https://github.com/JuliaBinaryWrappers/NL2sol_jll.jl, there is little point in keeping a totally broken package in the registry.

Put on hold until @macd clarifies the status of the package, whether we can distribute it or not.

So actually, we are in the clear here.  The ACM was only worried about posting the PDF of the original NL2SOL articles from TOMS which was never my intent.
The original code is freely downloadable from Netlib.  From Netlib's FAQ:
"The Netlib repository contains freely available software, documents, and..."  and also "Most netlib software packages have no restrictions on their use".  The code itself does not contain any copyright mark.  But I have conservatively put ACM's license language in the license file of NL2sol.f even though I really do not think it is necessary.  Since NL2sol.jl has already been merged into the general registry, there is nothing more left to do so this pull request should just be closed without merging.  Thanks for your help Mose and sorry for the fire drill.


feat: add source maps

Add source maps to built scripts and styles. This will help debugging. Should be done for #3 after it merge

@yyx990803 could you please review?

CSS mapping demo:


Parsing Collections

Integrate yaml file format for the collection request.
Create Binary we can use. ✅
Collections can also contain .env files that can be used to for collection specific variables.

folder_name/request_name.yaml || folder_name/request_name.yml provided by the user. Folder name is always unique. Search the root folder.  ❌
If the collection has .env file in it, create a final map with this file as the highest priority.

Going with Toml file format.

Will be initially using https://github.com/BurntSushi/toml library as it's not in scope to create

Create and Consume a call with toml file.
Understand the binary's behavior.

I am not implementing the collection variable file right now...


polymorphic deserialization with JsonTypeInfo.As.EXTERNAL_PROPERTY problem

I'm trying to deserialize entities of type "Datasource" with a polymorphic property call "properties".
The idea is to identify the "properties" type using the "type" column from the datasource database table.
I do not want to keep the type information inside the "properties" json in database for constraints purpose.
In this situation i'm getting the following error when trying to deserialize the entities from database (using repository.findAll())
Cannot construct instance of `br.com.flowti.api.report.data.entity.DatasourceProperties` (no Creators, like default constructor, exist): abstract types either need to be mapped to concrete types, have custom deserializer, or contain additional type information\n at [Source: (String)\"{\"apiUrl\": \"xpto\", \"apiToken\": \"xpto\"}\"; line: 1, column: 1]

Here is my entities and associations:
@Getter
@Setter
@Entity
public class Datasource {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @Column(unique = true, nullable = false)
    private String name;

    @Column(nullable = false)
    private String type;

    @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXTERNAL_PROPERTY, property = "type", visible = true)
    @JsonSubTypes({
            @JsonSubTypes.Type(value = ZabbixDatasourceProperties.class, name = "zabbix")
    })
    @Type(JsonType.class)
    @Column(columnDefinition = "json")
    private DatasourceProperties properties;

}

public interface DatasourceProperties extends Serializable {

}

@Getter
@Setter
public class ZabbixDatasourceProperties implements DatasourceProperties {

    private String apiUrl;
    private String apiToken;

}

Is there a solution for this case, without keeping the type information inside the "properties" attribute?

You will need a custom solution for that mapping.
No generic Hibernate Type or Hypersistence Utils Type will provide that out-of-the-box.


BelongsToSelect - All of the related records are loaded

First of all thank you guys for Filament. It's extreamly powerfull.
The documentation of BelongsToSelect says: "By default, options will only load when you start typing a search". This is not the case. All of the related records are loaded on pageload (thousands in my case).
When you type to search, it doesn't send ajax request to the server.
Context

Package version: v1.65

Hey, could you paste your models' relationship configuration as well as the field code you've tried?

@danharrin The details are below:
Gauge model relation:
    public function events()
    {
        return $this->hasMany(Event::class);
    }

Events model relation:
    public function gauge()
    {
        return $this->belongsTo(Gauge::class);
    }

EventResource.php's field:
     Components\BelongsToSelect::make('gauge_id')
            ->label('Mérőeszköz')
            ->relationship('gauge', 'unique_id'),

Hi !
I made some tests on this : it seems related to https://github.com/laravel-filament/filament/commit/bd7e3817e35af0e912b3066f20c7c946c58d1f6c
The preload seems to happen by default (without ->preload() specified), due to
$this->getOptionsUsing(function () use ($callback) {
                $relationship = $this->getRelationship();

                $query = $relationship->getRelated();

                if ($callback) {
                    $query = $callback($query);
                }

                return $query
                    ->pluck($this->getDisplayColumnName(), $relationship->getOwnerKeyName())
                    ->toArray();
            });

I disabled this behavior using ->getOptionsUsing(false) on BelongsToSelect.

Fixed by #268.

@tomheno Thanks for your efforts
@danharrin Thanks for the fix


apiclient.discovery.build crashes Python interpreter (Win10)

Running the latest Python 3.5.1 with updated relevant pip packages, I now have build() causing python.exe to crash on Windows. I isolated it down to a simple test script:
import platform
import apiclient
from apiclient.discovery import build
print(platform.python_version())
print(apiclient.__version__)
service = build('drive', 'v2')

Here is my pip freeze:
beautifulsoup4==4.4.1
cffi==1.5.2
cryptography==1.2.3
google-api-python-client==1.5.0
httplib2==0.9.2
idna==2.0
oauth2client==2.0.1
pyasn1==0.1.9
pyasn1-modules==0.0.8
pycparser==2.14
PyDrive==1.0.1
PyInstaller==3.1.1
pyOpenSSL==0.15.1
pypiwin32==219
PyYAML==3.11
requests==2.9.1
rsa==3.3
simplejson==3.8.2
six==1.10.0
uritemplate==0.6

Nothing is being output (besides my version numbers) so I'm not really sure how to proceed on debugging this.

Since no help came, I just downgraded to version oauth2client==1.4.6 and google-api-python-client==1.4.2 which works fine.

I don't presently have a windows machine to test one, any additional help with this would be really appreciated.

I did some more digging and it appears to be the same issue as this (https://github.com/google/google-api-python-client/issues/139)
Which is also logged in oauth2client (https://github.com/google/oauth2client/issues/361)
The workaround listed on the oauth2client issue solved the problem for me with the latest versions included. Going to close this since it seems unrelated to the module, but leaving this information here for others.

Thanks for figuring this out!
Out of curiosity, can you tell me what you're using multistore_file for?

I'm not. If you're referring to the work-around, I can only conclude it's being used by oauth2client. If you look at my test code at the top of this issue, that's all that is needed to trigger the crash.

Oh, right, Thanks. (I should not respond to issues before I've completely woken up)


Bug in your eksctl project (issues disabled there?)

What happened:
Error received:
[ℹ]  fetching stack events in attempt to troubleshoot the root cause of the failure
[✖]  Custom::ocean/NodeGroup: CREATE_FAILED – "Failed to create resource. ocean create failed: ValidationError: "5" must be one of [g4dn.xlarge, g4dn.8xlarge, g4dn.4xlarge, g4dn.2xlarge, g4dn.16xlarge, g4dn.12xlarge, t3a.xlarge, t3a.small, t3a.nano, t3a.micro, t3a.medium, t3a.large, t3a.2xlarge, r5ad.xlarge, r5ad.large, r5ad.8xlarge, r5ad.4xlarge, r5ad.2xlarge, r5ad.24xlarge, r5ad.16xlarge, r5ad.12xlarge, r5a.xlarge, r5a.large, r5a.8xlarge, r5a.4xlarge, r5a.2xlarge, r5a.24xlarge, r5a.16xlarge, r5a.12xlarge, r5.xlarge, r5.metal, r5.large, r5.8xlarge, r5.4xlarge, r5.2xlarge, r5.24xlarge, r5.16xlarge, r5.12xlarge, m5ad.xlarge, m5ad.large, m5ad.8xlarge, m5ad.4xlarge, m5ad.2xlarge, m5ad.24xlarge, m5ad.16xlarge, m5ad.12xlarge, m5a.xlarge, m5a.large, m5a.8xlarge, m5a.4xlarge, m5a.2xlarge, m5a.24xlarge, m5a.16xlarge, m5a.12xlarge, z1d.xlarge, z1d.metal, z1d.large, z1d.6xlarge, z1d.3xlarge, z1d.2xlarge, z1d.12xlarge, x1e.xlarge, x1e.8xlarge, x1e.4xlarge, x1e.32xlarge, x1e.2xlarge, x1e.16xlarge, t3.xlarge, t3.small, t3.nano, t3.micro, t3.medium, t3.large, t3.2xlarg"
What you expected to happen:
I can create a cluster using standard eksctl, it is the spotinst extensions where I see the issue
How to reproduce it (as minimally and precisely as possible):
Here's my config file
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: test-eks-spotinst
region: us-east-1
version: '1.15'
tags:
creator: stu
environment: test-eks-spotinst
cloudWatch:
clusterLogging:
# enable specific types of cluster control plane logs
enableTypes: ["audit", "authenticator", "controllerManager"]
nodeGroups:

name: standard-workers
volumeSize: 16
labels:
role: workers
privateNetworking: true
tags:
role: eks-workers
environment: test
customer: fh
spotOcean:
strategy:
# Percentage of Spot instances that would spin up from the desired
# capacity.
spotPercentage: 100
# Allow Ocean to utilize any available reserved instances first before
# purchasing Spot instances.
utilizeReservedInstances: true
# Launch On-Demand instances in case of no Spot instances available.
fallbackToOd: true
autoScaler:
# Enable the Ocean autoscaler.
enabled: true
# Cooldown period between scaling actions.
cooldown: 300
# Spare resource capacity management enabling fast assignment of Pods
# without waiting for new resources to launch.
headrooms:
# Number of CPUs to allocate. CPUs are denoted in millicores, where
# 1000 millicores = 1 vCPU.
- cpuPerUnit: 2
# Number of GPUs to allocate.
gpuPerUnit: 0
# Amount of memory (MB) to allocate.
memoryPerUnit: 2048
# Number of units to retain as headroom, where each unit has the
# defined CPU and memory.
numOfUnits: 1
compute:
instanceTypes:
# Instance types allowed in the Ocean cluster. Cannot be configured
# if the blacklist is configured.
whitelist: # OR blacklist
- m5a.large
- m5a.xlarge
- m5a.2xlarge
- m5.large
- m5.xlarge
- m5.x2large
- m4.large
- m4.xlarge
- m4.x2large
- c5.large
- c5.xlarge
- c5.2xlarge
- c5.4xlarge
- c4.large
- c4.xlarge
- c4.2xlarge
- c4.4xlarge
- r5.large
- r5.xlarge
- r5a.large
- r5a.xlarge

Anything else we need to know:
What is the channel for submitting issues with your fork of eksctl?
Environment:

CLI version (use spotinst version):
OS (e.g: cat /etc/os-release):
Kernel (e.g. uname -a):
Others:

Hi @trauts2, it seems like a configuration error. Please note that your whitelist field contains an invalid instance type (specifically, the sixth is misspelled — m5.x2large should be m5.2xlarge), hence the error ValidationError: "5" must be one of .... Also, I've enabled the issues on the spotinst/weaveworks-eksctl project, so thanks for letting us know.

Hi Liran.  Thanks for enabling issues on the eksctl fork.  Is it being monitored?  Here's an issue opened for an advertised feature that doesn't seem to be working as expected.
https://github.com/spotinst/weaveworks-eksctl/issues/1


gdiObjects.Perspective version 3.0.2202.3

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

#42616 - Close and reopen the PR to re-run the pipelines

Hello @gdiObjects, The PR could not be validated because there is a merge conflict which adds bad characters to the manifest. Please address the merge conflict and resubmit.

I've looked at the files and can't see the bad characters.  please help

Hello @gdiObjects, The PR could not be validated because there is a merge conflict which adds bad characters to the manifest. Please address the merge conflict and resubmit.

I've looked at the files and can't see the bad characters. please help

Its just a merge conflict because https://github.com/microsoft/winget-pkgs/pull/44701 got merged

Hello @gdiObjects, The PR could not be validated because there is a merge conflict which adds bad characters to the manifest. Please address the merge conflict and resubmit.

I've looked at the files and can't see the bad characters. please help

Its just a merge conflict because #44701 got merged

Do I need to do anything?

Do I need to do anything?

No, it's now available on WinGet because the bot automatically updated it. That means you don't need to do anything.

Do I need to do anything?

No, it's now available on WinGet because the bot automatically updated it. That means you don't need to do anything.

Thanks!

Do I need to do anything?

No, it's now available on WinGet because the bot automatically updated it. That means you don't need to do anything.

Thanks!

Well, it means you can close the PR =)

Thanks for the help and quick turnaround!


Cannot file module 'google

Issue description
Hi :)
Im using this library with google places api.
So I lazy load the js file:
this.places = new google.maps.places.Autocomplete(el.nativeElement.children[0], {
        types: ['(cities)'],
        componentRestrictions: { country: 'fr' }
      });

The problem is that the typescript compiler is telling me Cannot find name 'google'
since it loads dynamically I guess i cannot use the /// <reference path="???" />
Any ideas?

After your imports or as a private class member define
declare var google: any;

@brian-singer Thanks! looking good :)

Not working for me, Any snippet would be grate?

A bit late to the party, but in case someone ends up on this page...
This worked for me:
npm install @types/googlemaps --save
Then in the component where I use the google name:
import { } from '@types/googlemaps';
I hope it helps.


Add Brick

HVAC systems account for the most of energy usage in buildings.  Currently, the HVAC systems data is usually defined in a messy way. This package is developed based on RDF model, allowing a uniformed and efficient way to query the data point.
I think it aligns with sustainability because it construct the basic data engineering of HVAC systems and building digitalization. Using AI to improve building energy would be impossible without this infrastructure.

Thank you so much for this awesome contribution.


Support for HLF v1.4

Hey, It would be great if chainHero supports HLF v1.4.

I upgraded it to fabric 2.0. You can have a look at https://github.com/chainHero/heroes-service/pull/38 or the forked repo


Suggestion - Expose linear access to arrays irrespective of rank.

There seems to be no way to enumerate a multi dimensional (non-jagged) array in a linear fashion. To do so requires the reverse calculation of subscripts from a linear index and use GetValue(...), that calculation is cumbersome particularly when writing code for arrays that have arbitrary rank and bounds.
A 5 * 6 * 7 array has 210 elements and it would be helpful to have the ability to enumerate them in this way:
for (int X=0; X < 210; X++)
{
   var val = myArray.GetLinearValue(X);  // provide .SetLinearValue too

   do_something(val);
}

This would enable general searching of arrays easily irrespective of their rank and would make things like reshaping an array much easier to do, for example to reshape the above array to 2 * 105 would be almost trivial.
Since array access by multiple subscripts usually involves a calculation of a linear offset from the subscripts, being able to access it by a linear offset directly might be straightforward and improve performance in certain domains where we might want to perform some common operation on all elements (that is to say, access by a single linear index removes the need to perform an offset calculation on the subscripts on every access).
Although we can cast these arrays to IList we cannot use the indexer property [ ] if the array is multidimensional yet we can enumerate the array in a linear fashion by use of IEnumerable this seems inconsistent.

I've moved this concern to here: https://github.com/dotnet/runtime/issues/62733
I'll close this one.


Added market structure.

Work on #5

I think we should implement the market state last. Also, can we have separate PRs for parsing orderbook trie (all slab related code) and the market structure?

I will merge the slab and orderbook part into a separate PR. However, I propose that we merge the rest first, since the load part is working now.

Created a separate PR #11 for the slab.
I have also refactored this a bit to use the accountFlag construct that you created yesterday.


Tippy tooltip (powered by popper.js) teleports to top left of TabList element when changing visible tabs

🐛 Bug report
Current behavior
When changing tabs, programmatically opened Tippy tooltips are teleported to the very top left of the TabList element briefly before disappearing.
I know Reakit has built in tooltips, but we're already a long ways down this road.
More importantly, Tippy uses popper.js so presumably this affects any implementation using popper.js
Steps to reproduce the bug
To be provided later
Expected behavior
In v0 the tooltip would properly be immediately hidden when the tab it was a child of was hidden by activating another tab.
Possible solutions
Presumably there's a good reason for the changes to how hidden content works in reakit@v1, but this issue did not exist in v0 so perhaps there could be some clues there?
Environment
$ npx envinfo --system --binaries --npmPackages

  System:
    OS: Windows 7
    CPU: (2) x64 Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz
    Memory: 5.09 GB / 13.75 GB
  Binaries:
    Yarn: 1.17.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.2.0 - C:\Users\Remie\AppData\Roaming\npm\npm.CMD

Closing this issue as we couldn't reproduce it. Please, if the problem persists and you can find a way to reproduce it, let me know and I'll reopen the issue.


As a user, I benefit from a general reporting infrastructure

General reporting structure is defined and is being used by the analyze command


CIP-0050 | Translations: fix Spanish metadata, remove Chinese

@michael-liesenfelt it appears the Chinese translation file was just a stub, an empty file: so I'm deleting it here.  If there used to be translated content in a file README.Chinese.md in your branch (https://github.com/michael-liesenfelt/CIPs/tree/CIP-Liesenfelt-Shelleys_Voltaire_decentralization_update/CIP-0050) please let me know where I can find it... from the version history in that branch it looks like it's always been empty.
For the remaining Spanish version, I've also re-translated the title to update it from the "Shelley" title & can verify it makes sense, but not as a native speaker would.
I've had to put NA for a commit hash because the translation was only intermediate before the final revision in the PR which included a lot of reformatting work on the main language version.  I believe we will have to use that syntax because an empty list doesn't make sense in this context.

If this is acceptable @KtorZ @Ryun1 please confirm & I'll submit a minor update to CIP-0001, or add it to https://github.com/cardano-foundation/CIPs/pull/563, saying what to do in these special cases (without encouraging the submissions of unmaintainable translations, or translations of intermediate drafts).  I don't think it will ever make sense to use a commit hash from the PR branch itself.

I've identified the Spanish translator from this posting (https://github.com/cardano-foundation/CIPs/pull/242#issuecomment-1140374376) and confirmed it in (and moved it from) the document footer... there's no email address available from the web site or any other public feed.  The Twitter account listed on their web site is defunct and not much else is there except Discord: definitely no GitHub account to tag here.
@michael-liesenfelt I do believe it would be worth finding some Spanish maintenance for this now official translation because it would help the consideration of this proposal if & when the RSS proposals are finally opened up to the Governance process.

https://github.com/cardano-foundation/CIPs/pull/582/commits/a39d257e2d532b8413b5634b7cf99d0c943a7f78 set the Translators: to a list (as it originally should have been, according to what's already written in CIP-0001) and uses the date in the PR translation credit as the Revision:.
I'll submit a separate PR to adjust the CIP-0001 language saying, as agreed in the CIP meeting today (with @SebastienGllmt @KtorZ @Ryun1) that Revision can be parsed either as a 7-digit repository commit hash (if there is one) or the best known date of the material that was translated: if possible, the date this material was posted in its own PR branch (if not; so it should never be undefined).

@KtorZ I've formalised the use of ISO date in the Revision field in https://github.com/cardano-foundation/CIPs/pull/585 ... can you please review this in accordance with the suggested new language?


Bump rustls-pemfile to v1

Hey there @seanmonstar,
Would it be possible to publish a new version of reqwest with this update in it? That would allow my project (and probably others) to get rustls-pemfile 0.3 out of their trees for good 👍.


Unskip paxos contention test

This un-@requires the contention test in paxos_tests.py -- it passes locally, and it looks like the underlying bug is fixed (see the discussion in CASSANDRA-9764.
Unfortunately, the test has hung periodically on CassCI; I've filed #421 to track progress on fixing that. Until then, it's skipped.
This PR includes the usual isort cleanup as well.

+1


Bundling CSS files with different extensions (PostCSS)

Hi, I'm trying to configure brunch to work along with PostCSS...
I'm using Visual Studio Code with an extension that supports PostCSS syntax files through .pcss files.
So, given the following project structure, how can I bundle my files?
/assets
/public
    bundle.css
    bundle.css.map
/src
    index.pcss

index.pcss
@tailwind preflight;
@tailwind components;
@tailwind utilities;
@tailwind screens;

brunch-config.js
module.exports = {
    paths: {
        watched: ["assets", "src"]

    },
    files: {
        stylesheets: {
            joinTo: 'bundle.css'
        }
    },
    plugins: {
        postcss: {
            modules: true
        }
    },
    npm: {
        styles: {
            "tailwindcss": ["dist/tailwind.min.css"]
        }
    }
};

How did you solved this?


Escaped backtick can cause MD033

The following triggers because it sees the escaped backtick as part of the HTML escaping
If the type is a generic type, its name is decorated by a grave accent symbol (\`) followed by its number of generic parameters. For example, the `Name` attribute of a `<Type>` element for the <xref:System.Collections.Generic.List%601?displayProperty=nameWithType> class appears as ``Name="System.Collections.Generic.List`1"``.

Thanks!
Simplified example: https://dlaa.me/markdownlint/#%25m%23 Issue 193

A grave accent symbol (\`) followed by a `<Type>` element.


remove dom manipulation

This change makes for a more consistent experience by silently updating the backing data instead of triggering the Ember array observers. By replacing insertAt and removeAt with native array methods, this prevents the model from rerendering a component (use cases: make a subsequent REST that isn't required, or losing the current working state).

There was a specific reason I was using ember's array observers, but I haven't looked at this for quite a while so I'm not sure. @jqyu will this PR work with the max?

Partly relevant, with Glimmer it's extremely quick to re-order lists. So it may be a good idea to do zero DOM-manipulation within the library, and only propagate an idx value of some sort, that Ember can re-apply to the elements.


Inline images with invalid HTTPS certs cause error that prevents use of stream

Loading a inline image with a invalid HTTPS cert causes the following:

While this doesn't appear to have ever happened in the wild in Sentry (???), and changes in Camo in 4.0 will make it impossible for people to construct messages like this in the future, we should still fix it for the sake of being able to view existing messages.
#integrations > create svg will repro this.
(marking a-Android, since I don't think this would affect iOS, and P1 since it's a DoS vector on pre-6b7a3fb74 servers.)

I know of two other issues that seem like probably the same thing: #4337, #4691. (I'm getting caught up on things from last week's call, so I don't think I'll have time to deduplicate just now.)

Just updating this thread that we apparently have a similar bug in the desktop app (https://github.com/zulip/zulip-desktop/issues/1119), and that we should still consider this important since (1) Camo doesn't run in docker-zulip, so a lot of 4.0 servers are still affected and (2) inability to read old content before the Camo changes is important in its own right.

This was fixed upstream react-native-webview/react-native-webview#1466, which we pulled in in 945848dbbfe8454d957a1eb824dceeeb3573325a. Closing.

This was fixed upstream react-native-webview/react-native-webview#1466, which we pulled in in 945848d. Closing.

Hmm, are you sure this has been fixed? Your screenshot was from 2021-05-06, and the release containing 945848d, v27.155, went out on 2020-09-23.

I think we actually got it in a yarn.lock update, likely 78a7763bc9500c5f371139473d0debc377474276

Great, thanks for that investigation! Indeed, the react-native-webview PR says "This PR is included in version 10.9.3", and we went from 10.8.3 to 10.10.2 in that commit (link to changed lines in yarn.lock).


Handle SIGTTOU, SIGTTIN as well as EBADF exception, fail gracefully if detached or lacking terminal

As per https://github.com/metanorma/mn-samples-itu/issues/149#issuecomment-1252298808
This is being addressed in #304.

EBADF is handled by #304
It looks like SIGTTOU, SIGTTIN cannod be processed by Ruby application.  It looks like some Ruby limitation.


Add unittests for memmove()

The approach taken here is relying quite a bit on the corresponding memmove tests in the coreboot repo. I liked this setup/teardown approach as it reduced the boilerplate of manually restoring the buffer in between runs. But if it's a too deviant change from the other unit tests just let me know.
Fixes # 184

The CI server reports a test failure for the new test:
difference at offset 30 0x0d 0x11
difference at offset 31 0x0e 0x12
difference at offset 32 0x0f 0x13
difference at offset 33 0x10 0x14
difference at offset 34 0x11 0x15
difference at offset 35 0x12 0x16
difference at offset 36 0x13 0x17
difference at offset 37 0x14 0x18
difference at offset 38 0x15 0x19
difference at offset 39 0x16 0x00
difference at offset 40 0x17 0x01
difference at offset 41 0x18 0x02
difference at offset 42 0x19 0x03
difference at offset 43 0x00 0x04
difference at offset 44 0x01 0x05
difference at offset 45 0x02 0x06
...
34 bytes of 0x7f8d67405c70 and 0x7f8d67405c30 differ
../test/string/memmove.c:82: error: Failure!

Regarding the failure - I can help you dig into that, I'm guessing that your local tests are not failing :). What OS is being used?

Oops, it does fail because I rewrote this a bit and then forgot about it. Squashing in a fix quite soon I hope.

Thanks for the contribution!


make it an error to have non-existing files in entry_points in the pubspec.yaml

This issue was originally filed by<EMAIL_ADDRESS>
In pubspec.yaml, if the entry_points is invalid
transformers:

polymer:
    entry_points: web/zzzz.html

If zzzz.html does not exist, there is no warnings.
Then when load the output js files, there is an error in console:
"Uncaught TypeError: Object #<HTMLDocument> has no method 'register' "
It's take me 2 hours to investigate and find out the issue.
It would be better that the transforms output the error and stop completely the process.
This is simple but helpful a lot for polymer newsbie who do copy & paste code a lot.
Best

This issue has been moved to dart-lang/polymer-dart#375.


Bugfix fester Port und prettier v3.3.3

Using protokoll, hostname and port in API-URL is unnessesary and therefor removed from BaseController.js
(prettier 3.3.3 used to format files)