How to get the chosen file path on createFile

Hi,
I use the lib for having a save dialog. I use it like this:
    final fileInfo = await FilePickerWritable().openFileForCreate(
      fileName: fileName,
      writer: (file) async {
        await file.writeAsBytes(data.buffer.asUint8List());
        fileX = file;
      },
    );

    filePath = fileInfo.identifier;

Afterwards I want to get the chosen path. I am trying with fileInfo.identifier, but this gives only a content uri, not the path (like content://com.android.externalstorage.documents/document/primary%3ADownload%2Fmy_file_name.png, the user chose.
Is there a way to return the chosen directory or convert the content uri into it?

No, because there is no such thing. The "file" is saved in a content provider, not in the file system. https://developer.android.com/reference/android/content/Intent#ACTION_CREATE_DOCUMENT
You wouldn't be able to do anything with the "path" anyway, because every app on android (and iOS) is sandboxed and has a different file system view.


Need for a stable branch/tag

Hi,
As mentioned in my reports, on both master and 0.2.0 I get the error below.
There is an issue just for that.
This issue is to target a stable tag/branch, because currently, I have nothing to start.
3 days ago, I was able to start it, but since than I could not longer do it.
failed: [default] => {"changed": true, "cmd": "docker run --rm -e ZK_AUTH=super:+Nt5e/wmF5gt4tN04SB/syZnqam10nNjoTHL1m+d4bt5 -e ZNODE=/mesos -e ZNODE_ACL=world:anyone:r,digest:mesos:J+OaGBhZLLsFv0iG/Dpj4HWXTyI=:cdraw -e ZK_SERVER=zookeeper.service.consul:2181 --entrypoint /usr/local/bin/setacl.sh asteris/zookeeper:latest", "delta": "0:00:02.203213", "end": "2015-05-20 12:55:39.430565", "rc": 1, "start": "2015-05-20 12:55:37.227352", "warnings": []}
stderr: Exception in thread "main" org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /mesos
at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:783)
at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:695)
at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:588)
at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:360)
at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:323)
at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:282)
stdout: Connecting to zookeeper.service.consul:2181
2015-05-20 12:55:38,220 [myid:] - INFO  [main:Environment@100] - Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
2015-05-20 12:55:38,226 [myid:] - INFO  [main:Environment@100] - Client environment:host.name=6d36177c1ccf
2015-05-20 12:55:38,226 [myid:] - INFO  [main:Environment@100] - Client environment:java.version=1.7.0_75
2015-05-20 12:55:38,234 [myid:] - INFO  [main:Environment@100] - Client environment:java.vendor=Oracle Corporation
2015-05-20 12:55:38,234 [myid:] - INFO  [main:Environment@100] - Client environment:java.home=/usr/lib/jvm/java-1.7-openjdk/jre
2015-05-20 12:55:38,234 [myid:] - INFO  [main:Environment@100] - Client environment:java.class.path=/opt/zookeeper/bin/../build/classes:/opt/zookeeper/bin/../build/lib/.jar:/opt/zookeeper/bin/../lib/slf4j-log4j12-1.6.1.jar:/opt/zookeeper/bin/../lib/slf4j-api-1.6.1.jar:/opt/zookeeper/bin/../lib/netty-3.7.0.Final.jar:/opt/zookeeper/bin/../lib/log4j-1.2.16.jar:/opt/zookeeper/bin/../lib/jline-0.9.94.jar:/opt/zookeeper/bin/../zookeeper-3.4.6.jar:/opt/zookeeper/bin/../src/java/lib/.jar:/opt/zookeeper/bin/../conf:
2015-05-20 12:55:38,235 [myid:] - INFO  [main:Environment@100] - Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
2015-05-20 12:55:38,235 [myid:] - INFO  [main:Environment@100] - Client environment:java.io.tmpdir=/tmp
2015-05-20 12:55:38,235 [myid:] - INFO  [main:Environment@100] - Client environment:java.compiler=
2015-05-20 12:55:38,235 [myid:] - INFO  [main:Environment@100] - Client environment:os.name=Linux
2015-05-20 12:55:38,235 [myid:] - INFO  [main:Environment@100] - Client environment:os.arch=amd64
2015-05-20 12:55:38,235 [myid:] - INFO  [main:Environment@100] - Client environment:os.version=3.10.0-229.1.2.el7.x86_64
2015-05-20 12:55:38,235 [myid:] - INFO  [main:Environment@100] - Client environment:user.name=root
2015-05-20 12:55:38,235 [myid:] - INFO  [main:Environment@100] - Client environment:user.home=/root
2015-05-20 12:55:38,236 [myid:] - INFO  [main:Environment@100] - Client environment:user.dir=/opt/zookeeper
2015-05-20 12:55:38,237 [myid:] - INFO  [main:ZooKeeper@438] - Initiating client connection, connectString=zookeeper.service.consul:2181 sessionTimeout=30000 watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@636aa365

Try pulling the fix/gh-254 branch and running vagrant up. It removes external dependencies when starting a vagrant instance

Running fix/gh-254 raises the issue:
https://github.com/CiscoCloud/microservices-infrastructure/issues/279


Adding videos to chapters

This PR adds a video to each chapter with a video associated with it. I understand if people are against this.

I think it's a great idea. Synergy!

Cool. I think most people are generally in favour of the idea, so I'll force merge it later (unless someone wants to approve it first)


The procedure entry point PssQuerySnapshot could not be located in the dynamic link library KERNEL32.dll.

I can run Instaloader 4.10 and earlier versions on Windows 7.
However, Instaloader 4.11, starting with 4.11rc1, will not run on Windows 7 and will instead immediately quit with the error message
The procedure entry point PssQuerySnapshot could not be located in the dynamic link library KERNEL32.dll.
because the Windows 7 version of kernel32.dll does not include the function PssQuerySnapshot(), which was added in Windows 8.1.
I am curious as to what 4.11 doing different that it needs PssQuerySnapshot() when earlier versions did not.
Is there any possible workaround or patch for this PssQuerySnapshot() issue on Windows 7? It's a shame because Instaloader has been working on Win7 for so many years, and then 4.11's use of PssQuerySnapshot() makes the program flat out un-runnable.

Windows 7 is obsolete since 2020, so updated software may not work any longer.
Beginning with instaloader 4.11, the target build environment is python 3.12 (before it was 3.8).
Python 3.8 is the last version which works on Windows 7. Python 3.9 requires at least Windows 8 (also obsolete)
The following workaround can currently be used:

install python 3.8
use pip to install instaloader (see manual)
or
download the source release of instaloader 4.11, extract and use it with python instaloader.py


WebVR build not recognizing Firefox as xrenabled browser, also cant serve locally

Unity version : 2019.2.2
WebVR export from assetstore
node.js: current LTS
Hello, im trying to build simple example from WebVR export but ran into two bugs :

Unity build and run starts local static server and content is shown properly but it doesnt recognize my firefox browser as vr enabled.
trying to serve locally by http-server in node.js starts local server but after entering localhost page Firefox throws error : content cannot be displayed or its broken.

I cant get any answears anywhere about this.

I think I'm having the same issue. I'm using 2019.3.10f1. Directions for enabling VR are for 2017 which is outdated now. I'm not getting any firefox errors though when I run and I'm also serving through node.js.

Did you run it as HTTP or HTTPS?
HTTP will use Polyfill and might not work on systems that supports only WebXR.
HTTPS will use WebXR if enabled.
If you use node.js http-server, you should call it with -S.
http-server -S
I usually also disable the cache, so something like:
http-server -c-1 -S

Just tried running with https and same issue. I'm wondering about the build settings. In 2019.3 there is no option to enable VR in player settings. Its all handled in XR Plug-in Management, but I don't see any XR plugins available for WebGL platform.  Packages I have installed are XR Plugin Management 3.2.7, XR Legacy Input Helpers 2.1.3, XR Interaction Toolkit 0.9.4, XR Interaction Subsystems 1.0.1 and OpenVR Desktop 2.0.5 plus other standard ones. Am I missing something? Perhaps I should be using different version packages or older version of Unity?


[openssl] [aws-c-common] Fix AWS SDK for C++ build on WASM32

Describe the pull request
1- Use correct make command to build OpenSSL.
2- Exclude -moutline-atomics from WASM32 builds of AWS C Common library.

What does your PR fix?
Fixes building OpenSSL and AWS C Common on WASM32 required by AWS SDK for C++

Which triplets are supported/not supported? Have you updated the CI baseline?
WASM32

Does your PR follow the maintainer guide?

Yes

If you are still working on the PR, open it as a Draft: https://github.blog/2019-02-14-introducing-draft-pull-requests/

Depends on https://github.com/microsoft/vcpkg/pull/17492

/azp run

Some of these regressions are not related to your changes.

Thanks @ahmedyarub :)


HSEARCH-4748 Use UUID for outbox-polling agent IDs

https://hibernate.atlassian.net/browse/HSEARCH-4748
not much to add 😃

@marko-bekhta I think this needs to be rebased on main and updated? In particular, you probably need to make the ID JDBC type configurable...

It has mapping.agent.preferred_uuid_jdbc_type but you are correct, it probably would be best to wait for https://github.com/hibernate/hibernate-search/pull/3343 to get in and then rebase this one 😃


remove gulp-shell

https://github.com/google/material-design-lite/blob/master/gulpfile.js#L601 should be replaced with node's built-in child_process module. gulp.src('').pipe(plugin()) is a really nasty pattern that emerged when people started making plugins for things that shouldn't be plugins. gulp.src('') will start to error in the final 4.0 release to discourage people from doing this

As a sidenote, gulp-shell is useful but only when you need to use template string that are based on the file-name and commands that run per-file. I'll ask them to add that to the README

It's entirely my fault for letting this pattern land. Agree we should be just using child_process here. We'll get this fixed up. Thanks for catching this, @contra!

No problem, just want to make sure the google gulpfiles are in good shape because people use them for reference all the time.

Any feedback regarding the gulpfile is welcome, @contra! Thank you. I plan to do a complete overhaul because it’s become quite organic and convoluted (inefficient, even).

I can review some of the other ones when I catch a spare minute and send some PRs as well.

:+1:

