app bundle

Attempt at deploying App and CRD in one go.
What was done

Rename current app chart to prometheus-operator
Add prometheus-operator-app chart
Add chart CR pointing to prometheus-operator-crd
Add chart CR pointing to prometheus-operator
Had fun with CI
Removed chart name check from architect-orb https://github.com/giantswarm/architect-orb/pull/383/files)
Add/update CI jobs for all charts

Requires https://github.com/giantswarm/architect-orb/pull/383

Tested and working :heavy_check_mark:
$ opsctl deploy --use-kubeconfig --cluster hr7b9 prometheus-operator-app@app-bundle
Requesting the creation of deployment using App method .....

Suspended collection and flux kustomizations

Deploying app `prometheus-operator-app` with version `1.2.1-e250a2592f0458bf8a63f53bd2fed85e019f937d` to workload cluster `hr7b9`

    chart           prometheus-operator-app
    repository      prometheus-operator-app
    ref             app-bundle
    version         1.2.1-e250a2592f0458bf8a63f53bd2fed85e019f937d
    installation

Requested the creation of deployment using App method

Waiting for deployment ...
Success!

Deployment state where prometheus-operator fails until crd are installed

$ k --context gs-gauss-hr7b9 get chart -Aw
NAMESPACE    NAME                          VERSION      LAST DEPLOYED   STATUS
giantswarm   aws-ebs-csi-driver            2.12.0       4h40m           deployed
giantswarm   cert-exporter                 2.2.0        4h37m           deployed
giantswarm   cert-manager                  2.13.0       4h39m           deployed
giantswarm   chart-operator                2.21.0       4h37m           deployed
giantswarm   cluster-autoscaler            1.22.2-gs6   4h37m           deployed
giantswarm   coredns                       1.9.0        4h40m           deployed
giantswarm   etcd-cluster-migrator         1.1.0        4h40m           deployed
giantswarm   external-dns                  2.9.1        4h40m           deployed
giantswarm   kiam                          2.3.0        4h37m           deployed
giantswarm   kiam-watchdog                 0.7.0        4h37m           deployed
giantswarm   kube-state-metrics            1.10.0       4h39m           deployed
giantswarm   metrics-server                1.6.0        4h39m           deployed
giantswarm   net-exporter                  1.12.0       4h37m           deployed
giantswarm   node-exporter                 1.9.0        4h39m           deployed
giantswarm   vertical-pod-autoscaler       2.1.2        4h40m           deployed
giantswarm   vertical-pod-autoscaler-crd   1.0.1        4h39m           deployed

giantswarm   prometheus-operator-app       1.2.1-e250a2592f0458bf8a63f53bd2fed85e019f937d
giantswarm   prometheus-operator-app       1.2.1-e250a2592f0458bf8a63f53bd2fed85e019f937d
monitoring   prometheus-operator           1.2.1-e250a2592f0458bf8a63f53bd2fed85e019f937d
monitoring   prometheus-operator-crd       1.2.1-e250a2592f0458bf8a63f53bd2fed85e019f937d
giantswarm   prometheus-operator-app       1.2.1-e250a2592f0458bf8a63f53bd2fed85e019f937d
giantswarm   prometheus-operator-app       1.2.1-e250a2592f0458bf8a63f53bd2fed85e019f937d   0s              deployed
monitoring   prometheus-operator           1.2.1-e250a2592f0458bf8a63f53bd2fed85e019f937d
monitoring   prometheus-operator-crd       1.2.1-e250a2592f0458bf8a63f53bd2fed85e019f937d
monitoring   prometheus-operator           1.2.1-e250a2592f0458bf8a63f53bd2fed85e019f937d                   invalid-manifest
monitoring   prometheus-operator-crd       1.2.1-e250a2592f0458bf8a63f53bd2fed85e019f937d   1s              deployed
monitoring   prometheus-operator           1.2.1-e250a2592f0458bf8a63f53bd2fed85e019f937d                   invalid-manifest
monitoring   prometheus-operator           1.2.1-e250a2592f0458bf8a63f53bd2fed85e019f937d   22s             deployed

proof that prometheus-operator-crd was installed

$ k get crd |grep monitoring
alertmanagerconfigs.monitoring.coreos.com             2022-06-23T14:21:22Z
alertmanagers.monitoring.coreos.com                   2022-06-23T14:21:22Z
podmonitors.monitoring.coreos.com                     2022-06-23T14:21:22Z
probes.monitoring.coreos.com                          2022-06-23T14:21:22Z
prometheuses.monitoring.coreos.com                    2022-06-23T14:21:23Z
prometheusrules.monitoring.coreos.com                 2022-06-23T14:21:22Z
servicemonitors.monitoring.coreos.com                 2022-06-23T14:21:22Z
thanosrulers.monitoring.coreos.com                    2022-06-23T14:21:22Z

proof that prometheus-operator was installed

$ k -n=monitoring get po
NAME                                                      READY   STATUS    RESTARTS   AGE
alertmanager-prometheus-operator-alertmanager-0           2/2     Running   0          74s
prometheus-operator-grafana-6d66d9b644-r48mr              3/3     Running   0          84s
prometheus-operator-kube-state-metrics-6d499d4d85-4vfh6   1/1     Running   0          84s
prometheus-operator-operator-95b59b74f-n4854              1/1     Running   0          84s
prometheus-operator-prometheus-node-exporter-2gfp2        1/1     Running   0          84s
prometheus-operator-prometheus-node-exporter-4tvlf        1/1     Running   0          84s
prometheus-operator-prometheus-node-exporter-75xsg        1/1     Running   0          84s
prometheus-operator-prometheus-node-exporter-bzf8k        1/1     Running   0          84s
prometheus-operator-prometheus-node-exporter-jn2lt        1/1     Running   0          84s
prometheus-operator-prometheus-node-exporter-xqpn8        1/1     Running   0          84s
prometheus-prometheus-operator-prometheus-0               2/2     Running   0          72s

We are now doing this in github.com/giantswarm/observability-bundle/


Fix MultiBallService

At the moment, the multi ball service support only one ball.

Rename it SingleBallService. Done.

I mean, it need to remove the ball obervation that do not match the correct ball. It's kind of broken at the moment. I still expect the service to return 1 ball. The name might be wrong.

It's now remove. Solved.


Fails with python 3.6

Fails when attempting to build with python 3.6:
Collecting enum34==1.1.2 (from -r requirements.txt (line 3))
  Using cached enum34-1.1.2.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/Users/jgregory/.virtualenvs/sdx-decrypt/lib/python3.6/site-packages/setuptools/__init__.py", line 5, in <module>
        import distutils.core
      File "/Users/jgregory/.virtualenvs/sdx-decrypt/lib/python3.6/distutils/__init__.py", line 4, in <module>
        import imp
      File "/Users/jgregory/.virtualenvs/sdx-decrypt/lib/python3.6/imp.py", line 27, in <module>
        import tokenize
      File "/Users/jgregory/.virtualenvs/sdx-decrypt/lib/python3.6/tokenize.py", line 33, in <module>
        import re
      File "/Users/jgregory/.virtualenvs/sdx-decrypt/lib/python3.6/re.py", line 142, in <module>
        class RegexFlag(enum.IntFlag):
    AttributeError: module 'enum' has no attribute 'IntFlag'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/3x/cbmnscz143q40msktt0r68cr0000gn/T/pip-build-pi000xiz/enum34/
make: *** [build] Error 1

 sdx-decypt fails to build with python 3.6


enable ai binding in next-dev module

Closing this PR as we should probably just add this to wrangler's getBindingsProxy (https://github.com/cloudflare/workers-sdk/pull/4523) and use that here instead.


Push modal onto presentedViewController

When trying to use this library on top of a modal it silently fails
because it's trying to present on top of the root view which already has
a modal on top of it.
This changes reactRoot to a getter which will return the correct
UIViewController to push onto, either the root or the currently
presented modal.
Thanks @gilesvangruisen for doing all the hard work! 😃

Looks great. Thanks!


Sonoff TX Ultimate Error

What issue do you have? Please be as thorough and explicit as possible.
I'm getting this error when I try to turn my lights on using Homebridge UI through the Accessories TAB. [Office Lights ] device update failed as unknown WS response [400] at default.sendUpdate (file:///var/lib/homebridge/node_modules/homebridge-ewelink/lib/connection/ws.js:339:19) at default.sendUpdate (file:///var/lib/homebridge/node_modules/homebridge-ewelink/lib/connection/ws.js:344:15). Device Model T5-1C-86 (SN-ESP32D0-T5-01). Let me know if you need further information.
Details of your setup.

Do you use (1) Homebridge UI-X (2) Homebridge CLI or (3) HOOBS?

Homebridge UI

Which version of Homebridge/HOOBS do you have?

[v1.6.1]

Which platform do you run Homebridge/HOOBS on (e.g. Raspberry Pi/Windows/HOOBS Box)? Please also mention your version of Node.js/NPM if known.

Linux Debian / Node.js Version | v18.16.0

Which version of this plugin (homebridge-ewelink) do you have? Has the issue started since upgrading from a previous version?

homebridge-ewelink v11.0.0
Actually, the TX Ultimate switches are pretty new and I have all versions installed 1,2 and 3 gang. It turns out that this one never worked through the Homebridge UI.

Which eWeLink devices do you have that are causing issues? Please include product models if applicable.

T5-3C-86 (SN-ESP32D0-T5-01)
T5-2C-86 (SN-ESP32D0-T5-01)
T5-1C-86 (SN-ESP32D0-T5-01)
Please paste any relevant logs below.

