Redirect loop when accessing the frontend

Hello,
I was using owncloud server in a for several years. It was installed with docker and I'm now migrating to a self-hosted kubernetes cluster.
I looked at ocis which will be the future supported version and seems more suitable for a kubernetes infrastructure since it is microservices.
I read all the documentation and deployed OCIS on my cluster with an ingress (traefik). The problem is that when I try to access the frontend page, I get an error from my browser that the max redirection limit has be exceeded.
I think this is kinda related to my home setup since I have two reverse proxies and only one manages the tls/https.
A schema is more simple to understand so here it is :

I think the problems comes from the fact that this ocis deployment expect incomming connections to be in https
Is there any way to disable this behavior ?
Thanks in advance for the awsers.
PS : I cannot remove the nginx since I don't have the full rights on it

Hi, is there anyone available to handle my issue ?

Thanks for you fast answer.
I cannot access any frontend page, I get this error before

You're right, I get a bunch of 308 redirect without any with my domain url redirecting to the same url

Hi, this issue is really annoying because I cannot use the latest version of Owncloud. I have to use the PHP version since it is the only one working on my environment.
Can someone check this please ?
Thanks in advance

You're right, I get a bunch of 308 redirects with my domain url redirecting to the same url

As I said, I only get 308 redirect from my domain redirecting to the same address (my domain too)

Each masked host is my domain

Ok, I bypassed a proxy and after a refresh, a page showed up. It seems there is still a https/ssl problem since some request are blocked (by the browser I presume)

Yeah mixed content (and sorry for the bad screenshot)
If I recall correctly, you get this error if you try to load ressources with http protocol on a https page.
Why the frontend would load insecure ressources ?

The server part is indeed http. How can I change that ?

For the rest I use the default values of the provided chart

3.0.0-alpha.1

My bad this is the app version
The chart version is 0.1.0

I don't understand how it can be possible as the only values I set are on the screenshot I sent above.
Here is the complete list of the set values :

externalDomain : set with my domain without protocol (like superdomain.tld)
ingress.enabled : set to true
insecure.oidcIdpInsecure: set to true
insecure.ocisHttpApiInsecure: set to true

I ran the command you gave me and the output is http. I will retry to recreate everything with the latest version of the chart. I'll keep you updated

I didn't and don't have the time to test the new version before 16th june, I will post update here then
Thanks for the follow-up tho


CBOR string

I received some CBOR files that contain strings (major type 2) and not UTF-8 strings(major type 3).
It looks like parsing fails. Is it on purpose?

This is currently not supported, as we only support UTF-8 as encoding. I we would accept byte strings, we would also need to support additional encodings.
While this would just be a programming exercise (it seems that only base64url, base64, base16, and CBOR are mentioned in RFC 7049), it is currently not a priority for this library. However, PRs are always welcome :-)

ATM, it's possible to misuse the json::to_cbor() / json::to_msgpack() as:
const std::string binary = load_some_binary_like_a_jpeg_file();
json src = {"data", binary};

const auto bin_serialization = json::to_cbor(src); // json::to_msgpack()
auto dest = json::from_cbor(bin_serialization);    // json::from_msgpack()
// now: dest["data"].get<std::string>() == binary
// if: serialization/deserialization by this library

it may sound weird, but as long as all modern std:string implementations can handle binary data as well as utf8 text, what if to_cbor()/from_cbor() consider all strings as byte strings (raw/binary)?
then both binary/text are covered in msgpack/cbor serialization.

Binary strings are now there, see #1662.


"Show Toolbar" checkbox not working

Summary
Checking "show Toolbar" in the component does not show tableau toolbar
Steps To Reproduce:

Add a tableau dashboard to a lighting page and make sure that "show toolbar' is checked
Load the page- the toolbar options redo/undo/revert on left and share/download etc. on right do not show up

Expected result
The toolbar options should display
Actual result
Tableau dashboard displays correctly but with no toolbar
Additional information
Feel free to attach a screenshot or code snippets.

Hi @ramennoodles3 - Are you trying to embed a visualization from Tableau Online / Server or Tableau Public?

Tableau Viz LWC is being Archived
All outstanding PRs and Issues are being addressed and closed. Please migrate to the new Tableau View LWC.
For more information about why the Tableau Viz LWC is being replaced by the Tableau View LWC, please see the README

@ramennoodles3  If you run into issues using the new Tableau View LWC, please open a case through Salesforce.


metrics for each node usage

I tried to use the headlamp for my cluster. it was showing that I need to add the metrics to get the usage details of each node. But I didn't find any documentation regarding how to add the metics

Hi @maheshk245 . For getting metrics you will need the metrics-server.
It's true we don't have that documented as it something more related to Kubernetes itself than Headlamp (but I will think about adding it).
If you are running minikube, maybe check:
https://kubernetes.io/docs/tutorials/hello-minikube/
Or if you want something less automagic:
https://kubernetes.io/docs/tasks/debug-application-cluster/resource-metrics-pipeline/#metrics-server

Ihave opened #124 to track this BTW. Thanks.


Added support for gradients for orignal Rival and similar mice

Please do not merge this PR right now. It is far from complete. Adding it in case others want to use it before it's complete and/or give reviews.
Note: To use it right now, you have to issue an argument (any color) which is not used. Will be fixed later on.
For issue #3.
Currently done:

[x] Added fixed gradient for wheel backlight
[x] Added fixed gradient for logo backlight

Planned fixes:

[ ] Add option to use gradient on wheel and logo simultaneously
[ ] Make gradient variable (user can specify starting and ending colors)
[ ] Improve code quality and reduce hackiness
[ ] Optional: write a systemd/other daemon file that will issue the command in background

Closing this PR as thought of a better approach.
@flozz How about a server (daemon) and client like architecture? This way, commands can be issued simultaneously.
For example, the daemon will run in the background which will keep listening for data. The client can send in commands, and the daemon will send them to the mouse.

This seems good. I'll join the Gitter channel soon.
On Mon, May 28, 2018, 13:54 Fabien LOISON<EMAIL_ADDRESS>wrote:

I think the beast approach is to have:

a core lib, that can also provide a basic CLI for simple use-cases
(that is what rivalcfg is currently)
a daemon that use this library to configure mice and that provides a
D-Bus interface
clients (GUI or CLI) that use the D-Bus API

I do not know if it is relevant to implement this in rivalcfg as there is
an other project, libratbag https://github.com/libratbag/libratbag,
that already goes this way and that begins to support some SteelSeries mice.
If you want, we can discuss about that on Gitter →
https://gitter.im/rivalcfg/Lobby
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/flozz/rivalcfg/pull/53#issuecomment-392456970, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AQjZIXzJdUuTvm_JOQzRIYTnrt7COMTzks5t27QggaJpZM4UPXBG
.

--
Best,
Soham Sen.


Carrier Billing API Release Trackers for MetaRelease Spring 25

Problem description
Manage Carrier Billing API release Trackers for MetaRelease Spring25
Parent Issue: #194
Expected action
Generate and Update API Release trackers for carrier Billing APIs within MetaRelease Spring 25
Additional context
Information to be compiled here: https://lf-camaraproject.atlassian.net/wiki/spaces/CAM/pages/14564246/CarrierBillingCheckOut+API+Release+Tracking

27/NOV: First action completed. API Release Trackers generated for:
Carrier Billing v0.4: https://lf-camaraproject.atlassian.net/wiki/spaces/CAM/pages/46006417/carrier-billing+v0.4.0
Carrier Billing Refund v0.2: https://lf-camaraproject.atlassian.net/wiki/spaces/CAM/pages/46039168/carrier-billing-refund+v0.2.0


wrong pageflow.height on Android because of the status bar

On Android you have to subtract 25dpi on the pageflow.height because of the status bar.
Otherwise the bottom content is hidden.

This is indeed not a bug in the widget, it is a configuration directive given to the widget which has to be changed. Moreover, I guess the widget sizes should rather be configured on a per-instance basis, instead of the global use of Alloy.Globals.jolicode.pageflow.width or Alloy.Globals.jolicode.pageflow.height.


Bug: Links in "On this page" screwed up the style

https://github.com/user-attachments/assets/b41740c8-6e17-40dc-a16f-ddce298e9ac4

Thanks @QzCurious, I thought I'd fixed this on Friday, but evidently didn't. It's has been fixed now
The underlying issue is a bug in react-router, which as far as I can tell has existed for a long time. I'm surprised it took us this long to find it, but I'm glad we did
Sorry to you and anyone else dealing with a buggy website over the weekend!


AcceptDialog and its children appear corrupted

Ubuntu 17.04, Godot Build: f0754b2
Issue description:
The AcceptDialog node and the nodes that inherit from it are appearing corrupted:

CC @toger5, @djrm

seems the texture for the sb could not be found...

any idea when this got introduced?
it should be this image
popup_window_png
which exists in theme_data.h
and is properly assigned in default_theme.cpp
I will try if I can reproduce and maybe figure out whats wrong with breakpoints...

maybe it's regression from https://github.com/godotengine/godot/commit/1e8048dd45149b8d574cf983e12ff5886d109da0#diff-0f2d5f8b708eeeac121058c71f5c1428R198

good job volzhs.
the issue is exactly that. the sb can't be found when searching for it..
there is actually an issue with the get_stylebox function which could be fixed. when there is a custom style, it loops through parents until it finds the correct sb. when there is no coustom style though, it just takes the default theme... (without looping)
but stepping through the code I also had situations where it was just looping to Object type... which is bad. so it didn't realise that there is a style box for WindowDialog. although there is none For AcceptDialog...
I'm trying to find a solution to make it find the parent sb if there is none. but otherwise we just add the type back got the get_stylebox function in the Dialog draw notification.

@toger5 damn.

@djrm I think it is a good thing that you removed it. since it should work like this...
And I think I have a solution so that it works like that... Haven't tested yet though...


Making test table driven

making test table drive and adding more test cases

thanks, will review it soon,.

/remove-lifecycle stale

/kind cleanup

/remove-lifecycle rotten
@reetasingh are you planning to continue work on this pull request? Would you be able to rebase and fix the merge conflicts?
Thanks!

@reetasingh thanks for pointing the missing table driven tests implementation. Portion of it was implemented through https://github.com/kubernetes-sigs/descheduler/pull/266. Please, feel free to extend the list of cases in case I missed some.
/close


Docs Command can not be cancelled when offline

Laravel Version
10.45.1
PHP Version
8.3.3
Database Driver & Version
No response
Description
The php artisan docs command cannot be interrupted using the CTRL+C key sequence when the system is offline. This issue prevents users from stopping the execution of the command in environments without an internet connection, leading to prolonged waits (>10sec) or the necessity to terminate the terminal session.
OS: macOS
Steps To Reproduce

Ensure the system is offline or disconnect from the internet.
Open the terminal application.
Navigate to the Laravel project directory.
Run the command php artisan docs.
Attempt to cancel the operation using the CTRL+C key sequence.

@timacdonald do you maybe know?

@grafst I'm not able to replicate the long connection wait time when disconnected.

We could reduce the connection timeout for the command, but any value feels kinda arbitrary to me.