@surma If you have any questions feel free to ping me on gulp issues, IRC, or twitter whenever

Closing this as we are moving away from gulp in v2 and there hasn't been much activity on this issue in the past year. If someone would like to contribute the change to the mdl-1.x branch we can reopen it.


MSE 305 2023 Review

I got a clean noto environment, so the technical aspects should apply for all students
Technical aspects

the CSS bug happens inconsitently when using the hide input mode, but rerunning it always has fixed it for me
(mentioned also here for refactor https://github.com/agoscinski/scicode-widgets-unofficial/issues/26)
slider tapping bug does not happen for me
configuration notebook does not exist, removed the reference
updated requirement.txt, I tried it with a clean conda env and it worked
fix for: answer button is disabled when saving fails

Content of notebooks
00-Getting_started.ipynb

see git diff in jupyterlab, minor changes, tried to make things a bit more clear

Pytohn_recap.ipynb

the math library is part of the standard library, coining it "external library" is a bit misleading, since it comes with the python installation unlike other packages. removed the external part.
removed note on manually setting variables, since its too complicated for a beginner tutorial

I merged but I'm leaving the branch open in case you want to continue the review


Improve the README.md file with more relevant information

Add the following topics:

Queues utilization
Usage benefits
"Protocol" details (client <-> server)

Info added to a new repo: https://github.com/porthos-rpc/porthos-spec


fix(animationFrame.spec): spec description fix

This test is not related to delay but the effect of unsubscribe on the resulting Subscription.

Coverage remained the same at 97.079% when pulling 0cb2ef83c600ad680fc36ba84940004d1879b39e on gsans:patch-2 into<PHONE_NUMBER>01a1f9a784dcde1905f700dacffe0a on ReactiveX:master.


Create Containerfiles

Create the containerfiles for the database, for the environment where the model will be executed and a general for the back-end, back-office and front-office

Database -> PostgreSQL
Back-end (controlador) -> Quarkus
Back-office -> Quarkus
Front-office -> Quarkus
AI model -> MessiScript (Python)

Related to the PostgreSQL:
Some Docker's Volume's command :
sudo docker volume ls
sudo docker volume inspect [volume]
sudo docker volume create db-data-vol
sudo docker create --name db-psql postgres
sudo docker ps -a
The place where the Data Base's volume will be.
${PWD}/SKJ005-Vets_And_Shelters/sql/db-volume
To create the container and the volume on the proyect's DB folder.
sudo docker run
--name db-psql
-e POSTGRES_USER=user
-e POSTGRES_PASSWORD=patata
-e PGDATA=/var/lib/postgresql/data/pgdata
-v ${PWD}/SKJ005-Vets_And_Shelters/sql/db-volume:/var/lib/postgresql/data
-p 5432:5432
-it postgres
Important: Choose a good user and password.
To connect:
psql -h localhost -P 5432 -U user
Sources:

Info related to the connection to the PSQL-DB: https://stackoverflow.com/questions/37694987/connecting-to-postgresql-in-a-docker-container-from-outside
Some Docker-related commands: https://www.commandprompt.com/education/how-to-create-a-postgresql-database-in-docker/
More Docker-related commands: https://earthly.dev/blog/postgres-docker/


Update v0.6.2.rst

pvlib python pull request guidelines
Thank you for your contribution to pvlib python! You may delete all of these instructions except for the list below.
You may submit a pull request with your code at any stage of completion.
The following items must be addressed before the code can be merged. Please don't hesitate to ask for help if you're unsure of how to accomplish any of the items below:

[ ] Closes issue #xxxx
[ ] I am familiar with the contributing guidelines.
[ ] Fully tested. Added and/or modified tests to ensure correct behavior for all reasonable inputs. Tests (usually) must pass on the TravisCI and Appveyor testing services.
[ ] Updates entries to docs/sphinx/source/api.rst for API changes.
[ ] Adds description and name entries in the appropriate docs/sphinx/source/whatsnew file for all changes.
[ ] Code quality and style is sufficient. Passes LGTM and SticklerCI checks.
[ ] New code is fully documented. Includes sphinx/numpydoc compliant docstrings and comments in the code where necessary.
[ ] Pull request is nearly complete and ready for detailed review.

Brief description of the problem and proposed solution (if not already fully described in the issue linked to above):

@tahentx Thanks for the contribution.  Its cleaner if you could move the edit from #692 into this PR #693, or I can merge both #693 and #692.  I sympathize completely with the GitHub learning curve :)


feat: create api to make the frontend communicate with the backend more easy

Create api methods for backend functions like get Table by name.
Would be great to have some caching (see #85 )

closed by #93


test travis

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@ddd5c73). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #162   +/-   ##
=========================================
  Coverage          ?   91.77%
=========================================
  Files             ?       13
  Lines             ?      523
  Branches          ?       90
=========================================
  Hits              ?      480
  Misses            ?       43
  Partials          ?        0

Impacted Files
Coverage Δ

index.js
75% <ø> (ø)

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 ddd5c73...ae554f2. Read the comment docs.


Roll Plugins from 5306c02db66b to ffe53ec2f135 (1 revision)

https://github.com/flutter/plugins/compare/5306c02db66b...ffe53ec2f135
2021-08-31<EMAIL_ADDRESS>[flutter_plugin_tool] Move branch-switching logic from tool_runner.sh to tool (flutter/plugins#4268)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-plugins-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


"$" copies when pressing "copy"

Describe the bug
"$" copies when pressing "copy"  in "synth/docs/docs/getting_started/hello-world.md"
To Reproduce
Steps to reproduce the behavior:
Press copy in https://getsynth.github.io/synth/getting_started/hello-world
"$" copies as well as string
Expected behavior
String should be copied and "$" should be omitted

Thanks for this @dilipsabherwal !
Good point. I think there are a few more places in the docs where this is the case. I'll get on it ASAP.

Fixed in latest commit. Thanks again @dilipsabherwal !


Fix link to custom webpack config docs

https://goo.gl/qPbSyX currently points at https://github.com/kadirahq/react-storybook/blob/master/docs/configure_storybook.md#custom-webpack-configurations which is a 404.
You may want to re-apply your url shortener to this.

I think the full URL is fine.


[Device support] IKEA STARKVIND

Please use the template and fill in all the data requested below!
Describe the bug
I've installed the latest zigbee2mqtt release 1.22.1 and with this release the IKEA STARKVIND Air Purifier is fully supported and can fully controlled within zigbee2mqtt.
https://www.zigbee2mqtt.io/devices/E2007.html#ikea-e2007
It is is not possible to switch the Air Purifier on or off or change the fan mode as only the Air Quality information is displayed in Homebridge
Related devices
https://www.zigbee2mqtt.io/devices/E2007.html#ikea-e2007
To Reproduce
Add device to zigbee2mqtt and try to control the device via Homebridge
Expected behavior
My expectation was to get at least two Homebridge Devices. One for the Air Purifier and one for the Air Quality but Homebridge shows only the Air Quality Sensor. Therefore it is is not possible to switch the Air Purifier on or off or change the fan mode.
MQTT messages
If possible (and applicable), please provide the following:
Versions used
Please provide the version of the following pieces of software:

Plugin version: v1.6.1
Homebridge: 1.3.8
Homebridge Config UI X: v4.41.3

This is not a bug. Fans are not supported at the moment. Even on the page for this device it only shows the Air Quality Sensor.
I do wonder if the PM10 is correct though. I thought it had a PM2.5 sensor.
Based on the issue template for Device support, please provide the following:

device model (also known as exposes information) for this particular device, as published to zigbee2mqtt/bridge/devices by Zigbee2MQTT.
describe the features/functionality of this device that are currently not exposed to HomeKit via this plugin.

For each of the missing features, please mention to which HomeKit Services and Characteristics it should be mapped.
The Homebridge Plugin Development documentation provides a nice overview of the standard HomeKit services and characteristics.
Note that some manufacturers also use custom services and characteristics (the Elgato Eve products for instance), which could also be mimicked if they have been reverse engineered.

page for this device

I am a bit confused about your answer. What do you exactly mean with Fans are not supported a the moment?
Not supported through this plugin?
My current understanding from this plugin is that all devices listed here https://zigbee.blakadder.com and marked with zigbee2mqtt should be available through this plugin here.
Please correct me if this expectation and common understanding is wrong?
The current zigbee2mqtt integration fully supports all functionalities which the IKEA STARKVIND offers. The full integration is described here: https://www.zigbee2mqtt.io/devices/E2007.html#ikea-e2007
I observed that it is currently not possible to activate and deactivate the device and also not to control the fan with this plugin. But with FHEM in the background and appropriate homebridge mappings i am able to nearly fully control the STARKVIND except the Child Lock. But i can switch on and off the device and i change the fan speed with Apple Home App.
I used the following Homekit services and characteristics
Homekit Service: Air Purifier
Active
Current Air Purifier State
Target Air Purifier State
Rotation Speed
Homekit Service: AirQualitySensor
Air Quality
The IKEA STARKVIND provides PM2.5 density
Hope that helps in a first step?

Not all devices that are supported by Zigbee2MQTT, are supported homebridge-z2m.
That site only shows compatibility with Zigbee2MQTT.
Can you also add the exposes info for the device?

Generated exposes info:
[
  {
    "type": "fan",
    "features": [
      {
        "type": "binary",
        "name": "state",
        "property": "fan_state",
        "access": 7,
        "value_on": "ON",
        "value_off": "OFF",
        "description": "On/off state of this fan"
      },
      {
        "type": "enum",
        "name": "mode",
        "property": "fan_mode",
        "access": 7,
        "values": [
          "off",
          "auto",
          "1",
          "2",
          "3",
          "4",
          "5",
          "6",
          "7",
          "8",
          "9"
        ],
        "description": "Mode of this fan"
      }
    ]
  },
  {
    "type": "numeric",
    "name": "fan_speed",
    "property": "fan_speed",
    "access": 5,
    "value_min": 0,
    "value_max": 9,
    "description": "Current fan speed"
  },
  {
    "type": "numeric",
    "name": "pm25",
    "property": "pm25",
    "access": 5,
    "unit": "µg/m³",
    "description": "Measured PM2.5 (particulate matter) concentration"
  },
  {
    "type": "enum",
    "name": "air_quality",
    "property": "air_quality",
    "access": 5,
    "values": [
      "excellent",
      "good",
      "moderate",
      "poor",
      "unhealthy",
      "hazardous",
      "out_of_range",
      "unknown"
    ],
    "description": "Measured air quality"
  },
  {
    "type": "binary",
    "name": "led_enable",
    "property": "led_enable",
    "access": 7,
    "value_on": true,
    "value_off": false,
    "description": "Enabled LED"
  },
  {
    "type": "binary",
    "name": "child_lock",
    "property": "child_lock",
    "access": 7,
    "value_on": "LOCK",
    "value_off": "UNLOCK",
    "description": "Enables/disables physical input on the device"
  },
  {
    "type": "binary",
    "name": "replace_filter",
    "property": "replace_filter",
    "access": 5,
    "value_on": true,
    "value_off": false,
    "description": "Filter is older than 6 months and needs replacing"
  },
  {
    "type": "numeric",
    "name": "linkquality",
    "property": "linkquality",
    "access": 1,
    "unit": "lqi",
    "description": "Link quality (signal strength)",
    "value_min": 0,
    "value_max": 255
  }
]

Looking at the exposes information, there's no way to "see" that this is an air purifier. It exposes itself as a fan.
Unfortunately the fan_modes are slightly different than other fans supported by Zigbee2MQTT, but I guess I can work around that.

replace_filter can be exposed as a Filter Maintenance service.

Is it anyone gonna look trough this?

Is it anyone gonna look trough this?

Not sure what you mean. I look through the open issues when I have time to see if there's stuff I can do with the time I think I have available. Unfortunately I don't have that much spare time on my hands currently (still need to earn a living and spend time with my family).
Main reason I reopened this one is to keep all information on one location.

Is it anyone gonna look trough this?

Not sure what you mean. I look through the open issues when I have time to see if there's stuff I can do with the time I think I have available. Unfortunately I don't have that much spare time on my hands currently (still need to earn a living and spend time with my family).
Main reason I reopened this one is to keep all information on one location.

I totally get what you mean, I just wanted to understand if it makes sense to keep it open or there are no chances of developing the integration further

Came here looking for this as well. Is there any way to keep "feature request" issues open, to make it easier to find them?

Came here looking for this as well. Is there any way to keep "feature request" issues open, to make it easier to find them?
I tried to implement it myself but it's very hard and the documentation it's pretty complicated to grasp. I would love to have the full support, because as right now it's just sitting there being barely used

I would also be interested in being able to address the other properties via homebridge-z2m.
Maybe someone can take pity on it again and realize full support for homebridge.


External Source Code: Integrate Coremark as a module

Origin
Coremark, by the Embedded Microprocessor Benchmark Consortium:
https://github.com/eembc/coremark
Purpose
Coremark is an industry standard for CPU benchmarking.
Mode of integration
Would be integrated as a module, upstream already contains the zephyr/ folder so I just suggest forking the coremark repo into the Zephyr GH org.
Maintainership
@volodymyr-bondarchuk
@carlescufi
Pull Request
https://github.com/zephyrproject-rtos/zephyr/pull/55461
Description
The Coremark library is very useful to those wanted to evaluate the performance and energy efficiency of a particular SoC. It allows users to compare different silicon vendors using the same standardized benchmark.
Goals: Benchmarking of MCUs without the hassle of porting the benchmarking software, using Zephyr's portability.
Coremark is the industry standard, it's maintained by a non-profit consortium and is small in code size and complexity.
Dependencies
None
Revision
d5fad6bd094899101a4e5fd53af7298160ced6ab
License
There is an Acceptable User Agreement, that covers the Coremark trademark, but it clearly states that "Licensor offers benchmarking software (“Software”) pursuant to an open source license".
All source  code is provided under the Apache v2 license.
Apache-2.0

PR #55461 with Coremark bring up created.

Similar attempt, but as a standalone application: https://github.com/claziss/coremark-pro-zephyr/tree/main

Note that that's for a subset of CoreMark-PRO, that's not the same as the base CoreMark.

Removed the TSC label until we decide how to proceed with this internally at Nordic.


Performance on output 4K video(Only about 10FPS)

Dose GenericFrameRecorder Use Multi thread when Output 4K Mp4 file?
When I upgrade My computer device config:
Window10 64 bit
Intel Core i9-7900 @ 3.30GHZ
525GB ssd
Gtx 1080 ti 11GB
The Recorder process always output about 10fps (My scene just contains just One character)
When Look up Profiler window
I find that Texture2D.ReadPixels(); always about 50ms when I want to get 4K video.Or can we move this Texture2D.ReadPixels() into MultiThread?
Is there any way to promote the process of output 4K videos?
Thanks Very much.

public static void fcLock(RenderTexture src, TextureFormat dstfmt, Action<byte[], fcPixelFormat> body)
{
var tex = new Texture2D(src.width, src.height, dstfmt, false);
RenderTexture.active = src;
tex.ReadPixels(new Rect(0, 0, tex.width, tex.height), 0, 0, false);
tex.Apply();
body(tex.GetRawTextureData(), fcGetPixelFormat(tex.format));
UnityEngine.Object.Destroy(tex);
}
In the Profiler I found that the bottleneck of GenericFrameRecorder is ReadPixels (about 50ms - 60ms).

4K video recording is inevitably slow.


Remove moment from dependencies

We should probably also move the moment adapter to be in an external repo, but this is a good first step

Should we upgrade the version used in devDependency?

I don't think it's necessary to upgrade the version in devDependency because it's prefixed with ^ it will choose the newest version automatically and the version specified is just a minimum acceptable version. If anything maybe we should lower the version number, but I didn't particularly want to mess with it in case there is some reason the current version specified really is the minimum acceptable version


Temp Breadcrumbs for v2

IMPORTANT:

In this PR, Breadcrumbs is USING IMPORTS FROM CANARY & VIEWS, so ideally we should not have it in V2
Later, the Breadcrumbs component need to be replaced with the new component that the PP team provides.
Right now, it is being included here as a TEMP solution until we get the new Breadcrumb component

With this PR, Breadcrumbs shall only work for V2 routes.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Fix GC credentials issue for GKE tests

GKE and GKE-LETSENCRYPT-CI test are failing with this credential error:
ERROR: (gcloud.container.clusters.delete) There was a problem refreshing your current auth tokens: ('invalid_grant: Invalid grant: account not found', ***'error': 'invalid_grant', 'error_description': 'Invalid grant: account not found'***)
Please run:

  $ gcloud auth login

to obtain new credentials.

If you have already logged in with a different account:

    $ gcloud config set account ACCOUNT

to select an already authenticated account to use.
Error: Process completed with exit code 1.

We need to fix it to allow test run normally.

I recently had to create a service principal account for another project and I used the this Github Action https://github.com/rancher/fleet/blob/master/.github/workflows/gke.yml#L45L48

See also #1714

Normally @mmartin24 fixed this earlier today

The issue was fixed creating a new Service Account and VPC and later updating credentials on Epinio repo. This will prevent that credentials are associated to people and instead accessible to SUSE users with access to Google Cloud within ei-container-eco
Credits to @olblak   for showing this process summarized here:
Create Service account on GC:

Enter GC here: https://console.cloud.google.com/welcome?project=ei-container-eco&authuser=1. Ensure you are in ei-container-eco
Go to IAM Admin > Service Accounts and created new service acount epinio-ci and create a new Key as well
With that key update EPCI_GCP_CREDENTIALS in Actions secrets/Update secret in epinio repo
Back in GC change tabs to IAM and give the following roles to epinio-ci: Kubernetes Engine Admin, Kubernetes Engine Cluster Admin, Service Account User

Create a new VPC:

In GC go to VPC and create a new vpc epinio-ci with the following config:

epinio-ci
Description: Network used by Epinio to run some tests
Subnet creation mode: Auto subnets
Dynamic routing mode: Regional
VPC network ULA internal IPv6 range: Disabled
DNS server policy: None
Maximum transmission unit: 1460

Updating GKE and GKE-letsencrypt scripts on Epinio
Once the above was done added new network variables  to gke.yaml and gke-letsencrypt.yaml done here:
https://github.com/epinio/epinio/pull/1718/files
Results:
GKE passing: https://github.com/epinio/epinio/actions/runs/2993305935
GKE-LETSENCRYPT passing: https://github.com/epinio/epinio/actions/runs/2993461641

@olblak, please feel free to add anything if I missed any point and thanks again for your help here.

See also #1714

Thanks @andreas-kupries . I already commented there and checked the corresponding one of the 2 task there as completed.
Closing now this issue.


error TS2611: 'message' is defined as a property in class 'BaseError', but is overridden here in 'ValidationError' as an accessor.

Getting the following error during build step:
node_modules/rulr/dist/errors/ValidationError.d.ts:11:9 - error TS2611: 'message' is defined as a property in class 'BaseError', but is overridden here in 'ValidationError' as an accessor.

11     get message(): string;
           ~~~~~~~

Found 1 error.

:tada: This issue has been resolved in version 8.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


#time-left not recognized in 25 + 5 clock React certification

Describe the Issue
I still haven't finished the project at all, I'm working on Visual Studio Code using the bundle JS provided for testing the code and I found out that it doesn't pass the 8th test:
"User Story #8: I can see an element with corresponding id="time-left". NOTE: Paused or running, the value in this field should always be displayed in mm:ss format (i.e. 25:00)."
For my #time-left and timer in general I use a node package called react-circular-progressbar for design purposes.
My #time-left goes inside the circular progressbar for better UX
Since I can't assign an id directly using the node package I had to do it myself. The ID is presented after the files are compiled
Affected Page
https://www.freecodecamp.org/learn/front-end-development-libraries/front-end-development-libraries-projects/build-a-25--5-clock
Your code
HTML after compiling looks like this:
<text class="CircularProgressbar-text" x="50" y="50" id="time-left" style="fill: rgb(250, 250, 250); font-size: 24px;">25:00</text>
Here is my custom assignment to the element displaying the text in my Timer.tsx
    useLayoutEffect(() => {         console.log("inner html set");         const text = document.querySelector(".CircularProgressbar-text");         console.log(text);         if (!text) return;         text.setAttribute("id", "time-left");     },[]);
Using useEffect() instead has no changes
If you wish to view my full (Very WIP) code it can be found here
https://github.com/Emeryx/Pomodoro
Expected behavior
I expected to pass the 8th user story because an element with the ID "time-left" exists and displays the time in a format of mm:ss
Screenshots

System

Device: [e.g. iPhone 6, Laptop]
OS: [e.g. iOS 14, Windows 10, Ubuntu 20.04]
Browser: [e.g. Chrome, Safari]
Version: [e.g. 22]

Additional context
The error to the test is as follows:
Bad time string undefined Error: Bad time string undefined     at l (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:581:167664)     at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:581:171401     at p (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:581:94539)     at Generator.<anonymous> (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:581:95876)     at Generator.next (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:581:94902)     at r (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:1:1169)     at s (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:1:1380)     at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:1:1439     at new Promise (<anonymous>)     at n.<anonymous> (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:1:1320)

I just discovered that adding innerText to the element presented me with a different error
time-left is not formatted correctly: expected '01' to equal '25' AssertionError: time-left is not formatted correctly: expected '01' to equal '25'     at Proxy.h (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:531:2123)     at Proxy.u (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:407:130)     at n.strictEqual (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:556:655)     at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:581:171389     at p (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:581:94539)     at Generator.<anonymous> (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:581:95876)     at Generator.next (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:581:94902)     at r (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:1:1169)     at s (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:1:1380)     at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:1:1439
Which is a logic issue and I can continue doing my project, Problem solved!


Reflect xDS version as a TextReadout stats.

Commit Message:
Add SubscriptionStats::version_text field with text representation of the xDS version.
Change TextReadout::set method to take absl::string_view value instead of std::string&& value to work as expected with read-only values.
Signed-off-by: Misha Efimov<EMAIL_ADDRESS>Risk Level: Low
Testing: Updated test/common/config/*_subscription_impl_test.cc
Docs Changes: TBD
Fixes #10736 #5790
@htuch @jmarantz

/wait

Sorry can you merge master? I think Circle is wedged and I don't know how to restart it.
/wait


Show distribution of absolute gradient as extra tab in slope distributions

Find a way to specify result card template and multiple plots in result, e.g. by adding extra layer for tabs in result dict (+option for template).

Is the display of the absolute gradient still relevant for the slope distribution, @pastewka ?
I seem to recall that it's not.

This also seems to be superseded by #844


Class 'Shorten\Shorten' not found

I have got an error after using the Shorten class:

FatalErrorException in routes.php line 1824:
Class 'Shorten\Shorten' not found

I'm getting the same error.

As am I.


Set MathML of \boldsymbol{textord} to bold, not bold-italic

Revise MathML in a way that aligns with the HTML in PR #2290.

Codecov Report

Merging #2299 into master will decrease coverage by 6.13%.
The diff coverage is 80.00%.

@@            Coverage Diff             @@
##           master    #2299      +/-   ##
==========================================
- Coverage   94.77%   88.64%   -6.14%
==========================================
  Files          83       84       +1
  Lines        5360     5363       +3
  Branches      940      940
==========================================
- Hits         5080     4754     -326
- Misses        257      538     +281
- Partials       23       71      +48

Flag
Coverage Δ

#screenshotter
?

#test
88.64% <80.00%> (+<0.01%)
:arrow_up:

Impacted Files
Coverage Δ

src/Parser.js
95.71% <ø> (-1.15%)
:arrow_down:

src/svgGeometry.js
61.29% <ø> (-29.04%)
:arrow_down:

src/unicodeAccents.js
0.00% <0.00%> (ø)

src/wide-character.js
72.22% <ø> (ø)

src/delimiter.js
67.84% <40.00%> (-19.48%)
:arrow_down:

src/buildHTML.js
95.17% <86.66%> (-0.58%)
:arrow_down:

src/buildCommon.js
93.90% <100.00%> (-4.19%)
:arrow_down:

src/buildMathML.js
94.44% <100.00%> (-4.63%)
:arrow_down:

src/environments/array.js
79.31% <100.00%> (-19.13%)
:arrow_down:

src/macros.js
93.27% <100.00%> (-3.92%)
:arrow_down:

... and 33 more

Continue to review full report at Codecov.

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


Support darwin platform on Makefile.

Fixes / Features

Support darwin platform on Makefile.

Testing / Documentation
Testing details.

[ y/n ] Tests pass
[ y/n ] Appropriate changes to documentation are included in the PR

Could you please add simple test with with darwin to github if possible?


Photo uploader needed

It would be great if we would have a photouploader in forms like dropzone.js (http://www.dropzonejs.com) or jquery file upload (https://blueimp.github.io/jQuery-File-Upload/). From the look more like the first one.

Dropbox.js seems templatable and  comes with an MIT licence. Any takers?

See #362. I understand this functionality would be nice. But as is, dropzone is already very nicely styled and it has 63kb of js which is a lot of weight to add.


Adding Genelengths type

Like described in #23, several normalization methods will be added to the plugin.
The FPKM and TPM methods both need information about the gene lengths.
This information can be extracted from the artifacts with type CARDAlleleAnnotation and CARDGeneAnnotation.
To ensure that feature tables from other sources can be normalized with these methods, a new type called Genelength has to be introduced.
The type will include one TSV file with two columns: One with the gene names and one with the corresponding gene lengths.
Additionally a transformer has to be introduced that converts CARDAlleleAnnotation and CARDGeneAnnotation to Genelength.

GeneLength will be added to q2-types as SequenceCharacteristics


[Question] Best practise for saving resource and its to-many relations

I would like to ask for advice on how to save a large form which includes a resource and also a to-many relation of this resource. I'm currently working with a recursive function that checks for changes on all (nested) resources and then patches, creates or deletes them (relationships first and then the parent resource).
In general, it works fine. The problem occurs when changing many of the relationships which results in having a lot of requests at the same time when saving. Because Chrome and other browsers only accept 6 requests at a time, this can lead to problems.
Are there any best practices? I don't wont to patch changes incrementally until the user hits the save button.
I'm looking forward to any advice. Thanks in advance!

Yeah it's a good question but it's more a frontend issue than a backend issue.
I specialise in Ember JS on the frontend and this kind of thing is pretty trivial with an excellent package called Ember Concurrency. It effectively allows you to manage asynchronous tasks in the frontend in a really intuitive way, including sequentially structuring asynchronous processes. It's a work of magic, worth checking out the docs even if you're not an Ember developer:
http://ember-concurrency.com/docs/introduction/
If you use Ember, I'd strongly recommend using that - it's one of my favourite things about Ember.
But if you don't then maybe there's other people out there who can suggest managing asynchronous processes in other frontend frameworks? For example I don't know what the equivalent is (if there even is an equivalent) in Vue.js as I don't use Vue.
Ultimately the solution for your scenario is to sequence the promises... i.e. when submit is hit, make some initial saves then once they complete successfully move on to the relationships etc.
Would be interested to hear what you come up with!

@lindyhopchris  I'm faced with the same problem and having given this some thought I think it's actually more of a backend issue.
We have a user submitting a survey about a place which has 20 questions.  Our resource is a survey-response which in sql  comprises a survey response parent and many question-answer relations.
If the frontend has to submit one post to create the response followed by 20 other posts for each of the question answers, apart from 20 calls being a bit silly,  it's possible one of them will fail and we will end up with an incomplete result set.
To safely ensure an atomic transaction, we need to submit a single survey response object that can be wrapped in a transaction ensuring that if one fails everything fails.
Dealing with that situation on the frontend is way too complicated, the client can't be - nor should it be responsible for rolling back a load of transactions if one of them failed to commit.
I've slept on this - only for 4 hours, but have concluded that a custom controller is the only way to go in this situation.  As far as the client is concerned the resource should be a complete survey response with all answers.
So that's my reasoning for thinking it's a backend issue caused by normalisation of the data, we end up with efficient storage tables but more complex models that don't necessarily map to our requirements.

@cannycookie good to hear your use case. it's not that this is a frontend or backend issue - it will totally depend on the use case which implementation is appropriate. In your case, the large number of questions to be saved definitely means a backend solution is more appropriate. We find that in our use cases it's totally fine to handle it in the frontend client, but as you point out this won't be the case for every implementation. We do have one use case however where we solved it via the backend as it was more appropriate in that case.
hopefully the operations stuff will get added to the JSON API spec... I'm not sure though as it seems to have been in the pipeline for ages now.

Thanks for responding @lindyhopchris.  In case anyone has the same issue, this was my solution for a backend controller to handle a multi-relational create.  Don't know if i could incorporate validation in the API to tidy it up a bit, but it works as expected.
Request data:-
{
  "data": {
    "type": "submissions",
    "attributes": {
      "places_id": "Fhs27HIBbEGBG1_d4FKw",
      "answers": [
        {
          "questions_id": "1",
          "question_options_id": "1",
          "response_text": "some users reply"
        },
        {
          "questions_id": "2",
          "question_options_id": "5"
        }
      ]
    }
  }
}

    /**
     * Create resource action.
     *
     * @param StoreInterface $store
     * @param CreateResource $request
     * @return Response
     */
    public function create(StoreInterface $store, CreateResource $request)
    {

        DB::beginTransaction();

        try{
            $data = $request->all()['data']['attributes'];
            $data['users_id']=Auth::id();

            if($submission = Submission::create($data))
            {
                //validate each item in the answers array
                $validator = Validator::make($data,[
                    'answers.*.questions_id' => 'required|numeric|exists:questions,id',
                    'answers.*.question_options_id' => 'required|numeric|exists:question_options,id',
                    'answers.*.response_text' =>'nullable'
                ]);

                if ($validator->fails())
                {
                    return $validator->errors();
                }

                $submission->answers()->createMany($data['answers']);
            }

        } catch (\Exception $e)
        {
            DB::rollback();
            throw $e;
        }

        DB::commit();

        return response()->json([
            'message' => __('submission.created'),
            'submission'      => $submission
        ], \Illuminate\Http\Response::HTTP_CREATED);

    }


[Agent] fix the remote port is incorrect

Coverage increased (+0.005%) to 22.95% when pulling 10d55860dbb4a4c6fec20d54c1a61382bc681481 on ascrutae:fix/url-port-issue into 8399452ec8be54eb07cc2046a9dcc244d058dcf0 on apache:master.


Clean up dependencies.props

Prereq for https://github.com/aspnet/Universe/issues/476.

@prafullbhosale I'll check this in to unblock version changes. We can follow up tomorrow with any PR comments or concerns.


Enabled helpful NullPointerException if jdk >= 14

I tested the following in Windows and using wsl for linux. Maybe this would prove useful once in a blue moon.

A much simpler alternative is to just throw this new option in the Ghidra.launch file.  -XX:+IgnoreUnrecognizedVMOptions is already defined there so you don't have to worry about checking a Java version.  Also, this feature would be much more important to developers, and they are most likely running out of Eclipse anyway.

A much simpler alternative is to just throw this new option in the Ghidra.launch file.  -XX:+IgnoreUnrecognizedVMOptions is already defined there so you don't have to worry about checking a Java version.  Also, this feature would be much more important to developers, and they are most likely running out of Eclipse anyway.

I see.  I will most likely take that approach. I am unfamiliar with the Java vm options and didn't know there's a convenient option to ignore unrecognized ones.
The reason I decided to submit this is because it can prove helpful to developers when incomplete issues are submitted. There have been times where issues have been submitted with the template left unmodified and the only additions being a stack trace and something along the lines of "ghidra broke". I am assuming these are due to a language barrier which only so much can be done about. In the event of a NullPointerException if the user is using a jdk > 14 the dev team will at least be able to know what variable was null without the daunting task of reproducing it without having enough information.

I do think it's a cool feature and will add value to the stack traces.  I was just offering a simpler alternative to make the PR a "no-brainer" to accept.  Modifying those launch scripts requires careful testing on all 3 platforms.  -XX:+IgnoreUnrecognizedVMOptions and the new property could also be added to launch.properties directly as yet another alternative.

This has been turned on by default in Java 15 and up.


Block-local variable hides imported function.

Do you want to request a feature or report a bug?
bug

What is the current behavior?
An imported function cannot be referenced if there is a variable with the same name in the file.
(block-scope seems not respected)
If the current behavior is a bug, please provide the steps to reproduce.
I put the example code to https://github.com/babatakao/webpack-import-test.
This example can be executed by the following steps:
git clone git@github.com:babatakao/webpack-import-test.git
cd webpack-import-test
npm i
npm run build
node dist/main.js

What is the expected behavior?
1 should be shown in the console.
actual behavior:
An error occurs:
    console.log(foo());
            ^
ReferenceError: foo is not defined

remarks:
It works well if the "foo" variable in the second "if" block is renamed like:
diff --git a/main.js b/main.js
index 23f3360..e441e48 100644
--- a/main.js
+++ b/main.js
@@ -7,7 +7,7 @@ function main() {
   }
   if (true) {
     // This "foo" is a block-local variable. Should not affect to the first "if" block.
-    const foo = 2;
+    const foo1 = 2;
   }
 }

If this is a feature request, what is motivation or use case for changing the behavior?
Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.
node: v9.2.0
webpack: 4.1.1

Thanks for your report. I'm closing this issue in favor of #6773.


minimal tracking controller for centroidal plans

Needs further testing, but this is the first PR to track plans generated with centroidal mpc

This change is

LGTM (I can't actually approve)


Error displaying chop count in jade (minecraft 1.19.2)

When I start chopping the tree, the counter is shown as screenshot below

Here is the jade error output that showed the error in jade
JadeErrorOutput.txt

Thanks, it'll be fixed in the next version

Fixed in 0.18.5


FIX: notebook 3d backend

This PR fixes an issue with the notebook 3d backend where the interactions do not trigger an update until a particular slider is used.

It's ready to go on my end.

Thanks @GuillaumeFavelier


Support for more than 2 themes

Feature Request
Currently theme editor offers 2 themes ( Light/Dark ) which basically overrides the System defined light and dark themes.
But what if another optional feature can be added to it, where the developer can basically generate a List of themes? Each theme with exactly the same editing features as dark and light but developer can create multiple flavors of their app, considering they dont have a fixed branding and they want the user to select theme according to their liking.
How it will work is that after the editor finishes generating and exporting themes, all of those themes can be put into app.xaml and then in settings of the user they can toggle between all those themes, this toggle functionality will be developed by the user obviously, theme editor cn maybe provide a helper class for switching between the themes i.e : ThemeSwitcher.
Windows Template Studio already has a theme switcher in setting which toggles between Light , Dark and Windows Default. following same method other themes can also be added to the list.
Tricky Part
the min tricky part I noticed which might occur in this feature is that windows 10 has just 2 built in themes ( light/dark), so how will we include other themes to follow the same pattren of theme switching? I have a rough solution to that :
When the app is switched to light or dark, the app will look into respective resources present in app.xaml ( generated by theme editor ) and apply them to the system light or dark themes respectively. What we need to do in ThemeSwitcher is map other themes to light and dark. For-Example I have total 4 themes

Light (default )
Dark ( default )
Neon ( custom name by developer ) ( will be mapped to light theme )
Slate ( custom name by developer ) ( will be mapped to dark theme )

now when the user selects Neon the ThemeSwitcher will take the Neon Resources and apply them to Light Theme and then change the ApplicationTheme to Light. And when Slate is selected its resources will be applied to Dark Theme and then App theme will be switched to Dark.
This is still just a rough idea, so I thought I should put it out there and make it open for discussion maybe with the community and see what they think about it? Apart from the open choice of themes, it will have another major benefit : above OCT 2018 update theme editor supports localized theme ( different theme at different parts of the app ) and if we have more than 2 themes it will just give a lot more flexibility to the developer on how they want to design the app.

we can always limit the number of themes the editor can generate at one time so that editor app itself remains fast or if too much resources in app.xaml has consequences or for any other reason possible. but for complexity sake it doesnt effect the process because, if we re able to create more than 2 themes then technically we should be able to toggle between infinite amount of themes.

Thanks for reading

The ThemeResources that control the usage of the colour themes generated by this tool, use the built in Light and Dark themes.  If you wanted to override both light and dark with a custom theme you would need to "inject" the XAML into the App.xaml file as both Light and Dark.  At that point you will need some kind of helper or boilerplate code for the app its child windows, and the settings screen implementation.
It may be beyond the scope of this project, and might be worth suggesting to the Community Toolkit project.

@mdtauk  yeah it might be tricky, that is wht I want to discuss it first here and see what the maintainer think and whether it is doable in this repo.

Did you get a chance to check out the Windows Developer Blog post on this editor?
I describe there how you would add one of these exported themes to your app. In doing so you would create a separate ResourceDictionary page and merge that dictionary into an app scope like so:
<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="NeonTheme.xaml"/>
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>

Then you can call Application.Current.MergedDictionaries (which is an IList) and handle it like any other collection. Clear, add, etc. and your ResourceDictionary's source could be re-targeted (through a URI) to whatever theme you'd like.
Does this sound at all what you're looking for?

so when I re-target it through c# code, the theme can be changed at runtime?

also @kikisaints it would b great if we can have the details of blog on the ReadMe of this repo as well, that will help developers explore all features of the editor :)

Great proposal.
I really need it, but neither Community Toolkit nor Theme Editor provides a simple case. where should I go to keep up-to-date with this feature?

Great proposal.
I really need it, but neither Community Toolkit nor Theme Editor provides a simple case. where should I go to keep up-to-date with this feature?

It's not too difficult to do - although resources are originally hooked up to our dark and light themes, you can break out of that and create your own themes to switch between.
An example of how to set up your own theme can be found in the ReadMe of this repo.
However, if you'd like a cleaner/more interactive sample of how to do this, feel free to log an issue over on our Xaml Controls Gallery app and we'll see how we can get an example out to you for easy usage.

so when I re-target it through c# code, the theme can be changed at runtime?

This was not answered. Can anyone give clarity about this?


[Table] Support for "columnCheckboxWidth"

I would force the table to display the checkbox column as narrowly as possible; it only needs to house the checkbox so why should it take up more space? If you can think of a good use case where you want to have a variable width on the checkbox column then we can keep the PR as is. If not, I would suggest we modify the PR to force a specific width and remove the property.

@jkruder I just wanted to make it a little bit more flexible, but I don't have any special case for that. I'll update PR.

Thanks @mkucharz @jkruder


Previous Generations

Is there any way to recover previous generated images. I Searched in multiples places I couldn't find any image. I ask this because I would like to recover prompts from certain images.
Thanks in advance, and thank you for you work.

Found it. sorry for the question.
%AppData%\Adobe\UXP\PluginsStorage\PHSP\25\External\auto.photoshop.stable.diffusion.plugin\PluginData

Found it. sorry for the question.
%AppData%\Adobe\UXP\PluginsStorage\PHSP\25\External\auto.photoshop.stable.diffusion.plugin\PluginData


[QUESTION] websocket How to use the address?None of the following addresses are available！

server.php
    'servers' => [
        [
            'name' => 'http',
            'type' => Server::SERVER_HTTP,
            'host' => '<IP_ADDRESS>',
            'port' => 9501,
            'sock_type' => SWOOLE_SOCK_TCP,
            'callbacks' => [
                SwooleEvent::ON_REQUEST => [Hyperf\HttpServer\Server::class, 'onRequest'],
            ],
        ],
        [
            'name' => 'ws',
            'type' => Server::SERVER_WEBSOCKET,
            'host' => '<IP_ADDRESS>',
            'port' => 9502,
            'sock_type' => SWOOLE_SOCK_TCP,
            'callbacks' => [
                SwooleEvent::ON_HAND_SHAKE => [Hyperf\WebSocketServer\Server::class, 'onHandShake'],
                SwooleEvent::ON_MESSAGE => [Hyperf\WebSocketServer\Server::class, 'onMessage'],
                SwooleEvent::ON_CLOSE => [Hyperf\WebSocketServer\Server::class, 'onClose'],
            ],
        ],
    ],

<?php

declare(strict_types=1);

namespace App\Controller\Ws;

use Hyperf\Contract\OnMessageInterface;
use Hyperf\Contract\OnOpenInterface;
use Hyperf\WebSocketServer\Context;
use Swoole\Http\Request;
use Swoole\Websocket\Frame;
use Swoole\WebSocket\Server as WebSocketServer;
use Hyperf\WebSocketServer\Sender;

namespace App\Controller\Ws;

class UserController implements OnMessageInterface, OnOpenInterface
{

    public function onMessage($server, Frame $frame): void
    {
        $server->push($frame->fd, 'user Recv: ' . $frame->data);
    }

    public function onClose($server, int $fd, int $reactorId): void
    {
        var_dump('user closed');
    }

    public function onOpen($server, Request $request): void
    {
        $server->push($request->fd, 'user Opened');
    }

}

routes.php

Router::addServer('ws', function () {
    Router::get('/user', 'App\Controller\Ws\UserController');
    Router::get('/game', 'App\Controller\Ws\GameController');
});

[root@localhost trunk]# php ./bin/hyperf.php  start
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\Config\Listener\RegisterPropertyHandlerListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\SocketIOServer\Listener\AddRouteListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\RpcClient\Listener\AddConsumerDefinitionListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\Paginator\Listener\PageResolverListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\JsonRpc\Listener\RegisterProtocolListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\ExceptionHandler\Listener\ExceptionHandlerListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\DbConnection\Listener\RegisterConnectionResolverListener listener.
[DEBUG] Event Hyperf\Framework\Event\BeforeMainServerStart handled by Hyperf\Process\Listener\BootProcessListener listener.
[DEBUG] Event Hyperf\Framework\Event\BeforeMainServerStart handled by Hyperf\SocketIOServer\Listener\ServerIdListener listener.
[DEBUG] Event Hyperf\Framework\Event\OnStart handled by Hyperf\Server\Listener\InitProcessTitleListener listener.
[DEBUG] Event Hyperf\Framework\Event\OnManagerStart handled by Hyperf\Server\Listener\InitProcessTitleListener listener.
[INFO] Process[queue.default.0] start.
[DEBUG] Event Hyperf\Process\Event\BeforeProcessHandle handled by Hyperf\Process\Listener\LogBeforeProcessStartListener listener.
[DEBUG] Event Hyperf\Process\Event\BeforeProcessHandle handled by Hyperf\Server\Listener\InitProcessTitleListener listener.
[DEBUG] Event Hyperf\Framework\Event\MainWorkerStart handled by Hyperf\SocketIOServer\Listener\StartSubscriberListener listener.
[INFO] Worker#0 started.
[INFO] WebSocket Server listening at <IP_ADDRESS>:9502
[INFO] HTTP Server listening at <IP_ADDRESS>:9501
[DEBUG] Event Hyperf\Framework\Event\AfterWorkerStart handled by Hyperf\Server\Listener\AfterWorkerStartListener listener.
[DEBUG] Event Hyperf\Framework\Event\AfterWorkerStart handled by Hyperf\WebSocketServer\Listener\InitSenderListener listener.
[DEBUG] Event Hyperf\Framework\Event\AfterWorkerStart handled by Hyperf\Server\Listener\InitProcessTitleListener listener.

client.html

<script>
	var wsServer = 'ws://<IP_ADDRESS>:9502/ws/user';
	//var wsServer = 'ws://<IP_ADDRESS>:9502/';
	//var wsServer = 'ws://<IP_ADDRESS>:9502/user';
	var websocket = new WebSocket(wsServer);
	websocket.onopen = function (evt) {
		console.log("Connected to WebSocket server.");
	};

	websocket.onclose = function (evt) {
		console.log("Disconnected");
	};

	websocket.onmessage = function (evt) {
		console.log('Retrieved data from server: ' + evt.data);
	};

	websocket.onerror = function (evt, e) {
		console.log('Error occured: ' + evt.data);
	};
</script>
console log
test.html:18 WebSocket connection to 'ws://<IP_ADDRESS>:9502/' failed: Error during WebSocket handshake: Unexpected response code: 200
(anonymous) @ test.html:18
test.html:32 Error occured: undefined
test.html:24 Disconnected

'ws://<IP_ADDRESS>:9502/user'

'ws://<IP_ADDRESS>:9502/user'  unable to access

telnet <IP_ADDRESS> 9502

[root@localhost test]# telnet <IP_ADDRESS> 9502
Trying <IP_ADDRESS>...
Connected to <IP_ADDRESS>.
Escape character is '^]'.

swoole

Swoole => enabled
Author => Swoole Team<EMAIL_ADDRESS>Version => 4.5.0
Built => May  8 2020 10:06:21
coroutine => enabled
epoll => enabled
eventfd => enabled
signalfd => enabled
cpu_affinity => enabled
spinlock => enabled
rwlock => enabled
sockets => enabled
openssl => OpenSSL 1.0.2k-fips  26 Jan 2017
http2 => enabled
pcre => enabled
zlib => 1.2.7
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
mysqlnd => enabled
async_redis => enabled

Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => Off => Off
swoole.unixsock_buffer_size => 8388608 => 8388608

PHP 7.2.6 (cli) (built: Oct 27 2018 23:55:18) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

the swoole  demo is ok

$ws = new Swoole\WebSocket\Server("<IP_ADDRESS>", 9508);

$ws->on('open', function ($ws, $request) {
    var_dump($request->fd, $request->get, $request->server);
    $ws->push($request->fd, "hello, welcome\n");
});

$ws->on('message', function ($ws, $frame) {
    echo "Message: {$frame->data}\n";
    $ws->push($frame->fd, "server: {$frame->data}");
});

$ws->on('close', function ($ws, $fd) {
    echo "client-{$fd} is closed\n";
});

$ws->start();

I noticed the following error，I reinstall the dependency。Waiting for results...

[DEBUG] WebSocket: fd[1] start a handshake request.
PHP Fatal error:  Interface 'App\Controller\Ws\OnMessageInterface' not found in /mnt/web/LRSManagerApi/trunk/app/Controller/Ws/UserController.php on line 24

composer.json
{
    "name": "hyperf/hyperf-skeleton",
    "type": "project",
    "keywords": [
        "php",
        "swoole",
        "framework",
        "hyperf",
        "microservice",
        "middleware"
    ],
    "description": "A coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and middlewares.",
    "license": "Apache-2.0",
    "require": {
        "php": ">=7.2",
        "ext-swoole": ">=4.5",
        "hyperf/cache": "~2.0.0",
        "hyperf/command": "~2.0.0",
        "hyperf/config": "~2.0.0",
        "hyperf/db-connection": "~2.0.0",
        "hyperf/framework": "~2.0.0",
        "hyperf/guzzle": "^2.0",
        "hyperf/http-server": "~2.0.0",
        "hyperf/logger": "~2.0.0",
        "hyperf/memory": "~2.0.0",
        "hyperf/process": "~2.0.0",
        "hyperf/redis": "~2.0.0",
        "hyperf/json-rpc": "~2.0.0",
        "hyperf/rpc": "~2.0.0",
        "hyperf/rpc-client": "~2.0.0",
        "hyperf/rpc-server": "~2.0.0",
        "hyperf/constants": "~2.0.0",
        "hyperf/async-queue": "~2.0.0",
        "hyperf/model-cache": "~2.0.0",
        "hyperf/tracer": "~2.0.0",
        "hyperf/validation": "^2.0",
        "hyperf/websocket-server": "^2.0"
    },
    "require-dev": {
        "swoole/ide-helper": "^4.4",
        "phpmd/phpmd": "^2.6",
        "friendsofphp/php-cs-fixer": "^2.14",
        "mockery/mockery": "^1.0",
        "doctrine/common": "^2.9",
        "phpstan/phpstan": "^0.12",
        "hyperf/devtool": "~2.0.0",
        "hyperf/testing": "~2.0.0",
        "filp/whoops": "^2.7"
    },
    "suggest": {
        "ext-openssl": "Required to use HTTPS.",
        "ext-json": "Required to use JSON.",
        "ext-pdo": "Required to use MySQL Client.",
        "ext-pdo_mysql": "Required to use MySQL Client.",
        "ext-redis": "Required to use Redis Client."
    },
    "autoload": {
        "psr-4": {
            "App\\": "app/"
        },
        "files": []
    },
    "autoload-dev": {
        "psr-4": {
            "HyperfTest\\": "./test/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "extra": [],
    "scripts": {
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-autoload-dump": [
            "rm -rf runtime/container"
        ],
        "test": "co-phpunit -c phpunit.xml --colors=always",
        "cs-fix": "php-cs-fixer fix $1",
        "analyse": "phpstan analyse --memory-limit 300M -l 0 -c phpstan.neon ./app ./config",
        "start": "php ./bin/hyperf.php start",
        "init-proxy": "init-proxy.sh"
    }
}

Reinstall the dependency to restart, and the WebSocket request prompts the following error。

[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\Config\Listener\RegisterPropertyHandlerListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\RpcClient\Listener\AddConsumerDefinitionListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\Paginator\Listener\PageResolverListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\JsonRpc\Listener\RegisterProtocolListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\ExceptionHandler\Listener\ExceptionHandlerListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\DbConnection\Listener\RegisterConnectionResolverListener listener.
[DEBUG] Event Hyperf\Framework\Event\BeforeMainServerStart handled by Hyperf\Process\Listener\BootProcessListener listener.
[DEBUG] Event Hyperf\Framework\Event\OnStart handled by Hyperf\Server\Listener\InitProcessTitleListener listener.
[DEBUG] Event Hyperf\Framework\Event\OnManagerStart handled by Hyperf\Server\Listener\InitProcessTitleListener listener.
[INFO] Process[queue.default.0] start.
[DEBUG] Event Hyperf\Process\Event\BeforeProcessHandle handled by Hyperf\Process\Listener\LogBeforeProcessStartListener listener.
[DEBUG] Event Hyperf\Process\Event\BeforeProcessHandle handled by Hyperf\Server\Listener\InitProcessTitleListener listener.
[INFO] Worker#0 started.
[INFO] WebSocket Server listening at <IP_ADDRESS>:9502
[INFO] HTTP Server listening at <IP_ADDRESS>:9501
[DEBUG] Event Hyperf\Framework\Event\AfterWorkerStart handled by Hyperf\Server\Listener\AfterWorkerStartListener listener.
[DEBUG] Event Hyperf\Framework\Event\AfterWorkerStart handled by Hyperf\WebSocketServer\Listener\InitSenderListener listener.
[DEBUG] Event Hyperf\Framework\Event\AfterWorkerStart handled by Hyperf\Server\Listener\InitProcessTitleListener listener.
[DEBUG] WebSocket: fd[1] start a handshake request.
PHP Fatal error:  Interface 'App\Controller\Ws\OnMessageInterface' not found in /mnt/web/LRSManagerApi/trunk/app/Controller/Ws/UserController.php on line 24

Fatal error: Interface 'App\Controller\Ws\OnMessageInterface' not found in /mnt/web/LRSManagerApi/trunk/app/Controller/Ws/UserController.php on line 24
[2020-07-15 12:07:58 *3807.0]   ERROR   php_swoole_server_rshutdown (ERRNO 503): Fatal error: Interface 'App\Controller\Ws\OnMessageInterface' not found in /mnt/web/LRSManagerApi/trunk/app/Controller/Ws/UserController.php on line 24
[2020-07-15 12:07:58 $3805.0]   WARNING swManager_check_exit_status: worker#0[pid=3807] abnormal exit, status=255, signal=0
[INFO] Worker#0 started.
[INFO] WebSocket Server listening at <IP_ADDRESS>:9502
[INFO] HTTP Server listening at <IP_ADDRESS>:9501
[DEBUG] Event Hyperf\Framework\Event\AfterWorkerStart handled by Hyperf\Server\Listener\AfterWorkerStartListener listener.
[DEBUG] Event Hyperf\Framework\Event\AfterWorkerStart handled by Hyperf\WebSocketServer\Listener\InitSenderListener listener.
[DEBUG] Event Hyperf\Framework\Event\AfterWorkerStart handled by Hyperf\Server\Listener\InitProcessTitleListener listener.

I can turn this off. I had two namespaces before。I'm sorry


Don't use SSID name as xml name when connecting on windows

No need to use SSID name as filename.
The problem is, that if the SSID contains a colon the connect process on windows fails.
Tested with Win10

Can you destination branch of your pull request to dev branch please ?

Ok thank you I will merge it this weekend.

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.


[EPIC] [MONITOR-SPEC-PR] SDK Auotmation Failures

Monitor Falures of SDK automtions in PRs of https://github.com/test-repo-billy/azure-rest-api-specs

@jianingwang123 please checkout github notifications, I @ you in some comments that needs your attention.


Solus version? :point_right::point_left:

the getsol.us forums are down so im stranded and the methods don't work :3

Hi @sammypanda

wont fix

Hi @sammypanda
How did it go? Did you get the patch package for souls?

i think i recall getting a patch package but i had some issue and ended up finding another way around

Ok


vue模板渲染问题  Vue template rendering problem

I want to know the Vue render loop template is not the time to remove node, because I have encountered a problem, that is, Vue with rich text editor umeditor if circular data is retrieved from the server while performing initialization umeditor, this time initialization umeditor invalid, but if finished rendering in the initialization

Hello! Please use our forum or Gitter for questions like this. The repo issue list is strictly for bug reports and feature requests, as specified in the contributing guidelines. Thanks.

Yes, I am feeling whether Vue should add similar data to drive an attempt to complete the hook function that can solve all of the above problems。
But I'm still going to put this issue to the community to determine what!
Thank you for answering


Could not find mixer

Hi,
just tried to use the High Strength Generator and received an error with "Could not find mixer". Do you know what causes the issue?
Regards,
Jan
Update: Just noticed, that there are no High Strength mixer shipped by default.

There actually is a mixer available. You have to make sure you have the mcrypt extension and libsodium-dev installed.

I have the same issue with mcrypt installed enable and libsodium-dev installed.


Default examples not working

When attempting to run the default examples, they all fail to compile. I get this error with the light example.
(this is only the last part of the error, as it is too big so i didnt paste it here)
/Users/zhekch/Documents/Arduino/libraries/ESP32_Arduino_Matter/src/esp_matter_attribute_utils.h: In instantiation of 'nullable<T>::nullable(T) [with T = unsigned char]':
/Users/zhekch/Documents/Arduino/libraries/ESP32_Arduino_Matter/src/esp_matter_feature.h:100:88:   required from here
/Users/zhekch/Documents/Arduino/libraries/ESP32_Arduino_Matter/src/esp_matter_attribute_utils.h:184:62: error: 'IsNullValue' is not a member of 'chip::app::NumericAttributeTraits<unsigned char, false>'
/Users/zhekch/Documents/Arduino/libraries/ESP32_Arduino_Matter/src/esp_matter_attribute_utils.h: In instantiation of 'nullable<T>::nullable(T) [with T = short int]':
/Users/zhekch/Documents/Arduino/libraries/ESP32_Arduino_Matter/src/esp_matter_cluster.h:385:106:   required from here
/Users/zhekch/Documents/Arduino/libraries/ESP32_Arduino_Matter/src/esp_matter_attribute_utils.h:184:62: error: 'IsNullValue' is not a member of 'chip::app::NumericAttributeTraits<short int, false>'
/Users/zhekch/Documents/Arduino/libraries/ESP32_Arduino_Matter/src/esp_matter_attribute_utils.h: In instantiation of 'void nullable<T>::operator=(T) [with T = unsigned char]':
/Users/zhekch/Documents/Arduino/libraries/ESP32_Arduino_Matter/examples/Light/Light.ino:73:50:   required from here
/Users/zhekch/Documents/Arduino/libraries/ESP32_Arduino_Matter/src/esp_matter_attribute_utils.h:218:62: error: 'IsNullValue' is not a member of 'chip::app::NumericAttributeTraits<unsigned char, false>'
         if (chip::app::NumericAttributeTraits<T>::IsNullValue(value)) {
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~

exit status 1

Compilation error: exit status 1

Can you send full config? Which board is selected in Arduino IDE? Did you enable C++17 for Arduino IDE?

Here is my board config:

I believe enabling c++ is a windows feature, while im on mac, and what exactly do you mean by a version of a board?

Same issues here, with the same error on the light example (MacOS) as @zhekch
running here:
MacOS 13.5.2 Ventura
Arduino IDE 2.2.1
C++17 enabled
Board: ESP32 Dev Module
Espressif ESP32 boards package: 2.0.11

Managed to get it to compile:
you MUST use the C++17 modification as mentioned in the readme.
I also struggled to get it to compile on my Mac (Ventura 13.6) but C++ is not a windows-only feature :)

@zhekch did you manage to solve this issue? As @WillemJoosten  said, C++ is not a windows-only feature 😊

Got this error on my Mac Book Pro with platformio: 'OnOff' has not been declared
I added to the platform.ini as described in the readme:
build_unflags=-std=gnu++11 build_flags =
It won't recognize these classes

OnOff
attribute_t

plus other names.
Thanks


high-privilege service account in Driver Pods cause attack

About the Service Account for Driver Pods
Use the service account  in driver pod, you can create pod with any spec.
If PodSecurityPolicy or  PodSecurityAdmission is not restricted, attacker can directly create a permission container mount machine shares the host namespace and directly obtains the computing node control permission. Even though PodSecurityPolicy or  PodSecurityAdmission is restricted, may cause number of unrelated  pods created
is there any suggestions for security protection?
is there a way to restrict the creation of pods by user code, or restrict executor pod spec which craete by driver pod

+1


Question about return values from chromedp.Evaluate

Hey there - I have a (hopefully) quick question - I suspect this will reveal some lack of understanding on my part about how chromedp.Evaluate or DevTools (or even JavaScript!) works 😉
I've noticed that when I run:
var res []byte
err := chromedp.Run(ctx, chromedp.Evaluate("var c = {a: 1, b: 2}; c", &res))

I get a value for res that I expect: {"a":1,"b":2}
And when I run things like:
var res1, res2, res3 []byte
err := chromedp.Run(ctx, chromedp.Evaluate("1+2", &res1))
err = chromedp.Run(ctx, chromedp.Evaluate("[1,2,3]", &res2))
err = chromedp.Run(ctx, chromedp.Evaluate("[1,2,{a:1,b:2}]", &res3))

I also get expected values:
res1 == `3`
res2 == `[1,2,3]`
res3 == `[1,2,{"a":1,"b":2}]`

However, when I run:
var res []byte
err := chromedp.Run(ctx, chromedp.Evaluate("{a: 1, b: 2}", &res))

I get an error:
exception "Uncaught" (0:6): SyntaxError: Unexpected token ':'

and when I run
var res []byte
err := chromedp.Run(ctx, chromedp.Evaluate("{a: 1}", &res))

I get no error but:
res == `1`

Is this expected behavior?  I'd love to understand what's happening if anyone knows - and what I should be doing differently to be able to construct and return objects with simple one-lines using chromedp.Evaluate.
Thanks!
What versions are you running?
$ go list -m github.com/chromedp/chromedp
v0.8.8

$ google-chrome --version
Google Chrome 110.0.5481.177

$ go version
1.19.5

Thank you @onsi ! Your questions are always helpful!
It works as expected. See the output from the DevTools console below:

Regarding eval('{a:1}'), I guess that {} is a block statement here. And a: is a labeled statement. So it's equal to eval('1')

ah got it thanks.  i tried playing around with the dev console directly but didn't also include an eval.
and your explanation makes sense!  thanks!


Recipe Crash? I am not a programmer!

Issue Description:
Client Crash upon Clicking the enchanter recipe tab  (recipe tab at the top) for blaze rods in Jei.
It only happens when i click on the Ender IO enchanter recipe tab regarding blaze rods.
What happens:
Client Crashes
What you expected to happen:
Client not to crash when i click a recipe ;)
Steps to reproduce:
1.have blaze rod in inventory
2.press U while hovering on blaze rod
3.click the "enchanter" tab at the top
4.wait for crash report to build.
...

Affected Versions (Do not use "latest"):

EnderIO:1.10.2-<IP_ADDRESS>
EnderCore:1.10.2-<IP_ADDRESS>
Minecraft: 1.10.2
Forge:2185

Your most recent log file where the issue was present:
BOTH of these are the crash reports that i have for BOTH times it crashed, as it stated i must reproduce it.. these are both the reports.
crash-2017-01-27_22.51.37-client.txt
crash-2017-01-27_23.02.08-client.txt

<IP_ADDRESS>? Really?? That version if from (Jul 8, 2016 3:22:52 PM)...


How can I fix this cask?

I created a auWifiConnectForMac.rb file using 'brew cask create'.
And , did ' brew cask install auWifiConnectForMac' .
So , I succeed download file , but I got this error message .
Error: No such file or directory - /opt/homebrew-cask/Caskroom/auwificonnectformac/latest/auWifiConnectForMac.dmg

Could you tell me the way to fix this cask ?
cask :v1 => 'auWifiConnectForMac' do
  sha256 :no_check
  version :latest

  url 'https://service.wi2.ne.jp/sw/auwifi/autoLogin/MacOSX/auWifiConnectForMac.dmg.gz'
  homepage 'http://www.au.kddi.com/mobile/service/smartphone/wifi/wifi-spot/usage/mac/'

  container :nested => 'auWifiConnectForMac.dmg'
  link './au\ Wi-Fi接続ツール.app'
end

Plenty is wrong. You should go read the documentation or at least look at other cask. link, for example, doesn’t exist anymore (and haven’t for a long while). It is also missing required extensions, like license, and the token (the first line, and cask name) is wrong: camel-case isn’t supported, the name should be separated by hyphens.

Plenty is wrong. You should go read the documentation or at least look at other casks. link, for example, doesn’t exist anymore (and haven’t for a long while). It is also missing required extensions, like license, and the token (the first line, and cask name) is wrong: camel-case isn’t supported, the name should be separated by hyphens.
After you look into other casks and the documentation, please come back so we can help with your progress.

thank you.
I read the document again.

For the name and token, read the token reference. For the cask itself, start by looking at other small casks, like abyss and see what you’re missing. Refer to the cask language reference for the lines you don’t understand.
Don’t be afraid to submit a PR for review, where we can discuss line by line. Will close this until then.

I have just finished fixing some problem, and I confirmed that the script work fine in my environment.
I want you to confirm whether may be a Japanese app name.
cask :v1 => 'au-wifi-connect' do
  version :latest
  sha256 :no_check
  url 'https://service.wi2.ne.jp/sw/auwifi/autoLogin/MacOSX/auWifiConnectForMac.dmg.gz'
  homepage 'http://www.au.kddi.com/mobile/service/smartphone/wifi/wifi-spot/usage/mac/'
  license :unknown

  container :nested => 'au-wifi-connect-latest'
  app 'au Wi-Fi接続ツール.app'
end

Good work! It works, but it still needs some fixes before it can be accepted (blank lines are part of it). Care to submit a PR?
cask :v1 => 'au-wifi-connect' do
  version :latest
  sha256 :no_check

  url 'https://service.wi2.ne.jp/sw/auwifi/autoLogin/MacOSX/auWifiConnectForMac.dmg.gz'
  name 'au Wi-Fi接続ツール'
  name 'au Wi-Fi SPOT'
  homepage 'http://www.au.kddi.com/mobile/service/smartphone/wifi/wifi-spot/usage/mac/'
  license :gratis

  container :nested => 'au-wifi-connect-latest'

  app 'au Wi-Fi接続ツール.app'
end

Feel free to ask about any of the changes.

Good work! It works, but it still needs some fixes before it can be accepted (blank lines are part of it). Care to submit a PR?
cask :v1 => 'au-wifi-spot' do
  version :latest
  sha256 :no_check

  url 'https://service.wi2.ne.jp/sw/auwifi/autoLogin/MacOSX/auWifiConnectForMac.dmg.gz'
  name 'au Wi-Fi接続ツール'
  name 'au Wi-Fi connect'
  homepage 'http://www.au.kddi.com/mobile/service/smartphone/wifi/wifi-spot/usage/mac/'
  license :gratis

  container :nested => 'au-wifi-connect-latest'

  app 'au Wi-Fi接続ツール.app'
end

Feel free to ask about any of the changes.

Good work! It works, but it still needs some fixes before it can be accepted (blank lines are part of it). Care to submit a PR?
cask :v1 => 'au-wifi-connect' do
  version :latest
  sha256 :no_check

  # wi2.ne.jp is the official download host per the vendor homepage
  url 'https://service.wi2.ne.jp/sw/auwifi/autoLogin/MacOSX/auWifiConnectForMac.dmg.gz'
  name 'au Wi-Fi接続ツール'
  name 'au Wi-Fi connect'
  homepage 'http://www.au.kddi.com/mobile/service/smartphone/wifi/wifi-spot/usage/mac/'
  license :gratis

  container :nested => 'au-wifi-connect-latest'

  app 'au Wi-Fi接続ツール.app'
end

Feel free to ask about any of the changes.

thank you very much.
wi2.ne.jp is the official download host per the vendor homepage
This issue cannot solve to me , Because the vendor of KDDI provide only link below.
https://service.wi2.ne.jp/sw/auwifi/autoLogin/MacOSX/auWifiConnectForMac.dmg.gz
You can confirm it ,if you access "http://www.au.kddi.com/mobile/service/smartphone/wifi/wifi-spot/usage/mac/'.
OK, I can delete blank line , like this.
cask :v1 => 'au-wifi-connect' do
  version :latest
  sha256 :no_check
  url 'https://service.wi2.ne.jp/sw/auwifi/autoLogin/MacOSX/auWifiConnectForMac.dmg.gz'
  name 'au Wi-Fi接続ツール'
  name 'au Wi-Fi connect'
  homepage 'http://www.au.kddi.com/mobile/service/smartphone/wifi/wifi-spot/usage/mac/'
  license :gratis
  container :nested => 'au-wifi-connect-latest'
  app 'au Wi-Fi接続ツール.app'
end

No, you didn’t understand. The code I’ve posted including the blank lines and the comment is how it should look in the end. You can just copy and paste that for a submission.

I have done pull&request .
thank you!!


How to run Spyder kernel headless

I'm trying to use the kernel on my desktop from my laptop. The only issue is that when I use
ipython kernel
and connect to it, Spyder complains that set_cwd is not recognized, because that's a method in SpyderKernel class. So naturally, I'm wondering how I can create a headless instance of the Spyder kernel to connect to. Is there a way to do this?
Thanks

What I sometimes use to run an empty Spyderlike console is installing the Jupyter frame work using pip install jupyter . Then you can launch an ipython shell typing jupyter qtconsole.
More about the qtconsole https://qtconsole.readthedocs.io/en/stable/

I have jupyter console, tried it. It uses the IPythonKernel, which doesn't have set_cwd method.
I have a suspicion that the SpyderKernel uses some functionality of the IDE which might not be available but itself

So naturally, I'm wondering how I can create a headless instance of the Spyder kernel to connect to. Is there a way to do this?

@AfzalivE, you need to install Spyder on your desktop, and then run this command
python <path to your installation>/spyder/utils/ipython/start_kernel.py

We're working to simplify this in Spyder 4.

@ccordoba12 should we have something like
$ spyder qtconsole subcomand?

Well, the idea is to move all our kernel code to a new package so that people don't need to install Spyder and all its dependencies to simply run our kernel.
Then the subcommand could look like
spykernel start

or something like that :-)

spykernel start

In that case we should just mimic the normal cli interface for ipython console, and forward everything + any specific spyder stuff?

@goanpeca I don't think starting the kernel starts the console. Running the ipython kernel command, for example just runs the kernel that other consoles can connect to.
@ccordoba12 looking forward to this version 4! Is there a way I could contribute? Has work started on it yet?

Is there a way I could contribute?

For now the plans to extract our kernel code are in my head :-) But I'll post something here when I have created the new project.