[7/24/2023, 12:21:09 PM] [eWeLink] [Office Lights ] device update failed as unknown WS response [400] at default.sendUpdate (file:///var/lib/homebridge/node_modules/homebridge-ewelink/lib/connection/ws.js:339:19) at default.sendUpdate (file:///var/lib/homebridge/node_modules/homebridge-ewelink/lib/connection/ws.js:344:15).

Node.js Version	v18.16.0

I'm having the same issue on my side. Tried different versions of the plugin and even of the node. Nothing worked.

@lcmds @duarteffc
am i correct in assuming that you are using the plugin in lan only mode?

@bwp91 I am using Hybrid mode

I just checked with Homebridge UI version 1.6.0 and it worked using the latest version of the plugin.

@bwp91 same thing here, I'm using Hybrid mode.

I was able to make it work. Actually, after turning it on once from the eWeLink app, it started working on the Home app again.

I followed the instructions, but the issue persists. I can control the device through the eWeLink app, but there are no logs on Homebridge, and I try to control it from the Homebridge I get the same error.

If any of you find a fix please let us know , my tx ultimate isn’t working either. probably not supported

I'm having the same issue with my TX ultimate.  any solutions yet?
Thank you


refactor: migrate SDK data from sandboxed storage to non-sandboxed.

Part of ticket: https://github.com/customerio/issues/issues/10797
Today, the SDK data is all sandboxed by the siteid. The goal of ticket sdk always initialized is that the SDK no longer requires a siteid in order to function. Therefore, we can no longer sandbox data by siteid and we need to migrate existing SDK data previously saved to new non-sandboxed storage.
Note: Some parts of this code are rough around the edges and tests have been written but are not yet passing. I worked on cleaning up the code and debugging the tests to get them passing and I realized that it would be easier to do both once some other tasks in this ticket were to complete. Therefore, some questions asked in this PR might be fixed in future PRs for this ticket.

I am going to change the implementation of this PR a bit. After I do so, I'll remove blocked label and ask for a re-review.

Closing. Since this task began, our team has changed our priorities, opinion about this problem of sandboxed data by siteid. If we decide to work on this task again, we should re-define the scope and problem and start fresh.


Analysis: Archive SFTP files

Describe the task
Perfrom Analysis for #2801 -
Acceptance Criteria

[ ] Investigate and identify which files MUST be processed sequentially and which ones do not.
[ ] Provide list of sequentially executed ones and non-sequentially executed one, defined during development

@JasonCTang @ninosamson this one doesn't have a release assigned?

I'd call this 2.1 for hardening. will update.

I'd call this 2.1 for hardening. will update.

@JasonCTang is this a duplicate of #2801?  Can we close as that one has action on it lately.

I am closing this ticket as duplicate.


system information does not seem to refresh properly

Some elements of the system information page don't seem to update when I hit refresh, i.e the piechart values. But some info is correct like the number of processes. When I go to running processes the values seem to be correct

The theme gets data from WebminCore.
If true we'll investigate that,

It's updated within 300 seconds by default. It's coming from WebminCore. You could change this value in Webmin Configuration->Scheduled Functions to get faster System Information updates.
In the future, this might be reworked.

it actually seemed to be some kind of cache issue, I rebooted the server and it fixed it.

Alright. Good to hear.
Cache issue is the most often problem that causes unexpected behaviour.


Default collapsed state on custom admonition types

I'd love some custom admonition types to be collapsed by default so I don't have to specify it manually every time I use the admonition type.

I also would like to set the default collapse status for each admonition type in the plugin options


Segmentation fault when loading a saved numpy-op model

Hi mxnet team,
I'm using the example [numpy_softmax.py](https://github.com/dmlc/mxnet/blob/master/example/numpy-ops/numpy_softmax.py. I tried to save the model by adding epoch_end_callback=mx.callback.do_checkpoint(model_prefix). The model is successfully fitted and saved. But when I load the saved model, mxnet gives a segmentation fault.
Any idea on this issue?
Thanks
Zehua

This was a expected behavior, as it is hard to store the numpy object during serialization. Also cc @piiswrong  we might need a friendly message here.
What you can do is reconstruct the symbol in python code, and load the ndarrays and set them manually

I've thought about adding message. But the thing is it's hard to detect whether it's created by loading from json within the operator


Desktop charting problem

Hey, I am having trouble charting the desktop version of LEAN in visual studio 2017. I followed all the steps in the "Using a Desktop User Interface" video at https://www.quantconnect.com/tutorials/desktop-charting-with-lean/ but I am still getting an error.
This is the error I am getting:
Exception thrown: 'System.ComponentModel.Win32Exception' in System.dll
An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in System.dll
The system cannot find the file specified
'QuantConnect.Lean.Launcher.exe' (CLR v4.0.30319: QuantConnect.Lean.Launcher.exe): Loaded 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Remote Debugger\x64\Runtime\Microsoft.VisualStudio.Debugger.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
It also highlights line 103 in file Quantconnect.Lean.Launcher which says "Process.Start(info);"
These are my config settings:

"environment": "backtesting-desktop",
"algorithm-type-name": "BasicTemplateAlgorithm",
"job-user-id": "#####",
"api-access-token": "######....####",

Has anyone else had this problem?

I figured out the problem. I changed "desktop-exe": "../../../UserInterface/bin/Debug/QuantConnect.Views.exe" to "desktop-exe": "../../../UserInterface/bin/Release/QuantConnect.Views.exe" in the config.json file.

There is a better explain here:
https://groups.google.com/forum/m/#!topic/lean-engine/vnE-tXRMKo0
And here:
https://www.quantconnect.com/forum/discussion/2429/error-running-lean-python-module

Thanks for posting solution back @taylerallen6.
It depends on whether you build it in release or debug mode

I have QuantConnect.Views.exe in ../../../UserInterface/bin/Debug/
but the problem persists

@kievking change the path to the location of your desktop build. If there is no desktop executable then it's not building for some other reason. All of this will be deprecated and removed soon we're just looking for the right person to build the electron application =)
Any user / application specific issues should be posted to the LEAN Discussion Forum, not the Github issues list which is generally for systematic issues.

@jaredbroad I think this software isn't built for mac. it's so many problems.


SecuritySpy race condition on restart

I restarted my Mac and the Indigo server started up before SecuritySpy.  The result was that all of my cameras in HomeKit showed as unavailable until I restarted the HomeKit Bridge devices.
I suppose I can add triggers to restart the bridge when the cameras change state to active, but if that could be dealt with automatically, that would be cleaner.

From the logs (excerpted):
2018-04-05 14:37:14.713 Application     Starting Indigo Server version 7.1.1 (Mac OS X 10.12.6)
2018-04-05 14:37:21.914 Application     Loading plugin "Cynical SecuritySpy 2.2.2"
2018-04-05 14:37:21.935 Application     Starting plugin "Cynical SecuritySpy 2.2.2" (pid 5850)
2018-04-05 14:37:21.936 Application     Loading plugin "HomeKit Bridge 0.22.1"
2018-04-05 14:37:21.943 Application     Starting plugin "HomeKit Bridge 0.22.1" (pid 5851)
2018-04-05 14:37:25.636 Cynical SecuritySpy     API version 2.0
2018-04-05 14:37:25.637 Cynical SecuritySpy     Python version 2.7.10.final.0
2018-04-05 14:37:25.996 Cynical SecuritySpy Error       SecuritySpy unavailable: [Errno 61] Connection refused
2018-04-05 14:37:25.999 Cynical SecuritySpy Error       Front Door Camera unavailable: host device SecuritySpy is unavailable
2018-04-05 14:37:26.000 Cynical SecuritySpy Error       Rear Door Camera unavailable: host device SecuritySpy is unavailable
2018-04-05 14:37:26.336 HomeKit Bridge Debug    Indigo JSON Stuffer 1.0.0 loaded
2018-04-05 14:37:26.336 HomeKit Bridge Debug    Indigo Plugin Redirector 1.0.0 loaded
2018-04-05 14:37:26.336 HomeKit Bridge Debug    Indigo Plugin User Interface 1.0.0 loaded
2018-04-05 14:37:26.336 HomeKit Bridge Debug    Indigo Plugin Factory 1.0.0 loaded
2018-04-05 14:37:26.336 HomeKit Bridge Debug    HomeKit Data Conversion 1.0.0 loaded
2018-04-05 14:37:26.337 HomeKit Bridge Debug    HomeKit Payload Processor 1.0.0 loaded
2018-04-05 14:37:26.337 HomeKit Bridge Debug    HomeKit Integration Factory for Indigo 1.0.0 loaded
2018-04-05 14:37:26.337 HomeKit Bridge  Caching all HomeKit Bridge devices...
2018-04-05 14:37:29.003 HomeKit Bridge Debug    Front Door Camera started as a HomeKit Camera RTP Stream Management (Experimental)
2018-04-05 14:37:29.007 HomeKit Bridge Debug    Homebridge-Indigo2 Device Payload 1.0.0 loaded
2018-04-05 14:37:29.032 HomeKit Bridge Debug    Converting  keyword for HomeKit type or firmware on 'Front Door Camera'
2018-04-05 14:37:29.048 HomeKit Bridge Debug    Converting indigoVersion keyword for HomeKit type or firmware on 'Front Door Camera'
2018-04-05 14:37:29.052 HomeKit Bridge Debug    Homebridge-Indigo2 Payload Data 1.0.0 loaded
2018-04-05 14:37:29.053 HomeKit Bridge Debug    Homebridge-Indigo2 Payload Data 1.0.0 loaded
2018-04-05 14:37:29.053 HomeKit Bridge Debug    Homebridge-Indigo2 Payload Data 1.0.0 loaded
2018-04-05 14:37:32.530 HomeKit Bridge Debug    Rear Door Camera started as a HomeKit Camera RTP Stream Management (Experimental)
2018-04-05 14:37:32.534 HomeKit Bridge Debug    Homebridge-Indigo2 Device Payload 1.0.0 loaded
2018-04-05 14:37:32.544 HomeKit Bridge Debug    Converting  keyword for HomeKit type or firmware on 'Rear Door Camera'
2018-04-05 14:37:32.553 HomeKit Bridge Debug    Converting indigoVersion keyword for HomeKit type or firmware on 'Rear Door Camera'
2018-04-05 14:37:32.556 HomeKit Bridge Debug    Homebridge-Indigo2 Payload Data 1.0.0 loaded
2018-04-05 14:37:32.556 HomeKit Bridge Debug    Homebridge-Indigo2 Payload Data 1.0.0 loaded
2018-04-05 14:37:32.556 HomeKit Bridge Debug    Homebridge-Indigo2 Payload Data 1.0.0 loaded
2018-04-05 14:37:57.937 HomeKit Bridge Debug    Indigo device Front Door Camera changed and is linked to HomeKit, checking if that change impacts HomeKit
2018-04-05 14:37:57.973 HomeKit Bridge Debug    Front Door Camera started as a HomeKit Camera RTP Stream Management (Experimental)
2018-04-05 14:37:57.978 HomeKit Bridge Debug    Indigo device Front Door Camera changed and is linked to HomeKit, checking if that change impacts HomeKit
2018-04-05 14:37:58.010 HomeKit Bridge Debug    Front Door Camera started as a HomeKit Camera RTP Stream Management (Experimental)
2018-04-05 14:37:58.014 HomeKit Bridge Debug    Indigo device Front Door Camera changed and is linked to HomeKit, checking if that change impacts HomeKit
2018-04-05 14:37:58.053 HomeKit Bridge Debug    Front Door Camera started as a HomeKit Camera RTP Stream Management (Experimental)
2018-04-05 14:37:58.057 HomeKit Bridge Debug    Indigo device Front Door Camera changed and is linked to HomeKit, checking if that change impacts HomeKit
2018-04-05 14:37:58.110 HomeKit Bridge Debug    Front Door Camera started as a HomeKit Camera RTP Stream Management (Experimental)
2018-04-05 14:37:58.114 HomeKit Bridge Debug    Indigo device Rear Door Camera changed and is linked to HomeKit, checking if that change impacts HomeKit
2018-04-05 14:37:58.141 HomeKit Bridge Debug    Rear Door Camera started as a HomeKit Camera RTP Stream Management (Experimental)
2018-04-05 14:37:58.145 HomeKit Bridge Debug    Indigo device Rear Door Camera changed and is linked to HomeKit, checking if that change impacts HomeKit
2018-04-05 14:37:58.172 HomeKit Bridge Debug    Rear Door Camera started as a HomeKit Camera RTP Stream Management (Experimental)
2018-04-05 14:37:58.177 HomeKit Bridge Debug    Indigo device Rear Door Camera changed and is linked to HomeKit, checking if that change impacts HomeKit
2018-04-05 14:37:58.205 HomeKit Bridge Debug    Rear Door Camera started as a HomeKit Camera RTP Stream Management (Experimental)
2018-04-05 14:37:58.210 HomeKit Bridge Debug    Indigo device Rear Door Camera changed and is linked to HomeKit, checking if that change impacts HomeKit
2018-04-05 14:37:58.240 HomeKit Bridge Debug    Rear Door Camera started as a HomeKit Camera RTP Stream Management (Experimental)