I will try manually pointing the docs command at a HTTP tarpit and see if I can recreate this tomorrow.
We can potentially trap signals to fix this (h/t @crynobone )

@timacdonald you are right when I'm completely offline It's fine. The error seems to arise when there is some kind of network error/delay...
Never heard of the tarpit-technique, very interesting :)
I wouldn't necessarily shorten the timeout, maybe some people on very slow networks will be greatful for a long timeout.
Trapping the abort signal would be a good idea either way I think...

@grafst, I've just replaced the HTTP request with one that takes 10 seconds.
// vendor/laravel/framework/src/Illuminate/Foundation/Console/DocsCommand.php
    /**
     * Fetch the documentation index from the Laravel website.
     *
     * @return \Illuminate\Http\Client\Response
     */
    protected function fetchDocs()
    {
+       echo 'making the HTTP request';
+
+       return $this->http->get("https://httpbin.org/delay/10");
-       return $this->http->get("https://laravel.com/docs/{$this->version()}/index.json");
    }

Then I run the command. The request is send but takes 10 seconds to respond, i.e., we are held on the HTTP line. When I press Ctrl-c the command instantly quits.

Do you have any ideas how I could replicate the issue further?

Closing this issue because it's inactive, already solved, old or not relevant anymore. Feel to open up a new issue if you're still experiencing this.


No planets/ship log entries are added

What Happened?
The main menu will get changed and add the new banner to the DLC area but ingame everything seems to be in a vanilla state, no ship entries or new planets are generated.
Full disclaimer, I'm running this game on Linux with Proton. The issue might be caused by that.
What was supposed to happen?
Planets should be changed/added and ship log entries should appear.
Platform
Steam
Mods
* New Horizons
* Vanilla Fix
* Any New Horizons Mod

Logs
Unfortunately there are no exceptions with any mod except The Vision (issue for that is here)
Here is a complete verbose log from start to finish with Outer Wilds Galaxy enabled:
https://gist.github.com/DomiStyle/744f307dc52f67883e9d3d3fa1ba26df
Just for completeness, here's the verbose logs with The Vision enabled:
https://gist.github.com/DomiStyle/cc291d5f935e64557825fcd8306a6a2c

For the record, you did check the ship computer? You've got the map and rumors, but if you press the rumor mode button on the map, you bring up an interstellar menu which is where you fast travel between systems.

Good point, either I can't find the interstellar menu or there is none. This is what the ship computer looks like with New Horizons + Real Solar System enabled on a fresh save:

Pressing C just toggles between those 2 views.

Is there a "MODS" section in the pause menu? Do your mods show up?
What about non-NH mods? Do those work at all?

Yes, every mod so far is working except New Horizons.
The mods section is there, the debug menu for New Horizons is there, the main menu gets changed. Just ingame everything looks vanilla.

Found the cause.
https://github.com/Outer-Wilds-New-Horizons/new-horizons/blob/main/NewHorizons/Main.cs#L489
https://github.com/Outer-Wilds-New-Horizons/new-horizons/blob/main/NewHorizons/Main.cs#L524
The ? at the end of the search string causes Mono (in this case) to not find any files, preventing any systems and planets from being loaded.
No idea why, it works in both Mono on Linux and Mono in Wine when testing normally. Maybe something is bugged in the specific version of Mono Outer Wilds uses.
This was added 4 months ago in this commit: https://github.com/Outer-Wilds-New-Horizons/new-horizons/commit/175b8c1f8017fff2e668206a3a04b2acf84486a5
@Bwc9876 Is the JSONC support used anywhere or can I just remove the ? in a PR? If not I can also try both variants so nothing breaks for current mods.

Yes, some of our users use jsonc to allow for comments, we'll just have to change how we load them, thank you for figuring it out!

Thanks, will put in a PR later today which looks for both then.

Closing this since it's fixed by the PR.


Please make the new line in comment also start with "///"

When I  Start  write a new Line comment, press enter in <summary> and </summary>  will create an empty line, then I need type three / character to start write comment, but, the problem is when I type three / character, the next line will be indented by another /// , which is annoying

Related to this, when hitting enter after the </summary> tag, it should start with an empty line prefixed with /// , and not add another <summary> element. I often need to do this to add a <remarks> element.

I actually fixed this in #47 in theory but I guess it was broken, or it was some obscure cross platform issue. Working on it.

Oh my god I figured it out. It doesn't work on windows because IsEnterKey breaks on CRLF EOLs (windows) as the first char in the string is a carriage return, not a newline.

Thanks for the fix!

@bgever Thanks for your PR.


What if I use Realsense D435i to work with hight-ension wire closely, will the camera be disturbed by electromagnetic?

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
{ R200 / F200 / SR300 / ZR300 / D400 }

Firmware Version
(Open RealSense Viewer --> Click info)