Has work started on it yet?

Sure, we're about to release our first beta. You can see our current additions here.

Alright, for now. The workaround that works for me is this:

Start the spyder kernel
python /path/to/spyder/utils/ipython/start_kernel.py -f kernel-remote.json

(in my case this was way inside the anaconda folder)

Fetch the kernel-remote.json file using scp
scp server:/run/user/1000/jupyter/kernel-remote.json .

Create the project folder on the remote server having the same absolute path as the client. In my case, I had to create /Users/username/Dev/ML/mounted on my Ubuntu server

Share the project folder on the remote server over the network. Samba in this case.

Mount the samba share on the same path as in step 3. So really, this path can be anything.

Now open Spyder, use the file explorer to open the mounted folder. Connect the remote kernel and enjoy!

:D

This is solved now by spyder-kernels, i.e. you just need to install spyder-kernels in your remote server and run there
python -m spyder_kernels.console

but this doesn't start the kernel headless. as soon as i close my ssh-connection to the server, the kernel shuts down. is there a way to start the kernel and connect to it anytime i want without keeping an ssh connection open the server all the time?

You can use screen on your ssh server or byobu or simply execute the
headless commands in background with &. That is not a problem related to
Spyder.
On Tue, Apr 30, 2019, 5:34 AM m4tts<EMAIL_ADDRESS>wrote:

This is solved now by spyder-kernels, i.e. you just need to install
spyder-kernels in your remote server and run there
python -m spyder_kernels.console
but this doesn't start the kernel headless. as soon as i close my
ssh-connection to the server, the kernel shuts down. is there a way to
start the kernel and connect to it anytime i want without keeping an ssh
connection open the server all the time?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder/issues/5441#issuecomment-487884815,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADKOWKCBTBDTOVKTACOQYTPTAHD5ANCNFSM4D6TU7JA
.


Remove duplicate root projects when importing from glide

I (naively) assumed that since glide supports listing the subpackages used, that it people's glide.yaml/lock wouldn't have multiple entries for the same root package...
The glide importer now checks for duplicate root projects. I've introduced a cache of the resolution from import path to root project, because it's guaranteed that paths will be double resolved (for glide and any other future importer that uses a config + lock).

i'm guessing this is just backburnered a bit, right?

Yup! I'll jump back on this (and others) next week.

I've removed the unnecessary cache and rebased.

Rebased and fixed that one test.

weee!