[2018-4-5 14:37:40] Loaded plugin: homebridge-camera-ffmpeg
[2018-4-5 14:37:41] Registering platform 'homebridge-camera-ffmpeg.Camera-ffmpeg'
[2018-4-5 14:37:41] ---
[2018-4-5 14:37:41] Loaded plugin: homebridge-indigo2
[2018-4-5 14:37:41] Registering platform 'homebridge-indigo2.Indigo2'
[2018-4-5 14:37:41] ---
[2018-4-5 14:37:41] Loaded config.json with 0 accessories and 1 platforms.
[2018-4-5 14:37:41] ---
[2018-4-5 14:37:41] Loading 1 platforms...
[2018-4-5 14:37:41] [HomeKit Bridge Server] Initializing Indigo2 platform...
[2018-4-5 14:37:41] [HomeKit Bridge Server] HomeKit Bridge base URL is http://<IP_ADDRESS>:8558
[2018-4-5 14:37:41] [HomeKit Bridge Server] HomeKit Bridge serverId is 764107208
[2018-4-5 14:37:41] Loading 0 accessories...
Load homebridge-camera-ffmpeg.Camera-ffmpeg
[2018-4-5 14:37:41] [HomeKit Bridge Server] HomeKit Bridge request: http://<IP_ADDRESS>:8558/HomeKit?cmd=deviceList&serverId=764107208
[2018-4-5 14:37:41] [HomeKit Bridge Server] Listening on port 8449

Oddly, there were no other camera references in the rest of the homebridge.log.  After restart, then I saw camera references:
[2018-4-5 20:12:51] Loaded plugin: homebridge-camera-ffmpeg
[2018-4-5 20:12:51] Registering platform 'homebridge-camera-ffmpeg.Camera-ffmpeg'
[2018-4-5 20:12:51] [Camera-ffmpeg] Initializing Camera-ffmpeg platform...
[2018-4-5 20:13:00] [Camera-ffmpeg] Snapshot from Rear Door Camera at 480x270
[2018-4-5 20:13:00] [Camera-ffmpeg] Snapshot from Front Door Camera at 480x270
[2018-4-5 20:15:20] [Camera-ffmpeg] Snapshot from Rear Door Camera at 480x270
[2018-4-5 20:15:20] [Camera-ffmpeg] Snapshot from Front Door Camera at 480x270
[2018-4-5 20:17:24] [Camera-ffmpeg] Snapshot from Rear Door Camera at 480x270
[2018-4-5 20:17:24] [Camera-ffmpeg] Snapshot from Front Door Camera at 480x270
[2018-4-5 20:17:36] [Camera-ffmpeg] Snapshot from Rear Door Camera at 480x270
[2018-4-5 20:17:36] [Camera-ffmpeg] Snapshot from Front Door Camera at 480x270

I'll have to look into that.  Having Indigo start before SS could certainly cause an error that I could fix because I don't do a ton of trapping there, but why it races is odd.  I'll shut down my SS server and see what happens.

On my system, I intentionally delay the startup of SecuritySpy because it needs to wait for an external storage array to mount.

You mentioned a 'race' condition, when I turned of my SS server and reloaded HKB I only got errors consistent with the number of cameras that I got and then it was fine.
   HomeKit Bridge                  Attempting to start 'HomeKit Basement'
   HomeKit Bridge Error            Exception in plugin.buildServerConfigurationDict line 4650: HTTPConnectionPool(host='x.x.x.x, port=xxxx): Max retries exceeded with url: /++systemInfo (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x110286d90>: Failed to establish a new connection: [Errno 61] Connection refused',))
							 CODE: data = requests.get(ssSystem).content# Pull XML data

You didn't get these errors?  In your log it shows:
Indigo device Front Door Camera changed and is linked to HomeKit, checking if that change impacts HomeKit

Which should only fire when we get a request from Homebridge to do something with the cameras.  Did it race when you tried to view the stream or use HomeKit and not when the plugin started?

I don't think it will make a difference but try updating to the latest release, I see you are a version old and there were a few minor changes to cameras in the latest - mostly for error trapping but still.

Steps to reproduce:

Stop HomeKit Bridge device with cameras
Quit SecuritySpy application - Cynical SecuritySpy plugin reports camera devices as "Unavailable"

   Cynical SecuritySpy Error       SecuritySpy unavailable: [Errno 61] Connection refused
   Cynical SecuritySpy Error       Front Door Camera unavailable: host device SecuritySpy is unavailable
   Cynical SecuritySpy Error       Rear Door Camera unavailable: host device SecuritySpy is unavailable