Operating System & Version
{Win (8.1/10) / Linux (Ubuntu 14/16/17) / MacOS

Kernel Version (Linux Only)
(e.g. 4.14.13)

Platform
PC/Raspberry Pi/ NVIDIA Jetson / etc..

SDK Version
{ legacy / 2.. }

Language
{C/C#/labview/nodejs/opencv/pcl/python/unity }

Segment
{Robot/Smartphone/VR/AR/others }

Issue Description
I am trying to use D435i to locate object's pose, and my object is hight-ension wire， during the machine's working, the camera will be very close to the camera, like 5cm, I want to know whether if  the depth will be affected by this situation  or not.
Forwarding for your reply !

Hi @jianjuan  There have not been any reported problems with magnets during the history of RealSense products.
The original RealSense R200 stereo depth camera model (the predecessor of the modern 400 Series stereo cameras) was supplied with a magnetic plate resembling a very strong fridge magnet that attached to the rear of the camera and enabled it to be mounted to surfaces such as computer monitors.
It would not be practical to sense depth at 5 cm range though as the default minimum depth measurement range of the D435i camera model is 0.1 meters / 10 cm.  Even if the minimum distance of the camera was reduced with the disparity shift option the D435i would not be able to detect depth at 5 cm.
However, RGB does not have such range limits and can produce a clear image at 5 cm.

Thank you very much for your explanation!
And I am sorry, I have not described the scene clearly. What  I mean is if there is a hight-ension wire very close ( like 5 cm) to the realsense camera on the top, does this affect the depth ability of the normal range like (0.1~10m) ? I have two wires,  I am not intended to watch depth of the very close wire, but the wire in the normal range. The very close wire will not be appeared in all the cameras (RGB or IR).

It's no problem at all.  :)
A close range electromagnetic field from the wire should not have an effect on the depth image or the depth sensing range.

It's no problem at all. :)
A close range electromagnetic field from the wire should not have an effect on the depth image or the depth sensing range.

Nice !!! :)
Thanks a lot ! I will test it in the real scene！


Add pkill -15 signal for retroarch, in order to soft close it and so …

…not loosing game save when shutdown or reset without previously exit retorarch via hotkey combo. Proposition for more ergonomic use for kids.

Great suggestion, I wouldn't have thought of this until I lost my data!

Great suggestion, I wouldn't have thought of this until I lost my data!


GDAL update to 3.1.0

Library name: GDAL
New version number: 3.1.0

3.1.2 was released recently. Hope that's going to be updated soon, current version 2.4.1 was released more then year ago.

Please update this. There are some very important feature updates.
I would implement it myself and do a pull request if I could actually build GDAL 3+ myself. I can't figure it out. (On Windows with Visual Studio)

Will update in #9100.

I see that #9100 was closed. Is someone working on this? The latest bugfix release of GDAL is 3.1.3.

@oswjk I will update later.

Needs to update libgeotiff first.


Stateful widget creates many stream listeners unintentionally

Steps to Reproduce

Create simple Stateful widget which includes TextFormField and StreamBuilder
Stream for streambuilder can allow only one subscriber.
Then focus on the TextFormField(I mean click the text box, write something than for example use back button), thanks to everything rebuilding, my streambuilder will be also rebuild, then it will give an error Stream has already listened. If I do StreamController<String>.broadcast() which I don't want to it, there will be many listener for every rebuilding!!
Note: I need a stateful widget to close my streamcontroller in the dispose method.

Sample Code
class Sample extends StatefulWidget {
  @override
  _SampleState createState() => _SampleState();
}

class _SampleState extends State<Sample> implements{
  final String _log = "_SampleState";
    StreamController<String>  sampleStreamController = StreamController<String>;

    @override
  void dispose() {
    super.dispose();
    sampleStreamController.dispose();
  }

  @override
  Widget build(BuildContext context) {
    print("$_log build(BuildContext context) runs");
    return Scaffold(
      key: _scaffoldKey,
        appBar: AppBar(
          title: Text("Sample"),
        ),
        body: Container(
          padding: EdgeInsets.all(12.0),
          child: Form(
            key: _formKey,
            child: Column(
                children: <Widget>[
                  TextFormField(
            		validator: (value) {
             			 if (value.isEmpty)
               				 return Text("error");
            		},
          		),
          		StreamBuilder<String>(
      				stream: sampleStreamController.stream,
      				builder: (context, snapshot){
        				if  (snapshot.hasData){
          					return Text(snapshot.data);
        				}else{
          					return Text("empty");
        				}
      				},
    			);
               ]
            ),
          ),
        )
    );
  }

}

Logs

Flutter doctor:

[✓] Flutter (Channel stable, v1.0.0, on Linux, locale en_US.UTF-8)
    • Flutter version 1.0.0 at /home/mehmetozanguven/flutter_linux_v1.0.0-stable/flutter
    • Framework revision 5391447fae (3 months ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at /home/mehmetozanguven/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /opt/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] Android Studio (version 3.3)
    • Android Studio at /opt/android-studio
    • Flutter plugin version 32.0.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[!] IntelliJ IDEA Community Edition (version 2018.3)
    • IntelliJ at /opt/ideaIC-2018.3.4/idea-IC-183.5429.30
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

[!] VS Code (version 1.31.1)
    • VS Code at /usr/share/code
    • Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[!] Connected device
    ! No devices available

! Doctor found issues in 3 categories.

The example is incomplete (_scaffoldKey and _formKey are undefined) and contains some errors (validator should return a String instead of a Text widget; sampleStreamController's close method must be called instead of dispose). Please update it and provide the error message.
When I fix the errors and remove the keys it works fine on:
[✓] Flutter (Channel master, v1.2.3-pre.21, on Mac OS X 10.14.3 18D109, locale en-NL)
    • Flutter version 1.2.3-pre.21 at /Users/spkersten/Development/flutter
    • Framework revision 7b5a769b31 (2 hours ago), 2019-02-23 03:35:37 -0800
    • Engine revision 3efc9f5099
    • Dart version 2.2.0 (build 2.2.0-dev.2.1 c92d5ca288)


fix: Allow exporting saved queries without schema information

SUMMARY
Fixes https://github.com/apache/superset/issues/26885

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before: See linked issue
After:

The query without schema information is placed top-level within the database folder:

TESTING INSTRUCTIONS
See linked issue, stored saved query select 42 (so that no schema information is added) and try to export it using the UI.
As an alternative you can use the /api/v1/assets/export API.
ADDITIONAL INFORMATION

[x] Has associated issue: https://github.com/apache/superset/issues/26885
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

Thank you @sbernauer for the fix. Could you confirm that you're able to re-import the saved query with no schema?

@michael-s-molina I can confirm I got a zip using /api/v1/assets/export, wiped my Superset installation and was able to restore everything using /api/v1/assets/import

@michael-s-molina I can confirm I got a zip using /api/v1/assets/export, wiped my Superset installation and was able to restore everything using /api/v1/assets/import

Can you please share an example how the request payload looks like for the api - /api/v1/assets/import as the one with /api/v1/dashboard/import doesn't work in this case

I used the following Python script to export and import the attached zip
import logging
import requests

base_url = "http://<IP_ADDRESS>:8088"
superset_username = "admin"
superset_password =  "admin"

logging.basicConfig(level=logging.INFO)
logging.info("Starting setup of Superset")

logging.info("Getting access token from /api/v1/security/login")
session = requests.session()
access_token = session.post(f"{base_url}/api/v1/security/login", json={"username": superset_username, "password": superset_password, "provider": "db", "refresh": True}).json()['access_token']
# print(f"access_token: {access_token}")

logging.info("Getting csrf token from /api/v1/security/csrf_token")
csrf_token = session.get(f"{base_url}/api/v1/security/csrf_token", headers={"Authorization": f"Bearer {access_token}"}).json()["result"]
# print(f"csrf_token: {csrf_token}")

headers = {
    "accept": "application/json",
    "Authorization": f"Bearer {access_token}",
    "X-CSRFToken": csrf_token,
}

# To retrieve all of the assets (datasources, datasets, charts and dashboards) run the following commands
# logging.info("Exporting all assets")
# result = session.get(f"{base_url}/api/v1/assets/export", headers=headers)
# assert result.status_code == 200
# with open("superset-assets.zip", "wb") as f:
#     f.write(result.content)

#########################
# IMPORTANT
#########################
# The exported zip file had to be modified, otherwise we get:
# <Response [422]>
# {"errors": [{"message": "Error importing assets", "error_type": "GENERIC_COMMAND_ERROR", "level": "warning", "extra": {"databases/Trino.yaml": {"extra": {"disable_data_preview": ["Unknown field."]}}, "issue_codes": [{"code": 1010, "message": "Issue 1010 - Superset encountered an error while running a command."}]}}]}
#
# The file databases/Trino.yaml was modified and the attribute "extra.disable_data_preview" was removed
#########################
logging.info("Importing all assets")
files = {
    "bundle": ("superset-assets.zip", open("superset-assets.zip", "rb")),
}
data = {
    "passwords": '{"databases/PostgreSQL.yaml": "admin"}'
}
result = session.post(f"{base_url}/api/v1/assets/import", headers=headers, files=files, data=data)
print(result)
print(result.text)
assert result.status_code == 200

logging.info("Finished setup of Superset")

assets_export_20240130T160948.zip


Allow more control over file split / ability to merge js files

Describe the problem
After building too many files, can all css and js files be merged? Since the project is not large, I feel that too many requests are not more efficient than individual ones.

Describe the proposed solution
Is it possible to add a configuration to decide whether the code needs to be split? After trying the vite configuration item build-rollupOptions-output-manualChunks, it seems to have no effect and will prompt an error

Alternatives considered
No response
Importance
would make my life easier
Additional Information
No response

For windmill (https://github.com/windmill-labs/windmill), we are building a big single-page-app, and it would make it a lot easier if we could just have one bundle-.js to download

Since the project is not large, I feel that too many requests are not more efficient than individual ones

That doesn't seem accurate without more details. The files will be downloaded in parallel, so there's no performance hit to splitting them. There are however several performance wins to splitting the files. It means you don't need to request all the JS for the site, but only for the page you're on. It also means better caching when you update your site as only the files that have changed need to be re-requested instead of re-downloading all the JS for your whole site

Closing as duplicate of https://github.com/sveltejs/kit/issues/3882


MNT: Fix if logic

I wish that the if logic worked like that.  I definitely read that line a number of times without realizing it would always evaluate to True...
Closes #21

Looks like I just unearthed a bug. I'll investigate later and fix it

I am unable to duplicate the error that travis is having on my local machine

======================================================================

ERROR: test_already_available_elsewhere (conda_build_all.tests.unit.test_artefact_destination.Test_AnacondaClientChannelDest)

----------------------------------------------------------------------

Traceback (most recent call last):

  File "/home/travis/conda/lib/python2.7/site-packages/conda_build_all-0.9.1.dev2+detached.from.fetch.head-py2.7.egg/conda_build_all/tests/unit/test_artefact_destination.py", line 97, in test_already_available_elsewhere

    ad.make_available(meta, mock.sentinel.dist_path, just_built=False)

  File "/home/travis/conda/lib/python2.7/site-packages/conda_build_all-0.9.1.dev2+detached.from.fetch.head-py2.7.egg/conda_build_all/artefact_destination.py", line 118, in make_available

    if 'http://' in built_dist_path or 'https://' in built_dist_path:

TypeError: argument of type '_SentinelObject' is not iterable

----------------------------------------------------------------------

Ran 61 tests in 0.472s

FAILED (SKIP=2, errors=1)

Yeah, that's an interesting error... looks like a loose use of mock somewhere...


Environment Setup

Hi, great work! Would you be able to provide a detailed instruction on how we can setup the working environment for it to run properly? Thank you!

Hi @rwang5203 , sorry for the reply. The environment is maily based on settings of HDMapNet and BEVFusion. Besides, the tree filter also needs to install with TreeEnergyLoss.


in katransformer.py, the line from kat_rational import KAT_Group fails to find the corresponding file

Thank you very much for your sharing. However, I encountered an issue while using it: in katransformer.py, the line from kat_rational import KAT_Group fails to find the corresponding file. I'm wondering if you've experienced the same issue.

Hello @Cyc-InGitHub ,Have you install the CUDA extension already? kat_rational can be imported once the CUDA extension is installed https://github.com/Adamdad/rational_kat_cu

I'll try again. thank you for your answer. have a good day!


docs: add note back about large toml numbers

Motivation
add note back removed in #918

Solution

So this effectively means that you can only lower the gas limit?

So this effectively means that you can only lower the gas limit?

only wanted to insert the comment not update the value...

Oh, right, I also misunderstood something

Wait, no, I'm right: The max value for a u64 is<PHONE_NUMBER>3709551615 - or default is half of that, which is<PHONE_NUMBER>854775807, which also happens to be the max value of an i64.

perhaps I can find a solution with a custom wrapper type

Can just merge this since it's a comment and then we fix it later


Connect with Rainloop

I cant connect to rainloop, it throw me the next error: "stream_socket_client() :php_network_getaddresses error" when i try to connect with postfix

Hey @ricardollerenad can't you paste your conf here ?

Please post a screenshot of your domain configuration in rainloop and your docker-compose.yml.
This should works with the default docker-compose.yml :
https://github.com/hardware/mailserver/wiki/Rainloop-initial-configuration#smtpimap-configuration-


Download and patch Vectorscan sources instead of vendoring them

As we discussed internally, I implemented a solution of downloading Vectorscan sources when missing and applying a patch file with our custom changes instead of permanently storing the patched version in the repository. Implements #71.
It works by downloading Vectorscan sources from GitHub archives, decompressing, and unarchiving to disk. Then, it applies our custom .patch file. At the end of each phase, it writes relevant data into a .version file to keep track of completed changes so they don't need to be repeated on each build. I'm aware it's pretty simple validation, but it works pretty well.

The Docker image builds just fine on Debian, but I have no idea why the Alpine version stopped working out of the blue.

I'll take a look at it later. In my experience, that sort of failure is business as usual when dealing with C++ dependencies...

Just as a sanity check, I changed the code to download the ZIP file and extract it using zip_extract to see if there would be any difference (it's actually cleaner solution tbh, it doesn't require renaming extracted directory).
let response = reqwest::blocking::get(format!("https://github.com/VectorCamp/vectorscan/archive/refs/tags/vectorscan/{VERSION}.zip")).expect("Could not download Vectorscan source files");
let bytes = response.bytes().expect("Could not read Vectorscan zip file");
zip_extract::extract(Cursor::new(bytes), &vectorscan_src_dir, true).expect("Could not extract Vectorscan source files");

Unfortunately, it ended up being even worse as it couldn't find more libraries:
36.00   = note: /usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lbz2: No such file or directory
36.00           /usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lssl: No such file or directory
36.00           /usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lcrypto: No such file or directory
36.00           /usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lz: No such file or directory
36.00           collect2: error: ld returned 1 exit status

Yes, this behavior is odd. One would expect that extracting a tarball and applying the patches would give the same behavior as the current vendored approach, as the vectorscan source directory trees should be the same in either case.
I will take a closer look at this PR this week.


[Issue 7675][Pulsar SQL] Presto connector OffloadPolicies deserialization

Master Issue: #7675
Motivation
When using the pulsar-presto connector as a plugin for an existing presto cluster, presto fails to create PulsarSplits.
Modifications

The OffloadPolicy is passed as a String to the PulsarSplit.
The OffloadPolicy json String is converted to Parameters and passed to OffloadPolicy::create
com.fasterxml.jackson.core:jackson-annotations jars are removed from the pulsar-presto-connector tarball per PrestoSQL documentation.
A configured ManagedLedgerConfig is used when finding the bounds in getPredicatePushdownInfo
The offloaderDirectory in the PulsarConnectorConfig is always used when searching for offloaders

@wolfstudy I think that this is a continuation on the work that you did in #7701

/pulsarbot run-failure-checks

Hi @enriched  :)
Any updates about that issue ?
It just prevents us today to work with offloading and presto :(

@alexku7 I have built this locally and am able to use it as a plugin for presto v332 with pulsar offloading enabled to S3 buckets. I just have not found time yet to fix the tests.

Thanks @enriched
Let me understand. will it work for me  in the 2.6.2 version even without that fix since the version 2.6.2 has the updated v332 version of presto-sql ?

@alexku7 I have added a the pulsar-presto-connector built from this source to a standard prestosql v332 installation (from https://repo1.maven.org/maven2/io/prestosql/presto-server/332/presto-server-332.tar.gz). That presto instance is able to connect to a pulsar broker running the streamnative/pulsar-all:2.6.0 docker image and query data in offloaded ledgers.

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

@enriched Seems the failed CI tests related to this change, could you please help take a look?

Sorry, not pay attention to this PR, I also added a PR to fix the problem. refer to #9300, PTAL.

@enriched Could you please rebase the code?


Only reuse launch process cache layer when test/development gem changes

What happened?

What were you attempting to do?

Following the completion of #182, I tested out the code which installs development and test gems during the build phase. I performed a rebuild of an app with test gems, and I changed a test gem (same experience fordevelopment gem change) it caused both the build and launch install process to re-run.
When I changed a production gem on a rebuild, it also caused both the build and launch install process to re-run.

What did you expect to happen?

I would have only expected the relevant install process to rerun depending on the type of gem. For example, when changing a test gem I would've expected only the build process the rerun, but the launch process cache layer to be reused so that my rebuild is more performant.
Build Configuration

What platform (pack, kpack, tekton buildpacks plugin, etc.) are you
using? Please include a version.

pack 0.18.0

What buildpacks are you using? Please include versions.

bundle-install v0.2.0

Can you provide a sample app or relevant configuration (buildpack.yml,
nginx.conf, etc.)?

https://github.com/paketo-buildpacks/bundle-install/tree/main/integration/testdata/simple_app
Checklist

[ ] I have included log output.
[ ] The log output includes an error message.
[X] I have included steps for reproduction.

@paketo-buildpacks/ruby-maintainers This issue has been open for a while. Does this need to be investigated further before it's workable?

I think it's workable as is. We should re-use the launch cache layer when a development/test gem changes.

@sophiewigmore I'm happy to take a look at implementing this, but my knowledge of the ruby ecosystem is limited, and I don't how to determine whether dev/test gems have changed.
My current mental model is to expand the BundleInstallProcess.ShouldRun() method to know whether it is running on the build or launch layer, and determine the subset of gems to analyze accordingly. This would probably mean that we have to parse the Gemfile (or Gemfile.lock?) rather than running a checksum over the whole file.
Does that make sense? Am I on the right track?

@robdimsdale that seems like the right path. I'm wondering if you might be able to leverage the output of bundle check to see if the bundle install command needs to be rerun.

I'm probably not going to get to this just yet, so I'm un-assigning myself. Anyone else who is interested is welcome to pick it up!


Switch to Longitude-Latitude for coordinates?

In quite a few places I'm looking at APIs that are built for GeoJSON input and output and having to flip coords and reconstruct bounding boxes for Leaflet to read. Changing Leaflet's APIs to all do things the GeoJSON way would be (wonderful but) a big, breaking change. Having them all autodetect would be error-prone, and having an is_geojson argument to lots of functions would be lame.
Maybe GeoJSON everywhere is something to think about in 1.0.0, and a global flag, L.GEOJSON_API might be a better near-term goal for the [lat, lon] shortcut to be [lon, lat], for toJSON methods to return GeoJSON, and for bounds to be represented and usable as GeoJSON bounds.

Added GeoServer to the list:
[longitude, latitude]-order: OpenLayers, MapboxGL, KML, GeoJSON, PostGIS, MongoDB, MySQL, GeoServer
[latitude, longitude]-order: Leaflet, Google Maps API, ArangoDB.

For reference, Redis new GEO commands will be on first group too: http://redis.io/commands/geoadd

:+1:

+1 switching between PostGIS and Leaflet is always a lot of work

This issue is 3 years old and Leaflet is an incredibly established project. The inconsistency in the larger geo world is unfortunate, but unless @mourner and the maintainers feel like it's worthwhile to spend probably quite a bit of time implementing this change, it would do more harm than good.

Has anyone found a solution for this problem?
Switching log, lat in Geojson to lat, lon for import to Leaflet?
I built a Leaflet map of Wilmette, IL. I want to draw the town border. The geojson from https://mapzen.com/data/metro-extracts/ has the coords as log, lat.
Looking around at code samples and plugIns I couldn't find a log, lat flopper.
Any ideas are well appreciated!

@lukedohner use the builtin GeoJSON layer, it works out of the box with coordinates that follow the GeoJSON spec (lon/lat).
If you really need to flip the axis, there are several ways to go about it, one is to use reproject's reverse function

@perliedman thanks for the info =)

Just for reference, since this issue seems to become the main justification:
https://macwright.org/lonlat/

Which is right?
Neither. This is an opinion with no right answer.
Geographical tradition favors lat, lon. Math and software prefer lon, lat.

Thanks for the overview.

In another life I was a carpenter, that is building with wood.  ;)
In that field, measurements are usually given as height x width.
The standard size for an exterior door is 80 inches by 36 inches which is 6
ft, 8 inches by 3 ft. 96 inches or 8 ft.
In programming, it is usually width x height
and  x cords  by  y cords.
Seems similar to the lat, log - log, lat input order.
On Sun, Apr 29, 2018 at 4:02 PM, Daniel Ruf<EMAIL_ADDRESS>wrote:

Thanks for the overview.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Leaflet/Leaflet/issues/1455#issuecomment-385277388,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFYxwx_jX0PU69VnBsdMuPEVsfFSjx9_ks5tthw_gaJpZM4AdMRL
.

--
Luke Dohner
Web Developer and Creative Technologist
NY, NY

Please see my loop for swapping geojson latitudes and latitudes:
https://gis.stackexchange.com/questions/133059/export-to-geojson-coordinates-in-the-reverse-order/286219#286219
This worked for me.

@hjrobinson that's good to know! But ugh... what a terrible design pattern...

Also, if reprojecting to WGS 84 (EPSG 4326) doesn't work (I know on one asked but I'll mention it anyway), if you have a file with a native projection such as stateplane or user defined, in QGIS you may have to enter an edit session, select all the features in the attribute table, copy the features, and paste as a new vector file/layer.  Then be sure to save the new layer as a shapefile, otherwise certain geometry processes such as making centroids won't work.

Hi @hjrobinson,
It looks like you are still working with Leaflet 0.7.x or lower, where the syntax was indeed L.geoJson.
Leaflet 1.0.0 was released on Sep 2016, and the syntax was changed to L.geoJSON for consistency, but backwards compatibility with L.geoJson was maintained. See https://github.com/Leaflet/Leaflet/issues/2444 for rationale.
Current stable version is 1.3.1.
Please make sure to use the proper documentation page given the version you are using.
If possible you should consider upgrading.
As for coordinates, as highlighted above and as you have noticed, the L.geoJSON / L.geoJson factory will happily parse GeoJSON compliant data, i.e. with [longitude, latitude] order, and automatically switch the coordinates internally when building Leaflet layers out of it.
Maybe the documentation could make this point even clearer.

I apologize for being unclear.  I'm still working in an earlier version of
leaflet because I have need of geojson-vt.  The vector-grid plugin seems to
have some performance issues by comparison.  But I could be wrong about
this too.  Thanks for the feedback. I had data from a city employee that
was ending up in the ocean off the coast of Africa or in China.  I'm very
ambitious, but I've only been using Leaflet for  few months. I'll be more
thorough next time.
On Thu, Jun 28, 2018 at 6:12 PM, ghybs<EMAIL_ADDRESS>wrote:

Hi @hjrobinson https://github.com/hjrobinson,
It looks like you are still working with Leaflet 0.7.x or lower, where the
syntax was indeed L.geoJson
https://leafletjs.com/reference-0.7.7.html#geojson.
Leaflet 1.0.0 https://github.com/Leaflet/Leaflet/releases/tag/v1.0.0
was released on Sep 2016, and the syntax was changed to L.geoJSON
https://leafletjs.com/reference-1.3.0.html#geojson for consistency, but
backwards compatibility with L.geoJson was maintained. See #2444
https://github.com/Leaflet/Leaflet/issues/2444 for rationale.
Current stable version is 1.3.1.
Please make sure to use the proper documentation page given the version
you are using.
If possible you should consider upgrading.
As for coordinates, as highlighted above
https://github.com/Leaflet/Leaflet/issues/1455#issuecomment-313685187
and as you have noticed, the L.geoJSON / L.geoJson factory will happily
parse GeoJSON compliant data
https://tools.ietf.org/html/rfc7946#section-3.1.1, i.e. with [longitude,
latitude] order, and automatically switch the coordinates internally when
building Leaflet layers out of it.
Maybe the documentation could make this point even clearer.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Leaflet/Leaflet/issues/1455#issuecomment-401218281,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AcRaE1ffpG2zQWexqU9PN4E462dq6pcMks5uBX7vgaJpZM4AdMRL
.


Unable to replicate www.fixmyphoto.ai results with the provided model.

Is the model provided in the google drive on imagenet the same as the one used for the web UI(www.fixmyphoto.ai)? If yes, then is the preprocessing used in Step5 notebook similar to the one used in UI. because not getting results as good as the UI .

I have the same question:  whether the model "PConv on Imagenet" you privided is the same as the one you used in fixmyphoto.ai or not?

@MathiasGruber. I have the same question, the result of your pre-trained model is worse than www.fixmyphoto.ai. Do you have more tricks?


checkov: 2.3.356 -> 2.3.359

Diff: https://github.com/bridgecrewio/checkov/compare/refs/tags/2.3.356...2.3.359
Changelog: https://github.com/bridgecrewio/checkov/releases/tag/2.3.359
Description of changes

Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

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

2 packages built:

checkov
checkov.dist


question on passing a value to a characteristic

This compiles, however my project won't execute with this bit of code:
double val = _D.mp.getMedian();
pCharacteristic->setValue(val);
Is there a proper way to pass this via a pointer?

Try this:
pCharacteristic->setValue((uint8_t*)&val, sizeof(double));


How to connect to multiple devices with multiple endpoints (TZ-707)

Question
I had some fun with the on-off switch example, which worked with my smart socket unchanged!
Except it switches all 5 outputs at the same time, and I can't quite figure out how to switch them individually.
Maybe I'm being dense, I kinda caught a virus, so apologies for asking dumb questions, maybe the answers will reveal themselves with a fresh mind.
I see ESP_ZB_ZDO_SIGNAL_DEVICE_ANNCE which I guess is when a device announces its presence and then I see esp_zb_zdo_find_on_off_light which calls the callback that gets endpoint 1 only which for some reason switches all the outputs.
What does that code need to do to detect all the endpoints on the device?
This appear to be all the endpoints it has: https://github.com/zigpy/zha-device-handlers/blob/2a41331d7aec3b5c309de0da4dd928863e418290/zhaquirks/tuya/ts011f_plug.py#L416
The thermostat example also seems interesting, which seems to have a whole lot of stuff going on creating clusters and what not. I feel like maybe I'm just missing some context on Zigbee concepts and the PDK architecture, any recommended reading?
Both examples seem very hardcoded on one specific type of device with specific endpoints and clusters. Eventually I want to connect both the socket and a temperature+humidity sensor. Preferably without too much hardcoding of the specific device, so that it could also work with devices from a different manufacturer. Is that possible?
Additional context.
No response

See if the example code in here helps.
https://github.com/espressif/esp-zigbee-sdk/issues/246#issuecomment-1996839407

I'm looking more into the thermostat example, trying to understand how to add multiple devices.
My impression is I need another function like find_temperature_sensor that would match each of the devices I want to find and pair? That would then hopefully run the callback for the matching device.
https://github.com/espressif/esp-zigbee-sdk/blob/c86f305efc693cef958705ad55b2092bcdde16d5/examples/esp_zigbee_HA_sample/HA_thermostat/main/esp_zb_thermostat.c#L266
But I'm a bit puzzled about the details of binding that go on in user_find_cb and bind_cb.  I guess I need to make copies of those that bind different kind of devices?
I'm also a bit puzzled about the endpoints on the coordinator. Do I need to add another device that has endpoints corresponding to those for each device I want to bind?
https://github.com/espressif/esp-zigbee-sdk/blob/c86f305efc693cef958705ad55b2092bcdde16d5/examples/esp_zigbee_HA_sample/HA_thermostat/main/esp_zb_thermostat.c#L448
I guess maybe what I'm missing is a good overview of the Zigbee protocol and how the SDK API relates to it. If I look for Zigbee explanations I get really high level enthusiast articles, and if I go down to the specification it goes into the wire protocol that is not relevant to me either. What I need is kind of a description of the roles and concepts and an overview of the transactions that happen. Kind of like all those Syn-ack diagrams of TCP.
For example one big question I have is how to persist the device pairings. I suspect with a reasonable understanding of the protocol that would be obvious, like, just store the MAC address of the sensor or whatever the Zigbee equivalent is.