Start HomeKit Bridge device with cameras

   HomeKit Bridge Debug            Rebuilding configuration for 'HomeKit Bridge'
   HomeKit Bridge Debug            Saving 'HomeKit Bridge' configuration to /Library/Application Support/Perceptive Automation/Indigo 7/Preferences/Plugins/com.eps.indigoplugin.homekit-bridge/764107208
   HomeKit Bridge Error            Exception in plugin.buildServerConfigurationDict line 4650: HTTPConnectionPool(host='home.webdeck.com', port=8001): Max retries exceeded with url: /++systemInfo (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x11360ae90>: Failed to establish a new connection: [Errno 61] Connection refused',))
							 CODE: data = requests.get(ssSystem).content# Pull XML data

   HomeKit Bridge Warning          Configuration will be built despite the error
   HomeKit Bridge Error            Exception in plugin.buildServerConfigurationDict line 4650: HTTPConnectionPool(host='home.webdeck.com', port=8001): Max retries exceeded with url: /++systemInfo (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x11373cb10>: Failed to establish a new connection: [Errno 61] Connection refused',))
							 CODE: data = requests.get(ssSystem).content# Pull XML data

   HomeKit Bridge Warning          Configuration will be built despite the error
   HomeKit Bridge                  Attempting to start 'HomeKit Bridge'

Start SecuritySpy application - Cynical SecuritySpy plugin changes camera devices to "active"

   HomeKit Bridge Debug            Indigo device Front Door Camera changed and is linked to HomeKit, checking if that change impacts HomeKit
   HomeKit Bridge Debug            Front Door Camera started as a HomeKit Camera RTP Stream
   HomeKit Bridge Debug            Indigo device Front Door Camera changed and is linked to HomeKit, checking if that change impacts HomeKit
   HomeKit Bridge Debug            Front Door Camera started as a HomeKit Camera RTP Stream
   HomeKit Bridge Debug            Indigo device Front Door Camera changed and is linked to HomeKit, checking if that change impacts HomeKit
   HomeKit Bridge Debug            Front Door Camera started as a HomeKit Camera RTP Stream
   HomeKit Bridge Debug            Indigo device Front Door Camera changed and is linked to HomeKit, checking if that change impacts HomeKit
   HomeKit Bridge Debug            Front Door Camera started as a HomeKit Camera RTP Stream
   HomeKit Bridge Debug            Indigo device Rear Door Camera changed and is linked to HomeKit, checking if that change impacts HomeKit
   HomeKit Bridge Debug            Rear Door Camera started as a HomeKit Camera RTP Stream
   HomeKit Bridge Debug            Indigo device Rear Door Camera changed and is linked to HomeKit, checking if that change impacts HomeKit
   HomeKit Bridge Debug            Rear Door Camera started as a HomeKit Camera RTP Stream
   HomeKit Bridge Debug            Indigo device Rear Door Camera changed and is linked to HomeKit, checking if that change impacts HomeKit
   HomeKit Bridge Debug            Rear Door Camera started as a HomeKit Camera RTP Stream
   HomeKit Bridge Debug            Indigo device Rear Door Camera changed and is linked to HomeKit, checking if that change impacts HomeKit
   HomeKit Bridge Debug            Rear Door Camera started as a HomeKit Camera RTP Stream

Try to view cameras in HomeKit Home app - "No Response This camera is not responding"

Reason is, they are missing in config.json:
{
        "platforms": [
                {
                        "protocol": "http",
                        "name": "HomeKit Bridge Server",
                        "listenPort": "8449",
                        "platform": "Indigo2",
                        "host": "<IP_ADDRESS>",
                        "serverId": 764107208,
                        "port": "8558"
                }
        ],
        "bridge": {
                "username": "CC:22:3D:E3:CE:10",
                "name": "HomeKit Bridge",
                "pin": "031-45-154",
                "port": "51827"
        },
        "accessories": [],
        "description": "HomeKit configuration generated by HomeKit Bridge on 2018-04-07 12:35:24.034000 for device HomeKit Bridge"
}

So, the bug is, if HomeKit Bridge device starts when camera devices are "Unavailable", then they are omitted from config.json.  When camera devices change to "active", they are not added back to config.json and server doesn't restart.

Very helpful, thank you.  I’ll do some further testing.

Got this multiple times after installing 7.1.2 Beta 1c.  Went away after I rebooted the mini.
2018-04-21 10:34:05.100	Sonos Error	plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
2018-04-21 10:34:06.717	Application	Started plugin "HomeKit Bridge 0.23.0"
2018-04-21 10:34:06.880	SQL Logger	updating all variable tables
2018-04-21 10:34:07.000	HomeKit Bridge	Attempting to start 'HomeKit Bridge'
2018-04-21 10:34:07.240	SQL Logger	update complete
2018-04-21 10:34:12.011	HomeKit Bridge Error	Exception in plugin.buildServerConfigurationDict line 4399: HTTPConnectionPool(host='proserver.local', port=8123): Max retries exceeded with url: /++systemInfo (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x10fcea590>: Failed to establish a new connection: [Errno 64] Host is down',))
							 CODE: data = requests.get(ssSystem).content# Pull XML data

2018-04-21 10:34:12.011	HomeKit Bridge Warning	Configuration will be built despite the error

Ok, so that one is a bit different but it's Homebridge not responding to a web request.  I get those sometimes, but its good to have it documented.  I've had some problems getting that trapped in a logical way.  Thank you Joe.

I doubt I could reproduce it, as it immediately stopped happening with the reboot.

It should have reset if you restarted the plugin too.

I was more concerned with getting Little Snitch working, and I figure the reboot was what it needed. ;)

;)


[NavigatorIOS] doesn't update when passProps update

I'm not sure if this is a feature or a bug:
When I change the value of passProps of a navigator, I expect it would re-render again, just like other react components do. However, it seems it will not do so.
For example,
          <NavigatorIOS
            style={{flex: 1}}
            initialRoute={{
              component: MyChatList,
              title: "My Chat List",
              passProps: {
                recentChats: this.state.ChatListData.recentChats,
                renderRow: this.renderRecentChat,
              },
            }} />

When the state ChatListData (which comes from flux) updates, the navigator will not update it self correspondly.

I don't know

initialRoute only specifies the initial scene in the navigator.
The reason we don't do this is we don't want to re-render all of the scenes every time you re-render NavigatorIOS. This would make the app very slow once you have several scenes open. If your props are changing, you can call navigator.replace(newRoute), or use event emitters to communicate to inner scenes.
Navigator handles this case a bit better. When you re-render, it will call renderScene again for the currently-visible scenes (unless you are mid-transition).
I'm still trying to figure out the ideal pattern for re-rendering internal scenes. Feedback and ideas are welcome!

@ericvicenti Oh, I totally forgot I can use replace. I feel that is a little anti-react though. I mean, monitoring new props ourself. On the other hand, using event emitters is probably more like Flux, right? However, I'd personally prefer keep the states on the top-most components and let it pass props down, instead of let the navigator listen to the store directly.
For the Navigator, would it also be slow if I keep re-render (new props keep coming, for example)?
Thanks for your elaborating.

I too ran into this when I first started writing a RN app.
Is there any way that calling setState can update props to any potential children on the same route like with React?
ie:
  _buttonPress() {

    this.setState({
      input: 'heyo'
    })

  },

  render() {
    return (
      <View>
         <ChildComponent input={this.state.input} /> // input prop change will be heard by Child
      </View>
    )
  }

@mjw56, That code should work, the input prop would be updated when setState is called. Are you having difficulties when putting ChildComponent inside a Navigator or NavigatorIOS?
@lazywei, I agree that it would be nicer to re-render the scene when the NavigatorIOS gets re-rendered. It would be great if somebody could implement Navigator's renderScene API for NavigatorIOS. That way the initial route would remain, but you could re-render the scene according to changing state outside the navigator.
When it comes to slowness from re-rendering in Navigator, it shouldn't be a problem because Navigator is careful to only re-render scenes that are visible. This would also be important to do if somebody adds the renderScene API to NavigatorIOS.
You might run into issues if you want to re-render aggressively, but you could always improve the shouldComponentUpdate logic in your scenes.

It also doesn't update when navigationBarHidden is changed, see https://github.com/facebook/react-native/issues/846

Still an issue with React Native 0.6rc. Workaround is calling this.refs.navigator.replace(…) with the updated state in passProps.

may be this PR can solved your issue ?
https://github.com/facebook/react-native/pull/1733

@mars: It's a Workaround if you haven't got anything in NavigatorIOS. What if you have pushed several routes?
I am trying to use resetTo() in order to reset the whole thing every time new props come in. (http://stackoverflow.com/questions/31320583/invariant-violation-calling-pop-to-route-for-a-route-that-doesnt-exist)
Any idea?

@edo1493 I ended up using the more manual but less limiting React.Navigator and …navigator.immediatelyResetRouteStack(). See Navigator docs

@ericvicenti have you seen this? Thanks.

Thank you for reporting this issue and appreciate your patience. We've  notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.

Is this issue about Navigator or NavigatorIOS? I see references to both in here.
For clarification about the difference, check out @brentvatne's comparison

@ericvicenti this issue is w/ NavigatorIOS
Using the Navigator module instead re-renders routes/scenes at the appropriate times.

The issue is with NavigatorIOS.
Since I didn't have to re-render anything, I have solved with an EventEmitter that pass the updated props from componentWillReceiveProps.

Ok, that sounds like a reasonable workaround for now. We currently don't use NavigatorIOS at Fb, so its up to the community to get this one fixed.

@ericvicenti @vjeux @brentvatne  this may sound crazy but should react native move NavigatorIOS out of core?
It can live in userland and will be better supported i guess if it's in userland.

Yes.  Please either remove it so people don't get confused or put a big red warning in the docs saying "this component breaks the underlying working of react".  Wasted time until I found this bug.

@chirag04 there is already this https://github.com/facebook/react-native/issues/1519

I know this is a bit off-topic, but is there a way to update the props of each component in the stackRoute of Navigator?
I am updating the state where Navigator is rendered, but the props don't seem to update.

I use v0.13.1.
I create getter method to get updated props, and pass to  NavigatorIOS.
It is easy to keep the states on the top-most components and let it pass props down.
In this case there will be a problem?
For example,
  getRecentChats() {
    return this.state.ChatListData.recentChats;
  }
  render() {
    return (
      <NavigatorIOS
        style={{flex: 1}}
        initialRoute={{
          component: MyChatList,
          title: "My Chat List",
          passProps: {
            recentChats: getRecentChats.bind(this),
            renderRow: this.renderRecentChat,
          },
       }} />
    );
}

I've been using replacePreviousAndPop({}) for more complex pagination scenarios and it has worked fine, albeit less cache-y than I'd hoped.

@ericvicenti any idea why navigator.replace(newRoute) does't work in RN version 17 and 16? going back to version 14 now :(
replaceAtIndex method of NavigatorIOS seems to be identical.

It might be due to changes on the native side. I don't really work with NavigatorIOS, so I'm not sure

What happened with this? I'm also experiencing this error. Apparently we were going to see a response in 30 days but that was about 5 or 6 months ago.

+1

:+1:

＋1

+1

Facebook don't support the native control - Navigator is their JS replacement and it works okay.

I'm using version 0.34.0 and Navigator (not NavigatorIOS) and I'm having this exact problem. State changes in my parent screens get passed into child/sibling screens via passProps, but the child/sibling screens don't get re-rendered. I have to call this.forceUpdate() on my child/sibling screens after calling back to the parent screen. It works fine, but it's not very "Reacty".

I am also experiencing the issue described by @Gagege, which is very easy to reproduce. It is counter intuitive because with all react components, you expect that props passed to a child will automatically re-render the child when they are updated in the parent via setState().
The use of Navigator's passProps functionality breaks this pattern and makes it difficult to update any view that is a child of a navigator.
I am going to try using NavigationExperimental to see if it has the same issue

This issue seems like it is now a bunch of different issues combined. @felipemullen I suggest trying ExNavigation and complaining to @skevy if it is not good enough, rather than NavigationExperimental which we are figuring out how to combine with ExNavigation soon. I'm going to close this issue, and I suggest if people continue to have similar problems they open a new issue and be very clear about whether the problem applies to Navigator or NavigatorIOS because they are pretty different in terms of getting them fixed.


refactor: ignore untestable lines of code

No change to logic. This adds /* istanbul ignore ... */ statements for code paths which are currently not easy to automatically test because the code depends on the browser environment.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (d45bf6f) to head (eb045ca).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff              @@
##             main       #50       +/-   ##
============================================
+ Coverage   81.14%   100.00%   +18.85%
============================================
  Files           2         2
  Lines         122        99       -23
============================================
  Hits           99        99
+ Misses         23         0       -23

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


feature: ProviderCall

Closes #736
Motivation
Allow providers to get outputs from arbitrary sources, including synchronous
Solution

[x] Add a ProviderCall future that wraps 4 data sources (rpc, batch rpc, other future, ready)
[x] change provider return types
[x] change inner type of eth call and with_block

drive-by:

[x] generalize into_owned_params
[x] alphabetize some mod defs
[x] improve mapping internal to rpccall
[x] add map to waiter

PR Checklist

[ ] Added Tests
[x] Added Documentation
[x] Breaking changes

the main problem right now is figuring out how to integrate it into WithBlock and EthCall 🤔

hey @prestwich
Taking this over, need it for #954

hey @prestwich
Taking this over, need it for #954

Would appreciate it if you have any pointers to move forward from here.
I think only integrating ProviderCall with RpcWithBlock and EthCall remains?

I think we can now unify Caller impls for WithBlock and EthCall? or maybe just do impl Caller for WeakClient<T>?

I think we can now unify Caller impls for WithBlock and EthCall? or maybe just do impl Caller for WeakClient<T>?

impl Caller for WeakClient<T> makes sense

@yash-atreya one thing I find a bit confusing here is that by design of Caller it does not receive more context than a RequestPacket we are working with when overriding transport layers.
I think one valid usecase for this PR is for example changing Provider implementation to reading storage slots from some other source for get_storage_at requests. Currently this would require implementing a custom Caller which would manually deserialize eth_getStorageAt params to determine address, slot and block which adds an additional fallible step which wasn't required earlier when those methods returned just TransportResult
I think what we want for WithBlock is something that can produce a ProviderCall given a block_id: BlockId, and also is able to capture context such as Params. This is essentially fn(BlockId) -> ProviderCall, though we'd likely need more concrete type here to handle lifetimes in cases of borrowed rpc call params

@mattsse I believe this can be merged now

@yash-atreya wondering how do we decide which Provider methods return ProviderCall vs async fn -> TransportResult<...>?

@yash-atreya wondering how do we decide which Provider methods return ProviderCall vs do async fn -> TransportResult<...>?

Sorry for the delayed response.
TransportResult is also overridable like ProviderCall.
I believe subscribe/watch methods should be TransportResult since they return PollerBuilder.
Rest can be made to return ProviderCall.
Just about what we want to follow as convention moving forward even for extension traits such as AdminApi, TraceApi etc.
@mattsse wdyt?

Also, any RPC method where we accept a parameter by reference, should be TransportResult since replacing it with ProviderCall will introduce lifetimes. eg. get_fee_history

Lifetimes should be fine, we already have them in e.g. estimate_gas

Should extension traits such as AdminApi, TraceApi etc. be moved to ProviderCall as well?

We are already using RpcWithBlock in TraceApi, so I wouldn't say that those aren't tied to provider already. Though I can see how changing their returns types to ProviderCall might break usecases unrelated to provider

Lifetimes should be fine, we already have them in e.g. estimate_gas

We want to avoid introducing lifetimes in the trait as much as possible, eth_call and estimate_gas are exceptions since the addition of EthCall.

how changing their returns types to ProviderCall might break usecases unrelated to provider

+1


Update ISWAPROUTER12.t.sol

this is about ISWAPROUTER12.sol

Hey abemelek the required test was supposed to be for a contract and not the interface. Also kirubels swap contract is the one that was supposed to be tested


Introduce a flatMapPublisher method

Fixes #49

This new stage is an adaptation of the flatMap stage but the mapper function returns a Publisher instead of a PublisherBuilder.

The tests are derived from the flatMap verification test suite

looking into the CI issue (can I say "works on my machine ;-))"

ah ah... Java 8 vs. Java 9 issue.


Move to latest VSSDK build tools package

So...the PR build succeeded but the CodeQL build failed??

So...the PR build succeeded but the CodeQL build failed??

I saw the error occurred during building Sarif.Sarifer.csproj, maybe we need to add the build tools package reference to this project explicitly?

So...the PR build succeeded but the CodeQL build failed??

I saw the error occurred during building Sarif.Sarifer.csproj, maybe we need to add the build tools package reference to this project explicitly?

I'll try it.


CUDA version

Hello! I noticed that your work is also based on multinerf.
I met some problems on JAX and its related packages.
Could you provide your CUDA version? Thank you!

Hello!
My CUDA version is: 11.3

Thank you!  It is nice of you~


Package app for Mac App Store

Accomplishing this would create a smoother user experience, as well as resolving #92 and issues raised in #93  However other considerations must factor into whether it is a priority. It would be non trivial and would certainly impact the current build.js flow

Should this be labelled fn:distribution?


Noindex prevents search engines from finding new URLs

Why was noindex added as a meta tag to the template? Search engines need to be able to find the new URL and this completely breaks that functionality.

no-index rule in the meta tag means search engines are instructed to not add the current page (with the meta tag). In other words, you don't want redirect.html to be indexed.
Now, if there's another rule that says no-follow, then that can be an issue because this rule instructs the crawler to not go to the new URL.

Then this was my mistake and you can close. Google kept giving me Webmaster Tools warnings as if it wouldn't follow these pages. Really just annoying GitHub Pages can't do 301.

I'm fixing the time it's sun this I'm almost completely ready for my day to

Leave me bugs we will generate all together for next code

No close only doze not closer


[Functional Test Flakiness] Improve Reliability of AWS Resource Validation

Area for Improvement
AWS functional tests
Observed behavior
We have a functional test that creates an AWS S3 bucket, validates its existence by performing a get request, returns an error if the get call results in an error (including 404), and finally performs a cleanup step to delete the resources, even if the previous step returned an error. In a recent run, this test failed during the validation of the S3 bucket creation because the bucket could not be found. Logs -
cli.go:341: [rad]     radiusfunctionaltestbucket-aca3abad-f25b-49d3-be9f-bd1f7f543171 AWS.S3/Bucket
    cli.go:341: [rad]
    deployexecutor.go:84: finished deploying deploy testdata/aws-s3-bucket.bicep from file testdata/aws-s3-bucket.bicep
    rptest.go:3[93](https://github.com/radius-project/radius/actions/runs/11243305588/job/31259088130#step:26:94): finished running step 0 of 1: deploy testdata/aws-s3-bucket.bicep
    rptest.go:396: skipping validation of resources...
    rptest.go:411: validating output resources for deploy testdata/aws-s3-bucket.bicep
    aws.go:72:
        	Error Trace:	/home/runner/work/radius/radius/test/validation/aws.go:72
        	            				/home/runner/work/radius/radius/test/rp/rptest.go:413
make: *** [build/test.mk:89: test-functional-corerp-cloud] Error 1
        	Error:      	Received unexpected error:
        	            	operation error CloudControl: GetResource, https response error StatusCode: 400, RequestID: b546bee7-401d-4efe-9bc8-7a9ecd041e27, ResourceNotFoundException: AWS::S3::Bucket Handler returned status FAILED: Bucket not found (HandlerErrorCode: NotFound, RequestToken: a64[102](https://github.com/radius-project/radius/actions/runs/11243305588/job/31259088130#step:26:103)cb-8ab2-407d-8330-e85842af474e)
        	Test:       	Test_AWS_S3Bucket/deploy_testdata/aws-s3-bucket.bicep
    --- FAIL: Test_AWS_S3Bucket/deploy_testdata/aws-s3-bucket.bicep (40.26s)

It errored out again during cleanup stage unable to validate deletion of the bucket -
rptest.go:458: validating deletion of AWS resource for radiusfunctionaltestbucket-aca3abad-f25b-49d3-be9f-bd1f7f543171 (attempt 5/5)
    rptest.go:475:
        	Error Trace:	/home/runner/work/radius/radius/test/rp/rptest.go:475
        	Error:      	Should be true
        	Test:       	Test_AWS_S3Bucket
        	Messages:   	AWS resource radiusfunctionaltestbucket-aca3abad-f25b-49d3-be9f-bd1f7f543171 was present, should be not found

DONE 20 tests, 2 skipped, 2 failures in 151.163s

Link to functional test run: https://github.com/radius-project/radius/actions/runs/11243305588/job/31259088130
Desired behavior
The test should always pass.
Proposed Fix

From the logs above, it's clear that the bucket was eventually created. So adding retries with backoff on the validation path here should help mitigate intermittent failures.

The second failure happened because the bucket wasn't deleted within the time allocated for the test validation. We should consider increasing the max retry limit here.

The backoff logic could be improved as well - currently there is a fixed 10 second forced wait between retries. We could start with a smaller wait time  and exponentially increase it for cases where operations are delayed due to external issues. Since the buckets created for this test don't contain any objects, the creation and deletion should be fairly quick in most cases.

rad Version
N/A
Operating system
N/A
Additional context
No response
Would you like to support us?

[ ] Yes, I would like to support you

AB#13454

Another test run where this error happened on bucket deletion validation path: https://github.com/radius-project/radius/actions/runs/11269904213/job/31339494783

Seen again in a scheduled functional test run: https://github.com/radius-project/radius/actions/runs/11622220142/job/32367444436


Scroll position issue when using NestedScrollView and NestedRefresh

If you use your example NestedRefresh and supply initialRefresh to the refresh controller you will notice the scroll position does not stay at the top and after animation ends the top sits halfway through card 2.

this problem indeed exist ,but I have no idea how to fix this.because Nestedscrollview itself has many problems,you can check flutter issue.It is not advice to use NestedScrollVIew+Refresh


Add new GREL function to normalize characters

Fixes #6608
Changes proposed in this pull request:

Add normalize function and test
Add Locale sensitive comparator and test

Hi @Sophia3287, are you still working on this?

I'm closing this because of inactivity, but if you want to work again on this feel free to open a new PR.


auditlog error in django 1.10

Hi,
I installed django 1.10 and followed the doc to add 'auditlog' to INSTALLED_APPS and MIDDLEWARE, the migrate was doing success, however, when I start run_server, the below error shows:
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x0453DBB8>
Traceback (most recent call last):
  File "D:\dev\envs\django\lib\site-packages\django\utils\autoreload.py", line 226, in wrapper
    fn(*args, **kwargs)
  File "D:\dev\envs\django\lib\site-packages\django\core\management\commands\runserver.py", line 142, in inner_run
    handler = self.get_handler(*args, **options)
  File "D:\dev\envs\django\lib\site-packages\django\contrib\staticfiles\management\commands\runserver.py", line 27, in get_handler
    handler = super(Command, self).get_handler(*args, **options)
  File "D:\dev\envs\django\lib\site-packages\django\core\management\commands\runserver.py", line 64, in get_handler
    return get_internal_wsgi_application()
  File "D:\dev\envs\django\lib\site-packages\django\core\servers\basehttp.py", line 49, in get_internal_wsgi_application
    return import_string(app_path)
  File "D:\dev\envs\django\lib\site-packages\django\utils\module_loading.py", line 20, in import_string
    module = import_module(module_path)
  File "C:\Program Files (x86)\Python35-32\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 665, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "xxx\wsgi.py", line 16, in <module>
    application = get_wsgi_application()
  File "D:\dev\envs\django\lib\site-packages\django\core\wsgi.py", line 14, in get_wsgi_application
    return WSGIHandler()
  File "D:\dev\envs\django\lib\site-packages\django\core\handlers\wsgi.py", line 153, in __init__
    self.load_middleware()
  File "D:\dev\envs\django\lib\site-packages\django\core\handlers\base.py", line 82, in load_middleware
    mw_instance = middleware(handler)
TypeError: object() takes no parameters

If I commented below line from MIDDLEWARE
# 'auditlog.middleware.AuditlogMiddleware'

The run_server would work with no errors.
However, after doing some actions and check audit_logentry table, nothing was recorded there.
Any ideas? Thanks very much!

You need the middleware for automatic logging. What version are you running? Do you run the latest version from pypi (pip install django-auditlog) or are you running the latest repository version?

Thanks for the quick reply.
I installed it via pypi and the installed version is 0.3.3.
( I also tried put the source in my project folder and run_server, but met the same error.).

Django (1.10)
django-auditlog (0.3.3)
django-jsonfield (1.0.1)
django-suit (0.2.20)
pip (8.1.1)
psycopg2 (2.6.1)
pycodestyle (2.0.0)
setuptools (20.10.1)

I have not been able to reproduce this exact behavior. However, the middleware is not yet adapted for 1.10. I have pushed changes to fix this (will merge soon), and I will be releasing 0.4.0 this evening. Could you try it again with this version?

Thanks for the quick action, after upgrade to 0.4.0, it's now work like a charm.

Just installed django-audit-log-0.7.0 in my django-1.11.1 (running under python 3.5.2)
makemigration & migrate commands run without any issue. However, when I issue runserver, I get the same error.
  self.load_middleware()
  File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 82, in load_middleware
    mw_instance = middleware(handler)
TypeError: object() takes no parameters

Is there any fix?
Thanks.


when a scene is loaded for continuing simulation, wrong object IDs are associated

I noticed that running n_cubes_scene.py, generating some frames using n_cubes_simulation.py, and then running it again to generate more, results in the cube colours changing at the moment that the simulation is restarted.  Same thing happens with a granular simulation -- not only are the colours wrong, but the shapes!  Looking in the HDF5, it appears the IDs associated with the objects are wrong.  Looking into it.

Ok I figured out what is happening, I think.  It has to do with the time of birth feature.  When a scene is loaded and there is an object that was not born in the previous frame, it is created at loading time.  Previously it was not yet created at loading time, but would have been created later.  This changes the counter in DynamicalSystem relative to the object, hence changing the object IDs.
Possible fixes:

Set the ds number explicitly to match what is in the HDF5 (preferred solution imho)
Ensure order of creation of DSs is always the same, regardless of time of birth
Create all DSs during initialization but do not add them to the scene immediately
Use a mapping between run-time IDs and file IDs

For now I am working on 1.


"Regular Recorder" functions are not working in the example

Hi there,
Thank you for this easy to use package.
Although "listening" & "playback" functions works perfect, I was not able get "Regular Recorder" functions working in the example project.
I also tried as stated in https://github.com/fulldecent/FDSoundActivatedRecorder/issues/31 but all it changed was -> started recording without trigger & stopped recording with same behaviour as listening.
So, I looked at the source code and realised that every timer interval there is a check which stops recording.
if let triggerLevel = triggerLevel, currentLevel <= triggerLevel {
I think that is the line of code that needs an update, there can be a check here for regular recording use cases.

I introduced regularRecording to see a working example;
to start regular recorder ->
        recorder.regularRecording = true
        recorder.startListening()
        recorder.startRecording()

to stop recorder ->
        recorder.stopAndSaveRecording()
        recorder.regularRecording = false

initialize ->
class FDSoundActivatedRecorderMock: FDSoundActivatedRecorder {
    var intervalCallback: (Float)->() = {_ in}
    var regularRecording = false
    override func interval(currentLevel: Float) {
        self.intervalCallback(currentLevel)
        if regularRecording == false {
            super.interval(currentLevel: currentLevel)
        }
    }
    override init() {
        super.init()
    }
}

Best Regards,
Engin

This is okay for now. Please send as a PR.
In the future, this can be better documented on actually how startRecording is intended to work.

Figured out it is not an issue after all. The purpose of this code is to listen & record when there is some sound data.


CIP-33 Reference Scripts - draft

info
https://developers.cardano.org/docs/governance/cardano-improvement-proposals/CIP-0033

[ ] spend a Plutus utxo which contains a reference script
[ ] spend a Plutus utxo which contains a reference script and an inline datum
[ ] invoke/reference multiple scripts in the same transaction
[ ] Use both the reference script and datum at the same utxo input
[ ] Fee and collateral are not the same as when attaching script (reference is always cheaper)
[ ] Try referencing the same output with the same script multiple times in a single transaction
[ ] Try referencing several instances of the same script at different outputs in a single transaction
[ ] a tx with a Plutus script which is both needed and supplied in two ways: 1) via reference script, 2) in the script witnesses
[ ] using a reference script in order to authorize a Plutus locked delegation cert/minting policy/withdrawal
[ ] a tx with a Plutus script and byron outputs

invalid/negative scenarios

[ ] Try attaching and referencing a pre-Vasil script - should not work
[ ] Try attaching and referencing something that is not a script (or script that is not well-formed)
[ ] collateral total is not correct

We should also have a test that runs a plutus script to validate that the correct script hash is attached to input, see https://github.com/input-output-hk/plutus/blob/master/plutus-ledger-api/src/Plutus/V2/Ledger/Tx.hs#L85

cardano-node related PR:
#3810
info
https://github.com/cardano-foundation/CIPs/tree/master/CIP-0033
https://github.com/input-output-hk/cardano-node/issues/3766#issuecomment-1103960050
AC1 Possible to reference a script

[ ] Spend a Plutus utxo which contains a reference script
[ ] Invoke/reference multiple scripts in the same transaction
[ ] Use both the reference script and datum at the same utxo input
[ ] Reference the same output with the same script multiple times in a single transaction
[ ] Reference several instances of the same script at different outputs in a single transaction
[ ] Use a reference script in order to authorize a Plutus locked delegation cert/minting policy/withdrawal
[ ] Reference something that is not a script (or script that is not well-formed) - Expect failure
[ ] Reference one valid script and one invalid - Expect failure

AC2 Fee and collateral are cheaper when using a reference script

[ ] Submit a transaction with a attached script, submit the same transaction with the script referenced, compare the fees and collaterals.

AC3 Scripts with old versions cannot use reference scripts, attempting to do so will be a phase 1 transaction validation failure.

[ ] Spend an old version script in a transaction that include a reference script - Expect Failure

a tx with a Plutus script which is both needed and supplied in two ways: 1) via reference script, 2) in the script witnesses

@dorin100 I see we can still test the following:

When UTxO has enough to store the script
When UTxO doesn't have enough to store the script
a. Error message OK?
When Script size is bigger than TX size
a. Error message OK?
When the script is invalid
a. Error message OK?
Test if the real cost to store the script is the same that CLI reports


Fix priority of 'ToResponse' instances for 'AsyncStream[Buf]'

Fixes #652

Current coverage is 74.41% (diff: 0.00%)

Merging #657 into master will not change coverage

@@             master       #657   diff @@
==========================================
  Files            28         28
  Lines           559        559
  Methods         542        542
  Messages          0          0
  Branches         17         17
==========================================
  Hits            416        416
  Misses          143        143
  Partials          0          0

Powered by Codecov. Last update b446511...fb35385

Thanks @ilya-murzinov! Looks exactly what I had in mind! Would be rad if we could provide a test that checks if the issue is gone. Want to try that as well?

@vkostyukov yep, I'm on it

@vkostyukov I'm a little stuck here..
The idea of test is trivial, but I don't understand how to get actual response content.
Obviously, Response#contentString doesn't fit, because it's empty.
Do you know how it can be done?
P.S. now test is passing only because it doesn't actually check anything :(

Thanks @ilya-murzinov! Merging this.


Add timeout?

Can we add an option like diff_match_path.Diff_Timeout in sync mode? Since #396 may not be solved easily, this option can help reducing many issues about performance like #376

FWIW, diff_match_path.Diff_Timeout does not seem to actually work in its Javascript version. Whatever value it is set, the dmp diff algorithm takes the same time. And if the timeout is too small, the diff output is suboptimal (the computation for the more optimal diff is done but dropped due to the timeout logic). So in practice you always want to set it to a large value to avoid discarding the optimal diff output.

Not directly relevant to jsdiff, but for the record, I see different behaviour with diff_match_patch to what you describe, @quark-zju. I tried diffing two random million-line strings against each other with differing Diff_Timeout values and the Diff_Timeout clearly had an effect; when set to 1, execution finished after about 1 second, when set to 10, after about 10 seconds.


Add SKOPS as library

Adding skops in the library filter on the hub
cc @osanseviero @adrinjalali

i think this could be reopened as i think in the attached issue we said we could add it to the filter in /models when we want to


Slack notification not working

I have tried to send the slack notification with slack webhook but it stopped working from last week. My action code is as below.
  - name: slack-notify
    uses: ravsamhq/notify-slack-action@v1
    if: always()
    with:
      status: Notification
      notification_title: 'New code in pull-request is {status_message} in SonarQube analysis, need review for pull request approval'
      message_format: '{emoji} Workflow *{workflow}* has {status_message} in <{repo_url}|{repo}>. Static Code Analysis results are in URL: https://sonarcloud.io/dashboard?id=${{ github.event.repository.name }}&branch=${GITHUB_REF#refs/heads/}'
    env:
      SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

Hi @vinothgitkumar. You are using the action in the wrong way.
status key needs to be as follows:
status: ${{ job.status }}

I am assuming this issue has been solved.


Cannot play vimeo id in Huawei

I got error only in huawei phone support google play:

im using latest pod_player: ^0.2.2 on flutter

Same issue


DataAnnotations.DataTypeAttribute Support

Description

Add support for DataAnnotations.DataTypeAttribute so the fields will update based on the DataType enum being set on a model's field.
For example, setting the DataType of a string to Password will set the InputType of the Mud field to Password
How Has This Been Tested?

I've created unit tests around the get extension methods for getting the DataType value from the attribute list.
I've also updated the doc page for the example of using the For field to visually test this.
Types of changes

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

Checklist:

[x] The PR is submitted to the correct branch (dev).
[?] My code follows the code style of this project.
[x] I've added relevant tests.

Unsure if I've kept the style of the project

Wow, this is pretty hard to read InputType != InputType.Text ? InputType : For.GetInputTypeFromDataType();

Thanks, this is a good solution.


[Vue3 + XState] Create fetch example

Acceptance criteria:

[x] Link to fetch example correctly navigates to the fetch example page
[x] Page has the title "Fetch Data from API"
[ ] A message is visible showing the API response
[ ] Message has a loading state when the user first visits the page, to show the data is being fetched
[ ] Page has a link to return to home page
[ ] XState visualizer setup and working for this page
[ ] Storybook story create and working for this page
[ ] Cypress component test created and working for this page

[ ] Create machine with loading, API call, and result states
[ ] Setup template to use machine states
[ ] Decide on and implement loading view / styles


Better display of binary data on arbitrary query results page

https://latest.datasette.io/fixtures?sql=select+rowid%2C+data+from+binary_data+order+by+rowid+limit+101

Problem: if these were larger fields that HTML page could have multiple megabytes of Python binary string representations on it.
It should behave more like the regular table view does:

Providing a binary download link here is actually extremely difficult.
The problem is that the SQL query itself represents data that can change from one moment to the next. It's no good showing a "Binary: 55 bytes" message that links to that same SQL query but with a .blob extension and arguments to select the particular result, because the data may change in a way that causes that query to return a different row - at which point the download link will give you the wrong data, not the 55 bytes you asked for.
So providing a download link risks being misleading.

This is bad though, because if I want to provide binary data in CSV as requested in #1034 I need some way of providing that data.
Which suggests to me that the base64 option is the only one that can make sense for arbitrary SQL queries represented as CSV. Download links won't work.

Crazy idea: generate a signed URL containing a base64 of the gzip of the binary content (to try and reduce size).
No: this will blow through URL limits in various hosting providers and possibly even browsers. It could be made to work a little bit more reliably with some extra JavaScript that turns it into a download on the browser-side, but that would be hideously complicated.
Also the signed bit doesn't prevent people from generating SQL queries that generate nasty binary blobs for download.
I'm beginning to think that restricting this feature to just table view, not query view, is a better idea. Query view can still get at the binary using JSON and base64.

I still need to improve the current binary display on the query page though, where it outputs a Python b'...' literal.

OK, alternative idea. The .blob output renderer from #1050 gets to see multiple rows at once.
For an arbitrary SQL query, how about if I link to this?
/db.blob?sql=...&_blob_column=data&_blob_hash=bc4c24181ed3ce666
Then the output renderer loops through all of the data results that are available to it and, if one of them hashes to that value, serves up that data?
If no matches are found it can show an error message telling you that the link has expired (presumably because the underlying database has changed since the link was generated).
I think this might be the best solution to the problem.

https://latest.datasette.io/fixtures?sql=select+rowid%2C+data+from+binary_data+order+by+rowid+limit+101 now looks like this:


Low or limited download speed when deployed in Docker in Proxmox LXC

Hello,
I have deployed speedtest-tracker in Docker running in Synology DS218 plus NAS and it's working absolutely fine for approx. 2 months but it's not my main docker environment so I would like to migrate speedtest-tracker to my main docker running in proxmox lxc.
I have already deployed the app did all configuration which in the end was just a copy paste from the Synology deployment only difference is APP_KEY but for some reason there is a problem with this deployment.
My uplink is 1000/1000Mbps but for some reason the download speed in tests in proxmox is kind of limited to approximate maximum of 200Mbps but upload is always 900Mbps and more.
Synology deployment has both download and upload on high numbers as you can see the results from both Synology and Proxmox below.
Synology:

Proxmox:

Can you point me somewhere what I should check or change some setting to make it work exactly as on Synology?
I think I checked everything regarding the network configurations and I am out currently of ideas.

How are the results when doing a Speedtest directly in the LXC or proxmox host?

It's slow already on proxmox host.

In the meantime I tried to replace LAN cable, change port on router, change port to switch.
Nothing of this helped. I am starting to think this would be a proxmox or NIC problem.

Ok so found the solution.
I had to disable ASPM - Active-State Power Management in BIOS. No the speeds are perfect.


Crashes after project is closed and opened.

Surprisingly it actually works as intended, and it can be very useful, however when I close project with active plugin and then open it again godot is crashing. Any thoughts on that?

Fixed by #d799039


Resoved Merge Conflicts

This should resolve your merge conflicts on getgrav/grav-plugin-simplesearch#72 while also reducing the number of line changes in your pull request.

@gitname ?

Closing since original PR was closed


feat: Action redesign: Updating the config for Firestore plugin to use sections and zones format

Description
Action redesign: Updating the config for Firestore plugin to use sections and zones format
Fixes #35492
Automation
/ok-to-test<EMAIL_ADDRESS>:mag: Cypress test results

[!IMPORTANT]
🟣 🟣 🟣 Your tests are running.
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/10659642183
Commit: 4e279f9f98b3dfeb7ff64bfe0d989b7056b25bbe
Workflow: PR Automation test suite
Tags: @tag.All
Spec: ``
Mon, 02 Sep 2024 02:21:37 UTC

Communication
Should the DevRel and Marketing teams inform users about this change?

[ ] Yes
[ ] No

Summary by CodeRabbit

New Features

Enhanced dynamic input text controls with improved styling and layout flexibility.
Introduced a multi-section layout for the Firestore plugin editor, enhancing user interaction and configurability.
Added new input fields for document operations, improving guidance for users during data management tasks.

Bug Fixes

Adjusted CSS for dynamic input fields to improve responsiveness and integration with existing styles.

/build-deploy-preview skip-tests=true

/build-deploy-preview skip-tests=true

/build-deploy-preview skip-tests=true


chore(package): update eslint-plugin-standard to version 3.0.1

Closes #36
https://greenkeeper.io/

Coverage remained the same at 93.382% when pulling 112f22551a586687b9a7c867963701635e589225 on greenkeeper/eslint-plugin-standard-3.0.1 into 8e640d0948c312d99b8c70ec60c4275043d17ecb on master.


Implement ReadMany for CheckRequiredFieldsMissingFromShape

Issue #, if available: #890
Description of changes:

Adds checkRequiredFieldsMissingFromShapeReadMany to check.go to handle ReadMany operations without a corresponding ReadOne.
The new method will require resource identifier field should there exist an identifier or identifierS field in the ReadMany operation.

Eventually newListRequestPayload will use this identifier field to populate its request in order to guarantee the ReadMany operation returns the desired resource.
ex: DescribeVpcs has a VpcIds field. Therefore, Vpc shape should require VpcId, which is part of its status field.

Updated tests and templates

Testing:

make test ✅
make build-controller  ✅

func (rm *resourceManager) sdkFind(
	ctx context.Context,
	r *resource,
) (latest *resource, err error) {
	rlog := ackrtlog.FromContext(ctx)
	exit := rlog.Trace("rm.sdkFind")
	defer exit(err)
	// If any required fields in the input shape are missing, AWS resource is
	// not created yet. Return NotFound here to indicate to callers that the
	// resource isn't yet created.
	if rm.requiredFieldsMissingFromReadManyInput(r) {
		return nil, ackerr.NotFound
	}

	input, err := rm.newListRequestPayload(r)

...

// requiredFieldsMissingFromReadManyInput returns true if there are any fields
// for the ReadMany Input shape that are required but not present in the
// resource's Spec or Status
func (rm *resourceManager) requiredFieldsMissingFromReadManyInput(
	r *resource,
) bool {
	return r.ko.Status.VPCID == nil

}

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

/lgtm


feat: support provider network mirror protocol with pull-through cache

This PR is the second (and better) iteration for a pull-through cache of providers queried via the provider mirror protocol. The first iteration is here: #22 .
It should also address issue #142 :)
The PR is currently in draft mode, as the implementation is not ready yet. I'll update this message with more information later.

@oliviermichaelis the image you build in your branch is missing the CGO_ENABLED=0 in the Dockerfile.  Whilst the container ghcr.io/oliviermichaelis/boring-registry:0.12.0-rc1 wont start complaining about missing  GLIBC_2.32,
GLIBC_2.34.

Hi @odise, you're right! I didn't rebase my branch on the latest main commit. Not sure if I'll have the time until this evening to do this :/

@odise I just pushed a new container image with a binary built without CGO
https://github.com/users/oliviermichaelis/packages/container/package/boring-registry

I just pushed rc3: https://github.com/users/oliviermichaelis/packages/container/boring-registry/130840306?tag=0.12.0-rc3

I pushed a rc4 container image: https://github.com/oliviermichaelis/boring-registry/pkgs/container/boring-registry/131340401?tag=0.12.0-rc4

@oliviermichaelis We run rc4 build in our EKS cluster now and it works with S3 mirror backend. Haven't tested GCS.

@oliviermichaelis any plans to release this feature soon?

I definitely plan on releasing this as soon as it's ready, just need to do some more testing and maybe write some more tests as well :)
Also, I'll have to review the "API" of the feature as well:

Check the naming of the CLI flags
Do we want to give users the ability to disable the pull-through cache, so only providing the possibility to serve already mirrored providers?
Whether to enable the mirror/pull-through-cache by default or not. If we let people enable/disable the pull-through-cache, it would be sane to enable the mirror by default while leaving the pull-through-cache disabled. The pull-through-cache could potentially be used quite maliciously if left unsecured to the internet (being able to upload arbitrary binaries to the storage backend and re-distributing them for example)

@oliviermichaelis Any progress on that one?

@odise I'm sorry to have to tell you that since my last post I was on vacation and out sick for the rest of the time :/
I'm still planning to get this merged soon! I'm sorry for letting you hanging here

@odise could you do me a favor and check whether there is anything missing in this README?
I just pushed 0.12.0-rc5. Make sure to enable the pull-through cache with --network-mirror-pull-through=true when upgrading :)

Readme looks good to me.


Error regarding model call

Hello, I have installed biorefineries, biosteam and thermosteam with code pip install . and git clone. However, when I call the following code, I will encounter the following error. May I ask you how to solve it?
I use git clone https://github.com/BioSTEAMDevelopmentGroup/Bioindustrial-Park.git, git clone https://github.com/BioSTEAMDevelopmentGroup/biosteam.git and git clone https://github.com/BioSTEAMDevelopmentGroup/thermosteam.git, and cd Bioindustrial-Park folder, use pip install ., cd biosteam folder, use pip install ., cd thermosteam folder, use pip install . to install biorefineries, biosteam and thermosteam.
The code is as follows:
from biorefineries import cellulosic
import biosteam as bst
from biosteam import settings
from biorefineries.tea import create_cellulosic_ethanol_tea
from biosteam.report import voc_table
bst.nbtutorial()
cs = cellulosic.Biorefinery('corn stover ethanol')
cs.cornstover_sys.diagram(format='png')
tea=create_cellulosic_ethanol_tea(cs.cornstover_sys)
cs.cornstover_sys.save_report('cornstover.xlsx')

The error information is as follows:
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
File D:\anaconda\envs\zddd\lib\site-packages\biorefineries\cellulosic\biorefinery.py:32, in Biorefinery.chemicals(self)
     31 try:
---> 32     chemicals = self._chemicals
     33 except AttributeError:

AttributeError: 'Biorefinery' object has no attribute '_chemicals'

During handling of the above exception, another exception occurred:

AttributeError                            Traceback (most recent call last)
Cell In[1], line 7
      5 from biosteam.report import voc_table
      6 bst.nbtutorial()
----> 7 cs = cellulosic.Biorefinery('corn stover ethanol')
      8 cs.cornstover_sys.diagram(format='png')
      9 tea=create_cellulosic_ethanol_tea(cs.cornstover_sys)

File D:\anaconda\envs\zddd\lib\site-packages\biorefineries\cellulosic\biorefinery.py:53, in Biorefinery.__new__(cls, name, cache, chemicals, include_blowdown_recycle, feedstock_kwargs, prices, GWP_CFs)
     51 self.flowsheet = bst.Flowsheet(name)
     52 F.set_flowsheet(self.flowsheet)
---> 53 bst.settings.set_thermo(self.chemicals)
     54 load_process_settings()
     55 sys = self.sys = create_cellulosic_ethanol_system(
     56     include_blowdown_recycle=include_blowdown_recycle
     57 )

File D:\anaconda\envs\zddd\lib\site-packages\biorefineries\cellulosic\biorefinery.py:34, in Biorefinery.chemicals(self)
     32     chemicals = self._chemicals
     33 except AttributeError:
---> 34     self._chemicals = chemicals = create_cellulosic_ethanol_chemicals()
     35 return chemicals

File D:\anaconda\envs\zddd\lib\site-packages\thermosteam\utils\decorators\chemical_cache.py:19, in chemical_cache.<locals>.h(cache, *args, **kwargs)
     17     caching = Chemical.cache
     18     Chemical.cache = True
---> 19     value = g(*args, **kwargs)
     20     Chemical.cache = caching
     21 else:

File D:\anaconda\envs\zddd\lib\site-packages\biorefineries\cellulosic\chemicals.py:124, in create_cellulosic_ethanol_chemicals()
    122 @chemical_cache
    123 def create_cellulosic_ethanol_chemicals():
--> 124     from biorefineries import cane
    125     chems = tmo.Chemicals([])
    126     oilcane_chemicals = cane.create_oilcane_chemicals()

File D:\anaconda\envs\zddd\lib\site-packages\biorefineries\cane\__init__.py:13
     11 from . import evaluation
     12 from . import results
---> 13 from . import contour_plots
     14 from . import feature_mockups
     15 from . import uncertainty_plots

File D:\anaconda\envs\zddd\lib\site-packages\biorefineries\cane\contour_plots.py:85
     69 CABBI_colors = (colors.CABBI_yellow.tint(75).RGBn,
     70                 colors.CABBI_yellow.tint(30).RGBn,
     71                 colors.CABBI_yellow.RGBn,
     72                 colors.CABBI_green.tint(5).RGBn,
     73                 colors.CABBI_teal_green.shade(40).RGBn,
     74                 colors.CABBI_teal_green.shade(60).RGBn)
     76 CABBI_colors_x = (colors.CABBI_blue_light.tint(90).RGBn,
     77                   colors.CABBI_blue_light.tint(40).RGBn,
     78                   colors.CABBI_blue_light.RGBn,
   (...)
     81                   colors.CABBI_teal_green.tint(40).shade(15).RGBn,
     82                   colors.CABBI_teal_green.shade(45).RGBn)
     84 diverging_colormaps = [
---> 85     plt.cm.get_cmap('RdYlGn')
     86 ]
     88 colormaps = [
     89     plt.cm.get_cmap('viridis'),
     90     plt.cm.get_cmap('copper_r'),
   (...)
     95     plt.cm.get_cmap('bone_r'),
     96 ] * 2
     98 light_letter_color = colors.neutral.tint(98).RGBn

AttributeError: module 'matplotlib.cm' has no attribute 'get_cmap'

@zasddsgg, thanks for posting this issue!
Recently matplotlib restructured their imports. Yesterday I made updates to the bioindustrial-park and fixed this issue. Could you try updating your local bioindustrial-park, biosteam, and thermosteam again?
Updating should take care of the error... Note that the code lines in the repo are different (since just yesterday):
https://github.com/BioSTEAMDevelopmentGroup/Bioindustrial-Park/blob/4a24069177b3b8b8de738b7622710b3fc8d17367/biorefineries/oilcane/_contour_plots.py#L68-L81

I re-used git clone to download the latest Bioindustrial-Park, biosteam and thermosteam. After installation, when the code ran to cs.cornstover_sys.save_report('cornstover.xlsx'), The following errors are also reported,
FileNotFoundError                         Traceback (most recent call last)
File D:\anaconda\envs\zddd\lib\site-packages\biosteam\_system.py:3346, in System.save_report(self, file, dpi, **stream_properties)
   3345 worksheet = writer.book.create_sheet('Flowsheet')
-> 3346 flowsheet = openpyxl.drawing.image.Image('flowsheet.png')
   3347 worksheet.add_image(flowsheet, anchor='A1')

File D:\anaconda\envs\zddd\lib\site-packages\openpyxl\drawing\image.py:32, in Image.__init__(self, img)
     31 mark_to_close = isinstance(img, str)
---> 32 image = _import_image(img)
     33 self.width, self.height = image.size

File D:\anaconda\envs\zddd\lib\site-packages\openpyxl\drawing\image.py:16, in _import_image(img)
     15 if not isinstance(img, PILImage.Image):
---> 16     img = PILImage.open(img)
     18 return img

File D:\anaconda\envs\zddd\lib\site-packages\PIL\Image.py:3277, in open(fp, mode, formats)
   3276 if filename:
-> 3277     fp = builtins.open(filename, "rb")
   3278     exclusive_fp = True

FileNotFoundError: [Errno 2] No such file or directory: 'D:\\biosteam_study\\flowsheet.png'

During handling of the above exception, another exception occurred:

AttributeError                            Traceback (most recent call last)
Cell In[1], line 10
      8 cs.cornstover_sys.diagram(format='png')
      9 tea=create_cellulosic_ethanol_tea(cs.cornstover_sys)
---> 10 cs.cornstover_sys.save_report('cornstover.xlsx') # 想更新excel的话，这句要加的
     11 print(tea._DPI(tea.installed_equipment_cost)/1000000)
     12 print(tea._TDC(tea._DPI(tea.installed_equipment_cost))/1000000)

File D:\anaconda\envs\zddd\lib\site-packages\biosteam\_system.py:3359, in System.save_report(self, file, dpi, **stream_properties)
   3356         except:
   3357             warn("problem in saving flowsheet; please submit issue to BioSTEAM with"
   3358                  "your current version of openpyxl and xlsx writer", RuntimeWarning)
-> 3359         worksheet.insert_image('A1', 'flowsheet.png')
   3360     diagram_completed = True
   3362 tea = self.TEA

AttributeError: 'Worksheet' object has no attribute 'insert_image'

Besides, after running the code cs.cornstover_sys.diagram(format='png'), there is no diagram appears.

If I only use cd Bioindustrial-Park, pip install . to install. Is it OK (this process seems to automatically install biosteam and thermosteam)? Or do I have to go through the cd biosteam, pip install . , cd thermosteam, pip install .  after cd Bioindustrial-Park, pip install . to reinstall biosteam and thermosteam?

@zasddsgg, did you get a new computer or reset your old one? Please follow these steps to install graphviz on your computer: https://forum.graphviz.org/t/new-simplified-installation-procedure-on-windows/224#format-svg-not-recognized-use-one-of
You may need to add graphviz to your system path as well.
If the problem persists, run the following and send me the traceback:
>>> from biosteam import preferences
>>> preferences.raise_exception = True
>>> from biorefineries import cornstover as cs
>>> cs.cornstover_sys.diagram(format='png')

Thanks,

I got it. The problem has been solved.
For installation by git clone , could I consult you If I only use cd Bioindustrial-Park, pip install . to install. Is it OK (this process seems to automatically install biosteam and thermosteam)? Or do I have to use the cd biosteam, pip install . , cd thermosteam, pip install . after cd Bioindustrial-Park, pip install . to reinstall biosteam and thermosteam?
In my process, do I need to set preferences.raise_exception = True.
Thanks for your help again.


use std::round in choose

Submission Checklist

[X] Run unit tests: ./runTests.py test/unit
[X] Run cpplint: make cpplint
[X] Declare copyright holder and open-source license: see below

Summary:
Use std:round in choose rather than the pre-C++11 rounding
Intended Effect:
Possibly prevent incorrect rounding. Fixes #652
How to Verify:
There is no verifiably wrong behavior currently, but the unit test continues to pass.
Side Effects:
None
Documentation:
None
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Trustees of Columbia University
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

@bgoodri, for future pull requests, mind changing [ X] to [X]? That leverages GitHub's features and renders the checklist as done. Makes it just that much easier to grok for the reviewer.

Jenkins, retest this please.

cholesky decompose test failed... Jenkins, retest this please.


Fix Illustrated Message styling

Closes #6039
chromatic link

all the changes in chromatic are to be expected with this update
✅ Pull Request Checklist:

[ ] Included link to corresponding React Spectrum GitHub Issue.
[ ] Added/updated unit tests and storybook for this change (for new code or code which already has tests).
[ ] Filled out test instructions.
[ ] Updated documentation (if it already exists for this component).
[ ] Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

Where'd the values come from?
It doesn't quite look the same to me, but maybe I'm looking in the wrong place. Can't remember how to change color versions in XD

Where'd the values come from? It doesn't quite look the same to me, but maybe I'm looking in the wrong place. Can't remember how to change color versions in XD

Good catch, I'll open a separate PR for the colors


Cover SessionSRTP with basic tests

Add basic read/write/close testing
Relates to #28

Codecov Report

Merging #34 into master will increase coverage by 17.37%.
The diff coverage is 0%.

@@             Coverage Diff             @@
##           master      #34       +/-   ##
===========================================
+ Coverage   33.33%   50.71%   +17.37%
===========================================
  Files          10       10
  Lines         561      562        +1
===========================================
+ Hits          187      285       +98
+ Misses        348      228      -120
- Partials       26       49       +23

Impacted Files
Coverage Δ

session_srtp.go
56.41% <0%> (+56.41%)
:arrow_up:

session_srtcp.go
0% <0%> (ø)
:arrow_up:

stream_srtp.go
41.5% <0%> (+41.5%)
:arrow_up:

session.go
59.25% <0%> (+59.25%)
:arrow_up:

Continue to review full report at Codecov.

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

Ok I feel pretty good about this coverage! When this lands I will take another look at easy wins, but hard to tell with all the churn atm.


Is the MongoDB structure different between versions and between master and development?

Is the MongoDB structure different between versions and between master and development?
I am having problems because I am now using an up to date version of quokka but my DB is older because I dont want to lose my content. Specifically, I think the way you are putting users in the DB is different now. I would like to update those types of changes, but keeping my content as I have a lot of posts. How do I achieve this? Lastly, how do I populate now that manage.py has been phased out, if I dont use docker? Thanks.

@eurabilis the structure might be changed, only with changes packed by 3rd part extensions such as Flask-Security.
Just run $ manage populate manage.py file has been replaces with manage a command line tool.

@Rocha Bruno thanks. I figured the command out but it took a while I kept getting links to the old reference. So what's the best way to update only the changed schemas, leaving my content and users etc. I have been messing with Jon files and importing but I don't know the language so I'm using a validator. Is their a better way than to update like this manually?  Thanks

Closing this as my question was answered.


Don't use LruCache

Is your feature request related to a problem? Please describe.
We have a dependency which

uses the Java 9 module system
has dependencies to junit framework and engine

LruCache is in the module org.junit.platform.commons.util, which is not exported, which then causes issues (the class def is not found)
Describe the solution you'd like
Not use the LruCache (maybe an own implementation instead? It basically just overwrites LinkedHashMap.removeEldestEntry)
Describe alternatives you've considered
-
AJTS-Version you are using
1.3.2

Yes, I can change that, of course. I thought it would be a good idea to avoid having yet another LRU implementation, but this is a problem, of course (it would also be one for #10). I will this that today.


XIVALEXANDER EVEN WORKING ATM?

I'm on console, and the thing just ain't working anymore. Keep getting errors while loading. Like "ffxiv has to be in same directory". "incorrect header".
ANYONE can confirm the app is having issues since this patch?

Wrong repository, but yes, it is working.
https://github.com/Soreepeong/XivMitmLatencyMitigator
Follow the new instructions to get it working again and if you run into any problems you can probably look in "Issues" for a solution.

Wrong repository, but yes, it is working. https://github.com/Soreepeong/XivMitmLatencyMitigator
Follow the new instructions to get it working again and if you run into any problems you can probably look in "Issues" for a solution.

"Copy ffxiv.exe from your local Windows/Mac game installation into the VM"
Wait what? So I need to download and install FFXIV entirely on PC now to get it working on console? Do I have that right?

Yes, you need the "ffxiv.exe" to get it working again because of the changes SE did in 6.15.
You can download the free trial to get it, or maybe ask a friend for it.

"Copy ffxiv.exe from your local Windows/Mac game installation into the VM."
I  have no idea how to even do this. Does it mean copy it and put it inside the VM folder? Very confused about that.

Yep, getting a file copied into there seems to be extremely troublesome..I wonder how many people are just not able to figure it out.

The download is failing in arch linux for some inexplicable reason because i can get the file via opening browser on HFS. Gotta love this shit..

download fails on Arch linux. Got it done on Ubuntu, but then curl/Soreepeong,etc is still giving no permission lol


add Dockerfile for C#

Installs:
-- mono
-- libgrpc from jessie backports
-- C# native extension from deb package downloaded from github
Tested with greeter and routeguide.

Sweet!!

Good comments, thanks. PTAL.

PTAL.


id love to see a kawpow miner for what ive personally seen its more profitable then eth

No, ETH is more profitable at the moment (before any hardforks), and ETC is almost as profitable as RVN. You can mine Ravencoin (KawPow) with https://github.com/UnamSanctam/SilentXMRMiner though I might add it into this one as well, problem is that I would have to remake a lot of things.

also how do i fully get rid of the silent miner i ran the thing to test it and i run the un installer it works but when i restart my pc its back mining ? its not an issue just annoying to have to run uninstaller every time i  turn it on

When you run the installer everything should be gone. If you run the miner as administrator, can you find the miner entry inside
then Task Scheduler?

thx


Editing an album title with single quotes

If I set an album title to something like My home - '05 to '07 and then try to edit it, the text from the second single quote will not be displayed in the edit box. It will only show My home - '05 to .

 Thanks for letting me know.

Fixed in Lychee v3.0


Clean up GitHub issues references in xrefs

Currently, there are three prefixes introduced throughout TO TO_GIT (430 occurrences), GIT_TO (3 occurrences), and OBO_S2F_TO (1 occurrence). All of these seem to correspond to GitHub issues. I think there are two steps that would be good for normalizing these:

Replace these prefixes with full URLs like https://github.com/Planteome/plant-trait-ontology/issues/. For example,
Switch these from xrefs to rdf:seeAlso relationships

I will send a PR to demonstrate. For example,
xref: TO_GIT:54

becomes
property_value: seeAlso https://github.com/Planteome/plant-trait-ontology/issues/54

I have cleaned up the TO_GIT xrefs (and corrected the 3 that were entered incorrectly). There are 455 xrefs to the GitHub issue trackers. I removed the old xrefs to the SF tracker since that information has been transferred to the GitHub Issue trackers now.  I tested the suggested change from the  TO_GIT xref to the property_value: seeAlso https://github.com/Planteome/plant-trait-ontology/issues/54.  The URL does not show up on our AmiGO browser, so it does not create a link to the associated issue.
You can see this here: https://dev.planteome.org/amigo/term/TO:0000017
The existing xrefs work fine and allow users and curators easy access to the associated history of the terms.


Include small example codes for various functions and classes

Hi!
I was wondering if it might be a good idea to include minor example codes for various classes and functions in terra (and other elements). For example, in the schedule_circuit docs, it is not immediately apparent to me what schedule_config is. Including an example code would help the user get a fair idea of the usage of the function.
I feel this would make the docs more accessible to the general audience as someone who doesn't have much familiarity with programming.

In general we do like to have such examples.  e.g. see:
https://qiskit.org/documentation/stubs/qiskit.circuit.QuantumCircuit.html#qiskit.circuit.QuantumCircuit
https://qiskit.org/documentation/stubs/qiskit.visualization.plot_histogram.html#qiskit.visualization.plot_histogram
however it is up to the author of the code in question to add them as it is not a strict requirement for accepting a PR.

@nonhermitian Thanks a lot! Is it alright to make PRs to include examples for such functions as I described in the OP?

Sure, go for it!