@pepijndevos,

My impression is I need another function like find_temperature_sensor that would match each of the devices I want to find and pair? That would then hopefully run the callback for the matching device.

I think the esp_zb_zdo_active_ep_req() API is helpful for you to get the all endpoints in a device.

I guess maybe what I'm missing is a good overview of the Zigbee protocol and how the SDK API relates to it. If I look for Zigbee explanations I get really high level enthusiast articles, and if I go down to the specification it goes into the wire protocol that is not relevant to me either. What I need is kind of a description of the roles and concepts and an overview of the transactions that happen. Kind of like all those Syn-ack diagrams of TCP.

We are enhancing our documents. However, we can discuss the specific requirements you need.

I don't fully understand the meaning of this code. Why does it create both client and server clusters?
Is the client endpoint sort of a local representation of the remote endpoint we want to bind?
If that is so, why is there a humidity measurement cluster, but no hygrometer cluster?
It's unclear to me what I need to do to bind the humidity cluster that my temperature sensor has.
    ESP_ERROR_CHECK(esp_zb_basic_cluster_add_attr(basic_cluster, ESP_ZB_ZCL_ATTR_BASIC_MANUFACTURER_NAME_ID, MANUFACTURER_NAME));
    ESP_ERROR_CHECK(esp_zb_basic_cluster_add_attr(basic_cluster, ESP_ZB_ZCL_ATTR_BASIC_MODEL_IDENTIFIER_ID, MODEL_IDENTIFIER));
    ESP_ERROR_CHECK(esp_zb_cluster_list_add_basic_cluster(cluster_list, basic_cluster, ESP_ZB_ZCL_CLUSTER_SERVER_ROLE));
    ESP_ERROR_CHECK(esp_zb_cluster_list_add_identify_cluster(cluster_list, esp_zb_identify_cluster_create(&(thermostat->identify_cfg)), ESP_ZB_ZCL_CLUSTER_SERVER_ROLE));
    ESP_ERROR_CHECK(esp_zb_cluster_list_add_identify_cluster(cluster_list, esp_zb_zcl_attr_list_create(ESP_ZB_ZCL_CLUSTER_ID_IDENTIFY), ESP_ZB_ZCL_CLUSTER_CLIENT_ROLE));
    ESP_ERROR_CHECK(esp_zb_cluster_list_add_thermostat_cluster(cluster_list, esp_zb_thermostat_cluster_create(&(thermostat->thermostat_cfg)), ESP_ZB_ZCL_CLUSTER_SERVER_ROLE));
    /* Add temperature measurement cluster for attribute reporting */
    ESP_ERROR_CHECK(esp_zb_cluster_list_add_temperature_meas_cluster(cluster_list, esp_zb_temperature_meas_cluster_create(NULL), ESP_ZB_ZCL_CLUSTER_CLIENT_ROLE));

@pepijndevos please reopen if any follow up questions.

Thank you. For now we paused this effort. I do have a dream of using this PDK to implement Zigbee support in ESPHome. So you could automatically expose sensors to Zigbee much like the existing mqtt support. So that would require a data-driven approach to setting up endpoints and such based on a yaml configuration. This is not something I'm actively pursuing, but that I believe would be of great value to the ecosystem.


when i upload my zip i have an issue

birme-512x512.zip(application/x-zip-compressed) - 687882 bytes, last modified: 20/11/2022 - 100% done
Saving birme-512x512.zip to birme-512x512.zip
|               | 0/1 Uploaded
UnidentifiedImageError                    Traceback (most recent call last)
 in
73       identifier=filename.split(".")[0]
74       new_path_with_file = os.path.join(INSTANCE_DIR, filename)
---> 75       file = Image.open(new_path_with_file)
76       width, height = file.size
77       if file.size !=(Crop_size, Crop_size):
/usr/local/lib/python3.7/dist-packages/PIL/Image.py in open(fp, mode)
2894         warnings.warn(message)
2895     raise UnidentifiedImageError(
-> 2896         "cannot identify image file %r" % (filename if filename else fp)
2897     )
2898
UnidentifiedImageError: cannot identify image file '/content/gdrive/MyDrive/Fast-Dreambooth/Sessions/nobel5/instance_images/birme-512x512.zip'

there is no reason why you would upload a zip, you should only upload images


Single quote interpolation escape is matching across JSON messages

Given:
{
  "x": { "message": "a'" },
  "y": { "message": "'b" }
}

We should parse x and y as plaintext. We actually parse x alone with a message spanning the contents of both x and y sans single quotes because said single quotes are parsing as an interpolation escape, breaking out of the bounds of the message parser.
This is the cause of the issues with intlc 0.4.0 in Unsplash web.
The ideal fix will be to prevent the message parser from escaping the bounds of the JSON message. The quick hack fix is to disable single quote interpolation escaping as I don't think we're using it anywhere.

Doesn't affect callbacks:
{
  "x": { "message": "a<f>'" },
  "y": { "message": "'</f>b" }
}

Gives errors on each callback tag as expected.
Probably caused by all manyTill in the ICU parser use token, except for escaped which uses charLiteral.
Ideally we could reserve the characters the ICU parser can access before ever entering this module/parser.


How to access this within a function template?

You can use a FunctionTemplate to create a constructor, having it return an instance from an ObjectTemplate.
You can set functions on an ObjectTemplate so the object has methods.
But, when someone calls a method (impl as a function template) on an object (from an object template), there's no way that I can see to get access to the object itself from within the method implementation. Are there any examples of something like this actually working?
I started a thread on slack but haven't heard anything.
Code example:
package main

import (
	"fmt"

	"rogchap.com/v8go"
)

func main() {
	iso, _ := v8go.NewIsolate()
	g, _ := v8go.NewObjectTemplate(iso)

	ot, err := v8go.NewObjectTemplate(iso)
	if err != nil {
		panic(err)
	}

	fooFn, err := v8go.NewFunctionTemplate(iso, func(info *v8go.FunctionCallbackInfo) *v8go.Value {
		// How do I get the instance created in the constructor below?
		fmt.Printf("MyObject.foo(): %q\n", info.Args())
		v, _ := v8go.NewValue(iso, "what is 'this'")
		return v
	})
	if err != nil {
		panic(err)
	}

	if err := ot.Set("foo", fooFn); err != nil {
		panic(err)
	}

	constructor, _ := v8go.NewFunctionTemplate(iso, func(info *v8go.FunctionCallbackInfo) *v8go.Value {
		inst, _ := ot.NewInstance(info.Context())
		inst.Set("prop", info.Args()[0])
		return inst.Value
	})

	if err := g.Set("MyObject", constructor); err != nil {
		panic(err)
	}

	ctx, _ := v8go.NewContext(iso, g)

	rv, err := ctx.RunScript(`let x = new MyObject('bar'); x.foo()`, "script.js")
	fmt.Printf("rv: %q, err: %q\n", rv, err)
}

As far as I can see the current implementation does not expose v8::FunctionCallbackInfo::This() so currently you can't access "this" in a callback. It shouldn't be too difficult to add though.

Yeah that's what I had found also; but I have no experience embedding v8 (nor have I done anything with v8go yet) so I wasn't sure if it was just eluding me.

 I had considered that but didn't try it, assuming I couldn't create object templates in the isolate after the context was setup.

That's not really getting the receiver object of the method though unless I am missing something. What you might be able to do instead is patch the method from inside JS to add 'this' as the first item in the list of arguments. Something like:
let x = new MyObject();
let origfunc = x.foo;
x.foo = function() { origfunc.call(this, this, ...arguments };

When calling x.foo(1, 2, 3) you would get [x, 1, 2, 3] from info.Args()

@arctica I think I understand your problem. Is MyObject a class you defined in v8go, since you can instantiate it with new? If yes then I would like to know how to do that :)

@arctica I think I understand your problem. Is MyObject a class you defined in v8go, since you can instantiate it with new? If yes then I would like to know how to do that :)

I think you ment @avidal


Fix loadTracks() bugs, better errors processing

https://github.com/osmandapp/OsmAnd-Issues/issues/2051

https://github.com/osmandapp/OsmAnd-Issues/issues/2078


Clever way to have hidden code in both JupyterBook and Jupyter Notebook classic and JupyterLab?

Mostly useful for places where we only want to show a plot without showing the code e.g. in the data exploration notebook where we show a 2d plot of a decision tree decision boundaries. Currently we have a script that generates a figure and after this we include the figure in a markdown here like here. This is not great.
Things to look at:

a way to have collapsed cells on startup for both JupyterLab (according to this it seems "source_hidden": true in the cell metadata should work) and Jupyter Notebook classic (seems to be part of jupyter_contrib_nbextensions see this based on cell.metadata.hide_input))
do it the JupyterBook way (see this in the .py file)
adapt https://github.com/INRIA/scikit-learn-mooc/blob/master/build_tools/convert-python-script-to-notebook.py to have the necessary logic to transform the JupyterBook way in a JupyterLab and Jupyter Notebook classic compatible way.

For the specific case of the boundary decision plots, this has been fixed. Good enough for now, closing.


Hardware trigger

Is it possible to hardware trigger the ADI ToF device? I need to synchronise it with another camera.

Hello, can you contact<EMAIL_ADDRESS>They can provide additional information.
Regards,
Septimiu.


WIP: Add abstraction layer to JSON-RPC server access to chain state

This is an experimental work in progress to see if I can get the JSON-RPC server cleanly decoupled from the Chain class.

What was wrong?
STUB
How was it fixed?
STUB
Cute Animal Picture

Replaced by #717


When printing to a network printer host name does not get resolved from device URI, job falls into infinite, uninterruptable

Describe the bug
I start a Printer Application, in my case my PostScript Printer Application using debug mode:
ps-printer-app -o log-level=debug server

Then I add a printer via the web interface (see screenshot below). My HP OfficeJet 8730 (DNS-SD record below) is discovered as network printer via DNS-SD and vis SNMP. I have selected the entry resulting from the DNS-SD discovery of the printer. I select the correct model under "Driver".
Creating the printer, setting the media and other default options works.
Now I try to print. To do so I run
ps-printer-app -d test2 PDF-FILE

The Printer Application processes the job data correctly and according to my option settings (via USB connection the printer actually prints) but is not able to resolve my network printer's host name or IP from the device URI it created during printer setup.
See the console output below (it is the debug output of the Printer Application running as server, which I started in the same terminal), especially it shows
D [2020-10-27T11:09:05.522Z] papplSystemFindPrinter: printer 'test2' - resource="/ipp/print/test2", printer_id=2, device_uri="socket://HP%5C032OfficeJet%5C032Pro%5C0328730%5C032%5C09108C229%5C093._pdl-datastream._tcp.local/"
[...]
E [2020-10-27T11:09:05.523Z] [Device] Unable to lookup \'HP\\032OfficeJet\\032Pro\\0328730\\032\\09108C229\\093._pdl-datastream._tcp.local:9100\': Name or service not known
E [2020-10-27T11:09:05.523Z] [Printer test2] Unable to open device 'socket://HP%5C032OfficeJet%5C032Pro%5C0328730%5C032%5C09108C229%5C093._pdl-datastream._tcp.local/', pausing queue until printer becomes available.

There is probably some problem with the parsing/quoting/ecoding/decoding of the DNS-SD service name in the device URI to extract the correct network host name (or IP address) of the printer, needed to send the job to the printer's port 9100.
In addition, even that it is told that the queue got paused by this, the job is retried infinitelt by the Printer Application and there is no way to stop it.
I tried
ps-printer-app shutdown

from another terminal and
killall ps-printer-app

from the same terminal. This did not terminate ps-printer-app nor the job repetition. I had to enter
killall -9 ps-printer-app

to stop it.
The problem must be in PAPPL as PAPPL provides the functionality of discovering printers, assign device URIs to them, and resolving these device URIs to hostname or IP when a job is about to be printed. PAPPL also handles job failures.
I also observed the same with hp-printer-app, but this Printer Application is currently not working, so I cannot use it for reproducing the problem currently.
To Reproduce
You need a printer which advertises itself via DNS-SD and uses a PAPPL-supported network protocol, like socket printing on port 9100. The command
avahi-browse -t _pdl-datastream._tcp

must list the printer.
Fire up a Printer Application using PAPPL as a server, I used ps-printer-app any other, like hp-printer-app should also work.
ps-printer-app -o log-level=debug server

In the web interface click the "Add Printer" button. Then fill in the fields. Enter a queue name, then select your printer from the discovered devices, the entry containing "DNS-SD". Select a suitable driver. Confirm and then set the media which you have in your printer's trays and additional options, like Duplex.
Now print a job, using the command
ps-printer-app FILE

Observe the debug output, you get repeated messages about a hostname/URI resolution problem.
From another terminal window try to stop the mess. Run
ps-printer-app shutdown

and see the error flooding in the fiurst terminal going on.
Also
killall ps-printer-app

does not help. The only solution is
killall -9 ps-printer-app

Expected behavior

Jobs can also be printed on network printers and should not fail on URI/hostname/IP resolution.
A failing job should actually pause, at least after some attempts (ideally configurable)
It must be possible to shut down the server with the standard command even if a failing job is still repeating

System Information:

Ubuntu 20.10 Groovy Gorilla
Snap built with Ubuntu 20.04 Focal Fossa, snap base is core18, but also manual "quick and dirty" build of ps-printer-app shows the problem.
PAPPL is current GIT snapshot

My printer:
HP OfficeJet 8730
$ avahi-browse -t -r _pdl-datastream._tcp
+ enx00e04c043270 IPv4 HP OfficeJet Pro 8730 [08C229]                PDL Printer          local
= enx00e04c043270 IPv4 HP OfficeJet Pro 8730 [08C229]                PDL Printer          local
   hostname = [HP18602408C229.local]
   address = [<IP_ADDRESS>]
   port = [9100]
   txt = ["Scan=T" "Duplex=T" "Color=T" "UUID=dbcc4b58-fc4c-f6fd-b4d6-2b00d554ad47" "mopria-certified=1.3" "note=" "adminurl=http://HP18602408C229.local." "mac=18:60:24:08:c2:29" "priority=40" "usb_MDL=OfficeJet Pro 8730" "usb_MFG=HP" "product=(HP OfficeJet Pro 8730)" "ty=HP OfficeJet Pro 8730" "kind=document,envelope,photo,postcard" "PaperMax=legal-A4" "pdl=application/vnd.hp-PCL,application/vnd.hp-PCLXL,application/postscript,application/pdf,image/jpeg,application/PCLm,image/urf,image/pwg-raster" "qtotal=1" "txtvers=1"]

Additional context
Screen shot of printer setup:

Console output when printing:
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$ ps-printer-app -d test2 ~/ghostscript/testfiles/CityMap.pdf
I [2020-10-27T11:09:05.522Z] [Client 36] Accepted connection from 'localhost'.
I [2020-10-27T11:09:05.522Z] [Client 36] POST http://localhost:0/ipp/print/test2 HTTP/1.1
I [2020-10-27T11:09:05.522Z] [Client 36] Continue
D [2020-10-27T11:09:05.522Z] [Client 36] Print-Job request: IPP/2.0 request-id=1
D [2020-10-27T11:09:05.522Z] [Client 36] Print-Job request: operation-attributes-tag
D [2020-10-27T11:09:05.522Z] [Client 36] Print-Job request:   attributes-charset charset utf-8
D [2020-10-27T11:09:05.522Z] [Client 36] Print-Job request:   attributes-natural-language naturalLanguage en-us
D [2020-10-27T11:09:05.522Z] [Client 36] Print-Job request:   printer-uri uri ipp://localhost/ipp/print/test2
D [2020-10-27T11:09:05.522Z] [Client 36] Print-Job request:   requesting-user-name nameWithoutLanguage till
D [2020-10-27T11:09:05.522Z] [Client 36] Print-Job request:   job-name nameWithoutLanguage CityMap.pdf
D [2020-10-27T11:09:05.522Z] [Client 36] Print-Job request:   document-name nameWithoutLanguage CityMap.pdf
D [2020-10-27T11:09:05.522Z] papplSystemFindPrinter(system, resource="/ipp/print/test2", printer_id=0, device_uri="(null)")
D [2020-10-27T11:09:05.522Z] papplSystemFindPrinter: printer 'test' - resource="/ipp/print/test", printer_id=1, device_uri="usb://HP/HP%20OfficeJet%20Pro%208730?serial=CN783F60W1"
D [2020-10-27T11:09:05.522Z] papplSystemFindPrinter: printer 'test2' - resource="/ipp/print/test2", printer_id=2, device_uri="socket://HP%5C032OfficeJet%5C032Pro%5C0328730%5C032%5C09108C229%5C093._pdl-datastream._tcp.local/"
D [2020-10-27T11:09:05.522Z] papplSystemFindPrinter: Returning 0x7fe0d40153e0(test2)
D [2020-10-27T11:09:05.522Z] [Client 36] Auto-type header: 255044462D312E34... format: application/pdf

D [2020-10-27T11:09:05.522Z] [Client 36] Print-Job Auto-typed "document-format"='application/pdf'.
D [2020-10-27T11:09:05.522Z] [Job 1] Created job file "/tmp/pappl366365.d/p00002j000000001-citymap_pdf.pdf", format "application/pdf".
D [2020-10-27T11:09:05.522Z] [Printer test2] Checking for new jobs to process.
D [2020-10-27T11:09:05.523Z] [Printer test2] Starting job 1.
I [2020-10-27T11:09:05.523Z] [Client 36] Print-Job successful-ok
I [2020-10-27T11:09:05.523Z] [Client 36] OK application/ipp 214
D [2020-10-27T11:09:05.523Z] [Client 36] Print-Job response: IPP/2.0 request-id=1, status-code=successful-ok
D [2020-10-27T11:09:05.523Z] [Client 36] Print-Job response: operation-attributes-tag
D [2020-10-27T11:09:05.523Z] [Client 36] Print-Job response:   attributes-charset charset utf-8
D [2020-10-27T11:09:05.523Z] [Client 36] Print-Job response:   attributes-natural-language naturalLanguage en-us
I [2020-10-27T11:09:05.523Z] [Job 1] Starting print job.
D [2020-10-27T11:09:05.523Z] [Client 36] Print-Job response: job-attributes-tag
D [2020-10-27T11:09:05.523Z] [Client 36] Print-Job response:   job-id integer 1
D [2020-10-27T11:09:05.523Z] [Client 36] Print-Job response:   job-uri uri ipp://localhost/ipp/print/test2/1
D [2020-10-27T11:09:05.523Z] [Client 36] Print-Job response:   job-state enum pending
D [2020-10-27T11:09:05.523Z] [Client 36] Print-Job response:   job-state-message textWithoutLanguage Job pending.
D [2020-10-27T11:09:05.523Z] [Client 36] Print-Job response:   job-state-reasons keyword none
test2-1
I [2020-10-27T11:09:05.523Z] [Client 36] Closing connection from 'localhost'.
E [2020-10-27T11:09:05.523Z] [Device] Unable to lookup \'HP\\032OfficeJet\\032Pro\\0328730\\032\\09108C229\\093._pdl-datastream._tcp.local:9100\': Name or service not known
E [2020-10-27T11:09:05.523Z] [Printer test2] Unable to open device 'socket://HP%5C032OfficeJet%5C032Pro%5C0328730%5C032%5C09108C229%5C093._pdl-datastream._tcp.local/', pausing queue until printer becomes available.
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$ I [2020-10-27T11:09:06.523Z] Saving system state to '/tmp/ps_printer_app.state'.

till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$ E [2020-10-27T11:09:10.523Z] [Device] Unable to lookup \'HP\\032OfficeJet\\032Pro\\0328730\\032\\09108C229\\093._pdl-datastream._tcp.local:9100\': Name or service not known

till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$ E [2020-10-27T11:09:15.523Z] [Device] Unable to lookup \'HP\\032OfficeJet\\032Pro\\0328730\\032\\09108C229\\093._pdl-datastream._tcp.local:9100\': Name or service not known
E [2020-10-27T11:09:20.523Z] [Device] Unable to lookup \'HP\\032OfficeJet\\032Pro\\0328730\\032\\09108C229\\093._pdl-datastream._tcp.local:9100\': Name or service not known
I [2020-10-27T11:09:22.094Z] [Client 37] Accepted connection from 'localhost'.
I [2020-10-27T11:09:22.094Z] [Client 37] POST http://localhost:0/ipp/system HTTP/1.1
I [2020-10-27T11:09:22.094Z] [Client 37] Continue
D [2020-10-27T11:09:22.094Z] [Client 37] 0x0063 request: IPP/2.0 request-id=1
D [2020-10-27T11:09:22.094Z] [Client 37] 0x0063 request: operation-attributes-tag
D [2020-10-27T11:09:22.094Z] [Client 37] 0x0063 request:   attributes-charset charset utf-8
D [2020-10-27T11:09:22.094Z] [Client 37] 0x0063 request:   attributes-natural-language naturalLanguage en-us
D [2020-10-27T11:09:22.094Z] [Client 37] 0x0063 request:   system-uri uri ipp://localhost/ipp/system
D [2020-10-27T11:09:22.094Z] [Client 37] 0x0063 request:   requesting-user-name nameWithoutLanguage till
D [2020-10-27T11:09:22.094Z] papplSystemFindPrinter(system, resource="(null)", printer_id=0, device_uri="(null)")
D [2020-10-27T11:09:22.094Z] papplSystemFindPrinter: printer 'test' - resource="/ipp/print/test", printer_id=1, device_uri="usb://HP/HP%20OfficeJet%20Pro%208730?serial=CN783F60W1"
D [2020-10-27T11:09:22.094Z] papplSystemFindPrinter: printer 'test2' - resource="/ipp/print/test2", printer_id=2, device_uri="socket://HP%5C032OfficeJet%5C032Pro%5C0328730%5C032%5C09108C229%5C093._pdl-datastream._tcp.local/"
D [2020-10-27T11:09:22.094Z] papplSystemFindPrinter: Returning (nil)(none)
I [2020-10-27T11:09:22.094Z] [Client 37] 0x0063 successful-ok
I [2020-10-27T11:09:22.094Z] [Client 37] OK application/ipp 75
D [2020-10-27T11:09:22.094Z] [Client 37] 0x0063 response: IPP/2.0 request-id=1, status-code=successful-ok
D [2020-10-27T11:09:22.094Z] [Client 37] 0x0063 response: operation-attributes-tag
D [2020-10-27T11:09:22.094Z] [Client 37] 0x0063 response:   attributes-charset charset utf-8
D [2020-10-27T11:09:22.094Z] [Client 37] 0x0063 response:   attributes-natural-language naturalLanguage en-us
I [2020-10-27T11:09:22.095Z] [Client 37] Closing connection from 'localhost'.
E [2020-10-27T11:09:25.524Z] [Device] Unable to lookup \'HP\\032OfficeJet\\032Pro\\0328730\\032\\09108C229\\093._pdl-datastream._tcp.local:9100\': Name or service not known

till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$ E [2020-10-27T11:09:30.524Z] [Device] Unable to lookup \'HP\\032OfficeJet\\032Pro\\0328730\\032\\09108C229\\093._pdl-datastream._tcp.local:9100\': Name or service not known

till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$ E [2020-10-27T11:09:35.524Z] [Device] Unable to lookup \'HP\\032OfficeJet\\032Pro\\0328730\\032\\09108C229\\093._pdl-datastream._tcp.local:9100\': Name or service not known

till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$ killall E [2020-10-27T11:09:40.524Z] [Device] Unable to lookup \'HP\\032OfficeJet\\032Pro\\0328730\\032\\09108C229\\093._pdl-datastream._tcp.local:9100\': Name or service not known
pE [2020-10-27T11:09:45.525Z] [Device] Unable to lookup \'HP\\032OfficeJet\\032Pro\\0328730\\032\\09108C229\\093._pdl-datastream._tcp.local:9100\': Name or service not known

till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$ killall ps-printer-app
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$ killall ps-printer-appE [2020-10-27T11:09:50.525Z] [Device] Unable to lookup \'HP\\032OfficeJet\\032Pro\\0328730\\032\\09108C229\\093._pdl-datastream._tcp.local:9100\': Name or service not known

till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$ killall -9E [2020-10-27T11:09:55.525Z] [Device] Unable to lookup \'HP\\032OfficeJet\\032Pro\\0328730\\032\\09108C229\\093._pdl-datastream._tcp.local:9100\': Name or service not knowtill@till-x1yoga:~/printing/openprinting/ps-printer-app/x$
 ps-printer-app
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$
[1]+  Killed                  ps-printer-app -o log-level=debug server
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$

My printer also advertises itself via SNMP:
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$ /usr/lib/cups/backend/snmp
network socket://<IP_ADDRESS>:9100 "HP OfficeJet Pro 8730" "HP OfficeJet Pro 8730" "MFG:HP;MDL:HP OfficeJet Pro 8730;CMD:PCL5c,PCLXL,POSTSCRIPT,NATIVEOFFICE,PDF,PCL3GUI,PCL3,PJL,Automatic,JPEG,PCLM,AppleRaster,PWGRaster,802.11,802.3,DESKJET,DYN;CLS:PRINTER;DES:D9L20A;CID:HPIJVIPAV9;LEDMDIS:USB#FF#CC#00,USB#FF#04#01;MCT:MF;MCL:DI;MCV:3.0;SN:CN783F60W1;S:038080C4841000010058008000044180028451800284618001e41180032;Z:05000009000009000009000009000009,12000,17000000000000000000000000000000,181;" ""
till@till-x1yoga:~/printing/openprinting/ps-printer-app/x$

Selecting this mode when adding my printer (Entry with "Network Printer" and the printer's host name, no "DNS-SD") I can print on it.
So the problem seems to lie only in the DNS-SD device URIs of PAPPL.

@tillkamppeter Probably the issue is that the DNS-SD printers are using the socket scheme instead of dnssd...


2022050701

Closes #4391
Closes #4394 Another PR
Closes #723
Closes #1378
Closes #785
Closes #849
Closes #889 Already in deny list
Closes #959 Already in deny list
Closes #937
Closes #961
Closes #992
Closes #994
Closes #996
Closes #998
Closes #999
Closes #1001
Closes #1003
Closes #1004
Closes #1005
Closes #1006
Closes #4416

Latest commit.
Closes #4715
Closes #4723
Closes #1037 Already in deny list
Closes #1053 Not a valid HS Address

Great work @6CornerDefender

伟大的工作 @6角卫士 （以及所有提交人）

Dear friend, this is the hot spot that I and two friends bought for the first time from a Chinese businessman, many rules are not understood, and now I know that I need to deploy on the ground, we will quickly correct it and carry out field deployment, which has brought a bad experience to many miners, sorry！#4416


Keras in Google Colab and in Rstudio Python Script

Good morning,
Comparing the output of a simple neural network when setting the same specifications (random seeds, network architecture, keras package version ,etc.), I obtain slightly different results when running the code on Google Colab and when running it on the RStudio Python script of an M1 MacBook Air. Nevertheless, when running the code on an Intel MacBook Air the results are the same as the ones obtained on Google Colab. Does anyone know why there is a difference between the outputs of these two MacBooks?
The difference can be seen in: print(mean_squared_error(y_test, model_linear.predict(x_test, verbose=1))). This is the code:
from sklearn.datasets import make_friedman1
from sklearn.model_selection import train_test_split
from keras import *
from sklearn.metrics import mean_squared_error
import numpy as np

# Set seeds for reproducibility
np.random.seed(1)

# Create dataset
X, y = make_friedman1(n_samples=5000, n_features=5, noise=1, random_state=1)

# Split the data into train and test sets
x_train, x_test, y_train, y_test = train_test_split(X, y, test_size=0.5, random_state=1)

# Set random seed for keras
utils.set_random_seed(1)

# Define the model architecture
model_linear = Sequential([
    layers.Input(shape=(X.shape[1],)),
    layers.Dense(1)
])

# Compile the model
model_linear.compile(loss='mean_squared_error', optimizer='sgd')

# Train the model
model_linear.fit(x_train, y_train, epochs=50, verbose=0)

# Evaluate the model
print(mean_squared_error(y_test, model_linear.predict(x_test, verbose=1)))

GOOGLE COLAB: 6.872613224177549
RSTUDIO PYTHON SCRIPT (Intel MacBook Air): 6.872613224177549
RSTUDIO PYTHON SCRIPT (M1 MacBook Air): 6.8726134513483235
Thank you very much.

Precision error which is in the range of 1e-7 can be safely ignored since it does not cause much difference.
Sometimes the differences can be due to the different Kernels.

Thank you for your reply.

@SantiagoD999 , Could you please close the issue if you don't have any further question. Thanks


new research spotlight is a movie

Nurse lab paper, I should get it through today.
I checked  the movie into  the top level directory of pombe_embl since my Drop Box appears to have expired/disappeared
It's a square shape, so not ideal. How easy is it to crop to a rectangle?
text to follow once I get the paper through....

The paper is
PMID:31015410
I suggest
Nuclear "blebbing" in Lem2 mutants from "Nuclear membrane protein Lem2 regulates nuclear size through membrane flow"

The paper is through approval so   it should be in the feed toomorrow

It's a square shape, so not ideal. How easy is it to crop to a rectangle?

Google has told me how to crop a video so I've added the Spotlight.  Let me know if it needs fixing.  The video works well in FireFox but sometimes doesn't play in Chrome.  I don't know why.
https://www.pombase.org/archive/spotlight
There are lots Spotlights that have the front page flag on at the moment, 14-ish.  Should I trim that back a bit?

That looks  great, they will be pleased with that. The paper images weren't really suitable.
can it be done by number or does it need to be done by date?
I would say the previous 8 (since don't really want to lose all of May yet)

Yeah in chrome it played for me on the first visit, but now it's a still...

It works  again if I open a new browser. I think that's fine.

can it be done by number or does it need to be done by date?

Each Spotlight has a flag to say if it should be on the front page so to remove an item from the front page we change the flag and re-release.

I would say the previous 8 (since don't really want to lose all of May yet)

OK, I'll trim it to the most recent 8.

OK, I'll trim it to the most recent 8.

That's done.


Update helm to version 2.0.0-alpha.5

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} reports no offenses.
[x] The commit message includes the cask’s name and version.

Should be clear now.


No happen !

Hello,
I uploaded this module in whmcs v6 .
I added a server and I see module command ( Suspend , Unsuspend , Reboot , Terminate )
I try to reboot server via WHMCS. it shows "Action Completed Successfully" but No happen !!
Also there isn't Management of the server state .

Hello,
The module might not be compatible with WHMCS v6, please refer to @sonuyos comments at https://github.com/Verelox/onlinenet-module/issues/4 for workarounds.


linux/gamepad: crash inside snap

I am getting in AAAAXY:
2022/09/05 08:27:44.415955 [FATAL] RunGame exited abnormally: gamepad: Open failed: operation not permitted
This is apparently due to https://github.com/hajimehoshi/ebiten/blob/main/internal/gamepad/gamepad_linux.go#L108 receiving EPERM instead of EACCES.
Not sure if that's snap's fault or Ebitengine's, but I'd opt for ignoring EPERM here too.

Trying if that fixes things in the snap sandbox and I can still use gamepads. I do have the "joystick" interface connected.

Do you think this is a regression or not? Does the same thing happened with an old Ebitengine (v2.2.7)?

Pretty sure something changed on Snap end, not Ebitengine end, as I also
had to make changes to the Snap to keep supporting AMD GPUs. So not really
a regression.
On Mon, Sep 5, 2022 at 8:43 AM Hajime Hoshi @.***>
wrote:

Do you think this is a regression or not? Does the same thing happened
with an old Ebitengine (v2.2.7)?
—
Reply to this email directly, view it on GitHub
https://github.com/hajimehoshi/ebiten/issues/2307#issuecomment-1236961194,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAB5NMCOCPSUIHEWW5PWSTLV4XS63ANCNFSM6AAAAAAQE6HY24
.
You are receiving this because you authored the thread.Message ID:
@.***>

I think what changed is that snap's sandboxing no longer permits all /dev/input/event* devices, but only those that are gamepads.

Sure. I'm fine to apply the change https://github.com/divVerent/ebiten/commit/42fa7d0f303cfa45800063bee5c69d15e217b260 is this is no harmful.

A PR is not sent yet.
Do you want me to backport the fix to 2.4?

It'd be nice to include this in v2.4.2 as well - otherwise I'll keep backporting it myself on top of v2.4.x until v2.5 is released.

Yes. The "second" software store (in addition to apt) that's enabled by default on Ubuntu.


CAMEL-11409: Add writeTimeout configuration property and use with the…

… WriteFuture in Mina2Helper

@gijsbert802 thank you for your contribution 👍 it has been merged to master branch scheduled to be released in version 2.20.x, do you mind closing this?

Cool, thanks!


chore(main): release grades-view-solid 1.1.2

:robot: I have created a release beep boop
1.1.2 (2024-01-23)
Bug Fixes

Add cie and epsic modules existence check (2d8bbc7), closes #7
Add semester length check (d0d1f5d), closes #11
Type the initial store with the schema (c4003f4)
Use same schema to validate grades on all app (d5e8195)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/jobtrek/grades-view-solid/releases/tag/grades-view-solid-v1.1.2 :sunflower:


feat: allow multiples of the same crypto

closes #115
instead of storing tickers as name, store them with appending numbers to help people run multiple separate bots for the same crypto in one instance of the app.
TODO

[x] change id of bots stored in watcher
[ ] change how the db is updated with multiple of the same name

with https://github.com/rssnyder/discord-stock-ticker/pull/118 we have the label func that creates the "id" for each ticker. we can use this func to create the labals going forward. i am going to close this PR and come back to it later with a different mindset.


Implement workspaces in Cargo

This commit is an implementation of RFC 1525 which specifies the addition of
workspaces to Cargo.
A workspace is a group of crates which are all compiled into the same output
directory and share the same Cargo.lock file. This means that dependencies are
cached between builds as well as dependencies all being shared at the same
versions. An update to any one dependency transitively affects all other members
of the workspace.
Typical repository layouts with a crate at the root and a number of path
dependencies simply need to add the following to the root Cargo.toml:
[workspace]

Otherwise more advanced configuration may be necessary through the
package.workspace or workspace.members keys. More information can be found
as part of RFC 1525.

r? @wycats
(rust_highfive has picked a reviewer for you, use r? to override)

I wanted to put this up for review, but I don't think that this is ready to merge yet. I believe I've covered the bases of an implementation, tests, and documentation. So far [workspace] and virtual manifests are both implemented.
In implementing this I can only think of one possible catch in the RFC, which is that workspace.members is only filled in automatically if it's not present. The filling in happens transitively through path dependencies. This however does not play nicely with virtual manifests because there are no implicit path dependencies. This means that all virtual manifests would have to exhaustively list out members of the workspace, which can sometimes be tedious. I might recommend tweaking the RFC to say that "path dependencies of workspace members are always transitively included in a workspace". I'm not sure if this is too restrictive, however, as there's no way to turn off this behavior. For now this implements what was in the RFC.
The major piece that this has not implemented yet is the modification to cargo new. The intention was to have cargo new basically automatically manage your workspace so you never have to do so yourself. That is, heuristics like this would be implemented:

Whenever a new root crate is created, a [workspace] key is filled in.
Whenever a child crate is created in a subdirectory, it's connected to that workspace.

Unfortunately connecting a crate to a workspace is not always a simple and local operation. We can always provide a pointer back to the workspace (e.g. package.workspace), but the original root must contain the new crate in its workspace. The only way to do that is to list it in workspace.members or list it as a path dependency. Because this is a new crate it probably isn't listed as a path dependency, so it'll have to be added to workspace.members. Eventually, however, it'll probably be added as a path dependency and this won't be necessary.
I've left this unimplemented for now as I'm unsure what the best way to move forward this would be. On one hand if we omit [workspace] as part of cargo new we don't have any problems (e.g. what we do today), but you don't get the benefit of workspaces by default (which probably everyone wants). If we do emit [workspace] by default then we'll at least  need to add the ability to read/write TOML which round trips comments and formatting. This would then likely also entail auto-adding an entry to [dependencies] or auto-adding an entry to workspace.members, both of which are implementable but somewhat complicated.
Curious on others' thoughts though!
cc @wycats
cc @brson
cc @rust-lang/tools

I might recommend tweaking the RFC to say that "path dependencies of workspace members are always transitively included in a workspace".

Those transitive deps still need to specify the virtual manifest as workspace root for symmetry right?

No, they're typically lower in the filesystem hierarchy.

Hmm? You mean stubtree with virtual manifest at its root contains the specified members' path dependencies---what I meant by "or be in a subdirectory", or something else?

Ah yes I misread, the original statement you made is correct (it just follows from what was written in the RFC)

ping r? @brson, thoughts?

I know I need to read this one closely and I just haven't yet.

Ah yeah sure, we should talk in person tomorrow as well

Great patch. This integrates really cleanly for such a big feature.

I'll work on some better error messages, but @wycats do you have thoughts about the implicitly traveling all path dependencies in the members array unconditionally?

Ok, after some more discussion with @wycats and @brson offline, I've updated the PR with two new pieces:

Path dependencies are always transitively traversed, including packages which are explicitly mentioned in workspace.members, as well as when some members are explicitly listed.
cargo new and cargo init will now issue a warning if they detect that a crate was just created with invalid workspace configuration. This is the best we can do for now without automatically updating configuration for you, and should hopefully tie us over to when that happens.

Due to the size of this feature and the concerns of the @rust-lang/tools team, r? @brson but this should probably merge after we branch beta next week.

@larsbergstrom as a heads up, this is what it looks like for me to add workspaces to Servo (probably incomplete) https://github.com/alexcrichton/servo/commit/1094428d69c8f0cea9744bbd1122f1a508f18907.
I found it cool that the top-level Cargo.toml has a pretty small workspace.members list, and I imagine it'll also be nice get rid of all those pesky duplicate Cargo.lock files!
It looked like there were spurious rebuilds between switching build and build-geckolib (build and build-cef were fine) but it looked to be related to legitimate issues rather than versions being swapped out.
In any case, just wanted to ensure that it worked at scale, and it looks like it's working like a charm!

r=me

@alexcrichton Thanks for trying that out - it looks REALLY fantastic!
One area of questioning: @SimonSapin is doing some work to help us do a dual-build using Rust Stable for just the geckolib target. Do you have any ideas for how that should integrate into this? And, can we still share the Cargo.lock file across nightly/stable builds?
IIRC, we will need separate target directories for the two builds, but since it's mainly a CI thing, I'm not super concerned about it.

@larsbergstrom perhaps I misunderstand, but Cargo has long been able to compile multiple targets with a single target/ directory. When the --target <triple> flag is passed, the build artifacts go inside target/<triple>.

@Ericson2314 Aha, yes! The difference here is that it's the same target triple, but with different versions of the Rust compiler itself (the stable versus nightly releases).

@larsbergstrom for the "best experience" you'll probably want to use the same Cargo for now but perhaps with different Rust compilers. For example the stable Cargo right now doesn't understand workspaces so it won't be compatible with this. In general, though, as long as something too fundamental hasn't changed an older Cargo should be able to build against a newer Cargo.lock so long as the dependencies haven't changed.
You're also likely to definitely have lots of recompilations if you switch targets between geckolib and Servo because of the changing compilers, but everything should work on the Cargo side at least if you use the same Cargo compiler.

@larsbergstrom @alexcrichton simple solution would be target/<compiler-version>/<target>/ right?

@larsbergstrom A single workspace with a single Cargo.lock and multiple target directories (CARGO_TARGET_DIR environment variable, one per compiler version) should work fine, right?
@alexcrichton Yes, we already bootstrap and update Cargo separately from rustc, so I expect we’ll have one Cargo version for both rustc versions.

Beta cargo has now been selected, I'm going to r+ this
@bors: r=brson

:pushpin: Commit 72749ab has been approved by brson

:hourglass: Testing commit 72749ab with merge 9b9a4a3...

:broken_heart: Test failed - cargo-win-gnu-32

@bors: r=brson

:pushpin: Commit 8b3933d has been approved by brson

:hourglass: Testing commit 8b3933d with merge 2af552d...

:broken_heart: Test failed - cargo-cross-linux

@bors: r=brson

:pushpin: Commit 0c2ee50 has been approved by brson

:hourglass: Testing commit 0c2ee50 with merge 23f2962...

:broken_heart: Test failed - cargo-win-msvc-64

@bors: r=brson

:pushpin: Commit 9a6aebe has been approved by brson

:hourglass: Testing commit 9a6aebe with merge 4daf6b5...

:broken_heart: Test failed - cargo-linux-64

:pushpin: Commit 58ddb28 has been approved by brson

@bors: r=brson

:hourglass: Testing commit 58ddb28 with merge b036f19...

:sunny: Test successful - cargo-cross-linux, cargo-linux-32, cargo-linux-64, cargo-mac-32, cargo-mac-64, cargo-win-gnu-32, cargo-win-gnu-64, cargo-win-msvc-32, cargo-win-msvc-64
Approved by: brson
Pushing b036f1963c6fdf2ec70f1fdb49df1e44e17f964f to master...


⚠ ClamAV has degraded performance

In 0198d8a, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 197 ms

Resolved: ClamAV performance has improved in 7e5285a.


Elastic products are vulnerable

Submission Template
Please provide the following information.

Vendor Name: Elastic
Product Name
Version(s) affected
Status:  Affected/Not Affected/Fixed (depending on product)
Update Available:  Yes
Notes
References: https://discuss.elastic.co/t/apache-log4j2-remote-code-execution-rce-vulnerability-cve-2021-44228-esa-2021-31/291476
Last Updated:  Date of last update

For questions about choice for status, please see the information below.

Unknown - Status unknown.  Default choice.
Affected - Reported to be affected by CVE-2021-44228.
Not Affected - Reported to NOT be affected by CVE-2021-44228 and no further action necessary.
Fixed - Patch and/or mitigations available (see provided links).
Under Investigation - Vendor investigating status.

This product has been added to the repository. Thank you.


Option showing with a white text

Hi,
I added the Spinner on my xml as below:
    <fr.ganfra.materialspinner.MaterialSpinner
        android:id="@+id/spinner"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        app:ms_enableErrorLabel="false"
        app:ms_enableFloatingLabel="false"
        app:ms_hint="hint"
        app:ms_floatingLabelColor="#212121"
        app:ms_hintColor="#0000FF" />

But when I add an item on the adapter it always show with a white text. Any ideias how to change the color?

@felipecastilhos I suppose You used application context, I would suggest you to use getActivity() if you are in fragment or this if you are in activity


Photos task saga + Redux & logging improvements

This makes less of the image processing bypass Redux and our logging. Location updates, foregrounding events, and background tasks now trigger redux actions (and are logged to App Center), and the photo querying and image add now happen in a Saga. All around this leads to better logging and error handling.
The App Center payload is now standardized to look like { description: string, error: string }, and there is a mapping function that takes any redux action and converts it to that standard payload.

very nice, getting pretty tight again


Basic cleos support and some login fixes

Description
cleos support and login fixes
Type of change

[X] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)

included in #276